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