@onereach/ui-components 2.72.2-beta.2276.0 → 2.72.2-beta.2278.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-f1f28b9b.js → OrButton-d45772c1.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-35abc63a.js → OrCardCollection-4ac89ea5.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-c5717fec.js → OrConfirm-8c0e957d.js} +1 -1
- package/dist/bundled/v2/{OrLoader-07f84c71.js → OrLoader-864ef92a.js} +4 -11
- package/dist/bundled/v2/{OrPagination-1b65273d.js → OrPagination-daf25de2.js} +1 -1
- package/dist/bundled/v2/{OrSwitch-3804a2d8.js → OrSwitch-782d7b43.js} +1 -1
- package/dist/bundled/v2/{OrText-a665b991.js → OrText-15bf85c4.js} +36 -3
- package/dist/bundled/v2/components/index.js +8 -8
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
- 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-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-text-v3/OrText.stories3.d.ts +13 -1
- package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +27 -2
- 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 +9 -9
- package/dist/bundled/v2/{types-13daf4de.js → types-309b7b94.js} +1 -1
- package/dist/bundled/v3/{OrButton-d8b1c4ac.js → OrButton-a1448bfa.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-d31b504f.js → OrButton.vue_vue_type_script_lang-3b1e442b.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-23f82328.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ab682ec1.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
- package/dist/bundled/v3/{OrLoader-40942969.js → OrLoader-123ef8c4.js} +1 -1
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-9efedfe7.js → OrLoader.vue_vue_type_script_lang-4c3c1ac9.js} +4 -11
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c0eceb82.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-25f16621.js → OrSwitch.vue_vue_type_script_lang-31994be7.js} +2 -2
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-e93438ea.js +93 -0
- package/dist/bundled/v3/{OrToastContainer-2e9489f9.js → OrToastContainer-6fe12712.js} +1 -1
- package/dist/bundled/v3/components/index.js +10 -10
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
- 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-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-text-v3/OrText.stories3.d.ts +13 -1
- package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +27 -2
- 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 +17 -17
- package/dist/bundled/v3/{types-8f6f3598.js → types-22fbf9d6.js} +2 -2
- package/dist/esm/v2/{OrButton-d067bcac.js → OrButton-66964360.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-cab5acb9.js → OrCardCollection-5a9eda35.js} +1 -1
- package/dist/esm/v2/{OrConfirm-efe95ff6.js → OrConfirm-9dbdedd7.js} +1 -1
- package/dist/esm/v2/{OrLoader-a6ae193f.js → OrLoader-76307488.js} +4 -11
- package/dist/esm/v2/{OrPagination-1acb7176.js → OrPagination-1adbcadb.js} +1 -1
- package/dist/esm/v2/{OrSwitch-c2429fc0.js → OrSwitch-8549219a.js} +1 -1
- package/dist/esm/v2/{OrText-b12d0682.js → OrText-91d662a0.js} +36 -3
- package/dist/esm/v2/components/index.js +8 -8
- package/dist/esm/v2/components/or-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
- 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-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-text-v3/OrText.stories3.d.ts +13 -1
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +27 -2
- 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 +8 -8
- package/dist/esm/v2/{types-4a75cef1.js → types-1f95d710.js} +1 -1
- package/dist/esm/v3/{OrButton-d9f6c316.js → OrButton-c56998e7.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-04b36455.js → OrCardCollection-e4fde5b4.js} +1 -1
- package/dist/esm/v3/{OrConfirm-d7d6255c.js → OrConfirm-37454a63.js} +1 -1
- package/dist/esm/v3/{OrLoader-1709eb68.js → OrLoader-a53d2edf.js} +4 -11
- package/dist/esm/v3/{OrPagination-7cbdbb05.js → OrPagination-da9e5017.js} +1 -1
- package/dist/esm/v3/{OrSwitch-54988e7a.js → OrSwitch-1c2196da.js} +1 -1
- package/dist/esm/v3/{OrText-6b4f7cd1.js → OrText-a3b00048.js} +36 -3
- package/dist/esm/v3/components/index.js +8 -8
- package/dist/esm/v3/components/or-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
- 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-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-text-v3/OrText.stories3.d.ts +13 -1
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +27 -2
- 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 +8 -8
- package/dist/esm/v3/{types-c3417028.js → types-b79e4387.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-loader-v3/OrLoader.stories3.ts +4 -16
- package/src/components/or-loader-v3/OrLoader.vue +2 -10
- package/src/components/or-loader-v3/styles.ts +2 -1
- package/src/components/or-text-v3/OrText.stories3.ts +81 -5
- package/src/components/or-text-v3/OrText.vue +37 -3
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-271fb345.js +0 -60
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrLoader } from './OrLoader-
|
|
2
|
+
import { O as OrLoader } from './OrLoader-864ef92a.js';
|
|
3
3
|
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import './index-fa6eb4ca.js';
|
|
|
2
2
|
import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
4
|
import { O as OrIconButton } from './OrIconButton-837d57f8.js';
|
|
5
|
-
import { O as OrButton } from './OrButton-
|
|
5
|
+
import { O as OrButton } from './OrButton-d45772c1.js';
|
|
6
6
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
@@ -2,7 +2,7 @@ import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
|
2
2
|
import { l as logicAnd } from './index-17f264f9.js';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrOverlay } from './OrOverlay-efa7992e.js';
|
|
5
|
-
import { O as OrButton, a as ButtonColor } from './OrButton-
|
|
5
|
+
import { O as OrButton, a as ButtonColor } from './OrButton-d45772c1.js';
|
|
6
6
|
import { O as OrInput } from './OrInput-00070eee.js';
|
|
7
7
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -21,7 +21,7 @@ var LoaderSize;
|
|
|
21
21
|
|
|
22
22
|
const LoaderRoot = [
|
|
23
23
|
// Layout
|
|
24
|
-
'flex', 'flex-col', '
|
|
24
|
+
'contents', 'flex', 'flex-col', 'space-y-md'];
|
|
25
25
|
const LoaderRootColors = {
|
|
26
26
|
'primary': [
|
|
27
27
|
// Theme
|
|
@@ -42,17 +42,10 @@ var script = defineComponent({
|
|
|
42
42
|
type: String,
|
|
43
43
|
default: LoaderVariant.Circular
|
|
44
44
|
},
|
|
45
|
-
/**
|
|
46
|
-
* Defines a semantic color of the loading indicator.
|
|
47
|
-
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
48
|
-
*/
|
|
49
45
|
color: {
|
|
50
46
|
type: String,
|
|
51
47
|
default: LoaderColor.Primary
|
|
52
48
|
},
|
|
53
|
-
/**
|
|
54
|
-
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
55
|
-
*/
|
|
56
49
|
size: {
|
|
57
50
|
type: String,
|
|
58
51
|
default: LoaderSize.M
|
|
@@ -74,13 +67,13 @@ var script = defineComponent({
|
|
|
74
67
|
const rootStyles = computed(() => ['or-loader', ...LoaderRoot, ...LoaderRootColors[props.color]]);
|
|
75
68
|
const titleStyles = computed(() => [...LoaderTitle]);
|
|
76
69
|
const descriptionStyles = computed(() => [...LoaderDescription]);
|
|
77
|
-
const containerStyles = computed(() => [...LoaderContainer
|
|
70
|
+
const containerStyles = computed(() => [...LoaderContainer]);
|
|
78
71
|
// State
|
|
79
72
|
const computedSize = computed(() => {
|
|
80
73
|
switch (props.size) {
|
|
81
|
-
case
|
|
74
|
+
case 'm':
|
|
82
75
|
return 20;
|
|
83
|
-
case
|
|
76
|
+
case 's':
|
|
84
77
|
return 16;
|
|
85
78
|
}
|
|
86
79
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrButton } from './OrButton-
|
|
2
|
+
import { O as OrButton } from './OrButton-d45772c1.js';
|
|
3
3
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
4
4
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
5
5
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
2
|
import { O as OrLabel, L as LabelVariant } from './OrLabel-aff09c39.js';
|
|
3
|
-
import { O as OrLoader } from './OrLoader-
|
|
3
|
+
import { O as OrLoader } from './OrLoader-864ef92a.js';
|
|
4
4
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
|
|
5
5
|
import { defineComponent, ref, computed, reactive } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -18,16 +18,31 @@ const RestText = [
|
|
|
18
18
|
// Layout
|
|
19
19
|
'shrink'];
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
|
|
23
|
+
* Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
|
|
24
|
+
* that have same beginning and differ in the ending part.
|
|
25
|
+
*/
|
|
21
26
|
var script = defineComponent({
|
|
22
27
|
name: 'OrText',
|
|
23
28
|
props: {
|
|
29
|
+
/**
|
|
30
|
+
* Text to crop.
|
|
31
|
+
*/
|
|
24
32
|
text: {
|
|
25
33
|
type: String,
|
|
26
34
|
required: true
|
|
27
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* The index counted from the end of the string where ellipsis will be placed.
|
|
38
|
+
* Defines how many ending characters will remain visible.
|
|
39
|
+
* By default, ellipsis is placed in the end of the line.
|
|
40
|
+
*
|
|
41
|
+
* Note: Negative values behave same as corresponding positives still counting from the end of the line.
|
|
42
|
+
*/
|
|
28
43
|
sliceIndex: {
|
|
29
44
|
type: Number,
|
|
30
|
-
default:
|
|
45
|
+
default: 0
|
|
31
46
|
}
|
|
32
47
|
},
|
|
33
48
|
expose: ['root'],
|
|
@@ -38,15 +53,33 @@ var script = defineComponent({
|
|
|
38
53
|
const rootStyles = computed(() => ['or-text', ...TextRoot]);
|
|
39
54
|
const mainTextStyles = computed(() => [...MainText]);
|
|
40
55
|
const restTextStyles = computed(() => [...RestText]);
|
|
56
|
+
/**
|
|
57
|
+
* Preserves whitespace at the last position as <code> </code>
|
|
58
|
+
* @param str A string to escape
|
|
59
|
+
*/
|
|
60
|
+
const escapeLast = str => str && str.slice(0, -1) + '\xa0';
|
|
61
|
+
/**
|
|
62
|
+
* Preserves whitespace at the first position as <code> </code>
|
|
63
|
+
* @param str A string to escape
|
|
64
|
+
*/
|
|
65
|
+
const escapeFirst = str => str && '\xa0' + str.slice(1);
|
|
41
66
|
// State
|
|
42
67
|
const mainText = computed(() => {
|
|
43
68
|
if (props.sliceIndex) {
|
|
44
|
-
|
|
69
|
+
let mainPart = props.text.slice(0, -Math.abs(props.sliceIndex));
|
|
70
|
+
if (mainPart[mainPart.length - 1] === ' ') {
|
|
71
|
+
mainPart = escapeLast(mainPart);
|
|
72
|
+
}
|
|
73
|
+
return mainPart;
|
|
45
74
|
}
|
|
46
75
|
return props.text;
|
|
47
76
|
});
|
|
48
77
|
const restText = computed(() => {
|
|
49
|
-
|
|
78
|
+
let restPart = props.text.slice(mainText.value.length);
|
|
79
|
+
if (restPart[0] === ' ') {
|
|
80
|
+
restPart = escapeFirst(restPart);
|
|
81
|
+
}
|
|
82
|
+
return restPart;
|
|
50
83
|
});
|
|
51
84
|
return {
|
|
52
85
|
root,
|
|
@@ -5,10 +5,10 @@ export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonVi
|
|
|
5
5
|
export { O as OrButtonV2 } from '../OrButton-705cd0bd.js';
|
|
6
6
|
export { O as OrIconButton } from '../OrIconButton-65962c1c.js';
|
|
7
7
|
export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from '../constants-c5d1139f.js';
|
|
8
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../OrButton-
|
|
8
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../OrButton-d45772c1.js';
|
|
9
9
|
export { O as OrCard } from '../OrCard-a6b30f8f.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-166cfcc6.js';
|
|
11
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-
|
|
11
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-4ac89ea5.js';
|
|
12
12
|
export { _ as OrCardV3 } from '../OrCard-45d5869b.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-6da755c0.js';
|
|
14
14
|
export { O as OrCheckbox } from '../OrCheckbox-4cbddd67.js';
|
|
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-fc6876ec.js';
|
|
|
19
19
|
export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.js';
|
|
20
20
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-a1a37e83.js';
|
|
21
21
|
export { _ as OrConfirm } from '../OrConfirm-55b89b17.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-8c0e957d.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-e212f892.js';
|
|
24
24
|
export { O as OrError } from '../OrError-31503e4c.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from '../OrErrorTag-97a9112b.js';
|
|
@@ -46,7 +46,7 @@ export { L as LinkColor, _ as OrLinkV3 } from '../OrLink-0d952e87.js';
|
|
|
46
46
|
export { O as OrList } from '../OrList-4e84a3b4.js';
|
|
47
47
|
export { _ as OrListOfInputs } from '../OrListOfInputs-ab7f9d97.js';
|
|
48
48
|
export { L as LoaderViews, O as OrLoader } from '../OrLoader-05057239.js';
|
|
49
|
-
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, O as OrLoaderV3 } from '../OrLoader-
|
|
49
|
+
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, O as OrLoaderV3 } from '../OrLoader-864ef92a.js';
|
|
50
50
|
export { O as OrMenuItemV3 } from '../OrMenuItem-e2693a5f.js';
|
|
51
51
|
export { O as OrMenuV3 } from '../OrMenu-52da43bc.js';
|
|
52
52
|
export { P as MenuPlacement, O as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-4e8acb7b.js';
|
|
@@ -59,7 +59,7 @@ export { _ as OrOverflowMenu } from '../OrOverflowMenu-711e460e.js';
|
|
|
59
59
|
export { O as OrOverlay } from '../OrOverlay-47967a8b.js';
|
|
60
60
|
export { O as OrOverlayV3 } from '../OrOverlay-efa7992e.js';
|
|
61
61
|
export { _ as OrPassword } from '../OrPassword-a818e7b5.js';
|
|
62
|
-
export { _ as OrPaginationV3 } from '../OrPagination-
|
|
62
|
+
export { _ as OrPaginationV3 } from '../OrPagination-daf25de2.js';
|
|
63
63
|
export { O as OrProgress, a as OrProgressColors, b as OrProgressTypes } from '../OrProgress-de947341.js';
|
|
64
64
|
export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-15fe65ec.js';
|
|
65
65
|
export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
|
|
@@ -78,7 +78,7 @@ export { _ as OrSlider } from '../OrSlider-59d05856.js';
|
|
|
78
78
|
export { _ as OrSortHeaderV3 } from '../OrSortHeader-565ace92.js';
|
|
79
79
|
export { _ as OrStepper } from '../OrStepper-3fc1a2b3.js';
|
|
80
80
|
export { _ as OrSwitch } from '../OrSwitch-47670dbd.js';
|
|
81
|
-
export { _ as OrSwitchV3 } from '../OrSwitch-
|
|
81
|
+
export { _ as OrSwitchV3 } from '../OrSwitch-782d7b43.js';
|
|
82
82
|
export { _ as OrTab } from '../OrTab-b2c6d977.js';
|
|
83
83
|
export { O as OrTabHeaderItem } from '../OrTabHeaderItem-d39c3cf7.js';
|
|
84
84
|
export { O as OrTabV3 } from '../OrTab-8c5acf8a.js';
|
|
@@ -88,13 +88,13 @@ export { _ as OrTag } from '../OrTag-79e48fec.js';
|
|
|
88
88
|
export { O as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-4085e8a7.js';
|
|
89
89
|
export { O as OrTeleport } from '../OrTeleportVue2-3544f185.js';
|
|
90
90
|
export { O as OrTeleportV3 } from '../OrTeleport.vue2-e9ba3054.js';
|
|
91
|
-
export { _ as OrTextV3 } from '../OrText-
|
|
91
|
+
export { _ as OrTextV3 } from '../OrText-15bf85c4.js';
|
|
92
92
|
export { _ as OrTextarea } from '../OrTextarea-71ff236d.js';
|
|
93
93
|
export { _ as OrTextareaV3 } from '../OrTextarea-5c57c02b.js';
|
|
94
94
|
export { _ as OrTextbox, T as TextboxTypes } from '../OrTextbox-eacd9b19.js';
|
|
95
95
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-1faa828c.js';
|
|
96
96
|
export { O as OrToast, _ as OrToastContainer } from '../OrToastContainer-b03adc37.js';
|
|
97
|
-
export { _ as OrToastContainerV3, O as OrToastV3, t as TypesV3 } from '../types-
|
|
97
|
+
export { _ as OrToastContainerV3, O as OrToastV3, t as TypesV3 } from '../types-309b7b94.js';
|
|
98
98
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-3a3d4280.js';
|
|
99
99
|
export { O as OrTooltip } from '../OrTooltip-dfea7af2.js';
|
|
100
100
|
export { O as OrTooltipContent } from '../OrTooltipContent-f0fd5f75.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../../OrButton-
|
|
1
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../../OrButton-d45772c1.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
-
import '../../OrLoader-
|
|
5
|
+
import '../../OrLoader-864ef92a.js';
|
|
6
6
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-
|
|
1
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-4ac89ea5.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
@@ -15,8 +15,8 @@ import '../../OrTeleport.vue2-e9ba3054.js';
|
|
|
15
15
|
import 'portal-vue';
|
|
16
16
|
import '../../useElevation-aac032f4.js';
|
|
17
17
|
import '../../useResponsive-e13dfbb0.js';
|
|
18
|
-
import '../../OrButton-
|
|
19
|
-
import '../../OrLoader-
|
|
18
|
+
import '../../OrButton-d45772c1.js';
|
|
19
|
+
import '../../OrLoader-864ef92a.js';
|
|
20
20
|
import '../../OrMenu-52da43bc.js';
|
|
21
21
|
import '../../OrMenuItem-e2693a5f.js';
|
|
22
22
|
import '../../OrSearch-09fd004c.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-8c0e957d.js';
|
|
2
2
|
import '@vueuse/core';
|
|
3
3
|
import '../../index-17f264f9.js';
|
|
4
4
|
import '../../index-fa6eb4ca.js';
|
|
@@ -9,8 +9,8 @@ import '../../OrTeleport.vue2-e9ba3054.js';
|
|
|
9
9
|
import 'portal-vue';
|
|
10
10
|
import '../../normalize-component-6e8e3d80.js';
|
|
11
11
|
import '../../useElevation-aac032f4.js';
|
|
12
|
-
import '../../OrButton-
|
|
13
|
-
import '../../OrLoader-
|
|
12
|
+
import '../../OrButton-d45772c1.js';
|
|
13
|
+
import '../../OrLoader-864ef92a.js';
|
|
14
14
|
import '../../OrInput-00070eee.js';
|
|
15
15
|
import '../../OrError-52f668a4.js';
|
|
16
16
|
import '../../OrHint-fde53334.js';
|
|
@@ -6,23 +6,16 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
6
6
|
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
7
|
titleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
8
|
descriptionStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
|
-
computedSize: import("@vue/composition-api").ComputedRef<20 | 16>;
|
|
9
|
+
computedSize: import("@vue/composition-api").ComputedRef<20 | 16 | undefined>;
|
|
10
10
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
11
11
|
variant: {
|
|
12
12
|
type: PropType<LoaderVariant>;
|
|
13
13
|
default: LoaderVariant;
|
|
14
14
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Defines a semantic color of the loading indicator.
|
|
17
|
-
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
18
|
-
*/
|
|
19
15
|
color: {
|
|
20
16
|
type: PropType<LoaderColor>;
|
|
21
17
|
default: LoaderColor;
|
|
22
18
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
25
|
-
*/
|
|
26
19
|
size: {
|
|
27
20
|
type: PropType<LoaderSize>;
|
|
28
21
|
default: LoaderSize;
|
|
@@ -40,17 +33,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
40
33
|
type: PropType<LoaderVariant>;
|
|
41
34
|
default: LoaderVariant;
|
|
42
35
|
};
|
|
43
|
-
/**
|
|
44
|
-
* Defines a semantic color of the loading indicator.
|
|
45
|
-
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
46
|
-
*/
|
|
47
36
|
color: {
|
|
48
37
|
type: PropType<LoaderColor>;
|
|
49
38
|
default: LoaderColor;
|
|
50
39
|
};
|
|
51
|
-
/**
|
|
52
|
-
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
53
|
-
*/
|
|
54
40
|
size: {
|
|
55
41
|
type: PropType<LoaderSize>;
|
|
56
42
|
default: LoaderSize;
|
|
@@ -75,7 +61,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
75
61
|
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
76
62
|
titleStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
77
63
|
descriptionStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
78
|
-
computedSize: import("@vue/composition-api").ComputedRef<20 | 16>;
|
|
64
|
+
computedSize: import("@vue/composition-api").ComputedRef<20 | 16 | undefined>;
|
|
79
65
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
80
66
|
variant: LoaderVariant;
|
|
81
67
|
color: LoaderColor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, O as OrLoaderV3 } from '../../OrLoader-
|
|
1
|
+
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, O as OrLoaderV3 } from '../../OrLoader-864ef92a.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { _ as OrPaginationV3 } from '../../OrPagination-
|
|
1
|
+
export { _ as OrPaginationV3 } from '../../OrPagination-daf25de2.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
-
import '../../OrButton-
|
|
6
|
-
import '../../OrLoader-
|
|
5
|
+
import '../../OrButton-d45772c1.js';
|
|
6
|
+
import '../../OrLoader-864ef92a.js';
|
|
7
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
8
|
import '../../OrIcon-458206aa.js';
|
|
9
9
|
import '../../OrMenu-52da43bc.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { _ as OrSwitchV3 } from '../../OrSwitch-
|
|
1
|
+
export { _ as OrSwitchV3 } from '../../OrSwitch-782d7b43.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
5
|
import '../../OrLabel-aff09c39.js';
|
|
6
6
|
import '../../normalize-component-6e8e3d80.js';
|
|
7
|
-
import '../../OrLoader-
|
|
7
|
+
import '../../OrLoader-864ef92a.js';
|
|
8
8
|
import '../../useIdAttribute-cf61643f.js';
|
|
9
9
|
import '../../browser-82dea9ed.js';
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrText from './OrText.vue';
|
|
2
3
|
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
4
|
[x: string]: ((...args: any[]) => any) | null;
|
|
4
5
|
} | string[], {} & {}, {
|
|
5
6
|
[x: number]: string;
|
|
6
7
|
} | {}, true>)>;
|
|
7
8
|
export default _default;
|
|
8
|
-
export declare const
|
|
9
|
+
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
10
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
11
|
} | string[], {} & {}, {
|
|
11
12
|
[x: number]: string;
|
|
12
13
|
} | {}, 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,22 +6,42 @@ 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
|
+
*/
|
|
9
12
|
text: {
|
|
10
13
|
type: StringConstructor;
|
|
11
14
|
required: true;
|
|
12
15
|
};
|
|
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
|
+
*/
|
|
13
23
|
sliceIndex: {
|
|
14
24
|
type: NumberConstructor;
|
|
15
|
-
default:
|
|
25
|
+
default: number;
|
|
16
26
|
};
|
|
17
27
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
28
|
+
/**
|
|
29
|
+
* Text to crop.
|
|
30
|
+
*/
|
|
18
31
|
text: {
|
|
19
32
|
type: StringConstructor;
|
|
20
33
|
required: true;
|
|
21
34
|
};
|
|
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
|
+
*/
|
|
22
42
|
sliceIndex: {
|
|
23
43
|
type: NumberConstructor;
|
|
24
|
-
default:
|
|
44
|
+
default: number;
|
|
25
45
|
};
|
|
26
46
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
27
47
|
text: string;
|
|
@@ -39,4 +59,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
39
59
|
} & {}, {
|
|
40
60
|
sliceIndex: number;
|
|
41
61
|
}, 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
|
+
*/
|
|
42
67
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrToastContainerV3, O as OrToastV3, t as TypesV3 } from '../../types-
|
|
1
|
+
export { _ as OrToastContainerV3, O as OrToastV3, t as TypesV3 } from '../../types-309b7b94.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../useToast-3a3d4280.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../index-fa6eb4ca.js';
|
|
@@ -16,5 +16,5 @@ import '../../OrTeleport.vue2-e9ba3054.js';
|
|
|
16
16
|
import 'portal-vue';
|
|
17
17
|
import '../../useElevation-aac032f4.js';
|
|
18
18
|
import '../../useResponsive-e13dfbb0.js';
|
|
19
|
-
import '../../OrLoader-
|
|
19
|
+
import '../../OrLoader-864ef92a.js';
|
|
20
20
|
import '../../browser-82dea9ed.js';
|