@smilodon/core 1.3.4 → 1.3.6
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.md +269 -10
- package/dist/index.cjs +72 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +72 -60
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +72 -60
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1672,19 +1672,19 @@
|
|
|
1672
1672
|
display: flex;
|
|
1673
1673
|
align-items: center;
|
|
1674
1674
|
flex-wrap: wrap;
|
|
1675
|
-
gap: 6px;
|
|
1676
|
-
padding: 6px 52px 6px 8px;
|
|
1677
|
-
min-height: 44px;
|
|
1678
|
-
background: white;
|
|
1679
|
-
border: 1px solid #d1d5db;
|
|
1680
|
-
border-radius: 6px;
|
|
1675
|
+
gap: var(--select-input-gap, 6px);
|
|
1676
|
+
padding: var(--select-input-padding, 6px 52px 6px 8px);
|
|
1677
|
+
min-height: var(--select-input-min-height, 44px);
|
|
1678
|
+
background: var(--select-input-bg, white);
|
|
1679
|
+
border: var(--select-input-border, 1px solid #d1d5db);
|
|
1680
|
+
border-radius: var(--select-input-border-radius, 6px);
|
|
1681
1681
|
box-sizing: border-box;
|
|
1682
1682
|
transition: all 0.2s ease;
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
1685
|
.input-container:focus-within {
|
|
1686
|
-
border-color: #667eea;
|
|
1687
|
-
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
1686
|
+
border-color: var(--select-input-focus-border, #667eea);
|
|
1687
|
+
box-shadow: var(--select-input-focus-shadow, 0 0 0 3px rgba(102, 126, 234, 0.1));
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
/* Gradient separator before arrow */
|
|
@@ -1692,17 +1692,17 @@
|
|
|
1692
1692
|
content: '';
|
|
1693
1693
|
position: absolute;
|
|
1694
1694
|
top: 50%;
|
|
1695
|
-
right: 40px;
|
|
1695
|
+
right: var(--select-separator-position, 40px);
|
|
1696
1696
|
transform: translateY(-50%);
|
|
1697
|
-
width: 1px;
|
|
1698
|
-
height: 60
|
|
1699
|
-
background: linear-gradient(
|
|
1697
|
+
width: var(--select-separator-width, 1px);
|
|
1698
|
+
height: var(--select-separator-height, 60%);
|
|
1699
|
+
background: var(--select-separator-gradient, linear-gradient(
|
|
1700
1700
|
to bottom,
|
|
1701
1701
|
transparent 0%,
|
|
1702
1702
|
rgba(0, 0, 0, 0.1) 20%,
|
|
1703
1703
|
rgba(0, 0, 0, 0.1) 80%,
|
|
1704
1704
|
transparent 100%
|
|
1705
|
-
);
|
|
1705
|
+
));
|
|
1706
1706
|
pointer-events: none;
|
|
1707
1707
|
z-index: 1;
|
|
1708
1708
|
}
|
|
@@ -1712,30 +1712,30 @@
|
|
|
1712
1712
|
top: 0;
|
|
1713
1713
|
right: 0;
|
|
1714
1714
|
bottom: 0;
|
|
1715
|
-
width: 40px;
|
|
1715
|
+
width: var(--select-arrow-width, 40px);
|
|
1716
1716
|
display: flex;
|
|
1717
1717
|
align-items: center;
|
|
1718
1718
|
justify-content: center;
|
|
1719
1719
|
cursor: pointer;
|
|
1720
1720
|
transition: background-color 0.2s ease;
|
|
1721
|
-
border-radius: 0 4px 4px 0;
|
|
1721
|
+
border-radius: var(--select-arrow-border-radius, 0 4px 4px 0);
|
|
1722
1722
|
z-index: 2;
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
1725
1725
|
.dropdown-arrow-container:hover {
|
|
1726
|
-
background-color: rgba(102, 126, 234, 0.08);
|
|
1726
|
+
background-color: var(--select-arrow-hover-bg, rgba(102, 126, 234, 0.08));
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
1729
|
.dropdown-arrow {
|
|
1730
|
-
width: 16px;
|
|
1731
|
-
height: 16px;
|
|
1732
|
-
color: #667eea;
|
|
1730
|
+
width: var(--select-arrow-size, 16px);
|
|
1731
|
+
height: var(--select-arrow-size, 16px);
|
|
1732
|
+
color: var(--select-arrow-color, #667eea);
|
|
1733
1733
|
transition: transform 0.2s ease, color 0.2s ease;
|
|
1734
1734
|
transform: translateY(0);
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
1737
|
.dropdown-arrow-container:hover .dropdown-arrow {
|
|
1738
|
-
color: #667eea;
|
|
1738
|
+
color: var(--select-arrow-hover-color, #667eea);
|
|
1739
1739
|
}
|
|
1740
1740
|
|
|
1741
1741
|
.dropdown-arrow.open {
|
|
@@ -1744,31 +1744,32 @@
|
|
|
1744
1744
|
|
|
1745
1745
|
.select-input {
|
|
1746
1746
|
flex: 1;
|
|
1747
|
-
min-width: 120px;
|
|
1748
|
-
padding: 4px;
|
|
1747
|
+
min-width: var(--select-input-min-width, 120px);
|
|
1748
|
+
padding: var(--select-input-field-padding, 4px);
|
|
1749
1749
|
border: none;
|
|
1750
|
-
font-size: 14px;
|
|
1751
|
-
line-height: 1.5;
|
|
1752
|
-
color: #1f2937;
|
|
1750
|
+
font-size: var(--select-input-font-size, 14px);
|
|
1751
|
+
line-height: var(--select-input-line-height, 1.5);
|
|
1752
|
+
color: var(--select-input-color, #1f2937);
|
|
1753
1753
|
background: transparent;
|
|
1754
1754
|
box-sizing: border-box;
|
|
1755
1755
|
outline: none;
|
|
1756
|
+
font-family: var(--select-font-family, inherit);
|
|
1756
1757
|
}
|
|
1757
1758
|
|
|
1758
1759
|
.select-input::placeholder {
|
|
1759
|
-
color: #9ca3af;
|
|
1760
|
+
color: var(--select-input-placeholder-color, #9ca3af);
|
|
1760
1761
|
}
|
|
1761
1762
|
|
|
1762
1763
|
.selection-badge {
|
|
1763
1764
|
display: inline-flex;
|
|
1764
1765
|
align-items: center;
|
|
1765
|
-
gap: 4px;
|
|
1766
|
-
padding: 4px 8px;
|
|
1767
|
-
margin: 2px;
|
|
1768
|
-
background: #667eea;
|
|
1769
|
-
color: white;
|
|
1770
|
-
border-radius: 4px;
|
|
1771
|
-
font-size: 13px;
|
|
1766
|
+
gap: var(--select-badge-gap, 4px);
|
|
1767
|
+
padding: var(--select-badge-padding, 4px 8px);
|
|
1768
|
+
margin: var(--select-badge-margin, 2px);
|
|
1769
|
+
background: var(--select-badge-bg, #667eea);
|
|
1770
|
+
color: var(--select-badge-color, white);
|
|
1771
|
+
border-radius: var(--select-badge-border-radius, 4px);
|
|
1772
|
+
font-size: var(--select-badge-font-size, 13px);
|
|
1772
1773
|
line-height: 1;
|
|
1773
1774
|
}
|
|
1774
1775
|
|
|
@@ -1776,22 +1777,22 @@
|
|
|
1776
1777
|
display: inline-flex;
|
|
1777
1778
|
align-items: center;
|
|
1778
1779
|
justify-content: center;
|
|
1779
|
-
width: 16px;
|
|
1780
|
-
height: 16px;
|
|
1780
|
+
width: var(--select-badge-remove-size, 16px);
|
|
1781
|
+
height: var(--select-badge-remove-size, 16px);
|
|
1781
1782
|
padding: 0;
|
|
1782
1783
|
margin-left: 4px;
|
|
1783
|
-
background: rgba(255, 255, 255, 0.3);
|
|
1784
|
+
background: var(--select-badge-remove-bg, rgba(255, 255, 255, 0.3));
|
|
1784
1785
|
border: none;
|
|
1785
1786
|
border-radius: 50%;
|
|
1786
|
-
color: white;
|
|
1787
|
-
font-size: 16px;
|
|
1787
|
+
color: var(--select-badge-remove-color, white);
|
|
1788
|
+
font-size: var(--select-badge-remove-font-size, 16px);
|
|
1788
1789
|
line-height: 1;
|
|
1789
1790
|
cursor: pointer;
|
|
1790
1791
|
transition: background 0.2s;
|
|
1791
1792
|
}
|
|
1792
1793
|
|
|
1793
1794
|
.badge-remove:hover {
|
|
1794
|
-
background: rgba(255, 255, 255, 0.5);
|
|
1795
|
+
background: var(--select-badge-remove-hover-bg, rgba(255, 255, 255, 0.5));
|
|
1795
1796
|
}
|
|
1796
1797
|
|
|
1797
1798
|
.select-input:disabled {
|
|
@@ -1805,19 +1806,19 @@
|
|
|
1805
1806
|
top: 100%;
|
|
1806
1807
|
left: 0;
|
|
1807
1808
|
right: 0;
|
|
1808
|
-
margin-top: 4px;
|
|
1809
|
-
max-height: 300px;
|
|
1809
|
+
margin-top: var(--select-dropdown-margin-top, 4px);
|
|
1810
|
+
max-height: var(--select-dropdown-max-height, 300px);
|
|
1810
1811
|
overflow: hidden;
|
|
1811
1812
|
background: var(--select-dropdown-bg, white);
|
|
1812
|
-
border:
|
|
1813
|
-
border-radius: var(--select-border-radius, 4px);
|
|
1813
|
+
border: var(--select-dropdown-border, 1px solid #ccc);
|
|
1814
|
+
border-radius: var(--select-dropdown-border-radius, 4px);
|
|
1814
1815
|
box-shadow: var(--select-dropdown-shadow, 0 4px 6px rgba(0,0,0,0.1));
|
|
1815
1816
|
z-index: var(--select-dropdown-z-index, 1000);
|
|
1816
1817
|
}
|
|
1817
1818
|
|
|
1818
1819
|
.options-container {
|
|
1819
1820
|
position: relative;
|
|
1820
|
-
max-height: 300px;
|
|
1821
|
+
max-height: var(--select-options-max-height, 300px);
|
|
1821
1822
|
overflow: auto;
|
|
1822
1823
|
transition: opacity 0.2s ease-in-out;
|
|
1823
1824
|
background: var(--select-options-bg, white);
|
|
@@ -1828,8 +1829,11 @@
|
|
|
1828
1829
|
cursor: pointer;
|
|
1829
1830
|
color: var(--select-option-color, #1f2937);
|
|
1830
1831
|
background: var(--select-option-bg, white);
|
|
1831
|
-
transition: background-color 0.15s ease;
|
|
1832
|
+
transition: var(--select-option-transition, background-color 0.15s ease);
|
|
1832
1833
|
user-select: none;
|
|
1834
|
+
font-size: var(--select-option-font-size, 14px);
|
|
1835
|
+
line-height: var(--select-option-line-height, 1.5);
|
|
1836
|
+
border-bottom: var(--select-option-border-bottom, none);
|
|
1833
1837
|
}
|
|
1834
1838
|
|
|
1835
1839
|
.option:hover {
|
|
@@ -1840,7 +1844,7 @@
|
|
|
1840
1844
|
.option.selected {
|
|
1841
1845
|
background-color: var(--select-option-selected-bg, #e0e7ff);
|
|
1842
1846
|
color: var(--select-option-selected-color, #4338ca);
|
|
1843
|
-
font-weight: 500;
|
|
1847
|
+
font-weight: var(--select-option-selected-weight, 500);
|
|
1844
1848
|
}
|
|
1845
1849
|
|
|
1846
1850
|
.option.active {
|
|
@@ -1849,19 +1853,21 @@
|
|
|
1849
1853
|
}
|
|
1850
1854
|
|
|
1851
1855
|
.load-more-container {
|
|
1852
|
-
padding: 12px;
|
|
1856
|
+
padding: var(--select-load-more-padding, 12px);
|
|
1853
1857
|
text-align: center;
|
|
1854
|
-
border-top:
|
|
1858
|
+
border-top: var(--select-divider-border, 1px solid #e0e0e0);
|
|
1859
|
+
background: var(--select-load-more-bg, white);
|
|
1855
1860
|
}
|
|
1856
1861
|
|
|
1857
1862
|
.load-more-button {
|
|
1858
|
-
padding: 8px 16px;
|
|
1859
|
-
border:
|
|
1863
|
+
padding: var(--select-button-padding, 8px 16px);
|
|
1864
|
+
border: var(--select-button-border, 1px solid #1976d2);
|
|
1860
1865
|
background: var(--select-button-bg, white);
|
|
1861
1866
|
color: var(--select-button-color, #1976d2);
|
|
1862
|
-
border-radius: 4px;
|
|
1867
|
+
border-radius: var(--select-button-border-radius, 4px);
|
|
1863
1868
|
cursor: pointer;
|
|
1864
|
-
font-size: 14px;
|
|
1869
|
+
font-size: var(--select-button-font-size, 14px);
|
|
1870
|
+
font-family: var(--select-font-family, inherit);
|
|
1865
1871
|
transition: all 0.2s ease;
|
|
1866
1872
|
}
|
|
1867
1873
|
|
|
@@ -1871,21 +1877,23 @@
|
|
|
1871
1877
|
}
|
|
1872
1878
|
|
|
1873
1879
|
.load-more-button:disabled {
|
|
1874
|
-
opacity: 0.5;
|
|
1880
|
+
opacity: var(--select-button-disabled-opacity, 0.5);
|
|
1875
1881
|
cursor: not-allowed;
|
|
1876
1882
|
}
|
|
1877
1883
|
|
|
1878
1884
|
.busy-bucket {
|
|
1879
|
-
padding: 16px;
|
|
1885
|
+
padding: var(--select-busy-padding, 16px);
|
|
1880
1886
|
text-align: center;
|
|
1881
1887
|
color: var(--select-busy-color, #666);
|
|
1888
|
+
background: var(--select-busy-bg, white);
|
|
1889
|
+
font-size: var(--select-busy-font-size, 14px);
|
|
1882
1890
|
}
|
|
1883
1891
|
|
|
1884
1892
|
.spinner {
|
|
1885
1893
|
display: inline-block;
|
|
1886
|
-
width: 20px;
|
|
1887
|
-
height: 20px;
|
|
1888
|
-
border:
|
|
1894
|
+
width: var(--select-spinner-size, 20px);
|
|
1895
|
+
height: var(--select-spinner-size, 20px);
|
|
1896
|
+
border: var(--select-spinner-border, 2px solid #ccc);
|
|
1889
1897
|
border-top-color: var(--select-spinner-active-color, #1976d2);
|
|
1890
1898
|
border-radius: 50%;
|
|
1891
1899
|
animation: spin 0.6s linear infinite;
|
|
@@ -1896,16 +1904,20 @@
|
|
|
1896
1904
|
}
|
|
1897
1905
|
|
|
1898
1906
|
.empty-state {
|
|
1899
|
-
padding: 24px;
|
|
1907
|
+
padding: var(--select-empty-padding, 24px);
|
|
1900
1908
|
text-align: center;
|
|
1901
1909
|
color: var(--select-empty-color, #999);
|
|
1910
|
+
font-size: var(--select-empty-font-size, 14px);
|
|
1911
|
+
background: var(--select-empty-bg, white);
|
|
1902
1912
|
}
|
|
1903
1913
|
|
|
1904
1914
|
.searching-state {
|
|
1905
|
-
padding: 24px;
|
|
1915
|
+
padding: var(--select-searching-padding, 24px);
|
|
1906
1916
|
text-align: center;
|
|
1907
|
-
color: #667eea;
|
|
1917
|
+
color: var(--select-searching-color, #667eea);
|
|
1918
|
+
font-size: var(--select-searching-font-size, 14px);
|
|
1908
1919
|
font-style: italic;
|
|
1920
|
+
background: var(--select-searching-bg, white);
|
|
1909
1921
|
animation: pulse 1.5s ease-in-out infinite;
|
|
1910
1922
|
}
|
|
1911
1923
|
|