@snacky/ui 0.5.9 → 0.6.1

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
@@ -1550,6 +1550,203 @@
1550
1550
  background: var(--bg-action-primary-hover);
1551
1551
  }
1552
1552
 
1553
+ /* src/components/Stepper/Stepper.css */
1554
+ .snacky-stepper {
1555
+ list-style: none;
1556
+ margin: 0;
1557
+ padding: 0;
1558
+ display: flex;
1559
+ flex-direction: column;
1560
+ gap: var(--spacing-32);
1561
+ }
1562
+ .snacky-stepper__step {
1563
+ position: relative;
1564
+ display: flex;
1565
+ align-items: flex-start;
1566
+ gap: var(--gap-layout-block);
1567
+ }
1568
+ .snacky-stepper__step::before {
1569
+ content: "";
1570
+ position: absolute;
1571
+ left: 12px;
1572
+ top: 24px;
1573
+ bottom: calc(-1 * var(--spacing-32));
1574
+ border-left: 1px dashed var(--border-main);
1575
+ }
1576
+ .snacky-stepper__step--last::before {
1577
+ content: none;
1578
+ }
1579
+ .snacky-stepper__dot {
1580
+ position: relative;
1581
+ z-index: 1;
1582
+ flex-shrink: 0;
1583
+ display: inline-flex;
1584
+ align-items: center;
1585
+ justify-content: center;
1586
+ width: 24px;
1587
+ height: 24px;
1588
+ }
1589
+ .snacky-stepper__dot::before {
1590
+ content: "";
1591
+ position: absolute;
1592
+ width: 16px;
1593
+ height: 16px;
1594
+ border-radius: var(--radius-full);
1595
+ }
1596
+ .snacky-stepper__dot--done::before {
1597
+ background: var(--icon-brand);
1598
+ }
1599
+ .snacky-stepper__dot--pending::before {
1600
+ background: var(--bg-action-disabled);
1601
+ }
1602
+ .snacky-stepper__dot--cancelled::before {
1603
+ background: var(--bg-surface-accent);
1604
+ }
1605
+ .snacky-stepper__dot--cancelled svg {
1606
+ position: relative;
1607
+ z-index: 1;
1608
+ color: var(--icon-on-accent);
1609
+ }
1610
+ .snacky-stepper__body {
1611
+ display: flex;
1612
+ flex-direction: column;
1613
+ min-width: 0;
1614
+ }
1615
+ .snacky-stepper__label {
1616
+ font-family: var(--font-small-bold-family);
1617
+ font-size: var(--font-small-bold-size);
1618
+ font-weight: var(--font-small-bold-weight);
1619
+ line-height: var(--font-small-bold-line-height);
1620
+ letter-spacing: var(--font-small-bold-letter-spacing);
1621
+ }
1622
+ .snacky-stepper__label--done {
1623
+ color: var(--text-primary);
1624
+ }
1625
+ .snacky-stepper__label--pending {
1626
+ color: var(--text-secondary);
1627
+ }
1628
+ .snacky-stepper__label--cancelled {
1629
+ color: var(--text-error);
1630
+ }
1631
+ .snacky-stepper__time {
1632
+ font-family: var(--font-small-regular-family);
1633
+ font-size: var(--font-small-regular-size);
1634
+ font-weight: var(--font-small-regular-weight);
1635
+ line-height: var(--font-small-regular-line-height);
1636
+ letter-spacing: var(--font-small-regular-letter-spacing);
1637
+ color: var(--text-secondary);
1638
+ }
1639
+
1640
+ /* src/components/Calendar/Calendar.css */
1641
+ .snacky-calendar {
1642
+ width: 100%;
1643
+ max-width: 360px;
1644
+ display: flex;
1645
+ flex-direction: column;
1646
+ gap: var(--spacing-24);
1647
+ padding: var(--spacing-24);
1648
+ background: var(--bg-surface);
1649
+ box-sizing: border-box;
1650
+ }
1651
+ .snacky-calendar__header {
1652
+ display: flex;
1653
+ align-items: center;
1654
+ justify-content: space-between;
1655
+ gap: var(--spacing-8);
1656
+ }
1657
+ .snacky-calendar__nav {
1658
+ flex-shrink: 0;
1659
+ display: inline-flex;
1660
+ align-items: center;
1661
+ justify-content: center;
1662
+ width: 24px;
1663
+ height: 24px;
1664
+ padding: 0;
1665
+ border: none;
1666
+ background: none;
1667
+ color: var(--icon-primary);
1668
+ cursor: pointer;
1669
+ }
1670
+ .snacky-calendar__nav--next {
1671
+ transform: scaleX(-1);
1672
+ }
1673
+ .snacky-calendar__label {
1674
+ flex: 1;
1675
+ text-align: center;
1676
+ font-family: var(--font-h3-bold-family);
1677
+ font-size: var(--font-h3-bold-size);
1678
+ font-weight: var(--font-h3-bold-weight);
1679
+ line-height: var(--font-h3-bold-line-height);
1680
+ letter-spacing: var(--font-h3-bold-letter-spacing);
1681
+ color: var(--text-primary);
1682
+ }
1683
+ .snacky-calendar__grid {
1684
+ display: grid;
1685
+ grid-template-columns: repeat(7, 1fr);
1686
+ justify-items: center;
1687
+ align-items: center;
1688
+ row-gap: 19px;
1689
+ }
1690
+ .snacky-calendar__weekday {
1691
+ height: 30px;
1692
+ display: inline-flex;
1693
+ align-items: center;
1694
+ font-family: var(--font-small-regular-family);
1695
+ font-size: var(--font-small-regular-size);
1696
+ font-weight: var(--font-small-regular-weight);
1697
+ line-height: var(--font-small-regular-line-height);
1698
+ letter-spacing: var(--font-small-regular-letter-spacing);
1699
+ color: var(--text-primary);
1700
+ }
1701
+ .snacky-calendar__day {
1702
+ position: relative;
1703
+ width: 100%;
1704
+ height: 40px;
1705
+ display: inline-flex;
1706
+ align-items: center;
1707
+ justify-content: center;
1708
+ border: none;
1709
+ background: none;
1710
+ padding: 0;
1711
+ cursor: pointer;
1712
+ font-family: var(--font-h3-regular-family, var(--font-h3-bold-family));
1713
+ font-size: 16px;
1714
+ line-height: 36px;
1715
+ color: var(--text-primary);
1716
+ }
1717
+ .snacky-calendar__day--outside {
1718
+ color: var(--text-disabled);
1719
+ cursor: default;
1720
+ }
1721
+ .snacky-calendar__day--in-range {
1722
+ background: var(--bg-surface-highlight);
1723
+ }
1724
+ .snacky-calendar__day-number {
1725
+ position: relative;
1726
+ z-index: 1;
1727
+ display: inline-flex;
1728
+ align-items: center;
1729
+ justify-content: center;
1730
+ width: 40px;
1731
+ height: 40px;
1732
+ border-radius: var(--radius-full);
1733
+ }
1734
+ .snacky-calendar__day--selected .snacky-calendar__day-number {
1735
+ background: var(--bg-action-primary);
1736
+ font-weight: 700;
1737
+ }
1738
+ .snacky-calendar__day--selected {
1739
+ background: var(--bg-surface-highlight);
1740
+ }
1741
+ .snacky-calendar__marker {
1742
+ position: absolute;
1743
+ bottom: 2px;
1744
+ width: 8px;
1745
+ height: 8px;
1746
+ border-radius: var(--radius-full);
1747
+ background: var(--bg-action-primary);
1748
+ }
1749
+
1553
1750
  /* src/components/Avatar/Avatar.css */
1554
1751
  .snacky-avatar {
1555
1752
  display: block;