@onereach/ui-components-vue2 19.4.2 → 19.5.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/components/OrIndicatorV3/OrIndicator.js +90 -0
- package/dist/bundled/components/OrIndicatorV3/OrIndicator.vue.d.ts +2 -0
- package/dist/bundled/components/OrIndicatorV3/index.d.ts +2 -0
- package/dist/bundled/components/OrIndicatorV3/index.js +2 -0
- package/dist/bundled/components/OrIndicatorV3/props.d.ts +14 -0
- package/dist/bundled/components/OrIndicatorV3/props.js +18 -0
- package/dist/bundled/components/OrIndicatorV3/styles.d.ts +4 -0
- package/dist/bundled/components/OrIndicatorV3/styles.js +50 -0
- package/dist/bundled/components/OrNotificationV3/OrNotification.js +22 -27
- package/dist/bundled/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/components/OrNotificationV3/props.d.ts +3 -0
- package/dist/bundled/components/OrNotificationV3/props.js +7 -1
- package/dist/bundled/components/OrNotificationV3/styles.d.ts +0 -2
- package/dist/bundled/components/OrNotificationV3/styles.js +1 -16
- package/dist/bundled/components/OrStatusV3/OrStatus.js +31 -6
- package/dist/bundled/components/OrStatusV3/styles.d.ts +0 -2
- package/dist/bundled/components/OrStatusV3/styles.js +1 -25
- package/dist/bundled/components/index.d.ts +1 -0
- package/dist/bundled/components/index.js +3 -1
- package/dist/bundled/index.js +4 -2
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.js +2 -1
- package/dist/esm/components/or-indicator-v3/OrIndicator.vue.d.ts +2 -0
- package/dist/esm/components/or-indicator-v3/index.d.ts +2 -0
- package/dist/esm/components/or-indicator-v3/index.js +151 -0
- package/dist/esm/components/or-indicator-v3/props.d.ts +14 -0
- package/dist/esm/components/or-indicator-v3/styles.d.ts +4 -0
- package/dist/esm/components/or-notification-v3/index.js +27 -41
- package/dist/esm/components/or-notification-v3/props.d.ts +3 -0
- package/dist/esm/components/or-notification-v3/styles.d.ts +0 -2
- package/dist/esm/components/or-status-v3/index.js +30 -29
- package/dist/esm/components/or-status-v3/styles.d.ts +0 -2
- package/dist/esm/index.js +2 -1
- package/package.json +3 -3
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { IndicatorSize, IndicatorColor } from './props.js';
|
|
3
|
+
import { IndicatorShape, IndicatorThemes, IndicatorIconThemes } from './styles.js';
|
|
4
|
+
import __vue_component__$1 from '../OrIconV3/OrIcon.js';
|
|
5
|
+
import { IconVariant, IconSize } from '../OrIconV3/props.js';
|
|
6
|
+
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
7
|
+
|
|
8
|
+
var script = defineComponent({
|
|
9
|
+
name: 'OrIndicator',
|
|
10
|
+
components: {
|
|
11
|
+
OrIcon: __vue_component__$1
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: () => IndicatorSize.M
|
|
17
|
+
},
|
|
18
|
+
color: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: IndicatorColor.Neutral
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
type: [String, Object, undefined],
|
|
24
|
+
default: undefined
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(props) {
|
|
28
|
+
// Refs
|
|
29
|
+
const root = ref();
|
|
30
|
+
// Styles
|
|
31
|
+
const rootStyles = computed(() => ['or-indicator-v3', ...(!props.icon ? IndicatorShape[props.size] : []), ...(!props.icon ? IndicatorThemes[props.color] : [])]);
|
|
32
|
+
const iconContainerStyles = computed(() => [...IndicatorIconThemes[props.color]]);
|
|
33
|
+
// Icon props
|
|
34
|
+
const iconProps = computed(() => {
|
|
35
|
+
return typeof props.icon === 'string' ? {
|
|
36
|
+
icon: props.icon,
|
|
37
|
+
variant: IconVariant.Inherit,
|
|
38
|
+
size: props.size === IndicatorSize.S ? IconSize.M : props.size
|
|
39
|
+
} : {
|
|
40
|
+
variant: IconVariant.Inherit,
|
|
41
|
+
size: props.size === IndicatorSize.S ? IconSize.M : props.size,
|
|
42
|
+
...props.icon
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
iconContainerStyles,
|
|
47
|
+
iconProps,
|
|
48
|
+
root,
|
|
49
|
+
rootStyles
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/* script */
|
|
55
|
+
const __vue_script__ = script;
|
|
56
|
+
|
|
57
|
+
/* template */
|
|
58
|
+
var __vue_render__ = function () {
|
|
59
|
+
var _vm = this;
|
|
60
|
+
var _h = _vm.$createElement;
|
|
61
|
+
var _c = _vm._self._c || _h;
|
|
62
|
+
return _c('div', {
|
|
63
|
+
ref: 'root',
|
|
64
|
+
class: _vm.rootStyles
|
|
65
|
+
}, [_vm.icon ? _c('OrIcon', _vm._b({
|
|
66
|
+
class: _vm.iconContainerStyles
|
|
67
|
+
}, 'OrIcon', _vm.iconProps, false)) : _vm._e()], 1);
|
|
68
|
+
};
|
|
69
|
+
var __vue_staticRenderFns__ = [];
|
|
70
|
+
|
|
71
|
+
/* style */
|
|
72
|
+
const __vue_inject_styles__ = undefined;
|
|
73
|
+
/* scoped */
|
|
74
|
+
const __vue_scope_id__ = undefined;
|
|
75
|
+
/* module identifier */
|
|
76
|
+
const __vue_module_identifier__ = undefined;
|
|
77
|
+
/* functional template */
|
|
78
|
+
const __vue_is_functional_template__ = false;
|
|
79
|
+
/* style inject */
|
|
80
|
+
|
|
81
|
+
/* style inject SSR */
|
|
82
|
+
|
|
83
|
+
/* style inject shadow dom */
|
|
84
|
+
|
|
85
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
86
|
+
render: __vue_render__,
|
|
87
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
88
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
89
|
+
|
|
90
|
+
export { __vue_component__ as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum IndicatorColor {
|
|
2
|
+
Success = "success",
|
|
3
|
+
Neutral = "neutral",
|
|
4
|
+
Warning = "warning",
|
|
5
|
+
Outline = "outline",
|
|
6
|
+
Error = "error",
|
|
7
|
+
Inherit = "inherit"
|
|
8
|
+
}
|
|
9
|
+
export declare enum IndicatorSize {
|
|
10
|
+
XL = "xl",
|
|
11
|
+
L = "l",
|
|
12
|
+
M = "m",
|
|
13
|
+
S = "s"
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var IndicatorColor;
|
|
2
|
+
(function (IndicatorColor) {
|
|
3
|
+
IndicatorColor["Success"] = "success";
|
|
4
|
+
IndicatorColor["Neutral"] = "neutral";
|
|
5
|
+
IndicatorColor["Warning"] = "warning";
|
|
6
|
+
IndicatorColor["Outline"] = "outline";
|
|
7
|
+
IndicatorColor["Error"] = "error";
|
|
8
|
+
IndicatorColor["Inherit"] = "inherit";
|
|
9
|
+
})(IndicatorColor || (IndicatorColor = {}));
|
|
10
|
+
var IndicatorSize;
|
|
11
|
+
(function (IndicatorSize) {
|
|
12
|
+
IndicatorSize["XL"] = "xl";
|
|
13
|
+
IndicatorSize["L"] = "l";
|
|
14
|
+
IndicatorSize["M"] = "m";
|
|
15
|
+
IndicatorSize["S"] = "s";
|
|
16
|
+
})(IndicatorSize || (IndicatorSize = {}));
|
|
17
|
+
|
|
18
|
+
export { IndicatorColor, IndicatorSize };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IndicatorColor, IndicatorSize } from './props';
|
|
2
|
+
export declare const IndicatorShape: Record<IndicatorSize, string[]>;
|
|
3
|
+
export declare const IndicatorThemes: Record<IndicatorColor, string[]>;
|
|
4
|
+
export declare const IndicatorIconThemes: Record<IndicatorColor, string[]>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IndicatorSize, IndicatorColor } from './props.js';
|
|
2
|
+
|
|
3
|
+
const IndicatorShape = {
|
|
4
|
+
[IndicatorSize.XL]: [
|
|
5
|
+
// Layout
|
|
6
|
+
'shrink-0',
|
|
7
|
+
// Box
|
|
8
|
+
'w-[24px]', 'h-[24px]',
|
|
9
|
+
// Shape
|
|
10
|
+
'rounded-full'],
|
|
11
|
+
[IndicatorSize.L]: [
|
|
12
|
+
// Layout
|
|
13
|
+
'shrink-0',
|
|
14
|
+
// Box
|
|
15
|
+
'w-[20px]', 'h-[20px]',
|
|
16
|
+
// Shape
|
|
17
|
+
'rounded-full'],
|
|
18
|
+
[IndicatorSize.M]: [
|
|
19
|
+
// Layout
|
|
20
|
+
'shrink-0',
|
|
21
|
+
// Box
|
|
22
|
+
'w-[16px]', 'h-[16px]',
|
|
23
|
+
// Shape
|
|
24
|
+
'rounded-full'],
|
|
25
|
+
[IndicatorSize.S]: [
|
|
26
|
+
// Layout
|
|
27
|
+
'shrink-0',
|
|
28
|
+
// Box
|
|
29
|
+
'w-[8px]', 'h-[8px]',
|
|
30
|
+
// Shape
|
|
31
|
+
'rounded-full']
|
|
32
|
+
};
|
|
33
|
+
const IndicatorThemes = {
|
|
34
|
+
[IndicatorColor.Error]: ['theme-foreground-on-error', 'dark:theme-foreground-on-error-dark', 'theme-background-error', 'dark:theme-background-error-dark'],
|
|
35
|
+
[IndicatorColor.Neutral]: ['theme-foreground-on-primary', 'dark:theme-foreground-on-primary-dark', 'theme-background-primary', 'dark:theme-background-primary-dark'],
|
|
36
|
+
[IndicatorColor.Inherit]: [],
|
|
37
|
+
[IndicatorColor.Outline]: ['theme-foreground-on-secondary', 'dark:theme-foreground-on-secondary-dark', 'theme-background-secondary', 'dark:theme-background-secondary-dark'],
|
|
38
|
+
[IndicatorColor.Success]: ['theme-foreground-on-success', 'dark:theme-foreground-on-success-dark', 'theme-background-success', 'dark:theme-background-success-dark'],
|
|
39
|
+
[IndicatorColor.Warning]: ['theme-foreground-on-warning', 'dark:theme-foreground-on-warning-dark', 'theme-background-warning', 'dark:theme-background-warning-dark']
|
|
40
|
+
};
|
|
41
|
+
const IndicatorIconThemes = {
|
|
42
|
+
[IndicatorColor.Error]: ['theme-foreground-error', 'dark:theme-foreground-error-dark'],
|
|
43
|
+
[IndicatorColor.Neutral]: ['theme-foreground-primary', 'dark:theme-foreground-primary-dark'],
|
|
44
|
+
[IndicatorColor.Inherit]: [],
|
|
45
|
+
[IndicatorColor.Outline]: ['theme-foreground-secondary', 'dark:theme-foreground-secondary-dark'],
|
|
46
|
+
[IndicatorColor.Success]: ['theme-foreground-success', 'dark:theme-foreground-success-dark'],
|
|
47
|
+
[IndicatorColor.Warning]: ['theme-foreground-warning', 'dark:theme-foreground-warning-dark']
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { IndicatorIconThemes, IndicatorShape, IndicatorThemes };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { NotificationVariant } from './props.js';
|
|
3
|
-
import { Notification, NotificationVariants
|
|
4
|
-
import __vue_component__$1 from '../
|
|
2
|
+
import { NotificationVariant, VariantToIconName } from './props.js';
|
|
3
|
+
import { Notification, NotificationVariants } from './styles.js';
|
|
4
|
+
import __vue_component__$1 from '../OrIndicatorV3/OrIndicator.js';
|
|
5
5
|
import __vue_component__$2 from '../OrIconButtonV3/OrIconButton.js';
|
|
6
|
+
import { IndicatorColor } from '../OrIndicatorV3/props.js';
|
|
6
7
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
7
8
|
|
|
8
9
|
var script = defineComponent({
|
|
9
10
|
name: 'OrNotification',
|
|
10
11
|
components: {
|
|
11
|
-
|
|
12
|
+
OrIndicator: __vue_component__$1,
|
|
12
13
|
OrIconButton: __vue_component__$2
|
|
13
14
|
},
|
|
14
15
|
props: {
|
|
@@ -27,26 +28,26 @@ var script = defineComponent({
|
|
|
27
28
|
const root = ref();
|
|
28
29
|
// Styles
|
|
29
30
|
const rootStyles = computed(() => ['or-notification-v3', ...Notification, ...NotificationVariants[props.variant]]);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
const indicatorProps = computed(() => {
|
|
32
|
+
const VariantToIndicatorColor = {
|
|
33
|
+
[NotificationVariant.Success]: IndicatorColor.Success,
|
|
34
|
+
[NotificationVariant.Warning]: IndicatorColor.Warning,
|
|
35
|
+
[NotificationVariant.Error]: IndicatorColor.Error,
|
|
36
|
+
[NotificationVariant.Info]: IndicatorColor.Neutral
|
|
37
|
+
};
|
|
38
|
+
return {
|
|
39
|
+
icon: {
|
|
40
|
+
icon: VariantToIconName[props.variant],
|
|
41
|
+
variant: 'filled-bold'
|
|
42
|
+
},
|
|
43
|
+
color: VariantToIndicatorColor[props.variant],
|
|
44
|
+
size: 'm'
|
|
45
|
+
};
|
|
44
46
|
});
|
|
45
47
|
return {
|
|
46
48
|
root,
|
|
47
49
|
rootStyles,
|
|
48
|
-
|
|
49
|
-
icon
|
|
50
|
+
indicatorProps
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
});
|
|
@@ -64,13 +65,7 @@ var __vue_render__ = function () {
|
|
|
64
65
|
class: _vm.rootStyles
|
|
65
66
|
}, [_c('div', {
|
|
66
67
|
class: ['mt-[2px] md:mt-[2.5px]']
|
|
67
|
-
}, [_c('
|
|
68
|
-
class: _vm.iconStyles,
|
|
69
|
-
attrs: {
|
|
70
|
-
"icon": _vm.icon,
|
|
71
|
-
"variant": 'filled-bold'
|
|
72
|
-
}
|
|
73
|
-
})], 1), _vm._v(" "), _c('div', {
|
|
68
|
+
}, [_c('OrIndicator', _vm._b({}, 'OrIndicator', _vm.indicatorProps, false))], 1), _vm._v(" "), _c('div', {
|
|
74
69
|
class: ['grow']
|
|
75
70
|
}, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
|
|
76
71
|
class: ['mt-[2px] md:mt-[2.5px]']
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as OrNotificationV3 } from './OrNotification.js';
|
|
2
|
-
export { NotificationVariant } from './props.js';
|
|
2
|
+
export { NotificationVariant, VariantToIconName } from './props.js';
|
|
@@ -5,5 +5,11 @@ var NotificationVariant;
|
|
|
5
5
|
NotificationVariant["Error"] = "error";
|
|
6
6
|
NotificationVariant["Info"] = "info";
|
|
7
7
|
})(NotificationVariant || (NotificationVariant = {}));
|
|
8
|
+
const VariantToIconName = {
|
|
9
|
+
[NotificationVariant.Success]: 'check_circle',
|
|
10
|
+
[NotificationVariant.Warning]: 'warning',
|
|
11
|
+
[NotificationVariant.Error]: 'error',
|
|
12
|
+
[NotificationVariant.Info]: 'info'
|
|
13
|
+
};
|
|
8
14
|
|
|
9
|
-
export { NotificationVariant };
|
|
15
|
+
export { NotificationVariant, VariantToIconName };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { NotificationVariant } from './props';
|
|
2
2
|
export declare const Notification: string[];
|
|
3
3
|
export declare const NotificationVariants: Record<NotificationVariant, string[]>;
|
|
4
|
-
export declare const NotificationIcon: string[];
|
|
5
|
-
export declare const NotificationIconVariants: Record<NotificationVariant, string[]>;
|
|
@@ -37,20 +37,5 @@ const NotificationVariants = {
|
|
|
37
37
|
// Theme (children)
|
|
38
38
|
'[&_:any-link]:theme-foreground-primary', 'dark:[&_:any-link]:theme-foreground-primary-dark']
|
|
39
39
|
};
|
|
40
|
-
const NotificationIcon = [];
|
|
41
|
-
const NotificationIconVariants = {
|
|
42
|
-
[NotificationVariant.Success]: [
|
|
43
|
-
// Theme
|
|
44
|
-
'theme-foreground-success', 'dark:theme-foreground-success-dark'],
|
|
45
|
-
[NotificationVariant.Warning]: [
|
|
46
|
-
// Theme
|
|
47
|
-
'theme-foreground-warning', 'dark:theme-foreground-warning-dark'],
|
|
48
|
-
[NotificationVariant.Error]: [
|
|
49
|
-
// Theme
|
|
50
|
-
'theme-foreground-error', 'dark:theme-foreground-error-dark'],
|
|
51
|
-
[NotificationVariant.Info]: [
|
|
52
|
-
// Theme
|
|
53
|
-
'theme-foreground-primary', 'dark:theme-foreground-primary-dark']
|
|
54
|
-
};
|
|
55
40
|
|
|
56
|
-
export { Notification,
|
|
41
|
+
export { Notification, NotificationVariants };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { g as formatTimeAgo } from '../../index-fe4d407a.js';
|
|
2
2
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
3
3
|
import { StatusVariant, StatusSize } from './props.js';
|
|
4
|
-
import { Status, StatusVariants, StatusSizes,
|
|
4
|
+
import { Status, StatusVariants, StatusSizes, StatusTimestamp } from './styles.js';
|
|
5
|
+
import __vue_component__$1 from '../OrIndicatorV3/OrIndicator.js';
|
|
6
|
+
import { IndicatorColor, IndicatorSize } from '../OrIndicatorV3/props.js';
|
|
5
7
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
6
8
|
|
|
7
9
|
var script = defineComponent({
|
|
8
10
|
name: 'OrStatus',
|
|
11
|
+
components: {
|
|
12
|
+
OrIndicator: __vue_component__$1
|
|
13
|
+
},
|
|
9
14
|
props: {
|
|
10
15
|
variant: {
|
|
11
16
|
type: String,
|
|
@@ -26,12 +31,34 @@ var script = defineComponent({
|
|
|
26
31
|
const root = ref();
|
|
27
32
|
// Styles
|
|
28
33
|
const rootStyles = computed(() => ['or-status-v3', ...Status, ...StatusVariants[props.variant], ...StatusSizes[props.size]]);
|
|
29
|
-
const indicatorStyles = computed(() => [...StatusIndicator, ...StatusIndicatorVariants[props.variant]]);
|
|
30
34
|
const timestampStyles = computed(() => [...StatusTimestamp]);
|
|
35
|
+
const indicatorProps = computed(() => {
|
|
36
|
+
let color;
|
|
37
|
+
switch (props.variant) {
|
|
38
|
+
case StatusVariant.Error:
|
|
39
|
+
color = IndicatorColor.Error;
|
|
40
|
+
break;
|
|
41
|
+
case StatusVariant.Success:
|
|
42
|
+
color = IndicatorColor.Success;
|
|
43
|
+
break;
|
|
44
|
+
case StatusVariant.Warning:
|
|
45
|
+
color = IndicatorColor.Warning;
|
|
46
|
+
break;
|
|
47
|
+
case StatusVariant.Disabled:
|
|
48
|
+
color = IndicatorColor.Outline;
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
color = IndicatorColor.Neutral;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
size: IndicatorSize.S,
|
|
55
|
+
color
|
|
56
|
+
};
|
|
57
|
+
});
|
|
31
58
|
return {
|
|
32
59
|
root,
|
|
33
60
|
rootStyles,
|
|
34
|
-
|
|
61
|
+
indicatorProps,
|
|
35
62
|
timestampStyles,
|
|
36
63
|
formatTimeAgo
|
|
37
64
|
};
|
|
@@ -49,9 +76,7 @@ var __vue_render__ = function () {
|
|
|
49
76
|
return _c('div', {
|
|
50
77
|
ref: 'root',
|
|
51
78
|
class: _vm.rootStyles
|
|
52
|
-
}, [_c('
|
|
53
|
-
class: _vm.indicatorStyles
|
|
54
|
-
}), _vm._v(" "), _c('span', {
|
|
79
|
+
}, [_c('OrIndicator', _vm._b({}, 'OrIndicator', _vm.indicatorProps, false)), _vm._v(" "), _c('span', {
|
|
55
80
|
class: ['truncate']
|
|
56
81
|
}, [_vm._t("default")], 2), _vm._v(" "), _vm.timestamp ? [_c('span', {
|
|
57
82
|
class: _vm.timestampStyles
|
|
@@ -2,6 +2,4 @@ import { StatusSize, StatusVariant } from './props';
|
|
|
2
2
|
export declare const Status: string[];
|
|
3
3
|
export declare const StatusVariants: Record<StatusVariant, string[]>;
|
|
4
4
|
export declare const StatusSizes: Record<StatusSize, string[]>;
|
|
5
|
-
export declare const StatusIndicator: string[];
|
|
6
|
-
export declare const StatusIndicatorVariants: Record<StatusVariant, string[]>;
|
|
7
5
|
export declare const StatusTimestamp: string[];
|
|
@@ -30,34 +30,10 @@ const StatusSizes = {
|
|
|
30
30
|
// Typography
|
|
31
31
|
'typography-caption-regular']
|
|
32
32
|
};
|
|
33
|
-
const StatusIndicator = [
|
|
34
|
-
// Layout
|
|
35
|
-
'shrink-0',
|
|
36
|
-
// Box
|
|
37
|
-
'w-[10px] md:w-[8px]', 'h-[10px] md:h-[8px]',
|
|
38
|
-
// Shape
|
|
39
|
-
'rounded-full'];
|
|
40
|
-
const StatusIndicatorVariants = {
|
|
41
|
-
[StatusVariant.Neutral]: [
|
|
42
|
-
// Theme
|
|
43
|
-
'theme-background-primary', 'dark:theme-background-primary-dark'],
|
|
44
|
-
[StatusVariant.Disabled]: [
|
|
45
|
-
// Theme
|
|
46
|
-
'theme-background-current', 'dark:theme-background-current-dark'],
|
|
47
|
-
[StatusVariant.Success]: [
|
|
48
|
-
// Theme
|
|
49
|
-
'theme-background-success-hover', 'dark:theme-background-success-hover-dark'],
|
|
50
|
-
[StatusVariant.Warning]: [
|
|
51
|
-
// Theme
|
|
52
|
-
'theme-background-warning-hover', 'dark:theme-background-warning-hover-dark'],
|
|
53
|
-
[StatusVariant.Error]: [
|
|
54
|
-
// Theme
|
|
55
|
-
'theme-background-error-hover', 'dark:theme-background-error-hover-dark']
|
|
56
|
-
};
|
|
57
33
|
const StatusTimestamp = [
|
|
58
34
|
// Layout
|
|
59
35
|
'shrink-0',
|
|
60
36
|
// Theme
|
|
61
37
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
62
38
|
|
|
63
|
-
export { Status,
|
|
39
|
+
export { Status, StatusSizes, StatusTimestamp, StatusVariants };
|
|
@@ -50,6 +50,7 @@ export * from './or-icon';
|
|
|
50
50
|
export * from './or-icon-button-v2';
|
|
51
51
|
export * from './or-icon-button-v3';
|
|
52
52
|
export * from './or-icon-v3';
|
|
53
|
+
export * from './or-indicator-v3';
|
|
53
54
|
export * from './or-inline-input-box-v3';
|
|
54
55
|
export * from './or-inline-input-v3';
|
|
55
56
|
export * from './or-inline-text-edit';
|
|
@@ -93,6 +93,8 @@ export { default as OrIconButtonV3 } from './OrIconButtonV3/OrIconButton.js';
|
|
|
93
93
|
export { IconButtonColor } from './OrIconButtonV3/props.js';
|
|
94
94
|
export { default as OrIconV3 } from './OrIconV3/OrIcon.js';
|
|
95
95
|
export { IconSize, IconVariant } from './OrIconV3/props.js';
|
|
96
|
+
export { default as OrIndicatorV3 } from './OrIndicatorV3/OrIndicator.js';
|
|
97
|
+
export { IndicatorColor, IndicatorSize } from './OrIndicatorV3/props.js';
|
|
96
98
|
export { default as OrInlineInputBoxV3 } from './OrInlineInputBoxV3/OrInlineInputBox.js';
|
|
97
99
|
export { InlineInputBoxSize } from './OrInlineInputBoxV3/props.js';
|
|
98
100
|
export { InlineInputType, OrInlineInputV3 } from './OrInlineInputV3/index.js';
|
|
@@ -124,7 +126,7 @@ export { ModalSize } from './OrModalV3/props.js';
|
|
|
124
126
|
export { default as OrNotification } from './OrNotification/OrNotification.js';
|
|
125
127
|
export { OR_NOTIFICATION_SIZE, OR_NOTIFICATION_TYPE } from './OrNotification/constants.js';
|
|
126
128
|
export { default as OrNotificationV3 } from './OrNotificationV3/OrNotification.js';
|
|
127
|
-
export { NotificationVariant } from './OrNotificationV3/props.js';
|
|
129
|
+
export { NotificationVariant, VariantToIconName } from './OrNotificationV3/props.js';
|
|
128
130
|
export { default as OrNumberInput } from './OrNumberInput/OrNumberInput.js';
|
|
129
131
|
export { default as OrOverflowMenu } from './OrOverflowMenu/OrOverflowMenu.js';
|
|
130
132
|
export { default as OrOverlay } from './OrOverlay/OrOverlay.js';
|