@youcan/celeste 0.6.13 → 0.6.14

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
@@ -1843,7 +1843,7 @@ to {
1843
1843
  }
1844
1844
  .celeste-dropdown-item .celeste-dropdown-item-header-lg .celeste-dropdown-item-label[data-v-a0a634ce] {
1845
1845
  font-weight: var(--font-weights-display-0);
1846
- }.celeste-text-input-wrapper[data-v-3fcea99c] {
1846
+ }.celeste-text-input-wrapper[data-v-105e81d6] {
1847
1847
  display: flex;
1848
1848
  box-sizing: border-box;
1849
1849
  align-items: center;
@@ -1860,28 +1860,28 @@ to {
1860
1860
  font: var(--paragraph-sm);
1861
1861
  gap: var(--input-gap);
1862
1862
  }
1863
- .celeste-text-input-wrapper[size=xs][data-v-3fcea99c] {
1863
+ .celeste-text-input-wrapper[size=xs][data-v-105e81d6] {
1864
1864
  --input-gap: 8px;
1865
1865
  --input-height: 32px;
1866
1866
  --input-radius: var(--radius-8);
1867
1867
  --input-padding: calc(var(--spacing-8) - var(--spacing-2));
1868
1868
  }
1869
- .celeste-text-input-wrapper[size=sm][data-v-3fcea99c] {
1869
+ .celeste-text-input-wrapper[size=sm][data-v-105e81d6] {
1870
1870
  --input-gap: 6px;
1871
1871
  --input-height: 36px;
1872
1872
  --input-radius: var(--radius-8);
1873
1873
  --input-padding: var(--spacing-8);
1874
1874
  }
1875
- .celeste-text-input-wrapper[size=md][data-v-3fcea99c] {
1875
+ .celeste-text-input-wrapper[size=md][data-v-105e81d6] {
1876
1876
  --input-gap: 6px;
1877
1877
  --input-height: 40px;
1878
1878
  --input-radius: var(--radius-10);
1879
1879
  --input-padding: var(--spacing-10);
1880
1880
  }
1881
- .celeste-text-input-wrapper[has-error=true][data-v-3fcea99c] {
1881
+ .celeste-text-input-wrapper[has-error=true][data-v-105e81d6] {
1882
1882
  border-color: var(--color-state-error-base);
1883
1883
  }
1884
- .celeste-text-input-wrapper .celeste-text-input[data-v-3fcea99c] {
1884
+ .celeste-text-input-wrapper .celeste-text-input[data-v-105e81d6] {
1885
1885
  width: 100%;
1886
1886
  height: 100%;
1887
1887
  padding: 0;
@@ -1891,90 +1891,90 @@ to {
1891
1891
  color: inherit;
1892
1892
  font: inherit;
1893
1893
  }
1894
- .celeste-text-input-wrapper .celeste-text-input[data-v-3fcea99c]::-moz-placeholder {
1894
+ .celeste-text-input-wrapper .celeste-text-input[data-v-105e81d6]::-moz-placeholder {
1895
1895
  -moz-transition: color var(--animation-fast) ease-out;
1896
1896
  transition: color var(--animation-fast) ease-out;
1897
1897
  color: var(--color-text-soft-400);
1898
1898
  }
1899
- .celeste-text-input-wrapper .celeste-text-input[data-v-3fcea99c]::placeholder {
1899
+ .celeste-text-input-wrapper .celeste-text-input[data-v-105e81d6]::placeholder {
1900
1900
  transition: color var(--animation-fast) ease-out;
1901
1901
  color: var(--color-text-soft-400);
1902
1902
  }
1903
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:focus) {
1903
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:focus) {
1904
1904
  border-color: var(--color-stroke-strong-950);
1905
1905
  outline-color: var(--color-stroke-soft-200);
1906
1906
  }
1907
- .celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-3fcea99c] {
1907
+ .celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-105e81d6] {
1908
1908
  border-color: var(--color-state-error-base);
1909
1909
  outline-color: var(--color-state-error-lighter);
1910
1910
  }
1911
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:disabled) {
1911
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:disabled) {
1912
1912
  border-color: transparent;
1913
1913
  background-color: var(--color-bg-weak-50);
1914
1914
  box-shadow: none;
1915
1915
  color: var(--color-text-disabled-300);
1916
1916
  pointer-events: none;
1917
1917
  }
1918
- .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-3fcea99c]::-moz-placeholder {
1918
+ .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-105e81d6]::-moz-placeholder {
1919
1919
  color: currentcolor;
1920
1920
  }
1921
- .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-3fcea99c]::placeholder {
1921
+ .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-105e81d6]::placeholder {
1922
1922
  color: currentcolor;
1923
1923
  }
1924
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:disabled) .celeste-text-input-icon {
1924
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:disabled) .celeste-text-input-icon {
1925
1925
  color: var(--color-icon-disabled-300);
1926
1926
  }
1927
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:disabled) .celeste-text-input-affix, .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:disabled) .celeste-text-input-button {
1927
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:disabled) .celeste-text-input-affix, .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:disabled) .celeste-text-input-button {
1928
1928
  background-color: var(--color-bg-weak-50) !important;
1929
1929
  color: var(--color-text-disabled-300);
1930
1930
  }
1931
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]) {
1931
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]) {
1932
1932
  gap: var(--spacing-0);
1933
1933
  padding-inline-end: var(--spacing-0);
1934
1934
  }
1935
- .celeste-text-input-wrapper:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]):has(.celeste-text-input-button[inline=false], .celeste-text-input-affix[variant=suffix]) .celeste-text-input[data-v-3fcea99c] {
1935
+ .celeste-text-input-wrapper:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]):has(.celeste-text-input-button[inline=false], .celeste-text-input-affix[variant=suffix]) .celeste-text-input[data-v-105e81d6] {
1936
1936
  padding-inline-end: var(--input-padding);
1937
1937
  border-inline-end: 1px solid var(--color-stroke-soft-200);
1938
1938
  }
1939
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]):has(.celeste-text-input-affix[variant=prefix]) {
1939
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]):has(.celeste-text-input-affix[variant=prefix]) {
1940
1940
  padding-inline: var(--spacing-0) var(--input-padding);
1941
1941
  }
1942
- .celeste-text-input-wrapper:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]):has(.celeste-text-input-affix[variant=prefix]) .celeste-text-input[data-v-3fcea99c] {
1942
+ .celeste-text-input-wrapper:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]):has(.celeste-text-input-affix[variant=prefix]) .celeste-text-input[data-v-105e81d6] {
1943
1943
  padding-inline-start: var(--input-padding);
1944
1944
  border-inline-start: 1px solid var(--color-stroke-soft-200);
1945
1945
  }
1946
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]) .celeste-text-input-icon[position=start] {
1946
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]) .celeste-text-input-icon[position=start] {
1947
1947
  margin-inline-end: var(--input-gap);
1948
1948
  }
1949
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]) .celeste-text-input-icon[position=end] {
1949
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input-button, .celeste-text-input-affix[inline=false][askbd=false]) .celeste-text-input-icon[position=end] {
1950
1950
  margin-inline-start: var(--input-gap);
1951
1951
  }
1952
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:hover:not(:focus, :disabled)) {
1952
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:hover:not(:focus, :disabled)) {
1953
1953
  /* stylelint-disable-next-line no-descending-specificity */
1954
1954
  }
1955
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-button, .celeste-text-input-affix)) {
1955
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-button, .celeste-text-input-affix)) {
1956
1956
  border-color: transparent;
1957
1957
  background-color: var(--color-bg-weak-50);
1958
1958
  }
1959
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:hover:not(:focus, :disabled)):has(.celeste-text-input-button:not(:hover), .celeste-text-input-affix:not(:hover)) {
1959
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:hover:not(:focus, :disabled)):has(.celeste-text-input-button:not(:hover), .celeste-text-input-affix:not(:hover)) {
1960
1960
  background-color: var(--color-bg-weak-50);
1961
1961
  }
1962
- .celeste-text-input-wrapper:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-button:hover)) .celeste-text-input[data-v-3fcea99c]::-moz-placeholder {
1962
+ .celeste-text-input-wrapper:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-button:hover)) .celeste-text-input[data-v-105e81d6]::-moz-placeholder {
1963
1963
  color: var(--color-text-sub-600);
1964
1964
  }
1965
- .celeste-text-input-wrapper:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-button:hover)) .celeste-text-input[data-v-3fcea99c]::placeholder {
1965
+ .celeste-text-input-wrapper:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-button:hover)) .celeste-text-input[data-v-105e81d6]::placeholder {
1966
1966
  color: var(--color-text-sub-600);
1967
1967
  }
1968
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:-moz-placeholder:not(:disabled)) {
1968
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:-moz-placeholder:not(:disabled)) {
1969
1969
  /* stylelint-disable-next-line no-descending-specificity */
1970
1970
  }
1971
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:placeholder-shown:not(:disabled)) {
1971
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:placeholder-shown:not(:disabled)) {
1972
1972
  /* stylelint-disable-next-line no-descending-specificity */
1973
1973
  }
1974
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:-moz-placeholder:not(:disabled)) .celeste-text-input-icon, .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:-moz-placeholder:not(:disabled)) .celeste-text-input-affix {
1974
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:-moz-placeholder:not(:disabled)) .celeste-text-input-icon, .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:-moz-placeholder:not(:disabled)) .celeste-text-input-affix {
1975
1975
  color: var(--color-text-soft-400);
1976
1976
  }
1977
- .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:placeholder-shown:not(:disabled)) .celeste-text-input-icon, .celeste-text-input-wrapper[data-v-3fcea99c]:has(.celeste-text-input:placeholder-shown:not(:disabled)) .celeste-text-input-affix {
1977
+ .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:placeholder-shown:not(:disabled)) .celeste-text-input-icon, .celeste-text-input-wrapper[data-v-105e81d6]:has(.celeste-text-input:placeholder-shown:not(:disabled)) .celeste-text-input-affix {
1978
1978
  color: var(--color-text-soft-400);
1979
1979
  }[data-v-2cc18da8] {
1980
1980
  box-sizing: border-box;
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
19
19
  const props = __props;
20
20
  const modelValue = Mo.useModel(__props, "modelValue");
21
21
  return (_ctx, _cache) => {
22
- return Mo.openBlock(), Mo.createElementBlock("div", {
22
+ return Mo.openBlock(), Mo.createElementBlock("label", {
23
23
  size: _ctx.size,
24
24
  role: "presentation",
25
25
  "has-error": _ctx.hasError,
@@ -38,5 +38,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
38
38
  };
39
39
  }
40
40
  });
41
- const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-3fcea99c"]]);
41
+ const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-105e81d6"]]);
42
42
  module.exports = TextInput;
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
16
16
  size: "xs" | "sm" | "md";
17
17
  type: "text" | "email" | "password" | "search" | "tel" | "url";
18
18
  hasError: boolean;
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>, {
20
20
  default?(_: {}): any;
21
21
  }>;
22
22
  export default _default;
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  const props = __props;
19
19
  const modelValue = useModel(__props, "modelValue");
20
20
  return (_ctx, _cache) => {
21
- return openBlock(), createElementBlock("div", {
21
+ return openBlock(), createElementBlock("label", {
22
22
  size: _ctx.size,
23
23
  role: "presentation",
24
24
  "has-error": _ctx.hasError,
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  };
38
38
  }
39
39
  });
40
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3fcea99c"]]);
40
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-105e81d6"]]);
41
41
  export {
42
42
  TextInput as default
43
43
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/celeste",
3
3
  "type": "module",
4
- "version": "0.6.13",
4
+ "version": "0.6.14",
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.13",
36
- "@youcan/celeste-tokens": "0.6.13"
35
+ "@youcan/celeste-icons": "0.6.14",
36
+ "@youcan/celeste-tokens": "0.6.14"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@chromatic-com/storybook": "^4.0.0",
@@ -20,7 +20,7 @@ export interface TextInputProps extends /* @vue-ignore */ InputHTMLAttributes {
20
20
  </script>
21
21
 
22
22
  <template>
23
- <div
23
+ <label
24
24
  :size="size"
25
25
  role="presentation"
26
26
  :has-error="hasError"
@@ -33,7 +33,7 @@ export interface TextInputProps extends /* @vue-ignore */ InputHTMLAttributes {
33
33
  class="celeste-text-input"
34
34
  >
35
35
  <slot />
36
- </div>
36
+ </label>
37
37
  </template>
38
38
 
39
39
  <style scoped lang="scss">