@youcan/celeste 0.6.35 → 0.6.37
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
|
@@ -198,11 +198,13 @@
|
|
|
198
198
|
margin-block-start: -3px;
|
|
199
199
|
transform: scaleY(0.5);
|
|
200
200
|
animation: fade-in var(--animation-fast) linear forwards;
|
|
201
|
+
}
|
|
202
|
+
.celeste-checkbox .celeste-checkbox-indicator[data-state=checked]::before, [dir=ltr] .celeste-checkbox .celeste-checkbox-indicator[data-state=checked]::before, [dir=rtl] .celeste-checkbox .celeste-checkbox-indicator[data-state=checked]::before {
|
|
203
|
+
border-top: transparent;
|
|
201
204
|
border-right: 1.8px solid currentcolor;
|
|
202
205
|
border-bottom: 1.8px solid currentcolor;
|
|
206
|
+
border-left: transparent;
|
|
203
207
|
rotate: 45deg;
|
|
204
|
-
border-block-start: transparent;
|
|
205
|
-
border-inline-start: transparent;
|
|
206
208
|
}
|
|
207
209
|
.celeste-checkbox .celeste-checkbox-indicator[data-state=indeterminate]::before {
|
|
208
210
|
width: var(--checkbox-indeterminate-size);
|
|
@@ -1853,7 +1855,7 @@ to {
|
|
|
1853
1855
|
.celeste-text-input-button[inline=true][data-v-7d21364e]:hover {
|
|
1854
1856
|
background-color: transparent !important;
|
|
1855
1857
|
}/* stylelint-disable no-descending-specificity */
|
|
1856
|
-
.celeste-text-input-wrapper[data-v-
|
|
1858
|
+
.celeste-text-input-wrapper[data-v-8706da95] {
|
|
1857
1859
|
--celeste-text-input-border-color: var(--color-stroke-soft-200);
|
|
1858
1860
|
--celeste-text-input-drop-shadow: var(--shadow-regular-xs);
|
|
1859
1861
|
--celeste-text-input-icon-color: var(--color-text-soft-400);
|
|
@@ -1876,28 +1878,28 @@ to {
|
|
|
1876
1878
|
font: var(--paragraph-sm);
|
|
1877
1879
|
gap: var(--input-gap);
|
|
1878
1880
|
}
|
|
1879
|
-
.celeste-text-input-wrapper[size=xs][data-v-
|
|
1881
|
+
.celeste-text-input-wrapper[size=xs][data-v-8706da95] {
|
|
1880
1882
|
--input-gap: 8px;
|
|
1881
1883
|
--input-height: 32px;
|
|
1882
1884
|
--input-radius: var(--radius-8);
|
|
1883
1885
|
--input-padding: calc(var(--spacing-8) - var(--spacing-2));
|
|
1884
1886
|
}
|
|
1885
|
-
.celeste-text-input-wrapper[size=sm][data-v-
|
|
1887
|
+
.celeste-text-input-wrapper[size=sm][data-v-8706da95] {
|
|
1886
1888
|
--input-gap: 6px;
|
|
1887
1889
|
--input-height: 36px;
|
|
1888
1890
|
--input-radius: var(--radius-8);
|
|
1889
1891
|
--input-padding: var(--spacing-8);
|
|
1890
1892
|
}
|
|
1891
|
-
.celeste-text-input-wrapper[size=md][data-v-
|
|
1893
|
+
.celeste-text-input-wrapper[size=md][data-v-8706da95] {
|
|
1892
1894
|
--input-gap: 6px;
|
|
1893
1895
|
--input-height: 40px;
|
|
1894
1896
|
--input-radius: var(--radius-10);
|
|
1895
1897
|
--input-padding: var(--spacing-10);
|
|
1896
1898
|
}
|
|
1897
|
-
.celeste-text-input-wrapper[has-error=true][data-v-
|
|
1899
|
+
.celeste-text-input-wrapper[has-error=true][data-v-8706da95] {
|
|
1898
1900
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
1899
1901
|
}
|
|
1900
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1902
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-8706da95] {
|
|
1901
1903
|
width: 100%;
|
|
1902
1904
|
height: 100%;
|
|
1903
1905
|
padding: 0;
|
|
@@ -1907,43 +1909,43 @@ to {
|
|
|
1907
1909
|
color: inherit;
|
|
1908
1910
|
font: inherit;
|
|
1909
1911
|
}
|
|
1910
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1912
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-8706da95]::-moz-placeholder {
|
|
1911
1913
|
-moz-transition: color var(--animation-fast) ease-out;
|
|
1912
1914
|
transition: color var(--animation-fast) ease-out;
|
|
1913
1915
|
color: var(--celeste-text-input-placeholder-color);
|
|
1914
1916
|
}
|
|
1915
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
1917
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-8706da95]::placeholder {
|
|
1916
1918
|
transition: color var(--animation-fast) ease-out;
|
|
1917
1919
|
color: var(--celeste-text-input-placeholder-color);
|
|
1918
1920
|
}
|
|
1919
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
1921
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-8706da95]::-webkit-search-cancel-button {
|
|
1920
1922
|
display: none;
|
|
1921
1923
|
-webkit-appearance: none;
|
|
1922
1924
|
appearance: none;
|
|
1923
1925
|
}
|
|
1924
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
1926
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-8706da95]::-webkit-search-decoration {
|
|
1925
1927
|
display: none;
|
|
1926
1928
|
-webkit-appearance: none;
|
|
1927
1929
|
appearance: none;
|
|
1928
1930
|
}
|
|
1929
|
-
.celeste-text-input-wrapper[data-v-
|
|
1931
|
+
.celeste-text-input-wrapper[data-v-8706da95]:has(.celeste-text-input-leading-node) {
|
|
1930
1932
|
padding-inline-start: 0;
|
|
1931
1933
|
}
|
|
1932
|
-
.celeste-text-input-wrapper[data-v-
|
|
1934
|
+
.celeste-text-input-wrapper[data-v-8706da95]:has(.celeste-text-input-trailing-node) {
|
|
1933
1935
|
padding-inline-end: 0;
|
|
1934
1936
|
}
|
|
1935
|
-
.celeste-text-input-wrapper[data-v-
|
|
1937
|
+
.celeste-text-input-wrapper[data-v-8706da95]:has(.celeste-text-input:focus) {
|
|
1936
1938
|
--celeste-text-input-border-color: var(--color-stroke-strong-950);
|
|
1937
1939
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
1938
1940
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
1939
1941
|
--celeste-text-input-affix-color: var(--color-text-sub-600);
|
|
1940
1942
|
outline-color: var(--color-stroke-soft-200);
|
|
1941
1943
|
}
|
|
1942
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-
|
|
1944
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-8706da95] {
|
|
1943
1945
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
1944
1946
|
outline-color: var(--color-state-error-lighter);
|
|
1945
1947
|
}
|
|
1946
|
-
.celeste-text-input-wrapper[data-v-
|
|
1948
|
+
.celeste-text-input-wrapper[data-v-8706da95]:has(.celeste-text-input:disabled) {
|
|
1947
1949
|
--celeste-text-input-border-color: transparent;
|
|
1948
1950
|
--celeste-text-input-drop-shadow: none;
|
|
1949
1951
|
--celeste-text-input-affix-background-color: var(--color-bg-weak-50);
|
|
@@ -1955,46 +1957,58 @@ to {
|
|
|
1955
1957
|
color: var(--color-text-disabled-300);
|
|
1956
1958
|
pointer-events: none;
|
|
1957
1959
|
}
|
|
1958
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
1960
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-8706da95]::-moz-placeholder {
|
|
1959
1961
|
color: currentcolor;
|
|
1960
1962
|
}
|
|
1961
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
1963
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-8706da95]::placeholder {
|
|
1962
1964
|
color: currentcolor;
|
|
1963
1965
|
}
|
|
1964
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-
|
|
1966
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-8706da95] {
|
|
1965
1967
|
color: var(--color-text-disabled-300);
|
|
1966
1968
|
pointer-events: none;
|
|
1967
1969
|
}
|
|
1968
|
-
.celeste-text-input-wrapper[data-v-
|
|
1970
|
+
.celeste-text-input-wrapper[data-v-8706da95]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
|
|
1969
1971
|
--celeste-text-input-border-color: transparent;
|
|
1970
1972
|
}
|
|
1971
|
-
.celeste-text-input-wrapper[data-v-
|
|
1973
|
+
.celeste-text-input-wrapper[data-v-8706da95]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
|
|
1972
1974
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
1973
1975
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
1974
1976
|
background-color: var(--color-bg-weak-50);
|
|
1975
1977
|
}
|
|
1976
|
-
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-
|
|
1978
|
+
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-8706da95] {
|
|
1977
1979
|
flex-shrink: 0;
|
|
1978
1980
|
width: 20px;
|
|
1979
1981
|
height: 20px;
|
|
1980
1982
|
transition: all var(--animation-fast) ease-out;
|
|
1981
1983
|
color: var(--celeste-text-input-icon-color);
|
|
1982
1984
|
}
|
|
1983
|
-
.celeste-text-input-wrapper[data-v-
|
|
1985
|
+
.celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-leading-node,
|
|
1986
|
+
.celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
1984
1987
|
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
1985
|
-
border-end-start-radius: var(--input-radius) !important;
|
|
1986
|
-
border-start-start-radius: var(--input-radius) !important;
|
|
1987
|
-
border-end-end-radius: 0 !important;
|
|
1988
|
-
border-start-end-radius: 0 !important;
|
|
1989
|
-
border-inline-end: 1px solid var(--color-stroke-soft-200) !important;
|
|
1990
1988
|
}
|
|
1991
|
-
.celeste-text-input-wrapper[data-v-
|
|
1992
|
-
|
|
1993
|
-
border-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
border-
|
|
1997
|
-
border-
|
|
1989
|
+
[dir=ltr] .celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
1990
|
+
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
1991
|
+
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
1992
|
+
}
|
|
1993
|
+
[dir=ltr] .celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
1994
|
+
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
1995
|
+
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
1996
|
+
}
|
|
1997
|
+
[dir=rtl] .celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
1998
|
+
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
1999
|
+
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2000
|
+
}
|
|
2001
|
+
[dir=rtl] .celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2002
|
+
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2003
|
+
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2004
|
+
}
|
|
2005
|
+
.celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2006
|
+
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2007
|
+
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2008
|
+
}
|
|
2009
|
+
.celeste-text-input-wrapper[data-v-8706da95] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2010
|
+
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2011
|
+
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
1998
2012
|
}.celeste-dropdown-input[data-v-bd59a65e] {
|
|
1999
2013
|
display: flex;
|
|
2000
2014
|
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-8706da95"]]);
|
|
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-8706da95"]]);
|
|
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.37",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"youcan",
|
|
@@ -41,14 +41,16 @@
|
|
|
41
41
|
"@tiptap/vue-3": "^3.0.7",
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"radix-vue": "^1.9.12",
|
|
44
|
+
"storybook-rtl-addon": "^0.3.3",
|
|
44
45
|
"tinycolor2": "^1.6.0",
|
|
45
46
|
"vue-sonner": "^2.0.2",
|
|
46
|
-
"@youcan/celeste-
|
|
47
|
-
"@youcan/celeste-
|
|
47
|
+
"@youcan/celeste-tokens": "0.6.37",
|
|
48
|
+
"@youcan/celeste-icons": "0.6.37"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@chromatic-com/storybook": "^4.0.0",
|
|
51
52
|
"@storybook/addon-docs": "^9.0.4",
|
|
53
|
+
"@storybook/addon-knobs": "^8.0.1",
|
|
52
54
|
"@storybook/addon-onboarding": "^9.0.4",
|
|
53
55
|
"@storybook/vue3-vite": "^9.0.4",
|
|
54
56
|
"@tsconfig/node20": "^20.1.4",
|
|
@@ -69,11 +69,16 @@ 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
|
+
}
|
|
73
|
+
|
|
74
|
+
&[data-state='checked']::before,
|
|
75
|
+
[dir='ltr'] &[data-state='checked']::before,
|
|
76
|
+
[dir='rtl'] &[data-state='checked']::before {
|
|
77
|
+
border-top: transparent;
|
|
72
78
|
border-right: 1.8px solid currentcolor;
|
|
73
79
|
border-bottom: 1.8px solid currentcolor;
|
|
80
|
+
border-left: transparent;
|
|
74
81
|
rotate: 45deg;
|
|
75
|
-
border-block-start: transparent;
|
|
76
|
-
border-inline-start: transparent;
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
&[data-state='indeterminate']::before {
|
|
@@ -239,22 +239,43 @@ 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.celeste-text-input-leading-node)
|
|
242
|
+
:deep(.celeste-text-input-node.celeste-text-input-leading-node),
|
|
243
|
+
:deep(.celeste-text-input-node.celeste-text-input-trailing-node) {
|
|
243
244
|
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
245
|
}
|
|
250
246
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
247
|
+
[dir='ltr'] & {
|
|
248
|
+
:deep(.celeste-text-input-node.celeste-text-input-leading-node) {
|
|
249
|
+
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
250
|
+
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
:deep(.celeste-text-input-node.celeste-text-input-trailing-node) {
|
|
254
|
+
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
255
|
+
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
[dir='rtl'] & {
|
|
260
|
+
:deep(.celeste-text-input-node.celeste-text-input-leading-node) {
|
|
261
|
+
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
262
|
+
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
:deep(.celeste-text-input-node.celeste-text-input-trailing-node) {
|
|
266
|
+
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
267
|
+
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
:deep(.celeste-text-input-node.celeste-text-input-leading-node) {
|
|
272
|
+
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
273
|
+
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:deep(.celeste-text-input-node.celeste-text-input-trailing-node) {
|
|
277
|
+
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
278
|
+
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
258
279
|
}
|
|
259
280
|
}
|
|
260
281
|
</style>
|