@youcan/celeste 0.6.44 → 0.6.45

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
@@ -1903,6 +1903,115 @@ to {
1903
1903
  .celeste-cbutton-white[data-v-c062bacd] {
1904
1904
  background-color: var(--color-bg-white-0);
1905
1905
  box-shadow: var(--shadow-regular-xs);
1906
+ }[data-v-7b08df2f] {
1907
+ box-sizing: border-box;
1908
+ }
1909
+ .celeste-checkbox-card[data-v-7b08df2f] {
1910
+ display: flex;
1911
+ align-items: flex-start;
1912
+ padding: var(--spacing-16);
1913
+ transition: all var(--animation-fast) ease-out;
1914
+ border: 1px solid var(--color-stroke-soft-200);
1915
+ border-radius: var(--radius-12);
1916
+ background-color: var(--color-bg-white-0);
1917
+ box-shadow: var(--shadow-regular-xs);
1918
+ color: var(--color-text-strong-950);
1919
+ font: var(--paragraph-sm);
1920
+ gap: var(--spacing-14);
1921
+ }
1922
+ .celeste-checkbox-card[data-v-7b08df2f]:not(.celeste-checkbox-card-disabled) {
1923
+ cursor: pointer;
1924
+ }
1925
+ .celeste-checkbox-card[data-v-7b08df2f]:has([data-state=checked]):not(.celeste-checkbox-card-disabled) {
1926
+ border-color: var(--color-primary-base);
1927
+ box-shadow: none;
1928
+ }
1929
+ .celeste-checkbox-card[data-v-7b08df2f]:hover:not(.celeste-checkbox-card-disabled), .celeste-checkbox-card[data-v-7b08df2f]:focus-visible:not(.celeste-checkbox-card-disabled) {
1930
+ background-color: var(--color-bg-weak-50);
1931
+ box-shadow: none;
1932
+ }
1933
+ .celeste-checkbox-card[data-v-7b08df2f]:hover:not(.celeste-checkbox-card-disabled):not(:has([data-state=checked])), .celeste-checkbox-card[data-v-7b08df2f]:focus-visible:not(.celeste-checkbox-card-disabled):not(:has([data-state=checked])) {
1934
+ border-color: transparent;
1935
+ }
1936
+ .celeste-checkbox-card-preview[data-v-7b08df2f] {
1937
+ display: flex;
1938
+ position: relative;
1939
+ flex-shrink: 0;
1940
+ align-items: center;
1941
+ justify-content: center;
1942
+ width: 40px;
1943
+ height: 40px;
1944
+ overflow: hidden;
1945
+ border: 1px solid var(--color-stroke-soft-200);
1946
+ border-radius: var(--radius-full);
1947
+ background-color: var(--color-bg-white-0);
1948
+ box-shadow: var(--shadow-regular-xs);
1949
+ }
1950
+ .celeste-checkbox-card-preview-image[data-v-7b08df2f] {
1951
+ border: none;
1952
+ }
1953
+ .celeste-checkbox-card-preview-image i[data-v-7b08df2f] {
1954
+ position: absolute;
1955
+ z-index: 0;
1956
+ top: 50%;
1957
+ left: 50%;
1958
+ width: 20px;
1959
+ height: 20px;
1960
+ transform: translate(-50%, -50%);
1961
+ color: var(--color-icon-sub-600);
1962
+ }
1963
+ .celeste-checkbox-card-preview-image[data-v-7b08df2f] img {
1964
+ z-index: 1000;
1965
+ }
1966
+ .celeste-checkbox-card-preview-icon i[data-v-7b08df2f] {
1967
+ width: 20px;
1968
+ height: 20px;
1969
+ color: var(--color-icon-sub-600);
1970
+ }
1971
+ .celeste-checkbox-card-content[data-v-7b08df2f] {
1972
+ display: flex;
1973
+ flex-direction: column;
1974
+ gap: var(--spacing-4);
1975
+ }
1976
+ .celeste-checkbox-card-row[data-v-7b08df2f] {
1977
+ display: flex;
1978
+ flex-shrink: 1;
1979
+ align-items: center;
1980
+ gap: var(--spacing-8);
1981
+ }
1982
+ .celeste-checkbox-card-label[data-v-7b08df2f] {
1983
+ flex-shrink: 1;
1984
+ min-width: 0;
1985
+ overflow: hidden;
1986
+ color: var(--color-text-strong-950);
1987
+ font: var(--label-sm);
1988
+ text-overflow: ellipsis;
1989
+ white-space: nowrap;
1990
+ }
1991
+ .celeste-checkbox-card-sublabel[data-v-7b08df2f] {
1992
+ flex-shrink: 1;
1993
+ min-width: 0;
1994
+ overflow: hidden;
1995
+ color: var(--color-text-sub-600);
1996
+ font: var(--paragraph-xs);
1997
+ text-overflow: ellipsis;
1998
+ white-space: nowrap;
1999
+ }
2000
+ .celeste-checkbox-card-description[data-v-7b08df2f] {
2001
+ color: var(--color-text-sub-600);
2002
+ font: var(--paragraph-xs);
2003
+ }
2004
+ .celeste-checkbox-card-disabled[data-v-7b08df2f] {
2005
+ cursor: not-allowed;
2006
+ }
2007
+ .celeste-checkbox-card-disabled .celeste-checkbox-card-label[data-v-7b08df2f] {
2008
+ color: var(--color-text-sub-600);
2009
+ }
2010
+ .celeste-checkbox-card-disabled .celeste-checkbox-card-sublabel[data-v-7b08df2f] {
2011
+ color: var(--color-text-soft-400);
2012
+ }
2013
+ .celeste-checkbox-card-disabled .celeste-checkbox-card-description[data-v-7b08df2f] {
2014
+ color: var(--color-text-soft-400);
1906
2015
  }.celeste-checkbox-label[data-v-ad0a5759] {
1907
2016
  display: flex;
1908
2017
  color: var(--color-text-strong-950);
@@ -4346,115 +4455,6 @@ to {
4346
4455
  }
4347
4456
  [data-v-5d801c64] .celeste-color-slider .slider-track .celeste-color-thumb {
4348
4457
  top: calc(var(--track-height) / 2);
4349
- }[data-v-29119673] {
4350
- box-sizing: border-box;
4351
- }
4352
- .celeste-checkbox-card[data-v-29119673] {
4353
- display: flex;
4354
- align-items: flex-start;
4355
- padding: var(--spacing-16);
4356
- transition: all var(--animation-fast) ease-out;
4357
- border: 1px solid var(--color-stroke-soft-200);
4358
- border-radius: var(--radius-12);
4359
- background-color: var(--color-bg-white-0);
4360
- box-shadow: var(--shadow-regular-xs);
4361
- color: var(--color-text-strong-950);
4362
- font: var(--paragraph-sm);
4363
- gap: var(--spacing-14);
4364
- }
4365
- .celeste-checkbox-card[data-v-29119673]:not(.celeste-checkbox-card-disabled) {
4366
- cursor: pointer;
4367
- }
4368
- .celeste-checkbox-card[data-v-29119673]:has([data-state=checked]):not(.celeste-checkbox-card-disabled) {
4369
- border-color: var(--color-primary-base);
4370
- box-shadow: none;
4371
- }
4372
- .celeste-checkbox-card[data-v-29119673]:hover:not(.celeste-checkbox-card-disabled), .celeste-checkbox-card[data-v-29119673]:focus-visible:not(.celeste-checkbox-card-disabled) {
4373
- background-color: var(--color-bg-weak-50);
4374
- box-shadow: none;
4375
- }
4376
- .celeste-checkbox-card[data-v-29119673]:hover:not(.celeste-checkbox-card-disabled):not(:has([data-state=checked])), .celeste-checkbox-card[data-v-29119673]:focus-visible:not(.celeste-checkbox-card-disabled):not(:has([data-state=checked])) {
4377
- border-color: transparent;
4378
- }
4379
- .celeste-checkbox-card-disabled[data-v-29119673] {
4380
- cursor: not-allowed;
4381
- }
4382
- .celeste-checkbox-card-disabled .celeste-checkbox-card-label[data-v-29119673] {
4383
- color: var(--color-text-sub-600);
4384
- }
4385
- .celeste-checkbox-card-disabled .celeste-checkbox-card-sublabel[data-v-29119673] {
4386
- color: var(--color-text-soft-400);
4387
- }
4388
- .celeste-checkbox-card-disabled .celeste-checkbox-card-description[data-v-29119673] {
4389
- color: var(--color-text-soft-400);
4390
- }
4391
- .celeste-checkbox-card-preview[data-v-29119673] {
4392
- display: flex;
4393
- position: relative;
4394
- flex-shrink: 0;
4395
- align-items: center;
4396
- justify-content: center;
4397
- width: 40px;
4398
- height: 40px;
4399
- overflow: hidden;
4400
- border: 1px solid var(--color-stroke-soft-200);
4401
- border-radius: var(--radius-full);
4402
- background-color: var(--color-bg-white-0);
4403
- box-shadow: var(--shadow-regular-xs);
4404
- }
4405
- .celeste-checkbox-card-preview-image[data-v-29119673] {
4406
- border: none;
4407
- }
4408
- .celeste-checkbox-card-preview-image i[data-v-29119673] {
4409
- position: absolute;
4410
- z-index: 0;
4411
- top: 50%;
4412
- left: 50%;
4413
- width: 20px;
4414
- height: 20px;
4415
- transform: translate(-50%, -50%);
4416
- color: var(--color-icon-sub-600);
4417
- }
4418
- .celeste-checkbox-card-preview-image[data-v-29119673] img {
4419
- z-index: 1000;
4420
- }
4421
- .celeste-checkbox-card-preview-icon i[data-v-29119673] {
4422
- width: 20px;
4423
- height: 20px;
4424
- color: var(--color-icon-sub-600);
4425
- }
4426
- .celeste-checkbox-card-content[data-v-29119673] {
4427
- display: flex;
4428
- flex-direction: column;
4429
- gap: var(--spacing-4);
4430
- }
4431
- .celeste-checkbox-card-row[data-v-29119673] {
4432
- display: flex;
4433
- flex-shrink: 1;
4434
- align-items: center;
4435
- gap: var(--spacing-8);
4436
- }
4437
- .celeste-checkbox-card-label[data-v-29119673] {
4438
- flex-shrink: 1;
4439
- min-width: 0;
4440
- overflow: hidden;
4441
- color: var(--color-text-strong-950);
4442
- font: var(--label-sm);
4443
- text-overflow: ellipsis;
4444
- white-space: nowrap;
4445
- }
4446
- .celeste-checkbox-card-sublabel[data-v-29119673] {
4447
- flex-shrink: 1;
4448
- min-width: 0;
4449
- overflow: hidden;
4450
- color: var(--color-text-sub-600);
4451
- font: var(--paragraph-xs);
4452
- text-overflow: ellipsis;
4453
- white-space: nowrap;
4454
- }
4455
- .celeste-checkbox-card-description[data-v-29119673] {
4456
- color: var(--color-text-sub-600);
4457
- font: var(--paragraph-xs);
4458
4458
  }.celeste-rich-editor[data-v-dbc85b1a] {
4459
4459
  position: relative;
4460
4460
  border: 1px solid var(--color-stroke-soft-200);
@@ -106,5 +106,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
106
106
  };
107
107
  }
108
108
  });
109
- const checkboxCard = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-29119673"]]);
109
+ const checkboxCard = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-7b08df2f"]]);
110
110
  module.exports = checkboxCard;
package/dist/cjs/index.js CHANGED
@@ -8,6 +8,7 @@ const compactButton = require("./compact-button.js");
8
8
  const fancyButton = require("./fancy-button.js");
9
9
  const linkButton = require("./link-button.js");
10
10
  const socialButton = require("./social-button.js");
11
+ const checkboxCard = require("./checkbox-card.js");
11
12
  const checkboxLabel = require("./checkbox-label.js");
12
13
  const checkbox_vue_vue_type_style_index_0_lang = require("./chunks/checkbox.vue_vue_type_style_index_0_lang.js");
13
14
  const comboboxAnchor_vue_vue_type_script_setup_true_lang = require("./chunks/combobox-anchor.js");
@@ -89,6 +90,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
89
90
  Badge: badge,
90
91
  Button: button,
91
92
  Checkbox: checkbox_vue_vue_type_style_index_0_lang._sfc_main,
93
+ CheckboxCard: checkboxCard,
92
94
  CheckboxLabel: checkboxLabel,
93
95
  Combobox: combobox,
94
96
  ComboboxAnchor: comboboxAnchor_vue_vue_type_script_setup_true_lang._sfc_main,
@@ -230,6 +232,7 @@ exports.CompactButton = compactButton;
230
232
  exports.FancyButton = fancyButton;
231
233
  exports.LinkButton = linkButton;
232
234
  exports.SocialButton = socialButton;
235
+ exports.CheckboxCard = checkboxCard;
233
236
  exports.CheckboxLabel = checkboxLabel;
234
237
  exports.Checkbox = checkbox_vue_vue_type_style_index_0_lang._sfc_main;
235
238
  exports.ComboboxAnchor = comboboxAnchor_vue_vue_type_script_setup_true_lang._sfc_main;
@@ -0,0 +1,34 @@
1
+ import { LabelProps } from 'radix-vue';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = LabelProps & {
4
+ required?: boolean;
5
+ disabled?: boolean;
6
+ class?: HTMLAttributes['class'];
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ image?(_: {
12
+ class: string;
13
+ }): any;
14
+ icon?(_: {}): any;
15
+ label?(_: {}): any;
16
+ sublabel?(_: {}): any;
17
+ badge?(_: {
18
+ disabled: boolean | undefined;
19
+ }): any;
20
+ description?(_: {}): any;
21
+ default?(_: {}): any;
22
+ };
23
+ refs: {};
24
+ rootEl: any;
25
+ };
26
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -1,3 +1,5 @@
1
+ export * from './checkbox-card';
2
+ export { default as CheckboxCard } from './checkbox-card';
1
3
  export * from './checkbox-label';
2
4
  export { default as CheckboxLabel } from './checkbox-label';
3
5
  export * from './checkbox';
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
105
  };
106
106
  }
107
107
  });
108
- const checkboxCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-29119673"]]);
108
+ const checkboxCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b08df2f"]]);
109
109
  export {
110
110
  checkboxCard as default
111
111
  };
package/dist/es/index.js CHANGED
@@ -6,6 +6,7 @@ import CompactButton from "./compact-button.js";
6
6
  import fancyButton from "./fancy-button.js";
7
7
  import LinkButton from "./link-button.js";
8
8
  import socialButton from "./social-button.js";
9
+ import checkboxCard from "./checkbox-card.js";
9
10
  import checkboxLabel from "./checkbox-label.js";
10
11
  import { _ as _sfc_main } from "./chunks/checkbox.vue_vue_type_style_index_0_lang.js";
11
12
  import { _ as _sfc_main$1 } from "./chunks/combobox-anchor.js";
@@ -87,6 +88,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
87
88
  Badge,
88
89
  Button,
89
90
  Checkbox: _sfc_main,
91
+ CheckboxCard: checkboxCard,
90
92
  CheckboxLabel: checkboxLabel,
91
93
  Combobox: combobox,
92
94
  ComboboxAnchor: _sfc_main$1,
@@ -227,6 +229,7 @@ export {
227
229
  COLOR_NUMBER_VALIDATION_PATTERN,
228
230
  Celeste,
229
231
  _sfc_main as Checkbox,
232
+ checkboxCard as CheckboxCard,
230
233
  checkboxLabel as CheckboxLabel,
231
234
  combobox as Combobox,
232
235
  _sfc_main$1 as ComboboxAnchor,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/celeste",
3
3
  "type": "module",
4
- "version": "0.6.44",
4
+ "version": "0.6.45",
5
5
  "author": "YouCan <tech@youcan.shop>",
6
6
  "keywords": [
7
7
  "youcan",
@@ -44,8 +44,8 @@
44
44
  "radix-vue": "^1.9.12",
45
45
  "tinycolor2": "^1.6.0",
46
46
  "vue-sonner": "^2.0.2",
47
- "@youcan/celeste-icons": "0.6.44",
48
- "@youcan/celeste-tokens": "0.6.44"
47
+ "@youcan/celeste-icons": "0.6.45",
48
+ "@youcan/celeste-tokens": "0.6.45"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@chromatic-com/storybook": "^4.0.0",
@@ -124,22 +124,6 @@ const delegatedProps = useDelegatedProps(props, 'class');
124
124
  }
125
125
  }
126
126
 
127
- .celeste-checkbox-card-disabled {
128
- cursor: not-allowed;
129
-
130
- .celeste-checkbox-card-label {
131
- color: var(--color-text-sub-600);
132
- }
133
-
134
- .celeste-checkbox-card-sublabel {
135
- color: var(--color-text-soft-400);
136
- }
137
-
138
- .celeste-checkbox-card-description {
139
- color: var(--color-text-soft-400);
140
- }
141
- }
142
-
143
127
  .celeste-checkbox-card-preview {
144
128
  display: flex;
145
129
  position: relative;
@@ -219,4 +203,20 @@ const delegatedProps = useDelegatedProps(props, 'class');
219
203
  color: var(--color-text-sub-600);
220
204
  font: var(--paragraph-xs);
221
205
  }
206
+
207
+ .celeste-checkbox-card-disabled {
208
+ cursor: not-allowed;
209
+
210
+ .celeste-checkbox-card-label {
211
+ color: var(--color-text-sub-600);
212
+ }
213
+
214
+ .celeste-checkbox-card-sublabel {
215
+ color: var(--color-text-soft-400);
216
+ }
217
+
218
+ .celeste-checkbox-card-description {
219
+ color: var(--color-text-soft-400);
220
+ }
221
+ }
222
222
  </style>
@@ -1,3 +1,6 @@
1
+ export * from './checkbox-card.vue';
2
+ export { default as CheckboxCard } from './checkbox-card.vue';
3
+
1
4
  export * from './checkbox-label.vue';
2
5
  export { default as CheckboxLabel } from './checkbox-label.vue';
3
6