@regcheq/ui-vue-2 1.3.0 → 1.4.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/dist/index.css CHANGED
@@ -1001,7 +1001,7 @@
1001
1001
  }
1002
1002
  .rq-rich-checkbox-group {
1003
1003
  display: flex;
1004
- align-items: center;
1004
+ align-items: flex-start;
1005
1005
  gap: 12px;
1006
1006
  padding: 12px;
1007
1007
  background: #ffffff;
@@ -1010,6 +1010,9 @@
1010
1010
  cursor: pointer;
1011
1011
  transition: opacity 200ms ease;
1012
1012
  }
1013
+ .rq-rich-checkbox-group .rq-checkbox {
1014
+ margin-top: 2px;
1015
+ }
1013
1016
  .rq-rich-checkbox-group__content {
1014
1017
  flex: 1;
1015
1018
  display: flex;
@@ -1045,11 +1048,13 @@
1045
1048
  }
1046
1049
  .rq-checkbox-group {
1047
1050
  display: flex;
1048
- align-items: center;
1051
+ align-items: flex-start;
1049
1052
  gap: 12px;
1050
- height: 24px;
1051
1053
  cursor: pointer;
1052
1054
  }
1055
+ .rq-checkbox-group .rq-checkbox {
1056
+ margin-top: 2px;
1057
+ }
1053
1058
  .rq-checkbox-group__label {
1054
1059
  font-family: "Inter", sans-serif;
1055
1060
  font-weight: 400;
@@ -1454,51 +1459,33 @@
1454
1459
  flex: 1;
1455
1460
  min-width: 0;
1456
1461
  }
1457
- .rq-data-table {
1458
- position: relative;
1459
- display: flex;
1460
- flex-direction: column;
1461
- font-family: "Inter", sans-serif;
1462
- font-size: 14px;
1463
- color: #040045;
1464
- background: #ffffff;
1465
- border-radius: 12px;
1466
- overflow: clip;
1467
- }
1468
- .rq-data-table__search-bar {
1462
+ .rq-search-input {
1469
1463
  display: flex;
1470
1464
  align-items: center;
1471
- padding: 12px 16px;
1465
+ gap: 8px;
1472
1466
  }
1473
- .rq-data-table__search-input {
1474
- height: 36px;
1475
- padding: 0 12px;
1476
- border: 1px solid #d4d4d8;
1477
- border-radius: 4px;
1478
- font-family: "Inter", sans-serif;
1479
- font-size: 14px;
1480
- color: #040045;
1481
- background: #ffffff;
1482
- outline: none;
1483
- transition: border-color 200ms ease;
1467
+ .rq-search-input .rq-field {
1468
+ flex: 1;
1484
1469
  min-width: 220px;
1470
+ max-width: 234px;
1485
1471
  }
1486
- .rq-data-table__search-input::placeholder {
1487
- color: #a1a1aa;
1488
- }
1489
- .rq-data-table__search-input:focus {
1490
- border-color: #0064e0;
1491
- box-shadow: 0 0 0 2px rgba(0, 100, 224, 0.15);
1472
+ .rq-search-input__visually-hidden {
1473
+ position: absolute;
1474
+ width: 1px;
1475
+ height: 1px;
1476
+ padding: 0;
1477
+ margin: -1px;
1478
+ overflow: hidden;
1479
+ clip: rect(0 0 0 0);
1480
+ white-space: nowrap;
1481
+ border: 0;
1492
1482
  }
1493
- .rq-data-table__toolbar {
1483
+ .rq-page-size-select {
1494
1484
  display: flex;
1495
1485
  align-items: center;
1496
- justify-content: flex-end;
1497
1486
  gap: 8px;
1498
- height: 46px;
1499
- padding: 12px 16px;
1500
1487
  }
1501
- .rq-data-table__toolbar-label {
1488
+ .rq-page-size-select__label {
1502
1489
  font-family: "Inter", sans-serif;
1503
1490
  font-weight: 400;
1504
1491
  font-size: 12px;
@@ -1506,7 +1493,7 @@
1506
1493
  color: #71717a;
1507
1494
  white-space: nowrap;
1508
1495
  }
1509
- .rq-data-table__toolbar-select {
1496
+ .rq-page-size-select__select {
1510
1497
  display: inline-flex;
1511
1498
  align-items: center;
1512
1499
  width: 80px;
@@ -1523,51 +1510,94 @@
1523
1510
  cursor: pointer;
1524
1511
  appearance: none;
1525
1512
  }
1526
- .rq-data-table__scroll {
1513
+ .rq-selection-bar {
1514
+ display: flex;
1515
+ align-items: center;
1516
+ justify-content: space-between;
1517
+ padding: 12px 16px;
1518
+ background: #e6f0fc;
1519
+ border-radius: 8px;
1520
+ }
1521
+ .rq-selection-bar__info {
1522
+ display: flex;
1523
+ align-items: center;
1524
+ gap: 8px;
1525
+ font-family: "Inter", sans-serif;
1526
+ font-size: 14px;
1527
+ color: #040045;
1528
+ }
1529
+ .rq-selection-bar__dot {
1530
+ width: 6px;
1531
+ height: 6px;
1532
+ border-radius: 999px;
1533
+ background: #0064e0;
1534
+ }
1535
+ .rq-selection-bar__clear {
1536
+ background: none;
1537
+ border: none;
1538
+ padding: 0;
1539
+ font-family: "Inter", sans-serif;
1540
+ font-size: 14px;
1541
+ color: #0064e0;
1542
+ cursor: pointer;
1543
+ text-decoration: underline;
1544
+ }
1545
+ .rq-table {
1546
+ position: relative;
1547
+ display: flex;
1548
+ flex-direction: column;
1549
+ font-family: "Inter", sans-serif;
1550
+ font-size: 14px;
1551
+ color: #040045;
1552
+ background: #ffffff;
1553
+ border-radius: 0px;
1554
+ overflow: clip;
1555
+ }
1556
+ .rq-table__scroll {
1527
1557
  overflow: auto;
1528
1558
  flex: 1;
1529
1559
  }
1530
- .rq-data-table__scroll::-webkit-scrollbar {
1560
+ .rq-table__scroll::-webkit-scrollbar {
1531
1561
  width: 6px;
1532
1562
  height: 6px;
1533
1563
  }
1534
- .rq-data-table__scroll::-webkit-scrollbar-track {
1564
+ .rq-table__scroll::-webkit-scrollbar-track {
1535
1565
  background: transparent;
1536
1566
  }
1537
- .rq-data-table__scroll::-webkit-scrollbar-thumb {
1567
+ .rq-table__scroll::-webkit-scrollbar-thumb {
1538
1568
  background: #e4e4e7;
1539
1569
  border-radius: 999px;
1540
1570
  }
1541
- .rq-data-table__scroll::-webkit-scrollbar-corner {
1571
+ .rq-table__scroll::-webkit-scrollbar-corner {
1542
1572
  background: transparent;
1543
1573
  }
1544
- .rq-data-table__table {
1574
+ .rq-table__table {
1545
1575
  width: 100%;
1546
1576
  border-collapse: separate;
1547
1577
  border-spacing: 0;
1548
1578
  table-layout: fixed;
1549
1579
  }
1550
- .rq-data-table__thead {
1580
+ .rq-table__thead {
1551
1581
  position: sticky;
1552
1582
  top: 0;
1553
1583
  z-index: 4;
1554
1584
  background: #040045;
1555
1585
  }
1556
- .rq-data-table__tr--body {
1586
+ .rq-table__tr--body {
1557
1587
  cursor: pointer;
1558
1588
  background: #ffffff;
1559
1589
  transition: background 100ms ease;
1560
1590
  }
1561
- .rq-data-table__tr--body:hover {
1591
+ .rq-table__tr--body:hover {
1562
1592
  background: #e6f0fc;
1563
1593
  }
1564
- .rq-data-table__tr--body:active {
1594
+ .rq-table__tr--body:active {
1565
1595
  background: #f4f4f5;
1566
1596
  }
1567
- .rq-data-table__tr--empty {
1597
+ .rq-table__tr--empty {
1568
1598
  cursor: default;
1569
1599
  }
1570
- .rq-data-table__th {
1600
+ .rq-table__th {
1571
1601
  height: 48px;
1572
1602
  padding: 4px 16px;
1573
1603
  font-family: "Inter", sans-serif;
@@ -1581,11 +1611,11 @@
1581
1611
  cursor: grab;
1582
1612
  user-select: none;
1583
1613
  }
1584
- .rq-data-table__th--pinned {
1614
+ .rq-table__th--pinned {
1585
1615
  background: #040045;
1586
1616
  box-shadow: 2px 0 6px -1px rgba(4, 0, 69, 0.35);
1587
1617
  }
1588
- .rq-data-table__th--select {
1618
+ .rq-table__th--select {
1589
1619
  width: 40px;
1590
1620
  min-width: 40px;
1591
1621
  cursor: default;
@@ -1593,37 +1623,37 @@
1593
1623
  text-align: center;
1594
1624
  text-overflow: clip;
1595
1625
  }
1596
- .rq-data-table__th--select .rq-checkbox {
1626
+ .rq-table__th--select .rq-checkbox {
1597
1627
  border-color: rgba(255, 255, 255, 0.7);
1598
1628
  }
1599
- .rq-data-table__th--select .rq-checkbox--checked, .rq-data-table__th--select .rq-checkbox--indeterminate {
1629
+ .rq-table__th--select .rq-checkbox--checked, .rq-table__th--select .rq-checkbox--indeterminate {
1600
1630
  border-color: #ffffff;
1601
1631
  }
1602
- .rq-data-table__th--select .rq-checkbox .rq-checkbox__icon {
1632
+ .rq-table__th--select .rq-checkbox .rq-checkbox__icon {
1603
1633
  color: #ffffff;
1604
1634
  }
1605
- .rq-data-table__th--select .rq-checkbox:focus-within {
1635
+ .rq-table__th--select .rq-checkbox:focus-within {
1606
1636
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
1607
1637
  }
1608
- .rq-data-table__th--dragging {
1638
+ .rq-table__th--dragging {
1609
1639
  opacity: 0.5;
1610
1640
  cursor: grabbing;
1611
1641
  }
1612
- .rq-data-table__th--drag-over {
1642
+ .rq-table__th--drag-over {
1613
1643
  border-left: 2px solid #5497ea;
1614
1644
  }
1615
- .rq-data-table__th-content {
1645
+ .rq-table__th-content {
1616
1646
  display: flex;
1617
1647
  align-items: center;
1618
1648
  gap: 6px;
1619
1649
  position: relative;
1620
1650
  }
1621
- .rq-data-table__th-label {
1651
+ .rq-table__th-label {
1622
1652
  flex: 1;
1623
1653
  overflow: hidden;
1624
1654
  text-overflow: ellipsis;
1625
1655
  }
1626
- .rq-data-table__chevron-btn {
1656
+ .rq-table__chevron-btn {
1627
1657
  display: flex;
1628
1658
  align-items: center;
1629
1659
  justify-content: center;
@@ -1637,15 +1667,15 @@
1637
1667
  padding: 0;
1638
1668
  transition: color 200ms ease, background 200ms ease, transform 100ms ease;
1639
1669
  }
1640
- .rq-data-table__chevron-btn:hover {
1670
+ .rq-table__chevron-btn:hover {
1641
1671
  color: #ffffff;
1642
1672
  background: rgba(255, 255, 255, 0.1);
1643
1673
  }
1644
- .rq-data-table__chevron-btn--active {
1674
+ .rq-table__chevron-btn--active {
1645
1675
  color: #ffffff;
1646
1676
  transform: rotate(180deg);
1647
1677
  }
1648
- .rq-data-table__chevron-popover {
1678
+ .rq-table__chevron-popover {
1649
1679
  position: absolute;
1650
1680
  transform: translateX(-50%);
1651
1681
  z-index: 10;
@@ -1655,7 +1685,7 @@
1655
1685
  box-shadow: 0px 4px 12px 0px rgba(15, 15, 21, 0.1);
1656
1686
  min-width: 200px;
1657
1687
  }
1658
- .rq-data-table__td {
1688
+ .rq-table__td {
1659
1689
  padding: 8px 16px;
1660
1690
  white-space: nowrap;
1661
1691
  overflow: hidden;
@@ -1665,36 +1695,22 @@
1665
1695
  color: #18181b;
1666
1696
  vertical-align: middle;
1667
1697
  }
1668
- .rq-data-table__td--pinned {
1698
+ .rq-table__td--pinned {
1669
1699
  background: inherit;
1670
1700
  box-shadow: 2px 0 6px -1px rgba(4, 0, 69, 0.08);
1671
1701
  }
1672
- .rq-data-table__td--select {
1702
+ .rq-table__td--select {
1673
1703
  width: 40px;
1674
1704
  min-width: 40px;
1675
1705
  text-align: center;
1676
1706
  text-overflow: clip;
1677
1707
  }
1678
- .rq-data-table__td--empty {
1708
+ .rq-table__td--empty {
1679
1709
  padding: 48px 16px;
1680
1710
  text-align: center;
1681
1711
  color: #a1a1aa;
1682
1712
  }
1683
- .rq-data-table__pagination {
1684
- display: flex;
1685
- align-items: center;
1686
- justify-content: space-between;
1687
- padding: 24px 16px;
1688
- background: #ffffff;
1689
- }
1690
- .rq-data-table__pagination-info {
1691
- font-family: "Inter", sans-serif;
1692
- font-weight: 400;
1693
- font-size: 12px;
1694
- line-height: 16px;
1695
- color: #71717a;
1696
- }
1697
- .rq-data-table__context-menu {
1713
+ .rq-table__context-menu {
1698
1714
  position: absolute;
1699
1715
  z-index: 200;
1700
1716
  background: #ffffff;
@@ -1704,7 +1720,7 @@
1704
1720
  padding: 4px 0;
1705
1721
  min-width: 160px;
1706
1722
  }
1707
- .rq-data-table__context-menu-item {
1723
+ .rq-table__context-menu-item {
1708
1724
  display: flex;
1709
1725
  align-items: center;
1710
1726
  gap: 8px;
@@ -1719,9 +1735,40 @@
1719
1735
  cursor: pointer;
1720
1736
  transition: background 100ms ease;
1721
1737
  }
1722
- .rq-data-table__context-menu-item:hover {
1738
+ .rq-table__context-menu-item:hover {
1723
1739
  background: #e6f0fc;
1724
1740
  }
1741
+ .rq-data-table {
1742
+ display: flex;
1743
+ flex-direction: column;
1744
+ gap: 12px;
1745
+ font-family: "Inter", sans-serif;
1746
+ background: #ffffff;
1747
+ border-radius: 12px;
1748
+ padding: 16px;
1749
+ }
1750
+ .rq-data-table__search-bar {
1751
+ display: flex;
1752
+ }
1753
+ .rq-data-table__pagination {
1754
+ display: flex;
1755
+ align-items: center;
1756
+ justify-content: space-between;
1757
+ padding: 24px 16px;
1758
+ background: #ffffff;
1759
+ }
1760
+ .rq-data-table__pagination-info {
1761
+ font-family: "Inter", sans-serif;
1762
+ font-weight: 400;
1763
+ font-size: 12px;
1764
+ line-height: 16px;
1765
+ color: #71717a;
1766
+ }
1767
+ .rq-data-table__pagination-controls {
1768
+ display: flex;
1769
+ align-items: center;
1770
+ gap: 16px;
1771
+ }
1725
1772
  .rq-sidebar {
1726
1773
  background: #040045;
1727
1774
  display: flex;
@@ -1860,6 +1907,33 @@
1860
1907
  .rq-sidebar__badge--visible {
1861
1908
  background: transparent;
1862
1909
  }
1910
+ .rq-dialog-overlay {
1911
+ position: fixed;
1912
+ inset: 0;
1913
+ display: flex;
1914
+ align-items: center;
1915
+ justify-content: center;
1916
+ z-index: 1050;
1917
+ opacity: 0;
1918
+ visibility: hidden;
1919
+ pointer-events: none;
1920
+ transition: opacity 300ms ease, visibility 300ms ease;
1921
+ }
1922
+ .rq-dialog-overlay--open {
1923
+ opacity: 1;
1924
+ visibility: visible;
1925
+ pointer-events: auto;
1926
+ }
1927
+ .rq-dialog-overlay__backdrop {
1928
+ position: absolute;
1929
+ inset: 0;
1930
+ background: rgba(15, 15, 21, 0.5);
1931
+ }
1932
+ .rq-dialog-overlay .rq-dialog {
1933
+ position: relative;
1934
+ z-index: 1;
1935
+ }
1936
+
1863
1937
  .rq-dialog {
1864
1938
  background: #ffffff;
1865
1939
  border: 1px solid #e4e4e7;