@onereach/ui-components 2.69.1 → 2.69.2-beta.2106.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/{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-354e9abd.js +296 -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 +4 -3
- 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 +5 -4
- 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/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f1b81f00.js} +6 -36
- package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-ff22b11c.js +180 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-15285ce4.js → OrSelect.vue_vue_type_script_lang-05b03858.js} +2 -2
- 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/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +7 -4
- 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-confirm-v3/index.js +3 -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-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 +1 -1
- 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/index.js +234 -152
- 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-a56eb93b.js +296 -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 +4 -3
- 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 +4 -3
- 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-d351a13b.js +257 -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 +4 -3
- 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 +4 -3
- package/package.json +2 -3
- package/src/components/index.ts +1 -0
- 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 +260 -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
|
@@ -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: PaginationModel;
|
|
34
|
+
};
|
|
35
|
+
value: {
|
|
36
|
+
type: PropType<PaginationModel>;
|
|
37
|
+
default: PaginationModel;
|
|
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: PaginationModel;
|
|
51
|
+
};
|
|
52
|
+
value: {
|
|
53
|
+
type: PropType<PaginationModel>;
|
|
54
|
+
default: PaginationModel;
|
|
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,17 @@
|
|
|
1
|
+
export { s as OrPaginationV3 } from '../../OrPagination-d351a13b.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import '../../useClassAttribute-47fdb016.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import '../../OrButton-970ae320.js';
|
|
6
|
+
import '../../OrLoader-b3cf4231.js';
|
|
7
|
+
import 'vue';
|
|
8
|
+
import '../../OrIcon-b195169c.js';
|
|
9
|
+
import '../../OrMenuItem-9da279f6.js';
|
|
10
|
+
import '../../OrMenu-840038cd.js';
|
|
11
|
+
import '../../OrPopover-1075dd38.js';
|
|
12
|
+
import '@floating-ui/dom';
|
|
13
|
+
import '../../useElevation-31bfe1f6.js';
|
|
14
|
+
import '../../useResponsive-a02e95b7.js';
|
|
15
|
+
import '../../OrBottomSheet-62817aec.js';
|
|
16
|
+
import '../../OrOverlay-738a44d5.js';
|
|
17
|
+
import '../../OrTeleport.vue3-8099178c.js';
|
|
@@ -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/v3/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-e
|
|
|
3
3
|
export { s as OrBottomSheetV3 } from './OrBottomSheet-62817aec.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
|
|
6
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-
|
|
6
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-970ae320.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
|
|
9
9
|
export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-5a0febaf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-ee19a5e6.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-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-7cb2f36b.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-98252eef.js';
|
|
@@ -53,6 +53,7 @@ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotificatio
|
|
|
53
53
|
export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
54
54
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
55
55
|
export { s as OrOverlayV3 } from './OrOverlay-738a44d5.js';
|
|
56
|
+
export { s as OrPaginationV3 } from './OrPagination-d351a13b.js';
|
|
56
57
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
|
|
57
58
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-407002e0.js';
|
|
58
59
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
@@ -61,7 +62,7 @@ export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
|
|
|
61
62
|
export { s as OrSearchV3 } from './OrSearch-cdde55ce.js';
|
|
62
63
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
|
|
63
64
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
64
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
65
|
+
export { s as OrSelectV3 } from './OrSelect-28a175dc.js';
|
|
65
66
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
66
67
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
67
68
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.69.
|
|
3
|
+
"version": "2.69.2-beta.2106.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -123,6 +123,5 @@
|
|
|
123
123
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
124
124
|
},
|
|
125
125
|
"./package.json": "./package.json"
|
|
126
|
-
}
|
|
127
|
-
"gitHead": "91728e79fd4e9fbe584d302a41e170f2670f7f28"
|
|
126
|
+
}
|
|
128
127
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './or-notification-v3';
|
|
|
52
52
|
export * from './or-overflow-menu';
|
|
53
53
|
export * from './or-overlay';
|
|
54
54
|
export * from './or-overlay-v3';
|
|
55
|
+
export * from './or-pagination-v3';
|
|
55
56
|
export * from './or-popover-v3';
|
|
56
57
|
export * from './or-progress';
|
|
57
58
|
export * from './or-progress-v3';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
v-bind="$attrs"
|
|
5
5
|
:class="rootStyles"
|
|
6
6
|
:type="type"
|
|
7
|
+
:activated="activated ? '' : null"
|
|
7
8
|
:disabled="disabled"
|
|
8
9
|
@click="$emit('click', $event)"
|
|
9
10
|
@focus="$emit('focus', $event)"
|
|
@@ -63,6 +64,11 @@ export default defineComponent({
|
|
|
63
64
|
default: ButtonColor.Primary,
|
|
64
65
|
},
|
|
65
66
|
|
|
67
|
+
activated: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false,
|
|
70
|
+
},
|
|
71
|
+
|
|
66
72
|
disabled: {
|
|
67
73
|
type: Boolean,
|
|
68
74
|
default: false,
|
|
@@ -110,5 +110,19 @@ export const ButtonRootColors: Record<`${ButtonColor}-${ButtonVariant}`, string[
|
|
|
110
110
|
'dark:theme-preset-4-error-dark',
|
|
111
111
|
],
|
|
112
112
|
|
|
113
|
-
'inherit-link': [
|
|
113
|
+
'inherit-link': [
|
|
114
|
+
// Typography
|
|
115
|
+
'typography-caption-regular',
|
|
116
|
+
|
|
117
|
+
// Typography (activated)
|
|
118
|
+
'activated:typography-caption-bold',
|
|
119
|
+
|
|
120
|
+
// Theme
|
|
121
|
+
'theme-foreground-inherit',
|
|
122
|
+
'dark:theme-foreground-inherit',
|
|
123
|
+
|
|
124
|
+
// Theme (activated)
|
|
125
|
+
'activated:theme-foreground-default',
|
|
126
|
+
'dark:activated:theme-foreground-default-dark',
|
|
127
|
+
],
|
|
114
128
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { action } from '@storybook/addon-actions';
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
+
import { ref, watch } from 'vue-demi';
|
|
4
|
+
import OrPaginationDocs from './OrPagination.docs.mdx';
|
|
5
|
+
import OrPagination from './OrPagination.vue';
|
|
6
|
+
import { PaginationModel } from './types';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Components/Pagination',
|
|
10
|
+
component: OrPagination,
|
|
11
|
+
|
|
12
|
+
argTypes: {
|
|
13
|
+
// Props
|
|
14
|
+
modelValue: {
|
|
15
|
+
control: { type: 'text' },
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
value: { // TODO: Remove Vue 2 fallback
|
|
19
|
+
table: { disable: true },
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
length: {
|
|
23
|
+
control: { type: 'number' },
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// Events
|
|
27
|
+
'update:modelValue': {
|
|
28
|
+
table: { disable: true },
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
input: {
|
|
32
|
+
table: { disable: true },
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
parameters: {
|
|
37
|
+
layout: 'centered',
|
|
38
|
+
|
|
39
|
+
docs: {
|
|
40
|
+
page: OrPaginationDocs,
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
design: {
|
|
44
|
+
type: 'figma',
|
|
45
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4063%3A35218&t=axoGLEPrByClXTTU-4',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
} as Meta<typeof OrPagination>;
|
|
49
|
+
|
|
50
|
+
const Template: StoryFn<typeof OrPagination> = (args) => ({
|
|
51
|
+
components: {
|
|
52
|
+
OrPagination,
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
setup() {
|
|
56
|
+
// State
|
|
57
|
+
const model = ref<PaginationModel>();
|
|
58
|
+
|
|
59
|
+
// Effects
|
|
60
|
+
watch(model, (value) => {
|
|
61
|
+
console.debug(value);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
args,
|
|
66
|
+
model,
|
|
67
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
68
|
+
onInput: action('input'),
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
template: `
|
|
73
|
+
<OrPagination
|
|
74
|
+
v-model="model"
|
|
75
|
+
v-bind="args"
|
|
76
|
+
@update:modelValue="onUpdateModelValue"
|
|
77
|
+
@input="onInput"
|
|
78
|
+
/>
|
|
79
|
+
`,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export const Default = Template.bind({});
|
|
83
|
+
|
|
84
|
+
Default.args = {
|
|
85
|
+
// Props
|
|
86
|
+
length: 555,
|
|
87
|
+
};
|