@pimolu/web-styles 0.1.0-beta.3.1 → 0.1.0-beta.5

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/pimolu.css CHANGED
@@ -987,6 +987,12 @@
987
987
  align-items: center;
988
988
  justify-content: center;
989
989
  }
990
+ .pimolu-button__loading-indicator {
991
+ display: inline-flex;
992
+ align-items: center;
993
+ justify-content: center;
994
+ flex-shrink: 0;
995
+ }
990
996
  .pimolu-button__spinner {
991
997
  width: 1em;
992
998
  height: 1em;
@@ -1649,172 +1655,6 @@
1649
1655
  }
1650
1656
  }
1651
1657
 
1652
- /* src/spinner.css */
1653
- .pimolu-spinner {
1654
- --pimolu-spinner-size: 20px;
1655
- --pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
1656
- --pimolu-spinner-color: currentColor;
1657
- display: inline-flex;
1658
- align-items: center;
1659
- justify-content: center;
1660
- flex: 0 0 auto;
1661
- box-sizing: border-box;
1662
- min-width: 0;
1663
- color: var(--pimolu-spinner-color);
1664
- line-height: 1;
1665
- vertical-align: middle;
1666
- user-select: none;
1667
- }
1668
- .pimolu-spinner--xs {
1669
- --pimolu-spinner-size: 12px;
1670
- }
1671
- .pimolu-spinner--sm {
1672
- --pimolu-spinner-size: 16px;
1673
- }
1674
- .pimolu-spinner--md {
1675
- --pimolu-spinner-size: 20px;
1676
- }
1677
- .pimolu-spinner--lg {
1678
- --pimolu-spinner-size: 24px;
1679
- }
1680
- .pimolu-spinner--xl {
1681
- --pimolu-spinner-size: 32px;
1682
- }
1683
- .pimolu-spinner--inherit {
1684
- --pimolu-spinner-color: currentColor;
1685
- }
1686
- .pimolu-spinner--neutral {
1687
- --pimolu-spinner-color: var(--pimolu-foreground, currentColor);
1688
- }
1689
- .pimolu-spinner--primary {
1690
- --pimolu-spinner-color: var(--pimolu-primary, currentColor);
1691
- }
1692
- .pimolu-spinner--secondary {
1693
- --pimolu-spinner-color: var(--pimolu-secondary, currentColor);
1694
- }
1695
- .pimolu-spinner--success {
1696
- --pimolu-spinner-color: var(--pimolu-success, currentColor);
1697
- }
1698
- .pimolu-spinner--warning {
1699
- --pimolu-spinner-color: var(--pimolu-warning, currentColor);
1700
- }
1701
- .pimolu-spinner--danger {
1702
- --pimolu-spinner-color: var(--pimolu-danger, currentColor);
1703
- }
1704
- .pimolu-spinner__visual {
1705
- display: inline-flex;
1706
- align-items: center;
1707
- justify-content: center;
1708
- flex: 0 0 auto;
1709
- width: var(--pimolu-spinner-size);
1710
- height: var(--pimolu-spinner-size);
1711
- }
1712
- .pimolu-spinner__svg {
1713
- display: block;
1714
- width: 100%;
1715
- height: 100%;
1716
- overflow: visible;
1717
- transform-origin: center;
1718
- animation: pimolu-spinner-rotate 1s linear infinite;
1719
- }
1720
- .pimolu-spinner__track,
1721
- .pimolu-spinner__indicator {
1722
- fill: none;
1723
- stroke: currentColor;
1724
- stroke-width: 2.5;
1725
- }
1726
- .pimolu-spinner__track {
1727
- opacity: 0.18;
1728
- }
1729
- .pimolu-spinner__indicator {
1730
- stroke-linecap: round;
1731
- }
1732
- .pimolu-spinner--circular .pimolu-spinner__indicator {
1733
- stroke-dasharray: 16 57;
1734
- }
1735
- .pimolu-spinner--arc .pimolu-spinner__indicator {
1736
- stroke-dasharray: 42 57;
1737
- }
1738
- .pimolu-spinner--arc .pimolu-spinner__track {
1739
- opacity: 0;
1740
- }
1741
- .pimolu-spinner--arc .pimolu-spinner__svg {
1742
- animation-duration: 1.3s;
1743
- }
1744
- @keyframes pimolu-spinner-rotate {
1745
- from {
1746
- transform: rotate(0deg);
1747
- }
1748
- to {
1749
- transform: rotate(360deg);
1750
- }
1751
- }
1752
- .pimolu-spinner--dots .pimolu-spinner__visual {
1753
- width: calc(var(--pimolu-spinner-size) * 1.5);
1754
- gap: calc(var(--pimolu-spinner-size) * 0.14);
1755
- }
1756
- .pimolu-spinner__dot {
1757
- display: block;
1758
- flex: 0 0 auto;
1759
- width: var(--pimolu-spinner-dot-size);
1760
- height: var(--pimolu-spinner-dot-size);
1761
- border-radius: 50%;
1762
- background: currentColor;
1763
- animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
1764
- }
1765
- .pimolu-spinner__dot:nth-child(1) {
1766
- animation-delay: -0.32s;
1767
- }
1768
- .pimolu-spinner__dot:nth-child(2) {
1769
- animation-delay: -0.16s;
1770
- }
1771
- .pimolu-spinner__dot:nth-child(3) {
1772
- animation-delay: 0s;
1773
- }
1774
- @keyframes pimolu-spinner-dot {
1775
- 0%, 80%, 100% {
1776
- opacity: 0.35;
1777
- transform: translateY(0);
1778
- }
1779
- 40% {
1780
- opacity: 1;
1781
- transform: translateY(-25%);
1782
- }
1783
- }
1784
- .pimolu-spinner__label {
1785
- position: absolute;
1786
- width: 1px;
1787
- height: 1px;
1788
- padding: 0;
1789
- margin: -1px;
1790
- overflow: hidden;
1791
- clip: rect(0, 0, 0, 0);
1792
- clip-path: inset(50%);
1793
- white-space: nowrap;
1794
- border: 0;
1795
- }
1796
- @media (prefers-reduced-motion: reduce) {
1797
- .pimolu-spinner__svg,
1798
- .pimolu-spinner__dot {
1799
- animation: none;
1800
- }
1801
- .pimolu-spinner__dot {
1802
- opacity: 1;
1803
- transform: none;
1804
- }
1805
- }
1806
- @media (forced-colors: active) {
1807
- .pimolu-spinner {
1808
- color: CanvasText;
1809
- }
1810
- .pimolu-spinner__track {
1811
- opacity: 0.4;
1812
- }
1813
- .pimolu-spinner__dot {
1814
- background: currentColor;
1815
- }
1816
- }
1817
-
1818
1658
  /* src/switch.css */
1819
1659
  .pimolu-switch {
1820
1660
  --pimolu-switch-track-width: 42px;
@@ -3801,6 +3641,32 @@
3801
3641
  background: ButtonFace;
3802
3642
  }
3803
3643
  }
3644
+ .pimolu-slider__control::-webkit-slider-thumb {
3645
+ transition: box-shadow 150ms ease-out;
3646
+ }
3647
+ .pimolu-slider__control::-moz-range-thumb {
3648
+ transition: box-shadow 150ms ease-out;
3649
+ }
3650
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
3651
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3652
+ }
3653
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
3654
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3655
+ }
3656
+ @media (prefers-reduced-motion: reduce) {
3657
+ .pimolu-slider__control::-webkit-slider-thumb {
3658
+ transition: none;
3659
+ }
3660
+ .pimolu-slider__control::-moz-range-thumb {
3661
+ transition: none;
3662
+ }
3663
+ }
3664
+ [data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
3665
+ transition: none;
3666
+ }
3667
+ [data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
3668
+ transition: none;
3669
+ }
3804
3670
 
3805
3671
  /* src/range-slider.css */
3806
3672
  .pimolu-range-slider {
@@ -4628,6 +4494,10 @@
4628
4494
  }
4629
4495
 
4630
4496
  /* src/tabs.css */
4497
+ :root {
4498
+ --pimolu-tabs-indicator-duration: 240ms;
4499
+ --pimolu-tabs-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
4500
+ }
4631
4501
  .pimolu-tabs {
4632
4502
  --pimolu-tabs-height: 40px;
4633
4503
  --pimolu-tabs-padding-x: 14px;
@@ -4693,18 +4563,26 @@
4693
4563
  flex: 1 1 auto;
4694
4564
  flex-wrap: nowrap;
4695
4565
  overflow-x: auto;
4566
+ overflow-y: hidden;
4696
4567
  overscroll-behavior-inline: contain;
4697
4568
  }
4698
4569
  .pimolu-tabs__list[data-scrollable=true] .pimolu-tabs__trigger {
4699
4570
  flex: 0 0 auto;
4700
4571
  }
4701
- .pimolu-tabs__list[data-scrollable=true] {
4572
+ .pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true]) {
4702
4573
  scrollbar-width: none;
4703
4574
  -ms-overflow-style: none;
4704
4575
  }
4705
- .pimolu-tabs__list[data-scrollable=true]::-webkit-scrollbar {
4576
+ .pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true])::-webkit-scrollbar {
4706
4577
  display: none;
4707
4578
  }
4579
+ .pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true] {
4580
+ scrollbar-width: thin;
4581
+ }
4582
+ .pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true]::-webkit-scrollbar {
4583
+ display: block;
4584
+ height: 8px;
4585
+ }
4708
4586
  .pimolu-tabs__scroll {
4709
4587
  display: inline-grid;
4710
4588
  flex: none;
@@ -4853,7 +4731,7 @@
4853
4731
  .pimolu-tabs--segmented .pimolu-tabs__trigger {
4854
4732
  position: relative;
4855
4733
  flex: 1 1 0;
4856
- min-width: 0;
4734
+ min-width: max-content;
4857
4735
  padding-inline: var(--pimolu-spacing-3, 12px);
4858
4736
  border-radius: 999px;
4859
4737
  color: var(--pimolu-muted-foreground);
@@ -4944,8 +4822,82 @@
4944
4822
  box-shadow: inset 2px 0 0 var(--pimolu-primary);
4945
4823
  }
4946
4824
  }
4825
+ .pimolu-tabs__list {
4826
+ position: relative;
4827
+ isolation: isolate;
4828
+ }
4829
+ .pimolu-tabs__list > .pimolu-tabs__trigger {
4830
+ position: relative;
4831
+ z-index: 1;
4832
+ }
4833
+ .pimolu-tabs__indicator {
4834
+ position: absolute;
4835
+ top: 0;
4836
+ left: 0;
4837
+ z-index: 0;
4838
+ pointer-events: none;
4839
+ border-radius: var(--pimolu-radius-sm, 4px);
4840
+ }
4841
+ .pimolu-tabs__indicator[hidden] {
4842
+ display: none;
4843
+ }
4844
+ .pimolu-tabs__indicator[data-ready=true] {
4845
+ transition-property:
4846
+ transform,
4847
+ width,
4848
+ height;
4849
+ transition-duration: var(--pimolu-tabs-indicator-duration, 240ms);
4850
+ transition-timing-function: var(--pimolu-tabs-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
4851
+ }
4852
+ .pimolu-tabs__indicator::before {
4853
+ content: "";
4854
+ position: absolute;
4855
+ inset: 0;
4856
+ border-radius: inherit;
4857
+ }
4858
+ .pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
4859
+ inset-block-start: auto;
4860
+ height: 2px;
4861
+ background: var(--pimolu-primary);
4862
+ }
4863
+ .pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
4864
+ inset-block: 0;
4865
+ inset-inline-start: auto;
4866
+ width: 2px;
4867
+ height: auto;
4868
+ }
4869
+ .pimolu-tabs--solid > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
4870
+ background: var(--pimolu-primary);
4871
+ }
4872
+ .pimolu-tabs--soft > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
4873
+ background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
4874
+ }
4875
+ .pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator {
4876
+ border-radius: 999px;
4877
+ }
4878
+ .pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
4879
+ background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
4880
+ box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
4881
+ }
4882
+ .pimolu-tabs__list[data-indicator=true] > .pimolu-tabs__trigger[data-state=active] {
4883
+ background: transparent;
4884
+ box-shadow: none;
4885
+ }
4886
+ @media (max-width: 600px) {
4887
+ .pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
4888
+ inset-inline-start: 0;
4889
+ inset-inline-end: auto;
4890
+ }
4891
+ }
4892
+ .pimolu-tabs[data-animated=false] > .pimolu-tabs__list-wrap > .pimolu-tabs__list > :is(.pimolu-tabs__indicator, .pimolu-tabs__trigger) {
4893
+ transition: none;
4894
+ }
4895
+ .pimolu-tabs[data-animated=false] > .pimolu-tabs__panel {
4896
+ animation: none;
4897
+ }
4947
4898
  @media (prefers-reduced-motion: reduce) {
4948
- .pimolu-tabs__trigger {
4899
+ .pimolu-tabs__trigger,
4900
+ .pimolu-tabs__indicator[data-ready=true] {
4949
4901
  transition: none;
4950
4902
  }
4951
4903
  .pimolu-tabs__panel[data-state=active] {
@@ -4953,6 +4905,9 @@
4953
4905
  }
4954
4906
  }
4955
4907
  @media (forced-colors: active) {
4908
+ .pimolu-tabs__indicator {
4909
+ display: none;
4910
+ }
4956
4911
  .pimolu-tabs__trigger[data-state=active] {
4957
4912
  border: 1px solid Highlight;
4958
4913
  color: Highlight;
@@ -5089,15 +5044,23 @@
5089
5044
  }
5090
5045
 
5091
5046
  /* src/segmented-control.css */
5047
+ :root {
5048
+ --pimolu-segmented-indicator-duration: 240ms;
5049
+ --pimolu-segmented-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
5050
+ }
5092
5051
  .pimolu-segmented-control {
5093
5052
  --pimolu-segmented-height: 32px;
5094
5053
  --pimolu-segmented-padding-x: 12px;
5095
5054
  --pimolu-segmented-font-size: 0.875rem;
5096
5055
  display: inline-flex;
5056
+ position: relative;
5057
+ isolation: isolate;
5058
+ flex-wrap: nowrap;
5097
5059
  align-items: center;
5098
5060
  gap: 0;
5099
5061
  box-sizing: border-box;
5100
5062
  max-width: 100%;
5063
+ min-width: 0;
5101
5064
  padding: 4px;
5102
5065
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
5103
5066
  border-radius: 999px;
@@ -5112,13 +5075,16 @@
5112
5075
  flex-direction: column;
5113
5076
  align-items: stretch;
5114
5077
  width: fit-content;
5115
- min-width: 12rem;
5078
+ min-width: min(12rem, 100%);
5116
5079
  border-radius: var(--pimolu-radius-lg, 12px);
5117
5080
  }
5118
5081
  .pimolu-segmented-control--full-width.pimolu-segmented-control--vertical {
5119
5082
  width: 100%;
5120
5083
  }
5121
5084
  .pimolu-segmented-control__item {
5085
+ position: relative;
5086
+ z-index: 1;
5087
+ flex-shrink: 0;
5122
5088
  display: inline-flex;
5123
5089
  align-items: center;
5124
5090
  justify-content: center;
@@ -5144,7 +5110,7 @@
5144
5110
  }
5145
5111
  .pimolu-segmented-control--full-width .pimolu-segmented-control__item {
5146
5112
  flex: 1 1 0;
5147
- min-width: 0;
5113
+ min-width: max-content;
5148
5114
  }
5149
5115
  .pimolu-segmented-control--vertical .pimolu-segmented-control__item {
5150
5116
  flex: 0 0 auto;
@@ -5183,12 +5149,68 @@
5183
5149
  --pimolu-segmented-padding-x: 16px;
5184
5150
  --pimolu-segmented-font-size: 1rem;
5185
5151
  }
5152
+ .pimolu-segmented-control__indicator {
5153
+ position: absolute;
5154
+ left: 0;
5155
+ top: 0;
5156
+ z-index: 0;
5157
+ border-radius: 999px;
5158
+ pointer-events: none;
5159
+ background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
5160
+ box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
5161
+ }
5162
+ .pimolu-segmented-control__indicator[hidden] {
5163
+ display: none;
5164
+ }
5165
+ .pimolu-segmented-control__indicator[data-ready=true] {
5166
+ transition-property:
5167
+ transform,
5168
+ width,
5169
+ height;
5170
+ transition-duration: var(--pimolu-segmented-indicator-duration, 240ms);
5171
+ transition-timing-function: var(--pimolu-segmented-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
5172
+ }
5173
+ .pimolu-segmented-control[data-indicator=true] > .pimolu-segmented-control__item[data-state=active] {
5174
+ background: transparent;
5175
+ box-shadow: none;
5176
+ }
5177
+ .pimolu-segmented-control[data-animated=false] > :is(.pimolu-segmented-control__indicator, .pimolu-segmented-control__item) {
5178
+ transition: none;
5179
+ }
5180
+ .pimolu-segmented-control {
5181
+ flex-wrap: nowrap;
5182
+ overflow-x: auto;
5183
+ overflow-y: hidden;
5184
+ overscroll-behavior: contain;
5185
+ }
5186
+ .pimolu-segmented-control--vertical {
5187
+ overflow-x: hidden;
5188
+ overflow-y: auto;
5189
+ }
5190
+ .pimolu-segmented-control:not([data-show-scrollbar=true]) {
5191
+ scrollbar-width: none;
5192
+ }
5193
+ .pimolu-segmented-control:not([data-show-scrollbar=true])::-webkit-scrollbar {
5194
+ display: none;
5195
+ }
5196
+ .pimolu-segmented-control[data-show-scrollbar=true] {
5197
+ scrollbar-width: thin;
5198
+ }
5199
+ .pimolu-segmented-control[data-show-scrollbar=true]::-webkit-scrollbar {
5200
+ display: block;
5201
+ width: 8px;
5202
+ height: 8px;
5203
+ }
5186
5204
  @media (prefers-reduced-motion: reduce) {
5187
- .pimolu-segmented-control__item {
5205
+ .pimolu-segmented-control__item,
5206
+ .pimolu-segmented-control__indicator[data-ready=true] {
5188
5207
  transition: none;
5189
5208
  }
5190
5209
  }
5191
5210
  @media (forced-colors: active) {
5211
+ .pimolu-segmented-control__indicator {
5212
+ display: none;
5213
+ }
5192
5214
  .pimolu-segmented-control__item[data-state=active] {
5193
5215
  border: 1px solid Highlight;
5194
5216
  color: Highlight;
@@ -5481,6 +5503,19 @@
5481
5503
  }
5482
5504
 
5483
5505
  /* src/form-field.css */
5506
+ .pimolu-form-message--error {
5507
+ animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
5508
+ }
5509
+ @keyframes pimolu-field-feedback-in {
5510
+ from {
5511
+ opacity: 0;
5512
+ transform: translateY(-3px);
5513
+ }
5514
+ to {
5515
+ opacity: 1;
5516
+ transform: translateY(0);
5517
+ }
5518
+ }
5484
5519
  .pimolu-form-field {
5485
5520
  display: grid;
5486
5521
  gap: 6px;
@@ -5650,13 +5685,32 @@
5650
5685
  transform: rotate(180deg);
5651
5686
  }
5652
5687
  .pimolu-accordion__content {
5688
+ display: grid;
5689
+ grid-template-rows: 1fr;
5653
5690
  min-width: 0;
5654
5691
  color: var(--pimolu-muted-foreground);
5655
5692
  font-size: 0.875rem;
5656
5693
  line-height: 1.6;
5657
5694
  }
5695
+ .pimolu-accordion__content[hidden] {
5696
+ display: none;
5697
+ }
5698
+ .pimolu-accordion__content-clip {
5699
+ min-height: 0;
5700
+ overflow: hidden;
5701
+ }
5658
5702
  .pimolu-accordion__content[data-state=open] {
5659
- animation: pimolu-accordion-in 160ms ease-out;
5703
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
5704
+ }
5705
+ .pimolu-accordion__content[hidden][data-state=closing] {
5706
+ display: grid;
5707
+ animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
5708
+ }
5709
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__content {
5710
+ animation: none;
5711
+ }
5712
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
5713
+ transition: none;
5660
5714
  }
5661
5715
  .pimolu-accordion__content-inner {
5662
5716
  padding: 0 0 16px;
@@ -5670,19 +5724,32 @@
5670
5724
  }
5671
5725
  @keyframes pimolu-accordion-in {
5672
5726
  from {
5727
+ grid-template-rows: 0fr;
5673
5728
  opacity: 0;
5674
5729
  transform: translateY(-3px);
5675
5730
  }
5676
5731
  to {
5732
+ grid-template-rows: 1fr;
5677
5733
  opacity: 1;
5678
5734
  transform: translateY(0);
5679
5735
  }
5680
5736
  }
5737
+ @keyframes pimolu-accordion-out {
5738
+ from {
5739
+ grid-template-rows: 1fr;
5740
+ opacity: 1;
5741
+ }
5742
+ to {
5743
+ grid-template-rows: 0fr;
5744
+ opacity: 0;
5745
+ }
5746
+ }
5681
5747
  @media (prefers-reduced-motion: reduce) {
5682
5748
  .pimolu-accordion__chevron {
5683
5749
  transition: none;
5684
5750
  }
5685
- .pimolu-accordion__content[data-state=open] {
5751
+ .pimolu-accordion__content[data-state=open],
5752
+ .pimolu-accordion__content[hidden][data-state=closing] {
5686
5753
  animation: none;
5687
5754
  }
5688
5755
  }
@@ -6215,20 +6282,90 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6215
6282
  min-height: 44px;
6216
6283
  }
6217
6284
  }
6218
- @media (forced-colors: active) {
6219
- .pimolu-navbar {
6220
- border-color: CanvasText;
6221
- }
6222
- .pimolu-navbar__item[aria-current=page] {
6223
- border: 1px solid Highlight;
6224
- color: Highlight;
6225
- }
6226
- .pimolu-navbar__toggle {
6227
- border-color: CanvasText;
6228
- }
6285
+ @media (forced-colors: active) {
6286
+ .pimolu-navbar {
6287
+ border-color: CanvasText;
6288
+ }
6289
+ .pimolu-navbar__item[aria-current=page] {
6290
+ border: 1px solid Highlight;
6291
+ color: Highlight;
6292
+ }
6293
+ .pimolu-navbar__toggle {
6294
+ border-color: CanvasText;
6295
+ }
6296
+ }
6297
+ .pimolu-navbar--transparent {
6298
+ background: transparent;
6299
+ }
6300
+ .pimolu-navbar__menu {
6301
+ display: contents;
6302
+ }
6303
+ @container pimolu-navbar (max-width: 700px) {
6304
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
6305
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6306
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
6307
+ }
6308
+ }
6309
+ @keyframes pimolu-navbar-reveal {
6310
+ from {
6311
+ opacity: 0;
6312
+ transform: translateY(-4px);
6313
+ }
6314
+ to {
6315
+ opacity: 1;
6316
+ transform: translateY(0);
6317
+ }
6318
+ }
6319
+ .pimolu-navbar__menu-panel {
6320
+ display: flex;
6321
+ flex-direction: column;
6322
+ gap: var(--pimolu-spacing-4, 16px);
6323
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
6324
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
6325
+ }
6326
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
6327
+ display: flex;
6328
+ flex-direction: column;
6329
+ align-items: stretch;
6330
+ gap: var(--pimolu-spacing-1, 4px);
6331
+ width: 100%;
6332
+ order: initial;
6333
+ overflow: visible;
6334
+ }
6335
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
6336
+ width: 100%;
6337
+ min-height: 44px;
6338
+ white-space: normal;
6339
+ }
6340
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
6341
+ display: flex;
6342
+ width: 100%;
6343
+ margin-inline-start: 0;
6344
+ padding-block-start: var(--pimolu-spacing-4, 16px);
6345
+ border-block-start: 1px solid var(--pimolu-border);
6346
+ }
6347
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
6348
+ padding-inline-end: 48px;
6349
+ }
6350
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
6351
+ z-index: 2;
6352
+ width: 44px;
6353
+ height: 44px;
6354
+ color: var(--pimolu-foreground);
6355
+ border: 1px solid var(--pimolu-border);
6356
+ background: var(--pimolu-muted);
6357
+ }
6358
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
6359
+ inset: 0;
6360
+ width: 100%;
6361
+ height: 100%;
6362
+ border-radius: 0;
6229
6363
  }
6230
- .pimolu-navbar--transparent {
6231
- background: transparent;
6364
+ .pimolu-navbar__menu-layer--instant,
6365
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
6366
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
6367
+ animation: none !important;
6368
+ transition: none !important;
6232
6369
  }
6233
6370
  .pimolu-navbar--floating {
6234
6371
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
@@ -6504,6 +6641,14 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6504
6641
  color: Highlight;
6505
6642
  }
6506
6643
  }
6644
+ .pimolu-sidebar {
6645
+ transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
6646
+ }
6647
+ @media (prefers-reduced-motion: reduce) {
6648
+ .pimolu-sidebar {
6649
+ transition: none;
6650
+ }
6651
+ }
6507
6652
 
6508
6653
  /* src/navigation-menu.css */
6509
6654
  .pimolu-navigation-menu {
@@ -7050,22 +7195,203 @@ button.pimolu-list__row:focus-visible {
7050
7195
  }
7051
7196
  }
7052
7197
 
7198
+ /* src/spinner.css */
7199
+ .pimolu-spinner {
7200
+ --pimolu-spinner-size: 20px;
7201
+ --pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
7202
+ --pimolu-spinner-color: currentColor;
7203
+ display: inline-flex;
7204
+ align-items: center;
7205
+ justify-content: center;
7206
+ flex: 0 0 auto;
7207
+ box-sizing: border-box;
7208
+ min-width: 0;
7209
+ color: var(--pimolu-spinner-color);
7210
+ line-height: 1;
7211
+ vertical-align: middle;
7212
+ user-select: none;
7213
+ }
7214
+ .pimolu-spinner--xs {
7215
+ --pimolu-spinner-size: 12px;
7216
+ }
7217
+ .pimolu-spinner--sm {
7218
+ --pimolu-spinner-size: 16px;
7219
+ }
7220
+ .pimolu-spinner--md {
7221
+ --pimolu-spinner-size: 20px;
7222
+ }
7223
+ .pimolu-spinner--lg {
7224
+ --pimolu-spinner-size: 24px;
7225
+ }
7226
+ .pimolu-spinner--xl {
7227
+ --pimolu-spinner-size: 32px;
7228
+ }
7229
+ .pimolu-spinner--inherit {
7230
+ --pimolu-spinner-color: currentColor;
7231
+ }
7232
+ .pimolu-spinner--neutral {
7233
+ --pimolu-spinner-color: var(--pimolu-foreground, currentColor);
7234
+ }
7235
+ .pimolu-spinner--primary {
7236
+ --pimolu-spinner-color: var(--pimolu-primary, currentColor);
7237
+ }
7238
+ .pimolu-spinner--secondary {
7239
+ --pimolu-spinner-color: var(--pimolu-secondary, currentColor);
7240
+ }
7241
+ .pimolu-spinner--success {
7242
+ --pimolu-spinner-color: var(--pimolu-success, currentColor);
7243
+ }
7244
+ .pimolu-spinner--warning {
7245
+ --pimolu-spinner-color: var(--pimolu-warning, currentColor);
7246
+ }
7247
+ .pimolu-spinner--danger {
7248
+ --pimolu-spinner-color: var(--pimolu-danger, currentColor);
7249
+ }
7250
+ .pimolu-spinner__visual {
7251
+ display: inline-flex;
7252
+ align-items: center;
7253
+ justify-content: center;
7254
+ flex: 0 0 auto;
7255
+ width: var(--pimolu-spinner-size);
7256
+ height: var(--pimolu-spinner-size);
7257
+ }
7258
+ .pimolu-spinner__svg {
7259
+ display: block;
7260
+ width: 100%;
7261
+ height: 100%;
7262
+ overflow: visible;
7263
+ transform-origin: center;
7264
+ animation: pimolu-spinner-rotate 1s linear infinite;
7265
+ }
7266
+ .pimolu-spinner__track,
7267
+ .pimolu-spinner__indicator {
7268
+ fill: none;
7269
+ stroke: currentColor;
7270
+ stroke-width: 2.5;
7271
+ }
7272
+ .pimolu-spinner__track {
7273
+ opacity: 0.18;
7274
+ }
7275
+ .pimolu-spinner__indicator {
7276
+ stroke-linecap: round;
7277
+ }
7278
+ .pimolu-spinner--circular .pimolu-spinner__indicator {
7279
+ stroke-dasharray: 16 57;
7280
+ }
7281
+ .pimolu-spinner--arc .pimolu-spinner__indicator {
7282
+ stroke-dasharray: 42 57;
7283
+ }
7284
+ .pimolu-spinner--arc .pimolu-spinner__track {
7285
+ opacity: 0;
7286
+ }
7287
+ .pimolu-spinner--arc .pimolu-spinner__svg {
7288
+ animation-duration: 1.3s;
7289
+ }
7290
+ @keyframes pimolu-spinner-rotate {
7291
+ from {
7292
+ transform: rotate(0deg);
7293
+ }
7294
+ to {
7295
+ transform: rotate(360deg);
7296
+ }
7297
+ }
7298
+ .pimolu-spinner--dots .pimolu-spinner__visual {
7299
+ width: calc(var(--pimolu-spinner-size) * 1.5);
7300
+ gap: calc(var(--pimolu-spinner-size) * 0.14);
7301
+ }
7302
+ .pimolu-spinner__dot {
7303
+ display: block;
7304
+ flex: 0 0 auto;
7305
+ width: var(--pimolu-spinner-dot-size);
7306
+ height: var(--pimolu-spinner-dot-size);
7307
+ border-radius: 50%;
7308
+ background: currentColor;
7309
+ animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
7310
+ }
7311
+ .pimolu-spinner__dot:nth-child(1) {
7312
+ animation-delay: -0.32s;
7313
+ }
7314
+ .pimolu-spinner__dot:nth-child(2) {
7315
+ animation-delay: -0.16s;
7316
+ }
7317
+ .pimolu-spinner__dot:nth-child(3) {
7318
+ animation-delay: 0s;
7319
+ }
7320
+ @keyframes pimolu-spinner-dot {
7321
+ 0%, 80%, 100% {
7322
+ opacity: 0.35;
7323
+ transform: translateY(0);
7324
+ }
7325
+ 40% {
7326
+ opacity: 1;
7327
+ transform: translateY(-25%);
7328
+ }
7329
+ }
7330
+ .pimolu-spinner__label {
7331
+ position: absolute;
7332
+ width: 1px;
7333
+ height: 1px;
7334
+ padding: 0;
7335
+ margin: -1px;
7336
+ overflow: hidden;
7337
+ clip: rect(0, 0, 0, 0);
7338
+ clip-path: inset(50%);
7339
+ white-space: nowrap;
7340
+ border: 0;
7341
+ }
7342
+ @media (prefers-reduced-motion: reduce) {
7343
+ .pimolu-spinner__svg,
7344
+ .pimolu-spinner__dot {
7345
+ animation: none;
7346
+ }
7347
+ .pimolu-spinner__dot {
7348
+ opacity: 1;
7349
+ transform: none;
7350
+ }
7351
+ }
7352
+ @media (forced-colors: active) {
7353
+ .pimolu-spinner {
7354
+ color: CanvasText;
7355
+ }
7356
+ .pimolu-spinner__track {
7357
+ opacity: 0.4;
7358
+ }
7359
+ .pimolu-spinner__dot {
7360
+ background: currentColor;
7361
+ }
7362
+ }
7363
+
7053
7364
  /* src/toast.css */
7054
7365
  .pimolu-toaster {
7366
+ --pimolu-toast-width: 24rem;
7367
+ --pimolu-toast-padding: 14px;
7368
+ --pimolu-toast-duration: 180ms;
7369
+ --pimolu-toast-easing: cubic-bezier(0.16, 1, 0.3, 1);
7055
7370
  position: fixed;
7056
7371
  z-index: 60;
7057
7372
  display: grid;
7058
- gap: 8px;
7059
- width: min(20rem, calc(100vw - 32px));
7373
+ gap: var(--pimolu-spacing-3, 12px);
7374
+ width: min(var(--pimolu-toast-width, 24rem), calc(100vw - 32px));
7375
+ max-height: calc(100dvh - 32px);
7376
+ overflow-y: auto;
7377
+ overscroll-behavior: contain;
7060
7378
  pointer-events: none;
7061
7379
  }
7380
+ .pimolu-toaster[data-position=top-left] {
7381
+ inset-block-start: 16px;
7382
+ inset-inline-start: 16px;
7383
+ }
7384
+ .pimolu-toaster[data-position=bottom-left] {
7385
+ inset-block-end: 16px;
7386
+ inset-inline-start: 16px;
7387
+ }
7062
7388
  .pimolu-toaster[data-position=top-right] {
7063
7389
  inset-block-start: 16px;
7064
7390
  inset-inline-end: 16px;
7065
7391
  }
7066
7392
  .pimolu-toaster[data-position=top-center] {
7067
7393
  inset-block-start: 16px;
7068
- inset-inline-start: 50%;
7394
+ left: 50%;
7069
7395
  transform: translateX(-50%);
7070
7396
  }
7071
7397
  .pimolu-toaster[data-position=bottom-right] {
@@ -7074,7 +7400,7 @@ button.pimolu-list__row:focus-visible {
7074
7400
  }
7075
7401
  .pimolu-toaster[data-position=bottom-center] {
7076
7402
  inset-block-end: 16px;
7077
- inset-inline-start: 50%;
7403
+ left: 50%;
7078
7404
  transform: translateX(-50%);
7079
7405
  }
7080
7406
  .pimolu-toast {
@@ -7084,7 +7410,7 @@ button.pimolu-list__row:focus-visible {
7084
7410
  justify-content: space-between;
7085
7411
  gap: 12px;
7086
7412
  box-sizing: border-box;
7087
- padding: 12px 12px 12px 14px;
7413
+ padding: var(--pimolu-toast-padding, 14px);
7088
7414
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
7089
7415
  border-inline-start: 3px solid var(--pimolu-toast-tone);
7090
7416
  border-radius: var(--pimolu-radius-md, 8px);
@@ -7093,7 +7419,23 @@ button.pimolu-list__row:focus-visible {
7093
7419
  box-shadow: var( --pimolu-shadow-raised, none );
7094
7420
  font-family: var(--pimolu-font-body, inherit);
7095
7421
  pointer-events: auto;
7096
- animation: pimolu-toast-in 160ms ease-out;
7422
+ animation: pimolu-toast-in var(--pimolu-toast-duration, 180ms) var(--pimolu-toast-easing, cubic-bezier(0.16, 1, 0.3, 1));
7423
+ }
7424
+ .pimolu-toast--info,
7425
+ .pimolu-toast--loading {
7426
+ --pimolu-toast-tone: var(--pimolu-primary);
7427
+ }
7428
+ .pimolu-toast__icon {
7429
+ display: inline-grid;
7430
+ place-items: center;
7431
+ flex: none;
7432
+ width: 20px;
7433
+ height: 20px;
7434
+ margin-block-start: 1px;
7435
+ color: var(--pimolu-toast-tone);
7436
+ }
7437
+ .pimolu-toast--default .pimolu-toast__icon {
7438
+ color: var(--pimolu-muted-foreground);
7097
7439
  }
7098
7440
  .pimolu-toast--success {
7099
7441
  --pimolu-toast-tone: var(--pimolu-success, #15803d);
@@ -7108,6 +7450,7 @@ button.pimolu-list__row:focus-visible {
7108
7450
  display: grid;
7109
7451
  gap: 2px;
7110
7452
  min-width: 0;
7453
+ flex: 1;
7111
7454
  }
7112
7455
  .pimolu-toast__title {
7113
7456
  margin: 0;
@@ -7128,6 +7471,9 @@ button.pimolu-list__row:focus-visible {
7128
7471
  align-items: center;
7129
7472
  gap: 4px;
7130
7473
  flex: none;
7474
+ flex-wrap: wrap;
7475
+ justify-content: flex-end;
7476
+ max-width: 45%;
7131
7477
  }
7132
7478
  .pimolu-toast__action {
7133
7479
  padding: 2px 6px;
@@ -7139,15 +7485,21 @@ button.pimolu-list__row:focus-visible {
7139
7485
  font-size: 0.8125rem;
7140
7486
  font-weight: 600;
7141
7487
  cursor: pointer;
7488
+ overflow-wrap: anywhere;
7142
7489
  }
7143
7490
  .pimolu-toast__action:hover {
7144
7491
  background: var(--pimolu-muted);
7145
7492
  }
7493
+ .pimolu-toast__action:disabled {
7494
+ opacity: 0.5;
7495
+ cursor: not-allowed;
7496
+ }
7146
7497
  .pimolu-toast__close {
7147
7498
  display: inline-grid;
7148
7499
  place-items: center;
7149
- width: 24px;
7150
- height: 24px;
7500
+ width: 28px;
7501
+ height: 28px;
7502
+ flex: none;
7151
7503
  padding: 0;
7152
7504
  border: 0;
7153
7505
  border-radius: var(--pimolu-radius-sm, 4px);
@@ -7156,6 +7508,16 @@ button.pimolu-list__row:focus-visible {
7156
7508
  line-height: 0;
7157
7509
  cursor: pointer;
7158
7510
  }
7511
+ @media (pointer: coarse) {
7512
+ .pimolu-toast__action,
7513
+ .pimolu-toast__close {
7514
+ min-width: 44px;
7515
+ min-height: 44px;
7516
+ }
7517
+ }
7518
+ .pimolu-toaster:empty {
7519
+ pointer-events: none;
7520
+ }
7159
7521
  .pimolu-toast__close:hover {
7160
7522
  background: var(--pimolu-muted);
7161
7523
  color: var(--pimolu-foreground);
@@ -13621,12 +13983,23 @@ button.pimolu-list__row:focus-visible {
13621
13983
  justify-self: start;
13622
13984
  }
13623
13985
  .pimolu-form__error {
13986
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
13624
13987
  margin: 0;
13625
13988
  color: var(--pimolu-danger, #dc2626);
13626
13989
  font-size: 0.8125rem;
13627
13990
  line-height: 1.4;
13628
13991
  overflow-wrap: anywhere;
13629
13992
  }
13993
+ @keyframes pimolu-form-feedback-in {
13994
+ from {
13995
+ opacity: 0;
13996
+ transform: translateY(-3px);
13997
+ }
13998
+ to {
13999
+ opacity: 1;
14000
+ transform: translateY(0);
14001
+ }
14002
+ }
13630
14003
  @media (forced-colors: active) {
13631
14004
  .pimolu-form__error {
13632
14005
  color: LinkText;
@@ -16392,6 +16765,41 @@ button.pimolu-list__row:focus-visible {
16392
16765
  }
16393
16766
  }
16394
16767
 
16768
+ /* src/motion.css */
16769
+ :root {
16770
+ --pimolu-interaction-duration: 150ms;
16771
+ --pimolu-interaction-easing: ease-out;
16772
+ }
16773
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
16774
+ transition:
16775
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16776
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16777
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16778
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
16779
+ }
16780
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
16781
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
16782
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16783
+ animation: none !important;
16784
+ transition: none !important;
16785
+ scroll-behavior: auto !important;
16786
+ }
16787
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden] {
16788
+ display: none !important;
16789
+ }
16790
+ @media (prefers-reduced-motion: reduce) {
16791
+ :where([class^=pimolu-], [class*=" pimolu-"]),
16792
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
16793
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
16794
+ animation: none !important;
16795
+ transition: none !important;
16796
+ scroll-behavior: auto !important;
16797
+ }
16798
+ .pimolu-accordion__content[hidden] {
16799
+ display: none !important;
16800
+ }
16801
+ }
16802
+
16395
16803
  /* src/toolbar.css */
16396
16804
  .pimolu-toolbar {
16397
16805
  display: flex;
@@ -21290,6 +21698,11 @@ a.pimolu-chat__attachment-name:focus-visible {
21290
21698
  color: var(--pimolu-muted-foreground);
21291
21699
  opacity: 1;
21292
21700
  }
21701
+ .pimolu-input__control:is(:autofill, :-webkit-autofill) {
21702
+ -webkit-background-clip: text;
21703
+ background-clip: text;
21704
+ -webkit-text-fill-color: var(--pimolu-foreground);
21705
+ }
21293
21706
  .pimolu-input__control::-webkit-search-cancel-button,
21294
21707
  .pimolu-input__control::-webkit-search-decoration {
21295
21708
  -webkit-appearance: none;
@@ -21478,6 +21891,11 @@ a.pimolu-chat__attachment-name:focus-visible {
21478
21891
  }
21479
21892
  }
21480
21893
  @media (forced-colors: active) {
21894
+ .pimolu-input__control:is(:autofill, :-webkit-autofill) {
21895
+ -webkit-background-clip: border-box;
21896
+ background-clip: border-box;
21897
+ -webkit-text-fill-color: CanvasText;
21898
+ }
21481
21899
  .pimolu-input__wrapper:focus-within {
21482
21900
  outline: 2px solid Highlight;
21483
21901
  outline-offset: 2px;