@onereach/ui-components 2.74.8-beta.2337.0 → 2.74.8-beta.2338.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/{OrCardCollection-ba527c32.js → OrCardCollection-2429285f.js} +3 -3
- package/dist/bundled/v2/{OrConfirm-06b41408.js → OrConfirm-2cdb78b3.js} +1 -1
- package/dist/bundled/v2/{OrIconButton-deec1d4d.js → OrIconButton-037b9c33.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-9304f205.js → OrInlineInput-6a0ac021.js} +1 -1
- package/dist/bundled/v2/{OrInlineTextarea-e0d28fc6.js → OrInlineTextarea-59183fa9.js} +1 -1
- package/dist/bundled/v2/{OrInput-e0e8b941.js → OrInput-93ccd5f2.js} +1 -1
- package/dist/bundled/v2/{OrMenu-82c77b2c.js → OrMenu-021f347c.js} +1 -1
- package/dist/bundled/v2/{OrModal-d845da2d.js → OrModal-4218b040.js} +1 -1
- package/dist/bundled/v2/{OrNotification-f7644c55.js → OrNotification-35c163f7.js} +1 -1
- package/dist/bundled/v2/{OrPagination-95f37111.js → OrPagination-19494306.js} +1 -1
- package/dist/bundled/v2/{OrPopover-597ad11f.js → OrPopover-0697699f.js} +2 -10
- package/dist/bundled/v2/{OrSearch-fbf62c5d.js → OrSearch-0178b612.js} +1 -1
- package/dist/bundled/v2/{OrSelect-685345f4.js → OrSelect-43ba3073.js} +3 -3
- package/dist/bundled/v2/{OrSidebar-5ddf0e24.js → OrSidebar-b7a27e27.js} +1 -1
- package/dist/bundled/v2/{OrSidebarCollapseButton-d6ebc2aa.js → OrSidebarCollapseButton-e8632afe.js} +1 -1
- package/dist/bundled/v2/{OrTabs-ff22ddce.js → OrTabs-70c1818f.js} +1 -1
- package/dist/bundled/v2/{OrTag-1676da32.js → OrTag-59ab76c5.js} +1 -1
- package/dist/bundled/v2/{OrText-a665b991.js → OrText-15bf85c4.js} +36 -3
- package/dist/bundled/v2/{OrTooltip-87c2e375.js → OrTooltip-9ef540f0.js} +1 -1
- package/dist/bundled/v2/components/index.js +20 -20
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-input-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-menu-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-modal-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-notification-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-popover-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-select-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/bundled/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-tag-v3/index.js +4 -4
- 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 +4 -4
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +21 -21
- package/dist/bundled/v2/{types-0e3ca5b9.js → types-da54f18c.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3e33148c.js → OrCardCollection.vue_vue_type_script_lang-b474de2d.js} +5 -5
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-8e7c65df.js → OrConfirm.vue_vue_type_script_lang-239c88b9.js} +2 -2
- package/dist/bundled/v3/{OrIconButton-8f4c68e9.js → OrIconButton-a2091425.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-8670c49e.js → OrIconButton.vue_vue_type_script_lang-14871105.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js → OrInlineInput.vue_vue_type_script_lang-f2cc2704.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js → OrInlineTextarea.vue_vue_type_script_lang-9c6d7277.js} +2 -2
- package/dist/bundled/v3/{OrInput-7679287c.js → OrInput-3bf44521.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-edf81609.js → OrInput.vue_vue_type_script_lang-38947e44.js} +2 -2
- package/dist/bundled/v3/{OrMenu-c982d515.js → OrMenu-c2c114de.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-cefb0eca.js → OrMenu.vue_vue_type_script_lang-518b5305.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-3f3ce339.js → OrModal.vue_vue_type_script_lang-8d7f1436.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-4532696a.js → OrNotification.vue_vue_type_script_lang-b0280317.js} +2 -2
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b6e7592e.js → OrPagination.vue_vue_type_script_lang-cdab5b21.js} +2 -2
- package/dist/bundled/v3/{OrPopover-0c296207.js → OrPopover-f9a1d5d7.js} +7 -8
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-7b934bbf.js → OrSearch.vue_vue_type_script_lang-409490d8.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-2206f2b8.js → OrSelect.vue_vue_type_script_lang-b50634d8.js} +4 -4
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-4639bf0e.js → OrSidebar.vue_vue_type_script_lang-b5adff07.js} +1 -1
- package/dist/bundled/v3/{OrSidebarCollapseButton.vue_vue_type_script_lang-a46ed51a.js → OrSidebarCollapseButton.vue_vue_type_script_lang-ddb36366.js} +2 -2
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-c8df52e6.js → OrTabs.vue_vue_type_script_lang-7a2b137a.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-c33033d3.js → OrTag.vue_vue_type_script_lang-4fe7e19f.js} +2 -2
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-e93438ea.js +93 -0
- package/dist/bundled/v3/{OrToastContainer-5c99d3ce.js → OrToastContainer-6ade8920.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-a17ed18c.js → OrTooltip.vue_vue_type_script_lang-0c228e6f.js} +1 -1
- package/dist/bundled/v3/components/index.js +23 -23
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -10
- package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-input-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-menu-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-notification-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-pagination-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-search-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-select-v3/index.js +8 -8
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +5 -5
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +5 -5
- package/dist/bundled/v3/components/or-tabs-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-tag-v3/index.js +5 -5
- 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 +6 -6
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +2 -2
- package/dist/bundled/v3/index.js +36 -36
- package/dist/bundled/v3/{types-5a9ace3b.js → types-9a4dc8a9.js} +2 -2
- package/dist/esm/v2/{OrCardCollection-fa7e81fc.js → OrCardCollection-f8b71fc6.js} +4 -4
- package/dist/esm/v2/{OrConfirm-06885721.js → OrConfirm-15e27711.js} +1 -1
- package/dist/esm/v2/{OrIconButton-fa9bff07.js → OrIconButton-140f940e.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-df02ab5d.js → OrInlineInput-3b1afd44.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-ad120656.js → OrInlineTextarea-8990fc61.js} +1 -1
- package/dist/esm/v2/{OrInput-a19adb5d.js → OrInput-1ddf99ba.js} +1 -1
- package/dist/esm/v2/{OrMenu-bb6e93bc.js → OrMenu-1adef5df.js} +1 -1
- package/dist/esm/v2/{OrModal-370cfc3b.js → OrModal-a938e31b.js} +1 -1
- package/dist/esm/v2/{OrNotification-687b4999.js → OrNotification-e8c1df46.js} +1 -1
- package/dist/esm/v2/{OrPagination-81d4476a.js → OrPagination-c27faf97.js} +2 -2
- package/dist/esm/v2/{OrPopover-a101a230.js → OrPopover-b3746279.js} +2 -10
- package/dist/esm/v2/{OrSearch-513c80e5.js → OrSearch-09e7d4dc.js} +1 -1
- package/dist/esm/v2/{OrSelect-a9e8f533.js → OrSelect-d991fe95.js} +3 -3
- package/dist/esm/v2/{OrSidebar-89711112.js → OrSidebar-6b246de1.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-81c77db0.js → OrSidebarCollapseButton-9178923e.js} +1 -1
- package/dist/esm/v2/{OrTabs-b501239f.js → OrTabs-6d7d9d7e.js} +2 -2
- package/dist/esm/v2/{OrTag-6fd8988e.js → OrTag-1ed1265c.js} +1 -1
- package/dist/esm/v2/{OrText-b12d0682.js → OrText-91d662a0.js} +36 -3
- package/dist/esm/v2/{OrTooltip-d9424f71.js → OrTooltip-34d2e01f.js} +1 -1
- package/dist/esm/v2/components/index.js +20 -20
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v2/components/or-icon-button-v3/index.js +3 -3
- package/dist/esm/v2/components/or-inline-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/esm/v2/components/or-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-menu-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-popover-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +5 -5
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-sidebar-v3/index.js +5 -5
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
- 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 +4 -4
- package/dist/esm/v2/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/v2/index.js +20 -20
- package/dist/esm/v2/{types-d5127999.js → types-98d95522.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-8a658b21.js → OrCardCollection-3374f65b.js} +4 -4
- package/dist/esm/v3/{OrConfirm-26d799f0.js → OrConfirm-dbf267cd.js} +1 -1
- package/dist/esm/v3/{OrIconButton-385e997c.js → OrIconButton-2a9a6627.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-cd3753ee.js → OrInlineInput-6c4fe7ff.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-4c5b0390.js → OrInlineTextarea-3cd956d9.js} +1 -1
- package/dist/esm/v3/{OrInput-ab92224c.js → OrInput-0c07888f.js} +1 -1
- package/dist/esm/v3/{OrMenu-b4e8136c.js → OrMenu-345930d5.js} +1 -1
- package/dist/esm/v3/{OrModal-f9f2279b.js → OrModal-07c092ab.js} +1 -1
- package/dist/esm/v3/{OrNotification-03a7426c.js → OrNotification-e600fd9a.js} +1 -1
- package/dist/esm/v3/{OrPagination-94c2095f.js → OrPagination-d0ba716f.js} +2 -2
- package/dist/esm/v3/{OrPopover-35ee1b1e.js → OrPopover-464a5606.js} +7 -8
- package/dist/esm/v3/{OrSearch-88811fdc.js → OrSearch-e1cc559b.js} +1 -1
- package/dist/esm/v3/{OrSelect-56031e58.js → OrSelect-b06bf2d8.js} +3 -3
- package/dist/esm/v3/{OrSidebar-64703ef6.js → OrSidebar-0a32cc49.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-506fc73c.js → OrSidebarCollapseButton-647d2c50.js} +1 -1
- package/dist/esm/v3/{OrTabs-e639e96f.js → OrTabs-9949f87b.js} +2 -2
- package/dist/esm/v3/{OrTag-f5937430.js → OrTag-f66c6142.js} +1 -1
- package/dist/esm/v3/{OrText-6b4f7cd1.js → OrText-a3b00048.js} +36 -3
- package/dist/esm/v3/{OrTooltip-e5fe74d6.js → OrTooltip-d1b1a4bb.js} +1 -1
- package/dist/esm/v3/components/index.js +20 -20
- package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v3/components/or-icon-button-v3/index.js +3 -3
- package/dist/esm/v3/components/or-inline-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/esm/v3/components/or-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-menu-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-popover-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +5 -5
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-sidebar-v3/index.js +5 -5
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
- 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 +4 -4
- package/dist/esm/v3/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/v3/index.js +20 -20
- package/dist/esm/v3/{types-f6f8ab6b.js → types-7d404d5f.js} +1 -1
- package/package.json +1 -1
- package/src/components/or-popover-v3/OrPopover.vue +26 -31
- package/src/components/or-text-v3/OrText.stories3.ts +83 -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
package/dist/esm/v3/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
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-e6a77cab.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-3374f65b.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-9071b02e.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-d402975a.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-9d6b10da.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-53890a6e.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-02ae9c60.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-dbf267cd.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-63f22d1b.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-0025b17c.js';
|
|
@@ -28,14 +28,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
|
|
|
28
28
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
29
29
|
export { s as OrHintV3 } from './OrHint-6863124f.js';
|
|
30
30
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-71e35d92.js';
|
|
31
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
31
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-2a9a6627.js';
|
|
32
32
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-ea40e58c.js';
|
|
33
33
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-6c4fe7ff.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-941f784a.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
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-0c07888f.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';
|
|
@@ -45,31 +45,31 @@ export { s as OrListOfInputs } from './OrListOfInputs-e459e8c2.js';
|
|
|
45
45
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
|
|
46
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
|
-
export { s as OrMenuV3 } from './OrMenu-
|
|
49
|
-
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-
|
|
48
|
+
export { s as OrMenuV3 } from './OrMenu-345930d5.js';
|
|
49
|
+
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-464a5606.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-efacdf3f.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-07c092ab.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-f7d413aa.js';
|
|
53
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
53
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-e600fd9a.js';
|
|
54
54
|
export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
|
|
55
55
|
export { s as OrOverflowMenu } from './OrOverflowMenu-31fa636f.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-25c093b4.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-97fb105f.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-06c13e14.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-e1cc559b.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-5c6f0ff8.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-b06bf2d8.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
|
-
export { s as OrSidebarV3 } from './OrSidebar-
|
|
72
|
-
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-
|
|
71
|
+
export { s as OrSidebarV3 } from './OrSidebar-0a32cc49.js';
|
|
72
|
+
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-647d2c50.js';
|
|
73
73
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
74
74
|
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
|
|
75
75
|
export { s as OrSlider } from './OrSlider-f58deda8.js';
|
|
@@ -81,21 +81,21 @@ 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';
|
|
83
83
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
84
|
-
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-
|
|
84
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-9949f87b.js';
|
|
85
85
|
export { s as OrTag } from './OrTag-909a5dc9.js';
|
|
86
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
86
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-f66c6142.js';
|
|
87
87
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.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-a3b00048.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-2a3c67fb.js';
|
|
93
93
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-a3da18a0.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-b71e93b5.js';
|
|
98
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
98
|
+
export { s as OrTooltipV3 } from './OrTooltip-d1b1a4bb.js';
|
|
99
99
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
100
100
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
101
101
|
export { u as useElevation } from './useElevation-92fce12c.js';
|
|
@@ -2,7 +2,7 @@ import { useToggle } from '@vueuse/core';
|
|
|
2
2
|
import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
|
|
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
|
-
import { s as script$2 } from './OrIconButton-
|
|
5
|
+
import { s as script$2 } from './OrIconButton-2a9a6627.js';
|
|
6
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';
|
package/package.json
CHANGED
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<OrTeleport>
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
v-bind="$attrs"
|
|
11
|
-
:class="rootStyles"
|
|
12
|
-
>
|
|
13
|
-
<template v-if="disableDefaultStyles">
|
|
14
|
-
<slot />
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<template v-else>
|
|
18
|
-
<div :class="bodyStyles">
|
|
19
|
-
<slot />
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<template v-if="isMobile && variant === 'auto' || variant === 'bottom-sheet'">
|
|
26
|
-
<OrBottomSheet
|
|
27
|
-
ref="bottomSheet"
|
|
28
|
-
@update:state="handleBottomSheetState"
|
|
29
|
-
>
|
|
2
|
+
<OrTeleport v-if="state !== 'closed'">
|
|
3
|
+
<template v-if="isDesktop && variant === 'auto' || variant === 'popover'">
|
|
4
|
+
<div
|
|
5
|
+
ref="root"
|
|
6
|
+
v-bind="$attrs"
|
|
7
|
+
:class="rootStyles"
|
|
8
|
+
>
|
|
9
|
+
<template v-if="disableDefaultStyles">
|
|
30
10
|
<slot />
|
|
31
|
-
</
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<template v-else>
|
|
14
|
+
<div :class="bodyStyles">
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<template v-if="isMobile && variant === 'auto' || variant === 'bottom-sheet'">
|
|
22
|
+
<OrBottomSheet
|
|
23
|
+
ref="bottomSheet"
|
|
24
|
+
@update:state="handleBottomSheetState"
|
|
25
|
+
>
|
|
26
|
+
<slot />
|
|
27
|
+
</OrBottomSheet>
|
|
28
|
+
</template>
|
|
34
29
|
</OrTeleport>
|
|
35
30
|
</template>
|
|
36
31
|
|
|
@@ -34,13 +34,91 @@ const Template: StoryFn<typeof OrText> = (args) => ({
|
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
template: `
|
|
37
|
-
<
|
|
37
|
+
<div class="w-2/5 mx-auto px-md bg-surface-2 dark:bg-surface-2-dark">
|
|
38
|
+
<OrText v-bind="args" />
|
|
39
|
+
</div>
|
|
38
40
|
`,
|
|
39
41
|
});
|
|
40
42
|
|
|
41
|
-
export const
|
|
42
|
-
|
|
43
|
-
Text.args = {
|
|
43
|
+
export const Default = Template.bind({});
|
|
44
|
+
Default.args = {
|
|
44
45
|
// Props
|
|
45
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
|
|
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
|
+
},
|
|
78
|
+
|
|
79
|
+
template: `
|
|
80
|
+
<div class="w-full">
|
|
81
|
+
<h3 class="typography-headline-3 mb-md">Flex container side effect</h3>
|
|
82
|
+
<div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
|
|
83
|
+
<!-- fixed part -->
|
|
84
|
+
<div class="w-[20px]" />
|
|
85
|
+
<!-- growing part -->
|
|
86
|
+
<div class="grow px-md">
|
|
87
|
+
<OrText v-bind="args" />
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
<h3 class="typography-headline-3 my-md">Solution with a wrapper</h3>
|
|
91
|
+
<div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
|
|
92
|
+
<!-- fixed part -->
|
|
93
|
+
<div class="w-[20px]" />
|
|
94
|
+
<!-- growing part -->
|
|
95
|
+
<div class="grow px-md min-w-0">
|
|
96
|
+
<OrText v-bind="args" />
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<h3 class="typography-headline-3 my-md">Solution without a wrapper</h3>
|
|
100
|
+
<div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
|
|
101
|
+
<!-- fixed part -->
|
|
102
|
+
<div class="w-[20px]" />
|
|
103
|
+
<!-- growing part -->
|
|
104
|
+
<OrText v-bind="args" class="grow px-md min-w-0" />
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
`,
|
|
108
|
+
});
|
|
109
|
+
ComplexContainer.storyName = 'Growing Flex Container';
|
|
110
|
+
ComplexContainer.args = {
|
|
111
|
+
...Default.args,
|
|
112
|
+
sliceIndex: 12,
|
|
113
|
+
};
|
|
114
|
+
ComplexContainer.parameters = {
|
|
115
|
+
docs: {
|
|
116
|
+
description: {
|
|
117
|
+
story: 'In a special case when OrText is placed inside a variable width container,\
|
|
118
|
+
such as a flexbox growing block, or when it is itself a growing flexbox item,\
|
|
119
|
+
there is a problem for a browser to proper calculate the cropping position.\
|
|
120
|
+
As a solution place a `min-width: 0;` style (tailwind class `min-w-0`)\
|
|
121
|
+
to the growing item - container or the OrText itself.',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
46
124
|
};
|
|
@@ -17,18 +17,33 @@
|
|
|
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
|
+
*/
|
|
20
25
|
export default defineComponent({
|
|
21
26
|
name: 'OrText',
|
|
22
27
|
|
|
23
28
|
props: {
|
|
29
|
+
/**
|
|
30
|
+
* Text to crop.
|
|
31
|
+
*/
|
|
24
32
|
text: {
|
|
25
33
|
type: String,
|
|
26
34
|
required: true,
|
|
27
35
|
},
|
|
28
36
|
|
|
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
|
+
*/
|
|
29
44
|
sliceIndex: {
|
|
30
45
|
type: Number,
|
|
31
|
-
default:
|
|
46
|
+
default: 0,
|
|
32
47
|
},
|
|
33
48
|
},
|
|
34
49
|
|
|
@@ -54,17 +69,36 @@ export default defineComponent({
|
|
|
54
69
|
...RestText,
|
|
55
70
|
]);
|
|
56
71
|
|
|
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
|
+
|
|
57
83
|
// State
|
|
58
84
|
const mainText = computed(() => {
|
|
59
85
|
if (props.sliceIndex) {
|
|
60
|
-
|
|
86
|
+
let mainPart = props.text.slice(0, -Math.abs(props.sliceIndex));
|
|
87
|
+
if (mainPart[mainPart.length - 1] === ' ') {
|
|
88
|
+
mainPart = escapeLast(mainPart);
|
|
89
|
+
}
|
|
90
|
+
return mainPart;
|
|
61
91
|
}
|
|
62
92
|
|
|
63
93
|
return props.text;
|
|
64
94
|
});
|
|
65
95
|
|
|
66
96
|
const restText = computed(() => {
|
|
67
|
-
|
|
97
|
+
let restPart = props.text.slice(mainText.value.length);
|
|
98
|
+
if (restPart[0] === ' ') {
|
|
99
|
+
restPart = escapeFirst(restPart);
|
|
100
|
+
}
|
|
101
|
+
return restPart;
|
|
68
102
|
});
|
|
69
103
|
|
|
70
104
|
return {
|
|
@@ -1,60 +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
|
-
var script = defineComponent({
|
|
20
|
-
name: 'OrText',
|
|
21
|
-
props: {
|
|
22
|
-
text: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true
|
|
25
|
-
},
|
|
26
|
-
sliceIndex: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: undefined
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
expose: ['root'],
|
|
32
|
-
setup(props) {
|
|
33
|
-
// Refs
|
|
34
|
-
const root = ref();
|
|
35
|
-
// Styles
|
|
36
|
-
const rootStyles = computed(() => ['or-text', ...TextRoot]);
|
|
37
|
-
const mainTextStyles = computed(() => [...MainText]);
|
|
38
|
-
const restTextStyles = computed(() => [...RestText]);
|
|
39
|
-
// State
|
|
40
|
-
const mainText = computed(() => {
|
|
41
|
-
if (props.sliceIndex) {
|
|
42
|
-
return props.text.slice(0, Math.abs(props.sliceIndex) * -1);
|
|
43
|
-
}
|
|
44
|
-
return props.text;
|
|
45
|
-
});
|
|
46
|
-
const restText = computed(() => {
|
|
47
|
-
return props.text.slice(mainText.value.length);
|
|
48
|
-
});
|
|
49
|
-
return {
|
|
50
|
-
root,
|
|
51
|
-
rootStyles,
|
|
52
|
-
mainTextStyles,
|
|
53
|
-
restTextStyles,
|
|
54
|
-
mainText,
|
|
55
|
-
restText
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
export { script as s };
|