@youcan/celeste 0.11.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 +30 -2
- package/ai/component-registry.md +5 -1
- package/ai/icons.md +1 -1
- package/ai/tokens.md +1 -1
- package/dist/celeste.css +311 -218
- 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/dist2.cjs +6 -0
- package/dist/cjs/chunks/dropdown-menu.cjs +10 -4
- package/dist/cjs/chunks/fancy-button.cjs +1 -1
- 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 +2 -0
- package/dist/cjs/chunks/segmented-control-item.cjs +1 -1
- package/dist/cjs/chunks/segmented-control.cjs +25 -4
- package/dist/cjs/chunks/select.cjs +9 -3
- package/dist/cjs/chunks/slider.cjs +16 -10
- package/dist/cjs/chunks/tab-menu-item.cjs +6 -2
- package/dist/cjs/chunks/tab-menu-list.cjs +53 -9
- 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 +4 -0
- package/dist/cjs/use-direction.cjs +31 -0
- package/dist/cjs/use-tab-observer.cjs +42 -0
- 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-list.d.ts +14 -5
- package/dist/components/tab-menu/tab-menu.d.ts +2 -2
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/use-direction.d.ts +3 -0
- package/dist/composables/use-tab-observer.d.ts +14 -0
- package/dist/es/chunks/BubbleSelect.js +1 -1
- package/dist/es/chunks/CollapsibleRoot.js +1 -1
- package/dist/es/chunks/ComboboxInput.js +1 -1
- package/dist/es/chunks/ComboboxRoot.js +1 -1
- package/dist/es/chunks/ConfigProvider.js +53 -2
- package/dist/es/chunks/DialogRoot.js +1 -1
- package/dist/es/chunks/DropdownMenuRoot.js +1 -1
- package/dist/es/chunks/FocusScope.js +1 -1
- package/dist/es/chunks/MenuRoot.js +1 -1
- package/dist/es/chunks/MenuSub.js +1 -1
- package/dist/es/chunks/PaginationRoot.js +1 -1
- package/dist/es/chunks/PinInputRoot.js +1 -1
- package/dist/es/chunks/PopoverRoot.js +1 -1
- package/dist/es/chunks/ProgressIndicator.js +1 -1
- package/dist/es/chunks/RadioGroupRoot.js +1 -1
- package/dist/es/chunks/RovingFocusGroup.js +1 -1
- package/dist/es/chunks/SelectItemAlignedPosition.js +1 -1
- package/dist/es/chunks/TabsRoot.js +1 -1
- package/dist/es/chunks/Teleport.js +1 -1
- package/dist/es/chunks/ToggleGroupRoot.js +1 -1
- package/dist/es/chunks/TooltipRoot.js +1 -1
- package/dist/es/chunks/bar-chart.js +1 -1
- package/dist/es/chunks/calendar.js +74 -68
- package/dist/es/chunks/checkbox.js +1 -1
- package/dist/es/chunks/combobox-root.js +13 -6
- package/dist/es/chunks/counter-input.js +1 -1
- package/dist/es/chunks/digit-input.js +14 -8
- package/dist/es/chunks/dist2.js +1 -1
- package/dist/es/chunks/dropdown-menu-sub.js +1 -1
- package/dist/es/chunks/dropdown-menu.js +11 -5
- package/dist/es/chunks/fancy-button.js +1 -1
- package/dist/es/chunks/radio-group-item.js +1 -1
- package/dist/es/chunks/radio-group.js +10 -4
- package/dist/es/chunks/range-calendar.js +74 -68
- package/dist/es/chunks/scroll-area.js +19 -13
- package/dist/es/chunks/scroll-bar.js +3 -1
- package/dist/es/chunks/segmented-control-item.js +2 -2
- package/dist/es/chunks/segmented-control.js +27 -5
- package/dist/es/chunks/select.js +10 -4
- package/dist/es/chunks/sidebar-provider.js +1 -1
- package/dist/es/chunks/slider.js +17 -11
- package/dist/es/chunks/switch.js +1 -1
- package/dist/es/chunks/tab-menu-item.js +6 -2
- package/dist/es/chunks/tab-menu-list.js +56 -10
- 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 +3 -1
- package/dist/es/use-direction.js +30 -0
- package/dist/es/use-tab-observer.js +41 -0
- package/package.json +3 -3
- package/src/components/button/fancy-button.vue +14 -4
- 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-item.vue +3 -3
- package/src/components/segmented-control/segmented-control.vue +48 -8
- package/src/components/select/select.vue +12 -7
- package/src/components/slider/slider.vue +19 -14
- package/src/components/switch/switch.vue +19 -18
- package/src/components/tab-menu/stories/tab-menu.stories.ts +39 -0
- package/src/components/tab-menu/tab-menu-item.vue +27 -28
- package/src/components/tab-menu/tab-menu-list.vue +85 -3
- 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 +2 -0
- package/src/composables/use-direction.ts +40 -0
- package/src/composables/use-tab-observer.ts +50 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TabsRootProps } from 'reka-ui';
|
|
2
2
|
type __VLS_Props = TabsRootProps;
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_14: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_14) => 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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MaybeElement } from '@vueuse/core';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export interface TabIndicator {
|
|
4
|
+
left: number;
|
|
5
|
+
top: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
export interface TabObserver {
|
|
10
|
+
listRef: Ref<MaybeElement>;
|
|
11
|
+
indicator: Ref<TabIndicator>;
|
|
12
|
+
ready: Ref<boolean>;
|
|
13
|
+
}
|
|
14
|
+
export declare function useTabObserver(activeSelector: string): TabObserver;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as isEqual } from "./ohash.D__AXeF1.js";
|
|
2
2
|
import { t as createContext } from "./createContext.js";
|
|
3
3
|
import { t as isNullish } from "./nullish.js";
|
|
4
|
-
import {
|
|
4
|
+
import { p as useVModel } from "./dist2.js";
|
|
5
5
|
import { t as useDirection } from "./useDirection.js";
|
|
6
6
|
import { t as useFormControl } from "./useFormControl.js";
|
|
7
7
|
import { t as useCollection } from "./Collection.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
5
5
|
import { createBlock, defineComponent, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as injectComboboxRootContext, r as injectListboxRootContext } from "./ComboboxRoot.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useComposing } from "./useComposing.js";
|
|
5
5
|
import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as isEqual } from "./ohash.D__AXeF1.js";
|
|
2
2
|
import { t as createContext } from "./createContext.js";
|
|
3
3
|
import { a as isClient, t as createEventHook } from "./dist.js";
|
|
4
|
-
import {
|
|
4
|
+
import { p as useVModel } from "./dist2.js";
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
6
|
import { t as useDirection } from "./useDirection.js";
|
|
7
7
|
import { t as useFormControl } from "./useFormControl.js";
|
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import "vue";
|
|
2
|
+
import { defineComponent, renderSlot, toRefs } from "vue";
|
|
3
3
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
4
4
|
var [injectConfigProviderContext, provideConfigProviderContext] = /*#__PURE__*/ createContext("ConfigProvider");
|
|
5
|
+
var ConfigProvider_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
__name: "ConfigProvider",
|
|
8
|
+
props: {
|
|
9
|
+
dir: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: false,
|
|
12
|
+
default: "ltr"
|
|
13
|
+
},
|
|
14
|
+
locale: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false,
|
|
17
|
+
default: "en"
|
|
18
|
+
},
|
|
19
|
+
scrollBody: {
|
|
20
|
+
type: [Boolean, Object],
|
|
21
|
+
required: false,
|
|
22
|
+
default: true
|
|
23
|
+
},
|
|
24
|
+
nonce: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false,
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
teleportTo: {
|
|
30
|
+
type: null,
|
|
31
|
+
required: false,
|
|
32
|
+
default: void 0
|
|
33
|
+
},
|
|
34
|
+
useId: {
|
|
35
|
+
type: Function,
|
|
36
|
+
required: false,
|
|
37
|
+
default: void 0
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const { dir, locale, scrollBody, nonce, teleportTo } = toRefs(props);
|
|
43
|
+
provideConfigProviderContext({
|
|
44
|
+
dir,
|
|
45
|
+
locale,
|
|
46
|
+
scrollBody,
|
|
47
|
+
nonce,
|
|
48
|
+
teleportTo,
|
|
49
|
+
useId: props.useId
|
|
50
|
+
});
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return renderSlot(_ctx.$slots, "default");
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
5
56
|
//#endregion
|
|
6
|
-
export { injectConfigProviderContext as t };
|
|
57
|
+
export { injectConfigProviderContext as n, ConfigProvider_default as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { defineComponent, ref, renderSlot, toRefs, unref } from "vue";
|
|
4
4
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Dialog/DialogRoot.js
|
|
5
5
|
var [injectDialogRootContext, provideDialogRootContext] = /*#__PURE__*/ createContext("DialogRoot");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as useDirection } from "./useDirection.js";
|
|
4
4
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
5
5
|
import { t as MenuRoot_default } from "./MenuRoot.js";
|
|
@@ -2,7 +2,7 @@ import { t as getActiveElement } from "./getActiveElement.js";
|
|
|
2
2
|
import { a as isClient, h as tryOnBeforeUnmount, n as createGlobalState, r as createSharedComposable, s as isIOS } from "./dist.js";
|
|
3
3
|
import { s as useEventListener } from "./dist2.js";
|
|
4
4
|
import { t as Primitive } from "./Primitive.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as injectConfigProviderContext } from "./ConfigProvider.js";
|
|
6
6
|
import { t as defu } from "./defu.js";
|
|
7
7
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
8
8
|
import { computed, createBlock, defineComponent, nextTick, openBlock, reactive, ref, renderSlot, unref, watch, watchEffect, withCtx } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
2
|
import { r as createSharedComposable } from "./dist.js";
|
|
3
|
-
import {
|
|
3
|
+
import { p as useVModel, s as useEventListener } from "./dist2.js";
|
|
4
4
|
import { t as useDirection } from "./useDirection.js";
|
|
5
5
|
import { t as PopperRoot_default } from "./PopperRoot.js";
|
|
6
6
|
import { createBlock, defineComponent, onMounted, openBlock, ref, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as PopperRoot_default } from "./PopperRoot.js";
|
|
4
4
|
import { i as provideMenuContext, n as injectMenuContext } from "./MenuRoot.js";
|
|
5
5
|
import { createBlock, defineComponent, openBlock, ref, renderSlot, unref, watchEffect, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
5
5
|
import { computed, createBlock, defineComponent, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useDirection } from "./useDirection.js";
|
|
5
5
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as PopperRoot_default } from "./PopperRoot.js";
|
|
4
4
|
import { createBlock, defineComponent, openBlock, ref, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
5
5
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
2
|
import { t as isNullish } from "./nullish.js";
|
|
3
|
-
import {
|
|
3
|
+
import { p as useVModel } from "./dist2.js";
|
|
4
4
|
import { t as Primitive } from "./Primitive.js";
|
|
5
5
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
6
6
|
import { computed, createBlock, defineComponent, mergeProps, nextTick, openBlock, renderSlot, unref, watch, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useDirection } from "./useDirection.js";
|
|
5
5
|
import { t as useFormControl } from "./useFormControl.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useDirection } from "./useDirection.js";
|
|
5
5
|
import { t as useCollection } from "./Collection.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clamp } from "./clamp.js";
|
|
2
2
|
import { t as createContext } from "./createContext.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as useResizeObserver, i as unrefElement } from "./dist2.js";
|
|
4
4
|
import { t as Primitive } from "./Primitive.js";
|
|
5
5
|
import { n as useBodyScrollLock, t as FocusScope_default } from "./FocusScope.js";
|
|
6
6
|
import { t as useFocusGuards } from "./useFocusGuards.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as useDirection } from "./useDirection.js";
|
|
5
5
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as useMounted } from "./dist2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as injectConfigProviderContext } from "./ConfigProvider.js";
|
|
3
3
|
import { Teleport, computed, createBlock, createCommentVNode, defineComponent, openBlock, renderSlot, unref } from "vue";
|
|
4
4
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Teleport/Teleport.js
|
|
5
5
|
var Teleport_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as isEqual } from "./ohash.D__AXeF1.js";
|
|
2
2
|
import { t as createContext } from "./createContext.js";
|
|
3
3
|
import { t as isValueEqualOrExist } from "./isValueEqualOrExist.js";
|
|
4
|
-
import {
|
|
4
|
+
import { p as useVModel } from "./dist2.js";
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
6
|
import { t as useDirection } from "./useDirection.js";
|
|
7
7
|
import { t as useFormControl } from "./useFormControl.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
2
|
import { y as useTimeoutFn } from "./dist.js";
|
|
3
|
-
import {
|
|
3
|
+
import { p as useVModel } from "./dist2.js";
|
|
4
4
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
5
5
|
import { t as PopperRoot_default } from "./PopperRoot.js";
|
|
6
6
|
import { n as injectTooltipProviderContext } from "./TooltipProvider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { f as useTextDirection, o as useElementSize } from "./dist2.js";
|
|
3
3
|
import { useChartMotion } from "../use-chart-motion.js";
|
|
4
4
|
import { useLocale } from "../use-locale.js";
|
|
5
5
|
import { chartColor, formatCompact, formatNumber, niceTicks } from "../chart.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
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 { t as createContext } from "./createContext.js";
|
|
4
|
-
import {
|
|
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 };
|
|
@@ -3,7 +3,7 @@ import { t as isEqual } from "./ohash.D__AXeF1.js";
|
|
|
3
3
|
import { t as createContext } from "./createContext.js";
|
|
4
4
|
import { t as isNullish } from "./nullish.js";
|
|
5
5
|
import { t as isValueEqualOrExist } from "./isValueEqualOrExist.js";
|
|
6
|
-
import {
|
|
6
|
+
import { p as useVModel } from "./dist2.js";
|
|
7
7
|
import { t as Primitive } from "./Primitive.js";
|
|
8
8
|
import { t as useFormControl } from "./useFormControl.js";
|
|
9
9
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
@@ -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 };
|
|
@@ -4,7 +4,7 @@ import { t as createContext } from "./createContext.js";
|
|
|
4
4
|
import { t as getActiveElement } from "./getActiveElement.js";
|
|
5
5
|
import { t as isNullish } from "./nullish.js";
|
|
6
6
|
import { a as isClient, d as reactiveComputed, t as createEventHook } from "./dist.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as unrefElement, p as useVModel, s as useEventListener } from "./dist2.js";
|
|
8
8
|
import { t as Primitive } from "./Primitive.js";
|
|
9
9
|
import { t as useComposing } from "./useComposing.js";
|
|
10
10
|
import { t as useFormControl } from "./useFormControl.js";
|
|
@@ -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 };
|
package/dist/es/chunks/dist2.js
CHANGED
|
@@ -458,4 +458,4 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
//#endregion
|
|
461
|
-
export { useDropZone as a, useMediaQuery as c,
|
|
461
|
+
export { useDropZone as a, useMediaQuery as c, useResizeObserver as d, useTextDirection as f, unrefElement as i, useMounted as l, defaultWindow as n, useElementSize as o, useVModel as p, onKeyStroke as r, useEventListener as s, defaultDocument as t, useMutationObserver as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as useVModel } from "./dist2.js";
|
|
2
2
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
3
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
4
|
import { t as MenuSub_default } from "./MenuSub.js";
|
|
@@ -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 };
|