@onereach/ui-components 2.73.1-beta.2282.0 → 2.74.0-beta.2287.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/{OrButton-0a9470c0.js → OrButton-d45772c1.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-4b57513e.js → OrCardCollection-4ac89ea5.js} +1 -1
- package/dist/bundled/v2/{OrCode-fc6876ec.js → OrCode-c0af38e3.js} +179 -15
- package/dist/bundled/v2/{OrConfirm-69563c3e.js → OrConfirm-8c0e957d.js} +1 -1
- package/dist/bundled/v2/{OrLoader-cf28bfa6.js → OrLoader-864ef92a.js} +5 -20
- package/dist/bundled/v2/{OrNotification-3909aaf2.js → OrNotification-2e2a1941.js} +3 -3
- package/dist/bundled/v2/{OrPagination-b82e5900.js → OrPagination-daf25de2.js} +1 -1
- package/dist/bundled/v2/{OrSkeletonText-242d22f3.js → OrSkeletonText-2f1a3cc7.js} +3 -3
- package/dist/bundled/v2/{OrSwitch-51e30de3.js → OrSwitch-782d7b43.js} +1 -1
- package/dist/bundled/v2/components/index.js +10 -10
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-code/index.js +1 -1
- package/dist/bundled/v2/components/or-code/theme.d.ts +24 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -18
- package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-notification/index.js +1 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +11 -11
- package/dist/bundled/v2/{types-79817409.js → types-309b7b94.js} +1 -1
- package/dist/bundled/v3/{OrButton-a5b98ee2.js → OrButton-a1448bfa.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-e75f9a10.js → OrButton.vue_vue_type_script_lang-3b1e442b.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-6ede60d7.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c55de81d.js → OrCode.vue_vue_type_script_lang-79a42008.js} +176 -11
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-223c7be0.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
- package/dist/bundled/v3/{OrLoader-663e062d.js → OrLoader-123ef8c4.js} +4 -5
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-8fc03499.js → OrLoader.vue_vue_type_script_lang-4c3c1ac9.js} +4 -18
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-eed298ce.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-f6039c8f.js → OrSwitch.vue_vue_type_script_lang-31994be7.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-4aa1281e.js → OrToastContainer-6fe12712.js} +1 -1
- package/dist/bundled/v3/components/index.js +10 -10
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-code/index.js +1 -1
- package/dist/bundled/v3/components/or-code/theme.d.ts +24 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -18
- package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +22 -22
- package/dist/bundled/v3/{types-5272a258.js → types-22fbf9d6.js} +2 -2
- package/dist/esm/v2/{OrButton-49f7f20b.js → OrButton-66964360.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-2873b5ef.js → OrCardCollection-5a9eda35.js} +1 -1
- package/dist/esm/v2/{OrCode-d4400b42.js → OrCode-47331c24.js} +183 -17
- package/dist/esm/v2/{OrConfirm-5f620847.js → OrConfirm-9dbdedd7.js} +1 -1
- package/dist/esm/v2/{OrLoader-8f1f3af1.js → OrLoader-76307488.js} +5 -20
- package/dist/esm/v2/{OrNotification-a9231a83.js → OrNotification-a49e76d3.js} +3 -3
- package/dist/esm/v2/{OrPagination-f2dc37a1.js → OrPagination-1adbcadb.js} +1 -1
- package/dist/esm/v2/{OrSkeletonText-cc94bdc9.js → OrSkeletonText-24509efe.js} +3 -3
- package/dist/esm/v2/{OrSwitch-10ecff82.js → OrSwitch-8549219a.js} +1 -1
- package/dist/esm/v2/components/index.js +12 -10
- package/dist/esm/v2/components/or-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v2/components/or-code/index.js +4 -2
- package/dist/esm/v2/components/or-code/theme.d.ts +24 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -18
- package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v2/components/or-notification/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-skeleton/index.js +1 -1
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/index.js +12 -10
- package/dist/esm/v2/{types-b79f2065.js → types-1f95d710.js} +1 -1
- package/dist/esm/v3/{OrButton-eab948fb.js → OrButton-c56998e7.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-96b359db.js → OrCardCollection-e4fde5b4.js} +1 -1
- package/dist/esm/v3/{OrCode-5ed69c23.js → OrCode-effa9edb.js} +180 -14
- package/dist/esm/v3/{OrConfirm-ca80102f.js → OrConfirm-37454a63.js} +1 -1
- package/dist/esm/v3/{OrLoader-3a918ce9.js → OrLoader-a53d2edf.js} +7 -22
- package/dist/esm/v3/{OrNotification-e85a4956.js → OrNotification-eb08de33.js} +1 -1
- package/dist/esm/v3/{OrPagination-fd5746da.js → OrPagination-da9e5017.js} +1 -1
- package/dist/esm/v3/{OrSkeletonText-2b1610ce.js → OrSkeletonText-0546754d.js} +3 -3
- package/dist/esm/v3/{OrSwitch-0e92c92c.js → OrSwitch-1c2196da.js} +1 -1
- package/dist/esm/v3/components/index.js +12 -10
- package/dist/esm/v3/components/or-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-code/index.js +4 -2
- package/dist/esm/v3/components/or-code/theme.d.ts +24 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -18
- package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v3/components/or-notification/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-skeleton/index.js +1 -1
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/index.js +12 -10
- package/dist/esm/v3/{types-cc84155e.js → types-b79e4387.js} +1 -1
- package/package.json +2 -2
- package/src/components/or-code/OrCode.vue +8 -6
- package/src/components/or-code/theme.ts +213 -0
- package/src/components/or-loader-v3/OrLoader.stories3.ts +4 -16
- package/src/components/or-loader-v3/OrLoader.vue +3 -21
- package/src/components/or-loader-v3/styles.ts +2 -1
- package/src/components/or-notification/OrNotification.vue +26 -1
- package/src/components/or-skeleton/styles.scss +18 -3
- package/src/components/or-stepper/OrStepper.stories.ts +1 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { EditorView } from '@codemirror/view';
|
|
2
|
+
import { Extension } from '@codemirror/state';
|
|
3
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
4
|
+
import { tags as t } from '@lezer/highlight';
|
|
5
|
+
|
|
6
|
+
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
7
|
+
|
|
8
|
+
const chalky = 'var(--c-warning-darken-20)',
|
|
9
|
+
coral = 'var(--c-error)',
|
|
10
|
+
cyan = '#56b6c2',
|
|
11
|
+
invalid = 'var(--c-white)',
|
|
12
|
+
ivory = 'var(--c-neutral-6)',
|
|
13
|
+
stone = 'var(--c-neutral-5)', // Brightened compared to original to increase contrast
|
|
14
|
+
malibu = '#61afef',
|
|
15
|
+
sage = 'var(--c-success)',
|
|
16
|
+
whiskey = 'var(--c-warning-darken-5)',
|
|
17
|
+
violet = '#c678dd',
|
|
18
|
+
darkBackground = 'var(--c-neutral-1)',
|
|
19
|
+
highlightBackground = 'var(--c-neutral-2)',
|
|
20
|
+
background = 'var(--c-neutral-1)',
|
|
21
|
+
tooltipBackground = 'var(--c-neutral-2)',
|
|
22
|
+
selection = 'var(--c-neutral-3)',
|
|
23
|
+
cursor = 'var(--c-primary)';
|
|
24
|
+
|
|
25
|
+
/// The colors used in the theme, as CSS color strings.
|
|
26
|
+
export const color = {
|
|
27
|
+
chalky,
|
|
28
|
+
coral,
|
|
29
|
+
cyan,
|
|
30
|
+
invalid,
|
|
31
|
+
ivory,
|
|
32
|
+
stone,
|
|
33
|
+
malibu,
|
|
34
|
+
sage,
|
|
35
|
+
whiskey,
|
|
36
|
+
violet,
|
|
37
|
+
darkBackground,
|
|
38
|
+
highlightBackground,
|
|
39
|
+
background,
|
|
40
|
+
tooltipBackground,
|
|
41
|
+
selection,
|
|
42
|
+
cursor,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/// The editor theme styles for One Dark.
|
|
46
|
+
export const orCodeTheme = EditorView.theme({
|
|
47
|
+
'&': {
|
|
48
|
+
color: ivory,
|
|
49
|
+
backgroundColor: background,
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
'.cm-content': {
|
|
53
|
+
caretColor: cursor,
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
'.cm-button': {
|
|
57
|
+
background: highlightBackground,
|
|
58
|
+
color: 'var(--c-neutral-6)',
|
|
59
|
+
border: 0,
|
|
60
|
+
borderRadius: 'var(--s-2)',
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
'.cm-panel.cm-search input[type=checkbox]': {
|
|
64
|
+
display: 'inline-block',
|
|
65
|
+
verticalAlign: 'middle',
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
'.cm-cursor, .cm-dropCursor': { borderLeftColor: cursor },
|
|
69
|
+
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
70
|
+
backgroundColor: selection,
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
'.cm-panels': {
|
|
74
|
+
backgroundColor: darkBackground,
|
|
75
|
+
color: ivory,
|
|
76
|
+
},
|
|
77
|
+
'.cm-panels.cm-panels-top': { borderBottom: '2px solid var(--c-neutral-2)' },
|
|
78
|
+
'.cm-panels.cm-panels-bottom': { borderTop: '2px solid var(--c-neutral-2)' },
|
|
79
|
+
|
|
80
|
+
'.cm-searchMatch': {
|
|
81
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
82
|
+
outline: '1px solid var(--c-neutral-2)',
|
|
83
|
+
},
|
|
84
|
+
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
85
|
+
backgroundColor: '#6199ff2f',
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
'.cm-activeLine': { backgroundColor: '#6699ff0b' },
|
|
89
|
+
'.cm-selectionMatch': { backgroundColor: '#aafe661a' },
|
|
90
|
+
|
|
91
|
+
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
92
|
+
backgroundColor: '#bad0f847',
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
'.cm-gutters': {
|
|
96
|
+
backgroundColor: background,
|
|
97
|
+
color: stone,
|
|
98
|
+
border: 'none',
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
'.cm-activeLineGutter': {
|
|
102
|
+
backgroundColor: highlightBackground,
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
'.cm-foldPlaceholder': {
|
|
106
|
+
backgroundColor: 'transparent',
|
|
107
|
+
border: 'none',
|
|
108
|
+
color: '#ddd',
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
'.cm-tooltip': {
|
|
112
|
+
border: 'none',
|
|
113
|
+
backgroundColor: tooltipBackground,
|
|
114
|
+
},
|
|
115
|
+
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
116
|
+
borderTopColor: 'transparent',
|
|
117
|
+
borderBottomColor: 'transparent',
|
|
118
|
+
},
|
|
119
|
+
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
120
|
+
borderTopColor: tooltipBackground,
|
|
121
|
+
borderBottomColor: tooltipBackground,
|
|
122
|
+
},
|
|
123
|
+
'.cm-tooltip-autocomplete': {
|
|
124
|
+
'& > ul > li[aria-selected]': {
|
|
125
|
+
backgroundColor: highlightBackground,
|
|
126
|
+
color: ivory,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
'.cm-textfield': {
|
|
130
|
+
outline: 'none',
|
|
131
|
+
background: background,
|
|
132
|
+
color: 'var(--c-neutral-6)',
|
|
133
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
134
|
+
border: '1px solid var(--c-neutral-2)',
|
|
135
|
+
borderRadius: 'var(--s-2)',
|
|
136
|
+
},
|
|
137
|
+
}, { dark: true });
|
|
138
|
+
|
|
139
|
+
/// The highlighting style for code in the One Dark theme.
|
|
140
|
+
export const orCodeHighlightStyle = HighlightStyle.define([
|
|
141
|
+
{
|
|
142
|
+
tag: t.keyword,
|
|
143
|
+
color: violet,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],
|
|
147
|
+
color: coral,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
tag: [t.function(t.variableName), t.labelName],
|
|
151
|
+
color: malibu,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
tag: [t.color, t.constant(t.name), t.standard(t.name)],
|
|
155
|
+
color: whiskey,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
tag: [t.definition(t.name), t.separator],
|
|
159
|
+
color: ivory,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
tag: [t.typeName, t.className, t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],
|
|
163
|
+
color: chalky,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
tag: [t.operator, t.operatorKeyword, t.url, t.escape, t.regexp, t.link, t.special(t.string)],
|
|
167
|
+
color: cyan,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
tag: [t.meta, t.comment],
|
|
171
|
+
color: stone,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
tag: t.strong,
|
|
175
|
+
fontWeight: 'bold',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
tag: t.emphasis,
|
|
179
|
+
fontStyle: 'italic',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
tag: t.strikethrough,
|
|
183
|
+
textDecoration: 'line-through',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
tag: t.link,
|
|
187
|
+
color: stone,
|
|
188
|
+
textDecoration: 'underline',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
tag: t.heading,
|
|
192
|
+
fontWeight: 'bold',
|
|
193
|
+
color: coral,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
tag: [t.atom, t.bool, t.special(t.variableName)],
|
|
197
|
+
color: whiskey,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
tag: [t.processingInstruction, t.string, t.inserted],
|
|
201
|
+
color: sage,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
tag: t.invalid,
|
|
205
|
+
color: invalid,
|
|
206
|
+
},
|
|
207
|
+
]);
|
|
208
|
+
|
|
209
|
+
/// Extension to enable the One Dark theme (both the editor theme and
|
|
210
|
+
/// the highlight style).
|
|
211
|
+
const theme: Extension = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
|
|
212
|
+
|
|
213
|
+
export default theme;
|
|
@@ -25,16 +25,16 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
|
|
27
27
|
title: {
|
|
28
|
-
control: { type: '
|
|
28
|
+
control: { type: 'string' },
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
description: {
|
|
32
|
-
control: { type: '
|
|
32
|
+
control: { type: 'string' },
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
parameters: {
|
|
37
|
-
layout: '
|
|
37
|
+
layout: 'centered',
|
|
38
38
|
|
|
39
39
|
docs: {
|
|
40
40
|
page: OrLoaderDocs,
|
|
@@ -56,11 +56,7 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
|
|
|
56
56
|
return { args };
|
|
57
57
|
},
|
|
58
58
|
|
|
59
|
-
template:
|
|
60
|
-
<div class="w-full min-h-[100px] p-md flex justify-center items-center">
|
|
61
|
-
<OrLoader class="w-2/5 max-w-[400px]" v-bind="args" />
|
|
62
|
-
</div>
|
|
63
|
-
`,
|
|
59
|
+
template: '<OrLoader v-bind="args" />',
|
|
64
60
|
});
|
|
65
61
|
|
|
66
62
|
export const Default = Template.bind({});
|
|
@@ -76,11 +72,3 @@ LinearWithText.args = {
|
|
|
76
72
|
variant: 'linear',
|
|
77
73
|
description: 'Promptly retrieving your data from the cloud',
|
|
78
74
|
};
|
|
79
|
-
LinearWithText.parameters = {
|
|
80
|
-
docs: {
|
|
81
|
-
description: {
|
|
82
|
-
story: 'By setting width on the component you may control the width of the linear loading indicator. \
|
|
83
|
-
Circular indicator size is controlled by the `size` prop.',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
};
|
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
{{ title }}
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
|
-
<div
|
|
12
|
-
:class="containerStyles"
|
|
13
|
-
:style="wrapperStyle"
|
|
14
|
-
>
|
|
11
|
+
<div :class="containerStyles">
|
|
15
12
|
<template v-if="variant === 'circular'">
|
|
16
13
|
<svg
|
|
17
14
|
viewBox="0 0 16 16"
|
|
@@ -95,18 +92,11 @@ export default defineComponent({
|
|
|
95
92
|
default: LoaderVariant.Circular,
|
|
96
93
|
},
|
|
97
94
|
|
|
98
|
-
/**
|
|
99
|
-
* Defines a semantic color of the loading indicator.
|
|
100
|
-
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
101
|
-
*/
|
|
102
95
|
color: {
|
|
103
96
|
type: String as PropType<LoaderColor>,
|
|
104
97
|
default: LoaderColor.Primary,
|
|
105
98
|
},
|
|
106
99
|
|
|
107
|
-
/**
|
|
108
|
-
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
109
|
-
*/
|
|
110
100
|
size: {
|
|
111
101
|
type: String as PropType<LoaderSize>,
|
|
112
102
|
default: LoaderSize.M,
|
|
@@ -153,21 +143,14 @@ export default defineComponent({
|
|
|
153
143
|
// State
|
|
154
144
|
const computedSize = computed(() => {
|
|
155
145
|
switch (props.size) {
|
|
156
|
-
case
|
|
146
|
+
case 'm':
|
|
157
147
|
return 20;
|
|
158
148
|
|
|
159
|
-
case
|
|
149
|
+
case 's':
|
|
160
150
|
return 16;
|
|
161
151
|
}
|
|
162
152
|
});
|
|
163
153
|
|
|
164
|
-
/**
|
|
165
|
-
* Preserves circular loading indicator from shrinking caused by external styles.
|
|
166
|
-
*/
|
|
167
|
-
const wrapperStyle = computed(() => {
|
|
168
|
-
return `min-width: ${computedSize.value}px;`;
|
|
169
|
-
});
|
|
170
|
-
|
|
171
154
|
return {
|
|
172
155
|
root,
|
|
173
156
|
rootStyles,
|
|
@@ -175,7 +158,6 @@ export default defineComponent({
|
|
|
175
158
|
titleStyles,
|
|
176
159
|
descriptionStyles,
|
|
177
160
|
computedSize,
|
|
178
|
-
wrapperStyle,
|
|
179
161
|
};
|
|
180
162
|
},
|
|
181
163
|
});
|
|
@@ -115,7 +115,6 @@ export default defineComponent({
|
|
|
115
115
|
warning: ($c-warning, $c-warning-lighten-45),
|
|
116
116
|
success: ($c-success, $c-success-lighten-45),
|
|
117
117
|
);
|
|
118
|
-
|
|
119
118
|
/** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */
|
|
120
119
|
--alignment-height: #{$lh-1};
|
|
121
120
|
|
|
@@ -178,4 +177,30 @@ export default defineComponent({
|
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
179
|
}
|
|
180
|
+
|
|
181
|
+
[data-theme="dark"] {
|
|
182
|
+
.or-notification {
|
|
183
|
+
$notification-types: (
|
|
184
|
+
info: ($c-neutral-6, $c-primary-darken-45),
|
|
185
|
+
error: ($c-neutral-6, $c-error-darken-45),
|
|
186
|
+
warning: ($c-neutral-6, $c-warning-darken-45),
|
|
187
|
+
success: ($c-neutral-6, $c-success-darken-45),
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
.or-icon {
|
|
191
|
+
color: $c-neutral-1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@each $type, $colors in $notification-types {
|
|
195
|
+
&.is-type-#{$type} {
|
|
196
|
+
background-color: list.nth($colors, 2);
|
|
197
|
+
color: list.nth($colors, 1);
|
|
198
|
+
|
|
199
|
+
a {
|
|
200
|
+
color: list.nth($colors, 1);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
181
206
|
</style>
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
$c-skeleton-center: #fff;
|
|
12
|
+
$c-skeleton-bg: #f6f8fd;
|
|
13
|
+
$c-skeleton-center: #fff;
|
|
15
14
|
|
|
15
|
+
.or-skeleton {
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
position: relative;
|
|
18
18
|
padding: 0;
|
|
@@ -33,3 +33,18 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
[data-theme="dark"] {
|
|
39
|
+
$c-skeleton-dark-bg: $c-neutral-3;
|
|
40
|
+
$c-skeleton-dark-center: $c-neutral-2;
|
|
41
|
+
|
|
42
|
+
.or-skeleton {
|
|
43
|
+
background: $c-skeleton-dark-bg;
|
|
44
|
+
&.is-animated {
|
|
45
|
+
&::before {
|
|
46
|
+
background: linear-gradient(90.14deg, $c-skeleton-dark-bg 0.1%, $c-skeleton-dark-center 49.98%, $c-skeleton-dark-bg 99.06%);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -30,7 +30,7 @@ const Template: Story = (_args, { argTypes }) => ({
|
|
|
30
30
|
},
|
|
31
31
|
//<component :key="slot.Id" :someProp="slotProps"></component>
|
|
32
32
|
//<template #buttons="{onConfirm}"> here your button slot props <or-button content="slot-confirm" @click="onConfirm"/></template>
|
|
33
|
-
template: '<div><or-stepper v-bind="$props"> <template v-for="slot in slots" v-slot:[slot]="slotProps"><p class="bg-surface-5 rounded-sm p-
|
|
33
|
+
template: '<div><or-stepper v-bind="$props"> <template v-for="slot in slots" v-slot:[slot]="slotProps"><p class="bg-surface-5 text-on-surface rounded-sm p-md"> your slot named like content-{index} === {{slot}} ; slot props {{slotProps}}</p></template></or-stepper></div>',
|
|
34
34
|
|
|
35
35
|
});
|
|
36
36
|
|