@onereach/ui-components 2.69.2-beta.2133.0 → 2.69.2-beta.2142.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/{OrAvatar-ae61bfb9.js → OrAvatar-2fa559e1.js} +15 -41
- package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-66d37aff.js} +14 -1
- package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-e1ca1422.js} +1 -1
- package/dist/bundled/v2/OrPagination-734cb415.js +297 -0
- package/dist/bundled/v2/{OrSelect-b20a9be0.js → OrSelect-ff9e4fbd.js} +3 -3
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +5 -4
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.js +20 -0
- package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/bundled/v2/components/or-select-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v2/index.js +6 -5
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +13 -35
- package/dist/bundled/v3/OrButton-9640286b.js +34 -0
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-06d8ead1.js} +13 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-861158b5.js → OrCardCollection.vue_vue_type_script_lang-3993a015.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f1b81f00.js} +6 -36
- package/dist/bundled/v3/{OrIconButton-1581013c.js → OrIconButton-4bd33e3c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6f801ff.js → OrIconButton.vue_vue_type_script_lang-641f6e06.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-3a8189f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js} +2 -2
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
- package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-80a7b906.js → OrModal.vue_vue_type_script_lang-00a477f0.js} +2 -2
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-d852d8af.js +180 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-15285ce4.js → OrSelect.vue_vue_type_script_lang-05b03858.js} +3 -3
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-dc6a4011.js → OrTag.vue_vue_type_script_lang-92d9fb12.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-7c3c0b12.js → OrToastContainer-afb51e5d.js} +1 -1
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +17 -14
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -4
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.js +22 -0
- package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/bundled/v3/components/or-select-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +254 -177
- package/dist/bundled/v3/{types-dcc78caa.js → types-6c5eee23.js} +2 -2
- package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-0afdef36.js} +15 -41
- package/dist/esm/v2/{OrButton-357a5756.js → OrButton-3d4fc9da.js} +14 -1
- package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ba3f8c45.js} +1 -1
- package/dist/esm/v2/OrPagination-07246e59.js +297 -0
- package/dist/esm/v2/{OrSelect-f0ff5a85.js → OrSelect-651bb83e.js} +3 -3
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +5 -4
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-avatar-v3/index.js +1 -2
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/esm/v2/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-pagination-v3/index.js +18 -0
- package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/esm/v2/components/or-select-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v2/index.js +5 -4
- package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-ef88d31c.js} +16 -43
- package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-970ae320.js} +15 -2
- package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-7cb2f36b.js} +1 -1
- package/dist/esm/v3/OrPagination-e1122a8e.js +258 -0
- package/dist/esm/v3/{OrSelect-7e813982.js → OrSelect-28a175dc.js} +3 -3
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +5 -4
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-avatar-v3/index.js +1 -2
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/esm/v3/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-pagination-v3/index.js +17 -0
- package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/esm/v3/components/or-select-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v3/index.js +5 -4
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-avatar-v3/OrAvatar.stories3.ts +7 -9
- package/src/components/or-avatar-v3/OrAvatar.vue +2 -22
- package/src/components/or-avatar-v3/props.ts +0 -1
- package/src/components/or-avatar-v3/styles.ts +11 -49
- package/src/components/or-button-v3/OrButton.stories3.ts +4 -0
- package/src/components/or-button-v3/OrButton.vue +6 -0
- package/src/components/or-button-v3/styles.ts +15 -1
- package/src/components/or-pagination-v3/OrPagination.docs.mdx +7 -0
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +87 -0
- package/src/components/or-pagination-v3/OrPagination.vue +261 -0
- package/src/components/or-pagination-v3/index.ts +2 -0
- package/src/components/or-pagination-v3/styles.ts +30 -0
- package/src/components/or-pagination-v3/types.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +3 -3
- package/src/components/or-select-v3/index.ts +1 -0
- package/src/components/or-select-v3/types.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../../OrButton-
|
|
1
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../../OrButton-3d4fc9da.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-ba3f8c45.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrButton-
|
|
3
|
+
import '../../OrButton-3d4fc9da.js';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '../../OrLoader-f857d55b.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,110 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { PaginationModel } from './types';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
6
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
+
} | string[], {} & {}, {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} | {}, true> | undefined>;
|
|
10
|
+
limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
11
|
+
limitMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
12
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
13
|
+
} | string[], {} & {}, {
|
|
14
|
+
[x: number]: string;
|
|
15
|
+
} | {}, true> | undefined>;
|
|
16
|
+
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
17
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
18
|
+
offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
|
+
limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
|
|
21
|
+
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
22
|
+
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
23
|
+
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
24
|
+
firstPage: import("@vue/composition-api").ComputedRef<number>;
|
|
25
|
+
lastPage: import("@vue/composition-api").ComputedRef<number>;
|
|
26
|
+
buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
|
|
27
|
+
toPreviousPage: () => void;
|
|
28
|
+
toNextPage: () => void;
|
|
29
|
+
toPage: (page: number) => void;
|
|
30
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: PropType<PaginationModel>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
value: {
|
|
36
|
+
type: PropType<PaginationModel>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
length: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
pageSizeOptions: {
|
|
44
|
+
type: PropType<number[]>;
|
|
45
|
+
default: () => number[];
|
|
46
|
+
};
|
|
47
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
48
|
+
modelValue: {
|
|
49
|
+
type: PropType<PaginationModel>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
value: {
|
|
53
|
+
type: PropType<PaginationModel>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
length: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
pageSizeOptions: {
|
|
61
|
+
type: PropType<number[]>;
|
|
62
|
+
default: () => number[];
|
|
63
|
+
};
|
|
64
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
65
|
+
length: number;
|
|
66
|
+
modelValue: PaginationModel;
|
|
67
|
+
value: PaginationModel;
|
|
68
|
+
pageSizeOptions: number[];
|
|
69
|
+
} & {} & {
|
|
70
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
72
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
73
|
+
limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
74
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
75
|
+
} | string[], {} & {}, {
|
|
76
|
+
[x: number]: string;
|
|
77
|
+
} | {}, true> | undefined>;
|
|
78
|
+
limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
79
|
+
limitMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
80
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
81
|
+
} | string[], {} & {}, {
|
|
82
|
+
[x: number]: string;
|
|
83
|
+
} | {}, true> | undefined>;
|
|
84
|
+
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
85
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
86
|
+
offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
87
|
+
limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
88
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
|
|
89
|
+
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
90
|
+
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
91
|
+
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
92
|
+
firstPage: import("@vue/composition-api").ComputedRef<number>;
|
|
93
|
+
lastPage: import("@vue/composition-api").ComputedRef<number>;
|
|
94
|
+
buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
|
|
95
|
+
toPreviousPage: () => void;
|
|
96
|
+
toNextPage: () => void;
|
|
97
|
+
toPage: (page: number) => void;
|
|
98
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
99
|
+
length: number;
|
|
100
|
+
modelValue: PaginationModel;
|
|
101
|
+
value: PaginationModel;
|
|
102
|
+
pageSizeOptions: number[];
|
|
103
|
+
} & {} & {
|
|
104
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
modelValue: PaginationModel;
|
|
107
|
+
value: PaginationModel;
|
|
108
|
+
pageSizeOptions: number[];
|
|
109
|
+
}, true>);
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { _ as OrPaginationV3 } from '../../OrPagination-07246e59.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import '../../useClassAttribute-47fdb016.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import '../../OrButton-3d4fc9da.js';
|
|
6
|
+
import '../../OrLoader-f857d55b.js';
|
|
7
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
8
|
+
import '../../OrIcon-5e394c62.js';
|
|
9
|
+
import '../../OrMenuItem-c7f28480.js';
|
|
10
|
+
import '../../OrMenu-df27d0ef.js';
|
|
11
|
+
import '../../OrPopover-9bafbdb4.js';
|
|
12
|
+
import '@floating-ui/dom';
|
|
13
|
+
import '../../useElevation-31bfe1f6.js';
|
|
14
|
+
import '../../useResponsive-a02e95b7.js';
|
|
15
|
+
import '../../OrBottomSheet-16c2e610.js';
|
|
16
|
+
import '../../OrOverlay-18ba2dc6.js';
|
|
17
|
+
import '../../OrTeleport.vue2-fb92f29f.js';
|
|
18
|
+
import 'portal-vue';
|
|
@@ -23,13 +23,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
23
23
|
dropdownStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
24
24
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
25
25
|
controlId: import("@vue/composition-api").Ref<string>;
|
|
26
|
-
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | string[]>;
|
|
26
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
|
|
27
27
|
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
28
28
|
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
29
29
|
selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
|
|
30
30
|
searchText: import("@vue/composition-api").Ref<string>;
|
|
31
31
|
internalSearchOptions: import("@vue/composition-api").Ref<{
|
|
32
|
-
value: string;
|
|
32
|
+
value: string | number;
|
|
33
33
|
label: string;
|
|
34
34
|
}[]>;
|
|
35
35
|
resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
|
|
@@ -49,11 +49,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
49
49
|
default: SelectOption[];
|
|
50
50
|
};
|
|
51
51
|
modelValue: {
|
|
52
|
-
type: PropType<string | string[]>;
|
|
52
|
+
type: PropType<string | number | (string | number)[]>;
|
|
53
53
|
default: undefined;
|
|
54
54
|
};
|
|
55
55
|
value: {
|
|
56
|
-
type: PropType<string | string[]>;
|
|
56
|
+
type: PropType<string | number | (string | number)[]>;
|
|
57
57
|
default: undefined;
|
|
58
58
|
};
|
|
59
59
|
multiple: {
|
|
@@ -114,11 +114,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
114
114
|
default: SelectOption[];
|
|
115
115
|
};
|
|
116
116
|
modelValue: {
|
|
117
|
-
type: PropType<string | string[]>;
|
|
117
|
+
type: PropType<string | number | (string | number)[]>;
|
|
118
118
|
default: undefined;
|
|
119
119
|
};
|
|
120
120
|
value: {
|
|
121
|
-
type: PropType<string | string[]>;
|
|
121
|
+
type: PropType<string | number | (string | number)[]>;
|
|
122
122
|
default: undefined;
|
|
123
123
|
};
|
|
124
124
|
multiple: {
|
|
@@ -173,8 +173,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
173
173
|
label: string;
|
|
174
174
|
options: SelectOption[];
|
|
175
175
|
searchOptions: SelectOption[];
|
|
176
|
-
modelValue: string | string[];
|
|
177
|
-
value: string | string[];
|
|
176
|
+
modelValue: string | number | (string | number)[];
|
|
177
|
+
value: string | number | (string | number)[];
|
|
178
178
|
multiple: boolean;
|
|
179
179
|
size: SelectSize;
|
|
180
180
|
placeholder: string;
|
|
@@ -210,13 +210,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
210
210
|
dropdownStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
211
211
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
212
212
|
controlId: import("@vue/composition-api").Ref<string>;
|
|
213
|
-
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | string[]>;
|
|
213
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
|
|
214
214
|
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
215
215
|
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
216
216
|
selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
|
|
217
217
|
searchText: import("@vue/composition-api").Ref<string>;
|
|
218
218
|
internalSearchOptions: import("@vue/composition-api").Ref<{
|
|
219
|
-
value: string;
|
|
219
|
+
value: string | number;
|
|
220
220
|
label: string;
|
|
221
221
|
}[]>;
|
|
222
222
|
resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
|
|
@@ -230,8 +230,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
230
230
|
label: string;
|
|
231
231
|
options: SelectOption[];
|
|
232
232
|
searchOptions: SelectOption[];
|
|
233
|
-
modelValue: string | string[];
|
|
234
|
-
value: string | string[];
|
|
233
|
+
modelValue: string | number | (string | number)[];
|
|
234
|
+
value: string | number | (string | number)[];
|
|
235
235
|
multiple: boolean;
|
|
236
236
|
size: SelectSize;
|
|
237
237
|
placeholder: string;
|
|
@@ -249,8 +249,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
249
249
|
label: string;
|
|
250
250
|
options: SelectOption[];
|
|
251
251
|
searchOptions: SelectOption[];
|
|
252
|
-
modelValue: string | string[];
|
|
253
|
-
value: string | string[];
|
|
252
|
+
modelValue: string | number | (string | number)[];
|
|
253
|
+
value: string | number | (string | number)[];
|
|
254
254
|
multiple: boolean;
|
|
255
255
|
size: SelectSize;
|
|
256
256
|
placeholder: string;
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, _ as OrAvatar } from './OrAvatar-4824c57f.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-0afdef36.js';
|
|
3
3
|
export { _ as OrBottomSheetV3 } from './OrBottomSheet-16c2e610.js';
|
|
4
4
|
export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-2ca1c3d6.js';
|
|
5
5
|
export { _ as OrButtonV2 } from './OrButton-c4f9955b.js';
|
|
6
6
|
export { _ as OrIconButton } from './OrIconButton-014e86a7.js';
|
|
7
7
|
export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
|
|
8
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from './OrButton-
|
|
8
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from './OrButton-3d4fc9da.js';
|
|
9
9
|
export { _ as OrCard } from './OrCard-b7268256.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-f6b07557.js';
|
|
11
11
|
export { C as CardCollectionView, _ as OrCardCollectionV3 } from './OrCardCollection-4f001551.js';
|
|
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-41dd5f9b.js';
|
|
|
19
19
|
export { _ as OrCollapse } from './OrCollapse-4d892ca3.js';
|
|
20
20
|
export { _ 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-75abefdd.js';
|
|
21
21
|
export { _ as OrConfirm } from './OrConfirm-d7112dd3.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-ba3f8c45.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-349df9b2.js';
|
|
24
24
|
export { _ as OrError } from './OrError-081130bb.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from './OrErrorTag-782dd714.js';
|
|
@@ -58,6 +58,7 @@ export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotificatio
|
|
|
58
58
|
export { _ as OrOverflowMenu } from './OrOverflowMenu-10a4166a.js';
|
|
59
59
|
export { _ as OrOverlay } from './OrOverlay-3b52865d.js';
|
|
60
60
|
export { _ as OrOverlayV3 } from './OrOverlay-18ba2dc6.js';
|
|
61
|
+
export { _ as OrPaginationV3 } from './OrPagination-07246e59.js';
|
|
61
62
|
export { _ as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-4ee24824.js';
|
|
62
63
|
export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-c27c8946.js';
|
|
63
64
|
export { _ as OrRadio } from './OrRadio-e4198532.js';
|
|
@@ -66,7 +67,7 @@ export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
|
|
|
66
67
|
export { _ as OrSearchV3 } from './OrSearch-ddb7c1fe.js';
|
|
67
68
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
|
|
68
69
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
69
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
70
|
+
export { _ as OrSelectV3 } from './OrSelect-651bb83e.js';
|
|
70
71
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
|
|
71
72
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
|
|
72
73
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-cc94bdc9.js';
|
|
@@ -2,8 +2,7 @@ import { defineComponent, ref, computed, watchPostEffect } from 'vue-demi';
|
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
|
|
5
|
-
import {
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createBlock, createCommentVNode } from 'vue';
|
|
5
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, createElementVNode, normalizeClass } from 'vue';
|
|
7
6
|
|
|
8
7
|
var AvatarSize;
|
|
9
8
|
(function (AvatarSize) {
|
|
@@ -11,7 +10,6 @@ var AvatarSize;
|
|
|
11
10
|
AvatarSize["L"] = "l";
|
|
12
11
|
AvatarSize["M"] = "m";
|
|
13
12
|
AvatarSize["S"] = "s";
|
|
14
|
-
AvatarSize["XS"] = "xs";
|
|
15
13
|
})(AvatarSize || (AvatarSize = {}));
|
|
16
14
|
var AvatarColor;
|
|
17
15
|
(function (AvatarColor) {
|
|
@@ -36,19 +34,24 @@ const AvatarImage = [
|
|
|
36
34
|
const AvatarRootSizes = {
|
|
37
35
|
'xl': [
|
|
38
36
|
// Box
|
|
39
|
-
'w-[80px]', 'h-[80px]'
|
|
37
|
+
'w-[80px]', 'h-[80px]',
|
|
38
|
+
// Typography
|
|
39
|
+
'text-[32px]'],
|
|
40
40
|
'l': [
|
|
41
41
|
// Box
|
|
42
|
-
'w-[64px]', 'h-[64px]'
|
|
42
|
+
'w-[64px]', 'h-[64px]',
|
|
43
|
+
// Typography
|
|
44
|
+
'text-[24px]'],
|
|
43
45
|
'm': [
|
|
44
46
|
// Box
|
|
45
|
-
'w-[40px]', 'h-[40px]'
|
|
47
|
+
'w-[40px]', 'h-[40px]',
|
|
48
|
+
// Typography
|
|
49
|
+
'text-[16px]'],
|
|
46
50
|
's': [
|
|
47
51
|
// Box
|
|
48
|
-
'w-[32px]', 'h-[32px]'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'w-[24px]', 'h-[24px]']
|
|
52
|
+
'w-[32px]', 'h-[32px]',
|
|
53
|
+
// Typography
|
|
54
|
+
'text-[16px]']
|
|
52
55
|
};
|
|
53
56
|
const AvatarRootColors = {
|
|
54
57
|
[AvatarColor.blue]: [
|
|
@@ -70,26 +73,9 @@ const AvatarRootColors = {
|
|
|
70
73
|
// Theme
|
|
71
74
|
'text-white', 'dark:text-overlay-dark']
|
|
72
75
|
};
|
|
73
|
-
const AvatarRootAbbreviationSizes = {
|
|
74
|
-
'xl': ['typography-headline-1'],
|
|
75
|
-
'l': ['typography-headline-1'],
|
|
76
|
-
'm': ['typography-body-1-bold'],
|
|
77
|
-
's': ['typography-body-1-bold'],
|
|
78
|
-
'xs': ['typography-caption-semibold']
|
|
79
|
-
};
|
|
80
|
-
const AvatarRootIconSizes = {
|
|
81
|
-
'xl': ['text-[40px]'],
|
|
82
|
-
'l': ['text-[32px]'],
|
|
83
|
-
'm': ['text-[20px]'],
|
|
84
|
-
's': ['text-[16px]'],
|
|
85
|
-
'xs': ['text-[16px]']
|
|
86
|
-
};
|
|
87
76
|
|
|
88
77
|
var script = defineComponent({
|
|
89
78
|
name: 'OrAvatar',
|
|
90
|
-
components: {
|
|
91
|
-
OrIcon: script$1
|
|
92
|
-
},
|
|
93
79
|
inheritAttrs: false,
|
|
94
80
|
props: {
|
|
95
81
|
src: {
|
|
@@ -100,10 +86,6 @@ var script = defineComponent({
|
|
|
100
86
|
type: String,
|
|
101
87
|
default: AvatarSize.M
|
|
102
88
|
},
|
|
103
|
-
icon: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: undefined
|
|
106
|
-
},
|
|
107
89
|
color: {
|
|
108
90
|
type: String,
|
|
109
91
|
default: AvatarColor.auto,
|
|
@@ -119,12 +101,9 @@ var script = defineComponent({
|
|
|
119
101
|
setup(props) {
|
|
120
102
|
// Refs
|
|
121
103
|
const root = ref();
|
|
122
|
-
const isIcon = computed(() => {
|
|
123
|
-
return !props.icon;
|
|
124
|
-
});
|
|
125
104
|
// Styles
|
|
126
105
|
const classAttribute = useClassAttribute();
|
|
127
|
-
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color],
|
|
106
|
+
const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
|
|
128
107
|
const imageStyles = computed(() => [...AvatarImage]);
|
|
129
108
|
// Effects
|
|
130
109
|
watchPostEffect(() => {
|
|
@@ -147,21 +126,15 @@ var script = defineComponent({
|
|
|
147
126
|
|
|
148
127
|
const _hoisted_1 = ["src"];
|
|
149
128
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
150
|
-
const _component_or_icon = resolveComponent("or-icon");
|
|
151
129
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
152
130
|
ref: "root"
|
|
153
131
|
}, _ctx.$attrs, {
|
|
154
132
|
class: _ctx.rootStyles
|
|
155
|
-
}), [renderSlot(_ctx.$slots, "default", {}, () => [
|
|
156
|
-
key: 0,
|
|
133
|
+
}), [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("img", {
|
|
157
134
|
class: normalizeClass(_ctx.imageStyles),
|
|
158
135
|
src: _ctx.src,
|
|
159
136
|
alt: ''
|
|
160
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_1))
|
|
161
|
-
key: 1,
|
|
162
|
-
icon: _ctx.icon,
|
|
163
|
-
size: "inherit"
|
|
164
|
-
}, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)])], 16 /* FULL_PROPS */);
|
|
137
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_1)])], 16 /* FULL_PROPS */);
|
|
165
138
|
}
|
|
166
139
|
|
|
167
140
|
script.render = render;
|
|
@@ -77,7 +77,15 @@ const ButtonRootColors = {
|
|
|
77
77
|
'danger-link': [
|
|
78
78
|
// Theme
|
|
79
79
|
'theme-preset-4-error', 'dark:theme-preset-4-error-dark'],
|
|
80
|
-
'inherit-link': [
|
|
80
|
+
'inherit-link': [
|
|
81
|
+
// Typography
|
|
82
|
+
'typography-caption-regular',
|
|
83
|
+
// Typography (activated)
|
|
84
|
+
'activated:typography-caption-bold',
|
|
85
|
+
// Theme
|
|
86
|
+
'theme-foreground-inherit', 'dark:theme-foreground-inherit',
|
|
87
|
+
// Theme (activated)
|
|
88
|
+
'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
|
|
81
89
|
};
|
|
82
90
|
|
|
83
91
|
var script = defineComponent({
|
|
@@ -99,6 +107,10 @@ var script = defineComponent({
|
|
|
99
107
|
type: String,
|
|
100
108
|
default: ButtonColor.Primary
|
|
101
109
|
},
|
|
110
|
+
activated: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false
|
|
113
|
+
},
|
|
102
114
|
disabled: {
|
|
103
115
|
type: Boolean,
|
|
104
116
|
default: false
|
|
@@ -127,7 +139,7 @@ var script = defineComponent({
|
|
|
127
139
|
}
|
|
128
140
|
});
|
|
129
141
|
|
|
130
|
-
const _hoisted_1 = ["type", "disabled"];
|
|
142
|
+
const _hoisted_1 = ["type", "activated", "disabled"];
|
|
131
143
|
const _hoisted_2 = {
|
|
132
144
|
key: 0,
|
|
133
145
|
class: /*#__PURE__*/normalizeClass(['absolute'])
|
|
@@ -139,6 +151,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
151
|
}, _ctx.$attrs, {
|
|
140
152
|
class: _ctx.rootStyles,
|
|
141
153
|
type: _ctx.type,
|
|
154
|
+
activated: _ctx.activated ? '' : null,
|
|
142
155
|
disabled: _ctx.disabled,
|
|
143
156
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
|
|
144
157
|
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import { s as script$2, a as ButtonColor } from './OrButton-
|
|
2
|
+
import { s as script$2, a as ButtonColor } from './OrButton-970ae320.js';
|
|
3
3
|
import { s as script$1 } from './OrOverlay-738a44d5.js';
|
|
4
4
|
import { s as script$3 } from './OrInput-41691fb3.js';
|
|
5
5
|
import { useMagicKeys, whenever } from '@vueuse/core';
|