@youcan/celeste 0.6.25 → 0.6.26
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 +34 -32
- package/dist/cjs/text-input.js +1 -1
- package/dist/es/text-input.js +1 -1
- package/package.json +3 -3
- package/src/components/text-input/text-input.vue +13 -12
package/dist/celeste.css
CHANGED
|
@@ -1680,7 +1680,7 @@ to {
|
|
|
1680
1680
|
.celeste-text-input-button[inline=true][data-v-7d21364e]:hover {
|
|
1681
1681
|
background-color: transparent !important;
|
|
1682
1682
|
}/* stylelint-disable no-descending-specificity */
|
|
1683
|
-
.celeste-text-input-wrapper[data-v-
|
|
1683
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5] {
|
|
1684
1684
|
--celeste-text-input-border-color: var(--color-stroke-soft-200);
|
|
1685
1685
|
--celeste-text-input-drop-shadow: var(--shadow-regular-xs);
|
|
1686
1686
|
--celeste-text-input-icon-color: var(--color-text-soft-400);
|
|
@@ -1703,28 +1703,28 @@ to {
|
|
|
1703
1703
|
font: var(--paragraph-sm);
|
|
1704
1704
|
gap: var(--input-gap);
|
|
1705
1705
|
}
|
|
1706
|
-
.celeste-text-input-wrapper[size=xs][data-v-
|
|
1706
|
+
.celeste-text-input-wrapper[size=xs][data-v-d7dad6d5] {
|
|
1707
1707
|
--input-gap: 8px;
|
|
1708
1708
|
--input-height: 32px;
|
|
1709
1709
|
--input-radius: var(--radius-8);
|
|
1710
1710
|
--input-padding: calc(var(--spacing-8) - var(--spacing-2));
|
|
1711
1711
|
}
|
|
1712
|
-
.celeste-text-input-wrapper[size=sm][data-v-
|
|
1712
|
+
.celeste-text-input-wrapper[size=sm][data-v-d7dad6d5] {
|
|
1713
1713
|
--input-gap: 6px;
|
|
1714
1714
|
--input-height: 36px;
|
|
1715
1715
|
--input-radius: var(--radius-8);
|
|
1716
1716
|
--input-padding: var(--spacing-8);
|
|
1717
1717
|
}
|
|
1718
|
-
.celeste-text-input-wrapper[size=md][data-v-
|
|
1718
|
+
.celeste-text-input-wrapper[size=md][data-v-d7dad6d5] {
|
|
1719
1719
|
--input-gap: 6px;
|
|
1720
1720
|
--input-height: 40px;
|
|
1721
1721
|
--input-radius: var(--radius-10);
|
|
1722
1722
|
--input-padding: var(--spacing-10);
|
|
1723
1723
|
}
|
|
1724
|
-
.celeste-text-input-wrapper[has-error=true][data-v-
|
|
1724
|
+
.celeste-text-input-wrapper[has-error=true][data-v-d7dad6d5] {
|
|
1725
1725
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
1726
1726
|
}
|
|
1727
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1727
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-d7dad6d5] {
|
|
1728
1728
|
width: 100%;
|
|
1729
1729
|
height: 100%;
|
|
1730
1730
|
padding: 0;
|
|
@@ -1734,43 +1734,43 @@ to {
|
|
|
1734
1734
|
color: inherit;
|
|
1735
1735
|
font: inherit;
|
|
1736
1736
|
}
|
|
1737
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1737
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-d7dad6d5]::-moz-placeholder {
|
|
1738
1738
|
-moz-transition: color var(--animation-fast) ease-out;
|
|
1739
1739
|
transition: color var(--animation-fast) ease-out;
|
|
1740
1740
|
color: var(--celeste-text-input-placeholder-color);
|
|
1741
1741
|
}
|
|
1742
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1742
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-d7dad6d5]::placeholder {
|
|
1743
1743
|
transition: color var(--animation-fast) ease-out;
|
|
1744
1744
|
color: var(--celeste-text-input-placeholder-color);
|
|
1745
1745
|
}
|
|
1746
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
1746
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-d7dad6d5]::-webkit-search-cancel-button {
|
|
1747
1747
|
display: none;
|
|
1748
1748
|
-webkit-appearance: none;
|
|
1749
1749
|
appearance: none;
|
|
1750
1750
|
}
|
|
1751
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
1751
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-d7dad6d5]::-webkit-search-decoration {
|
|
1752
1752
|
display: none;
|
|
1753
1753
|
-webkit-appearance: none;
|
|
1754
1754
|
appearance: none;
|
|
1755
1755
|
}
|
|
1756
|
-
.celeste-text-input-wrapper[data-v-
|
|
1756
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5]:has(.celeste-text-input-leading-node) {
|
|
1757
1757
|
padding-inline-start: 0;
|
|
1758
1758
|
}
|
|
1759
|
-
.celeste-text-input-wrapper[data-v-
|
|
1759
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5]:has(.celeste-text-input-trailing-node) {
|
|
1760
1760
|
padding-inline-end: 0;
|
|
1761
1761
|
}
|
|
1762
|
-
.celeste-text-input-wrapper[data-v-
|
|
1762
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5]:has(.celeste-text-input:focus) {
|
|
1763
1763
|
--celeste-text-input-border-color: var(--color-stroke-strong-950);
|
|
1764
1764
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
1765
1765
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
1766
1766
|
--celeste-text-input-affix-color: var(--color-text-sub-600);
|
|
1767
1767
|
outline-color: var(--color-stroke-soft-200);
|
|
1768
1768
|
}
|
|
1769
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-
|
|
1769
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-d7dad6d5] {
|
|
1770
1770
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
1771
1771
|
outline-color: var(--color-state-error-lighter);
|
|
1772
1772
|
}
|
|
1773
|
-
.celeste-text-input-wrapper[data-v-
|
|
1773
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5]:has(.celeste-text-input:disabled) {
|
|
1774
1774
|
--celeste-text-input-border-color: transparent;
|
|
1775
1775
|
--celeste-text-input-drop-shadow: none;
|
|
1776
1776
|
--celeste-text-input-affix-background-color: var(--color-bg-weak-50);
|
|
@@ -1782,44 +1782,46 @@ to {
|
|
|
1782
1782
|
color: var(--color-text-disabled-300);
|
|
1783
1783
|
pointer-events: none;
|
|
1784
1784
|
}
|
|
1785
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
1785
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-d7dad6d5]::-moz-placeholder {
|
|
1786
1786
|
color: currentcolor;
|
|
1787
1787
|
}
|
|
1788
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
1788
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-d7dad6d5]::placeholder {
|
|
1789
1789
|
color: currentcolor;
|
|
1790
1790
|
}
|
|
1791
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-
|
|
1791
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-d7dad6d5] {
|
|
1792
1792
|
color: var(--color-text-disabled-300);
|
|
1793
1793
|
pointer-events: none;
|
|
1794
1794
|
}
|
|
1795
|
-
.celeste-text-input-wrapper[data-v-
|
|
1795
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
|
|
1796
1796
|
--celeste-text-input-border-color: transparent;
|
|
1797
1797
|
}
|
|
1798
|
-
.celeste-text-input-wrapper[data-v-
|
|
1798
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
|
|
1799
1799
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
1800
1800
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
1801
1801
|
background-color: var(--color-bg-weak-50);
|
|
1802
1802
|
}
|
|
1803
|
-
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-
|
|
1803
|
+
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-d7dad6d5] {
|
|
1804
1804
|
flex-shrink: 0;
|
|
1805
1805
|
width: 20px;
|
|
1806
1806
|
height: 20px;
|
|
1807
1807
|
transition: all var(--animation-fast) ease-out;
|
|
1808
1808
|
color: var(--celeste-text-input-icon-color);
|
|
1809
1809
|
}
|
|
1810
|
-
.celeste-text-input-wrapper[data-v-
|
|
1810
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
1811
1811
|
height: calc(var(--input-height) - var(--spacing-2));
|
|
1812
|
-
border-radius: var(--input-radius)
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
border-
|
|
1816
|
-
border-
|
|
1817
|
-
border-inline-end: 1px solid var(--color-stroke-soft-200) !important;
|
|
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);
|
|
1818
1817
|
}
|
|
1819
|
-
.celeste-text-input-wrapper[data-v-
|
|
1820
|
-
|
|
1821
|
-
border-end-
|
|
1822
|
-
border-start-
|
|
1818
|
+
.celeste-text-input-wrapper[data-v-d7dad6d5] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
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);
|
|
1823
1825
|
}.celeste-dropdown-input[data-v-bd59a65e] {
|
|
1824
1826
|
display: flex;
|
|
1825
1827
|
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-d7dad6d5"]]);
|
|
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-d7dad6d5"]]);
|
|
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.26",
|
|
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.26",
|
|
36
|
+
"@youcan/celeste-tokens": "0.6.26"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@chromatic-com/storybook": "^4.0.0",
|
|
@@ -239,21 +239,22 @@ export interface TextInputProps extends /* @vue-ignore */ InputHTMLAttributes {
|
|
|
239
239
|
color: var(--celeste-text-input-icon-color);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
:deep(.celeste-text-input-node) {
|
|
242
|
+
:deep(.celeste-text-input-node.celeste-text-input-leading-node) {
|
|
243
243
|
height: calc(var(--input-height) - var(--spacing-2));
|
|
244
|
-
border-radius: var(--input-radius)
|
|
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);
|
|
245
249
|
}
|
|
246
250
|
|
|
247
|
-
:deep(.celeste-text-input-
|
|
248
|
-
|
|
249
|
-
border-
|
|
250
|
-
border-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
border-inline-start: 1px solid var(--color-stroke-soft-200) !important;
|
|
255
|
-
border-end-start-radius: 0 !important;
|
|
256
|
-
border-start-start-radius: 0 !important;
|
|
251
|
+
:deep(.celeste-text-input-node.celeste-text-input-trailing-node) {
|
|
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);
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
260
|
</style>
|