@nearform/quantum 0.6.0 → 1.0.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.
@@ -380,13 +380,6 @@ var require_config_full = __commonJS({
380
380
  sans: [
381
381
  "ui-sans-serif",
382
382
  "system-ui",
383
- "-apple-system",
384
- "BlinkMacSystemFont",
385
- '"Segoe UI"',
386
- "Roboto",
387
- '"Helvetica Neue"',
388
- "Arial",
389
- '"Noto Sans"',
390
383
  "sans-serif",
391
384
  '"Apple Color Emoji"',
392
385
  '"Segoe UI Emoji"',
@@ -528,6 +521,12 @@ var require_config_full = __commonJS({
528
521
  "span-4": "span 4 / span 4",
529
522
  "span-5": "span 5 / span 5",
530
523
  "span-6": "span 6 / span 6",
524
+ "span-7": "span 7 / span 7",
525
+ "span-8": "span 8 / span 8",
526
+ "span-9": "span 9 / span 9",
527
+ "span-10": "span 10 / span 10",
528
+ "span-11": "span 11 / span 11",
529
+ "span-12": "span 12 / span 12",
531
530
  "span-full": "1 / -1"
532
531
  },
533
532
  gridRowEnd: {
@@ -538,7 +537,13 @@ var require_config_full = __commonJS({
538
537
  4: "4",
539
538
  5: "5",
540
539
  6: "6",
541
- 7: "7"
540
+ 7: "7",
541
+ 8: "8",
542
+ 9: "9",
543
+ 10: "10",
544
+ 11: "11",
545
+ 12: "12",
546
+ 13: "13"
542
547
  },
543
548
  gridRowStart: {
544
549
  auto: "auto",
@@ -548,10 +553,17 @@ var require_config_full = __commonJS({
548
553
  4: "4",
549
554
  5: "5",
550
555
  6: "6",
551
- 7: "7"
556
+ 7: "7",
557
+ 8: "8",
558
+ 9: "9",
559
+ 10: "10",
560
+ 11: "11",
561
+ 12: "12",
562
+ 13: "13"
552
563
  },
553
564
  gridTemplateColumns: {
554
565
  none: "none",
566
+ subgrid: "subgrid",
555
567
  1: "repeat(1, minmax(0, 1fr))",
556
568
  2: "repeat(2, minmax(0, 1fr))",
557
569
  3: "repeat(3, minmax(0, 1fr))",
@@ -567,12 +579,19 @@ var require_config_full = __commonJS({
567
579
  },
568
580
  gridTemplateRows: {
569
581
  none: "none",
582
+ subgrid: "subgrid",
570
583
  1: "repeat(1, minmax(0, 1fr))",
571
584
  2: "repeat(2, minmax(0, 1fr))",
572
585
  3: "repeat(3, minmax(0, 1fr))",
573
586
  4: "repeat(4, minmax(0, 1fr))",
574
587
  5: "repeat(5, minmax(0, 1fr))",
575
- 6: "repeat(6, minmax(0, 1fr))"
588
+ 6: "repeat(6, minmax(0, 1fr))",
589
+ 7: "repeat(7, minmax(0, 1fr))",
590
+ 8: "repeat(8, minmax(0, 1fr))",
591
+ 9: "repeat(9, minmax(0, 1fr))",
592
+ 10: "repeat(10, minmax(0, 1fr))",
593
+ 11: "repeat(11, minmax(0, 1fr))",
594
+ 12: "repeat(12, minmax(0, 1fr))"
576
595
  },
577
596
  height: ({ theme }) => __spreadProps(__spreadValues({
578
597
  auto: "auto"
@@ -594,6 +613,9 @@ var require_config_full = __commonJS({
594
613
  "5/6": "83.333333%",
595
614
  full: "100%",
596
615
  screen: "100vh",
616
+ svh: "100svh",
617
+ lvh: "100lvh",
618
+ dvh: "100dvh",
597
619
  min: "min-content",
598
620
  max: "max-content",
599
621
  fit: "fit-content"
@@ -696,13 +718,15 @@ var require_config_full = __commonJS({
696
718
  none: "none",
697
719
  full: "100%",
698
720
  screen: "100vh",
721
+ svh: "100svh",
722
+ lvh: "100lvh",
723
+ dvh: "100dvh",
699
724
  min: "min-content",
700
725
  max: "max-content",
701
726
  fit: "fit-content"
702
727
  }),
703
- maxWidth: ({ theme, breakpoints }) => __spreadValues({
728
+ maxWidth: ({ theme, breakpoints }) => __spreadValues(__spreadProps(__spreadValues({}, theme("spacing")), {
704
729
  none: "none",
705
- 0: "0rem",
706
730
  xs: "20rem",
707
731
  sm: "24rem",
708
732
  md: "28rem",
@@ -719,22 +743,23 @@ var require_config_full = __commonJS({
719
743
  max: "max-content",
720
744
  fit: "fit-content",
721
745
  prose: "65ch"
722
- }, breakpoints(theme("screens"))),
723
- minHeight: {
724
- 0: "0px",
746
+ }), breakpoints(theme("screens"))),
747
+ minHeight: ({ theme }) => __spreadProps(__spreadValues({}, theme("spacing")), {
725
748
  full: "100%",
726
749
  screen: "100vh",
750
+ svh: "100svh",
751
+ lvh: "100lvh",
752
+ dvh: "100dvh",
727
753
  min: "min-content",
728
754
  max: "max-content",
729
755
  fit: "fit-content"
730
- },
731
- minWidth: {
732
- 0: "0px",
756
+ }),
757
+ minWidth: ({ theme }) => __spreadProps(__spreadValues({}, theme("spacing")), {
733
758
  full: "100%",
734
759
  min: "min-content",
735
760
  max: "max-content",
736
761
  fit: "fit-content"
737
- },
762
+ }),
738
763
  objectPosition: {
739
764
  bottom: "bottom",
740
765
  center: "center",
@@ -750,15 +775,21 @@ var require_config_full = __commonJS({
750
775
  0: "0",
751
776
  5: "0.05",
752
777
  10: "0.1",
778
+ 15: "0.15",
753
779
  20: "0.2",
754
780
  25: "0.25",
755
781
  30: "0.3",
782
+ 35: "0.35",
756
783
  40: "0.4",
784
+ 45: "0.45",
757
785
  50: "0.5",
786
+ 55: "0.55",
758
787
  60: "0.6",
788
+ 65: "0.65",
759
789
  70: "0.7",
760
790
  75: "0.75",
761
791
  80: "0.8",
792
+ 85: "0.85",
762
793
  90: "0.9",
763
794
  95: "0.95",
764
795
  100: "1"
@@ -999,6 +1030,40 @@ var require_config_full = __commonJS({
999
1030
  "3/4": "75%",
1000
1031
  full: "100%"
1001
1032
  }),
1033
+ size: ({ theme }) => __spreadProps(__spreadValues({
1034
+ auto: "auto"
1035
+ }, theme("spacing")), {
1036
+ "1/2": "50%",
1037
+ "1/3": "33.333333%",
1038
+ "2/3": "66.666667%",
1039
+ "1/4": "25%",
1040
+ "2/4": "50%",
1041
+ "3/4": "75%",
1042
+ "1/5": "20%",
1043
+ "2/5": "40%",
1044
+ "3/5": "60%",
1045
+ "4/5": "80%",
1046
+ "1/6": "16.666667%",
1047
+ "2/6": "33.333333%",
1048
+ "3/6": "50%",
1049
+ "4/6": "66.666667%",
1050
+ "5/6": "83.333333%",
1051
+ "1/12": "8.333333%",
1052
+ "2/12": "16.666667%",
1053
+ "3/12": "25%",
1054
+ "4/12": "33.333333%",
1055
+ "5/12": "41.666667%",
1056
+ "6/12": "50%",
1057
+ "7/12": "58.333333%",
1058
+ "8/12": "66.666667%",
1059
+ "9/12": "75%",
1060
+ "10/12": "83.333333%",
1061
+ "11/12": "91.666667%",
1062
+ full: "100%",
1063
+ min: "min-content",
1064
+ max: "max-content",
1065
+ fit: "fit-content"
1066
+ }),
1002
1067
  width: ({ theme }) => __spreadProps(__spreadValues({
1003
1068
  auto: "auto"
1004
1069
  }, theme("spacing")), {
@@ -1030,6 +1095,9 @@ var require_config_full = __commonJS({
1030
1095
  "11/12": "91.666667%",
1031
1096
  full: "100%",
1032
1097
  screen: "100vw",
1098
+ svw: "100svw",
1099
+ lvw: "100lvw",
1100
+ dvw: "100dvw",
1033
1101
  min: "min-content",
1034
1102
  max: "max-content",
1035
1103
  fit: "fit-content"
@@ -1284,6 +1352,20 @@ var colors = {
1284
1352
  700: "#D95477",
1285
1353
  800: "#A02042",
1286
1354
  900: "#731837"
1355
+ },
1356
+ brandMidnight: {
1357
+ 10: "#f4f8fa",
1358
+ 30: "#97a1b8",
1359
+ 50: "#526288",
1360
+ 80: "#0c3d60",
1361
+ 100: "#000e38"
1362
+ },
1363
+ brandGreen: {
1364
+ 10: "#e5fcf5",
1365
+ 30: "#b2f7e1",
1366
+ 50: "#78edc4",
1367
+ 80: "#32ebae",
1368
+ 100: "#03e5a4"
1287
1369
  }
1288
1370
  };
1289
1371
 
@@ -1310,11 +1392,11 @@ var background = {
1310
1392
  DEFAULT: "#FFF",
1311
1393
  dark: "#000",
1312
1394
  alt: {
1313
- DEFAULT: colors.grey["50"],
1395
+ DEFAULT: colors.grey["100"],
1314
1396
  dark: colors.grey["700"]
1315
1397
  },
1316
1398
  subtle: {
1317
- DEFAULT: colors.purple["50"],
1399
+ DEFAULT: colors.grey["50"],
1318
1400
  dark: colors.grey["800"]
1319
1401
  },
1320
1402
  inverse: {
@@ -1325,36 +1407,36 @@ var background = {
1325
1407
 
1326
1408
  // src/colors/accent.ts
1327
1409
  var accent = {
1328
- DEFAULT: colors.blue["700"],
1329
- dark: "#FFF",
1410
+ DEFAULT: colors.brandMidnight["100"],
1411
+ dark: colors.brandMidnight["10"],
1330
1412
  alt: {
1331
- DEFAULT: colors.grey["300"],
1413
+ DEFAULT: colors.brandMidnight["80"],
1332
1414
  dark: colors.grey["600"]
1333
1415
  },
1334
1416
  hover: {
1335
- DEFAULT: colors.grey["900"],
1336
- dark: colors.grey["300"]
1417
+ DEFAULT: colors.brandMidnight["80"],
1418
+ dark: colors.brandMidnight["30"]
1337
1419
  },
1338
1420
  focus: {
1339
- DEFAULT: "#000",
1421
+ DEFAULT: colors.brandMidnight["100"],
1340
1422
  dark: colors.grey["100"]
1341
1423
  }
1342
1424
  };
1343
1425
 
1344
1426
  // src/colors/border.ts
1345
1427
  var border = {
1346
- DEFAULT: colors.grey["300"],
1347
- dark: colors.grey["500"],
1428
+ DEFAULT: colors.brandMidnight["30"],
1429
+ dark: colors.brandMidnight["50"],
1348
1430
  hover: {
1349
- DEFAULT: colors.grey["400"],
1350
- dark: colors.grey["300"]
1431
+ DEFAULT: colors.brandMidnight["50"],
1432
+ dark: colors.brandMidnight["80"]
1351
1433
  },
1352
1434
  focus: {
1353
- DEFAULT: colors.grey["500"],
1435
+ DEFAULT: colors.brandMidnight["80"],
1354
1436
  dark: colors.grey["400"]
1355
1437
  },
1356
1438
  subtle: {
1357
- DEFAULT: colors.grey["200"],
1439
+ DEFAULT: colors.brandMidnight["10"],
1358
1440
  dark: colors.grey["700"]
1359
1441
  }
1360
1442
  };
@@ -1370,34 +1452,38 @@ var feedback = {
1370
1452
  // src/colors/button.ts
1371
1453
  var button = {
1372
1454
  primary: {
1373
- DEFAULT: colors.blue["700"],
1374
- dark: "#FFF",
1455
+ DEFAULT: accent.DEFAULT,
1456
+ dark: accent.dark,
1375
1457
  hover: {
1376
- DEFAULT: colors.blue["800"],
1458
+ DEFAULT: accent.hover.DEFAULT,
1377
1459
  dark: accent.hover.dark
1378
1460
  },
1379
1461
  focus: {
1380
- DEFAULT: accent.DEFAULT,
1462
+ DEFAULT: accent.focus.DEFAULT,
1381
1463
  dark: accent.focus.dark
1382
1464
  },
1383
1465
  disabled: {
1384
- DEFAULT: colors.grey["50"],
1466
+ DEFAULT: background.subtle.DEFAULT,
1467
+ dark: background.subtle.dark
1468
+ },
1469
+ selected: {
1470
+ DEFAILT: colors.grey["100"],
1385
1471
  dark: background.subtle.dark
1386
1472
  }
1387
1473
  },
1388
1474
  secondary: {
1389
1475
  DEFAULT: "#FFF",
1390
- dark: "#000",
1476
+ dark: colors.grey["900"],
1391
1477
  hover: {
1392
- DEFAULT: colors.grey["50"],
1478
+ DEFAULT: background.subtle.DEFAULT,
1393
1479
  dark: background.subtle.dark
1394
1480
  },
1395
1481
  focus: {
1396
- DEFAULT: colors.blue["50"],
1397
- dark: colors.blue["900"]
1482
+ DEFAULT: background.alt.DEFAULT,
1483
+ dark: background.alt.dark
1398
1484
  },
1399
1485
  disabled: {
1400
- DEFAULT: colors.grey["50"],
1486
+ DEFAULT: background.subtle.DEFAULT,
1401
1487
  dark: background.subtle.dark
1402
1488
  },
1403
1489
  border: {
@@ -1414,29 +1500,41 @@ var button = {
1414
1500
  disabled: {
1415
1501
  DEFAULT: border.subtle.DEFAULT,
1416
1502
  dark: border.subtle.dark
1503
+ },
1504
+ selected: {
1505
+ DEFAILT: colors.grey["100"],
1506
+ dark: background.subtle.dark
1417
1507
  }
1418
1508
  }
1419
1509
  },
1420
1510
  tertiary: {
1421
1511
  hover: {
1422
- DEFAULT: colors.grey["50"],
1512
+ DEFAULT: background.subtle.DEFAULT,
1423
1513
  dark: background.subtle.dark
1424
1514
  },
1425
1515
  focus: {
1426
1516
  DEFAULT: background.DEFAULT,
1427
1517
  dark: colors.blue["900"]
1518
+ },
1519
+ selected: {
1520
+ DEFAILT: colors.grey["100"],
1521
+ dark: background.subtle.dark
1428
1522
  }
1429
1523
  },
1430
1524
  success: {
1431
1525
  DEFAULT: feedback.green,
1432
1526
  hover: {
1433
- DEFAULT: colors.green["500"]
1527
+ DEFAULT: colors.green["600"]
1434
1528
  },
1435
1529
  focus: {
1436
- DEFAULT: colors.green["600"]
1530
+ DEFAULT: colors.green["700"]
1437
1531
  },
1438
1532
  disabled: {
1439
1533
  DEFAULT: colors.grey["50"]
1534
+ },
1535
+ selected: {
1536
+ DEFAILT: colors.grey["100"],
1537
+ dark: background.subtle.dark
1440
1538
  }
1441
1539
  },
1442
1540
  danger: {
@@ -1445,10 +1543,14 @@ var button = {
1445
1543
  DEFAULT: colors.red["700"]
1446
1544
  },
1447
1545
  focus: {
1448
- DEFAULT: colors.red["600"]
1546
+ DEFAULT: colors.red["800"]
1449
1547
  },
1450
1548
  disabled: {
1451
1549
  DEFAULT: colors.grey["50"]
1550
+ },
1551
+ selected: {
1552
+ DEFAILT: colors.grey["100"],
1553
+ dark: background.subtle.dark
1452
1554
  }
1453
1555
  }
1454
1556
  };
@@ -1457,8 +1559,8 @@ var button = {
1457
1559
  var colors_default = __spreadValues({
1458
1560
  transparent: "transparent",
1459
1561
  current: "currentColor",
1460
- primary: colors.blue,
1461
- secondary: colors.pink,
1562
+ primary: colors.brandMidnight,
1563
+ secondary: colors.brandGreen,
1462
1564
  foreground,
1463
1565
  background,
1464
1566
  accent,
@@ -1511,6 +1613,8 @@ var tailwind_config_default = {
1511
1613
  blue: "0px 0px 0px 4px rgb(118,169,250)",
1512
1614
  red: "0px 0px 0px 4px rgb(249,128,128)",
1513
1615
  green: "0px 0px 0px 4px rgb(49,196,141,1)",
1616
+ brandGreen: "0px 0px 0px 4px #03e5a4",
1617
+ brandGreen10: "0px 0px 0px 4px #e5fcf5",
1514
1618
  none: "0px 0px"
1515
1619
  },
1516
1620
  fontFamily: {
@@ -1536,7 +1640,7 @@ var import_path = __toESM(require("path"));
1536
1640
  var tailwind_plugin_default = (0, import_plugin.default)(
1537
1641
  ({ config }) => {
1538
1642
  const twConfig = config();
1539
- let quantumPkgLoc = import_path.default.join(__dirname, "index.js");
1643
+ const quantumPkgLoc = import_path.default.join(__dirname, "index.js");
1540
1644
  if (Array.isArray(twConfig.content)) {
1541
1645
  if (!twConfig.content.includes(quantumPkgLoc)) {
1542
1646
  twConfig.content.push(quantumPkgLoc);