@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/layered.css
CHANGED
|
@@ -1009,6 +1009,12 @@
|
|
|
1009
1009
|
align-items: center;
|
|
1010
1010
|
justify-content: center;
|
|
1011
1011
|
}
|
|
1012
|
+
.pimolu-button__loading-indicator {
|
|
1013
|
+
display: inline-flex;
|
|
1014
|
+
align-items: center;
|
|
1015
|
+
justify-content: center;
|
|
1016
|
+
flex-shrink: 0;
|
|
1017
|
+
}
|
|
1012
1018
|
.pimolu-button__spinner {
|
|
1013
1019
|
width: 1em;
|
|
1014
1020
|
height: 1em;
|
|
@@ -1684,174 +1690,6 @@
|
|
|
1684
1690
|
}
|
|
1685
1691
|
}
|
|
1686
1692
|
|
|
1687
|
-
/* src/spinner.css */
|
|
1688
|
-
@layer pimolu {
|
|
1689
|
-
.pimolu-spinner {
|
|
1690
|
-
--pimolu-spinner-size: 20px;
|
|
1691
|
-
--pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
|
|
1692
|
-
--pimolu-spinner-color: currentColor;
|
|
1693
|
-
display: inline-flex;
|
|
1694
|
-
align-items: center;
|
|
1695
|
-
justify-content: center;
|
|
1696
|
-
flex: 0 0 auto;
|
|
1697
|
-
box-sizing: border-box;
|
|
1698
|
-
min-width: 0;
|
|
1699
|
-
color: var(--pimolu-spinner-color);
|
|
1700
|
-
line-height: 1;
|
|
1701
|
-
vertical-align: middle;
|
|
1702
|
-
user-select: none;
|
|
1703
|
-
}
|
|
1704
|
-
.pimolu-spinner--xs {
|
|
1705
|
-
--pimolu-spinner-size: 12px;
|
|
1706
|
-
}
|
|
1707
|
-
.pimolu-spinner--sm {
|
|
1708
|
-
--pimolu-spinner-size: 16px;
|
|
1709
|
-
}
|
|
1710
|
-
.pimolu-spinner--md {
|
|
1711
|
-
--pimolu-spinner-size: 20px;
|
|
1712
|
-
}
|
|
1713
|
-
.pimolu-spinner--lg {
|
|
1714
|
-
--pimolu-spinner-size: 24px;
|
|
1715
|
-
}
|
|
1716
|
-
.pimolu-spinner--xl {
|
|
1717
|
-
--pimolu-spinner-size: 32px;
|
|
1718
|
-
}
|
|
1719
|
-
.pimolu-spinner--inherit {
|
|
1720
|
-
--pimolu-spinner-color: currentColor;
|
|
1721
|
-
}
|
|
1722
|
-
.pimolu-spinner--neutral {
|
|
1723
|
-
--pimolu-spinner-color: var(--pimolu-foreground, currentColor);
|
|
1724
|
-
}
|
|
1725
|
-
.pimolu-spinner--primary {
|
|
1726
|
-
--pimolu-spinner-color: var(--pimolu-primary, currentColor);
|
|
1727
|
-
}
|
|
1728
|
-
.pimolu-spinner--secondary {
|
|
1729
|
-
--pimolu-spinner-color: var(--pimolu-secondary, currentColor);
|
|
1730
|
-
}
|
|
1731
|
-
.pimolu-spinner--success {
|
|
1732
|
-
--pimolu-spinner-color: var(--pimolu-success, currentColor);
|
|
1733
|
-
}
|
|
1734
|
-
.pimolu-spinner--warning {
|
|
1735
|
-
--pimolu-spinner-color: var(--pimolu-warning, currentColor);
|
|
1736
|
-
}
|
|
1737
|
-
.pimolu-spinner--danger {
|
|
1738
|
-
--pimolu-spinner-color: var(--pimolu-danger, currentColor);
|
|
1739
|
-
}
|
|
1740
|
-
.pimolu-spinner__visual {
|
|
1741
|
-
display: inline-flex;
|
|
1742
|
-
align-items: center;
|
|
1743
|
-
justify-content: center;
|
|
1744
|
-
flex: 0 0 auto;
|
|
1745
|
-
width: var(--pimolu-spinner-size);
|
|
1746
|
-
height: var(--pimolu-spinner-size);
|
|
1747
|
-
}
|
|
1748
|
-
.pimolu-spinner__svg {
|
|
1749
|
-
display: block;
|
|
1750
|
-
width: 100%;
|
|
1751
|
-
height: 100%;
|
|
1752
|
-
overflow: visible;
|
|
1753
|
-
transform-origin: center;
|
|
1754
|
-
animation: pimolu-spinner-rotate 1s linear infinite;
|
|
1755
|
-
}
|
|
1756
|
-
.pimolu-spinner__track,
|
|
1757
|
-
.pimolu-spinner__indicator {
|
|
1758
|
-
fill: none;
|
|
1759
|
-
stroke: currentColor;
|
|
1760
|
-
stroke-width: 2.5;
|
|
1761
|
-
}
|
|
1762
|
-
.pimolu-spinner__track {
|
|
1763
|
-
opacity: 0.18;
|
|
1764
|
-
}
|
|
1765
|
-
.pimolu-spinner__indicator {
|
|
1766
|
-
stroke-linecap: round;
|
|
1767
|
-
}
|
|
1768
|
-
.pimolu-spinner--circular .pimolu-spinner__indicator {
|
|
1769
|
-
stroke-dasharray: 16 57;
|
|
1770
|
-
}
|
|
1771
|
-
.pimolu-spinner--arc .pimolu-spinner__indicator {
|
|
1772
|
-
stroke-dasharray: 42 57;
|
|
1773
|
-
}
|
|
1774
|
-
.pimolu-spinner--arc .pimolu-spinner__track {
|
|
1775
|
-
opacity: 0;
|
|
1776
|
-
}
|
|
1777
|
-
.pimolu-spinner--arc .pimolu-spinner__svg {
|
|
1778
|
-
animation-duration: 1.3s;
|
|
1779
|
-
}
|
|
1780
|
-
@keyframes pimolu-spinner-rotate {
|
|
1781
|
-
from {
|
|
1782
|
-
transform: rotate(0deg);
|
|
1783
|
-
}
|
|
1784
|
-
to {
|
|
1785
|
-
transform: rotate(360deg);
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
.pimolu-spinner--dots .pimolu-spinner__visual {
|
|
1789
|
-
width: calc(var(--pimolu-spinner-size) * 1.5);
|
|
1790
|
-
gap: calc(var(--pimolu-spinner-size) * 0.14);
|
|
1791
|
-
}
|
|
1792
|
-
.pimolu-spinner__dot {
|
|
1793
|
-
display: block;
|
|
1794
|
-
flex: 0 0 auto;
|
|
1795
|
-
width: var(--pimolu-spinner-dot-size);
|
|
1796
|
-
height: var(--pimolu-spinner-dot-size);
|
|
1797
|
-
border-radius: 50%;
|
|
1798
|
-
background: currentColor;
|
|
1799
|
-
animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
|
|
1800
|
-
}
|
|
1801
|
-
.pimolu-spinner__dot:nth-child(1) {
|
|
1802
|
-
animation-delay: -0.32s;
|
|
1803
|
-
}
|
|
1804
|
-
.pimolu-spinner__dot:nth-child(2) {
|
|
1805
|
-
animation-delay: -0.16s;
|
|
1806
|
-
}
|
|
1807
|
-
.pimolu-spinner__dot:nth-child(3) {
|
|
1808
|
-
animation-delay: 0s;
|
|
1809
|
-
}
|
|
1810
|
-
@keyframes pimolu-spinner-dot {
|
|
1811
|
-
0%, 80%, 100% {
|
|
1812
|
-
opacity: 0.35;
|
|
1813
|
-
transform: translateY(0);
|
|
1814
|
-
}
|
|
1815
|
-
40% {
|
|
1816
|
-
opacity: 1;
|
|
1817
|
-
transform: translateY(-25%);
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
.pimolu-spinner__label {
|
|
1821
|
-
position: absolute;
|
|
1822
|
-
width: 1px;
|
|
1823
|
-
height: 1px;
|
|
1824
|
-
padding: 0;
|
|
1825
|
-
margin: -1px;
|
|
1826
|
-
overflow: hidden;
|
|
1827
|
-
clip: rect(0, 0, 0, 0);
|
|
1828
|
-
clip-path: inset(50%);
|
|
1829
|
-
white-space: nowrap;
|
|
1830
|
-
border: 0;
|
|
1831
|
-
}
|
|
1832
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1833
|
-
.pimolu-spinner__svg,
|
|
1834
|
-
.pimolu-spinner__dot {
|
|
1835
|
-
animation: none;
|
|
1836
|
-
}
|
|
1837
|
-
.pimolu-spinner__dot {
|
|
1838
|
-
opacity: 1;
|
|
1839
|
-
transform: none;
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
@media (forced-colors: active) {
|
|
1843
|
-
.pimolu-spinner {
|
|
1844
|
-
color: CanvasText;
|
|
1845
|
-
}
|
|
1846
|
-
.pimolu-spinner__track {
|
|
1847
|
-
opacity: 0.4;
|
|
1848
|
-
}
|
|
1849
|
-
.pimolu-spinner__dot {
|
|
1850
|
-
background: currentColor;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
1693
|
/* src/switch.css */
|
|
1856
1694
|
@layer pimolu {
|
|
1857
1695
|
.pimolu-switch {
|
|
@@ -4694,6 +4532,10 @@
|
|
|
4694
4532
|
|
|
4695
4533
|
/* src/tabs.css */
|
|
4696
4534
|
@layer pimolu {
|
|
4535
|
+
:root {
|
|
4536
|
+
--pimolu-tabs-indicator-duration: 240ms;
|
|
4537
|
+
--pimolu-tabs-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
4538
|
+
}
|
|
4697
4539
|
.pimolu-tabs {
|
|
4698
4540
|
--pimolu-tabs-height: 40px;
|
|
4699
4541
|
--pimolu-tabs-padding-x: 14px;
|
|
@@ -4759,18 +4601,26 @@
|
|
|
4759
4601
|
flex: 1 1 auto;
|
|
4760
4602
|
flex-wrap: nowrap;
|
|
4761
4603
|
overflow-x: auto;
|
|
4604
|
+
overflow-y: hidden;
|
|
4762
4605
|
overscroll-behavior-inline: contain;
|
|
4763
4606
|
}
|
|
4764
4607
|
.pimolu-tabs__list[data-scrollable=true] .pimolu-tabs__trigger {
|
|
4765
4608
|
flex: 0 0 auto;
|
|
4766
4609
|
}
|
|
4767
|
-
.pimolu-tabs__list[data-scrollable=true] {
|
|
4610
|
+
.pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true]) {
|
|
4768
4611
|
scrollbar-width: none;
|
|
4769
4612
|
-ms-overflow-style: none;
|
|
4770
4613
|
}
|
|
4771
|
-
.pimolu-tabs__list[data-scrollable=true]::-webkit-scrollbar {
|
|
4614
|
+
.pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true])::-webkit-scrollbar {
|
|
4772
4615
|
display: none;
|
|
4773
4616
|
}
|
|
4617
|
+
.pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true] {
|
|
4618
|
+
scrollbar-width: thin;
|
|
4619
|
+
}
|
|
4620
|
+
.pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true]::-webkit-scrollbar {
|
|
4621
|
+
display: block;
|
|
4622
|
+
height: 8px;
|
|
4623
|
+
}
|
|
4774
4624
|
.pimolu-tabs__scroll {
|
|
4775
4625
|
display: inline-grid;
|
|
4776
4626
|
flex: none;
|
|
@@ -4919,7 +4769,7 @@
|
|
|
4919
4769
|
.pimolu-tabs--segmented .pimolu-tabs__trigger {
|
|
4920
4770
|
position: relative;
|
|
4921
4771
|
flex: 1 1 0;
|
|
4922
|
-
min-width:
|
|
4772
|
+
min-width: max-content;
|
|
4923
4773
|
padding-inline: var(--pimolu-spacing-3, 12px);
|
|
4924
4774
|
border-radius: 999px;
|
|
4925
4775
|
color: var(--pimolu-muted-foreground);
|
|
@@ -5010,8 +4860,82 @@
|
|
|
5010
4860
|
box-shadow: inset 2px 0 0 var(--pimolu-primary);
|
|
5011
4861
|
}
|
|
5012
4862
|
}
|
|
4863
|
+
.pimolu-tabs__list {
|
|
4864
|
+
position: relative;
|
|
4865
|
+
isolation: isolate;
|
|
4866
|
+
}
|
|
4867
|
+
.pimolu-tabs__list > .pimolu-tabs__trigger {
|
|
4868
|
+
position: relative;
|
|
4869
|
+
z-index: 1;
|
|
4870
|
+
}
|
|
4871
|
+
.pimolu-tabs__indicator {
|
|
4872
|
+
position: absolute;
|
|
4873
|
+
top: 0;
|
|
4874
|
+
left: 0;
|
|
4875
|
+
z-index: 0;
|
|
4876
|
+
pointer-events: none;
|
|
4877
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
4878
|
+
}
|
|
4879
|
+
.pimolu-tabs__indicator[hidden] {
|
|
4880
|
+
display: none;
|
|
4881
|
+
}
|
|
4882
|
+
.pimolu-tabs__indicator[data-ready=true] {
|
|
4883
|
+
transition-property:
|
|
4884
|
+
transform,
|
|
4885
|
+
width,
|
|
4886
|
+
height;
|
|
4887
|
+
transition-duration: var(--pimolu-tabs-indicator-duration, 240ms);
|
|
4888
|
+
transition-timing-function: var(--pimolu-tabs-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
4889
|
+
}
|
|
4890
|
+
.pimolu-tabs__indicator::before {
|
|
4891
|
+
content: "";
|
|
4892
|
+
position: absolute;
|
|
4893
|
+
inset: 0;
|
|
4894
|
+
border-radius: inherit;
|
|
4895
|
+
}
|
|
4896
|
+
.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4897
|
+
inset-block-start: auto;
|
|
4898
|
+
height: 2px;
|
|
4899
|
+
background: var(--pimolu-primary);
|
|
4900
|
+
}
|
|
4901
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4902
|
+
inset-block: 0;
|
|
4903
|
+
inset-inline-start: auto;
|
|
4904
|
+
width: 2px;
|
|
4905
|
+
height: auto;
|
|
4906
|
+
}
|
|
4907
|
+
.pimolu-tabs--solid > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4908
|
+
background: var(--pimolu-primary);
|
|
4909
|
+
}
|
|
4910
|
+
.pimolu-tabs--soft > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4911
|
+
background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
|
|
4912
|
+
}
|
|
4913
|
+
.pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator {
|
|
4914
|
+
border-radius: 999px;
|
|
4915
|
+
}
|
|
4916
|
+
.pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4917
|
+
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
4918
|
+
box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
|
|
4919
|
+
}
|
|
4920
|
+
.pimolu-tabs__list[data-indicator=true] > .pimolu-tabs__trigger[data-state=active] {
|
|
4921
|
+
background: transparent;
|
|
4922
|
+
box-shadow: none;
|
|
4923
|
+
}
|
|
4924
|
+
@media (max-width: 600px) {
|
|
4925
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
|
|
4926
|
+
inset-inline-start: 0;
|
|
4927
|
+
inset-inline-end: auto;
|
|
4928
|
+
}
|
|
4929
|
+
}
|
|
4930
|
+
.pimolu-tabs[data-animated=false] > .pimolu-tabs__list-wrap > .pimolu-tabs__list > :is(.pimolu-tabs__indicator, .pimolu-tabs__trigger) {
|
|
4931
|
+
transition: none;
|
|
4932
|
+
}
|
|
4933
|
+
.pimolu-tabs[data-animated=false] > .pimolu-tabs__panel {
|
|
4934
|
+
animation: none;
|
|
4935
|
+
}
|
|
5013
4936
|
@media (prefers-reduced-motion: reduce) {
|
|
5014
|
-
.pimolu-tabs__trigger
|
|
4937
|
+
.pimolu-tabs__trigger,
|
|
4938
|
+
.pimolu-tabs__indicator[data-ready=true] {
|
|
5015
4939
|
transition: none;
|
|
5016
4940
|
}
|
|
5017
4941
|
.pimolu-tabs__panel[data-state=active] {
|
|
@@ -5019,6 +4943,9 @@
|
|
|
5019
4943
|
}
|
|
5020
4944
|
}
|
|
5021
4945
|
@media (forced-colors: active) {
|
|
4946
|
+
.pimolu-tabs__indicator {
|
|
4947
|
+
display: none;
|
|
4948
|
+
}
|
|
5022
4949
|
.pimolu-tabs__trigger[data-state=active] {
|
|
5023
4950
|
border: 1px solid Highlight;
|
|
5024
4951
|
color: Highlight;
|
|
@@ -5161,15 +5088,23 @@
|
|
|
5161
5088
|
|
|
5162
5089
|
/* src/segmented-control.css */
|
|
5163
5090
|
@layer pimolu {
|
|
5091
|
+
:root {
|
|
5092
|
+
--pimolu-segmented-indicator-duration: 240ms;
|
|
5093
|
+
--pimolu-segmented-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
5094
|
+
}
|
|
5164
5095
|
.pimolu-segmented-control {
|
|
5165
5096
|
--pimolu-segmented-height: 32px;
|
|
5166
5097
|
--pimolu-segmented-padding-x: 12px;
|
|
5167
5098
|
--pimolu-segmented-font-size: 0.875rem;
|
|
5168
5099
|
display: inline-flex;
|
|
5100
|
+
position: relative;
|
|
5101
|
+
isolation: isolate;
|
|
5102
|
+
flex-wrap: nowrap;
|
|
5169
5103
|
align-items: center;
|
|
5170
5104
|
gap: 0;
|
|
5171
5105
|
box-sizing: border-box;
|
|
5172
5106
|
max-width: 100%;
|
|
5107
|
+
min-width: 0;
|
|
5173
5108
|
padding: 4px;
|
|
5174
5109
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
5175
5110
|
border-radius: 999px;
|
|
@@ -5184,13 +5119,16 @@
|
|
|
5184
5119
|
flex-direction: column;
|
|
5185
5120
|
align-items: stretch;
|
|
5186
5121
|
width: fit-content;
|
|
5187
|
-
min-width: 12rem;
|
|
5122
|
+
min-width: min(12rem, 100%);
|
|
5188
5123
|
border-radius: var(--pimolu-radius-lg, 12px);
|
|
5189
5124
|
}
|
|
5190
5125
|
.pimolu-segmented-control--full-width.pimolu-segmented-control--vertical {
|
|
5191
5126
|
width: 100%;
|
|
5192
5127
|
}
|
|
5193
5128
|
.pimolu-segmented-control__item {
|
|
5129
|
+
position: relative;
|
|
5130
|
+
z-index: 1;
|
|
5131
|
+
flex-shrink: 0;
|
|
5194
5132
|
display: inline-flex;
|
|
5195
5133
|
align-items: center;
|
|
5196
5134
|
justify-content: center;
|
|
@@ -5216,7 +5154,7 @@
|
|
|
5216
5154
|
}
|
|
5217
5155
|
.pimolu-segmented-control--full-width .pimolu-segmented-control__item {
|
|
5218
5156
|
flex: 1 1 0;
|
|
5219
|
-
min-width:
|
|
5157
|
+
min-width: max-content;
|
|
5220
5158
|
}
|
|
5221
5159
|
.pimolu-segmented-control--vertical .pimolu-segmented-control__item {
|
|
5222
5160
|
flex: 0 0 auto;
|
|
@@ -5255,12 +5193,68 @@
|
|
|
5255
5193
|
--pimolu-segmented-padding-x: 16px;
|
|
5256
5194
|
--pimolu-segmented-font-size: 1rem;
|
|
5257
5195
|
}
|
|
5196
|
+
.pimolu-segmented-control__indicator {
|
|
5197
|
+
position: absolute;
|
|
5198
|
+
left: 0;
|
|
5199
|
+
top: 0;
|
|
5200
|
+
z-index: 0;
|
|
5201
|
+
border-radius: 999px;
|
|
5202
|
+
pointer-events: none;
|
|
5203
|
+
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
5204
|
+
box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
|
|
5205
|
+
}
|
|
5206
|
+
.pimolu-segmented-control__indicator[hidden] {
|
|
5207
|
+
display: none;
|
|
5208
|
+
}
|
|
5209
|
+
.pimolu-segmented-control__indicator[data-ready=true] {
|
|
5210
|
+
transition-property:
|
|
5211
|
+
transform,
|
|
5212
|
+
width,
|
|
5213
|
+
height;
|
|
5214
|
+
transition-duration: var(--pimolu-segmented-indicator-duration, 240ms);
|
|
5215
|
+
transition-timing-function: var(--pimolu-segmented-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
5216
|
+
}
|
|
5217
|
+
.pimolu-segmented-control[data-indicator=true] > .pimolu-segmented-control__item[data-state=active] {
|
|
5218
|
+
background: transparent;
|
|
5219
|
+
box-shadow: none;
|
|
5220
|
+
}
|
|
5221
|
+
.pimolu-segmented-control[data-animated=false] > :is(.pimolu-segmented-control__indicator, .pimolu-segmented-control__item) {
|
|
5222
|
+
transition: none;
|
|
5223
|
+
}
|
|
5224
|
+
.pimolu-segmented-control {
|
|
5225
|
+
flex-wrap: nowrap;
|
|
5226
|
+
overflow-x: auto;
|
|
5227
|
+
overflow-y: hidden;
|
|
5228
|
+
overscroll-behavior: contain;
|
|
5229
|
+
}
|
|
5230
|
+
.pimolu-segmented-control--vertical {
|
|
5231
|
+
overflow-x: hidden;
|
|
5232
|
+
overflow-y: auto;
|
|
5233
|
+
}
|
|
5234
|
+
.pimolu-segmented-control:not([data-show-scrollbar=true]) {
|
|
5235
|
+
scrollbar-width: none;
|
|
5236
|
+
}
|
|
5237
|
+
.pimolu-segmented-control:not([data-show-scrollbar=true])::-webkit-scrollbar {
|
|
5238
|
+
display: none;
|
|
5239
|
+
}
|
|
5240
|
+
.pimolu-segmented-control[data-show-scrollbar=true] {
|
|
5241
|
+
scrollbar-width: thin;
|
|
5242
|
+
}
|
|
5243
|
+
.pimolu-segmented-control[data-show-scrollbar=true]::-webkit-scrollbar {
|
|
5244
|
+
display: block;
|
|
5245
|
+
width: 8px;
|
|
5246
|
+
height: 8px;
|
|
5247
|
+
}
|
|
5258
5248
|
@media (prefers-reduced-motion: reduce) {
|
|
5259
|
-
.pimolu-segmented-control__item
|
|
5249
|
+
.pimolu-segmented-control__item,
|
|
5250
|
+
.pimolu-segmented-control__indicator[data-ready=true] {
|
|
5260
5251
|
transition: none;
|
|
5261
5252
|
}
|
|
5262
5253
|
}
|
|
5263
5254
|
@media (forced-colors: active) {
|
|
5255
|
+
.pimolu-segmented-control__indicator {
|
|
5256
|
+
display: none;
|
|
5257
|
+
}
|
|
5264
5258
|
.pimolu-segmented-control__item[data-state=active] {
|
|
5265
5259
|
border: 1px solid Highlight;
|
|
5266
5260
|
color: Highlight;
|
|
@@ -7157,23 +7151,206 @@
|
|
|
7157
7151
|
}
|
|
7158
7152
|
}
|
|
7159
7153
|
|
|
7154
|
+
/* src/spinner.css */
|
|
7155
|
+
@layer pimolu {
|
|
7156
|
+
.pimolu-spinner {
|
|
7157
|
+
--pimolu-spinner-size: 20px;
|
|
7158
|
+
--pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
|
|
7159
|
+
--pimolu-spinner-color: currentColor;
|
|
7160
|
+
display: inline-flex;
|
|
7161
|
+
align-items: center;
|
|
7162
|
+
justify-content: center;
|
|
7163
|
+
flex: 0 0 auto;
|
|
7164
|
+
box-sizing: border-box;
|
|
7165
|
+
min-width: 0;
|
|
7166
|
+
color: var(--pimolu-spinner-color);
|
|
7167
|
+
line-height: 1;
|
|
7168
|
+
vertical-align: middle;
|
|
7169
|
+
user-select: none;
|
|
7170
|
+
}
|
|
7171
|
+
.pimolu-spinner--xs {
|
|
7172
|
+
--pimolu-spinner-size: 12px;
|
|
7173
|
+
}
|
|
7174
|
+
.pimolu-spinner--sm {
|
|
7175
|
+
--pimolu-spinner-size: 16px;
|
|
7176
|
+
}
|
|
7177
|
+
.pimolu-spinner--md {
|
|
7178
|
+
--pimolu-spinner-size: 20px;
|
|
7179
|
+
}
|
|
7180
|
+
.pimolu-spinner--lg {
|
|
7181
|
+
--pimolu-spinner-size: 24px;
|
|
7182
|
+
}
|
|
7183
|
+
.pimolu-spinner--xl {
|
|
7184
|
+
--pimolu-spinner-size: 32px;
|
|
7185
|
+
}
|
|
7186
|
+
.pimolu-spinner--inherit {
|
|
7187
|
+
--pimolu-spinner-color: currentColor;
|
|
7188
|
+
}
|
|
7189
|
+
.pimolu-spinner--neutral {
|
|
7190
|
+
--pimolu-spinner-color: var(--pimolu-foreground, currentColor);
|
|
7191
|
+
}
|
|
7192
|
+
.pimolu-spinner--primary {
|
|
7193
|
+
--pimolu-spinner-color: var(--pimolu-primary, currentColor);
|
|
7194
|
+
}
|
|
7195
|
+
.pimolu-spinner--secondary {
|
|
7196
|
+
--pimolu-spinner-color: var(--pimolu-secondary, currentColor);
|
|
7197
|
+
}
|
|
7198
|
+
.pimolu-spinner--success {
|
|
7199
|
+
--pimolu-spinner-color: var(--pimolu-success, currentColor);
|
|
7200
|
+
}
|
|
7201
|
+
.pimolu-spinner--warning {
|
|
7202
|
+
--pimolu-spinner-color: var(--pimolu-warning, currentColor);
|
|
7203
|
+
}
|
|
7204
|
+
.pimolu-spinner--danger {
|
|
7205
|
+
--pimolu-spinner-color: var(--pimolu-danger, currentColor);
|
|
7206
|
+
}
|
|
7207
|
+
.pimolu-spinner__visual {
|
|
7208
|
+
display: inline-flex;
|
|
7209
|
+
align-items: center;
|
|
7210
|
+
justify-content: center;
|
|
7211
|
+
flex: 0 0 auto;
|
|
7212
|
+
width: var(--pimolu-spinner-size);
|
|
7213
|
+
height: var(--pimolu-spinner-size);
|
|
7214
|
+
}
|
|
7215
|
+
.pimolu-spinner__svg {
|
|
7216
|
+
display: block;
|
|
7217
|
+
width: 100%;
|
|
7218
|
+
height: 100%;
|
|
7219
|
+
overflow: visible;
|
|
7220
|
+
transform-origin: center;
|
|
7221
|
+
animation: pimolu-spinner-rotate 1s linear infinite;
|
|
7222
|
+
}
|
|
7223
|
+
.pimolu-spinner__track,
|
|
7224
|
+
.pimolu-spinner__indicator {
|
|
7225
|
+
fill: none;
|
|
7226
|
+
stroke: currentColor;
|
|
7227
|
+
stroke-width: 2.5;
|
|
7228
|
+
}
|
|
7229
|
+
.pimolu-spinner__track {
|
|
7230
|
+
opacity: 0.18;
|
|
7231
|
+
}
|
|
7232
|
+
.pimolu-spinner__indicator {
|
|
7233
|
+
stroke-linecap: round;
|
|
7234
|
+
}
|
|
7235
|
+
.pimolu-spinner--circular .pimolu-spinner__indicator {
|
|
7236
|
+
stroke-dasharray: 16 57;
|
|
7237
|
+
}
|
|
7238
|
+
.pimolu-spinner--arc .pimolu-spinner__indicator {
|
|
7239
|
+
stroke-dasharray: 42 57;
|
|
7240
|
+
}
|
|
7241
|
+
.pimolu-spinner--arc .pimolu-spinner__track {
|
|
7242
|
+
opacity: 0;
|
|
7243
|
+
}
|
|
7244
|
+
.pimolu-spinner--arc .pimolu-spinner__svg {
|
|
7245
|
+
animation-duration: 1.3s;
|
|
7246
|
+
}
|
|
7247
|
+
@keyframes pimolu-spinner-rotate {
|
|
7248
|
+
from {
|
|
7249
|
+
transform: rotate(0deg);
|
|
7250
|
+
}
|
|
7251
|
+
to {
|
|
7252
|
+
transform: rotate(360deg);
|
|
7253
|
+
}
|
|
7254
|
+
}
|
|
7255
|
+
.pimolu-spinner--dots .pimolu-spinner__visual {
|
|
7256
|
+
width: calc(var(--pimolu-spinner-size) * 1.5);
|
|
7257
|
+
gap: calc(var(--pimolu-spinner-size) * 0.14);
|
|
7258
|
+
}
|
|
7259
|
+
.pimolu-spinner__dot {
|
|
7260
|
+
display: block;
|
|
7261
|
+
flex: 0 0 auto;
|
|
7262
|
+
width: var(--pimolu-spinner-dot-size);
|
|
7263
|
+
height: var(--pimolu-spinner-dot-size);
|
|
7264
|
+
border-radius: 50%;
|
|
7265
|
+
background: currentColor;
|
|
7266
|
+
animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
|
|
7267
|
+
}
|
|
7268
|
+
.pimolu-spinner__dot:nth-child(1) {
|
|
7269
|
+
animation-delay: -0.32s;
|
|
7270
|
+
}
|
|
7271
|
+
.pimolu-spinner__dot:nth-child(2) {
|
|
7272
|
+
animation-delay: -0.16s;
|
|
7273
|
+
}
|
|
7274
|
+
.pimolu-spinner__dot:nth-child(3) {
|
|
7275
|
+
animation-delay: 0s;
|
|
7276
|
+
}
|
|
7277
|
+
@keyframes pimolu-spinner-dot {
|
|
7278
|
+
0%, 80%, 100% {
|
|
7279
|
+
opacity: 0.35;
|
|
7280
|
+
transform: translateY(0);
|
|
7281
|
+
}
|
|
7282
|
+
40% {
|
|
7283
|
+
opacity: 1;
|
|
7284
|
+
transform: translateY(-25%);
|
|
7285
|
+
}
|
|
7286
|
+
}
|
|
7287
|
+
.pimolu-spinner__label {
|
|
7288
|
+
position: absolute;
|
|
7289
|
+
width: 1px;
|
|
7290
|
+
height: 1px;
|
|
7291
|
+
padding: 0;
|
|
7292
|
+
margin: -1px;
|
|
7293
|
+
overflow: hidden;
|
|
7294
|
+
clip: rect(0, 0, 0, 0);
|
|
7295
|
+
clip-path: inset(50%);
|
|
7296
|
+
white-space: nowrap;
|
|
7297
|
+
border: 0;
|
|
7298
|
+
}
|
|
7299
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7300
|
+
.pimolu-spinner__svg,
|
|
7301
|
+
.pimolu-spinner__dot {
|
|
7302
|
+
animation: none;
|
|
7303
|
+
}
|
|
7304
|
+
.pimolu-spinner__dot {
|
|
7305
|
+
opacity: 1;
|
|
7306
|
+
transform: none;
|
|
7307
|
+
}
|
|
7308
|
+
}
|
|
7309
|
+
@media (forced-colors: active) {
|
|
7310
|
+
.pimolu-spinner {
|
|
7311
|
+
color: CanvasText;
|
|
7312
|
+
}
|
|
7313
|
+
.pimolu-spinner__track {
|
|
7314
|
+
opacity: 0.4;
|
|
7315
|
+
}
|
|
7316
|
+
.pimolu-spinner__dot {
|
|
7317
|
+
background: currentColor;
|
|
7318
|
+
}
|
|
7319
|
+
}
|
|
7320
|
+
}
|
|
7321
|
+
|
|
7160
7322
|
/* src/toast.css */
|
|
7161
7323
|
@layer pimolu {
|
|
7162
7324
|
.pimolu-toaster {
|
|
7325
|
+
--pimolu-toast-width: 24rem;
|
|
7326
|
+
--pimolu-toast-padding: 14px;
|
|
7327
|
+
--pimolu-toast-duration: 180ms;
|
|
7328
|
+
--pimolu-toast-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7163
7329
|
position: fixed;
|
|
7164
7330
|
z-index: 60;
|
|
7165
7331
|
display: grid;
|
|
7166
|
-
gap:
|
|
7167
|
-
width: min(
|
|
7332
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
7333
|
+
width: min(var(--pimolu-toast-width, 24rem), calc(100vw - 32px));
|
|
7334
|
+
max-height: calc(100dvh - 32px);
|
|
7335
|
+
overflow-y: auto;
|
|
7336
|
+
overscroll-behavior: contain;
|
|
7168
7337
|
pointer-events: none;
|
|
7169
7338
|
}
|
|
7339
|
+
.pimolu-toaster[data-position=top-left] {
|
|
7340
|
+
inset-block-start: 16px;
|
|
7341
|
+
inset-inline-start: 16px;
|
|
7342
|
+
}
|
|
7343
|
+
.pimolu-toaster[data-position=bottom-left] {
|
|
7344
|
+
inset-block-end: 16px;
|
|
7345
|
+
inset-inline-start: 16px;
|
|
7346
|
+
}
|
|
7170
7347
|
.pimolu-toaster[data-position=top-right] {
|
|
7171
7348
|
inset-block-start: 16px;
|
|
7172
7349
|
inset-inline-end: 16px;
|
|
7173
7350
|
}
|
|
7174
7351
|
.pimolu-toaster[data-position=top-center] {
|
|
7175
7352
|
inset-block-start: 16px;
|
|
7176
|
-
|
|
7353
|
+
left: 50%;
|
|
7177
7354
|
transform: translateX(-50%);
|
|
7178
7355
|
}
|
|
7179
7356
|
.pimolu-toaster[data-position=bottom-right] {
|
|
@@ -7182,7 +7359,7 @@
|
|
|
7182
7359
|
}
|
|
7183
7360
|
.pimolu-toaster[data-position=bottom-center] {
|
|
7184
7361
|
inset-block-end: 16px;
|
|
7185
|
-
|
|
7362
|
+
left: 50%;
|
|
7186
7363
|
transform: translateX(-50%);
|
|
7187
7364
|
}
|
|
7188
7365
|
.pimolu-toast {
|
|
@@ -7192,7 +7369,7 @@
|
|
|
7192
7369
|
justify-content: space-between;
|
|
7193
7370
|
gap: 12px;
|
|
7194
7371
|
box-sizing: border-box;
|
|
7195
|
-
padding:
|
|
7372
|
+
padding: var(--pimolu-toast-padding, 14px);
|
|
7196
7373
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
7197
7374
|
border-inline-start: 3px solid var(--pimolu-toast-tone);
|
|
7198
7375
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
@@ -7201,7 +7378,23 @@
|
|
|
7201
7378
|
box-shadow: var( --pimolu-shadow-raised, none );
|
|
7202
7379
|
font-family: var(--pimolu-font-body, inherit);
|
|
7203
7380
|
pointer-events: auto;
|
|
7204
|
-
animation: pimolu-toast-in
|
|
7381
|
+
animation: pimolu-toast-in var(--pimolu-toast-duration, 180ms) var(--pimolu-toast-easing, cubic-bezier(0.16, 1, 0.3, 1));
|
|
7382
|
+
}
|
|
7383
|
+
.pimolu-toast--info,
|
|
7384
|
+
.pimolu-toast--loading {
|
|
7385
|
+
--pimolu-toast-tone: var(--pimolu-primary);
|
|
7386
|
+
}
|
|
7387
|
+
.pimolu-toast__icon {
|
|
7388
|
+
display: inline-grid;
|
|
7389
|
+
place-items: center;
|
|
7390
|
+
flex: none;
|
|
7391
|
+
width: 20px;
|
|
7392
|
+
height: 20px;
|
|
7393
|
+
margin-block-start: 1px;
|
|
7394
|
+
color: var(--pimolu-toast-tone);
|
|
7395
|
+
}
|
|
7396
|
+
.pimolu-toast--default .pimolu-toast__icon {
|
|
7397
|
+
color: var(--pimolu-muted-foreground);
|
|
7205
7398
|
}
|
|
7206
7399
|
.pimolu-toast--success {
|
|
7207
7400
|
--pimolu-toast-tone: var(--pimolu-success, #15803d);
|
|
@@ -7216,6 +7409,7 @@
|
|
|
7216
7409
|
display: grid;
|
|
7217
7410
|
gap: 2px;
|
|
7218
7411
|
min-width: 0;
|
|
7412
|
+
flex: 1;
|
|
7219
7413
|
}
|
|
7220
7414
|
.pimolu-toast__title {
|
|
7221
7415
|
margin: 0;
|
|
@@ -7236,6 +7430,9 @@
|
|
|
7236
7430
|
align-items: center;
|
|
7237
7431
|
gap: 4px;
|
|
7238
7432
|
flex: none;
|
|
7433
|
+
flex-wrap: wrap;
|
|
7434
|
+
justify-content: flex-end;
|
|
7435
|
+
max-width: 45%;
|
|
7239
7436
|
}
|
|
7240
7437
|
.pimolu-toast__action {
|
|
7241
7438
|
padding: 2px 6px;
|
|
@@ -7247,15 +7444,21 @@
|
|
|
7247
7444
|
font-size: 0.8125rem;
|
|
7248
7445
|
font-weight: 600;
|
|
7249
7446
|
cursor: pointer;
|
|
7447
|
+
overflow-wrap: anywhere;
|
|
7250
7448
|
}
|
|
7251
7449
|
.pimolu-toast__action:hover {
|
|
7252
7450
|
background: var(--pimolu-muted);
|
|
7253
7451
|
}
|
|
7452
|
+
.pimolu-toast__action:disabled {
|
|
7453
|
+
opacity: 0.5;
|
|
7454
|
+
cursor: not-allowed;
|
|
7455
|
+
}
|
|
7254
7456
|
.pimolu-toast__close {
|
|
7255
7457
|
display: inline-grid;
|
|
7256
7458
|
place-items: center;
|
|
7257
|
-
width:
|
|
7258
|
-
height:
|
|
7459
|
+
width: 28px;
|
|
7460
|
+
height: 28px;
|
|
7461
|
+
flex: none;
|
|
7259
7462
|
padding: 0;
|
|
7260
7463
|
border: 0;
|
|
7261
7464
|
border-radius: var(--pimolu-radius-sm, 4px);
|
|
@@ -7264,6 +7467,16 @@
|
|
|
7264
7467
|
line-height: 0;
|
|
7265
7468
|
cursor: pointer;
|
|
7266
7469
|
}
|
|
7470
|
+
@media (pointer: coarse) {
|
|
7471
|
+
.pimolu-toast__action,
|
|
7472
|
+
.pimolu-toast__close {
|
|
7473
|
+
min-width: 44px;
|
|
7474
|
+
min-height: 44px;
|
|
7475
|
+
}
|
|
7476
|
+
}
|
|
7477
|
+
.pimolu-toaster:empty {
|
|
7478
|
+
pointer-events: none;
|
|
7479
|
+
}
|
|
7267
7480
|
.pimolu-toast__close:hover {
|
|
7268
7481
|
background: var(--pimolu-muted);
|
|
7269
7482
|
color: var(--pimolu-foreground);
|
|
@@ -21560,6 +21773,11 @@
|
|
|
21560
21773
|
color: var(--pimolu-muted-foreground);
|
|
21561
21774
|
opacity: 1;
|
|
21562
21775
|
}
|
|
21776
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
21777
|
+
-webkit-background-clip: text;
|
|
21778
|
+
background-clip: text;
|
|
21779
|
+
-webkit-text-fill-color: var(--pimolu-foreground);
|
|
21780
|
+
}
|
|
21563
21781
|
.pimolu-input__control::-webkit-search-cancel-button,
|
|
21564
21782
|
.pimolu-input__control::-webkit-search-decoration {
|
|
21565
21783
|
-webkit-appearance: none;
|
|
@@ -21748,6 +21966,11 @@
|
|
|
21748
21966
|
}
|
|
21749
21967
|
}
|
|
21750
21968
|
@media (forced-colors: active) {
|
|
21969
|
+
.pimolu-input__control:is(:autofill, :-webkit-autofill) {
|
|
21970
|
+
-webkit-background-clip: border-box;
|
|
21971
|
+
background-clip: border-box;
|
|
21972
|
+
-webkit-text-fill-color: CanvasText;
|
|
21973
|
+
}
|
|
21751
21974
|
.pimolu-input__wrapper:focus-within {
|
|
21752
21975
|
outline: 2px solid Highlight;
|
|
21753
21976
|
outline-offset: 2px;
|