@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
|
@@ -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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-ef88d31c.js';
|
|
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-e1122a8e.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
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';
|
|
@@ -2,6 +2,7 @@ import { Meta, StoryFn } from '@storybook/vue3';
|
|
|
2
2
|
import OrAvatarDocs from './OrAvatar.docs.mdx';
|
|
3
3
|
import OrAvatar from './OrAvatar.vue';
|
|
4
4
|
import { AvatarColor, AvatarSize } from './props';
|
|
5
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
5
6
|
import { getAbbreviation } from '../../utils/functions/text';
|
|
6
7
|
import { computed } from 'vue-demi';
|
|
7
8
|
|
|
@@ -38,10 +39,6 @@ export default {
|
|
|
38
39
|
colorSalt: {
|
|
39
40
|
control: { type: 'text' },
|
|
40
41
|
},
|
|
41
|
-
|
|
42
|
-
icon: {
|
|
43
|
-
control: { type: 'text' },
|
|
44
|
-
},
|
|
45
42
|
},
|
|
46
43
|
|
|
47
44
|
parameters: {
|
|
@@ -61,6 +58,7 @@ export default {
|
|
|
61
58
|
const DefaultTemplate: StoryFn<typeof OrAvatar> = (args) => ({
|
|
62
59
|
components: {
|
|
63
60
|
OrAvatar,
|
|
61
|
+
OrIcon,
|
|
64
62
|
},
|
|
65
63
|
|
|
66
64
|
setup() {
|
|
@@ -116,22 +114,22 @@ WithTextInSlot.args = {
|
|
|
116
114
|
colorSalt: 'A username',
|
|
117
115
|
};
|
|
118
116
|
|
|
119
|
-
export const
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
export const WithIconInSlot = DefaultTemplate.bind({});
|
|
118
|
+
WithIconInSlot.args = {
|
|
119
|
+
default: '<or-icon icon="face" size="inherit" />',
|
|
122
120
|
colorSalt: 'Any string here',
|
|
123
121
|
};
|
|
124
122
|
|
|
125
123
|
export const WithColor = DefaultTemplate.bind({});
|
|
126
124
|
WithColor.args = {
|
|
127
125
|
color: AvatarColor.blue,
|
|
128
|
-
|
|
126
|
+
default: '<or-icon icon="person" size="inherit" />',
|
|
129
127
|
};
|
|
130
128
|
|
|
131
129
|
export const XL = DefaultTemplate.bind({});
|
|
132
130
|
XL.args = {
|
|
133
131
|
size: AvatarSize.XL,
|
|
134
|
-
|
|
132
|
+
default: '<or-icon icon="person" size="inherit" />',
|
|
135
133
|
colorSalt: 'Big Avatar',
|
|
136
134
|
};
|
|
137
135
|
|
|
@@ -6,16 +6,10 @@
|
|
|
6
6
|
>
|
|
7
7
|
<slot>
|
|
8
8
|
<img
|
|
9
|
-
v-if="src"
|
|
10
9
|
:class="imageStyles"
|
|
11
10
|
:src="src"
|
|
12
11
|
:alt="''"
|
|
13
12
|
>
|
|
14
|
-
<or-icon
|
|
15
|
-
v-else-if="icon"
|
|
16
|
-
:icon="icon"
|
|
17
|
-
size="inherit"
|
|
18
|
-
/>
|
|
19
13
|
</slot>
|
|
20
14
|
</div>
|
|
21
15
|
</template>
|
|
@@ -25,14 +19,10 @@ import { computed, defineComponent, PropType, ref, watchPostEffect } from 'vue-d
|
|
|
25
19
|
import { useClassAttribute } from '../../hooks';
|
|
26
20
|
import { generateHslFromString, hslToColorString } from '../../utils/functions/color';
|
|
27
21
|
import { AvatarColor, AvatarSize } from './props';
|
|
28
|
-
import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes
|
|
29
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
22
|
+
import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes } from './styles';
|
|
30
23
|
|
|
31
24
|
export default defineComponent({
|
|
32
25
|
name: 'OrAvatar',
|
|
33
|
-
components: {
|
|
34
|
-
OrIcon,
|
|
35
|
-
},
|
|
36
26
|
|
|
37
27
|
inheritAttrs: false,
|
|
38
28
|
|
|
@@ -46,10 +36,7 @@ export default defineComponent({
|
|
|
46
36
|
type: String as PropType<AvatarSize>,
|
|
47
37
|
default: AvatarSize.M,
|
|
48
38
|
},
|
|
49
|
-
|
|
50
|
-
type: String,
|
|
51
|
-
default: undefined,
|
|
52
|
-
},
|
|
39
|
+
|
|
53
40
|
color: {
|
|
54
41
|
type: String as PropType<AvatarColor>,
|
|
55
42
|
default: AvatarColor.auto,
|
|
@@ -71,9 +58,6 @@ export default defineComponent({
|
|
|
71
58
|
// Refs
|
|
72
59
|
const root = ref<HTMLElement>();
|
|
73
60
|
|
|
74
|
-
const isIcon = computed(() => {
|
|
75
|
-
return !props.icon;
|
|
76
|
-
});
|
|
77
61
|
// Styles
|
|
78
62
|
const classAttribute = useClassAttribute();
|
|
79
63
|
|
|
@@ -82,10 +66,6 @@ export default defineComponent({
|
|
|
82
66
|
...AvatarRoot,
|
|
83
67
|
...AvatarRootSizes[props.size],
|
|
84
68
|
...AvatarRootColors[props.color],
|
|
85
|
-
...(isIcon.value
|
|
86
|
-
? AvatarRootAbbreviationSizes[props.size]
|
|
87
|
-
: AvatarRootIconSizes[props.size]
|
|
88
|
-
),
|
|
89
69
|
classAttribute.value,
|
|
90
70
|
]);
|
|
91
71
|
|
|
@@ -27,30 +27,36 @@ export const AvatarRootSizes: Record<AvatarSize, string[]> = {
|
|
|
27
27
|
// Box
|
|
28
28
|
'w-[80px]',
|
|
29
29
|
'h-[80px]',
|
|
30
|
+
|
|
31
|
+
// Typography
|
|
32
|
+
'text-[32px]',
|
|
30
33
|
],
|
|
31
34
|
|
|
32
35
|
'l': [
|
|
33
36
|
// Box
|
|
34
37
|
'w-[64px]',
|
|
35
38
|
'h-[64px]',
|
|
39
|
+
|
|
40
|
+
// Typography
|
|
41
|
+
'text-[24px]',
|
|
36
42
|
],
|
|
37
43
|
|
|
38
44
|
'm': [
|
|
39
45
|
// Box
|
|
40
46
|
'w-[40px]',
|
|
41
47
|
'h-[40px]',
|
|
48
|
+
|
|
49
|
+
// Typography
|
|
50
|
+
'text-[16px]',
|
|
42
51
|
],
|
|
43
52
|
|
|
44
53
|
's': [
|
|
45
54
|
// Box
|
|
46
55
|
'w-[32px]',
|
|
47
56
|
'h-[32px]',
|
|
48
|
-
],
|
|
49
57
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'w-[24px]',
|
|
53
|
-
'h-[24px]',
|
|
58
|
+
// Typography
|
|
59
|
+
'text-[16px]',
|
|
54
60
|
],
|
|
55
61
|
};
|
|
56
62
|
|
|
@@ -91,47 +97,3 @@ export const AvatarRootColors: Record<AvatarColor, string[]> = {
|
|
|
91
97
|
'dark:text-overlay-dark',
|
|
92
98
|
],
|
|
93
99
|
};
|
|
94
|
-
|
|
95
|
-
export const AvatarRootAbbreviationSizes: Record<AvatarSize, string[]> = {
|
|
96
|
-
'xl': [
|
|
97
|
-
'typography-headline-1',
|
|
98
|
-
],
|
|
99
|
-
|
|
100
|
-
'l': [
|
|
101
|
-
'typography-headline-1',
|
|
102
|
-
],
|
|
103
|
-
|
|
104
|
-
'm': [
|
|
105
|
-
'typography-body-1-bold',
|
|
106
|
-
],
|
|
107
|
-
|
|
108
|
-
's': [
|
|
109
|
-
'typography-body-1-bold',
|
|
110
|
-
],
|
|
111
|
-
|
|
112
|
-
'xs': [
|
|
113
|
-
'typography-caption-semibold',
|
|
114
|
-
],
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export const AvatarRootIconSizes: Record<AvatarSize, string[]> = {
|
|
118
|
-
'xl': [
|
|
119
|
-
'text-[40px]',
|
|
120
|
-
],
|
|
121
|
-
|
|
122
|
-
'l': [
|
|
123
|
-
'text-[32px]',
|
|
124
|
-
],
|
|
125
|
-
|
|
126
|
-
'm': [
|
|
127
|
-
'text-[20px]',
|
|
128
|
-
],
|
|
129
|
-
|
|
130
|
-
's': [
|
|
131
|
-
'text-[16px]',
|
|
132
|
-
],
|
|
133
|
-
|
|
134
|
-
'xs': [
|
|
135
|
-
'text-[16px]',
|
|
136
|
-
],
|
|
137
|
-
};
|
|
@@ -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
|
+
};
|