@youcan/celeste 0.13.0 → 0.13.1
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/ai/component-registry.json +2 -2
- package/ai/component-registry.md +1 -1
- package/ai/icons.md +1 -1
- package/ai/tokens.md +1 -1
- package/dist/celeste.css +86 -86
- package/dist/cjs/chunks/calendar.cjs +71 -72
- package/dist/cjs/chunks/combobox-root.cjs +6 -6
- package/dist/cjs/chunks/digit-input.cjs +13 -12
- package/dist/cjs/chunks/dropdown-menu.cjs +9 -6
- package/dist/cjs/chunks/radio-group.cjs +4 -8
- package/dist/cjs/chunks/range-calendar.cjs +71 -72
- package/dist/cjs/chunks/scroll-area.cjs +16 -17
- package/dist/cjs/chunks/segmented-control.cjs +20 -21
- package/dist/cjs/chunks/select.cjs +8 -5
- package/dist/cjs/chunks/slider.cjs +14 -15
- package/dist/cjs/chunks/tab-menu.cjs +8 -9
- package/dist/cjs/command-root.cjs +8 -5
- package/dist/cjs/use-direction.cjs +4 -4
- package/dist/components/radio-group/radio-group.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/segmented-control/segmented-control.d.ts +2 -2
- package/dist/components/tab-menu/tab-menu.d.ts +2 -2
- package/dist/composables/use-direction.d.ts +2 -2
- package/dist/es/chunks/calendar.js +71 -72
- package/dist/es/chunks/combobox-root.js +6 -6
- package/dist/es/chunks/digit-input.js +14 -13
- package/dist/es/chunks/dropdown-menu.js +9 -6
- package/dist/es/chunks/radio-group.js +5 -9
- package/dist/es/chunks/range-calendar.js +71 -72
- package/dist/es/chunks/scroll-area.js +16 -17
- package/dist/es/chunks/segmented-control.js +21 -22
- package/dist/es/chunks/select.js +8 -5
- package/dist/es/chunks/slider.js +14 -15
- package/dist/es/chunks/tab-menu.js +9 -10
- package/dist/es/command-root.js +8 -5
- package/dist/es/use-direction.js +5 -5
- package/package.json +3 -3
- package/src/components/calendar/calendar.vue +62 -64
- package/src/components/combobox/combobox-root.vue +9 -5
- package/src/components/command/command-root.vue +10 -9
- package/src/components/digit-input/digit-input.vue +10 -11
- package/src/components/dropdown-menu/dropdown-menu.vue +9 -8
- package/src/components/radio-group/radio-group.vue +9 -10
- package/src/components/range-calendar/range-calendar.vue +63 -65
- package/src/components/scroll-area/scroll-area.vue +14 -15
- package/src/components/segmented-control/segmented-control.vue +20 -21
- package/src/components/select/select.vue +9 -8
- package/src/components/slider/slider.vue +16 -17
- package/src/components/tab-menu/tab-menu.vue +9 -10
- package/src/composables/use-direction.ts +6 -6
|
@@ -36,15 +36,18 @@ var select_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
36
36
|
const emits = __emit;
|
|
37
37
|
const delegatedProps = require_use_delegated_props.useDelegatedProps(props, "class");
|
|
38
38
|
const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(delegatedProps, emits);
|
|
39
|
-
const
|
|
39
|
+
const dir = require_use_direction.useDirection(() => props.dir);
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(
|
|
42
|
-
|
|
41
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_BubbleSelect.SelectRoot_default), (0, vue.mergeProps)((0, vue.unref)(forwarded), {
|
|
42
|
+
class: (0, vue.unref)(require_clsx.clsx)("celeste-select", props.class),
|
|
43
|
+
dir: (0, vue.unref)(dir)
|
|
44
|
+
}), {
|
|
45
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_ConfigProvider.ConfigProvider_default), { dir: (0, vue.unref)(dir) }, {
|
|
43
46
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
44
47
|
_: 3
|
|
45
|
-
},
|
|
48
|
+
}, 8, ["dir"])]),
|
|
46
49
|
_: 3
|
|
47
|
-
},
|
|
50
|
+
}, 16, ["class", "dir"]);
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
});
|
|
@@ -3,7 +3,6 @@ const require_clamp = require("./clamp.cjs");
|
|
|
3
3
|
const require_createContext = require("./createContext.cjs");
|
|
4
4
|
const require_dist = require("./dist2.cjs");
|
|
5
5
|
const require_Primitive = require("./Primitive.cjs");
|
|
6
|
-
const require_ConfigProvider = require("./ConfigProvider.cjs");
|
|
7
6
|
const require_useDirection = require("./useDirection.cjs");
|
|
8
7
|
const require_useFormControl = require("./useFormControl.cjs");
|
|
9
8
|
const require_useForwardExpose = require("./useForwardExpose.cjs");
|
|
@@ -786,23 +785,23 @@ var slider_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
786
785
|
const emits = __emit;
|
|
787
786
|
const delegatedProps = require_use_delegated_props.useDelegatedProps(props, "class");
|
|
788
787
|
const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(delegatedProps, emits);
|
|
789
|
-
const
|
|
788
|
+
const dir = require_use_direction.useDirection(() => props.dir);
|
|
790
789
|
return (_ctx, _cache) => {
|
|
791
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(SliderThumb_default), {
|
|
798
|
-
key,
|
|
799
|
-
class: "celeste-slider-thumb"
|
|
800
|
-
});
|
|
801
|
-
}), 128))]),
|
|
790
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(SliderRoot_default), (0, vue.mergeProps)((0, vue.unref)(forwarded), {
|
|
791
|
+
class: (0, vue.unref)(require_clsx.clsx)("celeste-slider", props.class),
|
|
792
|
+
dir: (0, vue.unref)(dir)
|
|
793
|
+
}), {
|
|
794
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(SliderTrack_default), { class: "celeste-slider-track" }, {
|
|
795
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(SliderRange_default), { class: "celeste-slider-range" })]),
|
|
802
796
|
_: 1
|
|
803
|
-
},
|
|
797
|
+
}), ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.modelValue, (_, key) => {
|
|
798
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(SliderThumb_default), {
|
|
799
|
+
key,
|
|
800
|
+
class: "celeste-slider-thumb"
|
|
801
|
+
});
|
|
802
|
+
}), 128))]),
|
|
804
803
|
_: 1
|
|
805
|
-
},
|
|
804
|
+
}, 16, ["class", "dir"]);
|
|
806
805
|
};
|
|
807
806
|
}
|
|
808
807
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
|
|
2
|
-
const require_ConfigProvider = require("./ConfigProvider.cjs");
|
|
3
2
|
const require_useForwardPropsEmits = require("./useForwardPropsEmits.cjs");
|
|
4
3
|
const require_TabsRoot = require("./TabsRoot.cjs");
|
|
5
4
|
const require_use_direction = require("../use-direction.cjs");
|
|
@@ -21,21 +20,21 @@ var tab_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue
|
|
|
21
20
|
setup(__props, { emit: __emit }) {
|
|
22
21
|
const props = __props;
|
|
23
22
|
const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(props, __emit);
|
|
24
|
-
const
|
|
23
|
+
const dir = require_use_direction.useDirection(() => props.dir);
|
|
25
24
|
return (_ctx, _cache) => {
|
|
26
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
25
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_TabsRoot.TabsRoot_default), (0, vue.mergeProps)((0, vue.unref)(forwarded), {
|
|
26
|
+
class: "celeste-tab-menu-root",
|
|
27
|
+
dir: (0, vue.unref)(dir)
|
|
28
|
+
}), {
|
|
29
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true)]),
|
|
31
30
|
_: 3
|
|
32
|
-
},
|
|
31
|
+
}, 16, ["dir"]);
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
//#endregion
|
|
37
36
|
//#region src/components/tab-menu/tab-menu.vue
|
|
38
|
-
var tab_menu_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(tab_menu_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
37
|
+
var tab_menu_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(tab_menu_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0965db3b"]]);
|
|
39
38
|
//#endregion
|
|
40
39
|
Object.defineProperty(exports, "tab_menu_default", {
|
|
41
40
|
enumerable: true,
|
|
@@ -51,15 +51,18 @@ var command_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
51
51
|
return delegated;
|
|
52
52
|
});
|
|
53
53
|
const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(delegatedProps, emits);
|
|
54
|
-
const
|
|
54
|
+
const dir = require_use_direction.useDirection(() => props.dir);
|
|
55
55
|
return (_ctx, _cache) => {
|
|
56
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(
|
|
57
|
-
|
|
56
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_ComboboxRoot.ComboboxRoot_default), (0, vue.mergeProps)((0, vue.unref)(forwarded), {
|
|
57
|
+
class: ["celeste-command-root", props.class],
|
|
58
|
+
dir: (0, vue.unref)(dir)
|
|
59
|
+
}), {
|
|
60
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_ConfigProvider.ConfigProvider_default), { dir: (0, vue.unref)(dir) }, {
|
|
58
61
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
59
62
|
_: 3
|
|
60
|
-
},
|
|
63
|
+
}, 8, ["dir"])]),
|
|
61
64
|
_: 3
|
|
62
|
-
},
|
|
65
|
+
}, 16, ["class", "dir"]);
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
});
|
|
@@ -14,18 +14,18 @@ function observeDocument() {
|
|
|
14
14
|
function documentDirection() {
|
|
15
15
|
return typeof document !== "undefined" && document.documentElement.dir === "rtl" ? "rtl" : "ltr";
|
|
16
16
|
}
|
|
17
|
-
function useDirection() {
|
|
17
|
+
function useDirection(override) {
|
|
18
18
|
const instance = (0, vue.getCurrentInstance)();
|
|
19
|
-
const
|
|
19
|
+
const resolved = (0, vue.ref)(documentDirection());
|
|
20
20
|
observeDocument();
|
|
21
21
|
function read() {
|
|
22
22
|
const node = instance?.vnode.el;
|
|
23
23
|
const element = node instanceof HTMLElement ? node : node?.parentElement;
|
|
24
|
-
|
|
24
|
+
resolved.value = element ? getComputedStyle(element).direction === "rtl" ? "rtl" : "ltr" : documentDirection();
|
|
25
25
|
}
|
|
26
26
|
(0, vue.onMounted)(read);
|
|
27
27
|
(0, vue.watch)(revision, read);
|
|
28
|
-
return
|
|
28
|
+
return (0, vue.computed)(() => (0, vue.toValue)(override) ?? resolved.value);
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
31
|
exports.useDirection = useDirection;
|
|
@@ -3,9 +3,9 @@ import { HTMLAttributes } from 'vue';
|
|
|
3
3
|
type __VLS_Props = RadioGroupRootProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
"update:modelValue": (payload: import('reka-ui').AcceptableValue) => any;
|
|
@@ -3,9 +3,9 @@ import { HTMLAttributes } from 'vue';
|
|
|
3
3
|
type __VLS_Props = ScrollAreaRootProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_14: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_14) => any;
|
|
9
9
|
};
|
|
10
10
|
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>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,9 +3,9 @@ import { HTMLAttributes } from 'vue';
|
|
|
3
3
|
type __VLS_Props = Omit<ToggleGroupRootProps, 'type'> & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_9: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_9) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
"update:modelValue": (payload: import('reka-ui').AcceptableValue | import('reka-ui').AcceptableValue[]) => any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TabsRootProps } from 'reka-ui';
|
|
2
2
|
type __VLS_Props = TabsRootProps;
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_8: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_8) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (payload: import('reka-ui').StringOrNumber) => any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Direction } from 'reka-ui';
|
|
2
|
-
import {
|
|
3
|
-
export declare function useDirection():
|
|
2
|
+
import { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
3
|
+
export declare function useDirection(override?: MaybeRefOrGetter<Direction | undefined>): ComputedRef<Direction>;
|
|
@@ -3,7 +3,6 @@ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-hel
|
|
|
3
3
|
import { t as createContext } from "./createContext.js";
|
|
4
4
|
import { p as useVModel } from "./dist2.js";
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
|
-
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
7
6
|
import { a as handleCalendarInitialFocus, d as toDate, g as $ad063034c8620db8$export$aa8b41735afcabd2, h as $ad063034c8620db8$export$a18c89cbd24170ff, i as getWeekStartsOn, m as $ad063034c8620db8$export$91b62ebf2ba703ee, n as useCalendarState, p as $ad063034c8620db8$export$629b0a497aa65267, s as getDefaultDate, t as useCalendar, v as $ad063034c8620db8$export$ea39ec197993aef0 } from "./useCalendar.js";
|
|
8
7
|
import { t as useDirection } from "./useDirection.js";
|
|
9
8
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
@@ -837,7 +836,7 @@ var calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
837
836
|
const emits = __emit;
|
|
838
837
|
const delegatedProps = useDelegatedProps(props, ["class", "markedDates"]);
|
|
839
838
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
840
|
-
const
|
|
839
|
+
const dir = useDirection$1(() => props.dir);
|
|
841
840
|
function isMarked(date) {
|
|
842
841
|
return props.markedDates?.some((marked) => $ad063034c8620db8$export$91b62ebf2ba703ee(marked, date)) ?? false;
|
|
843
842
|
}
|
|
@@ -845,85 +844,85 @@ var calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
845
844
|
return /^[a-z]/i.test(day.trim()) ? day.slice(0, 2) : day;
|
|
846
845
|
}
|
|
847
846
|
return (_ctx, _cache) => {
|
|
848
|
-
return openBlock(), createBlock(unref(
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}),
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
})
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
_: 2
|
|
880
|
-
}, 1024);
|
|
881
|
-
}), 128))]),
|
|
882
|
-
_: 2
|
|
883
|
-
}, 1024)]),
|
|
884
|
-
_: 2
|
|
885
|
-
}, 1024), createVNode(unref(CalendarGridBody_default), { class: "celeste-calendar-body" }, {
|
|
886
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
|
|
887
|
-
return openBlock(), createBlock(unref(CalendarGridRow_default), {
|
|
888
|
-
key: `week-${index}`,
|
|
889
|
-
class: "celeste-calendar-week"
|
|
847
|
+
return openBlock(), createBlock(unref(CalendarRoot_default), mergeProps(unref(forwarded), {
|
|
848
|
+
class: unref(clsx)("celeste-calendar", props.class),
|
|
849
|
+
dir: unref(dir)
|
|
850
|
+
}), {
|
|
851
|
+
default: withCtx(({ weekDays, grid }) => [createElementVNode("div", _hoisted_1, [
|
|
852
|
+
createVNode(unref(CalendarPrev_default), { "as-child": "" }, {
|
|
853
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("button", {
|
|
854
|
+
type: "button",
|
|
855
|
+
class: "celeste-calendar-nav"
|
|
856
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-left-s-line" })], -1)])]),
|
|
857
|
+
_: 1
|
|
858
|
+
}),
|
|
859
|
+
createVNode(unref(CalendarHeading_default), { class: "celeste-calendar-heading" }),
|
|
860
|
+
createVNode(unref(CalendarNext_default), { "as-child": "" }, {
|
|
861
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("button", {
|
|
862
|
+
type: "button",
|
|
863
|
+
class: "celeste-calendar-nav"
|
|
864
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-right-s-line" })], -1)])]),
|
|
865
|
+
_: 1
|
|
866
|
+
})
|
|
867
|
+
]), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
|
|
868
|
+
return openBlock(), createBlock(unref(CalendarGrid_default), {
|
|
869
|
+
key: month.value.toString(),
|
|
870
|
+
class: "celeste-calendar-grid"
|
|
871
|
+
}, {
|
|
872
|
+
default: withCtx(() => [createVNode(unref(CalendarGridHead_default), null, {
|
|
873
|
+
default: withCtx(() => [createVNode(unref(CalendarGridRow_default), { class: "celeste-calendar-week" }, {
|
|
874
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
|
|
875
|
+
return openBlock(), createBlock(unref(CalendarHeadCell_default), {
|
|
876
|
+
key: day,
|
|
877
|
+
class: "celeste-calendar-weekday"
|
|
890
878
|
}, {
|
|
891
|
-
default: withCtx(() => [(
|
|
892
|
-
return openBlock(), createBlock(unref(CalendarCell_default), {
|
|
893
|
-
key: weekDate.toString(),
|
|
894
|
-
date: weekDate,
|
|
895
|
-
class: "celeste-calendar-cell"
|
|
896
|
-
}, {
|
|
897
|
-
default: withCtx(() => [createVNode(unref(CalendarCellTrigger_default), {
|
|
898
|
-
day: weekDate,
|
|
899
|
-
month: month.value,
|
|
900
|
-
class: "celeste-calendar-day",
|
|
901
|
-
"data-marked": isMarked(weekDate) ? "" : void 0
|
|
902
|
-
}, {
|
|
903
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3, toDisplayString(weekDate.day), 1)]),
|
|
904
|
-
_: 2
|
|
905
|
-
}, 1032, [
|
|
906
|
-
"day",
|
|
907
|
-
"month",
|
|
908
|
-
"data-marked"
|
|
909
|
-
])]),
|
|
910
|
-
_: 2
|
|
911
|
-
}, 1032, ["date"]);
|
|
912
|
-
}), 128))]),
|
|
879
|
+
default: withCtx(() => [createTextVNode(toDisplayString(weekdayLabel(day)), 1)]),
|
|
913
880
|
_: 2
|
|
914
881
|
}, 1024);
|
|
915
882
|
}), 128))]),
|
|
916
883
|
_: 2
|
|
917
884
|
}, 1024)]),
|
|
918
885
|
_: 2
|
|
919
|
-
}, 1024)
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
886
|
+
}, 1024), createVNode(unref(CalendarGridBody_default), { class: "celeste-calendar-body" }, {
|
|
887
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
|
|
888
|
+
return openBlock(), createBlock(unref(CalendarGridRow_default), {
|
|
889
|
+
key: `week-${index}`,
|
|
890
|
+
class: "celeste-calendar-week"
|
|
891
|
+
}, {
|
|
892
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
|
|
893
|
+
return openBlock(), createBlock(unref(CalendarCell_default), {
|
|
894
|
+
key: weekDate.toString(),
|
|
895
|
+
date: weekDate,
|
|
896
|
+
class: "celeste-calendar-cell"
|
|
897
|
+
}, {
|
|
898
|
+
default: withCtx(() => [createVNode(unref(CalendarCellTrigger_default), {
|
|
899
|
+
day: weekDate,
|
|
900
|
+
month: month.value,
|
|
901
|
+
class: "celeste-calendar-day",
|
|
902
|
+
"data-marked": isMarked(weekDate) ? "" : void 0
|
|
903
|
+
}, {
|
|
904
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3, toDisplayString(weekDate.day), 1)]),
|
|
905
|
+
_: 2
|
|
906
|
+
}, 1032, [
|
|
907
|
+
"day",
|
|
908
|
+
"month",
|
|
909
|
+
"data-marked"
|
|
910
|
+
])]),
|
|
911
|
+
_: 2
|
|
912
|
+
}, 1032, ["date"]);
|
|
913
|
+
}), 128))]),
|
|
914
|
+
_: 2
|
|
915
|
+
}, 1024);
|
|
916
|
+
}), 128))]),
|
|
917
|
+
_: 2
|
|
918
|
+
}, 1024)]),
|
|
919
|
+
_: 2
|
|
920
|
+
}, 1024);
|
|
921
|
+
}), 128))])]),
|
|
923
922
|
_: 1
|
|
924
|
-
},
|
|
923
|
+
}, 16, ["class", "dir"]);
|
|
925
924
|
};
|
|
926
925
|
}
|
|
927
|
-
}), [["__scopeId", "data-v-
|
|
926
|
+
}), [["__scopeId", "data-v-8b6a5725"]]);
|
|
928
927
|
//#endregion
|
|
929
928
|
export { calendar_default as t };
|
|
@@ -37,17 +37,17 @@ var combobox_root_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
37
37
|
setup(__props, { emit: __emit }) {
|
|
38
38
|
const props = __props;
|
|
39
39
|
const forwarded = useForwardPropsEmits(props, __emit);
|
|
40
|
-
const
|
|
40
|
+
const dir = useDirection(() => props.dir);
|
|
41
41
|
return (_ctx, _cache) => {
|
|
42
|
-
return openBlock(), createBlock(unref(
|
|
43
|
-
default: withCtx(() => [createVNode(unref(
|
|
42
|
+
return openBlock(), createBlock(unref(ComboboxRoot_default), mergeProps({ class: "celeste-combobox-root" }, unref(forwarded), { dir: unref(dir) }), {
|
|
43
|
+
default: withCtx(() => [createVNode(unref(ConfigProvider_default), { dir: unref(dir) }, {
|
|
44
44
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
45
45
|
_: 3
|
|
46
|
-
},
|
|
46
|
+
}, 8, ["dir"])]),
|
|
47
47
|
_: 3
|
|
48
|
-
},
|
|
48
|
+
}, 16, ["dir"]);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
}), [["__scopeId", "data-v-
|
|
51
|
+
}), [["__scopeId", "data-v-bfdab687"]]);
|
|
52
52
|
//#endregion
|
|
53
53
|
export { combobox_root_default as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
3
|
import { f as reactiveOmit } from "./dist.js";
|
|
4
|
-
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
5
4
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
6
5
|
import { t as PinInputRoot_default } from "./PinInputRoot.js";
|
|
7
6
|
import { useDirection } from "../use-direction.js";
|
|
8
|
-
import { createBlock,
|
|
7
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
9
8
|
//#endregion
|
|
10
9
|
//#region src/components/digit-input/digit-input.vue
|
|
11
10
|
var digit_input_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -42,20 +41,22 @@ var digit_input_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
42
41
|
const emits = __emit;
|
|
43
42
|
const delegatedProps = reactiveOmit(props, "class", "hasError");
|
|
44
43
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
45
|
-
const
|
|
44
|
+
const dir = useDirection(() => props.dir);
|
|
46
45
|
return (_ctx, _cache) => {
|
|
47
|
-
return openBlock(), createBlock(unref(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_: 3
|
|
54
|
-
}, 16, ["class", "data-error"])]),
|
|
46
|
+
return openBlock(), createBlock(unref(PinInputRoot_default), mergeProps(unref(forwarded), {
|
|
47
|
+
class: unref(clsx)("celeste-digit-input", props.class),
|
|
48
|
+
"data-error": __props.hasError,
|
|
49
|
+
dir: unref(dir)
|
|
50
|
+
}), {
|
|
51
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
55
52
|
_: 3
|
|
56
|
-
},
|
|
53
|
+
}, 16, [
|
|
54
|
+
"class",
|
|
55
|
+
"data-error",
|
|
56
|
+
"dir"
|
|
57
|
+
]);
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
}), [["__scopeId", "data-v-
|
|
60
|
+
}), [["__scopeId", "data-v-12ddf69b"]]);
|
|
60
61
|
//#endregion
|
|
61
62
|
export { digit_input_default as t };
|
|
@@ -29,17 +29,20 @@ var dropdown_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
29
29
|
const emits = __emit;
|
|
30
30
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
31
31
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
32
|
-
const
|
|
32
|
+
const dir = useDirection(() => props.dir);
|
|
33
33
|
return (_ctx, _cache) => {
|
|
34
|
-
return openBlock(), createBlock(unref(
|
|
35
|
-
|
|
34
|
+
return openBlock(), createBlock(unref(DropdownMenuRoot_default), mergeProps(unref(forwarded), {
|
|
35
|
+
class: unref(clsx)("celeste-dropdown-menu", props.class),
|
|
36
|
+
dir: unref(dir)
|
|
37
|
+
}), {
|
|
38
|
+
default: withCtx(() => [createVNode(unref(ConfigProvider_default), { dir: unref(dir) }, {
|
|
36
39
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
37
40
|
_: 3
|
|
38
|
-
},
|
|
41
|
+
}, 8, ["dir"])]),
|
|
39
42
|
_: 3
|
|
40
|
-
},
|
|
43
|
+
}, 16, ["class", "dir"]);
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
|
-
}), [["__scopeId", "data-v-
|
|
46
|
+
}), [["__scopeId", "data-v-154e9b38"]]);
|
|
44
47
|
//#endregion
|
|
45
48
|
export { dropdown_menu_default as t };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
|
-
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
3
2
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
3
|
import { t as RadioGroupRoot_default } from "./RadioGroupRoot.js";
|
|
5
4
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
6
5
|
import { useDirection } from "../use-direction.js";
|
|
7
|
-
import { createBlock,
|
|
6
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
8
7
|
//#endregion
|
|
9
8
|
//#region src/components/radio-group/radio-group.vue
|
|
10
9
|
var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
@@ -34,15 +33,12 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
34
33
|
const emits = __emit;
|
|
35
34
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
36
35
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
37
|
-
const
|
|
36
|
+
const dir = useDirection(() => props.dir);
|
|
38
37
|
return (_ctx, _cache) => {
|
|
39
|
-
return openBlock(), createBlock(unref(
|
|
40
|
-
default: withCtx(() => [
|
|
41
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
42
|
-
_: 3
|
|
43
|
-
}, 16, ["class"])]),
|
|
38
|
+
return openBlock(), createBlock(unref(RadioGroupRoot_default), mergeProps({ class: unref(clsx)("celeste-radio-wrapper", props.class) }, unref(forwarded), { dir: unref(dir) }), {
|
|
39
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
44
40
|
_: 3
|
|
45
|
-
},
|
|
41
|
+
}, 16, ["class", "dir"]);
|
|
46
42
|
};
|
|
47
43
|
}
|
|
48
44
|
});
|