@once-ui-system/core 1.4.32 → 1.5.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/.eslintrc.json +3 -3
- package/{LICENSE → LICENSE.md} +1 -1
- package/dist/components/Animation.d.ts +34 -0
- package/dist/components/Animation.d.ts.map +1 -0
- package/dist/components/Animation.js +230 -0
- package/dist/components/Animation.js.map +1 -0
- package/dist/components/ArrowNavigationContext.d.ts.map +1 -1
- package/dist/components/ArrowNavigationContext.js +2 -1
- package/dist/components/ArrowNavigationContext.js.map +1 -1
- package/dist/components/AutoScroll.module.scss +8 -8
- package/dist/components/Background.d.ts.map +1 -1
- package/dist/components/Background.js +23 -15
- package/dist/components/Background.js.map +1 -1
- package/dist/components/Button.d.ts +1 -0
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +2 -4
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Card.module.scss +4 -2
- package/dist/components/Carousel.module.scss +31 -31
- package/dist/components/ClientFlex.d.ts.map +1 -1
- package/dist/components/ClientFlex.js +8 -58
- package/dist/components/ClientFlex.js.map +1 -1
- package/dist/components/ClientGrid.d.ts.map +1 -1
- package/dist/components/ClientGrid.js +8 -58
- package/dist/components/ClientGrid.js.map +1 -1
- package/dist/components/ColorInput.d.ts.map +1 -1
- package/dist/components/ColorInput.js +5 -19
- package/dist/components/ColorInput.js.map +1 -1
- package/dist/components/CompareImage.d.ts.map +1 -1
- package/dist/components/CompareImage.js +1 -1
- package/dist/components/CompareImage.js.map +1 -1
- package/dist/components/Dialog.module.scss +32 -32
- package/dist/components/DropdownWrapper.d.ts.map +1 -1
- package/dist/components/DropdownWrapper.js +144 -30
- package/dist/components/DropdownWrapper.js.map +1 -1
- package/dist/components/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker.js +14 -12
- package/dist/components/EmojiPicker.js.map +1 -1
- package/dist/components/EmojiPicker.module.scss +14 -0
- package/dist/components/EmojiPickerDropdown.d.ts.map +1 -1
- package/dist/components/EmojiPickerDropdown.js +1 -1
- package/dist/components/EmojiPickerDropdown.js.map +1 -1
- package/dist/components/Flex.d.ts.map +1 -1
- package/dist/components/Flex.js +1 -80
- package/dist/components/Flex.js.map +1 -1
- package/dist/components/Grid.d.ts.map +1 -1
- package/dist/components/Grid.js +1 -80
- package/dist/components/Grid.js.map +1 -1
- package/dist/components/Hover.d.ts +14 -0
- package/dist/components/Hover.d.ts.map +1 -0
- package/dist/components/Hover.js +99 -0
- package/dist/components/Hover.js.map +1 -0
- package/dist/components/Hover.module.scss +12 -0
- package/dist/components/HoverCard.d.ts +5 -0
- package/dist/components/HoverCard.d.ts.map +1 -0
- package/dist/components/HoverCard.js +10 -0
- package/dist/components/HoverCard.js.map +1 -0
- package/dist/components/HoverCard.module.scss +12 -0
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/Icon.js +8 -19
- package/dist/components/Icon.js.map +1 -1
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +9 -20
- package/dist/components/IconButton.js.map +1 -1
- package/dist/components/IconButton.module.scss +0 -24
- package/dist/components/Input.d.ts +1 -0
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +6 -2
- package/dist/components/Input.js.map +1 -1
- package/dist/components/MatrixFx.d.ts +15 -0
- package/dist/components/MatrixFx.d.ts.map +1 -0
- package/dist/components/MatrixFx.js +307 -0
- package/dist/components/MatrixFx.js.map +1 -0
- package/dist/components/Option.d.ts.map +1 -1
- package/dist/components/Option.js +38 -7
- package/dist/components/Option.js.map +1 -1
- package/dist/components/Option.module.scss +13 -10
- package/dist/components/Particle.d.ts +2 -1
- package/dist/components/Particle.d.ts.map +1 -1
- package/dist/components/Particle.js +27 -6
- package/dist/components/Particle.js.map +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +41 -31
- package/dist/components/Select.js.map +1 -1
- package/dist/components/ServerFlex.d.ts +1 -0
- package/dist/components/ServerFlex.d.ts.map +1 -1
- package/dist/components/ServerFlex.js +37 -22
- package/dist/components/ServerFlex.js.map +1 -1
- package/dist/components/ServerGrid.d.ts +1 -0
- package/dist/components/ServerGrid.d.ts.map +1 -1
- package/dist/components/ServerGrid.js +7 -2
- package/dist/components/ServerGrid.js.map +1 -1
- package/dist/components/SharedInteractiveStyles.module.scss +1 -1
- package/dist/components/ShineFx.d.ts +11 -0
- package/dist/components/ShineFx.d.ts.map +1 -0
- package/dist/components/ShineFx.js +15 -0
- package/dist/components/ShineFx.js.map +1 -0
- package/dist/components/ShineFx.module.scss +33 -0
- package/dist/components/Swiper.d.ts +17 -0
- package/dist/components/Swiper.d.ts.map +1 -0
- package/dist/components/Swiper.js +170 -0
- package/dist/components/Swiper.js.map +1 -0
- package/dist/components/Swiper.module.scss +31 -0
- package/dist/components/Switch.module.scss +1 -1
- package/dist/components/Textarea.d.ts +1 -0
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +6 -2
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/TiltFx.d.ts +1 -0
- package/dist/components/TiltFx.d.ts.map +1 -1
- package/dist/components/TiltFx.js +5 -4
- package/dist/components/TiltFx.js.map +1 -1
- package/dist/components/Timeline.d.ts +18 -0
- package/dist/components/Timeline.d.ts.map +1 -0
- package/dist/components/Timeline.js +28 -0
- package/dist/components/Timeline.js.map +1 -0
- package/dist/components/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +4 -3
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/components/Tooltip.module.scss +14 -0
- package/dist/components/TypeFx.d.ts +15 -0
- package/dist/components/TypeFx.d.ts.map +1 -0
- package/dist/components/TypeFx.js +105 -0
- package/dist/components/TypeFx.js.map +1 -0
- package/dist/components/UserMenu.d.ts.map +1 -1
- package/dist/components/UserMenu.js +3 -3
- package/dist/components/UserMenu.js.map +1 -1
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +8 -0
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/LayoutProvider.d.ts +1 -0
- package/dist/contexts/LayoutProvider.d.ts.map +1 -1
- package/dist/contexts/LayoutProvider.js +30 -4
- package/dist/contexts/LayoutProvider.js.map +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/css/styles.css.map +1 -1
- package/dist/css/tokens.css +1 -1
- package/dist/css/tokens.css.map +1 -1
- package/dist/data/emoji-data.json +0 -8
- package/dist/hooks/useResponsiveClasses.d.ts +9 -0
- package/dist/hooks/useResponsiveClasses.d.ts.map +1 -0
- package/dist/hooks/useResponsiveClasses.js +250 -0
- package/dist/hooks/useResponsiveClasses.js.map +1 -0
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +3 -1
- package/dist/icons.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/modules/code/CodeBlock.d.ts.map +1 -1
- package/dist/modules/code/CodeBlock.js +17 -7
- package/dist/modules/code/CodeBlock.js.map +1 -1
- package/dist/modules/code/LineNumber.css +34 -34
- package/dist/modules/navigation/HeadingLink.d.ts +2 -2
- package/dist/modules/navigation/HeadingLink.d.ts.map +1 -1
- package/dist/modules/navigation/HeadingLink.js +3 -3
- package/dist/modules/navigation/HeadingLink.js.map +1 -1
- package/dist/modules/navigation/HeadingLink.module.scss +5 -14
- package/dist/modules/navigation/HeadingNav.d.ts +1 -0
- package/dist/modules/navigation/HeadingNav.d.ts.map +1 -1
- package/dist/modules/navigation/HeadingNav.js +32 -30
- package/dist/modules/navigation/HeadingNav.js.map +1 -1
- package/dist/modules/navigation/Kbar.d.ts.map +1 -1
- package/dist/modules/navigation/Kbar.js +40 -99
- package/dist/modules/navigation/Kbar.js.map +1 -1
- package/dist/modules/navigation/MegaMenu.d.ts +1 -0
- package/dist/modules/navigation/MegaMenu.d.ts.map +1 -1
- package/dist/modules/navigation/MegaMenu.js +121 -44
- package/dist/modules/navigation/MegaMenu.js.map +1 -1
- package/dist/package.json +10 -1
- package/dist/styles/border.scss +36 -0
- package/dist/styles/breakpoints.scss +7 -0
- package/dist/styles/display.scss +64 -0
- package/dist/styles/flex.scss +87 -0
- package/dist/styles/global.scss +3 -24
- package/dist/styles/grid.scss +58 -0
- package/dist/styles/position.scss +310 -0
- package/dist/styles/typography.scss +36 -10
- package/dist/tokens/border.scss +28 -4
- package/dist/tokens/theme.scss +2 -0
- package/dist/tokens/typography.scss +5 -1
- package/package.json +10 -1
- package/README.md +0 -159
- package/USAGE.md +0 -55
- package/dist/README.md +0 -159
|
@@ -1236,4 +1236,314 @@
|
|
|
1236
1236
|
.s-right-160 {
|
|
1237
1237
|
right: var(--static-space-160);
|
|
1238
1238
|
}
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
@include breakpoints.xs {
|
|
1242
|
+
.xs-position-relative {
|
|
1243
|
+
position: relative;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.xs-position-fixed {
|
|
1247
|
+
position: fixed;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.xs-position-absolute {
|
|
1251
|
+
position: absolute;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
.xs-position-sticky {
|
|
1255
|
+
position: sticky;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.xs-position-static {
|
|
1259
|
+
position: static;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.xs-top-0 {
|
|
1263
|
+
top: 0;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.xs-left-0 {
|
|
1267
|
+
left: 0;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.xs-bottom-0 {
|
|
1271
|
+
bottom: 0;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.xs-right-0 {
|
|
1275
|
+
right: 0;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.xs-top-1 {
|
|
1279
|
+
top: var(--static-space-1);
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
.xs-left-1 {
|
|
1283
|
+
left: var(--static-space-1);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
.xs-bottom-1 {
|
|
1287
|
+
bottom: var(--static-space-1);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
.xs-right-1 {
|
|
1291
|
+
right: var(--static-space-1);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.xs-top-2 {
|
|
1295
|
+
top: var(--static-space-2);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.xs-left-2 {
|
|
1299
|
+
left: var(--static-space-2);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.xs-bottom-2 {
|
|
1303
|
+
bottom: var(--static-space-2);
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.xs-right-2 {
|
|
1307
|
+
right: var(--static-space-2);
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.xs-top-4 {
|
|
1311
|
+
top: var(--static-space-4);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
.xs-left-4 {
|
|
1315
|
+
left: var(--static-space-4);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.xs-bottom-4 {
|
|
1319
|
+
bottom: var(--static-space-4);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
.xs-right-4 {
|
|
1323
|
+
right: var(--static-space-4);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.xs-top-8 {
|
|
1327
|
+
top: var(--static-space-8);
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.xs-left-8 {
|
|
1331
|
+
left: var(--static-space-8);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
.xs-bottom-8 {
|
|
1335
|
+
bottom: var(--static-space-8);
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.xs-right-8 {
|
|
1339
|
+
right: var(--static-space-8);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
.xs-top-12 {
|
|
1343
|
+
top: var(--static-space-12);
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
.xs-left-12 {
|
|
1347
|
+
left: var(--static-space-12);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.xs-bottom-12 {
|
|
1351
|
+
bottom: var(--static-space-12);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.xs-right-12 {
|
|
1355
|
+
right: var(--static-space-12);
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.xs-top-16 {
|
|
1359
|
+
top: var(--static-space-16);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.xs-left-16 {
|
|
1363
|
+
left: var(--static-space-16);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.xs-bottom-16 {
|
|
1367
|
+
bottom: var(--static-space-16);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.xs-right-16 {
|
|
1371
|
+
right: var(--static-space-16);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.xs-top-20 {
|
|
1375
|
+
top: var(--static-space-20);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.xs-left-20 {
|
|
1379
|
+
left: var(--static-space-20);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.xs-bottom-20 {
|
|
1383
|
+
bottom: var(--static-space-20);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.xs-right-20 {
|
|
1387
|
+
right: var(--static-space-20);
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.xs-top-24 {
|
|
1391
|
+
top: var(--static-space-24);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
.xs-left-24 {
|
|
1395
|
+
left: var(--static-space-24);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
.xs-bottom-24 {
|
|
1399
|
+
bottom: var(--static-space-24);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.xs-right-24 {
|
|
1403
|
+
right: var(--static-space-24);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
.xs-top-32 {
|
|
1407
|
+
top: var(--static-space-32);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.xs-left-32 {
|
|
1411
|
+
left: var(--static-space-32);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.xs-bottom-32 {
|
|
1415
|
+
bottom: var(--static-space-32);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.xs-right-32 {
|
|
1419
|
+
right: var(--static-space-32);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.xs-top-40 {
|
|
1423
|
+
top: var(--static-space-40);
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
.xs-left-40 {
|
|
1427
|
+
left: var(--static-space-40);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.xs-bottom-40 {
|
|
1431
|
+
bottom: var(--static-space-40);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.xs-right-40 {
|
|
1435
|
+
right: var(--static-space-40);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.xs-top-48 {
|
|
1439
|
+
top: var(--static-space-48);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.xs-left-48 {
|
|
1443
|
+
left: var(--static-space-48);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.xs-bottom-48 {
|
|
1447
|
+
bottom: var(--static-space-48);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.xs-right-48 {
|
|
1451
|
+
right: var(--static-space-48);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
.xs-top-56 {
|
|
1455
|
+
top: var(--static-space-56);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.xs-left-56 {
|
|
1459
|
+
left: var(--static-space-56);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.xs-bottom-56 {
|
|
1463
|
+
bottom: var(--static-space-56);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
.xs-right-56 {
|
|
1467
|
+
right: var(--static-space-56);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.xs-top-64 {
|
|
1471
|
+
top: var(--static-space-64);
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
.xs-left-64 {
|
|
1475
|
+
left: var(--static-space-64);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
.xs-bottom-64 {
|
|
1479
|
+
bottom: var(--static-space-64);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
.xs-right-64 {
|
|
1483
|
+
right: var(--static-space-64);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.xs-top-80 {
|
|
1487
|
+
top: var(--static-space-80);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.xs-left-80 {
|
|
1491
|
+
left: var(--static-space-80);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.xs-bottom-80 {
|
|
1495
|
+
bottom: var(--static-space-80);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
.xs-right-80 {
|
|
1499
|
+
right: var(--static-space-80);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
.xs-top-104 {
|
|
1503
|
+
top: var(--static-space-104);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.xs-left-104 {
|
|
1507
|
+
left: var(--static-space-104);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.xs-bottom-104 {
|
|
1511
|
+
bottom: var(--static-space-104);
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.xs-right-104 {
|
|
1515
|
+
right: var(--static-space-104);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.xs-top-128 {
|
|
1519
|
+
top: var(--static-space-128);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.xs-left-128 {
|
|
1523
|
+
left: var(--static-space-128);
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
.xs-bottom-128 {
|
|
1527
|
+
bottom: var(--static-space-128);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.xs-right-128 {
|
|
1531
|
+
right: var(--static-space-128);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
.xs-top-160 {
|
|
1535
|
+
top: var(--static-space-160);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.xs-left-160 {
|
|
1539
|
+
left: var(--static-space-160);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
.xs-bottom-160 {
|
|
1543
|
+
bottom: var(--static-space-160);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.xs-right-160 {
|
|
1547
|
+
right: var(--static-space-160);
|
|
1548
|
+
}
|
|
1239
1549
|
}
|
|
@@ -19,6 +19,12 @@ html {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
@include breakpoints.xs {
|
|
23
|
+
html {
|
|
24
|
+
font-size: var(--font-scaling-mobile);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
h1, h2, h3, h4, h5, h6, p {
|
|
23
29
|
margin: 0;
|
|
24
30
|
}
|
|
@@ -43,32 +49,32 @@ h1, h2, h3, h4, h5, h6, p {
|
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
&.font-xl, & > .font-xl {
|
|
46
|
-
font-size: calc(var(--font-size-display-xl) * var(--font-size-
|
|
47
|
-
line-height: calc(var(--line-height-display-xl) * var(--line-height-
|
|
52
|
+
font-size: calc(var(--font-size-display-xl) * var(--font-size-display-multiplier));
|
|
53
|
+
line-height: calc(var(--line-height-display-xl) * var(--line-height-display-multiplier));
|
|
48
54
|
letter-spacing: -0.05em;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
&.font-l, & > .font-l {
|
|
52
|
-
font-size: calc(var(--font-size-display-l) * var(--font-size-
|
|
53
|
-
line-height: calc(var(--line-height-display-l) * var(--line-height-
|
|
58
|
+
font-size: calc(var(--font-size-display-l) * var(--font-size-display-multiplier));
|
|
59
|
+
line-height: calc(var(--line-height-display-l) * var(--line-height-display-multiplier));
|
|
54
60
|
letter-spacing: -0.04em;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
&.font-m, & > .font-m {
|
|
58
|
-
font-size: calc(var(--font-size-display-m) * var(--font-size-
|
|
59
|
-
line-height: calc(var(--line-height-display-m) * var(--line-height-
|
|
64
|
+
font-size: calc(var(--font-size-display-m) * var(--font-size-display-multiplier));
|
|
65
|
+
line-height: calc(var(--line-height-display-m) * var(--line-height-display-multiplier));
|
|
60
66
|
letter-spacing: -0.03em;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
&.font-s, & > .font-s {
|
|
64
|
-
font-size: calc(var(--font-size-display-s) * var(--font-size-
|
|
65
|
-
line-height: calc(var(--line-height-display-s) * var(--line-height-
|
|
70
|
+
font-size: calc(var(--font-size-display-s) * var(--font-size-display-multiplier));
|
|
71
|
+
line-height: calc(var(--line-height-display-s) * var(--line-height-display-multiplier));
|
|
66
72
|
letter-spacing: -0.02em;
|
|
67
73
|
}
|
|
68
74
|
|
|
69
75
|
&.font-xs, & > .font-xs {
|
|
70
|
-
font-size: calc(var(--font-size-display-xs) * var(--font-size-
|
|
71
|
-
line-height: calc(var(--line-height-display-xs) * var(--line-height-
|
|
76
|
+
font-size: calc(var(--font-size-display-xs) * var(--font-size-display-multiplier));
|
|
77
|
+
line-height: calc(var(--line-height-display-xs) * var(--line-height-display-multiplier));
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
80
|
|
|
@@ -157,6 +163,11 @@ h1, h2, h3, h4, h5, h6, p {
|
|
|
157
163
|
font-weight: var(--font-weight-label-default);
|
|
158
164
|
}
|
|
159
165
|
|
|
166
|
+
&.font-xl, & > .font-xl {
|
|
167
|
+
font-size: calc(var(--font-size-label-xl) * var(--font-size-label-multiplier));
|
|
168
|
+
line-height: calc(var(--line-height-label-xl) * var(--line-height-label-multiplier));
|
|
169
|
+
}
|
|
170
|
+
|
|
160
171
|
&.font-l, & > .font-l {
|
|
161
172
|
font-size: calc(var(--font-size-label-l) * var(--font-size-label-multiplier));
|
|
162
173
|
line-height: calc(var(--line-height-label-l) * var(--line-height-label-multiplier));
|
|
@@ -171,6 +182,11 @@ h1, h2, h3, h4, h5, h6, p {
|
|
|
171
182
|
font-size: calc(var(--font-size-label-s) * var(--font-size-label-multiplier));
|
|
172
183
|
line-height: calc(var(--line-height-label-s) * var(--line-height-label-multiplier));
|
|
173
184
|
}
|
|
185
|
+
|
|
186
|
+
&.font-xs, & > .font-xs {
|
|
187
|
+
font-size: calc(var(--font-size-label-xs) * var(--font-size-label-multiplier));
|
|
188
|
+
line-height: calc(var(--line-height-label-xs) * var(--line-height-label-multiplier));
|
|
189
|
+
}
|
|
174
190
|
}
|
|
175
191
|
|
|
176
192
|
.font-code {
|
|
@@ -184,6 +200,11 @@ h1, h2, h3, h4, h5, h6, p {
|
|
|
184
200
|
font-weight: var(--font-weight-code-default);
|
|
185
201
|
}
|
|
186
202
|
|
|
203
|
+
&.font-xl, & > .font-xl {
|
|
204
|
+
font-size: calc(var(--font-size-label-xl) * var(--font-size-label-multiplier));
|
|
205
|
+
line-height: calc(var(--line-height-label-xl) * var(--line-height-label-multiplier));
|
|
206
|
+
}
|
|
207
|
+
|
|
187
208
|
&.font-l, & > .font-l {
|
|
188
209
|
font-size: calc(var(--font-size-label-l) * var(--font-size-label-multiplier));
|
|
189
210
|
line-height: calc(var(--line-height-label-l) * var(--line-height-label-multiplier));
|
|
@@ -198,4 +219,9 @@ h1, h2, h3, h4, h5, h6, p {
|
|
|
198
219
|
font-size: calc(var(--font-size-label-s) * var(--font-size-label-multiplier));
|
|
199
220
|
line-height: calc(var(--line-height-label-s) * var(--line-height-label-multiplier));
|
|
200
221
|
}
|
|
222
|
+
|
|
223
|
+
&.font-xs, & > .font-xs {
|
|
224
|
+
font-size: calc(var(--font-size-label-xs) * var(--font-size-label-multiplier));
|
|
225
|
+
line-height: calc(var(--line-height-label-xs) * var(--line-height-label-multiplier));
|
|
226
|
+
}
|
|
201
227
|
}
|
package/dist/tokens/border.scss
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
--radius-l: 1rem;
|
|
15
15
|
--radius-l-nest-4: 1.25rem;
|
|
16
|
-
--radius-l-nest-8: 1.
|
|
16
|
+
--radius-l-nest-8: 1.625rem;
|
|
17
17
|
|
|
18
18
|
--radius-xl: 1.25rem;
|
|
19
19
|
--radius-xl-nest-4: 1.5rem;
|
|
20
20
|
--radius-xl-nest-8: 1.875rem;
|
|
21
21
|
|
|
22
|
-
--radius-full:
|
|
22
|
+
--radius-full: 999rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[data-border="conservative"] {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--radius-xl-nest-4: 1rem;
|
|
44
44
|
--radius-xl-nest-8: 1.25rem;
|
|
45
45
|
|
|
46
|
-
--radius-full:
|
|
46
|
+
--radius-full: 999rem;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
[data-border="rounded"] {
|
|
@@ -67,5 +67,29 @@
|
|
|
67
67
|
--radius-xl-nest-4: 2.25rem;
|
|
68
68
|
--radius-xl-nest-8: 2.75rem;
|
|
69
69
|
|
|
70
|
-
--radius-full:
|
|
70
|
+
--radius-full: 999rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-border="sharp"] {
|
|
74
|
+
--radius-xs: 0;
|
|
75
|
+
--radius-xs-nest-4: 0;
|
|
76
|
+
--radius-xs-nest-8: 0;
|
|
77
|
+
|
|
78
|
+
--radius-s: 0;
|
|
79
|
+
--radius-s-nest-4: 0;
|
|
80
|
+
--radius-s-nest-8: 0;
|
|
81
|
+
|
|
82
|
+
--radius-m: 0;
|
|
83
|
+
--radius-m-nest-4: 0;
|
|
84
|
+
--radius-m-nest-8: 0;
|
|
85
|
+
|
|
86
|
+
--radius-l: 0;
|
|
87
|
+
--radius-l-nest-4: 0;
|
|
88
|
+
--radius-l-nest-8: 0;
|
|
89
|
+
|
|
90
|
+
--radius-xl: 0;
|
|
91
|
+
--radius-xl-nest-4: 0;
|
|
92
|
+
--radius-xl-nest-8: 0;
|
|
93
|
+
|
|
94
|
+
--radius-full: 999rem;
|
|
71
95
|
}
|
package/dist/tokens/theme.scss
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
--font-label: var(--font-label);
|
|
5
5
|
--font-code: var(--font-code);
|
|
6
6
|
|
|
7
|
+
--font-size-display-multiplier: 1;
|
|
7
8
|
--font-size-heading-multiplier: 1;
|
|
8
9
|
--font-size-body-multiplier: 1;
|
|
9
10
|
--font-size-label-multiplier: 1;
|
|
10
11
|
|
|
12
|
+
--line-height-display-multiplier: 1;
|
|
11
13
|
--line-height-heading-multiplier: 1;
|
|
12
14
|
--line-height-body-multiplier: 1;
|
|
13
15
|
--line-height-label-multiplier: 1;
|
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
--font-size-body-s: 0.875rem;
|
|
42
42
|
--font-size-body-xs: 0.75rem;
|
|
43
43
|
|
|
44
|
+
--font-size-label-xl: 1.125rem;
|
|
44
45
|
--font-size-label-l: 1rem;
|
|
45
46
|
--font-size-label-m: 0.925rem;
|
|
46
47
|
--font-size-label-s: 0.825rem;
|
|
48
|
+
--font-size-label-xs: 0.75rem;
|
|
47
49
|
|
|
48
50
|
/* LINE HEIGHT */
|
|
49
51
|
--line-height-display-xl: 5rem;
|
|
@@ -64,9 +66,11 @@
|
|
|
64
66
|
--line-height-body-s: 1.125rem;
|
|
65
67
|
--line-height-body-xs: 1rem;
|
|
66
68
|
|
|
69
|
+
--line-height-label-xl: 1.5rem;
|
|
67
70
|
--line-height-label-l: 1.25rem;
|
|
68
71
|
--line-height-label-m: 1.25rem;
|
|
69
72
|
--line-height-label-s: 1rem;
|
|
73
|
+
--line-height-label-xs: 0.875rem;
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
@include breakpoints.m {
|
|
@@ -105,7 +109,7 @@
|
|
|
105
109
|
|
|
106
110
|
/* LINE HEIGHT */
|
|
107
111
|
--line-height-display-xl: 3rem;
|
|
108
|
-
--line-height-display-l:
|
|
112
|
+
--line-height-display-l: 2.75rem;
|
|
109
113
|
--line-height-display-m: 2.5rem;
|
|
110
114
|
--line-height-display-s: 2.5rem;
|
|
111
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@once-ui-system/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Once UI for Next.js NPM package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"once-ui",
|
|
@@ -13,6 +13,15 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "Once UI",
|
|
15
15
|
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/once-ui-system/core.git",
|
|
19
|
+
"directory": "packages/core"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/once-ui-system/core/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://docs.once-ui.com",
|
|
16
25
|
"main": "dist/index.js",
|
|
17
26
|
"exports": {
|
|
18
27
|
".": {
|
package/README.md
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
# Once UI
|
|
2
|
-
|
|
3
|
-
A design system for indie builders who move fast and break limits without neglecting quality. Once UI combines the simplicity of low-code with the power of code: write 70% less compared to shadcn + tailwind.
|
|
4
|
-
|
|
5
|
-
* **Customization**: Manage design config with the ThemeProvider context.
|
|
6
|
-
* **Components**: Access advanced components with simple APIs.
|
|
7
|
-
* **Data-viz**: Add responsive charts with a few lines of code.
|
|
8
|
-
* **SEO**: Use SEO components to simplify meta and schema setup.
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npm install @once-ui-system/core
|
|
14
|
-
# or
|
|
15
|
-
yarn add @once-ui-system/core
|
|
16
|
-
# or
|
|
17
|
-
pnpm add @once-ui-system/core
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Documentation
|
|
21
|
-
|
|
22
|
-
Learn how to build with Once UI at [docs.once-ui.com](https://docs.once-ui.com/once-ui/quick-start).
|
|
23
|
-
|
|
24
|
-
## Setup
|
|
25
|
-
|
|
26
|
-
Import styles and tokens in your root layout file:
|
|
27
|
-
|
|
28
|
-
```js
|
|
29
|
-
// Import the pre-compiled CSS files
|
|
30
|
-
import '@once-ui-system/core/css/styles.css';
|
|
31
|
-
import '@once-ui-system/core/css/tokens.css';
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Create a `Providers.tsx` component:
|
|
35
|
-
|
|
36
|
-
```js
|
|
37
|
-
"use client";
|
|
38
|
-
|
|
39
|
-
import { DataThemeProvider, IconProvider, ThemeProvider, ToastProvider } from "@once-ui-system/core";
|
|
40
|
-
|
|
41
|
-
export function Providers({ children }: { children: React.ReactNode }) {
|
|
42
|
-
return (
|
|
43
|
-
<ThemeProvider>
|
|
44
|
-
<DataThemeProvider>
|
|
45
|
-
<ToastProvider>
|
|
46
|
-
<IconProvider>
|
|
47
|
-
{children}
|
|
48
|
-
</IconProvider>
|
|
49
|
-
</ToastProvider>
|
|
50
|
-
</DataThemeProvider>
|
|
51
|
-
</ThemeProvider>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Wrap your app with the `Providers` component in your root layout:
|
|
57
|
-
|
|
58
|
-
```js
|
|
59
|
-
import { Providers } from "./providers";
|
|
60
|
-
|
|
61
|
-
export default function RootLayout({ children }: {
|
|
62
|
-
children: React.ReactNode
|
|
63
|
-
}) {
|
|
64
|
-
return (
|
|
65
|
-
<Providers>
|
|
66
|
-
{children}
|
|
67
|
-
</Providers>
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Prevent flash of unstyled content (FOUC) by adding the following script to the `<head>` of your root layout:
|
|
73
|
-
|
|
74
|
-
```js
|
|
75
|
-
<head>
|
|
76
|
-
<script
|
|
77
|
-
dangerouslySetInnerHTML={{
|
|
78
|
-
__html: `
|
|
79
|
-
(function() {
|
|
80
|
-
try {
|
|
81
|
-
const root = document.documentElement;
|
|
82
|
-
|
|
83
|
-
const defaultTheme = 'system';
|
|
84
|
-
root.setAttribute('data-neutral', 'gray');
|
|
85
|
-
root.setAttribute('data-brand', 'blue');
|
|
86
|
-
root.setAttribute('data-accent', 'indigo');
|
|
87
|
-
root.setAttribute('data-solid', 'contrast');
|
|
88
|
-
root.setAttribute('data-solid-style', 'flat');
|
|
89
|
-
root.setAttribute('data-border', 'playful');
|
|
90
|
-
root.setAttribute('data-surface', 'filled');
|
|
91
|
-
root.setAttribute('data-transition', 'all');
|
|
92
|
-
root.setAttribute('data-scaling', '100');
|
|
93
|
-
root.setAttribute('data-viz-style', 'categorical');
|
|
94
|
-
|
|
95
|
-
const resolveTheme = (themeValue) => {
|
|
96
|
-
if (!themeValue || themeValue === 'system') {
|
|
97
|
-
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
98
|
-
}
|
|
99
|
-
return themeValue;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const theme = localStorage.getItem('data-theme');
|
|
103
|
-
const resolvedTheme = resolveTheme(theme);
|
|
104
|
-
root.setAttribute('data-theme', resolvedTheme);
|
|
105
|
-
|
|
106
|
-
const styleKeys = ['neutral', 'brand', 'accent', 'solid', 'solid-style', 'viz-style', 'border', 'surface', 'transition', 'scaling'];
|
|
107
|
-
styleKeys.forEach(key => {
|
|
108
|
-
const value = localStorage.getItem('data-' + key);
|
|
109
|
-
if (value) {
|
|
110
|
-
root.setAttribute('data-' + key, value);
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
} catch (e) {
|
|
114
|
-
document.documentElement.setAttribute('data-theme', 'dark');
|
|
115
|
-
}
|
|
116
|
-
})();
|
|
117
|
-
`,
|
|
118
|
-
}}
|
|
119
|
-
/>
|
|
120
|
-
</head>
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Quick start
|
|
124
|
-
|
|
125
|
-
[Magic Portfolio](https://once-ui.com/products/magic-portfolio): Our free portfolio starter used and loved by thousands of creatives. Simple, customizable, responsive.
|
|
126
|
-
|
|
127
|
-
[Magic Store](https://once-ui.com/products/magic-store) (PRO): Our premium ecommerce storefront that lets you launch your merch store in minutes. Payment, production and shipping managed by Fourthwall.
|
|
128
|
-
|
|
129
|
-
[Magic Docs](https://once-ui.com/products/magic-docs) (PRO): Our premium documentation generator. Just add your MDX files and let Magic Docs handle the rest.
|
|
130
|
-
|
|
131
|
-
[Magic Bio](https://once-ui.com/products/magic-bio) (PRO): Our premium link-in-bio template that automatically fetches open-graph data. Just add your links and deploy.
|
|
132
|
-
|
|
133
|
-
[Once UI Blocks](https://once-ui.com/blocks) (PRO): Copy-paste pre-designed blocks and deploy fully-functional sites with lightning speed.
|
|
134
|
-
|
|
135
|
-
[Once UI for Figma](https://once-ui.com/figma) (PRO): Design and prototype entire products from scratch in hours.
|
|
136
|
-
|
|
137
|
-
## Creators
|
|
138
|
-
|
|
139
|
-
Connect with us!
|
|
140
|
-
|
|
141
|
-
**Lorant One**: [Portfolio](https://lorant.one) / [Threads](https://www.threads.net/@lorant.one) / [LinkedIn](https://www.linkedin.com/in/lorant-one/)
|
|
142
|
-
|
|
143
|
-
**Zsofia Komaromi**: [Portfolio](https://zsofia.pro) / [Threads](https://www.threads.net/@zsofia_kom) / [LinkedIn](https://www.linkedin.com/in/zsofiakomaromi/)
|
|
144
|
-
|
|
145
|
-
## Become a Oncer
|
|
146
|
-
|
|
147
|
-

|
|
148
|
-
|
|
149
|
-
Join the [Design Engineers Club](https://discord.com/invite/5EyAQ4eNdS) on Discord to connect with us and share your projects.
|
|
150
|
-
|
|
151
|
-
Found a bug? Report it [here](https://github.com/once-ui-system/once-ui/issues/new?labels=bug&template=bug_report.md). Got a feature request? Submit it [here](https://github.com/once-ui-system/once-ui/issues/new?labels=feature%20request&template=feature_request.md).
|
|
152
|
-
|
|
153
|
-
## Sponsors
|
|
154
|
-
|
|
155
|
-
Once UI is an indie project. [Sponsor us](https://github.com/sponsors/once-ui-system) and get featured on our site!
|
|
156
|
-
|
|
157
|
-
## License
|
|
158
|
-
|
|
159
|
-
Distributed under the MIT License. See `LICENSE.txt` for more information.
|