@onereach/ui-components 2.69.7-beta.2177.0 → 2.69.7-beta.2181.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-43c04eb1.js → OrCardCollection-c4209a92.js} +2 -2
- package/dist/bundled/v2/{OrConfirm-38bf5592.js → OrConfirm-cab6535b.js} +1 -1
- package/dist/bundled/v2/{OrIconButton-d7f24f8c.js → OrIconButton-a215104c.js} +2 -2
- package/dist/bundled/v2/{OrInlineInput-cac9b9a9.js → OrInlineInput-9add2e1e.js} +1 -1
- package/dist/bundled/v2/{OrInlineTextarea-860f6c37.js → OrInlineTextarea-9c6f9044.js} +1 -1
- package/dist/bundled/v2/{OrInput-930e823a.js → OrInput-8b90e08f.js} +1 -1
- package/dist/bundled/v2/{OrModal-b875854b.js → OrModal-f89de11f.js} +12 -3
- package/dist/bundled/v2/{OrNotification-773b5eff.js → OrNotification-d76a062d.js} +13 -5
- package/dist/bundled/v2/{OrSearch-d1ab9324.js → OrSearch-76b002cf.js} +1 -1
- package/dist/bundled/v2/{OrSelect-71e2c47f.js → OrSelect-b7d93d4e.js} +2 -2
- package/dist/bundled/v2/{OrTag-242e44d4.js → OrTag-20db902b.js} +5 -5
- package/dist/bundled/v2/components/index.js +12 -12
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-modal-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-select-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-tag-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tag-v3/props.d.ts +1 -1
- package/dist/bundled/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/index.js +12 -12
- package/dist/bundled/v2/{types-b5083f9b.js → types-fdd34542.js} +17 -8
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-7dfa7e49.js → OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-934a4cee.js → OrConfirm.vue_vue_type_script_lang-f57ffa1a.js} +2 -2
- package/dist/bundled/v3/{OrIconButton-39a56d98.js → OrIconButton-1581013c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-94499be9.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-d5697ee2.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-5976515a.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
- package/dist/bundled/v3/{OrInput-f2c55e6c.js → OrInput-fa782fc1.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-3352c72b.js → OrInput.vue_vue_type_script_lang-f6d793d3.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-f9629150.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +9 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-34d5475b.js → OrNotification.vue_vue_type_script_lang-fbb35355.js} +9 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-62b067cd.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-093e6c3c.js → OrSelect.vue_vue_type_script_lang-25dee18b.js} +3 -3
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-47e88acf.js → OrTag.vue_vue_type_script_lang-8cf66d48.js} +6 -6
- package/dist/bundled/v3/{OrToastContainer-29d7b8e5.js → OrToastContainer-7c3c0b12.js} +1 -1
- package/dist/bundled/v3/components/index.js +14 -14
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-notification-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-select-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tag-v3/props.d.ts +1 -1
- package/dist/bundled/v3/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/index.js +30 -27
- package/dist/bundled/v3/{types-e6a2856c.js → types-dcc78caa.js} +16 -7
- package/dist/esm/v2/{OrCardCollection-c2075a71.js → OrCardCollection-57d11adf.js} +2 -2
- package/dist/esm/v2/{OrConfirm-5cca4c1d.js → OrConfirm-ec7aef0e.js} +1 -1
- package/dist/esm/v2/{OrIconButton-a6a844c8.js → OrIconButton-e17e4944.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-27c959f5.js → OrInlineInput-cfeeea33.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-c6b40bcf.js → OrInlineTextarea-897b5377.js} +1 -1
- package/dist/esm/v2/{OrInput-507232aa.js → OrInput-2f16a7ac.js} +1 -1
- package/dist/esm/v2/{OrModal-e937a1d2.js → OrModal-5b37a50a.js} +12 -3
- package/dist/esm/v2/{OrNotification-d4128a8b.js → OrNotification-c765f111.js} +13 -5
- package/dist/esm/v2/{OrSearch-91d5decf.js → OrSearch-2f260b09.js} +1 -1
- package/dist/esm/v2/{OrSelect-7a14b7aa.js → OrSelect-8dbd2696.js} +2 -2
- package/dist/esm/v2/{OrTag-94d7a3fc.js → OrTag-e2e7264d.js} +5 -5
- package/dist/esm/v2/components/index.js +12 -12
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v2/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-search-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/props.d.ts +1 -1
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/esm/v2/index.js +12 -12
- package/dist/esm/v2/{types-1c944cfa.js → types-8d58d7b5.js} +17 -8
- package/dist/esm/v3/{OrCardCollection-ed902be3.js → OrCardCollection-2a6514f3.js} +2 -2
- package/dist/esm/v3/{OrConfirm-8dcd8715.js → OrConfirm-5d56cbd3.js} +1 -1
- package/dist/esm/v3/{OrIconButton-78ac5dcf.js → OrIconButton-1eebcafc.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-6dc16916.js → OrInlineInput-31026cd0.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-3e723cb6.js → OrInlineTextarea-b28c3d8c.js} +1 -1
- package/dist/esm/v3/{OrInput-ac074e42.js → OrInput-41691fb3.js} +1 -1
- package/dist/esm/v3/{OrModal-d0c18d64.js → OrModal-381554a6.js} +12 -3
- package/dist/esm/v3/{OrNotification-52bc3f2b.js → OrNotification-34d9c99b.js} +12 -4
- package/dist/esm/v3/{OrSearch-b7c6c958.js → OrSearch-e5a2e93e.js} +1 -1
- package/dist/esm/v3/{OrSelect-7a077589.js → OrSelect-87a1cc1d.js} +2 -2
- package/dist/esm/v3/{OrTag-debc75df.js → OrTag-29dac834.js} +5 -5
- package/dist/esm/v3/components/index.js +12 -12
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v3/components/or-notification-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/props.d.ts +1 -1
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/styles.d.ts +1 -0
- package/dist/esm/v3/index.js +12 -12
- package/dist/esm/v3/{types-eba6dda9.js → types-8a338300.js} +15 -6
- package/package.json +1 -1
- package/src/components/or-icon-button-v3/OrIconButton.vue +1 -1
- package/src/components/or-icon-button-v3/styles.ts +0 -3
- package/src/components/or-modal-v3/OrModal.vue +13 -6
- package/src/components/or-modal-v3/styles.ts +9 -0
- package/src/components/or-notification-v3/OrNotification.vue +12 -6
- package/src/components/or-notification-v3/styles.ts +9 -0
- package/src/components/or-tag-v3/OrTag.vue +1 -1
- package/src/components/or-tag-v3/props.ts +1 -1
- package/src/components/or-tag-v3/styles.ts +4 -1
- package/src/components/or-toast-v3/OrToast.vue +13 -6
- package/src/components/or-toast-v3/styles.ts +9 -0
|
@@ -3,6 +3,7 @@ import { ToastType } from './props';
|
|
|
3
3
|
import { ToastLink } from './types';
|
|
4
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
|
+
actionButtonStyle: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
7
|
toastIconStyle: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
8
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
9
|
loaderStyle: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -54,6 +55,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
54
55
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
55
56
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
56
57
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
58
|
+
actionButtonStyle: import("@vue/composition-api").ComputedRef<string[]>;
|
|
57
59
|
toastIconStyle: import("@vue/composition-api").ComputedRef<string[]>;
|
|
58
60
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
59
61
|
loaderStyle: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-8a338300.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';
|
|
5
5
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import '../../OrIconButton-
|
|
7
|
+
import '../../OrIconButton-1eebcafc.js';
|
|
8
8
|
import '../../useClassAttribute-47fdb016.js';
|
|
9
9
|
import '../../OrIcon-b195169c.js';
|
|
10
10
|
import '../../OrTooltip-50d27b4f.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PositionsX, PositionsY, ToastType } from './props';
|
|
2
2
|
export declare const ToastRoot: string[];
|
|
3
|
+
export declare const ToastActionButton: string[];
|
|
3
4
|
export declare const ToastContainer: string[];
|
|
4
5
|
export declare const ToastContainerPositions: Record<`${PositionsX}-${PositionsY}`, string[]>;
|
|
5
6
|
export declare const messageStyleVariant: Record<ToastType, string[]>;
|
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-bb6bf8a9.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
|
|
9
|
-
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-2a6514f3.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-fd92f7c8.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-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-5d56cbd3.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-98252eef.js';
|
|
@@ -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-74bb732d.js';
|
|
30
30
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-669503c3.js';
|
|
31
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
31
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-1eebcafc.js';
|
|
32
32
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-b195169c.js';
|
|
33
33
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-8049f95a.js';
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-31026cd0.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
36
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.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-6d1b6059.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-41691fb3.js';
|
|
39
39
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-bdaec602.js';
|
|
@@ -48,9 +48,9 @@ export { s as OrMenuItemV3 } from './OrMenuItem-9da279f6.js';
|
|
|
48
48
|
export { s as OrMenuV3 } from './OrMenu-840038cd.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-1075dd38.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-381554a6.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
|
|
53
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
53
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-34d9c99b.js';
|
|
54
54
|
export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
55
55
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
56
56
|
export { s as OrOverlayV3 } from './OrOverlay-738a44d5.js';
|
|
@@ -59,10 +59,10 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
59
59
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
60
60
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
61
61
|
export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
|
|
62
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
62
|
+
export { s as OrSearchV3 } from './OrSearch-e5a2e93e.js';
|
|
63
63
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
|
|
64
64
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
65
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
65
|
+
export { s as OrSelectV3 } from './OrSelect-87a1cc1d.js';
|
|
66
66
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
67
67
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
68
68
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -78,7 +78,7 @@ export { s as OrTabV3 } from './OrTab-c131cf60.js';
|
|
|
78
78
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
79
79
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-d0ee6cef.js';
|
|
80
80
|
export { s as OrTag } from './OrTag-1b5e43fa.js';
|
|
81
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
81
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-29dac834.js';
|
|
82
82
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
83
83
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
84
84
|
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
@@ -86,7 +86,7 @@ export { s as OrTextareaV3 } from './OrTextarea-bb9ef3f2.js';
|
|
|
86
86
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
|
|
87
87
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
88
88
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
89
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
89
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8a338300.js';
|
|
90
90
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
91
91
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
92
92
|
export { s as OrTooltipV3 } from './OrTooltip-50d27b4f.js';
|
|
@@ -2,9 +2,9 @@ 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-1eebcafc.js';
|
|
6
6
|
import { s as script$3 } from './OrLoader-b3cf4231.js';
|
|
7
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString,
|
|
7
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, withModifiers, createBlock, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
|
|
10
10
|
var errorPng = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAABGdBTUEAALGOfPtRkwAAETJJREFUeAHt3e+PXFUZB/AzuzuzNE0bWbRSYiwvmzbUYIyS2tYFCUhriPGNif0DTHwLKuyCgdBuEarxhSHhD+CFb0TRFgmKCCgaLQUaCEkjbLG/RLZbWrc7+6Nzfb7T+8yeufPr/jjn3vPcOSdc7s7M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5Cjw/RcislQWgDH6KRGSB2Mgihx4couZniILSFDxExAhA76oeQfu6q47fXhuULRIiN66kbwgnKNH5WzCY+xMUYQOysG8KN9PwHtLh6c0jk2yeluiG8kQKzQAtfRh+9mNRE3IwCRIZ0hCv0HRO69r9ZgCJvCG4iUMOwDx0h3cZ49wYq9DFa3qD/bOBDTNE9s5LuU2or7fyXlPEd9E2ox2k95Q+7VkJtfKf43jEdfmfGlXqA1m9TI/Kdn2qX0Zv8wApaKFsK71fqK1SA2wnf4cPXuhQm8+73ZTECVHdjVHf3U939ieqOvrdmJ/0fyqUZLiX8LYYAAAAASUVORK5CYII=";
|
|
@@ -28,6 +28,11 @@ const ToastRoot = [
|
|
|
28
28
|
'links:text-inverse-primary', 'dark:links:text-inverse-primary-dark',
|
|
29
29
|
// Elevation
|
|
30
30
|
'shadow-card', 'dark:shadow-card-dark'];
|
|
31
|
+
const ToastActionButton = [
|
|
32
|
+
// Layout
|
|
33
|
+
'contents',
|
|
34
|
+
// Theme
|
|
35
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
31
36
|
const ToastContainer = [
|
|
32
37
|
// Position
|
|
33
38
|
'absolute',
|
|
@@ -109,6 +114,7 @@ var script$1 = defineComponent({
|
|
|
109
114
|
'self-center',
|
|
110
115
|
// Theme
|
|
111
116
|
'text-inverse-primary', 'dark:text-inverse-primary-dark']);
|
|
117
|
+
const actionButtonStyle = computed(() => [...ToastActionButton]);
|
|
112
118
|
// State
|
|
113
119
|
const emojiSrc = computed(() => {
|
|
114
120
|
switch (props.toastType) {
|
|
@@ -137,6 +143,7 @@ var script$1 = defineComponent({
|
|
|
137
143
|
}
|
|
138
144
|
return {
|
|
139
145
|
root,
|
|
146
|
+
actionButtonStyle,
|
|
140
147
|
toastIconStyle,
|
|
141
148
|
rootStyles,
|
|
142
149
|
loaderStyle,
|
|
@@ -183,12 +190,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
183
190
|
href: _ctx.link.href,
|
|
184
191
|
target: _ctx.hrefTarget,
|
|
185
192
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onLinkClick && _ctx.onLinkClick(...args))
|
|
186
|
-
}, toDisplayString(_ctx.link.title), 9 /* TEXT, PROPS */, _hoisted_4)) : createCommentVNode("v-if", true), _ctx.dismissible ? (openBlock(),
|
|
193
|
+
}, toDisplayString(_ctx.link.title), 9 /* TEXT, PROPS */, _hoisted_4)) : createCommentVNode("v-if", true), _ctx.dismissible ? (openBlock(), createElementBlock("div", {
|
|
187
194
|
key: 1,
|
|
188
|
-
|
|
189
|
-
|
|
195
|
+
class: normalizeClass(_ctx.actionButtonStyle)
|
|
196
|
+
}, [createVNode(_component_OrIconButton, {
|
|
197
|
+
icon: "close",
|
|
198
|
+
class: "dark:theme-foreground-inherit",
|
|
190
199
|
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.onClose(), ["stop"]))
|
|
191
|
-
})) : createCommentVNode("v-if", true)])], 2 /* CLASS */);
|
|
200
|
+
})], 2 /* CLASS */)) : createCommentVNode("v-if", true)])], 2 /* CLASS */);
|
|
192
201
|
}
|
|
193
202
|
|
|
194
203
|
var css_248z$1 = ".or-toast__link[data-v-837e78fc] {\n word-break: break-word;\n white-space: nowrap;\n cursor: pointer;\n}";
|
package/package.json
CHANGED
|
@@ -32,9 +32,6 @@ export const IconButtonRootColors: Record<IconButtonColor, string[]> = {
|
|
|
32
32
|
'theme-preset-3-primary',
|
|
33
33
|
'dark:theme-preset-3-primary-dark',
|
|
34
34
|
|
|
35
|
-
'theme-foreground-outline',
|
|
36
|
-
'dark:theme-foreground-outline-dark',
|
|
37
|
-
|
|
38
35
|
// Theme (hover)
|
|
39
36
|
'hover:outline-primary-opacity-0-08',
|
|
40
37
|
'dark:hover:outline-primary-opacity-0-08-dark',
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
<slot name="header" />
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
<div :class="closeButtonStyles">
|
|
17
|
+
<OrIconButton
|
|
18
|
+
:icon="'close'"
|
|
19
|
+
:size="'l'"
|
|
20
|
+
@click.stop="close"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
21
23
|
</div>
|
|
22
24
|
|
|
23
25
|
<div :class="['grow', 'overflow-y-auto']">
|
|
@@ -35,7 +37,7 @@ import { useClassAttribute } from '../../hooks';
|
|
|
35
37
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
36
38
|
import { OrOverlayV3 as OrOverlay } from '../or-overlay-v3';
|
|
37
39
|
import { ModalSize } from './props';
|
|
38
|
-
import { ModalHeader, ModalRoot, ModalRootSizes } from './styles';
|
|
40
|
+
import { ModalCloseButton, ModalHeader, ModalRoot, ModalRootSizes } from './styles';
|
|
39
41
|
|
|
40
42
|
export default defineComponent({
|
|
41
43
|
name: 'OrModal',
|
|
@@ -88,6 +90,10 @@ export default defineComponent({
|
|
|
88
90
|
...ModalHeader,
|
|
89
91
|
]);
|
|
90
92
|
|
|
93
|
+
const closeButtonStyles = computed(() => [
|
|
94
|
+
...ModalCloseButton,
|
|
95
|
+
]);
|
|
96
|
+
|
|
91
97
|
// State
|
|
92
98
|
const isActive = ref(false);
|
|
93
99
|
|
|
@@ -117,6 +123,7 @@ export default defineComponent({
|
|
|
117
123
|
root,
|
|
118
124
|
rootStyles,
|
|
119
125
|
headerStyles,
|
|
126
|
+
closeButtonStyles,
|
|
120
127
|
isActive,
|
|
121
128
|
open,
|
|
122
129
|
close,
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
<slot />
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
<div :class="actionStyles">
|
|
19
|
+
<OrIconButton
|
|
20
|
+
:icon="'close'"
|
|
21
|
+
@click.stop="$emit('close')"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
23
24
|
</div>
|
|
24
25
|
</template>
|
|
25
26
|
|
|
@@ -29,7 +30,7 @@ import { useClassAttribute } from '../../hooks';
|
|
|
29
30
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
30
31
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
31
32
|
import { NotificationVariant } from './props';
|
|
32
|
-
import { NotificationIcon, NotificationIconVariants, NotificationRoot, NotificationRootVariants } from './styles';
|
|
33
|
+
import { NotificationAction, NotificationIcon, NotificationIconVariants, NotificationRoot, NotificationRootVariants } from './styles';
|
|
33
34
|
|
|
34
35
|
export default defineComponent({
|
|
35
36
|
name: 'OrNotification',
|
|
@@ -71,6 +72,10 @@ export default defineComponent({
|
|
|
71
72
|
...NotificationIconVariants[props.variant],
|
|
72
73
|
]);
|
|
73
74
|
|
|
75
|
+
const actionStyles = computed(() => [
|
|
76
|
+
...NotificationAction,
|
|
77
|
+
]);
|
|
78
|
+
|
|
74
79
|
// State
|
|
75
80
|
const icon = computed(() => {
|
|
76
81
|
switch (props.variant) {
|
|
@@ -92,6 +97,7 @@ export default defineComponent({
|
|
|
92
97
|
root,
|
|
93
98
|
rootStyles,
|
|
94
99
|
iconStyles,
|
|
100
|
+
actionStyles,
|
|
95
101
|
icon,
|
|
96
102
|
};
|
|
97
103
|
},
|
|
@@ -97,3 +97,12 @@ export const NotificationIconVariants: Record<NotificationVariant, string[]> = {
|
|
|
97
97
|
'dark:theme-foreground-primary-dark',
|
|
98
98
|
],
|
|
99
99
|
};
|
|
100
|
+
|
|
101
|
+
export const NotificationAction: string[] = [
|
|
102
|
+
// Layout
|
|
103
|
+
'contents',
|
|
104
|
+
|
|
105
|
+
// Theme
|
|
106
|
+
'theme-foreground-outline',
|
|
107
|
+
'dark:theme-foreground-outline-dark',
|
|
108
|
+
];
|
|
@@ -45,10 +45,13 @@ export const TagRootVariants: Record<TagVariant, string[]> = {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
export const TagRootColors: Record<TagColor, string[]> = {
|
|
48
|
-
'
|
|
48
|
+
'default': [
|
|
49
49
|
// Theme
|
|
50
50
|
'theme-preset-2-primary',
|
|
51
51
|
'dark:theme-preset-2-primary-dark',
|
|
52
|
+
|
|
53
|
+
'theme-foreground-default',
|
|
54
|
+
'dark:theme-foreground-default-dark',
|
|
52
55
|
],
|
|
53
56
|
|
|
54
57
|
'danger': [
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<template v-if="dismissible">
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
<div :class="actionButtonStyle">
|
|
48
|
+
<OrIconButton
|
|
49
|
+
icon="close"
|
|
50
|
+
class="dark:theme-foreground-inherit"
|
|
51
|
+
@click.stop="onClose()"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
52
54
|
</template>
|
|
53
55
|
</div>
|
|
54
56
|
</div>
|
|
@@ -61,7 +63,7 @@ import successPng from '../../assets/success.png';
|
|
|
61
63
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
62
64
|
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
63
65
|
import { ToastType } from './props';
|
|
64
|
-
import { messageStyleVariant, ToastRoot } from './styles';
|
|
66
|
+
import { messageStyleVariant, ToastActionButton, ToastRoot } from './styles';
|
|
65
67
|
import { ToastLink } from './types';
|
|
66
68
|
|
|
67
69
|
export default defineComponent({
|
|
@@ -132,6 +134,10 @@ export default defineComponent({
|
|
|
132
134
|
'dark:text-inverse-primary-dark',
|
|
133
135
|
]);
|
|
134
136
|
|
|
137
|
+
const actionButtonStyle = computed(() => [
|
|
138
|
+
...ToastActionButton,
|
|
139
|
+
]);
|
|
140
|
+
|
|
135
141
|
// State
|
|
136
142
|
const emojiSrc = computed(() => {
|
|
137
143
|
switch (props.toastType) {
|
|
@@ -162,6 +168,7 @@ export default defineComponent({
|
|
|
162
168
|
|
|
163
169
|
return {
|
|
164
170
|
root,
|
|
171
|
+
actionButtonStyle,
|
|
165
172
|
toastIconStyle,
|
|
166
173
|
rootStyles,
|
|
167
174
|
loaderStyle,
|
|
@@ -35,6 +35,15 @@ export const ToastRoot: string[] = [
|
|
|
35
35
|
'dark:shadow-card-dark',
|
|
36
36
|
];
|
|
37
37
|
|
|
38
|
+
export const ToastActionButton: string[] = [
|
|
39
|
+
// Layout
|
|
40
|
+
'contents',
|
|
41
|
+
|
|
42
|
+
// Theme
|
|
43
|
+
'theme-foreground-outline',
|
|
44
|
+
'dark:theme-foreground-outline-dark',
|
|
45
|
+
];
|
|
46
|
+
|
|
38
47
|
export const ToastContainer: string[] = [
|
|
39
48
|
// Position
|
|
40
49
|
'absolute',
|