@youcan/celeste 0.6.101 → 0.6.102
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
|
@@ -3259,36 +3259,33 @@ to {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
.celeste-hint-text-error i[data-v-42c3df99] {
|
|
3261
3261
|
color: var(--color-state-error-base);
|
|
3262
|
-
}.celeste-label[data-v-
|
|
3262
|
+
}.celeste-label[data-v-958f80b5] {
|
|
3263
3263
|
display: flex;
|
|
3264
3264
|
align-items: center;
|
|
3265
3265
|
gap: var(--spacing-2);
|
|
3266
3266
|
color: var(--color-text-strong-950);
|
|
3267
3267
|
font: var(--label-sm);
|
|
3268
3268
|
}
|
|
3269
|
-
.celeste-label[data-v-
|
|
3269
|
+
.celeste-label[data-v-958f80b5]:has(> a) > *:last-child {
|
|
3270
3270
|
flex: 2;
|
|
3271
3271
|
}
|
|
3272
|
-
.celeste-label[aria-required=true][data-v-
|
|
3272
|
+
.celeste-label[aria-required=true][data-v-958f80b5]::after {
|
|
3273
3273
|
content: "*";
|
|
3274
3274
|
order: 2;
|
|
3275
3275
|
color: var(--color-primary-base);
|
|
3276
3276
|
}
|
|
3277
|
-
.celeste-label[data-v-
|
|
3277
|
+
.celeste-label[data-v-958f80b5]:not(:has(> .celeste-sublabel, > .celeste-label-info, .celeste-label[aria-required=true])) > * {
|
|
3278
3278
|
flex: none;
|
|
3279
3279
|
}
|
|
3280
|
-
.celeste-label:not(:has(> .celeste-sublabel, > .celeste-label-info, .celeste-label[aria-required=true]))[aria-required=
|
|
3281
|
-
justify-content: space-between;
|
|
3282
|
-
}
|
|
3283
|
-
.celeste-label:not(:has(> .celeste-sublabel, > .celeste-label-info, .celeste-label[aria-required=true]))[aria-required=true][data-v-896f427f]::after {
|
|
3280
|
+
.celeste-label:not(:has(> .celeste-sublabel, > .celeste-label-info, .celeste-label[aria-required=true]))[aria-required=true][data-v-958f80b5]::after {
|
|
3284
3281
|
flex: 2;
|
|
3285
3282
|
}
|
|
3286
|
-
.celeste-label .celeste-sublabel[data-v-
|
|
3283
|
+
.celeste-label .celeste-sublabel[data-v-958f80b5] {
|
|
3287
3284
|
order: 3;
|
|
3288
3285
|
color: var(--color-text-sub-600);
|
|
3289
3286
|
font: var(--paragraph-sm);
|
|
3290
3287
|
}
|
|
3291
|
-
.celeste-label .celeste-label-info[data-v-
|
|
3288
|
+
.celeste-label .celeste-label-info[data-v-958f80b5] {
|
|
3292
3289
|
display: flex;
|
|
3293
3290
|
align-items: center;
|
|
3294
3291
|
order: 4;
|
|
@@ -3297,15 +3294,16 @@ to {
|
|
|
3297
3294
|
background-color: transparent;
|
|
3298
3295
|
color: var(--color-icon-disabled-300);
|
|
3299
3296
|
}
|
|
3300
|
-
.celeste-label .celeste-label-button[data-v-
|
|
3297
|
+
.celeste-label .celeste-label-button[data-v-958f80b5] {
|
|
3301
3298
|
order: 5;
|
|
3299
|
+
margin-inline-start: auto;
|
|
3302
3300
|
}
|
|
3303
|
-
.celeste-label[aria-disabled=true][data-v-
|
|
3301
|
+
.celeste-label[aria-disabled=true][data-v-958f80b5] {
|
|
3304
3302
|
color: var(--color-text-disabled-300);
|
|
3305
3303
|
pointer-events: none;
|
|
3306
3304
|
}
|
|
3307
|
-
.celeste-label[aria-disabled=true][data-v-
|
|
3308
|
-
.celeste-label[aria-disabled=true] .celeste-sublabel[data-v-
|
|
3305
|
+
.celeste-label[aria-disabled=true][data-v-958f80b5]::after, .celeste-label[aria-disabled=true][data-v-958f80b5] > a,
|
|
3306
|
+
.celeste-label[aria-disabled=true] .celeste-sublabel[data-v-958f80b5] {
|
|
3309
3307
|
color: inherit;
|
|
3310
3308
|
}.celeste-switch {
|
|
3311
3309
|
--width: 26px;
|
|
@@ -5,8 +5,7 @@ const require_use_delegated_props = require("../use-delegated-props.cjs");
|
|
|
5
5
|
const require_tooltip = require("./tooltip.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
//#region src/components/label/label.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var _hoisted_1 = {
|
|
9
|
-
var _hoisted_2 = {
|
|
8
|
+
var _hoisted_1 = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "celeste-sublabel"
|
|
12
11
|
};
|
|
@@ -32,9 +31,15 @@ var label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.
|
|
|
32
31
|
class: (0, vue.unref)(require_clsx.clsx)("celeste-label", props.class)
|
|
33
32
|
}), {
|
|
34
33
|
default: (0, vue.withCtx)(() => [
|
|
35
|
-
(0, vue.
|
|
36
|
-
(0, vue.
|
|
37
|
-
|
|
34
|
+
(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true),
|
|
35
|
+
(0, vue.createVNode)((0, vue.unref)(require_dist.O), {
|
|
36
|
+
class: "celeste-label-button",
|
|
37
|
+
"as-child": ""
|
|
38
|
+
}, {
|
|
39
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "button", {}, void 0, true)]),
|
|
40
|
+
_: 3
|
|
41
|
+
}),
|
|
42
|
+
_ctx.sublabel ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1, (0, vue.toDisplayString)(_ctx.sublabel), 1)) : (0, vue.createCommentVNode)("", true),
|
|
38
43
|
_ctx.information ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_tooltip.tooltip_default, {
|
|
39
44
|
key: 1,
|
|
40
45
|
title: _ctx.information
|
|
@@ -54,7 +59,7 @@ var label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.
|
|
|
54
59
|
});
|
|
55
60
|
//#endregion
|
|
56
61
|
//#region src/components/label/label.vue
|
|
57
|
-
var label_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(label_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
62
|
+
var label_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(label_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-958f80b5"]]);
|
|
58
63
|
//#endregion
|
|
59
64
|
Object.defineProperty(exports, "label_default", {
|
|
60
65
|
enumerable: true,
|
|
@@ -7,13 +7,11 @@ type __VLS_Props = LabelProps & {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
class?: HTMLAttributes['class'];
|
|
9
9
|
};
|
|
10
|
-
declare var __VLS_8: {},
|
|
11
|
-
class: string;
|
|
12
|
-
};
|
|
10
|
+
declare var __VLS_8: {}, __VLS_16: {};
|
|
13
11
|
type __VLS_Slots = {} & {
|
|
14
12
|
default?: (props: typeof __VLS_8) => any;
|
|
15
13
|
} & {
|
|
16
|
-
button?: (props: typeof
|
|
14
|
+
button?: (props: typeof __VLS_16) => any;
|
|
17
15
|
};
|
|
18
16
|
declare const __VLS_base: 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>;
|
|
19
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
package/dist/es/chunks/label.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { U as Vh } from "./dist.js";
|
|
1
|
+
import { D as O, U as Vh } from "./dist.js";
|
|
2
2
|
import { t as clsx } from "./clsx.js";
|
|
3
3
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
4
4
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
5
5
|
import { t as tooltip_default } from "./tooltip.js";
|
|
6
|
-
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
7
7
|
//#region src/components/label/label.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var _hoisted_1 = {
|
|
9
|
-
var _hoisted_2 = {
|
|
8
|
+
var _hoisted_1 = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "celeste-sublabel"
|
|
12
11
|
};
|
|
@@ -34,9 +33,15 @@ var label_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
34
33
|
class: unref(clsx)("celeste-label", props.class)
|
|
35
34
|
}), {
|
|
36
35
|
default: withCtx(() => [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
37
|
+
createVNode(unref(O), {
|
|
38
|
+
class: "celeste-label-button",
|
|
39
|
+
"as-child": ""
|
|
40
|
+
}, {
|
|
41
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "button", {}, void 0, true)]),
|
|
42
|
+
_: 3
|
|
43
|
+
}),
|
|
44
|
+
_ctx.sublabel ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.sublabel), 1)) : createCommentVNode("", true),
|
|
40
45
|
_ctx.information ? (openBlock(), createBlock(tooltip_default, {
|
|
41
46
|
key: 1,
|
|
42
47
|
title: _ctx.information
|
|
@@ -53,6 +58,6 @@ var label_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
53
58
|
]);
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
|
-
}), [["__scopeId", "data-v-
|
|
61
|
+
}), [["__scopeId", "data-v-958f80b5"]]);
|
|
57
62
|
//#endregion
|
|
58
63
|
export { label_default as t };
|
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.102",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"radix-vue": "^1.9.17",
|
|
49
49
|
"tinycolor2": "^1.6.0",
|
|
50
50
|
"vue-sonner": "^2.0.9",
|
|
51
|
-
"@youcan/celeste-icons": "0.6.
|
|
52
|
-
"@youcan/celeste-tokens": "0.6.
|
|
51
|
+
"@youcan/celeste-icons": "0.6.102",
|
|
52
|
+
"@youcan/celeste-tokens": "0.6.102"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@chromatic-com/storybook": "^4.1.3",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { Label, type LabelProps } from 'radix-vue';
|
|
4
|
+
import { Label, type LabelProps, Primitive } from 'radix-vue';
|
|
5
5
|
import Tooltip from '@/components/tooltip/tooltip.vue';
|
|
6
6
|
import { useDelegatedProps } from '@/composables/use-delegated-props';
|
|
7
7
|
|
|
@@ -23,8 +23,12 @@ const delegatedProps = useDelegatedProps(props, 'class');
|
|
|
23
23
|
:aria-disabled="disabled"
|
|
24
24
|
:class="clsx('celeste-label', props.class)"
|
|
25
25
|
>
|
|
26
|
-
<
|
|
27
|
-
|
|
26
|
+
<slot />
|
|
27
|
+
|
|
28
|
+
<Primitive class="celeste-label-button" as-child>
|
|
29
|
+
<slot name="button" />
|
|
30
|
+
</Primitive>
|
|
31
|
+
|
|
28
32
|
<span v-if="sublabel" class="celeste-sublabel">{{ sublabel }}</span>
|
|
29
33
|
<Tooltip
|
|
30
34
|
v-if="information"
|
|
@@ -60,10 +64,6 @@ const delegatedProps = useDelegatedProps(props, 'class');
|
|
|
60
64
|
flex: none;
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
&[aria-required='false'] {
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
67
|
&[aria-required='true']::after {
|
|
68
68
|
flex: 2;
|
|
69
69
|
}
|
|
@@ -87,6 +87,7 @@ const delegatedProps = useDelegatedProps(props, 'class');
|
|
|
87
87
|
|
|
88
88
|
.celeste-label-button {
|
|
89
89
|
order: 5;
|
|
90
|
+
margin-inline-start: auto;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
&[aria-disabled='true'] {
|