@youcan/celeste 0.16.0 → 0.17.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/README.md +1 -1
- package/ai/component-registry.json +333 -3
- package/ai/icons.json +2 -2
- package/ai/tokens.json +2 -2
- package/dist/celeste.css +236 -214
- package/dist/cjs/chunks/DrawerDescription.cjs +37 -0
- package/dist/cjs/chunks/DrawerTitle.cjs +37 -0
- package/dist/cjs/chunks/components.cjs +29 -11
- package/dist/cjs/chunks/dialog-body.cjs +46 -0
- package/dist/cjs/chunks/dialog-close.cjs +31 -0
- package/dist/cjs/chunks/dialog-content.cjs +39 -0
- package/dist/cjs/chunks/dialog-description.cjs +37 -0
- package/dist/cjs/chunks/dialog-footer.cjs +46 -0
- package/dist/cjs/chunks/dialog-header.cjs +39 -0
- package/dist/cjs/chunks/dialog-title.cjs +37 -0
- package/dist/cjs/chunks/dialog-trigger.cjs +31 -0
- package/dist/cjs/chunks/dialog.cjs +76 -0
- package/dist/cjs/chunks/drawer-description.cjs +2 -31
- package/dist/cjs/chunks/drawer-header.cjs +1 -1
- package/dist/cjs/chunks/drawer-title.cjs +2 -31
- package/dist/cjs/context.cjs +6 -0
- package/dist/cjs/dialog-body.cjs +2 -0
- package/dist/cjs/dialog-close.cjs +2 -0
- package/dist/cjs/dialog-content.cjs +2 -0
- package/dist/cjs/dialog-description.cjs +2 -0
- package/dist/cjs/dialog-footer.cjs +2 -0
- package/dist/cjs/dialog-header.cjs +2 -0
- package/dist/cjs/dialog-title.cjs +2 -0
- package/dist/cjs/dialog-trigger.cjs +2 -0
- package/dist/cjs/dialog.cjs +2 -0
- package/dist/cjs/index.cjs +29 -11
- package/dist/components/dialog/context.d.ts +14 -0
- package/dist/components/dialog/dialog-body.d.ts +19 -0
- package/dist/components/dialog/dialog-close.d.ts +15 -0
- package/dist/components/dialog/dialog-content.d.ts +19 -0
- package/dist/components/dialog/dialog-description.d.ts +17 -0
- package/dist/components/dialog/dialog-footer.d.ts +19 -0
- package/dist/components/dialog/dialog-header.d.ts +13 -0
- package/dist/components/dialog/dialog-title.d.ts +17 -0
- package/dist/components/dialog/dialog-trigger.d.ts +15 -0
- package/dist/components/dialog/dialog.d.ts +28 -0
- package/dist/components/dialog/index.d.ts +18 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/es/chunks/DrawerDescription.js +32 -0
- package/dist/es/chunks/DrawerTitle.js +32 -0
- package/dist/es/chunks/components.js +29 -11
- package/dist/es/chunks/dialog-body.js +39 -0
- package/dist/es/chunks/dialog-close.js +26 -0
- package/dist/es/chunks/dialog-content.js +34 -0
- package/dist/es/chunks/dialog-description.js +30 -0
- package/dist/es/chunks/dialog-footer.js +39 -0
- package/dist/es/chunks/dialog-header.js +34 -0
- package/dist/es/chunks/dialog-title.js +30 -0
- package/dist/es/chunks/dialog-trigger.js +26 -0
- package/dist/es/chunks/dialog.js +71 -0
- package/dist/es/chunks/drawer-description.js +1 -29
- package/dist/es/chunks/drawer-header.js +1 -1
- package/dist/es/chunks/drawer-title.js +1 -29
- package/dist/es/context.js +5 -0
- package/dist/es/dialog-body.js +2 -0
- package/dist/es/dialog-close.js +2 -0
- package/dist/es/dialog-content.js +2 -0
- package/dist/es/dialog-description.js +2 -0
- package/dist/es/dialog-footer.js +2 -0
- package/dist/es/dialog-header.js +2 -0
- package/dist/es/dialog-title.js +2 -0
- package/dist/es/dialog-trigger.js +2 -0
- package/dist/es/dialog.js +2 -0
- package/dist/es/index.js +21 -12
- package/package.json +3 -3
- package/src/components/dialog/context.ts +4 -0
- package/src/components/dialog/dialog-body.vue +30 -0
- package/src/components/dialog/dialog-close.vue +16 -0
- package/src/components/dialog/dialog-content.vue +23 -0
- package/src/components/dialog/dialog-description.vue +28 -0
- package/src/components/dialog/dialog-footer.vue +32 -0
- package/src/components/dialog/dialog-header.vue +29 -0
- package/src/components/dialog/dialog-title.vue +28 -0
- package/src/components/dialog/dialog-trigger.vue +16 -0
- package/src/components/dialog/dialog.vue +38 -0
- package/src/components/dialog/index.ts +18 -0
- package/src/components/dialog/stories/dialog.stories.ts +74 -0
- package/src/components/index.ts +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface DialogDescriptionProps {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<DialogDescriptionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface DialogFooterProps {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_8: {}, __VLS_17: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_17) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<DialogFooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface DialogHeaderProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
dismissible?: boolean;
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<DialogHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogHeaderProps> & Readonly<{}>, {
|
|
10
|
+
dismissible: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface DialogTitleProps {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<DialogTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare var __VLS_8: {}, __VLS_17: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_17) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { breakpoint as breakpoints } from '@youcan/celeste-tokens/json/breakpoint';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
breakpoint?: keyof typeof breakpoints;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_8: {}, __VLS_17: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_17) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<DialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:open": (value: boolean) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<DialogProps> & Readonly<{
|
|
16
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
open: boolean;
|
|
19
|
+
breakpoint: keyof typeof breakpoints;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './dialog-body';
|
|
2
|
+
export { default as DialogBody } from './dialog-body';
|
|
3
|
+
export * from './dialog-close';
|
|
4
|
+
export { default as DialogClose } from './dialog-close';
|
|
5
|
+
export * from './dialog-content';
|
|
6
|
+
export { default as DialogContent } from './dialog-content';
|
|
7
|
+
export * from './dialog-description';
|
|
8
|
+
export { default as DialogDescription } from './dialog-description';
|
|
9
|
+
export * from './dialog-footer';
|
|
10
|
+
export { default as DialogFooter } from './dialog-footer';
|
|
11
|
+
export * from './dialog-header';
|
|
12
|
+
export { default as DialogHeader } from './dialog-header';
|
|
13
|
+
export * from './dialog-title';
|
|
14
|
+
export { default as DialogTitle } from './dialog-title';
|
|
15
|
+
export * from './dialog-trigger';
|
|
16
|
+
export { default as DialogTrigger } from './dialog-trigger';
|
|
17
|
+
export * from './dialog';
|
|
18
|
+
export { default as Dialog } from './dialog';
|
|
@@ -10,6 +10,7 @@ export * from './combobox';
|
|
|
10
10
|
export * from './content-divider';
|
|
11
11
|
export * from './counter-input';
|
|
12
12
|
export * from './date-picker';
|
|
13
|
+
export * from './dialog';
|
|
13
14
|
export * from './digit-input';
|
|
14
15
|
export * from './drawer';
|
|
15
16
|
export * from './dropdown-menu';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as Primitive } from "./Primitive.js";
|
|
2
|
+
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
|
+
import { n as injectDrawerRootContext } from "./DrawerRoot.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerDescription.js
|
|
6
|
+
var DrawerDescription_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerDescription",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "p"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
useForwardExpose();
|
|
22
|
+
const rootContext = injectDrawerRootContext();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).descriptionId }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["id"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DrawerDescription_default as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as Primitive } from "./Primitive.js";
|
|
2
|
+
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
|
+
import { n as injectDrawerRootContext } from "./DrawerRoot.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerTitle.js
|
|
6
|
+
var DrawerTitle_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerTitle",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "h2"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const rootContext = injectDrawerRootContext();
|
|
22
|
+
useForwardExpose();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).titleId }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["id"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DrawerTitle_default as t };
|
|
@@ -24,8 +24,6 @@ import { t as popover_content_default } from "./popover-content.js";
|
|
|
24
24
|
import { t as popover_trigger_default } from "./popover-trigger.js";
|
|
25
25
|
import { t as range_calendar_default } from "./range-calendar.js";
|
|
26
26
|
import { t as drawer_content_default } from "./drawer-content.js";
|
|
27
|
-
import { t as drawer_description_default } from "./drawer-description.js";
|
|
28
|
-
import { t as drawer_title_default } from "./drawer-title.js";
|
|
29
27
|
import { t as drawer_trigger_default } from "./drawer-trigger.js";
|
|
30
28
|
import { t as drawer_body_default } from "./drawer-body.js";
|
|
31
29
|
import { t as dropdown_menu_group_default } from "./dropdown-menu-group.js";
|
|
@@ -87,12 +85,30 @@ import { t as combobox_root_default } from "./combobox-root.js";
|
|
|
87
85
|
import { t as combobox_separator_default } from "./combobox-separator.js";
|
|
88
86
|
import { t as combobox_default } from "./combobox.js";
|
|
89
87
|
import { t as date_picker_default } from "./date-picker.js";
|
|
90
|
-
import { t as
|
|
91
|
-
import { t as
|
|
88
|
+
import { t as modal_body_default } from "./modal-body.js";
|
|
89
|
+
import { t as dialog_body_default } from "./dialog-body.js";
|
|
92
90
|
import { t as drawer_close_default } from "./drawer-close.js";
|
|
91
|
+
import { t as modal_close_default } from "./modal-close.js";
|
|
92
|
+
import { t as dialog_close_default } from "./dialog-close.js";
|
|
93
|
+
import { t as modal_content_default } from "./modal-content.js";
|
|
94
|
+
import { t as dialog_content_default } from "./dialog-content.js";
|
|
95
|
+
import { t as dialog_description_default } from "./dialog-description.js";
|
|
93
96
|
import { t as drawer_footer_default } from "./drawer-footer.js";
|
|
97
|
+
import { t as modal_footer_default } from "./modal-footer.js";
|
|
98
|
+
import { t as dialog_footer_default } from "./dialog-footer.js";
|
|
99
|
+
import { t as drawer_description_default } from "./drawer-description.js";
|
|
100
|
+
import { t as drawer_title_default } from "./drawer-title.js";
|
|
94
101
|
import { t as drawer_header_default } from "./drawer-header.js";
|
|
102
|
+
import { t as modal_header_default } from "./modal-header.js";
|
|
103
|
+
import { t as dialog_header_default } from "./dialog-header.js";
|
|
104
|
+
import { t as dialog_title_default } from "./dialog-title.js";
|
|
105
|
+
import { t as modal_trigger_default } from "./modal-trigger.js";
|
|
106
|
+
import { t as dialog_trigger_default } from "./dialog-trigger.js";
|
|
107
|
+
import { t as dialog_default } from "./dialog.js";
|
|
95
108
|
import { t as drawer_default } from "./drawer.js";
|
|
109
|
+
import { t as modal_default } from "./modal.js";
|
|
110
|
+
import { t as digit_input_group_default } from "./digit-input-group.js";
|
|
111
|
+
import { t as digit_input_default } from "./digit-input.js";
|
|
96
112
|
import { t as dropdown_menu_default } from "./dropdown-menu.js";
|
|
97
113
|
import { t as file_upload_area_default } from "./file-upload-area.js";
|
|
98
114
|
import { t as hint_text_default } from "./hint-text.js";
|
|
@@ -101,13 +117,6 @@ import { t as tooltip_root_default } from "./tooltip-root.js";
|
|
|
101
117
|
import { t as tooltip_default } from "./tooltip.js";
|
|
102
118
|
import { t as label_default } from "./label2.js";
|
|
103
119
|
import { t as mochi_default } from "./mochi.js";
|
|
104
|
-
import { t as modal_body_default } from "./modal-body.js";
|
|
105
|
-
import { t as modal_close_default } from "./modal-close.js";
|
|
106
|
-
import { t as modal_content_default } from "./modal-content.js";
|
|
107
|
-
import { t as modal_footer_default } from "./modal-footer.js";
|
|
108
|
-
import { t as modal_header_default } from "./modal-header.js";
|
|
109
|
-
import { t as modal_trigger_default } from "./modal-trigger.js";
|
|
110
|
-
import { t as modal_default } from "./modal.js";
|
|
111
120
|
import { t as pagination_default } from "./pagination.js";
|
|
112
121
|
import { t as progress_bar_default } from "./progress-bar.js";
|
|
113
122
|
import { t as progress_circle_default } from "./progress-circle.js";
|
|
@@ -213,6 +222,15 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
213
222
|
ContentDivider: () => content_divider_default,
|
|
214
223
|
CounterInput: () => counter_input_default,
|
|
215
224
|
DatePicker: () => date_picker_default,
|
|
225
|
+
Dialog: () => dialog_default,
|
|
226
|
+
DialogBody: () => dialog_body_default,
|
|
227
|
+
DialogClose: () => dialog_close_default,
|
|
228
|
+
DialogContent: () => dialog_content_default,
|
|
229
|
+
DialogDescription: () => dialog_description_default,
|
|
230
|
+
DialogFooter: () => dialog_footer_default,
|
|
231
|
+
DialogHeader: () => dialog_header_default,
|
|
232
|
+
DialogTitle: () => dialog_title_default,
|
|
233
|
+
DialogTrigger: () => dialog_trigger_default,
|
|
216
234
|
DigitInput: () => digit_input_default,
|
|
217
235
|
DigitInputGroup: () => digit_input_group_default,
|
|
218
236
|
DigitInputSlot: () => digit_input_slot_default,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { t as drawer_body_default } from "./drawer-body.js";
|
|
4
|
+
import { t as modal_body_default } from "./modal-body.js";
|
|
5
|
+
import { injectDialogContext } from "../context.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-body.vue
|
|
9
|
+
var dialog_body_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-body",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_body_default, {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(unref(clsx)("celeste-dialog-body", props.class))
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 8, ["class"])) : (openBlock(), createBlock(modal_body_default, {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: normalizeClass(props.class)
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["class"]));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}), [["__scopeId", "data-v-5b25c361"]]);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { dialog_body_default as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { injectDialogContext } from "../context.js";
|
|
2
|
+
import { t as drawer_close_default } from "./drawer-close.js";
|
|
3
|
+
import { t as modal_close_default } from "./modal-close.js";
|
|
4
|
+
import { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-close.vue
|
|
7
|
+
var dialog_close_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-close",
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const { drawer } = injectDialogContext();
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_close_default, {
|
|
13
|
+
key: 0,
|
|
14
|
+
"as-child": ""
|
|
15
|
+
}, {
|
|
16
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
17
|
+
_: 3
|
|
18
|
+
})) : (openBlock(), createBlock(modal_close_default, { key: 1 }, {
|
|
19
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { dialog_close_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as drawer_content_default } from "./drawer-content.js";
|
|
2
|
+
import { injectDialogContext } from "../context.js";
|
|
3
|
+
import { t as modal_content_default } from "./modal-content.js";
|
|
4
|
+
import { createBlock, defineComponent, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-content.vue
|
|
7
|
+
var dialog_content_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-content",
|
|
9
|
+
props: { style: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] } },
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { drawer } = injectDialogContext();
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_content_default, { key: 0 }, {
|
|
21
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
22
|
+
_: 3
|
|
23
|
+
})) : (openBlock(), createBlock(modal_content_default, {
|
|
24
|
+
key: 1,
|
|
25
|
+
style: normalizeStyle(props.style)
|
|
26
|
+
}, {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 8, ["style"]));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { dialog_content_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { t as DialogDescription_default } from "./DialogDescription.js";
|
|
4
|
+
import { t as DrawerDescription_default } from "./DrawerDescription.js";
|
|
5
|
+
import { injectDialogContext } from "../context.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-description.vue
|
|
9
|
+
var dialog_description_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-description",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(drawer) ? unref(DrawerDescription_default) : unref(DialogDescription_default)), { class: normalizeClass(unref(clsx)("celeste-dialog-description", props.class)) }, {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 8, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}), [["__scopeId", "data-v-fd5ff31d"]]);
|
|
29
|
+
//#endregion
|
|
30
|
+
export { dialog_description_default as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { injectDialogContext } from "../context.js";
|
|
4
|
+
import { t as drawer_footer_default } from "./drawer-footer.js";
|
|
5
|
+
import { t as modal_footer_default } from "./modal-footer.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-footer.vue
|
|
9
|
+
var dialog_footer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-footer",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_footer_default, {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(props.class)
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 8, ["class"])) : (openBlock(), createBlock(modal_footer_default, {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: normalizeClass(unref(clsx)("celeste-dialog-footer", props.class))
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["class"]));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}), [["__scopeId", "data-v-d868b08a"]]);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { dialog_footer_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { injectDialogContext } from "../context.js";
|
|
2
|
+
import { t as drawer_header_default } from "./drawer-header.js";
|
|
3
|
+
import { t as modal_header_default } from "./modal-header.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, normalizeProps, openBlock, unref } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-header.vue
|
|
7
|
+
var dialog_header_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-header",
|
|
9
|
+
props: {
|
|
10
|
+
title: {},
|
|
11
|
+
description: {},
|
|
12
|
+
icon: {},
|
|
13
|
+
dismissible: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: true
|
|
16
|
+
},
|
|
17
|
+
class: { type: [
|
|
18
|
+
Boolean,
|
|
19
|
+
null,
|
|
20
|
+
String,
|
|
21
|
+
Object,
|
|
22
|
+
Array
|
|
23
|
+
] }
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const { drawer } = injectDialogContext();
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_header_default, mergeProps({ key: 0 }, props, { divider: "" }), null, 16)) : (openBlock(), createBlock(modal_header_default, normalizeProps(mergeProps({ key: 1 }, props)), null, 16));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { dialog_header_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { t as DialogTitle_default } from "./DialogTitle.js";
|
|
4
|
+
import { t as DrawerTitle_default } from "./DrawerTitle.js";
|
|
5
|
+
import { injectDialogContext } from "../context.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-title.vue
|
|
9
|
+
var dialog_title_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-title",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(drawer) ? unref(DrawerTitle_default) : unref(DialogTitle_default)), { class: normalizeClass(unref(clsx)("celeste-dialog-title", props.class)) }, {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 8, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}), [["__scopeId", "data-v-b3eb21b2"]]);
|
|
29
|
+
//#endregion
|
|
30
|
+
export { dialog_title_default as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as drawer_trigger_default } from "./drawer-trigger.js";
|
|
2
|
+
import { injectDialogContext } from "../context.js";
|
|
3
|
+
import { t as modal_trigger_default } from "./modal-trigger.js";
|
|
4
|
+
import { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-trigger.vue
|
|
7
|
+
var dialog_trigger_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-trigger",
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const { drawer } = injectDialogContext();
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_trigger_default, {
|
|
13
|
+
key: 0,
|
|
14
|
+
"as-child": ""
|
|
15
|
+
}, {
|
|
16
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
17
|
+
_: 3
|
|
18
|
+
})) : (openBlock(), createBlock(modal_trigger_default, { key: 1 }, {
|
|
19
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { dialog_trigger_default as t };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { c as useMediaQuery, p as useVModel } from "./dist2.js";
|
|
2
|
+
import { provideDialogContext } from "../context.js";
|
|
3
|
+
import { t as drawer_default } from "./drawer.js";
|
|
4
|
+
import { t as modal_default } from "./modal.js";
|
|
5
|
+
import { createBlock, defineComponent, isRef, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
6
|
+
//#region ../celeste-tokens/dist/json/breakpoint.json
|
|
7
|
+
var breakpoint = {
|
|
8
|
+
"sm": {
|
|
9
|
+
"$value": 640,
|
|
10
|
+
"$type": "dimension"
|
|
11
|
+
},
|
|
12
|
+
"md": {
|
|
13
|
+
"$value": 768,
|
|
14
|
+
"$type": "dimension"
|
|
15
|
+
},
|
|
16
|
+
"lg": {
|
|
17
|
+
"$value": 1024,
|
|
18
|
+
"$type": "dimension"
|
|
19
|
+
},
|
|
20
|
+
"xl": {
|
|
21
|
+
"$value": 1280,
|
|
22
|
+
"$type": "dimension"
|
|
23
|
+
},
|
|
24
|
+
"2xl": {
|
|
25
|
+
"$value": 1536,
|
|
26
|
+
"$type": "dimension"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/dialog/dialog.vue
|
|
31
|
+
var dialog_default = /* @__PURE__ */ defineComponent({
|
|
32
|
+
__name: "dialog",
|
|
33
|
+
props: {
|
|
34
|
+
open: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: void 0
|
|
37
|
+
},
|
|
38
|
+
defaultOpen: { type: Boolean },
|
|
39
|
+
breakpoint: { default: "sm" }
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:open"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const open = useVModel(props, "open", __emit, {
|
|
45
|
+
passive: true,
|
|
46
|
+
defaultValue: props.defaultOpen
|
|
47
|
+
});
|
|
48
|
+
const drawer = useMediaQuery(() => `(width < ${breakpoint[props.breakpoint].$value}px)`);
|
|
49
|
+
provideDialogContext({ drawer });
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_default, {
|
|
52
|
+
key: 0,
|
|
53
|
+
open: unref(open),
|
|
54
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => isRef(open) ? open.value = $event : null),
|
|
55
|
+
side: "bottom"
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 8, ["open"])) : (openBlock(), createBlock(modal_default, {
|
|
60
|
+
key: 1,
|
|
61
|
+
open: unref(open),
|
|
62
|
+
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => isRef(open) ? open.value = $event : null)
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 8, ["open"]));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { dialog_default as t };
|
|
@@ -1,36 +1,8 @@
|
|
|
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
|
|
5
|
-
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
6
|
-
import { n as injectDrawerRootContext } from "./DrawerRoot.js";
|
|
4
|
+
import { t as DrawerDescription_default } from "./DrawerDescription.js";
|
|
7
5
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
8
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerDescription.js
|
|
9
|
-
var DrawerDescription_default = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "DrawerDescription",
|
|
11
|
-
props: {
|
|
12
|
-
asChild: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
required: false
|
|
15
|
-
},
|
|
16
|
-
as: {
|
|
17
|
-
type: null,
|
|
18
|
-
required: false,
|
|
19
|
-
default: "p"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
useForwardExpose();
|
|
25
|
-
const rootContext = injectDrawerRootContext();
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).descriptionId }), {
|
|
28
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
29
|
-
_: 3
|
|
30
|
-
}, 16, ["id"]);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
6
|
//#endregion
|
|
35
7
|
//#region src/components/drawer/drawer-description.vue
|
|
36
8
|
var drawer_description_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|