@onereach/ui-components 2.73.0-beta.2258.0 → 2.73.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/bundled/v2/{OrCardCollection-06ecb8e1.js → OrCardCollection-4ac89ea5.js} +1 -1
- package/dist/bundled/v2/{OrCode-0cf7596d.js → OrCode-fc6876ec.js} +12 -184
- package/dist/bundled/v2/{OrNotification-2e2a1941.js → OrNotification-3909aaf2.js} +3 -3
- package/dist/bundled/v2/{OrSearch-bb87b34c.js → OrSearch-09fd004c.js} +2 -1
- package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-a2bc21b9.js} +155 -34
- package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
- package/dist/bundled/v2/{OrSkeletonText-2f1a3cc7.js → OrSkeletonText-242d22f3.js} +3 -3
- package/dist/bundled/v2/components/index.js +7 -6
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/bundled/v2/components/or-code/index.js +1 -1
- package/dist/bundled/v2/components/or-notification/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
- package/dist/bundled/v2/index.js +8 -7
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e2980d04.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-df150e3b.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +8 -180
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-321907ec.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7f3f1a16.js +291 -0
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js +75 -0
- package/dist/bundled/v3/components/index.js +5 -4
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/bundled/v3/components/or-code/index.js +1 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/bundled/v3/index.js +36 -19
- package/dist/esm/v2/{OrCardCollection-251ab033.js → OrCardCollection-5a9eda35.js} +1 -1
- package/dist/esm/v2/{OrCode-e2ce05ea.js → OrCode-d4400b42.js} +12 -30
- package/dist/esm/v2/{OrNotification-a49e76d3.js → OrNotification-a9231a83.js} +3 -3
- package/dist/esm/v2/{OrSearch-f42d588d.js → OrSearch-7411388b.js} +2 -1
- package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-27236fbd.js} +155 -34
- package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
- package/dist/esm/v2/{OrSkeletonText-24509efe.js → OrSkeletonText-cc94bdc9.js} +3 -3
- package/dist/esm/v2/components/index.js +7 -7
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v2/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/esm/v2/components/or-code/index.js +2 -3
- package/dist/esm/v2/components/or-notification/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/esm/v2/components/or-skeleton/index.js +1 -1
- package/dist/esm/v2/index.js +7 -7
- package/dist/esm/v3/{OrCardCollection-8b8e3745.js → OrCardCollection-e4fde5b4.js} +1 -1
- package/dist/esm/v3/{OrCode-72688173.js → OrCode-5ed69c23.js} +9 -27
- package/dist/esm/v3/{OrNotification-eb08de33.js → OrNotification-e85a4956.js} +1 -1
- package/dist/esm/v3/{OrSearch-4c5c44f2.js → OrSearch-5406bf03.js} +2 -1
- package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
- package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
- package/dist/esm/v3/{OrSkeletonText-0546754d.js → OrSkeletonText-2b1610ce.js} +3 -3
- package/dist/esm/v3/components/index.js +7 -7
- package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/esm/v3/components/or-code/index.js +2 -3
- package/dist/esm/v3/components/or-notification/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/esm/v3/components/or-skeleton/index.js +1 -1
- package/dist/esm/v3/index.js +7 -7
- package/package.json +4 -4
- package/src/components/or-code/OrCode.vue +6 -23
- package/src/components/or-notification/OrNotification.vue +1 -26
- package/src/components/or-search-v3/OrSearch.vue +2 -1
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
- package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
- package/src/components/or-sidebar-v3/partials/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +79 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +50 -0
- package/src/components/or-sidebar-v3/styles.ts +114 -9
- package/src/components/or-skeleton/styles.scss +3 -18
- package/src/components/or-stepper/OrStepper.stories.ts +1 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +0 -181
- package/dist/esm/v3/OrSidebar-a62972f5.js +0 -206
|
@@ -10,7 +10,17 @@ export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue
|
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
12
12
|
} | {}, true>)>;
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const WithCustomWidthConstraints: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
14
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
15
|
+
} | string[], {} & {}, {
|
|
16
|
+
[x: number]: string;
|
|
17
|
+
} | {}, true>)>;
|
|
18
|
+
export declare const NotDraggable: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
19
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
+
} | string[], {} & {}, {
|
|
21
|
+
[x: number]: string;
|
|
22
|
+
} | {}, true>)>;
|
|
23
|
+
export declare const Collapsible: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
14
24
|
[x: string]: ((...args: any[]) => any) | null;
|
|
15
25
|
} | string[], {} & {}, {
|
|
16
26
|
[x: number]: string;
|
|
@@ -30,8 +40,33 @@ export declare const WithFooter: StoryFn<import("vue").ComponentOptions<import("
|
|
|
30
40
|
} | string[], {} & {}, {
|
|
31
41
|
[x: number]: string;
|
|
32
42
|
} | {}, true>)>;
|
|
43
|
+
export declare const WithToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
44
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
45
|
+
} | string[], {} & {}, {
|
|
46
|
+
[x: number]: string;
|
|
47
|
+
} | {}, true>)>;
|
|
48
|
+
export declare const CollapsibleWithToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
49
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
50
|
+
} | string[], {} & {}, {
|
|
51
|
+
[x: number]: string;
|
|
52
|
+
} | {}, true>)>;
|
|
53
|
+
export declare const WithTabs: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
54
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
55
|
+
} | string[], {} & {}, {
|
|
56
|
+
[x: number]: string;
|
|
57
|
+
} | {}, true>)>;
|
|
33
58
|
export declare const LeftSidebar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
34
59
|
[x: string]: ((...args: any[]) => any) | null;
|
|
35
60
|
} | string[], {} & {}, {
|
|
36
61
|
[x: number]: string;
|
|
37
62
|
} | {}, true>)>;
|
|
63
|
+
export declare const WithLeftToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
64
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
65
|
+
} | string[], {} & {}, {
|
|
66
|
+
[x: number]: string;
|
|
67
|
+
} | {}, true>)>;
|
|
68
|
+
export declare const CollapsibleWithWithLeftToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
69
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
70
|
+
} | string[], {} & {}, {
|
|
71
|
+
[x: number]: string;
|
|
72
|
+
} | {}, true>)>;
|
|
@@ -4,26 +4,36 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
6
6
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
7
|
+
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
7
8
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
9
|
+
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
8
10
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
9
11
|
width: string;
|
|
10
12
|
}>;
|
|
11
13
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
14
|
+
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
15
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
12
16
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
17
|
+
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
13
18
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
14
19
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
15
20
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
16
21
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
22
|
+
open: () => void;
|
|
23
|
+
close: () => void;
|
|
17
24
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
18
25
|
width: {
|
|
19
26
|
type: NumberConstructor;
|
|
20
|
-
required: false;
|
|
21
27
|
default: number;
|
|
22
28
|
validator: (value?: any) => boolean;
|
|
23
29
|
};
|
|
24
30
|
minimumWidth: {
|
|
25
31
|
type: NumberConstructor;
|
|
26
|
-
|
|
32
|
+
default: number;
|
|
33
|
+
validator: (value?: any) => boolean;
|
|
34
|
+
};
|
|
35
|
+
maximumWidth: {
|
|
36
|
+
type: NumberConstructor;
|
|
27
37
|
default: number;
|
|
28
38
|
validator: (value?: any) => boolean;
|
|
29
39
|
};
|
|
@@ -39,16 +49,27 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
39
49
|
default: OrSidebarPlacement;
|
|
40
50
|
validator: (value?: any) => boolean;
|
|
41
51
|
};
|
|
52
|
+
draggable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
collapsible: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
42
60
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
43
61
|
width: {
|
|
44
62
|
type: NumberConstructor;
|
|
45
|
-
required: false;
|
|
46
63
|
default: number;
|
|
47
64
|
validator: (value?: any) => boolean;
|
|
48
65
|
};
|
|
49
66
|
minimumWidth: {
|
|
50
67
|
type: NumberConstructor;
|
|
51
|
-
|
|
68
|
+
default: number;
|
|
69
|
+
validator: (value?: any) => boolean;
|
|
70
|
+
};
|
|
71
|
+
maximumWidth: {
|
|
72
|
+
type: NumberConstructor;
|
|
52
73
|
default: number;
|
|
53
74
|
validator: (value?: any) => boolean;
|
|
54
75
|
};
|
|
@@ -64,35 +85,59 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
64
85
|
default: OrSidebarPlacement;
|
|
65
86
|
validator: (value?: any) => boolean;
|
|
66
87
|
};
|
|
88
|
+
draggable: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
collapsible: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
67
96
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
68
97
|
width: number;
|
|
69
98
|
minimumWidth: number;
|
|
99
|
+
maximumWidth: number;
|
|
70
100
|
side: OrSidebarPlacement;
|
|
101
|
+
draggable: boolean;
|
|
102
|
+
collapsible: boolean;
|
|
71
103
|
} & {} & {
|
|
72
104
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
73
105
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
74
106
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
75
107
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
76
108
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
109
|
+
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
77
110
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
111
|
+
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
78
112
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
79
113
|
width: string;
|
|
80
114
|
}>;
|
|
81
115
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
116
|
+
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
117
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
82
118
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
119
|
+
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
83
120
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
84
121
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
85
122
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
86
123
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
+
open: () => void;
|
|
125
|
+
close: () => void;
|
|
87
126
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
88
127
|
width: number;
|
|
89
128
|
minimumWidth: number;
|
|
129
|
+
maximumWidth: number;
|
|
90
130
|
side: OrSidebarPlacement;
|
|
131
|
+
draggable: boolean;
|
|
132
|
+
collapsible: boolean;
|
|
91
133
|
} & {} & {
|
|
92
134
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
93
135
|
}, {
|
|
94
136
|
width: number;
|
|
95
137
|
minimumWidth: number;
|
|
138
|
+
maximumWidth: number;
|
|
96
139
|
side: OrSidebarPlacement;
|
|
140
|
+
draggable: boolean;
|
|
141
|
+
collapsible: boolean;
|
|
97
142
|
}, true>);
|
|
98
143
|
export default _default;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { s as OrSidebarV3 } from '../../OrSidebar-61d84c3e.js';
|
|
2
|
+
export { O as OrSidebarPlacement } from '../../OrSidebarCollapseButton-1b9c83ef.js';
|
|
2
3
|
import '@vueuse/core';
|
|
3
4
|
import 'lodash';
|
|
4
5
|
import 'vue-demi';
|
|
5
6
|
import 'vue';
|
|
7
|
+
import '../../OrIconButton-2dcfb83e.js';
|
|
8
|
+
import '../../OrIcon-34f59f73.js';
|
|
9
|
+
import '../../OrTooltip-b07616f4.js';
|
|
10
|
+
import '../../OrPopover-40217b49.js';
|
|
11
|
+
import '@floating-ui/dom';
|
|
12
|
+
import '../../useElevation-31bfe1f6.js';
|
|
13
|
+
import '../../useResponsive-a02e95b7.js';
|
|
14
|
+
import '../../OrBottomSheet-13a416ef.js';
|
|
15
|
+
import '../../OrOverlay-afad3aa4.js';
|
|
16
|
+
import '../../OrTeleport.vue3-8099178c.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './or-sidebar-collapse-button';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { s as OrSidebarCollapseButton } from '../../../OrSidebarCollapseButton-1b9c83ef.js';
|
|
2
|
+
import 'lodash';
|
|
3
|
+
import 'vue-demi';
|
|
4
|
+
import '../../../OrIconButton-2dcfb83e.js';
|
|
5
|
+
import '../../../OrIcon-34f59f73.js';
|
|
6
|
+
import 'vue';
|
|
7
|
+
import '../../../OrTooltip-b07616f4.js';
|
|
8
|
+
import '@vueuse/core';
|
|
9
|
+
import '../../../OrPopover-40217b49.js';
|
|
10
|
+
import '@floating-ui/dom';
|
|
11
|
+
import '../../../useElevation-31bfe1f6.js';
|
|
12
|
+
import '../../../useResponsive-a02e95b7.js';
|
|
13
|
+
import '../../../OrBottomSheet-13a416ef.js';
|
|
14
|
+
import '../../../OrOverlay-afad3aa4.js';
|
|
15
|
+
import '../../../OrTeleport.vue3-8099178c.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
+
} | string[], {} & {}, {
|
|
5
|
+
[x: number]: string;
|
|
6
|
+
} | {}, true>)>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
+
} | string[], {} & {}, {
|
|
11
|
+
[x: number]: string;
|
|
12
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { OrSidebarPlacement } from '../../props';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
5
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
buttonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
icon: import("@vue/composition-api").ComputedRef<"keyboard_arrow_left" | "keyboard_arrow_right">;
|
|
8
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
|
+
/**
|
|
10
|
+
* Must be `true` if sidebar is collapsed.
|
|
11
|
+
*/
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
side: {
|
|
17
|
+
type: PropType<OrSidebarPlacement>;
|
|
18
|
+
default: OrSidebarPlacement;
|
|
19
|
+
validator: (value?: any) => boolean;
|
|
20
|
+
};
|
|
21
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
22
|
+
/**
|
|
23
|
+
* Must be `true` if sidebar is collapsed.
|
|
24
|
+
*/
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
side: {
|
|
30
|
+
type: PropType<OrSidebarPlacement>;
|
|
31
|
+
default: OrSidebarPlacement;
|
|
32
|
+
validator: (value?: any) => boolean;
|
|
33
|
+
};
|
|
34
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
35
|
+
modelValue: boolean;
|
|
36
|
+
side: OrSidebarPlacement;
|
|
37
|
+
} & {} & {
|
|
38
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
40
|
+
root: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
41
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
42
|
+
buttonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
43
|
+
icon: import("@vue/composition-api").ComputedRef<"keyboard_arrow_left" | "keyboard_arrow_right">;
|
|
44
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
45
|
+
modelValue: boolean;
|
|
46
|
+
side: OrSidebarPlacement;
|
|
47
|
+
} & {} & {
|
|
48
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
modelValue: boolean;
|
|
51
|
+
side: OrSidebarPlacement;
|
|
52
|
+
}, true>);
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrSidebarCollapseButton } from './OrSidebarCollapseButton.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { s as OrSidebarCollapseButton } from '../../../../OrSidebarCollapseButton-1b9c83ef.js';
|
|
2
|
+
import 'lodash';
|
|
3
|
+
import 'vue-demi';
|
|
4
|
+
import '../../../../OrIconButton-2dcfb83e.js';
|
|
5
|
+
import '../../../../OrIcon-34f59f73.js';
|
|
6
|
+
import 'vue';
|
|
7
|
+
import '../../../../OrTooltip-b07616f4.js';
|
|
8
|
+
import '@vueuse/core';
|
|
9
|
+
import '../../../../OrPopover-40217b49.js';
|
|
10
|
+
import '@floating-ui/dom';
|
|
11
|
+
import '../../../../useElevation-31bfe1f6.js';
|
|
12
|
+
import '../../../../useResponsive-a02e95b7.js';
|
|
13
|
+
import '../../../../OrBottomSheet-13a416ef.js';
|
|
14
|
+
import '../../../../OrOverlay-afad3aa4.js';
|
|
15
|
+
import '../../../../OrTeleport.vue3-8099178c.js';
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { OrSidebarPlacement } from './props';
|
|
2
2
|
export declare const SidebarRoot: string[];
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const SidebarBar: string[];
|
|
4
|
+
export declare const SidebarToolbar: string[];
|
|
5
|
+
export declare const CollapsibleSidebarToolbar: string[];
|
|
6
|
+
export declare const SidebarSides: Record<OrSidebarPlacement, string[]>;
|
|
7
|
+
export declare const SidebarToolbarSides: Record<OrSidebarPlacement, string[]>;
|
|
4
8
|
export declare const SidebarResize: string[];
|
|
5
9
|
export declare const SidebarResizeSides: Record<OrSidebarPlacement, string[]>;
|
|
10
|
+
export declare const SidebarCollapseButton: string[];
|
|
11
|
+
export declare const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]>;
|
|
6
12
|
export declare const SidebarResizingSides: Record<OrSidebarPlacement, string[]>;
|
|
7
13
|
export declare const SidebarMain: string[];
|
|
8
14
|
export declare const SidebarHeader: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-
|
|
1
|
+
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-2b1610ce.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../px-to-rem-0b26b83e.js';
|
|
4
4
|
import 'lodash';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -6,13 +6,13 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-c56998e7.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-e4fde5b4.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
13
13
|
export { s as OrCheckboxV3 } from './OrCheckbox-16c1e2f4.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from './OrChips-9afba42f.js';
|
|
15
|
-
export { s as OrCode, O as OrCodeLanguages } from './OrCode-
|
|
15
|
+
export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
|
|
@@ -49,7 +49,7 @@ export { s as OrMenuV3 } from './OrMenu-7f3ea117.js';
|
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-40217b49.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
|
|
51
51
|
export { M as ModalSize, s as OrModalV3 } from './OrModal-4219a6dc.js';
|
|
52
|
-
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-
|
|
52
|
+
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
|
|
53
53
|
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-0e682c7f.js';
|
|
54
54
|
export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
|
|
55
55
|
export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
@@ -63,13 +63,14 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
|
63
63
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-11fdf667.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-5406bf03.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
69
69
|
export { s as OrSelectV3 } from './OrSelect-466e50ca.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
71
|
+
export { s as OrSidebarV3 } from './OrSidebar-61d84c3e.js';
|
|
72
|
+
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-1b9c83ef.js';
|
|
73
|
+
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
73
74
|
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
|
|
74
75
|
export { s as OrSlider } from './OrSlider-87e2da8c.js';
|
|
75
76
|
export { s as OrSortHeaderV3 } from './OrSortHeader-a39f77f9.js';
|
|
@@ -113,7 +114,6 @@ import '@codemirror/state';
|
|
|
113
114
|
import '@codemirror/view';
|
|
114
115
|
import '@codemirror/commands';
|
|
115
116
|
import 'codemirror';
|
|
116
|
-
import '@codemirror/theme-one-dark';
|
|
117
117
|
import '@codemirror/lang-html';
|
|
118
118
|
import '@codemirror/lang-css';
|
|
119
119
|
import '@codemirror/lang-json';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.73.0
|
|
3
|
+
"version": "2.73.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -37,9 +37,8 @@
|
|
|
37
37
|
"@codemirror/lang-javascript": "6.0.2",
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
|
-
"@codemirror/theme-one-dark": "^6.1.1",
|
|
41
40
|
"@floating-ui/dom": "0.3.1",
|
|
42
|
-
"@onereach/styles": "^2.
|
|
41
|
+
"@onereach/styles": "^2.34.0",
|
|
43
42
|
"@splidejs/splide": "4.0.6",
|
|
44
43
|
"@types/lodash": "4.14.173",
|
|
45
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -125,5 +124,6 @@
|
|
|
125
124
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
126
125
|
},
|
|
127
126
|
"./package.json": "./package.json"
|
|
128
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"gitHead": "83b1879be32d1d75b70fdf4676de496bf8fe7db2"
|
|
129
129
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<or-icon-button
|
|
25
25
|
v-if="isShowingFullscreen"
|
|
26
26
|
icon="fullscreen"
|
|
27
|
-
icon-color="neutral-
|
|
27
|
+
icon-color="neutral-3"
|
|
28
28
|
class="fullscreen-button"
|
|
29
29
|
@click="toggleFullscreen(true)"
|
|
30
30
|
/>
|
|
@@ -85,9 +85,8 @@ import { Language, LanguageSupport } from '@codemirror/language';
|
|
|
85
85
|
import { EditorState, Extension, Transaction } from '@codemirror/state';
|
|
86
86
|
import { ViewUpdate, keymap } from '@codemirror/view';
|
|
87
87
|
import { indentWithTab } from '@codemirror/commands';
|
|
88
|
+
import { useElementHover } from '@vueuse/core';
|
|
88
89
|
import { basicSetup, EditorView } from 'codemirror';
|
|
89
|
-
import { useElementHover, useMutationObserver, type MaybeElementRef } from '@vueuse/core';
|
|
90
|
-
import { oneDark } from '@codemirror/theme-one-dark';
|
|
91
90
|
import _ from 'lodash';
|
|
92
91
|
import { defineComponent, PropType, ref, Ref } from 'vue-demi';
|
|
93
92
|
import { OrIconButton } from '../or-button-v2';
|
|
@@ -186,19 +185,6 @@ export default defineComponent({
|
|
|
186
185
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
187
186
|
|
|
188
187
|
setup(props, { emit }) {
|
|
189
|
-
// theming refs
|
|
190
|
-
const parent: Element | null = document.querySelector('[data-theme]') || document.querySelector('html');
|
|
191
|
-
const themeEl = ref<HTMLElement | null>(parent as HTMLElement);
|
|
192
|
-
const isDark = ref<boolean>(parent?.getAttribute?.('data-theme') === 'dark');
|
|
193
|
-
|
|
194
|
-
const themeObserver = useMutationObserver(themeEl, (mutations) => {
|
|
195
|
-
const mutation = mutations.find((m) => m.attributeName === 'data-theme');
|
|
196
|
-
if (!mutation) return;
|
|
197
|
-
isDark.value = (mutation.target as HTMLElement)?.getAttribute?.('data-theme') === 'dark';
|
|
198
|
-
}, {
|
|
199
|
-
attributes: true,
|
|
200
|
-
});
|
|
201
|
-
// editor config
|
|
202
188
|
const root = ref<HTMLDivElement>();
|
|
203
189
|
const target = ref<HTMLDivElement>();
|
|
204
190
|
const fullscreenTarget = ref<HTMLDivElement>();
|
|
@@ -220,8 +206,6 @@ export default defineComponent({
|
|
|
220
206
|
fullscreenTarget,
|
|
221
207
|
editor,
|
|
222
208
|
isHovered,
|
|
223
|
-
isDark,
|
|
224
|
-
themeObserver,
|
|
225
209
|
};
|
|
226
210
|
},
|
|
227
211
|
|
|
@@ -242,9 +226,8 @@ export default defineComponent({
|
|
|
242
226
|
localExtensions(): Extension[] {
|
|
243
227
|
const { allowDrop, allowPaste, lineWrapping } = this;
|
|
244
228
|
const ext = _.compact([
|
|
245
|
-
...(this.isDark ? [oneDark] : []),
|
|
246
229
|
// Toggle light/dark mode
|
|
247
|
-
|
|
230
|
+
EditorView.baseTheme({}),
|
|
248
231
|
// locale settings
|
|
249
232
|
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
250
233
|
// Parser language setting
|
|
@@ -276,10 +259,11 @@ export default defineComponent({
|
|
|
276
259
|
// line wrapping
|
|
277
260
|
lineWrapping ? EditorView.lineWrapping : undefined,
|
|
278
261
|
keymap.of([indentWithTab]),
|
|
279
|
-
...this.extensions,
|
|
280
262
|
]) as Extension[];
|
|
281
263
|
|
|
282
|
-
|
|
264
|
+
// Append Extensions (such as basic-setup)
|
|
265
|
+
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
266
|
+
return ext;
|
|
283
267
|
},
|
|
284
268
|
isShowingError(): boolean {
|
|
285
269
|
return !!this.error && this.isInvalid;
|
|
@@ -329,7 +313,6 @@ export default defineComponent({
|
|
|
329
313
|
},
|
|
330
314
|
|
|
331
315
|
beforeUnmount() {
|
|
332
|
-
this.themeObserver.stop();
|
|
333
316
|
this.editor?.destroy();
|
|
334
317
|
},
|
|
335
318
|
|
|
@@ -115,6 +115,7 @@ export default defineComponent({
|
|
|
115
115
|
warning: ($c-warning, $c-warning-lighten-45),
|
|
116
116
|
success: ($c-success, $c-success-lighten-45),
|
|
117
117
|
);
|
|
118
|
+
|
|
118
119
|
/** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */
|
|
119
120
|
--alignment-height: #{$lh-1};
|
|
120
121
|
|
|
@@ -177,30 +178,4 @@ export default defineComponent({
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
-
[data-theme="dark"] {
|
|
182
|
-
.or-notification {
|
|
183
|
-
$notification-types: (
|
|
184
|
-
info: ($c-neutral-6, $c-primary-darken-45),
|
|
185
|
-
error: ($c-neutral-6, $c-error-darken-45),
|
|
186
|
-
warning: ($c-neutral-6, $c-warning-darken-45),
|
|
187
|
-
success: ($c-neutral-6, $c-success-darken-45),
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
.or-icon {
|
|
191
|
-
color: $c-neutral-1;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@each $type, $colors in $notification-types {
|
|
195
|
-
&.is-type-#{$type} {
|
|
196
|
-
background-color: list.nth($colors, 2);
|
|
197
|
-
color: list.nth($colors, 1);
|
|
198
|
-
|
|
199
|
-
a {
|
|
200
|
-
color: list.nth($colors, 1);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
181
|
</style>
|
|
@@ -94,12 +94,13 @@ export default defineComponent({
|
|
|
94
94
|
// Events
|
|
95
95
|
debouncedWatch(
|
|
96
96
|
localModelValue,
|
|
97
|
-
() => context.emit('search', localModelValue.value),
|
|
97
|
+
() => localModelValue.value.length > 0 && context.emit('search', localModelValue.value),
|
|
98
98
|
{ debounce: props.debounce },
|
|
99
99
|
);
|
|
100
100
|
|
|
101
101
|
watch(localModelValue, (val, beforeVal) => {
|
|
102
102
|
if (val.length === 0 && beforeVal.length > 0) {
|
|
103
|
+
context.emit('search');
|
|
103
104
|
context.emit('clear');
|
|
104
105
|
}
|
|
105
106
|
});
|