@youcan/celeste 0.6.26 → 0.6.28
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/celeste.css
CHANGED
|
@@ -304,7 +304,8 @@
|
|
|
304
304
|
margin-block-start: -3px;
|
|
305
305
|
transform: scaleY(0.5);
|
|
306
306
|
animation: fade-in var(--animation-fast) linear forwards;
|
|
307
|
-
border: 1.8px solid currentcolor;
|
|
307
|
+
border-right: 1.8px solid currentcolor;
|
|
308
|
+
border-bottom: 1.8px solid currentcolor;
|
|
308
309
|
rotate: 45deg;
|
|
309
310
|
border-block-start: transparent;
|
|
310
311
|
border-inline-start: transparent;
|
|
@@ -1680,7 +1681,7 @@ to {
|
|
|
1680
1681
|
.celeste-text-input-button[inline=true][data-v-7d21364e]:hover {
|
|
1681
1682
|
background-color: transparent !important;
|
|
1682
1683
|
}/* stylelint-disable no-descending-specificity */
|
|
1683
|
-
.celeste-text-input-wrapper[data-v-
|
|
1684
|
+
.celeste-text-input-wrapper[data-v-a368a0c2] {
|
|
1684
1685
|
--celeste-text-input-border-color: var(--color-stroke-soft-200);
|
|
1685
1686
|
--celeste-text-input-drop-shadow: var(--shadow-regular-xs);
|
|
1686
1687
|
--celeste-text-input-icon-color: var(--color-text-soft-400);
|
|
@@ -1703,28 +1704,28 @@ to {
|
|
|
1703
1704
|
font: var(--paragraph-sm);
|
|
1704
1705
|
gap: var(--input-gap);
|
|
1705
1706
|
}
|
|
1706
|
-
.celeste-text-input-wrapper[size=xs][data-v-
|
|
1707
|
+
.celeste-text-input-wrapper[size=xs][data-v-a368a0c2] {
|
|
1707
1708
|
--input-gap: 8px;
|
|
1708
1709
|
--input-height: 32px;
|
|
1709
1710
|
--input-radius: var(--radius-8);
|
|
1710
1711
|
--input-padding: calc(var(--spacing-8) - var(--spacing-2));
|
|
1711
1712
|
}
|
|
1712
|
-
.celeste-text-input-wrapper[size=sm][data-v-
|
|
1713
|
+
.celeste-text-input-wrapper[size=sm][data-v-a368a0c2] {
|
|
1713
1714
|
--input-gap: 6px;
|
|
1714
1715
|
--input-height: 36px;
|
|
1715
1716
|
--input-radius: var(--radius-8);
|
|
1716
1717
|
--input-padding: var(--spacing-8);
|
|
1717
1718
|
}
|
|
1718
|
-
.celeste-text-input-wrapper[size=md][data-v-
|
|
1719
|
+
.celeste-text-input-wrapper[size=md][data-v-a368a0c2] {
|
|
1719
1720
|
--input-gap: 6px;
|
|
1720
1721
|
--input-height: 40px;
|
|
1721
1722
|
--input-radius: var(--radius-10);
|
|
1722
1723
|
--input-padding: var(--spacing-10);
|
|
1723
1724
|
}
|
|
1724
|
-
.celeste-text-input-wrapper[has-error=true][data-v-
|
|
1725
|
+
.celeste-text-input-wrapper[has-error=true][data-v-a368a0c2] {
|
|
1725
1726
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
1726
1727
|
}
|
|
1727
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1728
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-a368a0c2] {
|
|
1728
1729
|
width: 100%;
|
|
1729
1730
|
height: 100%;
|
|
1730
1731
|
padding: 0;
|
|
@@ -1734,43 +1735,43 @@ to {
|
|
|
1734
1735
|
color: inherit;
|
|
1735
1736
|
font: inherit;
|
|
1736
1737
|
}
|
|
1737
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1738
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-a368a0c2]::-moz-placeholder {
|
|
1738
1739
|
-moz-transition: color var(--animation-fast) ease-out;
|
|
1739
1740
|
transition: color var(--animation-fast) ease-out;
|
|
1740
1741
|
color: var(--celeste-text-input-placeholder-color);
|
|
1741
1742
|
}
|
|
1742
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1743
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-a368a0c2]::placeholder {
|
|
1743
1744
|
transition: color var(--animation-fast) ease-out;
|
|
1744
1745
|
color: var(--celeste-text-input-placeholder-color);
|
|
1745
1746
|
}
|
|
1746
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
1747
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-a368a0c2]::-webkit-search-cancel-button {
|
|
1747
1748
|
display: none;
|
|
1748
1749
|
-webkit-appearance: none;
|
|
1749
1750
|
appearance: none;
|
|
1750
1751
|
}
|
|
1751
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
1752
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-a368a0c2]::-webkit-search-decoration {
|
|
1752
1753
|
display: none;
|
|
1753
1754
|
-webkit-appearance: none;
|
|
1754
1755
|
appearance: none;
|
|
1755
1756
|
}
|
|
1756
|
-
.celeste-text-input-wrapper[data-v-
|
|
1757
|
+
.celeste-text-input-wrapper[data-v-a368a0c2]:has(.celeste-text-input-leading-node) {
|
|
1757
1758
|
padding-inline-start: 0;
|
|
1758
1759
|
}
|
|
1759
|
-
.celeste-text-input-wrapper[data-v-
|
|
1760
|
+
.celeste-text-input-wrapper[data-v-a368a0c2]:has(.celeste-text-input-trailing-node) {
|
|
1760
1761
|
padding-inline-end: 0;
|
|
1761
1762
|
}
|
|
1762
|
-
.celeste-text-input-wrapper[data-v-
|
|
1763
|
+
.celeste-text-input-wrapper[data-v-a368a0c2]:has(.celeste-text-input:focus) {
|
|
1763
1764
|
--celeste-text-input-border-color: var(--color-stroke-strong-950);
|
|
1764
1765
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
1765
1766
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
1766
1767
|
--celeste-text-input-affix-color: var(--color-text-sub-600);
|
|
1767
1768
|
outline-color: var(--color-stroke-soft-200);
|
|
1768
1769
|
}
|
|
1769
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-
|
|
1770
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-a368a0c2] {
|
|
1770
1771
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
1771
1772
|
outline-color: var(--color-state-error-lighter);
|
|
1772
1773
|
}
|
|
1773
|
-
.celeste-text-input-wrapper[data-v-
|
|
1774
|
+
.celeste-text-input-wrapper[data-v-a368a0c2]:has(.celeste-text-input:disabled) {
|
|
1774
1775
|
--celeste-text-input-border-color: transparent;
|
|
1775
1776
|
--celeste-text-input-drop-shadow: none;
|
|
1776
1777
|
--celeste-text-input-affix-background-color: var(--color-bg-weak-50);
|
|
@@ -1782,46 +1783,46 @@ to {
|
|
|
1782
1783
|
color: var(--color-text-disabled-300);
|
|
1783
1784
|
pointer-events: none;
|
|
1784
1785
|
}
|
|
1785
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
1786
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-a368a0c2]::-moz-placeholder {
|
|
1786
1787
|
color: currentcolor;
|
|
1787
1788
|
}
|
|
1788
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
1789
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-a368a0c2]::placeholder {
|
|
1789
1790
|
color: currentcolor;
|
|
1790
1791
|
}
|
|
1791
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-
|
|
1792
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-a368a0c2] {
|
|
1792
1793
|
color: var(--color-text-disabled-300);
|
|
1793
1794
|
pointer-events: none;
|
|
1794
1795
|
}
|
|
1795
|
-
.celeste-text-input-wrapper[data-v-
|
|
1796
|
+
.celeste-text-input-wrapper[data-v-a368a0c2]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
|
|
1796
1797
|
--celeste-text-input-border-color: transparent;
|
|
1797
1798
|
}
|
|
1798
|
-
.celeste-text-input-wrapper[data-v-
|
|
1799
|
+
.celeste-text-input-wrapper[data-v-a368a0c2]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
|
|
1799
1800
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
1800
1801
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
1801
1802
|
background-color: var(--color-bg-weak-50);
|
|
1802
1803
|
}
|
|
1803
|
-
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-
|
|
1804
|
+
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-a368a0c2] {
|
|
1804
1805
|
flex-shrink: 0;
|
|
1805
1806
|
width: 20px;
|
|
1806
1807
|
height: 20px;
|
|
1807
1808
|
transition: all var(--animation-fast) ease-out;
|
|
1808
1809
|
color: var(--celeste-text-input-icon-color);
|
|
1809
1810
|
}
|
|
1810
|
-
.celeste-text-input-wrapper[data-v-
|
|
1811
|
-
height: calc(var(--input-height) - var(--spacing-2));
|
|
1812
|
-
border-end-start-radius: var(--input-radius);
|
|
1813
|
-
border-start-start-radius: var(--input-radius);
|
|
1814
|
-
border-end-end-radius: 0;
|
|
1815
|
-
border-start-end-radius: 0;
|
|
1816
|
-
border-inline-end: 1px solid var(--color-stroke-soft-200);
|
|
1817
|
-
}
|
|
1818
|
-
.celeste-text-input-wrapper[data-v-
|
|
1819
|
-
height: calc(var(--input-height) - var(--spacing-2));
|
|
1820
|
-
border-end-end-radius: var(--input-radius);
|
|
1821
|
-
border-start-end-radius: var(--input-radius);
|
|
1822
|
-
border-end-start-radius: 0;
|
|
1823
|
-
border-start-start-radius: 0;
|
|
1824
|
-
border-inline-start: 1px solid var(--color-stroke-soft-200);
|
|
1811
|
+
.celeste-text-input-wrapper[data-v-a368a0c2] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
1812
|
+
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
1813
|
+
border-end-start-radius: var(--input-radius) !important;
|
|
1814
|
+
border-start-start-radius: var(--input-radius) !important;
|
|
1815
|
+
border-end-end-radius: 0 !important;
|
|
1816
|
+
border-start-end-radius: 0 !important;
|
|
1817
|
+
border-inline-end: 1px solid var(--color-stroke-soft-200) !important;
|
|
1818
|
+
}
|
|
1819
|
+
.celeste-text-input-wrapper[data-v-a368a0c2] *.celeste-text-input-node.celeste-text-input-trailing-node {
|
|
1820
|
+
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
1821
|
+
border-end-end-radius: var(--input-radius) !important;
|
|
1822
|
+
border-start-end-radius: var(--input-radius) !important;
|
|
1823
|
+
border-end-start-radius: 0 !important;
|
|
1824
|
+
border-start-start-radius: 0 !important;
|
|
1825
|
+
border-inline-start: 1px solid var(--color-stroke-soft-200) !important;
|
|
1825
1826
|
}.celeste-dropdown-input[data-v-bd59a65e] {
|
|
1826
1827
|
display: flex;
|
|
1827
1828
|
align-items: center;
|
package/dist/cjs/text-input.js
CHANGED
|
@@ -115,5 +115,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
118
|
+
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-a368a0c2"]]);
|
|
119
119
|
module.exports = TextInput;
|
package/dist/es/text-input.js
CHANGED
|
@@ -114,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
117
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a368a0c2"]]);
|
|
118
118
|
export {
|
|
119
119
|
TextInput as default
|
|
120
120
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.28",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"youcan",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
33
|
"radix-vue": "^1.9.12",
|
|
34
34
|
"tinycolor2": "^1.6.0",
|
|
35
|
-
"@youcan/celeste-icons": "0.6.
|
|
36
|
-
"@youcan/celeste-tokens": "0.6.
|
|
35
|
+
"@youcan/celeste-icons": "0.6.28",
|
|
36
|
+
"@youcan/celeste-tokens": "0.6.28"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@chromatic-com/storybook": "^4.0.0",
|
|
@@ -69,7 +69,8 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
69
69
|
margin-block-start: -3px;
|
|
70
70
|
transform: scaleY(0.5);
|
|
71
71
|
animation: fade-in var(--animation-fast) linear forwards;
|
|
72
|
-
border: 1.8px solid currentcolor;
|
|
72
|
+
border-right: 1.8px solid currentcolor;
|
|
73
|
+
border-bottom: 1.8px solid currentcolor;
|
|
73
74
|
rotate: 45deg;
|
|
74
75
|
border-block-start: transparent;
|
|
75
76
|
border-inline-start: transparent;
|
|
@@ -240,21 +240,21 @@ export interface TextInputProps extends /* @vue-ignore */ InputHTMLAttributes {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
:deep(.celeste-text-input-node.celeste-text-input-leading-node) {
|
|
243
|
-
height: calc(var(--input-height) - var(--spacing-2));
|
|
244
|
-
border-end-start-radius: var(--input-radius);
|
|
245
|
-
border-start-start-radius: var(--input-radius);
|
|
246
|
-
border-end-end-radius: 0;
|
|
247
|
-
border-start-end-radius: 0;
|
|
248
|
-
border-inline-end: 1px solid var(--color-stroke-soft-200);
|
|
243
|
+
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
244
|
+
border-end-start-radius: var(--input-radius) !important;
|
|
245
|
+
border-start-start-radius: var(--input-radius) !important;
|
|
246
|
+
border-end-end-radius: 0 !important;
|
|
247
|
+
border-start-end-radius: 0 !important;
|
|
248
|
+
border-inline-end: 1px solid var(--color-stroke-soft-200) !important;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
:deep(
|
|
252
|
-
height: calc(var(--input-height) - var(--spacing-2));
|
|
253
|
-
border-end-end-radius: var(--input-radius);
|
|
254
|
-
border-start-end-radius: var(--input-radius);
|
|
255
|
-
border-end-start-radius: 0;
|
|
256
|
-
border-start-start-radius: 0;
|
|
257
|
-
border-inline-start: 1px solid var(--color-stroke-soft-200);
|
|
251
|
+
:deep(*.celeste-text-input-node.celeste-text-input-trailing-node) {
|
|
252
|
+
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
253
|
+
border-end-end-radius: var(--input-radius) !important;
|
|
254
|
+
border-start-end-radius: var(--input-radius) !important;
|
|
255
|
+
border-end-start-radius: 0 !important;
|
|
256
|
+
border-start-start-radius: 0 !important;
|
|
257
|
+
border-inline-start: 1px solid var(--color-stroke-soft-200) !important;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
</style>
|