@youcan/celeste 0.12.0 → 0.13.0
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 +148 -158
- package/dist/cjs/chunks/ConfigProvider.cjs +58 -1
- package/dist/cjs/chunks/calendar.cjs +73 -67
- package/dist/cjs/chunks/combobox-root.cjs +12 -5
- package/dist/cjs/chunks/digit-input.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu.cjs +10 -4
- package/dist/cjs/chunks/radio-group.cjs +9 -3
- package/dist/cjs/chunks/range-calendar.cjs +73 -67
- package/dist/cjs/chunks/scroll-area.cjs +18 -12
- package/dist/cjs/chunks/scroll-bar.cjs +1 -0
- package/dist/cjs/chunks/segmented-control.cjs +23 -17
- package/dist/cjs/chunks/select.cjs +9 -3
- package/dist/cjs/chunks/slider.cjs +16 -10
- package/dist/cjs/chunks/tab-menu-list.cjs +3 -3
- package/dist/cjs/chunks/tab-menu.cjs +12 -5
- package/dist/cjs/chunks/text-input.cjs +1 -1
- package/dist/cjs/command-root.cjs +9 -3
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/use-direction.cjs +31 -0
- package/dist/cjs/use-tab-observer.cjs +1 -1
- package/dist/components/combobox/combobox-root.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -2
- 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/select/select.d.ts +2 -2
- package/dist/components/tab-menu/tab-menu.d.ts +2 -2
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/use-direction.d.ts +3 -0
- package/dist/es/chunks/ConfigProvider.js +53 -2
- package/dist/es/chunks/FocusScope.js +1 -1
- package/dist/es/chunks/Teleport.js +1 -1
- package/dist/es/chunks/calendar.js +73 -67
- package/dist/es/chunks/combobox-root.js +13 -6
- package/dist/es/chunks/digit-input.js +14 -8
- package/dist/es/chunks/dropdown-menu.js +11 -5
- package/dist/es/chunks/radio-group.js +10 -4
- package/dist/es/chunks/range-calendar.js +73 -67
- package/dist/es/chunks/scroll-area.js +18 -12
- package/dist/es/chunks/scroll-bar.js +1 -0
- package/dist/es/chunks/segmented-control.js +24 -18
- package/dist/es/chunks/select.js +10 -4
- package/dist/es/chunks/slider.js +16 -10
- package/dist/es/chunks/tab-menu-list.js +3 -3
- package/dist/es/chunks/tab-menu.js +13 -6
- package/dist/es/chunks/text-input.js +1 -1
- package/dist/es/chunks/useDirection.js +1 -1
- package/dist/es/chunks/useId.js +1 -1
- package/dist/es/chunks/useLocale.js +1 -1
- package/dist/es/chunks/useNonce.js +1 -1
- package/dist/es/command-root.js +10 -4
- package/dist/es/index.js +2 -1
- package/dist/es/use-direction.js +30 -0
- package/dist/es/use-tab-observer.js +1 -1
- package/package.json +3 -3
- package/src/components/calendar/calendar.vue +66 -60
- package/src/components/combobox/combobox-root.vue +9 -4
- package/src/components/command/command-root.vue +13 -8
- package/src/components/digit-input/digit-input.vue +13 -8
- package/src/components/dropdown-menu/dropdown-menu.vue +12 -7
- package/src/components/radio-group/radio-group.vue +12 -7
- package/src/components/range-calendar/range-calendar.vue +67 -61
- package/src/components/scroll-area/scroll-area.vue +17 -18
- package/src/components/segmented-control/segmented-control.vue +28 -23
- package/src/components/select/select.vue +12 -7
- package/src/components/slider/slider.vue +19 -14
- package/src/components/tab-menu/tab-menu-list.vue +8 -8
- package/src/components/tab-menu/tab-menu.vue +12 -4
- package/src/components/text-input/text-input.vue +11 -29
- package/src/composables/index.ts +1 -0
- package/src/composables/use-direction.ts +40 -0
- package/src/composables/use-tab-observer.ts +1 -2
|
@@ -3,6 +3,7 @@ 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";
|
|
6
7
|
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";
|
|
7
8
|
import { t as useDirection } from "./useDirection.js";
|
|
8
9
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
@@ -10,6 +11,7 @@ import { t as useKbd } from "./useKbd.js";
|
|
|
10
11
|
import { t as useLocale } from "./useLocale.js";
|
|
11
12
|
import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
|
|
12
13
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
14
|
+
import { useDirection as useDirection$1 } from "../use-direction.js";
|
|
13
15
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onMounted, openBlock, renderList, renderSlot, toDisplayString, toRefs, unref, watch, withCtx, withKeys } from "vue";
|
|
14
16
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Calendar/CalendarRoot.js
|
|
15
17
|
var _hoisted_1$1 = { style: {
|
|
@@ -835,6 +837,7 @@ var calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
835
837
|
const emits = __emit;
|
|
836
838
|
const delegatedProps = useDelegatedProps(props, ["class", "markedDates"]);
|
|
837
839
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
840
|
+
const direction = useDirection$1();
|
|
838
841
|
function isMarked(date) {
|
|
839
842
|
return props.markedDates?.some((marked) => $ad063034c8620db8$export$91b62ebf2ba703ee(marked, date)) ?? false;
|
|
840
843
|
}
|
|
@@ -842,82 +845,85 @@ var calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
842
845
|
return /^[a-z]/i.test(day.trim()) ? day.slice(0, 2) : day;
|
|
843
846
|
}
|
|
844
847
|
return (_ctx, _cache) => {
|
|
845
|
-
return openBlock(), createBlock(unref(
|
|
846
|
-
default: withCtx((
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
default: withCtx(() => [createVNode(unref(
|
|
869
|
-
default: withCtx(() => [(
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
848
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
849
|
+
default: withCtx(() => [createVNode(unref(CalendarRoot_default), mergeProps(unref(forwarded), { class: unref(clsx)("celeste-calendar", props.class) }), {
|
|
850
|
+
default: withCtx(({ weekDays, grid }) => [createElementVNode("div", _hoisted_1, [
|
|
851
|
+
createVNode(unref(CalendarPrev_default), { "as-child": "" }, {
|
|
852
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("button", {
|
|
853
|
+
type: "button",
|
|
854
|
+
class: "celeste-calendar-nav"
|
|
855
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-left-s-line" })], -1)])]),
|
|
856
|
+
_: 1
|
|
857
|
+
}),
|
|
858
|
+
createVNode(unref(CalendarHeading_default), { class: "celeste-calendar-heading" }),
|
|
859
|
+
createVNode(unref(CalendarNext_default), { "as-child": "" }, {
|
|
860
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("button", {
|
|
861
|
+
type: "button",
|
|
862
|
+
class: "celeste-calendar-nav"
|
|
863
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-right-s-line" })], -1)])]),
|
|
864
|
+
_: 1
|
|
865
|
+
})
|
|
866
|
+
]), createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
|
|
867
|
+
return openBlock(), createBlock(unref(CalendarGrid_default), {
|
|
868
|
+
key: month.value.toString(),
|
|
869
|
+
class: "celeste-calendar-grid"
|
|
870
|
+
}, {
|
|
871
|
+
default: withCtx(() => [createVNode(unref(CalendarGridHead_default), null, {
|
|
872
|
+
default: withCtx(() => [createVNode(unref(CalendarGridRow_default), { class: "celeste-calendar-week" }, {
|
|
873
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
|
|
874
|
+
return openBlock(), createBlock(unref(CalendarHeadCell_default), {
|
|
875
|
+
key: day,
|
|
876
|
+
class: "celeste-calendar-weekday"
|
|
877
|
+
}, {
|
|
878
|
+
default: withCtx(() => [createTextVNode(toDisplayString(weekdayLabel(day)), 1)]),
|
|
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"
|
|
873
890
|
}, {
|
|
874
|
-
default: withCtx(() => [
|
|
891
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
|
|
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))]),
|
|
875
913
|
_: 2
|
|
876
914
|
}, 1024);
|
|
877
915
|
}), 128))]),
|
|
878
916
|
_: 2
|
|
879
917
|
}, 1024)]),
|
|
880
918
|
_: 2
|
|
881
|
-
}, 1024)
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
class: "celeste-calendar-week"
|
|
886
|
-
}, {
|
|
887
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
|
|
888
|
-
return openBlock(), createBlock(unref(CalendarCell_default), {
|
|
889
|
-
key: weekDate.toString(),
|
|
890
|
-
date: weekDate,
|
|
891
|
-
class: "celeste-calendar-cell"
|
|
892
|
-
}, {
|
|
893
|
-
default: withCtx(() => [createVNode(unref(CalendarCellTrigger_default), {
|
|
894
|
-
day: weekDate,
|
|
895
|
-
month: month.value,
|
|
896
|
-
class: "celeste-calendar-day",
|
|
897
|
-
"data-marked": isMarked(weekDate) ? "" : void 0
|
|
898
|
-
}, {
|
|
899
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3, toDisplayString(weekDate.day), 1)]),
|
|
900
|
-
_: 2
|
|
901
|
-
}, 1032, [
|
|
902
|
-
"day",
|
|
903
|
-
"month",
|
|
904
|
-
"data-marked"
|
|
905
|
-
])]),
|
|
906
|
-
_: 2
|
|
907
|
-
}, 1032, ["date"]);
|
|
908
|
-
}), 128))]),
|
|
909
|
-
_: 2
|
|
910
|
-
}, 1024);
|
|
911
|
-
}), 128))]),
|
|
912
|
-
_: 2
|
|
913
|
-
}, 1024)]),
|
|
914
|
-
_: 2
|
|
915
|
-
}, 1024);
|
|
916
|
-
}), 128))])]),
|
|
919
|
+
}, 1024);
|
|
920
|
+
}), 128))])]),
|
|
921
|
+
_: 1
|
|
922
|
+
}, 16, ["class"])]),
|
|
917
923
|
_: 1
|
|
918
|
-
},
|
|
924
|
+
}, 8, ["dir"]);
|
|
919
925
|
};
|
|
920
926
|
}
|
|
921
|
-
}), [["__scopeId", "data-v-
|
|
927
|
+
}), [["__scopeId", "data-v-f067ca68"]]);
|
|
922
928
|
//#endregion
|
|
923
929
|
export { calendar_default as t };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { t as ComboboxRoot_default } from "./ComboboxRoot.js";
|
|
3
|
+
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
3
4
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
|
-
import {
|
|
5
|
+
import { useDirection } from "../use-direction.js";
|
|
6
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
7
|
//#endregion
|
|
6
8
|
//#region src/components/combobox/combobox-root.vue
|
|
7
9
|
var combobox_root_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -33,14 +35,19 @@ var combobox_root_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
33
35
|
"update:open"
|
|
34
36
|
],
|
|
35
37
|
setup(__props, { emit: __emit }) {
|
|
36
|
-
const
|
|
38
|
+
const props = __props;
|
|
39
|
+
const forwarded = useForwardPropsEmits(props, __emit);
|
|
40
|
+
const direction = useDirection();
|
|
37
41
|
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createBlock(unref(
|
|
39
|
-
default: withCtx(() => [
|
|
42
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
43
|
+
default: withCtx(() => [createVNode(unref(ComboboxRoot_default), mergeProps({ class: "celeste-combobox-root" }, unref(forwarded)), {
|
|
44
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
45
|
+
_: 3
|
|
46
|
+
}, 16)]),
|
|
40
47
|
_: 3
|
|
41
|
-
},
|
|
48
|
+
}, 8, ["dir"]);
|
|
42
49
|
};
|
|
43
50
|
}
|
|
44
|
-
}), [["__scopeId", "data-v-
|
|
51
|
+
}), [["__scopeId", "data-v-7e1e8d15"]]);
|
|
45
52
|
//#endregion
|
|
46
53
|
export { combobox_root_default as t };
|
|
@@ -1,9 +1,11 @@
|
|
|
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";
|
|
4
5
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
5
6
|
import { t as PinInputRoot_default } from "./PinInputRoot.js";
|
|
6
|
-
import {
|
|
7
|
+
import { useDirection } from "../use-direction.js";
|
|
8
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
9
|
//#endregion
|
|
8
10
|
//#region src/components/digit-input/digit-input.vue
|
|
9
11
|
var digit_input_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -40,16 +42,20 @@ var digit_input_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
40
42
|
const emits = __emit;
|
|
41
43
|
const delegatedProps = reactiveOmit(props, "class", "hasError");
|
|
42
44
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
45
|
+
const direction = useDirection();
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createBlock(unref(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
48
|
+
default: withCtx(() => [createVNode(unref(PinInputRoot_default), mergeProps(unref(forwarded), {
|
|
49
|
+
class: unref(clsx)("celeste-digit-input", props.class),
|
|
50
|
+
"data-error": __props.hasError
|
|
51
|
+
}), {
|
|
52
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
53
|
+
_: 3
|
|
54
|
+
}, 16, ["class", "data-error"])]),
|
|
49
55
|
_: 3
|
|
50
|
-
},
|
|
56
|
+
}, 8, ["dir"]);
|
|
51
57
|
};
|
|
52
58
|
}
|
|
53
|
-
}), [["__scopeId", "data-v-
|
|
59
|
+
}), [["__scopeId", "data-v-20a3fbb5"]]);
|
|
54
60
|
//#endregion
|
|
55
61
|
export { digit_input_default as t };
|
|
@@ -1,9 +1,11 @@
|
|
|
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
|
+
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
3
4
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
5
|
import { t as DropdownMenuRoot_default } from "./DropdownMenuRoot.js";
|
|
5
6
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
6
|
-
import {
|
|
7
|
+
import { useDirection } from "../use-direction.js";
|
|
8
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
9
|
//#endregion
|
|
8
10
|
//#region src/components/dropdown-menu/dropdown-menu.vue
|
|
9
11
|
var dropdown_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -27,13 +29,17 @@ var dropdown_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
27
29
|
const emits = __emit;
|
|
28
30
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
29
31
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
32
|
+
const direction = useDirection();
|
|
30
33
|
return (_ctx, _cache) => {
|
|
31
|
-
return openBlock(), createBlock(unref(
|
|
32
|
-
default: withCtx(() => [
|
|
34
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
35
|
+
default: withCtx(() => [createVNode(unref(DropdownMenuRoot_default), mergeProps(unref(forwarded), { class: unref(clsx)("celeste-dropdown-menu", props.class) }), {
|
|
36
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16, ["class"])]),
|
|
33
39
|
_: 3
|
|
34
|
-
},
|
|
40
|
+
}, 8, ["dir"]);
|
|
35
41
|
};
|
|
36
42
|
}
|
|
37
|
-
}), [["__scopeId", "data-v-
|
|
43
|
+
}), [["__scopeId", "data-v-fa4c1e84"]]);
|
|
38
44
|
//#endregion
|
|
39
45
|
export { dropdown_menu_default as t };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
2
3
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
3
4
|
import { t as RadioGroupRoot_default } from "./RadioGroupRoot.js";
|
|
4
5
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
5
|
-
import {
|
|
6
|
+
import { useDirection } from "../use-direction.js";
|
|
7
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
6
8
|
//#endregion
|
|
7
9
|
//#region src/components/radio-group/radio-group.vue
|
|
8
10
|
var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
@@ -32,11 +34,15 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
32
34
|
const emits = __emit;
|
|
33
35
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
34
36
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
37
|
+
const direction = useDirection();
|
|
35
38
|
return (_ctx, _cache) => {
|
|
36
|
-
return openBlock(), createBlock(unref(
|
|
37
|
-
default: withCtx(() => [
|
|
39
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
40
|
+
default: withCtx(() => [createVNode(unref(RadioGroupRoot_default), mergeProps({ class: unref(clsx)("celeste-radio-wrapper", props.class) }, unref(forwarded)), {
|
|
41
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 16, ["class"])]),
|
|
38
44
|
_: 3
|
|
39
|
-
},
|
|
45
|
+
}, 8, ["dir"]);
|
|
40
46
|
};
|
|
41
47
|
}
|
|
42
48
|
});
|
|
@@ -3,6 +3,7 @@ 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, s as useEventListener } from "./dist2.js";
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
|
+
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
6
7
|
import { a as handleCalendarInitialFocus, c as isBefore, d as toDate, f as $12a3c853105e5a70$export$ad991b66133851cf, g as $ad063034c8620db8$export$aa8b41735afcabd2, h as $ad063034c8620db8$export$a18c89cbd24170ff, i as getWeekStartsOn, l as isBetween, m as $ad063034c8620db8$export$91b62ebf2ba703ee, o as areAllDaysBetweenValid, p as $ad063034c8620db8$export$629b0a497aa65267, r as getDaysBetween, s as getDefaultDate, t as useCalendar, u as isBetweenInclusive, v as $ad063034c8620db8$export$ea39ec197993aef0 } from "./useCalendar.js";
|
|
7
8
|
import { t as useDirection } from "./useDirection.js";
|
|
8
9
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
@@ -10,6 +11,7 @@ import { t as useKbd } from "./useKbd.js";
|
|
|
10
11
|
import { t as useLocale } from "./useLocale.js";
|
|
11
12
|
import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
|
|
12
13
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
14
|
+
import { useDirection as useDirection$1 } from "../use-direction.js";
|
|
13
15
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toRefs, unref, watch, withCtx, withKeys } from "vue";
|
|
14
16
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/useRangeCalendar.js
|
|
15
17
|
function useRangeCalendarState(props) {
|
|
@@ -1078,6 +1080,7 @@ var range_calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
1078
1080
|
const emits = __emit;
|
|
1079
1081
|
const delegatedProps = useDelegatedProps(props, ["class", "markedDates"]);
|
|
1080
1082
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1083
|
+
const direction = useDirection$1();
|
|
1081
1084
|
const monthFormatter = computed(() => new $12a3c853105e5a70$export$ad991b66133851cf(props.locale ?? "en-US", {
|
|
1082
1085
|
month: "long",
|
|
1083
1086
|
year: "numeric"
|
|
@@ -1092,82 +1095,85 @@ var range_calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
1092
1095
|
return /^[a-z]/i.test(day.trim()) ? day.slice(0, 2) : day;
|
|
1093
1096
|
}
|
|
1094
1097
|
return (_ctx, _cache) => {
|
|
1095
|
-
return openBlock(), createBlock(unref(
|
|
1096
|
-
default: withCtx((
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
default: withCtx(() => [createVNode(unref(
|
|
1119
|
-
default: withCtx(() => [(
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1098
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
1099
|
+
default: withCtx(() => [createVNode(unref(RangeCalendarRoot_default), mergeProps(unref(forwarded), { class: unref(clsx)("celeste-range-calendar", props.class) }), {
|
|
1100
|
+
default: withCtx(({ weekDays, grid }) => [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
|
|
1101
|
+
return openBlock(), createElementBlock("div", {
|
|
1102
|
+
key: month.value.toString(),
|
|
1103
|
+
class: "celeste-range-calendar-month"
|
|
1104
|
+
}, [createElementVNode("div", _hoisted_2, [
|
|
1105
|
+
createVNode(unref(RangeCalendarPrev_default), { "as-child": "" }, {
|
|
1106
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("button", {
|
|
1107
|
+
type: "button",
|
|
1108
|
+
class: "celeste-range-calendar-nav"
|
|
1109
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-left-s-line" })], -1)])]),
|
|
1110
|
+
_: 1
|
|
1111
|
+
}),
|
|
1112
|
+
createElementVNode("span", _hoisted_3, toDisplayString(formatMonth(month.value)), 1),
|
|
1113
|
+
createVNode(unref(RangeCalendarNext_default), { "as-child": "" }, {
|
|
1114
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("button", {
|
|
1115
|
+
type: "button",
|
|
1116
|
+
class: "celeste-range-calendar-nav"
|
|
1117
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-right-s-line" })], -1)])]),
|
|
1118
|
+
_: 1
|
|
1119
|
+
})
|
|
1120
|
+
]), createVNode(unref(RangeCalendarGrid_default), { class: "celeste-range-calendar-grid" }, {
|
|
1121
|
+
default: withCtx(() => [createVNode(unref(RangeCalendarGridHead_default), null, {
|
|
1122
|
+
default: withCtx(() => [createVNode(unref(RangeCalendarGridRow_default), { class: "celeste-range-calendar-week" }, {
|
|
1123
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
|
|
1124
|
+
return openBlock(), createBlock(unref(RangeCalendarHeadCell_default), {
|
|
1125
|
+
key: day,
|
|
1126
|
+
class: "celeste-range-calendar-weekday"
|
|
1127
|
+
}, {
|
|
1128
|
+
default: withCtx(() => [createTextVNode(toDisplayString(weekdayLabel(day)), 1)]),
|
|
1129
|
+
_: 2
|
|
1130
|
+
}, 1024);
|
|
1131
|
+
}), 128))]),
|
|
1132
|
+
_: 2
|
|
1133
|
+
}, 1024)]),
|
|
1134
|
+
_: 2
|
|
1135
|
+
}, 1024), createVNode(unref(RangeCalendarGridBody_default), { class: "celeste-range-calendar-body" }, {
|
|
1136
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
|
|
1137
|
+
return openBlock(), createBlock(unref(RangeCalendarGridRow_default), {
|
|
1138
|
+
key: `week-${index}`,
|
|
1139
|
+
class: "celeste-range-calendar-week"
|
|
1123
1140
|
}, {
|
|
1124
|
-
default: withCtx(() => [
|
|
1141
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
|
|
1142
|
+
return openBlock(), createBlock(unref(RangeCalendarCell_default), {
|
|
1143
|
+
key: weekDate.toString(),
|
|
1144
|
+
date: weekDate,
|
|
1145
|
+
class: "celeste-range-calendar-cell"
|
|
1146
|
+
}, {
|
|
1147
|
+
default: withCtx(() => [createVNode(unref(RangeCalendarCellTrigger_default), {
|
|
1148
|
+
day: weekDate,
|
|
1149
|
+
month: month.value,
|
|
1150
|
+
class: "celeste-range-calendar-day",
|
|
1151
|
+
"data-marked": isMarked(weekDate) ? "" : void 0
|
|
1152
|
+
}, {
|
|
1153
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_4, toDisplayString(weekDate.day), 1)]),
|
|
1154
|
+
_: 2
|
|
1155
|
+
}, 1032, [
|
|
1156
|
+
"day",
|
|
1157
|
+
"month",
|
|
1158
|
+
"data-marked"
|
|
1159
|
+
])]),
|
|
1160
|
+
_: 2
|
|
1161
|
+
}, 1032, ["date"]);
|
|
1162
|
+
}), 128))]),
|
|
1125
1163
|
_: 2
|
|
1126
1164
|
}, 1024);
|
|
1127
1165
|
}), 128))]),
|
|
1128
1166
|
_: 2
|
|
1129
1167
|
}, 1024)]),
|
|
1130
1168
|
_: 2
|
|
1131
|
-
}, 1024)
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
class: "celeste-range-calendar-week"
|
|
1136
|
-
}, {
|
|
1137
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
|
|
1138
|
-
return openBlock(), createBlock(unref(RangeCalendarCell_default), {
|
|
1139
|
-
key: weekDate.toString(),
|
|
1140
|
-
date: weekDate,
|
|
1141
|
-
class: "celeste-range-calendar-cell"
|
|
1142
|
-
}, {
|
|
1143
|
-
default: withCtx(() => [createVNode(unref(RangeCalendarCellTrigger_default), {
|
|
1144
|
-
day: weekDate,
|
|
1145
|
-
month: month.value,
|
|
1146
|
-
class: "celeste-range-calendar-day",
|
|
1147
|
-
"data-marked": isMarked(weekDate) ? "" : void 0
|
|
1148
|
-
}, {
|
|
1149
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_4, toDisplayString(weekDate.day), 1)]),
|
|
1150
|
-
_: 2
|
|
1151
|
-
}, 1032, [
|
|
1152
|
-
"day",
|
|
1153
|
-
"month",
|
|
1154
|
-
"data-marked"
|
|
1155
|
-
])]),
|
|
1156
|
-
_: 2
|
|
1157
|
-
}, 1032, ["date"]);
|
|
1158
|
-
}), 128))]),
|
|
1159
|
-
_: 2
|
|
1160
|
-
}, 1024);
|
|
1161
|
-
}), 128))]),
|
|
1162
|
-
_: 2
|
|
1163
|
-
}, 1024)]),
|
|
1164
|
-
_: 2
|
|
1165
|
-
}, 1024)]);
|
|
1166
|
-
}), 128))])]),
|
|
1169
|
+
}, 1024)]);
|
|
1170
|
+
}), 128))])]),
|
|
1171
|
+
_: 1
|
|
1172
|
+
}, 16, ["class"])]),
|
|
1167
1173
|
_: 1
|
|
1168
|
-
},
|
|
1174
|
+
}, 8, ["dir"]);
|
|
1169
1175
|
};
|
|
1170
1176
|
}
|
|
1171
|
-
}), [["__scopeId", "data-v-
|
|
1177
|
+
}), [["__scopeId", "data-v-87d63238"]]);
|
|
1172
1178
|
//#endregion
|
|
1173
1179
|
export { range_calendar_default as t };
|
|
@@ -2,10 +2,12 @@ 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 { d as useResizeObserver } from "./dist2.js";
|
|
4
4
|
import { t as Primitive } from "./Primitive.js";
|
|
5
|
+
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
5
6
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
6
7
|
import { t as useNonce } from "./useNonce.js";
|
|
7
8
|
import { n as ScrollAreaRoot_default, r as injectScrollAreaRootContext, t as scroll_bar_default } from "./scroll-bar.js";
|
|
8
9
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
10
|
+
import { useDirection } from "../use-direction.js";
|
|
9
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeStyle, onMounted, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx } from "vue";
|
|
10
12
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaCornerImpl.js
|
|
11
13
|
var ScrollAreaCornerImpl_default = /* @__PURE__ */ defineComponent({
|
|
@@ -159,21 +161,25 @@ var scroll_area_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
159
161
|
setup(__props) {
|
|
160
162
|
const props = __props;
|
|
161
163
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
164
|
+
const direction = useDirection();
|
|
162
165
|
return (_ctx, _cache) => {
|
|
163
|
-
return openBlock(), createBlock(unref(
|
|
164
|
-
default: withCtx(() => [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
166
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
167
|
+
default: withCtx(() => [createVNode(unref(ScrollAreaRoot_default), mergeProps(unref(delegatedProps), { class: unref(clsx)("celeste-scroll-area", props.class) }), {
|
|
168
|
+
default: withCtx(() => [
|
|
169
|
+
createVNode(unref(ScrollAreaViewport_default), { class: "celeste-scroll-area-viewport" }, {
|
|
170
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
171
|
+
_: 3
|
|
172
|
+
}),
|
|
173
|
+
createVNode(scroll_bar_default),
|
|
174
|
+
createVNode(scroll_bar_default, { orientation: "horizontal" }),
|
|
175
|
+
createVNode(unref(ScrollAreaCorner_default))
|
|
176
|
+
]),
|
|
177
|
+
_: 3
|
|
178
|
+
}, 16, ["class"])]),
|
|
173
179
|
_: 3
|
|
174
|
-
},
|
|
180
|
+
}, 8, ["dir"]);
|
|
175
181
|
};
|
|
176
182
|
}
|
|
177
|
-
}), [["__scopeId", "data-v-
|
|
183
|
+
}), [["__scopeId", "data-v-1bb37e0a"]]);
|
|
178
184
|
//#endregion
|
|
179
185
|
export { scroll_area_default as t };
|
|
@@ -9,6 +9,7 @@ import { t as useDirection } from "./useDirection.js";
|
|
|
9
9
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
10
10
|
import { n as useStateMachine, t as Presence_default } from "./Presence.js";
|
|
11
11
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
12
|
+
import "../use-direction.js";
|
|
12
13
|
import "../use-chart-motion.js";
|
|
13
14
|
import "../use-locale.js";
|
|
14
15
|
import "../use-sidebar.js";
|
|
@@ -1,12 +1,14 @@
|
|
|
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
|
+
import { t as ConfigProvider_default } from "./ConfigProvider.js";
|
|
3
4
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
5
|
import { t as ToggleGroupRoot_default } from "./ToggleGroupRoot.js";
|
|
5
6
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
7
|
+
import { useDirection } from "../use-direction.js";
|
|
6
8
|
import { useTabObserver } from "../use-tab-observer.js";
|
|
7
|
-
import { createBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
9
|
+
import { createBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
8
10
|
//#region src/components/segmented-control/segmented-control.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var _hoisted_1 = ["
|
|
11
|
+
var _hoisted_1 = ["hidden"];
|
|
10
12
|
//#endregion
|
|
11
13
|
//#region src/components/segmented-control/segmented-control.vue
|
|
12
14
|
var segmented_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -37,26 +39,30 @@ var segmented_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
37
39
|
const emits = __emit;
|
|
38
40
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
39
41
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
42
|
+
const direction = useDirection();
|
|
40
43
|
const { listRef, indicator, ready } = useTabObserver("[data-state=\"on\"]");
|
|
41
44
|
return (_ctx, _cache) => {
|
|
42
|
-
return openBlock(), createBlock(unref(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
return openBlock(), createBlock(unref(ConfigProvider_default), { dir: props.dir ?? unref(direction) }, {
|
|
46
|
+
default: withCtx(() => [createVNode(unref(ToggleGroupRoot_default), mergeProps({
|
|
47
|
+
ref_key: "listRef",
|
|
48
|
+
ref: listRef,
|
|
49
|
+
class: unref(clsx)("celeste-segmented-control", props.class)
|
|
50
|
+
}, unref(forwarded), { type: "single" }), {
|
|
51
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true), createElementVNode("div", {
|
|
52
|
+
hidden: !unref(ready),
|
|
53
|
+
class: "celeste-segmented-control-indicator",
|
|
54
|
+
style: normalizeStyle({
|
|
55
|
+
width: `${unref(indicator).width}px`,
|
|
56
|
+
height: `${unref(indicator).height}px`,
|
|
57
|
+
transform: `translate3d(${unref(indicator).left}px, ${unref(indicator).top}px, 0)`
|
|
58
|
+
})
|
|
59
|
+
}, null, 12, _hoisted_1)]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["class"])]),
|
|
56
62
|
_: 3
|
|
57
|
-
},
|
|
63
|
+
}, 8, ["dir"]);
|
|
58
64
|
};
|
|
59
65
|
}
|
|
60
|
-
}), [["__scopeId", "data-v-
|
|
66
|
+
}), [["__scopeId", "data-v-1b4b28d6"]]);
|
|
61
67
|
//#endregion
|
|
62
68
|
export { segmented_control_default as t };
|