@youcan/celeste 0.7.3 → 0.8.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/dist/celeste.css +465 -0
- package/dist/cjs/calendar.cjs +2 -0
- package/dist/cjs/chunks/ComboboxContent.cjs +1 -1
- package/dist/cjs/chunks/DialogPortal.cjs +1 -1
- package/dist/cjs/chunks/DismissableLayer.cjs +0 -34
- package/dist/cjs/chunks/FocusScope.cjs +2 -2
- package/dist/cjs/chunks/MenuContentImpl.cjs +1 -1
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +1 -1
- package/dist/cjs/chunks/calendar.cjs +923 -0
- package/dist/cjs/chunks/components.cjs +9 -1
- package/dist/cjs/chunks/counter-input.cjs +2 -13
- package/dist/cjs/chunks/date-picker.cjs +99 -0
- package/dist/cjs/chunks/defu.cjs +34 -0
- package/dist/cjs/chunks/popover-content.cjs +1 -1
- package/dist/cjs/chunks/range-calendar.cjs +1170 -0
- package/dist/cjs/chunks/range-picker.cjs +231 -0
- package/dist/cjs/chunks/tooltip-content.cjs +3 -2
- package/dist/cjs/chunks/useCalendar.cjs +2439 -0
- package/dist/cjs/chunks/useLocale.cjs +20 -0
- package/dist/cjs/date-picker.cjs +2 -0
- package/dist/cjs/index.cjs +9 -1
- package/dist/cjs/range-calendar.cjs +2 -0
- package/dist/cjs/range-picker.cjs +2 -0
- package/dist/components/calendar/calendar.d.ts +19 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/date-picker/date-picker.d.ts +27 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/range-calendar/index.d.ts +2 -0
- package/dist/components/range-calendar/range-calendar.d.ts +24 -0
- package/dist/components/range-picker/index.d.ts +2 -0
- package/dist/components/range-picker/range-picker.d.ts +38 -0
- package/dist/components/rich-editor/rich-editor.d.ts +1 -1
- package/dist/es/calendar.js +2 -0
- package/dist/es/chunks/ComboboxContent.js +1 -1
- package/dist/es/chunks/DialogPortal.js +1 -1
- package/dist/es/chunks/DismissableLayer.js +1 -29
- package/dist/es/chunks/FocusScope.js +1 -1
- package/dist/es/chunks/MenuContentImpl.js +1 -1
- package/dist/es/chunks/SelectItemAlignedPosition.js +1 -1
- package/dist/es/chunks/calendar.js +916 -0
- package/dist/es/chunks/components.js +9 -1
- package/dist/es/chunks/counter-input.js +1 -12
- package/dist/es/chunks/date-picker.js +92 -0
- package/dist/es/chunks/defu.js +29 -0
- package/dist/es/chunks/popover-content.js +1 -1
- package/dist/es/chunks/range-calendar.js +1163 -0
- package/dist/es/chunks/range-picker.js +224 -0
- package/dist/es/chunks/tooltip-content.js +2 -1
- package/dist/es/chunks/useCalendar.js +2331 -0
- package/dist/es/chunks/useLocale.js +14 -0
- package/dist/es/date-picker.js +2 -0
- package/dist/es/index.js +6 -2
- package/dist/es/range-calendar.js +2 -0
- package/dist/es/range-picker.js +2 -0
- package/package.json +4 -3
- package/src/components/calendar/calendar.vue +305 -0
- package/src/components/calendar/index.ts +2 -0
- package/src/components/calendar/stories/calendar.stories.ts +76 -0
- package/src/components/date-picker/date-picker.vue +91 -0
- package/src/components/date-picker/index.ts +2 -0
- package/src/components/date-picker/stories/date-picker.stories.ts +92 -0
- package/src/components/index.ts +4 -0
- package/src/components/range-calendar/index.ts +2 -0
- package/src/components/range-calendar/range-calendar.vue +363 -0
- package/src/components/range-calendar/stories/range-calendar.stories.ts +46 -0
- package/src/components/range-picker/index.ts +2 -0
- package/src/components/range-picker/range-picker.vue +237 -0
- package/src/components/range-picker/stories/range-picker.stories.ts +97 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require("./chunk.cjs");
|
|
2
|
+
const require_ConfigProvider = require("./ConfigProvider.cjs");
|
|
3
|
+
let vue = require("vue");
|
|
4
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useLocale.js
|
|
5
|
+
/**
|
|
6
|
+
* The `useLocale` function provides a way to access the current locale in your application.
|
|
7
|
+
* @param {Ref<string | undefined>} [locale] - An optional ref containing the locale.
|
|
8
|
+
* @returns A computed ref holding the resolved locale.
|
|
9
|
+
*/
|
|
10
|
+
function useLocale(locale) {
|
|
11
|
+
const context = require_ConfigProvider.injectConfigProviderContext({ locale: (0, vue.ref)("en") });
|
|
12
|
+
return (0, vue.computed)(() => locale?.value || context.locale?.value || "en");
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
Object.defineProperty(exports, "useLocale", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function() {
|
|
18
|
+
return useLocale;
|
|
19
|
+
}
|
|
20
|
+
});
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -7,13 +7,13 @@ const require_badge = require("./chunks/badge.cjs");
|
|
|
7
7
|
const require_status_badge = require("./chunks/status-badge.cjs");
|
|
8
8
|
const require_components = require("./chunks/components.cjs");
|
|
9
9
|
const require_tooltip_content = require("./chunks/tooltip-content.cjs");
|
|
10
|
-
const require_counter_input = require("./chunks/counter-input.cjs");
|
|
11
10
|
const require_collapsible_content = require("./chunks/collapsible-content.cjs");
|
|
12
11
|
const require_collapsible_trigger = require("./chunks/collapsible-trigger.cjs");
|
|
13
12
|
const require_combobox_anchor = require("./chunks/combobox-anchor.cjs");
|
|
14
13
|
const require_combobox_empty = require("./chunks/combobox-empty.cjs");
|
|
15
14
|
const require_combobox_list = require("./chunks/combobox-list.cjs");
|
|
16
15
|
const require_combobox_trigger = require("./chunks/combobox-trigger.cjs");
|
|
16
|
+
const require_calendar = require("./chunks/calendar.cjs");
|
|
17
17
|
const require_checkbox = require("./chunks/checkbox.cjs");
|
|
18
18
|
const require_slider = require("./chunks/slider.cjs");
|
|
19
19
|
const require_dropdown_menu_item = require("./chunks/dropdown-menu-item.cjs");
|
|
@@ -24,9 +24,11 @@ const require_dropdown_menu_sub_content = require("./chunks/dropdown-menu-sub-co
|
|
|
24
24
|
const require_dropdown_menu_sub_trigger = require("./chunks/dropdown-menu-sub-trigger.cjs");
|
|
25
25
|
const require_popover_content = require("./chunks/popover-content.cjs");
|
|
26
26
|
const require_popover_trigger = require("./chunks/popover-trigger.cjs");
|
|
27
|
+
const require_range_calendar = require("./chunks/range-calendar.cjs");
|
|
27
28
|
const require_dropdown_menu_group = require("./chunks/dropdown-menu-group.cjs");
|
|
28
29
|
const require_dropdown_menu_sub = require("./chunks/dropdown-menu-sub.cjs");
|
|
29
30
|
const require_dropdown_menu_trigger = require("./chunks/dropdown-menu-trigger.cjs");
|
|
31
|
+
const require_counter_input = require("./chunks/counter-input.cjs");
|
|
30
32
|
const require_pagination_ellipsis = require("./chunks/pagination-ellipsis.cjs");
|
|
31
33
|
const require_pagination_first = require("./chunks/pagination-first.cjs");
|
|
32
34
|
const require_pagination_last = require("./chunks/pagination-last.cjs");
|
|
@@ -79,6 +81,7 @@ const require_combobox_item = require("./chunks/combobox-item.cjs");
|
|
|
79
81
|
const require_combobox_root = require("./chunks/combobox-root.cjs");
|
|
80
82
|
const require_combobox_separator = require("./chunks/combobox-separator.cjs");
|
|
81
83
|
const require_combobox = require("./chunks/combobox.cjs");
|
|
84
|
+
const require_date_picker = require("./chunks/date-picker.cjs");
|
|
82
85
|
const require_digit_input_group = require("./chunks/digit-input-group.cjs");
|
|
83
86
|
const require_digit_input = require("./chunks/digit-input.cjs");
|
|
84
87
|
const require_dropdown_menu = require("./chunks/dropdown-menu.cjs");
|
|
@@ -101,6 +104,7 @@ const require_progress_circle = require("./chunks/progress-circle.cjs");
|
|
|
101
104
|
const require_radio_group_card = require("./chunks/radio-group-card.cjs");
|
|
102
105
|
const require_radio_group_label = require("./chunks/radio-group-label.cjs");
|
|
103
106
|
const require_radio_group = require("./chunks/radio-group.cjs");
|
|
107
|
+
const require_range_picker = require("./chunks/range-picker.cjs");
|
|
104
108
|
const require_rich_editor = require("./chunks/rich-editor.cjs");
|
|
105
109
|
const require_use_sidebar = require("./use-sidebar.cjs");
|
|
106
110
|
const require_segmented_control = require("./chunks/segmented-control.cjs");
|
|
@@ -216,6 +220,7 @@ exports.AlphaSlider = require_alpha_slider.alpha_slider_default;
|
|
|
216
220
|
exports.Badge = require_badge.badge_default;
|
|
217
221
|
exports.Button = require_button.button_default;
|
|
218
222
|
exports.COLOR_NUMBER_VALIDATION_PATTERN = require_color.COLOR_NUMBER_VALIDATION_PATTERN;
|
|
223
|
+
exports.Calendar = require_calendar.calendar_default;
|
|
219
224
|
exports.Celeste = Celeste;
|
|
220
225
|
exports.Checkbox = require_checkbox.checkbox_default;
|
|
221
226
|
exports.CheckboxCard = require_checkbox_card.checkbox_card_default;
|
|
@@ -240,6 +245,7 @@ exports.CompactButton = require_compact_button.compact_button_default;
|
|
|
240
245
|
exports.ContentDivider = require_content_divider.content_divider_default;
|
|
241
246
|
exports.CounterInput = require_counter_input.counter_input_default;
|
|
242
247
|
exports.DEFAULT_SWATCH = require_color.DEFAULT_SWATCH;
|
|
248
|
+
exports.DatePicker = require_date_picker.date_picker_default;
|
|
243
249
|
exports.DigitInput = require_digit_input.digit_input_default;
|
|
244
250
|
exports.DigitInputGroup = require_digit_input_group.digit_input_group_default;
|
|
245
251
|
exports.DigitInputSlot = require_digit_input_slot.digit_input_slot_default;
|
|
@@ -284,6 +290,8 @@ exports.RadioGroup = require_radio_group.radio_group_default;
|
|
|
284
290
|
exports.RadioGroupCard = require_radio_group_card.radio_group_card_default;
|
|
285
291
|
exports.RadioGroupItem = require_radio_group_item.radio_group_item_default;
|
|
286
292
|
exports.RadioGroupLabel = require_radio_group_label.radio_group_label_default;
|
|
293
|
+
exports.RangeCalendar = require_range_calendar.range_calendar_default;
|
|
294
|
+
exports.RangePicker = require_range_picker.range_picker_default;
|
|
287
295
|
exports.RichEditor = require_rich_editor.rich_editor_default;
|
|
288
296
|
exports.SIDEBAR_COOKIE_MAX_AGE = require_use_sidebar.SIDEBAR_COOKIE_MAX_AGE;
|
|
289
297
|
exports.SIDEBAR_COOKIE_NAME = require_use_sidebar.SIDEBAR_COOKIE_NAME;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CalendarRootProps, DateValue } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
export interface CalendarProps extends CalendarRootProps {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
markedDates?: DateValue[];
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<CalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (date: DateValue | undefined) => any;
|
|
9
|
+
"update:placeholder": (date: DateValue) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
12
|
+
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
weekStartsOn: import('node_modules/reka-ui/dist/index2').WeekStartsOn;
|
|
15
|
+
weekdayFormat: import('node_modules/reka-ui/dist/index2').WeekDayFormat;
|
|
16
|
+
fixedWeeks: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DateValue } from 'reka-ui';
|
|
2
|
+
import { CalendarProps } from '../calendar/calendar';
|
|
3
|
+
export interface DatePickerProps extends Omit<CalendarProps, 'modelValue'> {
|
|
4
|
+
footer?: boolean;
|
|
5
|
+
cancelLabel?: string;
|
|
6
|
+
applyLabel?: string;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = DatePickerProps;
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: DateValue;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: DateValue | undefined) => any;
|
|
15
|
+
apply: (value: DateValue | undefined) => any;
|
|
16
|
+
cancel: () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: DateValue | undefined) => any) | undefined;
|
|
19
|
+
onApply?: ((value: DateValue | undefined) => any) | undefined;
|
|
20
|
+
onCancel?: (() => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
footer: boolean;
|
|
23
|
+
cancelLabel: string;
|
|
24
|
+
applyLabel: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export * from './alert';
|
|
2
2
|
export * from './badge';
|
|
3
3
|
export * from './button';
|
|
4
|
+
export * from './calendar';
|
|
4
5
|
export * from './checkbox';
|
|
5
6
|
export * from './collapsible';
|
|
6
7
|
export * from './color-picker';
|
|
7
8
|
export * from './combobox';
|
|
8
9
|
export * from './content-divider';
|
|
9
10
|
export * from './counter-input';
|
|
11
|
+
export * from './date-picker';
|
|
10
12
|
export * from './digit-input';
|
|
11
13
|
export * from './dropdown-menu';
|
|
12
14
|
export * from './file-upload';
|
|
@@ -17,6 +19,8 @@ export * from './pagination';
|
|
|
17
19
|
export * from './popover';
|
|
18
20
|
export * from './progress';
|
|
19
21
|
export * from './radio-group';
|
|
22
|
+
export * from './range-calendar';
|
|
23
|
+
export * from './range-picker';
|
|
20
24
|
export * from './rich-editor';
|
|
21
25
|
export * from './scroll-area';
|
|
22
26
|
export * from './segmented-control';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DateValue, RangeCalendarRootProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
export interface RangeCalendarProps extends RangeCalendarRootProps {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
markedDates?: DateValue[];
|
|
6
|
+
}
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<RangeCalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (date: import('reka-ui').DateRange) => any;
|
|
9
|
+
"update:placeholder": (date: DateValue) => any;
|
|
10
|
+
"update:validModelValue": (date: import('reka-ui').DateRange) => any;
|
|
11
|
+
"update:startValue": (date: DateValue | undefined) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<RangeCalendarProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
14
|
+
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
15
|
+
"onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
16
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
weekStartsOn: import('node_modules/reka-ui/dist/index2').WeekStartsOn;
|
|
19
|
+
weekdayFormat: import('node_modules/reka-ui/dist/index2').WeekDayFormat;
|
|
20
|
+
fixedWeeks: boolean;
|
|
21
|
+
numberOfMonths: number;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DateRange } from 'reka-ui';
|
|
2
|
+
import { RangeCalendarProps } from '../range-calendar/range-calendar';
|
|
3
|
+
export interface RangePickerPreset {
|
|
4
|
+
label: string;
|
|
5
|
+
value: DateRange | (() => DateRange);
|
|
6
|
+
}
|
|
7
|
+
export interface RangePickerProps extends Omit<RangeCalendarProps, 'modelValue'> {
|
|
8
|
+
showPresets?: boolean;
|
|
9
|
+
footer?: boolean;
|
|
10
|
+
presets?: RangePickerPreset[];
|
|
11
|
+
rangeLabel?: string;
|
|
12
|
+
placeholderLabel?: string;
|
|
13
|
+
cancelLabel?: string;
|
|
14
|
+
applyLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = RangePickerProps;
|
|
17
|
+
type __VLS_ModelProps = {
|
|
18
|
+
modelValue?: DateRange;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
21
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: DateRange) => any;
|
|
23
|
+
apply: (value: DateRange) => any;
|
|
24
|
+
cancel: () => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: DateRange) => any) | undefined;
|
|
27
|
+
onApply?: ((value: DateRange) => any) | undefined;
|
|
28
|
+
onCancel?: (() => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
footer: boolean;
|
|
31
|
+
cancelLabel: string;
|
|
32
|
+
applyLabel: string;
|
|
33
|
+
showPresets: boolean;
|
|
34
|
+
rangeLabel: string;
|
|
35
|
+
placeholderLabel: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
38
|
+
export default _default;
|
|
@@ -46,8 +46,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
46
46
|
}>> & Readonly<{
|
|
47
47
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
-
modelValue: string;
|
|
50
49
|
placeholder: string;
|
|
50
|
+
modelValue: string;
|
|
51
51
|
customToolbar: string[];
|
|
52
52
|
maxLimit: number;
|
|
53
53
|
showExtraSettings: boolean;
|
|
@@ -4,7 +4,6 @@ import { t as createContext } from "./createContext.js";
|
|
|
4
4
|
import { t as getActiveElement } from "./getActiveElement.js";
|
|
5
5
|
import { h as refAutoReset } from "./dist.js";
|
|
6
6
|
import { t as Primitive } from "./Primitive.js";
|
|
7
|
-
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
8
7
|
import { n as useBodyScrollLock, t as FocusScope_default } from "./FocusScope.js";
|
|
9
8
|
import { t as useFocusGuards } from "./useFocusGuards.js";
|
|
10
9
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
@@ -13,6 +12,7 @@ import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
|
13
12
|
import { t as useHideOthers } from "./useHideOthers.js";
|
|
14
13
|
import { t as useId } from "./useId.js";
|
|
15
14
|
import { t as Presence_default } from "./Presence.js";
|
|
15
|
+
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
16
16
|
import { t as useCollection } from "./Collection.js";
|
|
17
17
|
import { computed, createBlock, createVNode, defineComponent, mergeProps, onMounted, onUnmounted, openBlock, ref, renderSlot, resolveDynamicComponent, toRefs, unref, withCtx, withKeys, withModifiers } from "vue";
|
|
18
18
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxContent.js
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { t as getActiveElement } from "./getActiveElement.js";
|
|
2
2
|
import { t as Primitive } from "./Primitive.js";
|
|
3
|
-
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
4
3
|
import { n as useBodyScrollLock, t as FocusScope_default } from "./FocusScope.js";
|
|
5
4
|
import { t as useEmitAsProps } from "./useEmitAsProps.js";
|
|
6
5
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
@@ -8,6 +7,7 @@ import { t as useHideOthers } from "./useHideOthers.js";
|
|
|
8
7
|
import { t as useId } from "./useId.js";
|
|
9
8
|
import { t as Presence_default } from "./Presence.js";
|
|
10
9
|
import { n as injectDialogRootContext } from "./DialogRoot.js";
|
|
10
|
+
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
11
11
|
import { c as getOpenState } from "./utils.js";
|
|
12
12
|
import { t as Teleport_default } from "./Teleport.js";
|
|
13
13
|
import { computed, createBlock, createCommentVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onMounted, openBlock, ref, renderSlot, unref, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
@@ -4,34 +4,6 @@ import { d as isClient, n as onKeyStroke } from "./dist.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, nextTick, normalizeStyle, openBlock, reactive, ref, renderSlot, toValue, unref, watch, watchEffect, withCtx } from "vue";
|
|
7
|
-
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
8
|
-
function isPlainObject(value) {
|
|
9
|
-
if (value === null || typeof value !== "object") return false;
|
|
10
|
-
const prototype = Object.getPrototypeOf(value);
|
|
11
|
-
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
|
|
12
|
-
if (Symbol.iterator in value) return false;
|
|
13
|
-
if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
17
|
-
if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
|
|
18
|
-
const object = { ...defaults };
|
|
19
|
-
for (const key of Object.keys(baseObject)) {
|
|
20
|
-
if (key === "__proto__" || key === "constructor") continue;
|
|
21
|
-
const value = baseObject[key];
|
|
22
|
-
if (value === null || value === void 0) continue;
|
|
23
|
-
if (merger && merger(object, key, value, namespace)) continue;
|
|
24
|
-
if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
|
|
25
|
-
else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
|
|
26
|
-
else object[key] = value;
|
|
27
|
-
}
|
|
28
|
-
return object;
|
|
29
|
-
}
|
|
30
|
-
function createDefu(merger) {
|
|
31
|
-
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
|
|
32
|
-
}
|
|
33
|
-
var defu = createDefu();
|
|
34
|
-
//#endregion
|
|
35
7
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/utils.js
|
|
36
8
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
37
9
|
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
@@ -277,4 +249,4 @@ var DismissableLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
277
249
|
}
|
|
278
250
|
});
|
|
279
251
|
//#endregion
|
|
280
|
-
export {
|
|
252
|
+
export { DismissableLayer_default as t };
|
|
@@ -2,7 +2,7 @@ import { t as getActiveElement } from "./getActiveElement.js";
|
|
|
2
2
|
import { d as isClient, f as isIOS, g as tryOnBeforeUnmount, i as useEventListener, l as createGlobalState, u as createSharedComposable } from "./dist.js";
|
|
3
3
|
import { t as Primitive } from "./Primitive.js";
|
|
4
4
|
import { t as injectConfigProviderContext } from "./ConfigProvider.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as defu } from "./defu.js";
|
|
6
6
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
7
7
|
import { computed, createBlock, defineComponent, nextTick, openBlock, reactive, ref, renderSlot, unref, watch, watchEffect, withCtx } from "vue";
|
|
8
8
|
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useBodyScrollLock.js
|
|
@@ -2,11 +2,11 @@ import { n as PopperContent_default, t as PopperContentPropsDefaultValue } from
|
|
|
2
2
|
import { t as createContext } from "./createContext.js";
|
|
3
3
|
import { t as getActiveElement } from "./getActiveElement.js";
|
|
4
4
|
import { t as useArrowNavigation } from "./useArrowNavigation.js";
|
|
5
|
-
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
6
5
|
import { n as useBodyScrollLock, t as FocusScope_default } from "./FocusScope.js";
|
|
7
6
|
import { t as useFocusGuards } from "./useFocusGuards.js";
|
|
8
7
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
9
8
|
import { t as useTypeahead } from "./useTypeahead.js";
|
|
9
|
+
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
10
10
|
import { c as getOpenState, l as isMouseEvent, r as LAST_KEYS, s as focusFirst, t as FIRST_LAST_KEYS, u as isPointerInGraceArea } from "./utils.js";
|
|
11
11
|
import { t as RovingFocusGroup_default } from "./RovingFocusGroup.js";
|
|
12
12
|
import { n as injectMenuContext, r as injectMenuRootContext } from "./MenuRoot.js";
|
|
@@ -3,13 +3,13 @@ import { t as clamp } from "./clamp.js";
|
|
|
3
3
|
import { t as createContext } from "./createContext.js";
|
|
4
4
|
import { o as useResizeObserver, r as unrefElement } from "./dist.js";
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
|
-
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
7
6
|
import { n as useBodyScrollLock, t as FocusScope_default } from "./FocusScope.js";
|
|
8
7
|
import { t as useFocusGuards } from "./useFocusGuards.js";
|
|
9
8
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
10
9
|
import { t as useForwardProps } from "./useForwardProps.js";
|
|
11
10
|
import { t as useHideOthers } from "./useHideOthers.js";
|
|
12
11
|
import { t as useTypeahead } from "./useTypeahead.js";
|
|
12
|
+
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
13
13
|
import { s as focusFirst } from "./utils.js";
|
|
14
14
|
import { t as useCollection } from "./Collection.js";
|
|
15
15
|
import { n as injectSelectRootContext, s as valueComparator } from "./BubbleSelect.js";
|