@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.
Files changed (94) hide show
  1. package/dist/bundled/v2/{OrButton-f1f28b9b.js → OrButton-d45772c1.js} +1 -1
  2. package/dist/bundled/v2/{OrCardCollection-35abc63a.js → OrCardCollection-4ac89ea5.js} +1 -1
  3. package/dist/bundled/v2/{OrConfirm-c5717fec.js → OrConfirm-8c0e957d.js} +1 -1
  4. package/dist/bundled/v2/{OrLoader-07f84c71.js → OrLoader-864ef92a.js} +4 -11
  5. package/dist/bundled/v2/{OrPagination-1b65273d.js → OrPagination-daf25de2.js} +1 -1
  6. package/dist/bundled/v2/{OrSwitch-3804a2d8.js → OrSwitch-782d7b43.js} +1 -1
  7. package/dist/bundled/v2/{OrText-a665b991.js → OrText-15bf85c4.js} +36 -3
  8. package/dist/bundled/v2/components/index.js +8 -8
  9. package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
  10. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
  11. package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
  12. package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  13. package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
  14. package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
  15. package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
  16. package/dist/bundled/v2/components/or-text-v3/OrText.stories3.d.ts +13 -1
  17. package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +27 -2
  18. package/dist/bundled/v2/components/or-text-v3/index.js +1 -1
  19. package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
  20. package/dist/bundled/v2/index.js +9 -9
  21. package/dist/bundled/v2/{types-13daf4de.js → types-309b7b94.js} +1 -1
  22. package/dist/bundled/v3/{OrButton-d8b1c4ac.js → OrButton-a1448bfa.js} +1 -1
  23. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-d31b504f.js → OrButton.vue_vue_type_script_lang-3b1e442b.js} +2 -2
  24. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-23f82328.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +2 -2
  25. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ab682ec1.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
  26. package/dist/bundled/v3/{OrLoader-40942969.js → OrLoader-123ef8c4.js} +1 -1
  27. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-9efedfe7.js → OrLoader.vue_vue_type_script_lang-4c3c1ac9.js} +4 -11
  28. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c0eceb82.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +2 -2
  29. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-25f16621.js → OrSwitch.vue_vue_type_script_lang-31994be7.js} +2 -2
  30. package/dist/bundled/v3/OrText.vue_vue_type_script_lang-e93438ea.js +93 -0
  31. package/dist/bundled/v3/{OrToastContainer-2e9489f9.js → OrToastContainer-6fe12712.js} +1 -1
  32. package/dist/bundled/v3/components/index.js +10 -10
  33. package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
  34. package/dist/bundled/v3/components/or-card-collection-v3/index.js +5 -5
  35. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
  36. package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  37. package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
  38. package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
  39. package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
  40. package/dist/bundled/v3/components/or-text-v3/OrText.stories3.d.ts +13 -1
  41. package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +27 -2
  42. package/dist/bundled/v3/components/or-text-v3/index.js +1 -1
  43. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  44. package/dist/bundled/v3/index.js +17 -17
  45. package/dist/bundled/v3/{types-8f6f3598.js → types-22fbf9d6.js} +2 -2
  46. package/dist/esm/v2/{OrButton-d067bcac.js → OrButton-66964360.js} +1 -1
  47. package/dist/esm/v2/{OrCardCollection-cab5acb9.js → OrCardCollection-5a9eda35.js} +1 -1
  48. package/dist/esm/v2/{OrConfirm-efe95ff6.js → OrConfirm-9dbdedd7.js} +1 -1
  49. package/dist/esm/v2/{OrLoader-a6ae193f.js → OrLoader-76307488.js} +4 -11
  50. package/dist/esm/v2/{OrPagination-1acb7176.js → OrPagination-1adbcadb.js} +1 -1
  51. package/dist/esm/v2/{OrSwitch-c2429fc0.js → OrSwitch-8549219a.js} +1 -1
  52. package/dist/esm/v2/{OrText-b12d0682.js → OrText-91d662a0.js} +36 -3
  53. package/dist/esm/v2/components/index.js +8 -8
  54. package/dist/esm/v2/components/or-button-v3/index.js +2 -2
  55. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  56. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  57. package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  58. package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
  59. package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
  60. package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
  61. package/dist/esm/v2/components/or-text-v3/OrText.stories3.d.ts +13 -1
  62. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +27 -2
  63. package/dist/esm/v2/components/or-text-v3/index.js +1 -1
  64. package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
  65. package/dist/esm/v2/index.js +8 -8
  66. package/dist/esm/v2/{types-4a75cef1.js → types-1f95d710.js} +1 -1
  67. package/dist/esm/v3/{OrButton-d9f6c316.js → OrButton-c56998e7.js} +1 -1
  68. package/dist/esm/v3/{OrCardCollection-04b36455.js → OrCardCollection-e4fde5b4.js} +1 -1
  69. package/dist/esm/v3/{OrConfirm-d7d6255c.js → OrConfirm-37454a63.js} +1 -1
  70. package/dist/esm/v3/{OrLoader-1709eb68.js → OrLoader-a53d2edf.js} +4 -11
  71. package/dist/esm/v3/{OrPagination-7cbdbb05.js → OrPagination-da9e5017.js} +1 -1
  72. package/dist/esm/v3/{OrSwitch-54988e7a.js → OrSwitch-1c2196da.js} +1 -1
  73. package/dist/esm/v3/{OrText-6b4f7cd1.js → OrText-a3b00048.js} +36 -3
  74. package/dist/esm/v3/components/index.js +8 -8
  75. package/dist/esm/v3/components/or-button-v3/index.js +2 -2
  76. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  77. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  78. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  79. package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
  80. package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
  81. package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
  82. package/dist/esm/v3/components/or-text-v3/OrText.stories3.d.ts +13 -1
  83. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +27 -2
  84. package/dist/esm/v3/components/or-text-v3/index.js +1 -1
  85. package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
  86. package/dist/esm/v3/index.js +8 -8
  87. package/dist/esm/v3/{types-c3417028.js → types-b79e4387.js} +1 -1
  88. package/package.json +1 -1
  89. package/src/components/or-loader-v3/OrLoader.stories3.ts +4 -16
  90. package/src/components/or-loader-v3/OrLoader.vue +2 -10
  91. package/src/components/or-loader-v3/styles.ts +2 -1
  92. package/src/components/or-text-v3/OrText.stories3.ts +81 -5
  93. package/src/components/or-text-v3/OrText.vue +37 -3
  94. package/dist/bundled/v3/OrText.vue_vue_type_script_lang-271fb345.js +0 -60
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, reactive } from 'vue-demi';
2
2
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
3
3
  import '@vueuse/core';
4
4
  import { s as script$1, L as LabelVariant } from './OrLabel-f700f9fb.js';
5
- import { s as script$2 } from './OrLoader-1709eb68.js';
5
+ import { s as script$2 } from './OrLoader-a53d2edf.js';
6
6
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, mergeProps, vModelCheckbox, createVNode, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
7
7
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
8
8
 
@@ -17,16 +17,31 @@ const RestText = [
17
17
  // Layout
18
18
  'shrink'];
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
+ */
20
25
  var script = defineComponent({
21
26
  name: 'OrText',
22
27
  props: {
28
+ /**
29
+ * Text to crop.
30
+ */
23
31
  text: {
24
32
  type: String,
25
33
  required: true
26
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
+ */
27
42
  sliceIndex: {
28
43
  type: Number,
29
- default: undefined
44
+ default: 0
30
45
  }
31
46
  },
32
47
  expose: ['root'],
@@ -37,15 +52,33 @@ var script = defineComponent({
37
52
  const rootStyles = computed(() => ['or-text', ...TextRoot]);
38
53
  const mainTextStyles = computed(() => [...MainText]);
39
54
  const restTextStyles = computed(() => [...RestText]);
55
+ /**
56
+ * Preserves whitespace at the last position as <code>&nbsp;</code>
57
+ * @param str A string to escape
58
+ */
59
+ const escapeLast = str => str && str.slice(0, -1) + '\xa0';
60
+ /**
61
+ * Preserves whitespace at the first position as <code>&nbsp;</code>
62
+ * @param str A string to escape
63
+ */
64
+ const escapeFirst = str => str && '\xa0' + str.slice(1);
40
65
  // State
41
66
  const mainText = computed(() => {
42
67
  if (props.sliceIndex) {
43
- return props.text.slice(0, Math.abs(props.sliceIndex) * -1);
68
+ let mainPart = props.text.slice(0, -Math.abs(props.sliceIndex));
69
+ if (mainPart[mainPart.length - 1] === ' ') {
70
+ mainPart = escapeLast(mainPart);
71
+ }
72
+ return mainPart;
44
73
  }
45
74
  return props.text;
46
75
  });
47
76
  const restText = computed(() => {
48
- return props.text.slice(mainText.value.length);
77
+ let restPart = props.text.slice(mainText.value.length);
78
+ if (restPart[0] === ' ') {
79
+ restPart = escapeFirst(restPart);
80
+ }
81
+ return restPart;
49
82
  });
50
83
  return {
51
84
  root,
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-
3
3
  export { s as OrBottomSheetV3 } from '../OrBottomSheet-13a416ef.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-d9f6c316.js';
6
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-c56998e7.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-04b36455.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-e4fde5b4.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-d7d6255c.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-37454a63.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-308119de.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-1709eb68.js';
46
+ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from '../OrLoader-a53d2edf.js';
47
47
  export { s as OrMenuItemV3 } from '../OrMenuItem-58707d47.js';
48
48
  export { s as OrMenuV3 } from '../OrMenu-7f3ea117.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-40217b49.js';
@@ -56,7 +56,7 @@ 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-afad3aa4.js';
58
58
  export { s as OrPassword } from '../OrPassword-b0cbb578.js';
59
- export { s as OrPaginationV3 } from '../OrPagination-7cbdbb05.js';
59
+ export { s as OrPaginationV3 } from '../OrPagination-da9e5017.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';
@@ -75,7 +75,7 @@ export { s as OrSlider } from '../OrSlider-87e2da8c.js';
75
75
  export { s as OrSortHeaderV3 } from '../OrSortHeader-a39f77f9.js';
76
76
  export { s as OrStepper } from '../OrStepper-f19b4eac.js';
77
77
  export { s as OrSwitch } from '../OrSwitch-c333ee32.js';
78
- export { s as OrSwitchV3 } from '../OrSwitch-54988e7a.js';
78
+ export { s as OrSwitchV3 } from '../OrSwitch-1c2196da.js';
79
79
  export { s as OrTab } from '../OrTab-bc98be02.js';
80
80
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem-d668cc59.js';
81
81
  export { s as OrTabV3 } from '../OrTab-d3785ea4.js';
@@ -85,13 +85,13 @@ export { s as OrTag } from '../OrTag-1b5e43fa.js';
85
85
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-148ff9ae.js';
86
86
  export { s as OrTeleport } from '../OrTeleportVue3-ad639f12.js';
87
87
  export { s as OrTeleportV3 } from '../OrTeleport.vue3-8099178c.js';
88
- export { s as OrTextV3 } from '../OrText-6b4f7cd1.js';
88
+ export { s as OrTextV3 } from '../OrText-a3b00048.js';
89
89
  export { s as OrTextarea } from '../OrTextarea-1f5c3be1.js';
90
90
  export { s as OrTextareaV3 } from '../OrTextarea-37566985.js';
91
91
  export { s as OrTextbox, T as TextboxTypes } from '../OrTextbox-2f33e9c3.js';
92
92
  export { s as OrToast, a as OrToastContainer } from '../OrToastContainer-40c4c1c8.js';
93
93
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-4fbe0e5a.js';
94
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-c3417028.js';
94
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../types-b79e4387.js';
95
95
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-0665462d.js';
96
96
  export { s as OrTooltip, a as OrTooltipContent } from '../OrTooltip-78cd7f6b.js';
97
97
  export { s as OrTooltipV3 } from '../OrTooltip-b07616f4.js';
@@ -1,4 +1,4 @@
1
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton-d9f6c316.js';
1
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton-c56998e7.js';
2
2
  import 'vue-demi';
3
- import '../../OrLoader-1709eb68.js';
3
+ import '../../OrLoader-a53d2edf.js';
4
4
  import 'vue';
@@ -1,7 +1,7 @@
1
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-04b36455.js';
1
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-e4fde5b4.js';
2
2
  import 'vue-demi';
3
- import '../../OrButton-d9f6c316.js';
4
- import '../../OrLoader-1709eb68.js';
3
+ import '../../OrButton-c56998e7.js';
4
+ import '../../OrLoader-a53d2edf.js';
5
5
  import 'vue';
6
6
  import '../../OrIconButton-2dcfb83e.js';
7
7
  import '../../OrIcon-34f59f73.js';
@@ -1,9 +1,9 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-d7d6255c.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-37454a63.js';
2
2
  import '@vueuse/core';
3
3
  import '@vueuse/math';
4
4
  import 'vue-demi';
5
- import '../../OrButton-d9f6c316.js';
6
- import '../../OrLoader-1709eb68.js';
5
+ import '../../OrButton-c56998e7.js';
6
+ import '../../OrLoader-a53d2edf.js';
7
7
  import 'vue';
8
8
  import '../../OrInput-bd054213.js';
9
9
  import '../../useIdAttribute-859439f0.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,3 +1,3 @@
1
- export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from '../../OrLoader-1709eb68.js';
1
+ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from '../../OrLoader-a53d2edf.js';
2
2
  import 'vue-demi';
3
3
  import 'vue';
@@ -1,7 +1,7 @@
1
- export { s as OrPaginationV3 } from '../../OrPagination-7cbdbb05.js';
1
+ export { s as OrPaginationV3 } from '../../OrPagination-da9e5017.js';
2
2
  import 'vue-demi';
3
- import '../../OrButton-d9f6c316.js';
4
- import '../../OrLoader-1709eb68.js';
3
+ import '../../OrButton-c56998e7.js';
4
+ import '../../OrLoader-a53d2edf.js';
5
5
  import 'vue';
6
6
  import '../../OrIcon-34f59f73.js';
7
7
  import '../../OrMenuItem-58707d47.js';
@@ -1,8 +1,8 @@
1
- export { s as OrSwitchV3 } from '../../OrSwitch-54988e7a.js';
1
+ export { s as OrSwitchV3 } from '../../OrSwitch-1c2196da.js';
2
2
  import 'vue-demi';
3
3
  import '../../useIdAttribute-859439f0.js';
4
4
  import '@vueuse/core';
5
5
  import '../../OrLabel-f700f9fb.js';
6
6
  import 'vue';
7
- import '../../OrLoader-1709eb68.js';
7
+ import '../../OrLoader-a53d2edf.js';
8
8
  import '../../style-inject.es-4c6f2515.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 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, {
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: undefined;
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: undefined;
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,3 +1,3 @@
1
- export { s as OrTextV3 } from '../../OrText-6b4f7cd1.js';
1
+ export { s as OrTextV3 } from '../../OrText-a3b00048.js';
2
2
  import 'vue-demi';
3
3
  import 'vue';
@@ -1,4 +1,4 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-c3417028.js';
1
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-b79e4387.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-31bfe1f6.js';
13
13
  import '../../useResponsive-a02e95b7.js';
14
14
  import '../../OrBottomSheet-13a416ef.js';
15
15
  import '../../OrOverlay-afad3aa4.js';
16
- import '../../OrLoader-1709eb68.js';
16
+ import '../../OrLoader-a53d2edf.js';
17
17
  import '../../style-inject.es-4c6f2515.js';
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-6
3
3
  export { s as OrBottomSheetV3 } from './OrBottomSheet-13a416ef.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-d9f6c316.js';
6
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-c56998e7.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-04b36455.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-e4fde5b4.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-d7d6255c.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-37454a63.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-308119de.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-1709eb68.js';
46
+ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-a53d2edf.js';
47
47
  export { s as OrMenuItemV3 } from './OrMenuItem-58707d47.js';
48
48
  export { s as OrMenuV3 } from './OrMenu-7f3ea117.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-40217b49.js';
@@ -56,7 +56,7 @@ 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-afad3aa4.js';
58
58
  export { s as OrPassword } from './OrPassword-b0cbb578.js';
59
- export { s as OrPaginationV3 } from './OrPagination-7cbdbb05.js';
59
+ export { s as OrPaginationV3 } from './OrPagination-da9e5017.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';
@@ -75,7 +75,7 @@ export { s as OrSlider } from './OrSlider-87e2da8c.js';
75
75
  export { s as OrSortHeaderV3 } from './OrSortHeader-a39f77f9.js';
76
76
  export { s as OrStepper } from './OrStepper-f19b4eac.js';
77
77
  export { s as OrSwitch } from './OrSwitch-c333ee32.js';
78
- export { s as OrSwitchV3 } from './OrSwitch-54988e7a.js';
78
+ export { s as OrSwitchV3 } from './OrSwitch-1c2196da.js';
79
79
  export { s as OrTab } from './OrTab-bc98be02.js';
80
80
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
81
81
  export { s as OrTabV3 } from './OrTab-d3785ea4.js';
@@ -85,13 +85,13 @@ export { s as OrTag } from './OrTag-1b5e43fa.js';
85
85
  export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-148ff9ae.js';
86
86
  export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
87
87
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
88
- export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
88
+ export { s as OrTextV3 } from './OrText-a3b00048.js';
89
89
  export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
90
90
  export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
91
91
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
92
92
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
93
93
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
94
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-c3417028.js';
94
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-b79e4387.js';
95
95
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
96
96
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
97
97
  export { s as OrTooltipV3 } from './OrTooltip-b07616f4.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-2dcfb83e.js';
6
- import { s as script$3 } from './OrLoader-1709eb68.js';
6
+ import { s as script$3 } from './OrLoader-a53d2edf.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.72.2-beta.2276.0",
3
+ "version": "2.72.2-beta.2278.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -25,16 +25,16 @@ export default {
25
25
  },
26
26
 
27
27
  title: {
28
- control: { type: 'text' },
28
+ control: { type: 'string' },
29
29
  },
30
30
 
31
31
  description: {
32
- control: { type: 'text' },
32
+ control: { type: 'string' },
33
33
  },
34
34
  },
35
35
 
36
36
  parameters: {
37
- layout: 'fullscreen',
37
+ layout: 'centered',
38
38
 
39
39
  docs: {
40
40
  page: OrLoaderDocs,
@@ -56,11 +56,7 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
56
56
  return { args };
57
57
  },
58
58
 
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
- `,
59
+ template: '<OrLoader v-bind="args" />',
64
60
  });
65
61
 
66
62
  export const Default = Template.bind({});
@@ -76,11 +72,3 @@ LinearWithText.args = {
76
72
  variant: 'linear',
77
73
  description: 'Promptly retrieving your data from the cloud',
78
74
  };
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
- };
@@ -92,18 +92,11 @@ export default defineComponent({
92
92
  default: LoaderVariant.Circular,
93
93
  },
94
94
 
95
- /**
96
- * Defines a semantic color of the loading indicator.
97
- * Use `'inherit'` option to set your own color from the parent (not recommended).
98
- */
99
95
  color: {
100
96
  type: String as PropType<LoaderColor>,
101
97
  default: LoaderColor.Primary,
102
98
  },
103
99
 
104
- /**
105
- * Defines a diameter of the circular loader. Ignored for linear one.
106
- */
107
100
  size: {
108
101
  type: String as PropType<LoaderSize>,
109
102
  default: LoaderSize.M,
@@ -145,16 +138,15 @@ export default defineComponent({
145
138
 
146
139
  const containerStyles = computed(() => [
147
140
  ...LoaderContainer,
148
- `min-w-[${computedSize}px]`,
149
141
  ]);
150
142
 
151
143
  // State
152
144
  const computedSize = computed(() => {
153
145
  switch (props.size) {
154
- case LoaderSize.M:
146
+ case 'm':
155
147
  return 20;
156
148
 
157
- case LoaderSize.S:
149
+ case 's':
158
150
  return 16;
159
151
  }
160
152
  });
@@ -2,9 +2,10 @@ import { LoaderColor } from './props';
2
2
 
3
3
  export const LoaderRoot: string[] = [
4
4
  // Layout
5
+ 'contents',
5
6
  'flex',
6
7
  'flex-col',
7
- 'gap-md',
8
+ 'space-y-md',
8
9
  ];
9
10
 
10
11
  export const LoaderRootColors: Record<LoaderColor, string[]> = {