@onereach/ui-components 2.74.13 → 2.74.14
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/{OrNotification-f7644c55.js → OrNotification-e102f0d7.js} +6 -2
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-notification-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-4532696a.js → OrNotification.vue_vue_type_script_lang-7dd0d85f.js} +4 -0
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-notification-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +6 -5
- package/dist/esm/v2/{OrNotification-687b4999.js → OrNotification-76498693.js} +6 -2
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-notification-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrNotification-03a7426c.js → OrNotification-aab2e22a.js} +8 -3
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-notification-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +3 -3
- package/src/components/or-notification-v3/OrNotification.stories3.ts +52 -0
- package/src/components/or-notification-v3/OrNotification.vue +6 -0
|
@@ -74,6 +74,10 @@ var script = defineComponent({
|
|
|
74
74
|
variant: {
|
|
75
75
|
type: String,
|
|
76
76
|
default: NotificationVariant.Info
|
|
77
|
+
},
|
|
78
|
+
disableClose: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: false
|
|
77
81
|
}
|
|
78
82
|
},
|
|
79
83
|
expose: ['root'],
|
|
@@ -125,7 +129,7 @@ var __vue_render__ = function () {
|
|
|
125
129
|
}
|
|
126
130
|
})], 1), _vm._v(" "), _c('div', {
|
|
127
131
|
class: ['grow', 'my-[-2px] md:my-[-3px]']
|
|
128
|
-
}, [_vm._t("default")], 2), _vm._v(" "), _c('OrIconButton', {
|
|
132
|
+
}, [_vm._t("default")], 2), _vm._v(" "), !_vm.disableClose ? _c('OrIconButton', {
|
|
129
133
|
attrs: {
|
|
130
134
|
"icon": 'close',
|
|
131
135
|
"size": 'm'
|
|
@@ -136,7 +140,7 @@ var __vue_render__ = function () {
|
|
|
136
140
|
return _vm.$emit('close');
|
|
137
141
|
}
|
|
138
142
|
}
|
|
139
|
-
})], 1);
|
|
143
|
+
}) : _vm._e()], 1);
|
|
140
144
|
};
|
|
141
145
|
var __vue_staticRenderFns__ = [];
|
|
142
146
|
|
|
@@ -53,7 +53,7 @@ export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as Popov
|
|
|
53
53
|
export { _ as OrModal, O as OrModalSizes } from '../OrModal-a02dcd2a.js';
|
|
54
54
|
export { M as ModalSize, _ as OrModalV3 } from '../OrModal-370cfc3b.js';
|
|
55
55
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-f905da81.js';
|
|
56
|
-
export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-
|
|
56
|
+
export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-76498693.js';
|
|
57
57
|
export { _ as OrNumberInput } from '../OrNumberInput-eb0e7087.js';
|
|
58
58
|
export { _ as OrOverflowMenu } from '../OrOverflowMenu-0f356aca.js';
|
|
59
59
|
export { _ as OrOverlay } from '../OrOverlay-ccec2218.js';
|
|
@@ -10,13 +10,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
10
10
|
type: PropType<NotificationVariant>;
|
|
11
11
|
default: NotificationVariant;
|
|
12
12
|
};
|
|
13
|
+
disableClose: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
14
18
|
variant: {
|
|
15
19
|
type: PropType<NotificationVariant>;
|
|
16
20
|
default: NotificationVariant;
|
|
17
21
|
};
|
|
22
|
+
disableClose: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
19
27
|
variant: NotificationVariant;
|
|
28
|
+
disableClose: boolean;
|
|
20
29
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
21
30
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
22
31
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -24,7 +33,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
24
33
|
icon: import("@vue/composition-api").ComputedRef<"warning" | "error" | "info" | "check_circle" | undefined>;
|
|
25
34
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
26
35
|
variant: NotificationVariant;
|
|
36
|
+
disableClose: boolean;
|
|
27
37
|
} & {}, {
|
|
28
38
|
variant: NotificationVariant;
|
|
39
|
+
disableClose: boolean;
|
|
29
40
|
}, true>);
|
|
30
41
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NotificationVariant, _ as OrNotificationV3 } from '../../OrNotification-
|
|
1
|
+
export { N as NotificationVariant, _ as OrNotificationV3 } from '../../OrNotification-76498693.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrIconButton-fa9bff07.js';
|
|
4
4
|
import '../../OrIcon-c434985a.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -53,7 +53,7 @@ export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as Popov
|
|
|
53
53
|
export { _ as OrModal, O as OrModalSizes } from './OrModal-a02dcd2a.js';
|
|
54
54
|
export { M as ModalSize, _ as OrModalV3 } from './OrModal-370cfc3b.js';
|
|
55
55
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-f905da81.js';
|
|
56
|
-
export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotification-
|
|
56
|
+
export { N as NotificationVariant, _ as OrNotificationV3 } from './OrNotification-76498693.js';
|
|
57
57
|
export { _ as OrNumberInput } from './OrNumberInput-eb0e7087.js';
|
|
58
58
|
export { _ as OrOverflowMenu } from './OrOverflowMenu-0f356aca.js';
|
|
59
59
|
export { _ as OrOverlay } from './OrOverlay-ccec2218.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
2
|
import { s as script$2 } from './OrIconButton-385e997c.js';
|
|
3
3
|
import { s as script$1 } from './OrIcon-ea40e58c.js';
|
|
4
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, withModifiers } from 'vue';
|
|
4
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, createBlock, withModifiers, createCommentVNode } from 'vue';
|
|
5
5
|
|
|
6
6
|
var NotificationVariant;
|
|
7
7
|
(function (NotificationVariant) {
|
|
@@ -74,6 +74,10 @@ var script = defineComponent({
|
|
|
74
74
|
variant: {
|
|
75
75
|
type: String,
|
|
76
76
|
default: NotificationVariant.Info
|
|
77
|
+
},
|
|
78
|
+
disableClose: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: false
|
|
77
81
|
}
|
|
78
82
|
},
|
|
79
83
|
expose: ['root'],
|
|
@@ -119,11 +123,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
119
123
|
}, [createVNode(_component_OrIcon, {
|
|
120
124
|
icon: _ctx.icon,
|
|
121
125
|
variant: 'filled-bold'
|
|
122
|
-
}, null, 8 /* PROPS */, ["icon"])], 2 /* CLASS */), createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]),
|
|
126
|
+
}, null, 8 /* PROPS */, ["icon"])], 2 /* CLASS */), createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), !_ctx.disableClose ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
127
|
+
key: 0,
|
|
123
128
|
icon: 'close',
|
|
124
129
|
size: 'm',
|
|
125
130
|
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('close'), ["stop"]))
|
|
126
|
-
})], 2 /* CLASS */);
|
|
131
|
+
})) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
script.render = render;
|
|
@@ -50,7 +50,7 @@ export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as Popov
|
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from '../OrModal-153310f7.js';
|
|
51
51
|
export { M as ModalSize, s as OrModalV3 } from '../OrModal-f9f2279b.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification-b90cf406.js';
|
|
53
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification-
|
|
53
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotification-aab2e22a.js';
|
|
54
54
|
export { s as OrNumberInput } from '../OrNumberInput-dca5e850.js';
|
|
55
55
|
export { s as OrOverflowMenu } from '../OrOverflowMenu-775d380c.js';
|
|
56
56
|
export { s as OrOverlay } from '../OrOverlay-451dce49.js';
|
|
@@ -10,13 +10,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
10
10
|
type: PropType<NotificationVariant>;
|
|
11
11
|
default: NotificationVariant;
|
|
12
12
|
};
|
|
13
|
+
disableClose: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
14
18
|
variant: {
|
|
15
19
|
type: PropType<NotificationVariant>;
|
|
16
20
|
default: NotificationVariant;
|
|
17
21
|
};
|
|
22
|
+
disableClose: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
18
26
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
19
27
|
variant: NotificationVariant;
|
|
28
|
+
disableClose: boolean;
|
|
20
29
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
21
30
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
22
31
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -24,7 +33,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
24
33
|
icon: import("@vue/composition-api").ComputedRef<"warning" | "error" | "info" | "check_circle" | undefined>;
|
|
25
34
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
26
35
|
variant: NotificationVariant;
|
|
36
|
+
disableClose: boolean;
|
|
27
37
|
} & {}, {
|
|
28
38
|
variant: NotificationVariant;
|
|
39
|
+
disableClose: boolean;
|
|
29
40
|
}, true>);
|
|
30
41
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from '../../OrNotification-
|
|
1
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from '../../OrNotification-aab2e22a.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrIconButton-385e997c.js';
|
|
4
4
|
import '../../OrIcon-ea40e58c.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -50,7 +50,7 @@ export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as Popov
|
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-153310f7.js';
|
|
51
51
|
export { M as ModalSize, s as OrModalV3 } from './OrModal-f9f2279b.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-b90cf406.js';
|
|
53
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
53
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-aab2e22a.js';
|
|
54
54
|
export { s as OrNumberInput } from './OrNumberInput-dca5e850.js';
|
|
55
55
|
export { s as OrOverflowMenu } from './OrOverflowMenu-775d380c.js';
|
|
56
56
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.74.
|
|
3
|
+
"version": "2.74.14",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.35.
|
|
41
|
+
"@onereach/styles": "^2.35.2",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
},
|
|
126
126
|
"./package.json": "./package.json"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "c025d8a1e2f8a19ed406a832152e4474012e7ef6"
|
|
129
129
|
}
|
|
@@ -24,6 +24,10 @@ export default {
|
|
|
24
24
|
control: { type: 'select' },
|
|
25
25
|
options: Object.values(NotificationVariant),
|
|
26
26
|
},
|
|
27
|
+
|
|
28
|
+
disableClose: {
|
|
29
|
+
control: { type: 'boolean' },
|
|
30
|
+
},
|
|
27
31
|
},
|
|
28
32
|
|
|
29
33
|
parameters: {
|
|
@@ -68,3 +72,51 @@ Notification.args = {
|
|
|
68
72
|
// Slots
|
|
69
73
|
default: '<a href="#">Lorem ipsum</a> dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
70
74
|
};
|
|
75
|
+
|
|
76
|
+
export const WithoutCloseButton = Template.bind({});
|
|
77
|
+
|
|
78
|
+
WithoutCloseButton.args = {
|
|
79
|
+
disableClose: true,
|
|
80
|
+
// Slots
|
|
81
|
+
default: '<a href="#">Lorem ipsum</a> dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export const WithShadowOverride: StoryFn<typeof OrNotification> = (args) => ({
|
|
85
|
+
components: {
|
|
86
|
+
OrNotification,
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
setup() {
|
|
90
|
+
return {
|
|
91
|
+
args,
|
|
92
|
+
handleClose: action('close'),
|
|
93
|
+
};
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
template: `
|
|
97
|
+
<div class="flex flex-col gap-3xl w-full">
|
|
98
|
+
<OrNotification
|
|
99
|
+
v-bind="args"
|
|
100
|
+
@close="handleClose"
|
|
101
|
+
>
|
|
102
|
+
Default shadow
|
|
103
|
+
</OrNotification>
|
|
104
|
+
<OrNotification
|
|
105
|
+
v-bind="args"
|
|
106
|
+
@close="handleClose"
|
|
107
|
+
class="shadow-none"
|
|
108
|
+
>
|
|
109
|
+
Without shadow
|
|
110
|
+
</OrNotification>
|
|
111
|
+
<OrNotification
|
|
112
|
+
v-bind="args"
|
|
113
|
+
@close="handleClose"
|
|
114
|
+
class="shadow-modal"
|
|
115
|
+
>
|
|
116
|
+
Shadow like in modal
|
|
117
|
+
</OrNotification>
|
|
118
|
+
</div>
|
|
119
|
+
`,
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
WithShadowOverride.args = {};
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<OrIconButton
|
|
18
|
+
v-if="!disableClose"
|
|
18
19
|
:icon="'close'"
|
|
19
20
|
:size="'m'"
|
|
20
21
|
@click.stop="$emit('close')"
|
|
@@ -42,6 +43,11 @@ export default defineComponent({
|
|
|
42
43
|
type: String as PropType<NotificationVariant>,
|
|
43
44
|
default: NotificationVariant.Info,
|
|
44
45
|
},
|
|
46
|
+
|
|
47
|
+
disableClose: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false,
|
|
50
|
+
},
|
|
45
51
|
},
|
|
46
52
|
|
|
47
53
|
expose: [
|