@youcan/celeste 0.6.43 → 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.
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ const Mo = require("vue");
3
+ const useDelegatedProps = require("./use-delegated-props.js");
4
+ const clsx = require("./chunks/clsx.js");
5
+ const index = require("./chunks/index.js");
6
+ const _pluginVue_exportHelper = require("./chunks/_plugin-vue_export-helper.js");
7
+ const _hoisted_1 = { class: "celeste-checkbox-card-content" };
8
+ const _hoisted_2 = { role: "presentation" };
9
+ const _hoisted_3 = {
10
+ role: "presentation",
11
+ class: "celeste-checkbox-card-row"
12
+ };
13
+ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
14
+ __name: "checkbox-card",
15
+ props: {
16
+ for: {},
17
+ asChild: { type: Boolean },
18
+ as: {},
19
+ required: { type: Boolean },
20
+ disabled: { type: Boolean },
21
+ class: {}
22
+ },
23
+ setup(__props) {
24
+ const props = __props;
25
+ const delegatedProps = useDelegatedProps.useDelegatedProps(props, "class");
26
+ return (_ctx, _cache) => {
27
+ return Mo.openBlock(), Mo.createBlock(Mo.unref(index.Oh), Mo.mergeProps(Mo.unref(delegatedProps), {
28
+ "aria-required": _ctx.required,
29
+ "aria-disabled": _ctx.disabled,
30
+ class: Mo.unref(clsx.clsx)("celeste-checkbox-card", props.class, {
31
+ "celeste-checkbox-card-disabled": _ctx.disabled
32
+ })
33
+ }), {
34
+ default: Mo.withCtx(() => [
35
+ _ctx.$slots.image || _ctx.$slots.icon ? (Mo.openBlock(), Mo.createElementBlock("div", {
36
+ key: 0,
37
+ role: "presentation",
38
+ class: Mo.normalizeClass(["celeste-checkbox-card-preview", [_ctx.$slots.image ? "celeste-checkbox-card-preview-image" : "celeste-checkbox-card-preview-icon"]])
39
+ }, [
40
+ _ctx.$slots.image ? (Mo.openBlock(), Mo.createElementBlock(Mo.Fragment, { key: 0 }, [
41
+ _cache[0] || (_cache[0] = Mo.createElementVNode("i", {
42
+ class: "celeste-checkbox-card-preview-fallback",
43
+ "i-celeste-image-circle-fill": ""
44
+ }, null, -1)),
45
+ Mo.renderSlot(_ctx.$slots, "image", { class: "i-celeste-image-circle-fill?bg" }, void 0, true)
46
+ ], 64)) : _ctx.$slots.icon ? Mo.renderSlot(_ctx.$slots, "icon", { key: 1 }, void 0, true) : Mo.createCommentVNode("", true)
47
+ ], 2)) : Mo.createCommentVNode("", true),
48
+ Mo.createElementVNode("div", _hoisted_1, [
49
+ Mo.createElementVNode("div", _hoisted_2, [
50
+ Mo.createElementVNode("div", _hoisted_3, [
51
+ Mo.createVNode(Mo.unref(index.O), {
52
+ as: "span",
53
+ class: "celeste-checkbox-card-label"
54
+ }, {
55
+ default: Mo.withCtx(() => [
56
+ Mo.renderSlot(_ctx.$slots, "label", {}, void 0, true)
57
+ ]),
58
+ _: 3
59
+ }),
60
+ _ctx.$slots.sublabel ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
61
+ key: 0,
62
+ as: "span",
63
+ class: "celeste-checkbox-card-sublabel"
64
+ }, {
65
+ default: Mo.withCtx(() => [
66
+ Mo.renderSlot(_ctx.$slots, "sublabel", {}, void 0, true)
67
+ ]),
68
+ _: 3
69
+ })) : Mo.createCommentVNode("", true),
70
+ _ctx.$slots.badge ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
71
+ key: 1,
72
+ "as-child": "",
73
+ class: "celeste-checkbox-card-badge"
74
+ }, {
75
+ default: Mo.withCtx(() => [
76
+ Mo.renderSlot(_ctx.$slots, "badge", { disabled: _ctx.disabled }, void 0, true)
77
+ ]),
78
+ _: 3
79
+ })) : Mo.createCommentVNode("", true)
80
+ ])
81
+ ]),
82
+ _ctx.$slots.description ? (Mo.openBlock(), Mo.createBlock(Mo.unref(index.O), {
83
+ key: 0,
84
+ as: "span",
85
+ class: "celeste-checkbox-card-description"
86
+ }, {
87
+ default: Mo.withCtx(() => [
88
+ Mo.renderSlot(_ctx.$slots, "description", {}, void 0, true)
89
+ ]),
90
+ _: 3
91
+ })) : Mo.createCommentVNode("", true)
92
+ ]),
93
+ Mo.createVNode(Mo.unref(index.O), {
94
+ disabled: _ctx.disabled,
95
+ "as-child": "",
96
+ class: "celeste-checkbox-card-checkbox"
97
+ }, {
98
+ default: Mo.withCtx(() => [
99
+ Mo.renderSlot(_ctx.$slots, "default", {}, void 0, true)
100
+ ]),
101
+ _: 3
102
+ }, 8, ["disabled"])
103
+ ]),
104
+ _: 3
105
+ }, 16, ["aria-required", "aria-disabled", "class"]);
106
+ };
107
+ }
108
+ });
109
+ const checkboxCard = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-7b08df2f"]]);
110
+ module.exports = checkboxCard;
@@ -19,10 +19,7 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
19
19
  for: {},
20
20
  asChild: { type: Boolean },
21
21
  as: {},
22
- sublabel: {},
23
- information: {},
24
22
  required: { type: Boolean },
25
- description: {},
26
23
  disabled: { type: Boolean },
27
24
  class: {}
28
25
  },
@@ -108,5 +105,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
108
105
  };
109
106
  }
110
107
  });
111
- const checkboxLabel = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-cddafe7b"]]);
108
+ const checkboxLabel = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-ad0a5759"]]);
112
109
  module.exports = checkboxLabel;
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,10 +1,7 @@
1
1
  import { HTMLAttributes } from 'vue';
2
2
  import { LabelProps } from 'radix-vue';
3
3
  type __VLS_Props = LabelProps & {
4
- sublabel?: string;
5
- information?: string;
6
4
  required?: boolean;
7
- description?: string;
8
5
  disabled?: boolean;
9
6
  class?: HTMLAttributes['class'];
10
7
  };
@@ -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';
@@ -0,0 +1,111 @@
1
+ import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, normalizeClass, Fragment, createElementVNode, renderSlot, createCommentVNode, createVNode } from "vue";
2
+ import { useDelegatedProps } from "./use-delegated-props.js";
3
+ import { c as clsx } from "./chunks/clsx.js";
4
+ import { L as Oh, g as O } from "./chunks/index.js";
5
+ import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
6
+ const _hoisted_1 = { class: "celeste-checkbox-card-content" };
7
+ const _hoisted_2 = { role: "presentation" };
8
+ const _hoisted_3 = {
9
+ role: "presentation",
10
+ class: "celeste-checkbox-card-row"
11
+ };
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ __name: "checkbox-card",
14
+ props: {
15
+ for: {},
16
+ asChild: { type: Boolean },
17
+ as: {},
18
+ required: { type: Boolean },
19
+ disabled: { type: Boolean },
20
+ class: {}
21
+ },
22
+ setup(__props) {
23
+ const props = __props;
24
+ const delegatedProps = useDelegatedProps(props, "class");
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createBlock(unref(Oh), mergeProps(unref(delegatedProps), {
27
+ "aria-required": _ctx.required,
28
+ "aria-disabled": _ctx.disabled,
29
+ class: unref(clsx)("celeste-checkbox-card", props.class, {
30
+ "celeste-checkbox-card-disabled": _ctx.disabled
31
+ })
32
+ }), {
33
+ default: withCtx(() => [
34
+ _ctx.$slots.image || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
35
+ key: 0,
36
+ role: "presentation",
37
+ class: normalizeClass(["celeste-checkbox-card-preview", [_ctx.$slots.image ? "celeste-checkbox-card-preview-image" : "celeste-checkbox-card-preview-icon"]])
38
+ }, [
39
+ _ctx.$slots.image ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
40
+ _cache[0] || (_cache[0] = createElementVNode("i", {
41
+ class: "celeste-checkbox-card-preview-fallback",
42
+ "i-celeste-image-circle-fill": ""
43
+ }, null, -1)),
44
+ renderSlot(_ctx.$slots, "image", { class: "i-celeste-image-circle-fill?bg" }, void 0, true)
45
+ ], 64)) : _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 1 }, void 0, true) : createCommentVNode("", true)
46
+ ], 2)) : createCommentVNode("", true),
47
+ createElementVNode("div", _hoisted_1, [
48
+ createElementVNode("div", _hoisted_2, [
49
+ createElementVNode("div", _hoisted_3, [
50
+ createVNode(unref(O), {
51
+ as: "span",
52
+ class: "celeste-checkbox-card-label"
53
+ }, {
54
+ default: withCtx(() => [
55
+ renderSlot(_ctx.$slots, "label", {}, void 0, true)
56
+ ]),
57
+ _: 3
58
+ }),
59
+ _ctx.$slots.sublabel ? (openBlock(), createBlock(unref(O), {
60
+ key: 0,
61
+ as: "span",
62
+ class: "celeste-checkbox-card-sublabel"
63
+ }, {
64
+ default: withCtx(() => [
65
+ renderSlot(_ctx.$slots, "sublabel", {}, void 0, true)
66
+ ]),
67
+ _: 3
68
+ })) : createCommentVNode("", true),
69
+ _ctx.$slots.badge ? (openBlock(), createBlock(unref(O), {
70
+ key: 1,
71
+ "as-child": "",
72
+ class: "celeste-checkbox-card-badge"
73
+ }, {
74
+ default: withCtx(() => [
75
+ renderSlot(_ctx.$slots, "badge", { disabled: _ctx.disabled }, void 0, true)
76
+ ]),
77
+ _: 3
78
+ })) : createCommentVNode("", true)
79
+ ])
80
+ ]),
81
+ _ctx.$slots.description ? (openBlock(), createBlock(unref(O), {
82
+ key: 0,
83
+ as: "span",
84
+ class: "celeste-checkbox-card-description"
85
+ }, {
86
+ default: withCtx(() => [
87
+ renderSlot(_ctx.$slots, "description", {}, void 0, true)
88
+ ]),
89
+ _: 3
90
+ })) : createCommentVNode("", true)
91
+ ]),
92
+ createVNode(unref(O), {
93
+ disabled: _ctx.disabled,
94
+ "as-child": "",
95
+ class: "celeste-checkbox-card-checkbox"
96
+ }, {
97
+ default: withCtx(() => [
98
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
99
+ ]),
100
+ _: 3
101
+ }, 8, ["disabled"])
102
+ ]),
103
+ _: 3
104
+ }, 16, ["aria-required", "aria-disabled", "class"]);
105
+ };
106
+ }
107
+ });
108
+ const checkboxCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b08df2f"]]);
109
+ export {
110
+ checkboxCard as default
111
+ };
@@ -18,10 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  for: {},
19
19
  asChild: { type: Boolean },
20
20
  as: {},
21
- sublabel: {},
22
- information: {},
23
21
  required: { type: Boolean },
24
- description: {},
25
22
  disabled: { type: Boolean },
26
23
  class: {}
27
24
  },
@@ -107,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
104
  };
108
105
  }
109
106
  });
110
- const checkboxLabel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cddafe7b"]]);
107
+ const checkboxLabel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ad0a5759"]]);
111
108
  export {
112
109
  checkboxLabel as default
113
110
  };
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.43",
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.43",
48
- "@youcan/celeste-tokens": "0.6.43"
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",
@@ -0,0 +1,222 @@
1
+ <script setup lang="ts">
2
+ import type { LabelProps } from 'radix-vue';
3
+ import type { HTMLAttributes } from 'vue';
4
+ import { useDelegatedProps } from '@/composables/use-delegated-props';
5
+ import clsx from 'clsx';
6
+ import { Label, Primitive } from 'radix-vue';
7
+
8
+ const props = defineProps<LabelProps & {
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ class?: HTMLAttributes['class'];
12
+ }>();
13
+
14
+ const delegatedProps = useDelegatedProps(props, 'class');
15
+ </script>
16
+
17
+ <template>
18
+ <Label
19
+ v-bind="delegatedProps"
20
+ :aria-required="required"
21
+ :aria-disabled="disabled"
22
+ :class="
23
+ clsx('celeste-checkbox-card', props.class, {
24
+ 'celeste-checkbox-card-disabled': disabled,
25
+ })
26
+ "
27
+ >
28
+
29
+ <div
30
+ v-if="$slots.image || $slots.icon"
31
+ role="presentation"
32
+ class="celeste-checkbox-card-preview"
33
+ :class="[$slots.image ? 'celeste-checkbox-card-preview-image' : 'celeste-checkbox-card-preview-icon']"
34
+ >
35
+ <template v-if="$slots.image">
36
+ <i class="celeste-checkbox-card-preview-fallback" i-celeste-image-circle-fill />
37
+ <slot class="i-celeste-image-circle-fill?bg" name="image" />
38
+ </template>
39
+
40
+ <template v-else-if="$slots.icon">
41
+ <slot name="icon" />
42
+ </template>
43
+ </div>
44
+
45
+ <div class="celeste-checkbox-card-content">
46
+ <div role="presentation">
47
+ <div role="presentation" class="celeste-checkbox-card-row">
48
+ <Primitive as="span" class="celeste-checkbox-card-label">
49
+ <slot name="label" />
50
+ </Primitive>
51
+
52
+ <Primitive
53
+ v-if="$slots.sublabel"
54
+ as="span"
55
+ class="celeste-checkbox-card-sublabel"
56
+ >
57
+ <slot name="sublabel" />
58
+ </Primitive>
59
+ <Primitive
60
+ v-if="$slots.badge"
61
+ as-child
62
+ class="celeste-checkbox-card-badge"
63
+ >
64
+ <slot :disabled="disabled" name="badge" />
65
+ </Primitive>
66
+ </div>
67
+ </div>
68
+
69
+ <Primitive
70
+ v-if="$slots.description"
71
+ as="span"
72
+ class="celeste-checkbox-card-description"
73
+ >
74
+ <slot name="description" />
75
+ </Primitive>
76
+ </div>
77
+
78
+ <Primitive
79
+ :disabled="disabled"
80
+ as-child
81
+ class="celeste-checkbox-card-checkbox"
82
+ >
83
+ <slot />
84
+ </Primitive>
85
+
86
+ </Label>
87
+ </template>
88
+
89
+ <style lang="scss" scoped>
90
+ * {
91
+ box-sizing: border-box;
92
+ }
93
+
94
+ .celeste-checkbox-card {
95
+ display: flex;
96
+ align-items: flex-start;
97
+ padding: var(--spacing-16);
98
+ transition: all var(--animation-fast) ease-out;
99
+ border: 1px solid var(--color-stroke-soft-200);
100
+ border-radius: var(--radius-12);
101
+ background-color: var(--color-bg-white-0);
102
+ box-shadow: var(--shadow-regular-xs);
103
+ color: var(--color-text-strong-950);
104
+ font: var(--paragraph-sm);
105
+ gap: var(--spacing-14);
106
+
107
+ &:not(.celeste-checkbox-card-disabled) {
108
+ cursor: pointer;
109
+ }
110
+
111
+ &:has([data-state='checked']):not(.celeste-checkbox-card-disabled) {
112
+ border-color: var(--color-primary-base);
113
+ box-shadow: none;
114
+ }
115
+
116
+ &:hover:not(.celeste-checkbox-card-disabled),
117
+ &:focus-visible:not(.celeste-checkbox-card-disabled) {
118
+ background-color: var(--color-bg-weak-50);
119
+ box-shadow: none;
120
+
121
+ &:not(:has([data-state='checked'])) {
122
+ border-color: transparent;
123
+ }
124
+ }
125
+ }
126
+
127
+ .celeste-checkbox-card-preview {
128
+ display: flex;
129
+ position: relative;
130
+ flex-shrink: 0;
131
+ align-items: center;
132
+ justify-content: center;
133
+ width: 40px;
134
+ height: 40px;
135
+ overflow: hidden;
136
+ border: 1px solid var(--color-stroke-soft-200);
137
+ border-radius: var(--radius-full);
138
+ background-color: var(--color-bg-white-0);
139
+ box-shadow: var(--shadow-regular-xs);
140
+ }
141
+
142
+ .celeste-checkbox-card-preview-image {
143
+ border: none;
144
+
145
+ i {
146
+ position: absolute;
147
+ z-index: 0;
148
+ top: 50%;
149
+ left: 50%;
150
+ width: 20px;
151
+ height: 20px;
152
+ transform: translate(-50%, -50%);
153
+ color: var(--color-icon-sub-600);
154
+ }
155
+
156
+ :deep(img) {
157
+ z-index: 1000;
158
+ }
159
+ }
160
+
161
+ .celeste-checkbox-card-preview-icon {
162
+ i {
163
+ width: 20px;
164
+ height: 20px;
165
+ color: var(--color-icon-sub-600);
166
+ }
167
+ }
168
+
169
+ .celeste-checkbox-card-content {
170
+ display: flex;
171
+ flex-direction: column;
172
+ gap: var(--spacing-4);
173
+ }
174
+
175
+ .celeste-checkbox-card-row {
176
+ display: flex;
177
+ flex-shrink: 1;
178
+ align-items: center;
179
+ gap: var(--spacing-8);
180
+ }
181
+
182
+ .celeste-checkbox-card-label {
183
+ flex-shrink: 1;
184
+ min-width: 0;
185
+ overflow: hidden;
186
+ color: var(--color-text-strong-950);
187
+ font: var(--label-sm);
188
+ text-overflow: ellipsis;
189
+ white-space: nowrap;
190
+ }
191
+
192
+ .celeste-checkbox-card-sublabel {
193
+ flex-shrink: 1;
194
+ min-width: 0;
195
+ overflow: hidden;
196
+ color: var(--color-text-sub-600);
197
+ font: var(--paragraph-xs);
198
+ text-overflow: ellipsis;
199
+ white-space: nowrap;
200
+ }
201
+
202
+ .celeste-checkbox-card-description {
203
+ color: var(--color-text-sub-600);
204
+ font: var(--paragraph-xs);
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
+ </style>
@@ -5,10 +5,7 @@ import clsx from 'clsx';
5
5
  import { Label, type LabelProps, Primitive } from 'radix-vue';
6
6
 
7
7
  const props = defineProps<LabelProps & {
8
- sublabel?: string;
9
- information?: string;
10
8
  required?: boolean;
11
- description?: string;
12
9
  disabled?: boolean;
13
10
  class?: HTMLAttributes['class'];
14
11
  }>();
@@ -29,6 +29,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
29
29
 
30
30
  display: flex;
31
31
  position: relative;
32
+ flex-shrink: 0;
32
33
  align-items: center;
33
34
  justify-content: center;
34
35
  width: var(--checkbox-size);
@@ -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