@pimolu/web-styles 0.1.0-beta.3 → 0.1.0-beta.4
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/README.fr.md +125 -40
- package/README.md +125 -40
- package/dist/button.css +6 -0
- package/dist/input-group.css +10 -0
- package/dist/input.css +10 -0
- package/dist/layered.css +406 -183
- package/dist/password-input.css +10 -0
- package/dist/pimolu.css +404 -181
- package/dist/pimolu.min.css +1 -1
- package/dist/segmented-control.css +70 -3
- package/dist/tabs.css +93 -4
- package/dist/toast.css +225 -8
- package/package.json +2 -2
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;
|
|
@@ -4628,6 +4468,10 @@
|
|
|
4628
4468
|
}
|
|
4629
4469
|
|
|
4630
4470
|
/* src/tabs.css */
|
|
4471
|
+
:root {
|
|
4472
|
+
--pimolu-tabs-indicator-duration: 240ms;
|
|
4473
|
+
--pimolu-tabs-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
4474
|
+
}
|
|
4631
4475
|
.pimolu-tabs {
|
|
4632
4476
|
--pimolu-tabs-height: 40px;
|
|
4633
4477
|
--pimolu-tabs-padding-x: 14px;
|
|
@@ -4693,18 +4537,26 @@
|
|
|
4693
4537
|
flex: 1 1 auto;
|
|
4694
4538
|
flex-wrap: nowrap;
|
|
4695
4539
|
overflow-x: auto;
|
|
4540
|
+
overflow-y: hidden;
|
|
4696
4541
|
overscroll-behavior-inline: contain;
|
|
4697
4542
|
}
|
|
4698
4543
|
.pimolu-tabs__list[data-scrollable=true] .pimolu-tabs__trigger {
|
|
4699
4544
|
flex: 0 0 auto;
|
|
4700
4545
|
}
|
|
4701
|
-
.pimolu-tabs__list[data-scrollable=true] {
|
|
4546
|
+
.pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true]) {
|
|
4702
4547
|
scrollbar-width: none;
|
|
4703
4548
|
-ms-overflow-style: none;
|
|
4704
4549
|
}
|
|
4705
|
-
.pimolu-tabs__list[data-scrollable=true]::-webkit-scrollbar {
|
|
4550
|
+
.pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true])::-webkit-scrollbar {
|
|
4706
4551
|
display: none;
|
|
4707
4552
|
}
|
|
4553
|
+
.pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true] {
|
|
4554
|
+
scrollbar-width: thin;
|
|
4555
|
+
}
|
|
4556
|
+
.pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true]::-webkit-scrollbar {
|
|
4557
|
+
display: block;
|
|
4558
|
+
height: 8px;
|
|
4559
|
+
}
|
|
4708
4560
|
.pimolu-tabs__scroll {
|
|
4709
4561
|
display: inline-grid;
|
|
4710
4562
|
flex: none;
|
|
@@ -4853,7 +4705,7 @@
|
|
|
4853
4705
|
.pimolu-tabs--segmented .pimolu-tabs__trigger {
|
|
4854
4706
|
position: relative;
|
|
4855
4707
|
flex: 1 1 0;
|
|
4856
|
-
min-width:
|
|
4708
|
+
min-width: max-content;
|
|
4857
4709
|
padding-inline: var(--pimolu-spacing-3, 12px);
|
|
4858
4710
|
border-radius: 999px;
|
|
4859
4711
|
color: var(--pimolu-muted-foreground);
|
|
@@ -4944,8 +4796,82 @@
|
|
|
4944
4796
|
box-shadow: inset 2px 0 0 var(--pimolu-primary);
|
|
4945
4797
|
}
|
|
4946
4798
|
}
|
|
4799
|
+
.pimolu-tabs__list {
|
|
4800
|
+
position: relative;
|
|
4801
|
+
isolation: isolate;
|
|
4802
|
+
}
|
|
4803
|
+
.pimolu-tabs__list > .pimolu-tabs__trigger {
|
|
4804
|
+
position: relative;
|
|
4805
|
+
z-index: 1;
|
|
4806
|
+
}
|
|
4807
|
+
.pimolu-tabs__indicator {
|
|
4808
|
+
position: absolute;
|
|
4809
|
+
top: 0;
|
|
4810
|
+
left: 0;
|
|
4811
|
+
z-index: 0;
|
|
4812
|
+
pointer-events: none;
|
|
4813
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
4814
|
+
}
|
|
4815
|
+
.pimolu-tabs__indicator[hidden] {
|
|
4816
|
+
display: none;
|
|
4817
|
+
}
|
|
4818
|
+
.pimolu-tabs__indicator[data-ready=true] {
|
|
4819
|
+
transition-property:
|
|
4820
|
+
transform,
|
|
4821
|
+
width,
|
|
4822
|
+
height;
|
|
4823
|
+
transition-duration: var(--pimolu-tabs-indicator-duration, 240ms);
|
|
4824
|
+
transition-timing-function: var(--pimolu-tabs-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
4825
|
+
}
|
|
4826
|
+
.pimolu-tabs__indicator::before {
|
|
4827
|
+
content: "";
|
|
4828
|
+
position: absolute;
|
|
4829
|
+
inset: 0;
|
|
4830
|
+
border-radius: inherit;
|
|
4831
|
+
}
|
|
4832
|
+
.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4833
|
+
inset-block-start: auto;
|
|
4834
|
+
height: 2px;
|
|
4835
|
+
background: var(--pimolu-primary);
|
|
4836
|
+
}
|
|
4837
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4838
|
+
inset-block: 0;
|
|
4839
|
+
inset-inline-start: auto;
|
|
4840
|
+
width: 2px;
|
|
4841
|
+
height: auto;
|
|
4842
|
+
}
|
|
4843
|
+
.pimolu-tabs--solid > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4844
|
+
background: var(--pimolu-primary);
|
|
4845
|
+
}
|
|
4846
|
+
.pimolu-tabs--soft > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4847
|
+
background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
|
|
4848
|
+
}
|
|
4849
|
+
.pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator {
|
|
4850
|
+
border-radius: 999px;
|
|
4851
|
+
}
|
|
4852
|
+
.pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4853
|
+
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
4854
|
+
box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
|
|
4855
|
+
}
|
|
4856
|
+
.pimolu-tabs__list[data-indicator=true] > .pimolu-tabs__trigger[data-state=active] {
|
|
4857
|
+
background: transparent;
|
|
4858
|
+
box-shadow: none;
|
|
4859
|
+
}
|
|
4860
|
+
@media (max-width: 600px) {
|
|
4861
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4862
|
+
inset-inline-start: 0;
|
|
4863
|
+
inset-inline-end: auto;
|
|
4864
|
+
}
|
|
4865
|
+
}
|
|
4866
|
+
.pimolu-tabs[data-animated=false] > .pimolu-tabs__list-wrap > .pimolu-tabs__list > :is(.pimolu-tabs__indicator, .pimolu-tabs__trigger) {
|
|
4867
|
+
transition: none;
|
|
4868
|
+
}
|
|
4869
|
+
.pimolu-tabs[data-animated=false] > .pimolu-tabs__panel {
|
|
4870
|
+
animation: none;
|
|
4871
|
+
}
|
|
4947
4872
|
@media (prefers-reduced-motion: reduce) {
|
|
4948
|
-
.pimolu-tabs__trigger
|
|
4873
|
+
.pimolu-tabs__trigger,
|
|
4874
|
+
.pimolu-tabs__indicator[data-ready=true] {
|
|
4949
4875
|
transition: none;
|
|
4950
4876
|
}
|
|
4951
4877
|
.pimolu-tabs__panel[data-state=active] {
|
|
@@ -4953,6 +4879,9 @@
|
|
|
4953
4879
|
}
|
|
4954
4880
|
}
|
|
4955
4881
|
@media (forced-colors: active) {
|
|
4882
|
+
.pimolu-tabs__indicator {
|
|
4883
|
+
display: none;
|
|
4884
|
+
}
|
|
4956
4885
|
.pimolu-tabs__trigger[data-state=active] {
|
|
4957
4886
|
border: 1px solid Highlight;
|
|
4958
4887
|
color: Highlight;
|
|
@@ -5089,15 +5018,23 @@
|
|
|
5089
5018
|
}
|
|
5090
5019
|
|
|
5091
5020
|
/* src/segmented-control.css */
|
|
5021
|
+
:root {
|
|
5022
|
+
--pimolu-segmented-indicator-duration: 240ms;
|
|
5023
|
+
--pimolu-segmented-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
5024
|
+
}
|
|
5092
5025
|
.pimolu-segmented-control {
|
|
5093
5026
|
--pimolu-segmented-height: 32px;
|
|
5094
5027
|
--pimolu-segmented-padding-x: 12px;
|
|
5095
5028
|
--pimolu-segmented-font-size: 0.875rem;
|
|
5096
5029
|
display: inline-flex;
|
|
5030
|
+
position: relative;
|
|
5031
|
+
isolation: isolate;
|
|
5032
|
+
flex-wrap: nowrap;
|
|
5097
5033
|
align-items: center;
|
|
5098
5034
|
gap: 0;
|
|
5099
5035
|
box-sizing: border-box;
|
|
5100
5036
|
max-width: 100%;
|
|
5037
|
+
min-width: 0;
|
|
5101
5038
|
padding: 4px;
|
|
5102
5039
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
5103
5040
|
border-radius: 999px;
|
|
@@ -5112,13 +5049,16 @@
|
|
|
5112
5049
|
flex-direction: column;
|
|
5113
5050
|
align-items: stretch;
|
|
5114
5051
|
width: fit-content;
|
|
5115
|
-
min-width: 12rem;
|
|
5052
|
+
min-width: min(12rem, 100%);
|
|
5116
5053
|
border-radius: var(--pimolu-radius-lg, 12px);
|
|
5117
5054
|
}
|
|
5118
5055
|
.pimolu-segmented-control--full-width.pimolu-segmented-control--vertical {
|
|
5119
5056
|
width: 100%;
|
|
5120
5057
|
}
|
|
5121
5058
|
.pimolu-segmented-control__item {
|
|
5059
|
+
position: relative;
|
|
5060
|
+
z-index: 1;
|
|
5061
|
+
flex-shrink: 0;
|
|
5122
5062
|
display: inline-flex;
|
|
5123
5063
|
align-items: center;
|
|
5124
5064
|
justify-content: center;
|
|
@@ -5144,7 +5084,7 @@
|
|
|
5144
5084
|
}
|
|
5145
5085
|
.pimolu-segmented-control--full-width .pimolu-segmented-control__item {
|
|
5146
5086
|
flex: 1 1 0;
|
|
5147
|
-
min-width:
|
|
5087
|
+
min-width: max-content;
|
|
5148
5088
|
}
|
|
5149
5089
|
.pimolu-segmented-control--vertical .pimolu-segmented-control__item {
|
|
5150
5090
|
flex: 0 0 auto;
|
|
@@ -5183,12 +5123,68 @@
|
|
|
5183
5123
|
--pimolu-segmented-padding-x: 16px;
|
|
5184
5124
|
--pimolu-segmented-font-size: 1rem;
|
|
5185
5125
|
}
|
|
5126
|
+
.pimolu-segmented-control__indicator {
|
|
5127
|
+
position: absolute;
|
|
5128
|
+
left: 0;
|
|
5129
|
+
top: 0;
|
|
5130
|
+
z-index: 0;
|
|
5131
|
+
border-radius: 999px;
|
|
5132
|
+
pointer-events: none;
|
|
5133
|
+
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
5134
|
+
box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
|
|
5135
|
+
}
|
|
5136
|
+
.pimolu-segmented-control__indicator[hidden] {
|
|
5137
|
+
display: none;
|
|
5138
|
+
}
|
|
5139
|
+
.pimolu-segmented-control__indicator[data-ready=true] {
|
|
5140
|
+
transition-property:
|
|
5141
|
+
transform,
|
|
5142
|
+
width,
|
|
5143
|
+
height;
|
|
5144
|
+
transition-duration: var(--pimolu-segmented-indicator-duration, 240ms);
|
|
5145
|
+
transition-timing-function: var(--pimolu-segmented-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
5146
|
+
}
|
|
5147
|
+
.pimolu-segmented-control[data-indicator=true] > .pimolu-segmented-control__item[data-state=active] {
|
|
5148
|
+
background: transparent;
|
|
5149
|
+
box-shadow: none;
|
|
5150
|
+
}
|
|
5151
|
+
.pimolu-segmented-control[data-animated=false] > :is(.pimolu-segmented-control__indicator, .pimolu-segmented-control__item) {
|
|
5152
|
+
transition: none;
|
|
5153
|
+
}
|
|
5154
|
+
.pimolu-segmented-control {
|
|
5155
|
+
flex-wrap: nowrap;
|
|
5156
|
+
overflow-x: auto;
|
|
5157
|
+
overflow-y: hidden;
|
|
5158
|
+
overscroll-behavior: contain;
|
|
5159
|
+
}
|
|
5160
|
+
.pimolu-segmented-control--vertical {
|
|
5161
|
+
overflow-x: hidden;
|
|
5162
|
+
overflow-y: auto;
|
|
5163
|
+
}
|
|
5164
|
+
.pimolu-segmented-control:not([data-show-scrollbar=true]) {
|
|
5165
|
+
scrollbar-width: none;
|
|
5166
|
+
}
|
|
5167
|
+
.pimolu-segmented-control:not([data-show-scrollbar=true])::-webkit-scrollbar {
|
|
5168
|
+
display: none;
|
|
5169
|
+
}
|
|
5170
|
+
.pimolu-segmented-control[data-show-scrollbar=true] {
|
|
5171
|
+
scrollbar-width: thin;
|
|
5172
|
+
}
|
|
5173
|
+
.pimolu-segmented-control[data-show-scrollbar=true]::-webkit-scrollbar {
|
|
5174
|
+
display: block;
|
|
5175
|
+
width: 8px;
|
|
5176
|
+
height: 8px;
|
|
5177
|
+
}
|
|
5186
5178
|
@media (prefers-reduced-motion: reduce) {
|
|
5187
|
-
.pimolu-segmented-control__item
|
|
5179
|
+
.pimolu-segmented-control__item,
|
|
5180
|
+
.pimolu-segmented-control__indicator[data-ready=true] {
|
|
5188
5181
|
transition: none;
|
|
5189
5182
|
}
|
|
5190
5183
|
}
|
|
5191
5184
|
@media (forced-colors: active) {
|
|
5185
|
+
.pimolu-segmented-control__indicator {
|
|
5186
|
+
display: none;
|
|
5187
|
+
}
|
|
5192
5188
|
.pimolu-segmented-control__item[data-state=active] {
|
|
5193
5189
|
border: 1px solid Highlight;
|
|
5194
5190
|
color: Highlight;
|
|
@@ -7050,22 +7046,203 @@ button.pimolu-list__row:focus-visible {
|
|
|
7050
7046
|
}
|
|
7051
7047
|
}
|
|
7052
7048
|
|
|
7049
|
+
/* src/spinner.css */
|
|
7050
|
+
.pimolu-spinner {
|
|
7051
|
+
--pimolu-spinner-size: 20px;
|
|
7052
|
+
--pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
|
|
7053
|
+
--pimolu-spinner-color: currentColor;
|
|
7054
|
+
display: inline-flex;
|
|
7055
|
+
align-items: center;
|
|
7056
|
+
justify-content: center;
|
|
7057
|
+
flex: 0 0 auto;
|
|
7058
|
+
box-sizing: border-box;
|
|
7059
|
+
min-width: 0;
|
|
7060
|
+
color: var(--pimolu-spinner-color);
|
|
7061
|
+
line-height: 1;
|
|
7062
|
+
vertical-align: middle;
|
|
7063
|
+
user-select: none;
|
|
7064
|
+
}
|
|
7065
|
+
.pimolu-spinner--xs {
|
|
7066
|
+
--pimolu-spinner-size: 12px;
|
|
7067
|
+
}
|
|
7068
|
+
.pimolu-spinner--sm {
|
|
7069
|
+
--pimolu-spinner-size: 16px;
|
|
7070
|
+
}
|
|
7071
|
+
.pimolu-spinner--md {
|
|
7072
|
+
--pimolu-spinner-size: 20px;
|
|
7073
|
+
}
|
|
7074
|
+
.pimolu-spinner--lg {
|
|
7075
|
+
--pimolu-spinner-size: 24px;
|
|
7076
|
+
}
|
|
7077
|
+
.pimolu-spinner--xl {
|
|
7078
|
+
--pimolu-spinner-size: 32px;
|
|
7079
|
+
}
|
|
7080
|
+
.pimolu-spinner--inherit {
|
|
7081
|
+
--pimolu-spinner-color: currentColor;
|
|
7082
|
+
}
|
|
7083
|
+
.pimolu-spinner--neutral {
|
|
7084
|
+
--pimolu-spinner-color: var(--pimolu-foreground, currentColor);
|
|
7085
|
+
}
|
|
7086
|
+
.pimolu-spinner--primary {
|
|
7087
|
+
--pimolu-spinner-color: var(--pimolu-primary, currentColor);
|
|
7088
|
+
}
|
|
7089
|
+
.pimolu-spinner--secondary {
|
|
7090
|
+
--pimolu-spinner-color: var(--pimolu-secondary, currentColor);
|
|
7091
|
+
}
|
|
7092
|
+
.pimolu-spinner--success {
|
|
7093
|
+
--pimolu-spinner-color: var(--pimolu-success, currentColor);
|
|
7094
|
+
}
|
|
7095
|
+
.pimolu-spinner--warning {
|
|
7096
|
+
--pimolu-spinner-color: var(--pimolu-warning, currentColor);
|
|
7097
|
+
}
|
|
7098
|
+
.pimolu-spinner--danger {
|
|
7099
|
+
--pimolu-spinner-color: var(--pimolu-danger, currentColor);
|
|
7100
|
+
}
|
|
7101
|
+
.pimolu-spinner__visual {
|
|
7102
|
+
display: inline-flex;
|
|
7103
|
+
align-items: center;
|
|
7104
|
+
justify-content: center;
|
|
7105
|
+
flex: 0 0 auto;
|
|
7106
|
+
width: var(--pimolu-spinner-size);
|
|
7107
|
+
height: var(--pimolu-spinner-size);
|
|
7108
|
+
}
|
|
7109
|
+
.pimolu-spinner__svg {
|
|
7110
|
+
display: block;
|
|
7111
|
+
width: 100%;
|
|
7112
|
+
height: 100%;
|
|
7113
|
+
overflow: visible;
|
|
7114
|
+
transform-origin: center;
|
|
7115
|
+
animation: pimolu-spinner-rotate 1s linear infinite;
|
|
7116
|
+
}
|
|
7117
|
+
.pimolu-spinner__track,
|
|
7118
|
+
.pimolu-spinner__indicator {
|
|
7119
|
+
fill: none;
|
|
7120
|
+
stroke: currentColor;
|
|
7121
|
+
stroke-width: 2.5;
|
|
7122
|
+
}
|
|
7123
|
+
.pimolu-spinner__track {
|
|
7124
|
+
opacity: 0.18;
|
|
7125
|
+
}
|
|
7126
|
+
.pimolu-spinner__indicator {
|
|
7127
|
+
stroke-linecap: round;
|
|
7128
|
+
}
|
|
7129
|
+
.pimolu-spinner--circular .pimolu-spinner__indicator {
|
|
7130
|
+
stroke-dasharray: 16 57;
|
|
7131
|
+
}
|
|
7132
|
+
.pimolu-spinner--arc .pimolu-spinner__indicator {
|
|
7133
|
+
stroke-dasharray: 42 57;
|
|
7134
|
+
}
|
|
7135
|
+
.pimolu-spinner--arc .pimolu-spinner__track {
|
|
7136
|
+
opacity: 0;
|
|
7137
|
+
}
|
|
7138
|
+
.pimolu-spinner--arc .pimolu-spinner__svg {
|
|
7139
|
+
animation-duration: 1.3s;
|
|
7140
|
+
}
|
|
7141
|
+
@keyframes pimolu-spinner-rotate {
|
|
7142
|
+
from {
|
|
7143
|
+
transform: rotate(0deg);
|
|
7144
|
+
}
|
|
7145
|
+
to {
|
|
7146
|
+
transform: rotate(360deg);
|
|
7147
|
+
}
|
|
7148
|
+
}
|
|
7149
|
+
.pimolu-spinner--dots .pimolu-spinner__visual {
|
|
7150
|
+
width: calc(var(--pimolu-spinner-size) * 1.5);
|
|
7151
|
+
gap: calc(var(--pimolu-spinner-size) * 0.14);
|
|
7152
|
+
}
|
|
7153
|
+
.pimolu-spinner__dot {
|
|
7154
|
+
display: block;
|
|
7155
|
+
flex: 0 0 auto;
|
|
7156
|
+
width: var(--pimolu-spinner-dot-size);
|
|
7157
|
+
height: var(--pimolu-spinner-dot-size);
|
|
7158
|
+
border-radius: 50%;
|
|
7159
|
+
background: currentColor;
|
|
7160
|
+
animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
|
|
7161
|
+
}
|
|
7162
|
+
.pimolu-spinner__dot:nth-child(1) {
|
|
7163
|
+
animation-delay: -0.32s;
|
|
7164
|
+
}
|
|
7165
|
+
.pimolu-spinner__dot:nth-child(2) {
|
|
7166
|
+
animation-delay: -0.16s;
|
|
7167
|
+
}
|
|
7168
|
+
.pimolu-spinner__dot:nth-child(3) {
|
|
7169
|
+
animation-delay: 0s;
|
|
7170
|
+
}
|
|
7171
|
+
@keyframes pimolu-spinner-dot {
|
|
7172
|
+
0%, 80%, 100% {
|
|
7173
|
+
opacity: 0.35;
|
|
7174
|
+
transform: translateY(0);
|
|
7175
|
+
}
|
|
7176
|
+
40% {
|
|
7177
|
+
opacity: 1;
|
|
7178
|
+
transform: translateY(-25%);
|
|
7179
|
+
}
|
|
7180
|
+
}
|
|
7181
|
+
.pimolu-spinner__label {
|
|
7182
|
+
position: absolute;
|
|
7183
|
+
width: 1px;
|
|
7184
|
+
height: 1px;
|
|
7185
|
+
padding: 0;
|
|
7186
|
+
margin: -1px;
|
|
7187
|
+
overflow: hidden;
|
|
7188
|
+
clip: rect(0, 0, 0, 0);
|
|
7189
|
+
clip-path: inset(50%);
|
|
7190
|
+
white-space: nowrap;
|
|
7191
|
+
border: 0;
|
|
7192
|
+
}
|
|
7193
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7194
|
+
.pimolu-spinner__svg,
|
|
7195
|
+
.pimolu-spinner__dot {
|
|
7196
|
+
animation: none;
|
|
7197
|
+
}
|
|
7198
|
+
.pimolu-spinner__dot {
|
|
7199
|
+
opacity: 1;
|
|
7200
|
+
transform: none;
|
|
7201
|
+
}
|
|
7202
|
+
}
|
|
7203
|
+
@media (forced-colors: active) {
|
|
7204
|
+
.pimolu-spinner {
|
|
7205
|
+
color: CanvasText;
|
|
7206
|
+
}
|
|
7207
|
+
.pimolu-spinner__track {
|
|
7208
|
+
opacity: 0.4;
|
|
7209
|
+
}
|
|
7210
|
+
.pimolu-spinner__dot {
|
|
7211
|
+
background: currentColor;
|
|
7212
|
+
}
|
|
7213
|
+
}
|
|
7214
|
+
|
|
7053
7215
|
/* src/toast.css */
|
|
7054
7216
|
.pimolu-toaster {
|
|
7217
|
+
--pimolu-toast-width: 24rem;
|
|
7218
|
+
--pimolu-toast-padding: 14px;
|
|
7219
|
+
--pimolu-toast-duration: 180ms;
|
|
7220
|
+
--pimolu-toast-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7055
7221
|
position: fixed;
|
|
7056
7222
|
z-index: 60;
|
|
7057
7223
|
display: grid;
|
|
7058
|
-
gap:
|
|
7059
|
-
width: min(
|
|
7224
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
7225
|
+
width: min(var(--pimolu-toast-width, 24rem), calc(100vw - 32px));
|
|
7226
|
+
max-height: calc(100dvh - 32px);
|
|
7227
|
+
overflow-y: auto;
|
|
7228
|
+
overscroll-behavior: contain;
|
|
7060
7229
|
pointer-events: none;
|
|
7061
7230
|
}
|
|
7231
|
+
.pimolu-toaster[data-position=top-left] {
|
|
7232
|
+
inset-block-start: 16px;
|
|
7233
|
+
inset-inline-start: 16px;
|
|
7234
|
+
}
|
|
7235
|
+
.pimolu-toaster[data-position=bottom-left] {
|
|
7236
|
+
inset-block-end: 16px;
|
|
7237
|
+
inset-inline-start: 16px;
|
|
7238
|
+
}
|
|
7062
7239
|
.pimolu-toaster[data-position=top-right] {
|
|
7063
7240
|
inset-block-start: 16px;
|
|
7064
7241
|
inset-inline-end: 16px;
|
|
7065
7242
|
}
|
|
7066
7243
|
.pimolu-toaster[data-position=top-center] {
|
|
7067
7244
|
inset-block-start: 16px;
|
|
7068
|
-
|
|
7245
|
+
left: 50%;
|
|
7069
7246
|
transform: translateX(-50%);
|
|
7070
7247
|
}
|
|
7071
7248
|
.pimolu-toaster[data-position=bottom-right] {
|
|
@@ -7074,7 +7251,7 @@ button.pimolu-list__row:focus-visible {
|
|
|
7074
7251
|
}
|
|
7075
7252
|
.pimolu-toaster[data-position=bottom-center] {
|
|
7076
7253
|
inset-block-end: 16px;
|
|
7077
|
-
|
|
7254
|
+
left: 50%;
|
|
7078
7255
|
transform: translateX(-50%);
|
|
7079
7256
|
}
|
|
7080
7257
|
.pimolu-toast {
|
|
@@ -7084,7 +7261,7 @@ button.pimolu-list__row:focus-visible {
|
|
|
7084
7261
|
justify-content: space-between;
|
|
7085
7262
|
gap: 12px;
|
|
7086
7263
|
box-sizing: border-box;
|
|
7087
|
-
padding:
|
|
7264
|
+
padding: var(--pimolu-toast-padding, 14px);
|
|
7088
7265
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
7089
7266
|
border-inline-start: 3px solid var(--pimolu-toast-tone);
|
|
7090
7267
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
@@ -7093,7 +7270,23 @@ button.pimolu-list__row:focus-visible {
|
|
|
7093
7270
|
box-shadow: var( --pimolu-shadow-raised, none );
|
|
7094
7271
|
font-family: var(--pimolu-font-body, inherit);
|
|
7095
7272
|
pointer-events: auto;
|
|
7096
|
-
animation: pimolu-toast-in
|
|
7273
|
+
animation: pimolu-toast-in var(--pimolu-toast-duration, 180ms) var(--pimolu-toast-easing, cubic-bezier(0.16, 1, 0.3, 1));
|
|
7274
|
+
}
|
|
7275
|
+
.pimolu-toast--info,
|
|
7276
|
+
.pimolu-toast--loading {
|
|
7277
|
+
--pimolu-toast-tone: var(--pimolu-primary);
|
|
7278
|
+
}
|
|
7279
|
+
.pimolu-toast__icon {
|
|
7280
|
+
display: inline-grid;
|
|
7281
|
+
place-items: center;
|
|
7282
|
+
flex: none;
|
|
7283
|
+
width: 20px;
|
|
7284
|
+
height: 20px;
|
|
7285
|
+
margin-block-start: 1px;
|
|
7286
|
+
color: var(--pimolu-toast-tone);
|
|
7287
|
+
}
|
|
7288
|
+
.pimolu-toast--default .pimolu-toast__icon {
|
|
7289
|
+
color: var(--pimolu-muted-foreground);
|
|
7097
7290
|
}
|
|
7098
7291
|
.pimolu-toast--success {
|
|
7099
7292
|
--pimolu-toast-tone: var(--pimolu-success, #15803d);
|
|
@@ -7108,6 +7301,7 @@ button.pimolu-list__row:focus-visible {
|
|
|
7108
7301
|
display: grid;
|
|
7109
7302
|
gap: 2px;
|
|
7110
7303
|
min-width: 0;
|
|
7304
|
+
flex: 1;
|
|
7111
7305
|
}
|
|
7112
7306
|
.pimolu-toast__title {
|
|
7113
7307
|
margin: 0;
|
|
@@ -7128,6 +7322,9 @@ button.pimolu-list__row:focus-visible {
|
|
|
7128
7322
|
align-items: center;
|
|
7129
7323
|
gap: 4px;
|
|
7130
7324
|
flex: none;
|
|
7325
|
+
flex-wrap: wrap;
|
|
7326
|
+
justify-content: flex-end;
|
|
7327
|
+
max-width: 45%;
|
|
7131
7328
|
}
|
|
7132
7329
|
.pimolu-toast__action {
|
|
7133
7330
|
padding: 2px 6px;
|
|
@@ -7139,15 +7336,21 @@ button.pimolu-list__row:focus-visible {
|
|
|
7139
7336
|
font-size: 0.8125rem;
|
|
7140
7337
|
font-weight: 600;
|
|
7141
7338
|
cursor: pointer;
|
|
7339
|
+
overflow-wrap: anywhere;
|
|
7142
7340
|
}
|
|
7143
7341
|
.pimolu-toast__action:hover {
|
|
7144
7342
|
background: var(--pimolu-muted);
|
|
7145
7343
|
}
|
|
7344
|
+
.pimolu-toast__action:disabled {
|
|
7345
|
+
opacity: 0.5;
|
|
7346
|
+
cursor: not-allowed;
|
|
7347
|
+
}
|
|
7146
7348
|
.pimolu-toast__close {
|
|
7147
7349
|
display: inline-grid;
|
|
7148
7350
|
place-items: center;
|
|
7149
|
-
width:
|
|
7150
|
-
height:
|
|
7351
|
+
width: 28px;
|
|
7352
|
+
height: 28px;
|
|
7353
|
+
flex: none;
|
|
7151
7354
|
padding: 0;
|
|
7152
7355
|
border: 0;
|
|
7153
7356
|
border-radius: var(--pimolu-radius-sm, 4px);
|
|
@@ -7156,6 +7359,16 @@ button.pimolu-list__row:focus-visible {
|
|
|
7156
7359
|
line-height: 0;
|
|
7157
7360
|
cursor: pointer;
|
|
7158
7361
|
}
|
|
7362
|
+
@media (pointer: coarse) {
|
|
7363
|
+
.pimolu-toast__action,
|
|
7364
|
+
.pimolu-toast__close {
|
|
7365
|
+
min-width: 44px;
|
|
7366
|
+
min-height: 44px;
|
|
7367
|
+
}
|
|
7368
|
+
}
|
|
7369
|
+
.pimolu-toaster:empty {
|
|
7370
|
+
pointer-events: none;
|
|
7371
|
+
}
|
|
7159
7372
|
.pimolu-toast__close:hover {
|
|
7160
7373
|
background: var(--pimolu-muted);
|
|
7161
7374
|
color: var(--pimolu-foreground);
|
|
@@ -21290,6 +21503,11 @@ a.pimolu-chat__attachment-name:focus-visible {
|
|
|
21290
21503
|
color: var(--pimolu-muted-foreground);
|
|
21291
21504
|
opacity: 1;
|
|
21292
21505
|
}
|
|
21506
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
21507
|
+
-webkit-background-clip: text;
|
|
21508
|
+
background-clip: text;
|
|
21509
|
+
-webkit-text-fill-color: var(--pimolu-foreground);
|
|
21510
|
+
}
|
|
21293
21511
|
.pimolu-input__control::-webkit-search-cancel-button,
|
|
21294
21512
|
.pimolu-input__control::-webkit-search-decoration {
|
|
21295
21513
|
-webkit-appearance: none;
|
|
@@ -21478,6 +21696,11 @@ a.pimolu-chat__attachment-name:focus-visible {
|
|
|
21478
21696
|
}
|
|
21479
21697
|
}
|
|
21480
21698
|
@media (forced-colors: active) {
|
|
21699
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
21700
|
+
-webkit-background-clip: border-box;
|
|
21701
|
+
background-clip: border-box;
|
|
21702
|
+
-webkit-text-fill-color: CanvasText;
|
|
21703
|
+
}
|
|
21481
21704
|
.pimolu-input__wrapper:focus-within {
|
|
21482
21705
|
outline: 2px solid Highlight;
|
|
21483
21706
|
outline-offset: 2px;
|