@onereach/ui-components 2.74.16-beta.2375.0 → 2.75.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/{OrCode-cdde94a4.js → OrCode-5b43ba50.js} +178 -14
- package/dist/bundled/v2/{OrModal-5f094323.js → OrModal-d845da2d.js} +4 -4
- package/dist/bundled/v2/{OrNotification-76491313.js → OrNotification-209972e7.js} +2 -2
- package/dist/bundled/v2/{OrSkeletonText-feb27b8c.js → OrSkeletonText-1bf08dbc.js} +3 -3
- package/dist/bundled/v2/components/index.js +4 -4
- 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-modal-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-notification/index.js +1 -1
- package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
- package/dist/bundled/v2/index.js +5 -5
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-1fbe8517.js → OrCode.vue_vue_type_script_lang-7723c4a8.js} +176 -11
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-92339e0f.js → OrModal.vue_vue_type_script_lang-3f3ce339.js} +4 -4
- package/dist/bundled/v3/components/index.js +2 -2
- 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-modal-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +10 -10
- package/dist/esm/v2/{OrCode-9a2cdc0c.js → OrCode-930709c5.js} +182 -16
- package/dist/esm/v2/{OrModal-407f3ac7.js → OrModal-370cfc3b.js} +4 -4
- package/dist/esm/v2/{OrNotification-f905da81.js → OrNotification-0b22c94c.js} +2 -2
- package/dist/esm/v2/{OrSkeletonText-38aef640.js → OrSkeletonText-6a6f285d.js} +3 -3
- package/dist/esm/v2/components/index.js +6 -4
- 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-modal-v3/index.js +1 -1
- package/dist/esm/v2/components/or-notification/index.js +1 -1
- package/dist/esm/v2/components/or-skeleton/index.js +1 -1
- package/dist/esm/v2/index.js +6 -4
- package/dist/esm/v3/{OrCode-033d49f4.js → OrCode-fe49ca8e.js} +180 -14
- package/dist/esm/v3/{OrModal-17c3a1cb.js → OrModal-f9f2279b.js} +4 -4
- package/dist/esm/v3/{OrNotification-b90cf406.js → OrNotification-2d77aae4.js} +1 -1
- package/dist/esm/v3/{OrSkeletonText-2b1610ce.js → OrSkeletonText-0546754d.js} +3 -3
- package/dist/esm/v3/components/index.js +6 -4
- 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-modal-v3/index.js +1 -1
- package/dist/esm/v3/components/or-notification/index.js +1 -1
- package/dist/esm/v3/components/or-skeleton/index.js +1 -1
- package/dist/esm/v3/index.js +6 -4
- package/package.json +4 -3
- package/src/components/or-code/OrCode.vue +8 -6
- package/src/components/or-code/theme.ts +213 -0
- package/src/components/or-modal-v3/OrModal.stories3.ts +0 -19
- package/src/components/or-modal-v3/styles.ts +4 -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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EditorState } from '@codemirror/state';
|
|
2
|
-
import { keymap } from '@codemirror/view';
|
|
2
|
+
import { EditorView, keymap } from '@codemirror/view';
|
|
3
3
|
import { indentWithTab } from '@codemirror/commands';
|
|
4
|
+
import { basicSetup, EditorView as EditorView$1 } from 'codemirror';
|
|
4
5
|
import { useElementHover } from '@vueuse/core';
|
|
5
|
-
import { basicSetup, EditorView } from 'codemirror';
|
|
6
6
|
import _ from 'lodash';
|
|
7
7
|
import { defineComponent, ref } from 'vue-demi';
|
|
8
8
|
import { a as script$1 } from './OrIconButton-b668558a.js';
|
|
@@ -16,6 +16,8 @@ import { css } from '@codemirror/lang-css';
|
|
|
16
16
|
import { json } from '@codemirror/lang-json';
|
|
17
17
|
import { javascript } from '@codemirror/lang-javascript';
|
|
18
18
|
import { markdown } from '@codemirror/lang-markdown';
|
|
19
|
+
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
20
|
+
import { tags } from '@lezer/highlight';
|
|
19
21
|
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, renderSlot, createElementVNode, normalizeClass, createBlock, createCommentVNode, withDirectives, vShow } from 'vue';
|
|
20
22
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
21
23
|
|
|
@@ -48,6 +50,173 @@ var languages = {
|
|
|
48
50
|
[OrCodeLanguages.MD]: MD
|
|
49
51
|
};
|
|
50
52
|
|
|
53
|
+
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
54
|
+
const chalky = 'var(--c-warning-darken-20)',
|
|
55
|
+
coral = 'var(--c-error)',
|
|
56
|
+
cyan = '#56b6c2',
|
|
57
|
+
invalid = 'var(--c-white)',
|
|
58
|
+
ivory = 'var(--c-neutral-6)',
|
|
59
|
+
stone = 'var(--c-neutral-5)',
|
|
60
|
+
// Brightened compared to original to increase contrast
|
|
61
|
+
malibu = '#61afef',
|
|
62
|
+
sage = 'var(--c-success)',
|
|
63
|
+
whiskey = 'var(--c-warning-darken-5)',
|
|
64
|
+
violet = '#c678dd',
|
|
65
|
+
darkBackground = 'var(--c-neutral-1)',
|
|
66
|
+
highlightBackground = 'var(--c-neutral-2)',
|
|
67
|
+
background = 'var(--c-neutral-1)',
|
|
68
|
+
tooltipBackground = 'var(--c-neutral-2)',
|
|
69
|
+
selection = 'var(--c-neutral-3)',
|
|
70
|
+
cursor = 'var(--c-primary)';
|
|
71
|
+
/// The editor theme styles for One Dark.
|
|
72
|
+
const orCodeTheme = EditorView.theme({
|
|
73
|
+
'&': {
|
|
74
|
+
color: ivory,
|
|
75
|
+
backgroundColor: background
|
|
76
|
+
},
|
|
77
|
+
'.cm-content': {
|
|
78
|
+
caretColor: cursor
|
|
79
|
+
},
|
|
80
|
+
'.cm-button': {
|
|
81
|
+
background: highlightBackground,
|
|
82
|
+
color: 'var(--c-neutral-6)',
|
|
83
|
+
border: 0,
|
|
84
|
+
borderRadius: 'var(--s-2)'
|
|
85
|
+
},
|
|
86
|
+
'.cm-panel.cm-search input[type=checkbox]': {
|
|
87
|
+
display: 'inline-block',
|
|
88
|
+
verticalAlign: 'middle'
|
|
89
|
+
},
|
|
90
|
+
'.cm-cursor, .cm-dropCursor': {
|
|
91
|
+
borderLeftColor: cursor
|
|
92
|
+
},
|
|
93
|
+
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
|
|
94
|
+
backgroundColor: selection
|
|
95
|
+
},
|
|
96
|
+
'.cm-panels': {
|
|
97
|
+
backgroundColor: darkBackground,
|
|
98
|
+
color: ivory
|
|
99
|
+
},
|
|
100
|
+
'.cm-panels.cm-panels-top': {
|
|
101
|
+
borderBottom: '2px solid var(--c-neutral-2)'
|
|
102
|
+
},
|
|
103
|
+
'.cm-panels.cm-panels-bottom': {
|
|
104
|
+
borderTop: '2px solid var(--c-neutral-2)'
|
|
105
|
+
},
|
|
106
|
+
'.cm-searchMatch': {
|
|
107
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
108
|
+
outline: '1px solid var(--c-neutral-2)'
|
|
109
|
+
},
|
|
110
|
+
'.cm-searchMatch.cm-searchMatch-selected': {
|
|
111
|
+
backgroundColor: '#6199ff2f'
|
|
112
|
+
},
|
|
113
|
+
'.cm-activeLine': {
|
|
114
|
+
backgroundColor: '#6699ff0b'
|
|
115
|
+
},
|
|
116
|
+
'.cm-selectionMatch': {
|
|
117
|
+
backgroundColor: '#aafe661a'
|
|
118
|
+
},
|
|
119
|
+
'&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
|
|
120
|
+
backgroundColor: '#bad0f847'
|
|
121
|
+
},
|
|
122
|
+
'.cm-gutters': {
|
|
123
|
+
backgroundColor: background,
|
|
124
|
+
color: stone,
|
|
125
|
+
border: 'none'
|
|
126
|
+
},
|
|
127
|
+
'.cm-activeLineGutter': {
|
|
128
|
+
backgroundColor: highlightBackground
|
|
129
|
+
},
|
|
130
|
+
'.cm-foldPlaceholder': {
|
|
131
|
+
backgroundColor: 'transparent',
|
|
132
|
+
border: 'none',
|
|
133
|
+
color: '#ddd'
|
|
134
|
+
},
|
|
135
|
+
'.cm-tooltip': {
|
|
136
|
+
border: 'none',
|
|
137
|
+
backgroundColor: tooltipBackground
|
|
138
|
+
},
|
|
139
|
+
'.cm-tooltip .cm-tooltip-arrow:before': {
|
|
140
|
+
borderTopColor: 'transparent',
|
|
141
|
+
borderBottomColor: 'transparent'
|
|
142
|
+
},
|
|
143
|
+
'.cm-tooltip .cm-tooltip-arrow:after': {
|
|
144
|
+
borderTopColor: tooltipBackground,
|
|
145
|
+
borderBottomColor: tooltipBackground
|
|
146
|
+
},
|
|
147
|
+
'.cm-tooltip-autocomplete': {
|
|
148
|
+
'& > ul > li[aria-selected]': {
|
|
149
|
+
backgroundColor: highlightBackground,
|
|
150
|
+
color: ivory
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
'.cm-textfield': {
|
|
154
|
+
outline: 'none',
|
|
155
|
+
background: background,
|
|
156
|
+
color: 'var(--c-neutral-6)',
|
|
157
|
+
backgroundColor: 'var(--c-neutral-1)',
|
|
158
|
+
border: '1px solid var(--c-neutral-2)',
|
|
159
|
+
borderRadius: 'var(--s-2)'
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
dark: true
|
|
163
|
+
});
|
|
164
|
+
/// The highlighting style for code in the One Dark theme.
|
|
165
|
+
const orCodeHighlightStyle = HighlightStyle.define([{
|
|
166
|
+
tag: tags.keyword,
|
|
167
|
+
color: violet
|
|
168
|
+
}, {
|
|
169
|
+
tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
|
|
170
|
+
color: coral
|
|
171
|
+
}, {
|
|
172
|
+
tag: [tags.function(tags.variableName), tags.labelName],
|
|
173
|
+
color: malibu
|
|
174
|
+
}, {
|
|
175
|
+
tag: [tags.color, tags.constant(tags.name), tags.standard(tags.name)],
|
|
176
|
+
color: whiskey
|
|
177
|
+
}, {
|
|
178
|
+
tag: [tags.definition(tags.name), tags.separator],
|
|
179
|
+
color: ivory
|
|
180
|
+
}, {
|
|
181
|
+
tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
|
|
182
|
+
color: chalky
|
|
183
|
+
}, {
|
|
184
|
+
tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, tags.special(tags.string)],
|
|
185
|
+
color: cyan
|
|
186
|
+
}, {
|
|
187
|
+
tag: [tags.meta, tags.comment],
|
|
188
|
+
color: stone
|
|
189
|
+
}, {
|
|
190
|
+
tag: tags.strong,
|
|
191
|
+
fontWeight: 'bold'
|
|
192
|
+
}, {
|
|
193
|
+
tag: tags.emphasis,
|
|
194
|
+
fontStyle: 'italic'
|
|
195
|
+
}, {
|
|
196
|
+
tag: tags.strikethrough,
|
|
197
|
+
textDecoration: 'line-through'
|
|
198
|
+
}, {
|
|
199
|
+
tag: tags.link,
|
|
200
|
+
color: stone,
|
|
201
|
+
textDecoration: 'underline'
|
|
202
|
+
}, {
|
|
203
|
+
tag: tags.heading,
|
|
204
|
+
fontWeight: 'bold',
|
|
205
|
+
color: coral
|
|
206
|
+
}, {
|
|
207
|
+
tag: [tags.atom, tags.bool, tags.special(tags.variableName)],
|
|
208
|
+
color: whiskey
|
|
209
|
+
}, {
|
|
210
|
+
tag: [tags.processingInstruction, tags.string, tags.inserted],
|
|
211
|
+
color: sage
|
|
212
|
+
}, {
|
|
213
|
+
tag: tags.invalid,
|
|
214
|
+
color: invalid
|
|
215
|
+
}]);
|
|
216
|
+
/// Extension to enable the One Dark theme (both the editor theme and
|
|
217
|
+
/// the highlight style).
|
|
218
|
+
const theme = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
|
|
219
|
+
|
|
51
220
|
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
52
221
|
var script = defineComponent({
|
|
53
222
|
name: 'OrCode',
|
|
@@ -131,11 +300,12 @@ var script = defineComponent({
|
|
|
131
300
|
setup(props, {
|
|
132
301
|
emit
|
|
133
302
|
}) {
|
|
303
|
+
// editor config
|
|
134
304
|
const root = ref();
|
|
135
305
|
const target = ref();
|
|
136
306
|
const fullscreenTarget = ref();
|
|
137
307
|
const isHovered = useElementHover(root);
|
|
138
|
-
const editor = new EditorView({
|
|
308
|
+
const editor = new EditorView$1({
|
|
139
309
|
state: EditorState.create({
|
|
140
310
|
doc: props.modelValue
|
|
141
311
|
}),
|
|
@@ -172,21 +342,19 @@ var script = defineComponent({
|
|
|
172
342
|
allowPaste,
|
|
173
343
|
lineWrapping
|
|
174
344
|
} = this;
|
|
175
|
-
const ext = _.compact([
|
|
176
|
-
// Toggle light/dark mode
|
|
177
|
-
EditorView.baseTheme({}),
|
|
345
|
+
const ext = _.compact([theme, EditorView$1.baseTheme({}),
|
|
178
346
|
// locale settings
|
|
179
347
|
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
180
348
|
// Parser language setting
|
|
181
349
|
this.localLanguage,
|
|
182
350
|
// Editable option
|
|
183
|
-
EditorView.editable.of(!this.isReadonly),
|
|
351
|
+
EditorView$1.editable.of(!this.isReadonly),
|
|
184
352
|
// Focus and blur listener
|
|
185
|
-
EditorView.updateListener.of(viewUpdate => {
|
|
353
|
+
EditorView$1.updateListener.of(viewUpdate => {
|
|
186
354
|
if (viewUpdate.focusChanged) {
|
|
187
355
|
viewUpdate.view.hasFocus ? this.$emit('focus') : this.$emit('blur', viewUpdate.state.doc.toString());
|
|
188
356
|
}
|
|
189
|
-
}), EditorView.domEventHandlers({
|
|
357
|
+
}), EditorView$1.domEventHandlers({
|
|
190
358
|
drop(event) {
|
|
191
359
|
if (!allowDrop) {
|
|
192
360
|
event.preventDefault();
|
|
@@ -201,10 +369,8 @@ var script = defineComponent({
|
|
|
201
369
|
}
|
|
202
370
|
}),
|
|
203
371
|
// line wrapping
|
|
204
|
-
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
|
|
205
|
-
|
|
206
|
-
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
207
|
-
return ext;
|
|
372
|
+
lineWrapping ? EditorView$1.lineWrapping : undefined, keymap.of([indentWithTab]), ...this.extensions]);
|
|
373
|
+
return [...ext];
|
|
208
374
|
},
|
|
209
375
|
isShowingError() {
|
|
210
376
|
return !!this.error && this.isInvalid;
|
|
@@ -302,7 +468,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
302
468
|
}, () => [_ctx.isShowingFullscreen ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
303
469
|
key: 0,
|
|
304
470
|
icon: "fullscreen",
|
|
305
|
-
"icon-color": "neutral-
|
|
471
|
+
"icon-color": "neutral-4",
|
|
306
472
|
class: "fullscreen-button",
|
|
307
473
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.toggleFullscreen(true))
|
|
308
474
|
})) : createCommentVNode("v-if", true)])], 2 /* CLASS */)])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
@@ -14,7 +14,7 @@ const ModalRoot = [
|
|
|
14
14
|
// Layout
|
|
15
15
|
'layout-column',
|
|
16
16
|
// Box
|
|
17
|
-
'w-full', 'h-full
|
|
17
|
+
'w-full', 'h-full',
|
|
18
18
|
// Shape
|
|
19
19
|
'md:rounded-md',
|
|
20
20
|
// Spacing
|
|
@@ -28,13 +28,13 @@ const ModalRoot = [
|
|
|
28
28
|
const ModalRootSizes = {
|
|
29
29
|
'l': [
|
|
30
30
|
// Box
|
|
31
|
-
'md:w-[1050px]'],
|
|
31
|
+
'md:w-[1050px]', 'md:h-auto'],
|
|
32
32
|
'm': [
|
|
33
33
|
// Box
|
|
34
|
-
'md:w-[700px]'],
|
|
34
|
+
'md:w-[700px]', 'md:h-auto'],
|
|
35
35
|
's': [
|
|
36
36
|
// Box
|
|
37
|
-
'md:w-[480px]']
|
|
37
|
+
'md:w-[480px]', 'md:h-auto']
|
|
38
38
|
};
|
|
39
39
|
const ModalHeader = [
|
|
40
40
|
// Layouot
|
|
@@ -104,7 +104,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
104
|
})) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-2a8b1558 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-2a8b1558 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-notification[data-v-2a8b1558] {\n /** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */\n --alignment-height: var(--lh-1);\n display: flex;\n align-items: flex-start;\n width: 100%;\n padding: var(--s-4);\n background-color: var(--c-white);\n border-radius: 0.25rem;\n box-shadow: 0 0.0625rem 0.25rem 0.0625rem rgba(0, 0, 0, 0.08);\n transition-timing-function: var(--t-func);\n transition-duration: var(--t-duration);\n transition-property: background-color;\n}\n.or-notification.is-size-default[data-v-2a8b1558] {\n max-width: 48rem;\n}\n.or-notification.is-size-inline[data-v-2a8b1558] {\n max-width: 27.875rem;\n}\n.or-notification a[data-v-2a8b1558] {\n font-weight: var(--fw-2);\n color: var(--c-black);\n}\n.or-notification--icon[data-v-2a8b1558] {\n display: flex;\n align-items: center;\n min-height: var(--alignment-height);\n margin-right: var(--s-4);\n}\n.or-notification--icon[data-v-2a8b1558] .or-icon {\n font-size: 1rem;\n}\n.or-notification--content[data-v-2a8b1558] {\n flex: 1 1 100%;\n word-break: break-word;\n}\n.or-notification--close[data-v-2a8b1558] {\n display: flex;\n height: var(--alignment-height);\n margin-left: 1rem;\n}\n.or-notification--close[data-v-2a8b1558] .or-icon {\n font-size: 1rem !important;\n}\n.or-notification.is-type-info[data-v-2a8b1558] {\n background-color: var(--c-primary-lighten-45);\n}\n.or-notification.is-type-info a[data-v-2a8b1558] {\n color: var(--c-primary);\n}\n.or-notification.is-type-error[data-v-2a8b1558] {\n background-color: var(--c-error-lighten-45);\n}\n.or-notification.is-type-error a[data-v-2a8b1558] {\n color: var(--c-error);\n}\n.or-notification.is-type-warning[data-v-2a8b1558] {\n background-color: var(--c-warning-lighten-45);\n}\n.or-notification.is-type-warning a[data-v-2a8b1558] {\n color: var(--c-warning);\n}\n.or-notification.is-type-success[data-v-2a8b1558] {\n background-color: var(--c-success-lighten-45);\n}\n.or-notification.is-type-success a[data-v-2a8b1558] {\n color: var(--c-success);\n}";
|
|
107
|
+
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-2a8b1558 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-2a8b1558 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-notification[data-v-2a8b1558] {\n /** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */\n --alignment-height: var(--lh-1);\n display: flex;\n align-items: flex-start;\n width: 100%;\n padding: var(--s-4);\n background-color: var(--c-white);\n border-radius: 0.25rem;\n box-shadow: 0 0.0625rem 0.25rem 0.0625rem rgba(0, 0, 0, 0.08);\n transition-timing-function: var(--t-func);\n transition-duration: var(--t-duration);\n transition-property: background-color;\n}\n.or-notification.is-size-default[data-v-2a8b1558] {\n max-width: 48rem;\n}\n.or-notification.is-size-inline[data-v-2a8b1558] {\n max-width: 27.875rem;\n}\n.or-notification a[data-v-2a8b1558] {\n font-weight: var(--fw-2);\n color: var(--c-black);\n}\n.or-notification--icon[data-v-2a8b1558] {\n display: flex;\n align-items: center;\n min-height: var(--alignment-height);\n margin-right: var(--s-4);\n}\n.or-notification--icon[data-v-2a8b1558] .or-icon {\n font-size: 1rem;\n}\n.or-notification--content[data-v-2a8b1558] {\n flex: 1 1 100%;\n word-break: break-word;\n}\n.or-notification--close[data-v-2a8b1558] {\n display: flex;\n height: var(--alignment-height);\n margin-left: 1rem;\n}\n.or-notification--close[data-v-2a8b1558] .or-icon {\n font-size: 1rem !important;\n}\n.or-notification.is-type-info[data-v-2a8b1558] {\n background-color: var(--c-primary-lighten-45);\n}\n.or-notification.is-type-info a[data-v-2a8b1558] {\n color: var(--c-primary);\n}\n.or-notification.is-type-error[data-v-2a8b1558] {\n background-color: var(--c-error-lighten-45);\n}\n.or-notification.is-type-error a[data-v-2a8b1558] {\n color: var(--c-error);\n}\n.or-notification.is-type-warning[data-v-2a8b1558] {\n background-color: var(--c-warning-lighten-45);\n}\n.or-notification.is-type-warning a[data-v-2a8b1558] {\n color: var(--c-warning);\n}\n.or-notification.is-type-success[data-v-2a8b1558] {\n background-color: var(--c-success-lighten-45);\n}\n.or-notification.is-type-success a[data-v-2a8b1558] {\n color: var(--c-success);\n}\n[data-theme=dark] .or-notification .or-icon[data-v-2a8b1558] {\n color: var(--c-neutral-1);\n}\n[data-theme=dark] .or-notification.is-type-info[data-v-2a8b1558] {\n background-color: var(--c-primary-darken-45);\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-info a[data-v-2a8b1558] {\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-error[data-v-2a8b1558] {\n background-color: var(--c-error-darken-45);\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-error a[data-v-2a8b1558] {\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-warning[data-v-2a8b1558] {\n background-color: var(--c-warning-darken-45);\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-warning a[data-v-2a8b1558] {\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-success[data-v-2a8b1558] {\n background-color: var(--c-success-darken-45);\n color: var(--c-neutral-6);\n}\n[data-theme=dark] .or-notification.is-type-success a[data-v-2a8b1558] {\n color: var(--c-neutral-6);\n}";
|
|
108
108
|
styleInject(css_248z);
|
|
109
109
|
|
|
110
110
|
script.render = render;
|
|
@@ -45,7 +45,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45
45
|
}, null, 6 /* CLASS, STYLE */);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
var css_248z$2 = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-374502f0 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-374502f0 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-374502f0 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-374502f0 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes wave-374502f0 {\n0% {\n transform: translateX(-100%);\n}\n100% {\n transform: translateX(100%);\n}\n}\n.or-skeleton[data-v-374502f0] {\n overflow: hidden;\n position: relative;\n padding: 0;\n background: #f6f8fd;\n border: 0;\n}\n.or-skeleton.is-animated[data-v-374502f0]::before {\n content: \"\";\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(90.14deg, #f6f8fd 0.1%, #fff 49.98%, #f6f8fd 99.06%);\n animation: wave-374502f0 1.5s linear 0.5s infinite;\n}\n.or-skeleton-circle[data-v-374502f0] {\n border-radius: 9999px !important;\n}";
|
|
48
|
+
var css_248z$2 = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-374502f0 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-374502f0 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-374502f0 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-374502f0 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes wave-374502f0 {\n0% {\n transform: translateX(-100%);\n}\n100% {\n transform: translateX(100%);\n}\n}\n.or-skeleton[data-v-374502f0] {\n overflow: hidden;\n position: relative;\n padding: 0;\n background: #f6f8fd;\n border: 0;\n}\n.or-skeleton.is-animated[data-v-374502f0]::before {\n content: \"\";\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(90.14deg, #f6f8fd 0.1%, #fff 49.98%, #f6f8fd 99.06%);\n animation: wave-374502f0 1.5s linear 0.5s infinite;\n}\n[data-theme=dark] .or-skeleton[data-v-374502f0] {\n background: var(--c-neutral-3);\n}\n[data-theme=dark] .or-skeleton.is-animated[data-v-374502f0]::before {\n background: linear-gradient(90.14deg, var(--c-neutral-3) 0.1%, var(--c-neutral-2) 49.98%, var(--c-neutral-3) 99.06%);\n}\n.or-skeleton-circle[data-v-374502f0] {\n border-radius: 9999px !important;\n}";
|
|
49
49
|
styleInject(css_248z$2);
|
|
50
50
|
|
|
51
51
|
script$2.render = render$2;
|
|
@@ -96,7 +96,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
96
96
|
}, null, 6 /* CLASS, STYLE */);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
var css_248z$1 = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-043cb99c {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-043cb99c {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-043cb99c {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-043cb99c {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes wave-043cb99c {\n0% {\n transform: translateX(-100%);\n}\n100% {\n transform: translateX(100%);\n}\n}\n.or-skeleton[data-v-043cb99c] {\n overflow: hidden;\n position: relative;\n padding: 0;\n background: #f6f8fd;\n border: 0;\n}\n.or-skeleton.is-animated[data-v-043cb99c]::before {\n content: \"\";\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(90.14deg, #f6f8fd 0.1%, #fff 49.98%, #f6f8fd 99.06%);\n animation: wave-043cb99c 1.5s linear 0.5s infinite;\n}\n.or-skeleton-rect[data-v-043cb99c] {\n border-radius: var(--s-2);\n}";
|
|
99
|
+
var css_248z$1 = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-043cb99c {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-043cb99c {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-043cb99c {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-043cb99c {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes wave-043cb99c {\n0% {\n transform: translateX(-100%);\n}\n100% {\n transform: translateX(100%);\n}\n}\n.or-skeleton[data-v-043cb99c] {\n overflow: hidden;\n position: relative;\n padding: 0;\n background: #f6f8fd;\n border: 0;\n}\n.or-skeleton.is-animated[data-v-043cb99c]::before {\n content: \"\";\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(90.14deg, #f6f8fd 0.1%, #fff 49.98%, #f6f8fd 99.06%);\n animation: wave-043cb99c 1.5s linear 0.5s infinite;\n}\n[data-theme=dark] .or-skeleton[data-v-043cb99c] {\n background: var(--c-neutral-3);\n}\n[data-theme=dark] .or-skeleton.is-animated[data-v-043cb99c]::before {\n background: linear-gradient(90.14deg, var(--c-neutral-3) 0.1%, var(--c-neutral-2) 49.98%, var(--c-neutral-3) 99.06%);\n}\n.or-skeleton-rect[data-v-043cb99c] {\n border-radius: var(--s-2);\n}";
|
|
100
100
|
styleInject(css_248z$1);
|
|
101
101
|
|
|
102
102
|
script$1.render = render$1;
|
|
@@ -170,7 +170,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
170
|
}), 128 /* KEYED_FRAGMENT */))], 4 /* STYLE */);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-10564f36 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-10564f36 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-10564f36 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-10564f36 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes wave-10564f36 {\n0% {\n transform: translateX(-100%);\n}\n100% {\n transform: translateX(100%);\n}\n}\n.or-skeleton[data-v-10564f36] {\n overflow: hidden;\n position: relative;\n padding: 0;\n background: #f6f8fd;\n border: 0;\n}\n.or-skeleton.is-animated[data-v-10564f36]::before {\n content: \"\";\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(90.14deg, #f6f8fd 0.1%, #fff 49.98%, #f6f8fd 99.06%);\n animation: wave-10564f36 1.5s linear 0.5s infinite;\n}\n.or-skeleton-text-root[data-v-10564f36] {\n height: auto;\n display: flex;\n flex-direction: column;\n}\n.or-skeleton-text-root .or-skeleton-text[data-v-10564f36] {\n border-radius: var(--s-2);\n width: 100%;\n}\n.or-skeleton-text-root .or-skeleton-text-headline-1[data-v-10564f36] {\n height: 1.5rem;\n margin: 0.145rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-headline-2[data-v-10564f36] {\n height: 1.25rem;\n margin: 0.03125rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-headline-3[data-v-10564f36] {\n height: 1rem;\n margin: 0.25rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-body-1[data-v-10564f36] {\n height: 1rem;\n margin: 0.25rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-body-2[data-v-10564f36] {\n height: 0.875rem;\n margin: 0.21875rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-button[data-v-10564f36] {\n height: 0.875rem;\n margin: 0.1875rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-caption[data-v-10564f36] {\n height: 0.75rem;\n margin: 0.1875rem 0;\n}";
|
|
173
|
+
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-10564f36 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-10564f36 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-10564f36 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-10564f36 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes wave-10564f36 {\n0% {\n transform: translateX(-100%);\n}\n100% {\n transform: translateX(100%);\n}\n}\n.or-skeleton[data-v-10564f36] {\n overflow: hidden;\n position: relative;\n padding: 0;\n background: #f6f8fd;\n border: 0;\n}\n.or-skeleton.is-animated[data-v-10564f36]::before {\n content: \"\";\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: linear-gradient(90.14deg, #f6f8fd 0.1%, #fff 49.98%, #f6f8fd 99.06%);\n animation: wave-10564f36 1.5s linear 0.5s infinite;\n}\n[data-theme=dark] .or-skeleton[data-v-10564f36] {\n background: var(--c-neutral-3);\n}\n[data-theme=dark] .or-skeleton.is-animated[data-v-10564f36]::before {\n background: linear-gradient(90.14deg, var(--c-neutral-3) 0.1%, var(--c-neutral-2) 49.98%, var(--c-neutral-3) 99.06%);\n}\n.or-skeleton-text-root[data-v-10564f36] {\n height: auto;\n display: flex;\n flex-direction: column;\n}\n.or-skeleton-text-root .or-skeleton-text[data-v-10564f36] {\n border-radius: var(--s-2);\n width: 100%;\n}\n.or-skeleton-text-root .or-skeleton-text-headline-1[data-v-10564f36] {\n height: 1.5rem;\n margin: 0.145rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-headline-2[data-v-10564f36] {\n height: 1.25rem;\n margin: 0.03125rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-headline-3[data-v-10564f36] {\n height: 1rem;\n margin: 0.25rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-body-1[data-v-10564f36] {\n height: 1rem;\n margin: 0.25rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-body-2[data-v-10564f36] {\n height: 0.875rem;\n margin: 0.21875rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-button[data-v-10564f36] {\n height: 0.875rem;\n margin: 0.1875rem 0;\n}\n.or-skeleton-text-root .or-skeleton-text-caption[data-v-10564f36] {\n height: 0.75rem;\n margin: 0.1875rem 0;\n}";
|
|
174
174
|
styleInject(css_248z);
|
|
175
175
|
|
|
176
176
|
script.render = render;
|
|
@@ -12,7 +12,7 @@ export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-a3a855e8
|
|
|
12
12
|
export { s as OrCheckbox } from '../OrCheckbox-8d8887ea.js';
|
|
13
13
|
export { s as OrCheckboxV3 } from '../OrCheckbox-a8388252.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from '../OrChips-d6227d21.js';
|
|
15
|
-
export { s as OrCode, O as OrCodeLanguages } from '../OrCode-
|
|
15
|
+
export { s as OrCode, O as OrCodeLanguages } from '../OrCode-fe49ca8e.js';
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-37a52e8f.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-9a149e6b.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-45796889.js';
|
|
@@ -48,8 +48,8 @@ export { s as OrMenuItemV3 } from '../OrMenuItem-de91aded.js';
|
|
|
48
48
|
export { s as OrMenuV3 } from '../OrMenu-b4e8136c.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-35ee1b1e.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from '../OrModal-153310f7.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from '../OrModal-
|
|
52
|
-
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from '../OrModal-f9f2279b.js';
|
|
52
|
+
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../OrNotification-2d77aae4.js';
|
|
53
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';
|
|
@@ -70,7 +70,7 @@ export { s as OrSelectV3 } from '../OrSelect-96bf9b63.js';
|
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
71
71
|
export { s as OrSidebarV3 } from '../OrSidebar-64703ef6.js';
|
|
72
72
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-506fc73c.js';
|
|
73
|
-
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-
|
|
73
|
+
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-0546754d.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-858576e2.js';
|
|
76
76
|
export { s as OrSortHeaderV3 } from '../OrSortHeader-f66dcb37.js';
|
|
@@ -113,6 +113,8 @@ import '@codemirror/lang-css';
|
|
|
113
113
|
import '@codemirror/lang-json';
|
|
114
114
|
import '@codemirror/lang-javascript';
|
|
115
115
|
import '@codemirror/lang-markdown';
|
|
116
|
+
import '@codemirror/language';
|
|
117
|
+
import '@lezer/highlight';
|
|
116
118
|
import '../px-to-rem-0b26b83e.js';
|
|
117
119
|
import '../dom-7a41831b.js';
|
|
118
120
|
import '@vueuse/math';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { s as OrCode, O as OrCodeLanguages } from '../../OrCode-
|
|
1
|
+
export { s as OrCode, O as OrCodeLanguages } from '../../OrCode-fe49ca8e.js';
|
|
2
2
|
import '@codemirror/state';
|
|
3
3
|
import '@codemirror/view';
|
|
4
4
|
import '@codemirror/commands';
|
|
5
|
-
import '@vueuse/core';
|
|
6
5
|
import 'codemirror';
|
|
6
|
+
import '@vueuse/core';
|
|
7
7
|
import 'lodash';
|
|
8
8
|
import 'vue-demi';
|
|
9
9
|
import '../../OrIconButton-b668558a.js';
|
|
@@ -28,3 +28,5 @@ import '@codemirror/lang-css';
|
|
|
28
28
|
import '@codemirror/lang-json';
|
|
29
29
|
import '@codemirror/lang-javascript';
|
|
30
30
|
import '@codemirror/lang-markdown';
|
|
31
|
+
import '@codemirror/language';
|
|
32
|
+
import '@lezer/highlight';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Extension } from '@codemirror/state';
|
|
2
|
+
import { HighlightStyle } from '@codemirror/language';
|
|
3
|
+
export declare const color: {
|
|
4
|
+
chalky: string;
|
|
5
|
+
coral: string;
|
|
6
|
+
cyan: string;
|
|
7
|
+
invalid: string;
|
|
8
|
+
ivory: string;
|
|
9
|
+
stone: string;
|
|
10
|
+
malibu: string;
|
|
11
|
+
sage: string;
|
|
12
|
+
whiskey: string;
|
|
13
|
+
violet: string;
|
|
14
|
+
darkBackground: string;
|
|
15
|
+
highlightBackground: string;
|
|
16
|
+
background: string;
|
|
17
|
+
tooltipBackground: string;
|
|
18
|
+
selection: string;
|
|
19
|
+
cursor: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const orCodeTheme: Extension;
|
|
22
|
+
export declare const orCodeHighlightStyle: HighlightStyle;
|
|
23
|
+
declare const theme: Extension;
|
|
24
|
+
export default theme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../../OrNotification-
|
|
1
|
+
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from '../../OrNotification-2d77aae4.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrIcon-ed3e10b4.js';
|
|
4
4
|
import 'lodash';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-
|
|
1
|
+
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-0546754d.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../px-to-rem-0b26b83e.js';
|
|
4
4
|
import 'lodash';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-a3a855e8.
|
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-8d8887ea.js';
|
|
13
13
|
export { s as OrCheckboxV3 } from './OrCheckbox-a8388252.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from './OrChips-d6227d21.js';
|
|
15
|
-
export { s as OrCode, O as OrCodeLanguages } from './OrCode-
|
|
15
|
+
export { s as OrCode, O as OrCodeLanguages } from './OrCode-fe49ca8e.js';
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-37a52e8f.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-9a149e6b.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-45796889.js';
|
|
@@ -48,8 +48,8 @@ export { s as OrMenuItemV3 } from './OrMenuItem-de91aded.js';
|
|
|
48
48
|
export { s as OrMenuV3 } from './OrMenu-b4e8136c.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-35ee1b1e.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-153310f7.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
52
|
-
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-f9f2279b.js';
|
|
52
|
+
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-2d77aae4.js';
|
|
53
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';
|
|
@@ -70,7 +70,7 @@ export { s as OrSelectV3 } from './OrSelect-96bf9b63.js';
|
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
71
|
export { s as OrSidebarV3 } from './OrSidebar-64703ef6.js';
|
|
72
72
|
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-506fc73c.js';
|
|
73
|
-
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-
|
|
73
|
+
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-0546754d.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-858576e2.js';
|
|
76
76
|
export { s as OrSortHeaderV3 } from './OrSortHeader-f66dcb37.js';
|
|
@@ -119,6 +119,8 @@ import '@codemirror/lang-css';
|
|
|
119
119
|
import '@codemirror/lang-json';
|
|
120
120
|
import '@codemirror/lang-javascript';
|
|
121
121
|
import '@codemirror/lang-markdown';
|
|
122
|
+
import '@codemirror/language';
|
|
123
|
+
import '@lezer/highlight';
|
|
122
124
|
import './px-to-rem-0b26b83e.js';
|
|
123
125
|
import './dom-7a41831b.js';
|
|
124
126
|
import '@vueuse/math';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.75.0",
|
|
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.
|
|
41
|
+
"@onereach/styles": "^2.36.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -124,5 +124,6 @@
|
|
|
124
124
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
125
125
|
},
|
|
126
126
|
"./package.json": "./package.json"
|
|
127
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"gitHead": "dc6ec1f1e93966eafc70213852eddc7aa4697608"
|
|
128
129
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<or-icon-button
|
|
25
25
|
v-if="isShowingFullscreen"
|
|
26
26
|
icon="fullscreen"
|
|
27
|
-
icon-color="neutral-
|
|
27
|
+
icon-color="neutral-4"
|
|
28
28
|
class="fullscreen-button"
|
|
29
29
|
@click="toggleFullscreen(true)"
|
|
30
30
|
/>
|
|
@@ -85,8 +85,8 @@ import { Language, LanguageSupport } from '@codemirror/language';
|
|
|
85
85
|
import { EditorState, Extension, Transaction } from '@codemirror/state';
|
|
86
86
|
import { ViewUpdate, keymap } from '@codemirror/view';
|
|
87
87
|
import { indentWithTab } from '@codemirror/commands';
|
|
88
|
-
import { useElementHover } from '@vueuse/core';
|
|
89
88
|
import { basicSetup, EditorView } from 'codemirror';
|
|
89
|
+
import { useElementHover } from '@vueuse/core';
|
|
90
90
|
import _ from 'lodash';
|
|
91
91
|
import { defineComponent, PropType, ref, Ref } from 'vue-demi';
|
|
92
92
|
import { OrIconButton } from '../or-button-v2';
|
|
@@ -97,6 +97,7 @@ import { OrModal } from '../or-modal';
|
|
|
97
97
|
import { OrTeleport } from '../or-teleport';
|
|
98
98
|
import { OrCodeLanguages } from './constants';
|
|
99
99
|
import languages from './lang';
|
|
100
|
+
import orCodeTheme from './theme';
|
|
100
101
|
|
|
101
102
|
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
102
103
|
|
|
@@ -185,6 +186,7 @@ export default defineComponent({
|
|
|
185
186
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
186
187
|
|
|
187
188
|
setup(props, { emit }) {
|
|
189
|
+
// editor config
|
|
188
190
|
const root = ref<HTMLDivElement>();
|
|
189
191
|
const target = ref<HTMLDivElement>();
|
|
190
192
|
const fullscreenTarget = ref<HTMLDivElement>();
|
|
@@ -225,8 +227,9 @@ export default defineComponent({
|
|
|
225
227
|
},
|
|
226
228
|
localExtensions(): Extension[] {
|
|
227
229
|
const { allowDrop, allowPaste, lineWrapping } = this;
|
|
230
|
+
|
|
228
231
|
const ext = _.compact([
|
|
229
|
-
|
|
232
|
+
orCodeTheme,
|
|
230
233
|
EditorView.baseTheme({}),
|
|
231
234
|
// locale settings
|
|
232
235
|
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
@@ -259,11 +262,10 @@ export default defineComponent({
|
|
|
259
262
|
// line wrapping
|
|
260
263
|
lineWrapping ? EditorView.lineWrapping : undefined,
|
|
261
264
|
keymap.of([indentWithTab]),
|
|
265
|
+
...this.extensions,
|
|
262
266
|
]) as Extension[];
|
|
263
267
|
|
|
264
|
-
|
|
265
|
-
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
266
|
-
return ext;
|
|
268
|
+
return [...ext];
|
|
267
269
|
},
|
|
268
270
|
isShowingError(): boolean {
|
|
269
271
|
return !!this.error && this.isInvalid;
|