@onereach/ui-components 2.74.4-beta.2308.0 → 2.74.4
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-d45772c1.js → OrButton-0a9470c0.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-914c0d96.js → OrCardCollection-f6c1843a.js} +2 -2
- package/dist/bundled/v2/{OrConfirm-f34221c8.js → OrConfirm-de24a0f3.js} +2 -2
- package/dist/bundled/v2/{OrInput-5cd0041e.js → OrInput-bef517bc.js} +1 -1
- package/dist/bundled/v2/{OrLoader-864ef92a.js → OrLoader-cf28bfa6.js} +20 -5
- package/dist/bundled/v2/{OrPagination-582690fd.js → OrPagination-19494306.js} +1 -1
- package/dist/bundled/v2/{OrSearch-4b0f063b.js → OrSearch-7fc62333.js} +1 -1
- package/dist/bundled/v2/{OrSelect-ac49dab5.js → OrSelect-8117caeb.js} +1 -1
- package/dist/bundled/v2/{OrSwitch-782d7b43.js → OrSwitch-51e30de3.js} +1 -1
- package/dist/bundled/v2/{OrText-15bf85c4.js → OrText-a665b991.js} +3 -36
- package/dist/bundled/v2/components/index.js +11 -11
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-text-v3/OrText.stories3.d.ts +1 -13
- package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +2 -27
- package/dist/bundled/v2/components/or-text-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +12 -12
- package/dist/bundled/v2/{types-d0e9ac5c.js → types-d2afe7b5.js} +1 -1
- package/dist/bundled/v3/{OrButton-a1448bfa.js → OrButton-a5b98ee2.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3b1e442b.js → OrButton.vue_vue_type_script_lang-e75f9a10.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-b74654c4.js → OrCardCollection.vue_vue_type_script_lang-3e9df595.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-a75a86cd.js → OrConfirm.vue_vue_type_script_lang-21ba7d14.js} +4 -4
- package/dist/bundled/v3/{OrInput-b077957e.js → OrInput-e5eb8be7.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ada50709.js → OrInput.vue_vue_type_script_lang-852897e6.js} +2 -2
- package/dist/bundled/v3/{OrLoader-123ef8c4.js → OrLoader-663e062d.js} +5 -4
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-4c3c1ac9.js → OrLoader.vue_vue_type_script_lang-8fc03499.js} +18 -4
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-9804669c.js → OrPagination.vue_vue_type_script_lang-cdab5b21.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-d4b754f2.js → OrSearch.vue_vue_type_script_lang-9108d84c.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-36567db5.js → OrSelect.vue_vue_type_script_lang-b36ee220.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-31994be7.js → OrSwitch.vue_vue_type_script_lang-f6039c8f.js} +2 -2
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-271fb345.js +60 -0
- package/dist/bundled/v3/{OrToastContainer-bafab8a2.js → OrToastContainer-6ade8920.js} +1 -1
- package/dist/bundled/v3/components/index.js +14 -14
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +8 -8
- package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-text-v3/OrText.stories3.d.ts +1 -13
- package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +2 -27
- package/dist/bundled/v3/components/or-text-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +22 -22
- package/dist/bundled/v3/{types-150c888c.js → types-9a4dc8a9.js} +2 -2
- package/dist/esm/v2/{OrButton-66964360.js → OrButton-49f7f20b.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-53b55eec.js → OrCardCollection-04a08189.js} +2 -2
- package/dist/esm/v2/{OrConfirm-ccf4b2c9.js → OrConfirm-4581e413.js} +2 -2
- package/dist/esm/v2/{OrInput-b241f15f.js → OrInput-48622687.js} +1 -1
- package/dist/esm/v2/{OrLoader-76307488.js → OrLoader-8f1f3af1.js} +20 -5
- package/dist/esm/v2/{OrPagination-f7f540d1.js → OrPagination-c27faf97.js} +1 -1
- package/dist/esm/v2/{OrSearch-6aaba430.js → OrSearch-635c54a6.js} +1 -1
- package/dist/esm/v2/{OrSelect-84c2079c.js → OrSelect-b9b2b634.js} +1 -1
- package/dist/esm/v2/{OrSwitch-8549219a.js → OrSwitch-10ecff82.js} +1 -1
- package/dist/esm/v2/{OrText-91d662a0.js → OrText-b12d0682.js} +3 -36
- package/dist/esm/v2/components/index.js +11 -11
- package/dist/esm/v2/components/or-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -5
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/index.js +3 -3
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-text-v3/OrText.stories3.d.ts +1 -13
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -27
- package/dist/esm/v2/components/or-text-v3/index.js +1 -1
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/index.js +11 -11
- package/dist/esm/v2/{types-f4b60ff3.js → types-5222144c.js} +1 -1
- package/dist/esm/v3/{OrButton-c56998e7.js → OrButton-eab948fb.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-e5a0c7f2.js → OrCardCollection-4e80d94b.js} +2 -2
- package/dist/esm/v3/{OrConfirm-bb32473d.js → OrConfirm-2198fae7.js} +2 -2
- package/dist/esm/v3/{OrInput-d924c98e.js → OrInput-88c99fc0.js} +1 -1
- package/dist/esm/v3/{OrLoader-a53d2edf.js → OrLoader-3a918ce9.js} +22 -7
- package/dist/esm/v3/{OrPagination-2ef059f6.js → OrPagination-d0ba716f.js} +1 -1
- package/dist/esm/v3/{OrSearch-e96e6f77.js → OrSearch-1fd60997.js} +1 -1
- package/dist/esm/v3/{OrSelect-c502e2f1.js → OrSelect-14ab8bdf.js} +1 -1
- package/dist/esm/v3/{OrSwitch-1c2196da.js → OrSwitch-0e92c92c.js} +1 -1
- package/dist/esm/v3/{OrText-a3b00048.js → OrText-6b4f7cd1.js} +3 -36
- package/dist/esm/v3/components/index.js +11 -11
- package/dist/esm/v3/components/or-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -5
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-text-v3/OrText.stories3.d.ts +1 -13
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +2 -27
- package/dist/esm/v3/components/or-text-v3/index.js +1 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/index.js +11 -11
- package/dist/esm/v3/{types-fd0720cc.js → types-7d404d5f.js} +1 -1
- package/package.json +3 -2
- package/src/components/or-loader-v3/OrLoader.stories3.ts +16 -4
- package/src/components/or-loader-v3/OrLoader.vue +21 -3
- package/src/components/or-loader-v3/styles.ts +1 -2
- package/src/components/or-text-v3/OrText.stories3.ts +5 -81
- package/src/components/or-text-v3/OrText.vue +3 -37
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-e93438ea.js +0 -93
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import OrText from './OrText.vue';
|
|
3
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, {
|
|
4
3
|
[x: string]: ((...args: any[]) => any) | null;
|
|
5
4
|
} | string[], {} & {}, {
|
|
6
5
|
[x: number]: string;
|
|
7
6
|
} | {}, true>)>;
|
|
8
7
|
export default _default;
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const Text: 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, {
|
|
10
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
11
10
|
} | string[], {} & {}, {
|
|
12
11
|
[x: number]: string;
|
|
13
12
|
} | {}, true>)>;
|
|
14
|
-
export declare const MiddleCrop: 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, {
|
|
15
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
16
|
-
} | string[], {} & {}, {
|
|
17
|
-
[x: number]: string;
|
|
18
|
-
} | {}, true>)>;
|
|
19
|
-
export declare const TooFarLeft: 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, {
|
|
20
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
21
|
-
} | string[], {} & {}, {
|
|
22
|
-
[x: number]: string;
|
|
23
|
-
} | {}, true>)>;
|
|
24
|
-
export declare const ComplexContainer: StoryFn<typeof OrText>;
|
|
@@ -6,42 +6,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
6
6
|
mainText: import("@vue/composition-api").ComputedRef<string>;
|
|
7
7
|
restText: import("@vue/composition-api").ComputedRef<string>;
|
|
8
8
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
|
-
/**
|
|
10
|
-
* Text to crop.
|
|
11
|
-
*/
|
|
12
9
|
text: {
|
|
13
10
|
type: StringConstructor;
|
|
14
11
|
required: true;
|
|
15
12
|
};
|
|
16
|
-
/**
|
|
17
|
-
* The index counted from the end of the string where ellipsis will be placed.
|
|
18
|
-
* Defines how many ending characters will remain visible.
|
|
19
|
-
* By default, ellipsis is placed in the end of the line.
|
|
20
|
-
*
|
|
21
|
-
* Note: Negative values behave same as corresponding positives still counting from the end of the line.
|
|
22
|
-
*/
|
|
23
13
|
sliceIndex: {
|
|
24
14
|
type: NumberConstructor;
|
|
25
|
-
default:
|
|
15
|
+
default: undefined;
|
|
26
16
|
};
|
|
27
17
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
28
|
-
/**
|
|
29
|
-
* Text to crop.
|
|
30
|
-
*/
|
|
31
18
|
text: {
|
|
32
19
|
type: StringConstructor;
|
|
33
20
|
required: true;
|
|
34
21
|
};
|
|
35
|
-
/**
|
|
36
|
-
* The index counted from the end of the string where ellipsis will be placed.
|
|
37
|
-
* Defines how many ending characters will remain visible.
|
|
38
|
-
* By default, ellipsis is placed in the end of the line.
|
|
39
|
-
*
|
|
40
|
-
* Note: Negative values behave same as corresponding positives still counting from the end of the line.
|
|
41
|
-
*/
|
|
42
22
|
sliceIndex: {
|
|
43
23
|
type: NumberConstructor;
|
|
44
|
-
default:
|
|
24
|
+
default: undefined;
|
|
45
25
|
};
|
|
46
26
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
47
27
|
text: string;
|
|
@@ -59,9 +39,4 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
59
39
|
} & {}, {
|
|
60
40
|
sliceIndex: number;
|
|
61
41
|
}, true>);
|
|
62
|
-
/**
|
|
63
|
-
* Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
|
|
64
|
-
* Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
|
|
65
|
-
* that have same beginning and differ in the ending part.
|
|
66
|
-
*/
|
|
67
42
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-7d404d5f.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../useToast-0665462d.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -13,5 +13,5 @@ import '../../useElevation-92fce12c.js';
|
|
|
13
13
|
import '../../useResponsive-a02e95b7.js';
|
|
14
14
|
import '../../OrBottomSheet-9c291056.js';
|
|
15
15
|
import '../../OrOverlay-55f6cf9c.js';
|
|
16
|
-
import '../../OrLoader-
|
|
16
|
+
import '../../OrLoader-3a918ce9.js';
|
|
17
17
|
import '../../style-inject.es-4c6f2515.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-0
|
|
|
3
3
|
export { s as OrBottomSheetV3 } from './OrBottomSheet-9c291056.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-eab948fb.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-4e80d94b.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-2198fae7.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-0025b17c.js';
|
|
@@ -35,7 +35,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-6c4f
|
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
36
36
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-3cd956d9.js';
|
|
37
37
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-2467d7e4.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-88c99fc0.js';
|
|
39
39
|
export { s as OrInput } from './OrInput-81125804.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
|
|
@@ -43,7 +43,7 @@ export { L as LinkColor, s as OrLinkV3 } from './OrLink-07f6f27d.js';
|
|
|
43
43
|
export { s as OrList } from './OrList-b740d13e.js';
|
|
44
44
|
export { s as OrListOfInputs } from './OrListOfInputs-508e056f.js';
|
|
45
45
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
|
|
46
|
-
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-
|
|
46
|
+
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-3a918ce9.js';
|
|
47
47
|
export { s as OrMenuItemV3 } from './OrMenuItem-de91aded.js';
|
|
48
48
|
export { s as OrMenuV3 } from './OrMenu-345930d5.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-464a5606.js';
|
|
@@ -56,17 +56,17 @@ export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
|
56
56
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
57
57
|
export { s as OrOverlayV3 } from './OrOverlay-55f6cf9c.js';
|
|
58
58
|
export { s as OrPassword } from './OrPassword-b0cbb578.js';
|
|
59
|
-
export { s as OrPaginationV3 } from './OrPagination-
|
|
59
|
+
export { s as OrPaginationV3 } from './OrPagination-d0ba716f.js';
|
|
60
60
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
|
|
61
61
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-639ed5e8.js';
|
|
62
62
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
63
63
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-11fdf667.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-1fd60997.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-14ab8bdf.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
71
|
export { s as OrSidebarV3 } from './OrSidebar-0a32cc49.js';
|
|
72
72
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-647d2c50.js';
|
|
@@ -76,7 +76,7 @@ export { s as OrSlider } from './OrSlider-87e2da8c.js';
|
|
|
76
76
|
export { s as OrSortHeaderV3 } from './OrSortHeader-f66dcb37.js';
|
|
77
77
|
export { s as OrStepper } from './OrStepper-f19b4eac.js';
|
|
78
78
|
export { s as OrSwitch } from './OrSwitch-c333ee32.js';
|
|
79
|
-
export { s as OrSwitchV3 } from './OrSwitch-
|
|
79
|
+
export { s as OrSwitchV3 } from './OrSwitch-0e92c92c.js';
|
|
80
80
|
export { s as OrTab } from './OrTab-bc98be02.js';
|
|
81
81
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
|
|
82
82
|
export { s as OrTabV3 } from './OrTab-d3785ea4.js';
|
|
@@ -86,13 +86,13 @@ export { s as OrTag } from './OrTag-1b5e43fa.js';
|
|
|
86
86
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-f66c6142.js';
|
|
87
87
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
88
88
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
89
|
-
export { s as OrTextV3 } from './OrText-
|
|
89
|
+
export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
|
|
90
90
|
export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
|
|
91
91
|
export { s as OrTextareaV3 } from './OrTextarea-42d21f77.js';
|
|
92
92
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
|
|
93
93
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
94
94
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
95
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
95
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-7d404d5f.js';
|
|
96
96
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
97
97
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
98
98
|
export { s as OrTooltipV3 } from './OrTooltip-d1b1a4bb.js';
|
|
@@ -3,7 +3,7 @@ import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTic
|
|
|
3
3
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
4
4
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
|
|
5
5
|
import { s as script$2 } from './OrIconButton-2a9a6627.js';
|
|
6
|
-
import { s as script$3 } from './OrLoader-
|
|
6
|
+
import { s as script$3 } from './OrLoader-3a918ce9.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.74.4
|
|
3
|
+
"version": "2.74.4",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -124,5 +124,6 @@
|
|
|
124
124
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
125
125
|
},
|
|
126
126
|
"./package.json": "./package.json"
|
|
127
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"gitHead": "d3e790f4aba5616b6803244f70340b320c384954"
|
|
128
129
|
}
|
|
@@ -25,16 +25,16 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
|
|
27
27
|
title: {
|
|
28
|
-
control: { type: '
|
|
28
|
+
control: { type: 'text' },
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
description: {
|
|
32
|
-
control: { type: '
|
|
32
|
+
control: { type: 'text' },
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
parameters: {
|
|
37
|
-
layout: '
|
|
37
|
+
layout: 'fullscreen',
|
|
38
38
|
|
|
39
39
|
docs: {
|
|
40
40
|
page: OrLoaderDocs,
|
|
@@ -56,7 +56,11 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
|
|
|
56
56
|
return { args };
|
|
57
57
|
},
|
|
58
58
|
|
|
59
|
-
template:
|
|
59
|
+
template: `
|
|
60
|
+
<div class="w-full min-h-[100px] p-md flex justify-center items-center">
|
|
61
|
+
<OrLoader class="w-2/5 max-w-[400px]" v-bind="args" />
|
|
62
|
+
</div>
|
|
63
|
+
`,
|
|
60
64
|
});
|
|
61
65
|
|
|
62
66
|
export const Default = Template.bind({});
|
|
@@ -72,3 +76,11 @@ LinearWithText.args = {
|
|
|
72
76
|
variant: 'linear',
|
|
73
77
|
description: 'Promptly retrieving your data from the cloud',
|
|
74
78
|
};
|
|
79
|
+
LinearWithText.parameters = {
|
|
80
|
+
docs: {
|
|
81
|
+
description: {
|
|
82
|
+
story: 'By setting width on the component you may control the width of the linear loading indicator. \
|
|
83
|
+
Circular indicator size is controlled by the `size` prop.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
};
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
{{ title }}
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
|
-
<div
|
|
11
|
+
<div
|
|
12
|
+
:class="containerStyles"
|
|
13
|
+
:style="wrapperStyle"
|
|
14
|
+
>
|
|
12
15
|
<template v-if="variant === 'circular'">
|
|
13
16
|
<svg
|
|
14
17
|
viewBox="0 0 16 16"
|
|
@@ -92,11 +95,18 @@ export default defineComponent({
|
|
|
92
95
|
default: LoaderVariant.Circular,
|
|
93
96
|
},
|
|
94
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Defines a semantic color of the loading indicator.
|
|
100
|
+
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
101
|
+
*/
|
|
95
102
|
color: {
|
|
96
103
|
type: String as PropType<LoaderColor>,
|
|
97
104
|
default: LoaderColor.Primary,
|
|
98
105
|
},
|
|
99
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
109
|
+
*/
|
|
100
110
|
size: {
|
|
101
111
|
type: String as PropType<LoaderSize>,
|
|
102
112
|
default: LoaderSize.M,
|
|
@@ -143,14 +153,21 @@ export default defineComponent({
|
|
|
143
153
|
// State
|
|
144
154
|
const computedSize = computed(() => {
|
|
145
155
|
switch (props.size) {
|
|
146
|
-
case
|
|
156
|
+
case LoaderSize.M:
|
|
147
157
|
return 20;
|
|
148
158
|
|
|
149
|
-
case
|
|
159
|
+
case LoaderSize.S:
|
|
150
160
|
return 16;
|
|
151
161
|
}
|
|
152
162
|
});
|
|
153
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Preserves circular loading indicator from shrinking caused by external styles.
|
|
166
|
+
*/
|
|
167
|
+
const wrapperStyle = computed(() => {
|
|
168
|
+
return `min-width: ${computedSize.value}px;`;
|
|
169
|
+
});
|
|
170
|
+
|
|
154
171
|
return {
|
|
155
172
|
root,
|
|
156
173
|
rootStyles,
|
|
@@ -158,6 +175,7 @@ export default defineComponent({
|
|
|
158
175
|
titleStyles,
|
|
159
176
|
descriptionStyles,
|
|
160
177
|
computedSize,
|
|
178
|
+
wrapperStyle,
|
|
161
179
|
};
|
|
162
180
|
},
|
|
163
181
|
});
|
|
@@ -34,89 +34,13 @@ const Template: StoryFn<typeof OrText> = (args) => ({
|
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
template: `
|
|
37
|
-
<
|
|
38
|
-
<OrText v-bind="args" />
|
|
39
|
-
</div>
|
|
37
|
+
<OrText v-bind="args" />
|
|
40
38
|
`,
|
|
41
39
|
});
|
|
42
40
|
|
|
43
|
-
export const
|
|
44
|
-
Default.args = {
|
|
45
|
-
// Props
|
|
46
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt \
|
|
47
|
-
ut labore et dolore magna aliqua.',
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const MiddleCrop = Template.bind({});
|
|
51
|
-
MiddleCrop.args = {
|
|
52
|
-
...Default.args,
|
|
53
|
-
sliceIndex: 12,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const TooFarLeft = Template.bind({});
|
|
57
|
-
TooFarLeft.args = {
|
|
58
|
-
...Default.args,
|
|
59
|
-
sliceIndex: 120,
|
|
60
|
-
};
|
|
61
|
-
TooFarLeft.parameters = {
|
|
62
|
-
docs: {
|
|
63
|
-
description: {
|
|
64
|
-
story: 'Caution. If `sliceIndex` is greater than the visible part length, \
|
|
65
|
-
then beginning part with ellipsis is not displayed and ending part overflows the container.',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const ComplexContainer: StoryFn<typeof OrText> = (args) => ({
|
|
71
|
-
components: {
|
|
72
|
-
OrText,
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
setup() {
|
|
76
|
-
return { args };
|
|
77
|
-
},
|
|
41
|
+
export const Text = Template.bind({});
|
|
78
42
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<!-- fixed part -->
|
|
83
|
-
<div class="w-[20px]" />
|
|
84
|
-
<!-- growing part -->
|
|
85
|
-
<div class="grow px-md">
|
|
86
|
-
<OrText v-bind="args" />
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
<h3 class="typography-headline-3 my-md">Solution with a wrapper</h3>
|
|
90
|
-
<div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
|
|
91
|
-
<!-- fixed part -->
|
|
92
|
-
<div class="w-[20px]" />
|
|
93
|
-
<!-- growing part -->
|
|
94
|
-
<div class="grow px-md min-w-0">
|
|
95
|
-
<OrText v-bind="args" />
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
<h3 class="typography-headline-3 my-md">Solution without a wrapper</h3>
|
|
99
|
-
<div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
|
|
100
|
-
<!-- fixed part -->
|
|
101
|
-
<div class="w-[20px]" />
|
|
102
|
-
<!-- growing part -->
|
|
103
|
-
<OrText v-bind="args" class="grow px-md min-w-0"/>
|
|
104
|
-
</div>
|
|
105
|
-
`,
|
|
106
|
-
});
|
|
107
|
-
ComplexContainer.storyName = 'Growing Flex Container';
|
|
108
|
-
ComplexContainer.args = {
|
|
109
|
-
...Default.args,
|
|
110
|
-
sliceIndex: 12,
|
|
111
|
-
};
|
|
112
|
-
ComplexContainer.parameters = {
|
|
113
|
-
docs: {
|
|
114
|
-
description: {
|
|
115
|
-
story: 'In a special case when OrText is placed inside a variable width container,\
|
|
116
|
-
such as a flexbox growing block, or when it is itself a growing flexbox item,\
|
|
117
|
-
there is a problem for a browser to proper calculate the cropping position.\
|
|
118
|
-
As a solution place a `min-width: 0;` style (tailwind class `min-w-0`)\
|
|
119
|
-
to the growing item - container or the OrText itself.',
|
|
120
|
-
},
|
|
121
|
-
},
|
|
43
|
+
Text.args = {
|
|
44
|
+
// Props
|
|
45
|
+
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
122
46
|
};
|
|
@@ -17,33 +17,18 @@
|
|
|
17
17
|
import { computed, defineComponent, ref } from 'vue-demi';
|
|
18
18
|
import { MainText, RestText, TextRoot } from './styles';
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
|
|
22
|
-
* Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
|
|
23
|
-
* that have same beginning and differ in the ending part.
|
|
24
|
-
*/
|
|
25
20
|
export default defineComponent({
|
|
26
21
|
name: 'OrText',
|
|
27
22
|
|
|
28
23
|
props: {
|
|
29
|
-
/**
|
|
30
|
-
* Text to crop.
|
|
31
|
-
*/
|
|
32
24
|
text: {
|
|
33
25
|
type: String,
|
|
34
26
|
required: true,
|
|
35
27
|
},
|
|
36
28
|
|
|
37
|
-
/**
|
|
38
|
-
* The index counted from the end of the string where ellipsis will be placed.
|
|
39
|
-
* Defines how many ending characters will remain visible.
|
|
40
|
-
* By default, ellipsis is placed in the end of the line.
|
|
41
|
-
*
|
|
42
|
-
* Note: Negative values behave same as corresponding positives still counting from the end of the line.
|
|
43
|
-
*/
|
|
44
29
|
sliceIndex: {
|
|
45
30
|
type: Number,
|
|
46
|
-
default:
|
|
31
|
+
default: undefined,
|
|
47
32
|
},
|
|
48
33
|
},
|
|
49
34
|
|
|
@@ -69,36 +54,17 @@ export default defineComponent({
|
|
|
69
54
|
...RestText,
|
|
70
55
|
]);
|
|
71
56
|
|
|
72
|
-
/**
|
|
73
|
-
* Preserves whitespace at the last position as <code> </code>
|
|
74
|
-
* @param str A string to escape
|
|
75
|
-
*/
|
|
76
|
-
const escapeLast = (str: string): string => str && (str.slice(0, -1) + '\xa0');
|
|
77
|
-
/**
|
|
78
|
-
* Preserves whitespace at the first position as <code> </code>
|
|
79
|
-
* @param str A string to escape
|
|
80
|
-
*/
|
|
81
|
-
const escapeFirst = (str: string): string => str && ('\xa0' + str.slice(1));
|
|
82
|
-
|
|
83
57
|
// State
|
|
84
58
|
const mainText = computed(() => {
|
|
85
59
|
if (props.sliceIndex) {
|
|
86
|
-
|
|
87
|
-
if (mainPart[mainPart.length - 1] === ' ') {
|
|
88
|
-
mainPart = escapeLast(mainPart);
|
|
89
|
-
}
|
|
90
|
-
return mainPart;
|
|
60
|
+
return props.text.slice(0, Math.abs(props.sliceIndex) * -1);
|
|
91
61
|
}
|
|
92
62
|
|
|
93
63
|
return props.text;
|
|
94
64
|
});
|
|
95
65
|
|
|
96
66
|
const restText = computed(() => {
|
|
97
|
-
|
|
98
|
-
if (restPart[0] === ' ') {
|
|
99
|
-
restPart = escapeFirst(restPart);
|
|
100
|
-
}
|
|
101
|
-
return restPart;
|
|
67
|
+
return props.text.slice(mainText.value.length);
|
|
102
68
|
});
|
|
103
69
|
|
|
104
70
|
return {
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue';
|
|
2
|
-
|
|
3
|
-
const TextRoot = [
|
|
4
|
-
// Layout
|
|
5
|
-
'inline-flex',
|
|
6
|
-
// Box
|
|
7
|
-
'max-w-full',
|
|
8
|
-
// Typography
|
|
9
|
-
'whitespace-nowrap'];
|
|
10
|
-
const MainText = [
|
|
11
|
-
// Layout
|
|
12
|
-
'overflow-hidden',
|
|
13
|
-
// Typography
|
|
14
|
-
'text-ellipsis'];
|
|
15
|
-
const RestText = [
|
|
16
|
-
// Layout
|
|
17
|
-
'shrink'];
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
|
|
21
|
-
* Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
|
|
22
|
-
* that have same beginning and differ in the ending part.
|
|
23
|
-
*/
|
|
24
|
-
var script = defineComponent({
|
|
25
|
-
name: 'OrText',
|
|
26
|
-
props: {
|
|
27
|
-
/**
|
|
28
|
-
* Text to crop.
|
|
29
|
-
*/
|
|
30
|
-
text: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: true
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* The index counted from the end of the string where ellipsis will be placed.
|
|
36
|
-
* Defines how many ending characters will remain visible.
|
|
37
|
-
* By default, ellipsis is placed in the end of the line.
|
|
38
|
-
*
|
|
39
|
-
* Note: Negative values behave same as corresponding positives still counting from the end of the line.
|
|
40
|
-
*/
|
|
41
|
-
sliceIndex: {
|
|
42
|
-
type: Number,
|
|
43
|
-
default: 0
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
expose: ['root'],
|
|
47
|
-
setup(props) {
|
|
48
|
-
// Refs
|
|
49
|
-
const root = ref();
|
|
50
|
-
// Styles
|
|
51
|
-
const rootStyles = computed(() => ['or-text', ...TextRoot]);
|
|
52
|
-
const mainTextStyles = computed(() => [...MainText]);
|
|
53
|
-
const restTextStyles = computed(() => [...RestText]);
|
|
54
|
-
/**
|
|
55
|
-
* Preserves whitespace at the last position as <code> </code>
|
|
56
|
-
* @param str A string to escape
|
|
57
|
-
*/
|
|
58
|
-
const escapeLast = str => str && str.slice(0, -1) + '\xa0';
|
|
59
|
-
/**
|
|
60
|
-
* Preserves whitespace at the first position as <code> </code>
|
|
61
|
-
* @param str A string to escape
|
|
62
|
-
*/
|
|
63
|
-
const escapeFirst = str => str && '\xa0' + str.slice(1);
|
|
64
|
-
// State
|
|
65
|
-
const mainText = computed(() => {
|
|
66
|
-
if (props.sliceIndex) {
|
|
67
|
-
let mainPart = props.text.slice(0, -Math.abs(props.sliceIndex));
|
|
68
|
-
if (mainPart[mainPart.length - 1] === ' ') {
|
|
69
|
-
mainPart = escapeLast(mainPart);
|
|
70
|
-
}
|
|
71
|
-
return mainPart;
|
|
72
|
-
}
|
|
73
|
-
return props.text;
|
|
74
|
-
});
|
|
75
|
-
const restText = computed(() => {
|
|
76
|
-
let restPart = props.text.slice(mainText.value.length);
|
|
77
|
-
if (restPart[0] === ' ') {
|
|
78
|
-
restPart = escapeFirst(restPart);
|
|
79
|
-
}
|
|
80
|
-
return restPart;
|
|
81
|
-
});
|
|
82
|
-
return {
|
|
83
|
-
root,
|
|
84
|
-
rootStyles,
|
|
85
|
-
mainTextStyles,
|
|
86
|
-
restTextStyles,
|
|
87
|
-
mainText,
|
|
88
|
-
restText
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
export { script as s };
|