@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.
Files changed (48) hide show
  1. package/dist/bundled/v2/{OrCode-cdde94a4.js → OrCode-5b43ba50.js} +178 -14
  2. package/dist/bundled/v2/{OrModal-5f094323.js → OrModal-d845da2d.js} +4 -4
  3. package/dist/bundled/v2/{OrNotification-76491313.js → OrNotification-209972e7.js} +2 -2
  4. package/dist/bundled/v2/{OrSkeletonText-feb27b8c.js → OrSkeletonText-1bf08dbc.js} +3 -3
  5. package/dist/bundled/v2/components/index.js +4 -4
  6. package/dist/bundled/v2/components/or-code/index.js +1 -1
  7. package/dist/bundled/v2/components/or-code/theme.d.ts +24 -0
  8. package/dist/bundled/v2/components/or-modal-v3/index.js +1 -1
  9. package/dist/bundled/v2/components/or-notification/index.js +1 -1
  10. package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
  11. package/dist/bundled/v2/index.js +5 -5
  12. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-1fbe8517.js → OrCode.vue_vue_type_script_lang-7723c4a8.js} +176 -11
  13. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-92339e0f.js → OrModal.vue_vue_type_script_lang-3f3ce339.js} +4 -4
  14. package/dist/bundled/v3/components/index.js +2 -2
  15. package/dist/bundled/v3/components/or-code/index.js +1 -1
  16. package/dist/bundled/v3/components/or-code/theme.d.ts +24 -0
  17. package/dist/bundled/v3/components/or-modal-v3/index.js +1 -1
  18. package/dist/bundled/v3/index.js +10 -10
  19. package/dist/esm/v2/{OrCode-9a2cdc0c.js → OrCode-930709c5.js} +182 -16
  20. package/dist/esm/v2/{OrModal-407f3ac7.js → OrModal-370cfc3b.js} +4 -4
  21. package/dist/esm/v2/{OrNotification-f905da81.js → OrNotification-0b22c94c.js} +2 -2
  22. package/dist/esm/v2/{OrSkeletonText-38aef640.js → OrSkeletonText-6a6f285d.js} +3 -3
  23. package/dist/esm/v2/components/index.js +6 -4
  24. package/dist/esm/v2/components/or-code/index.js +4 -2
  25. package/dist/esm/v2/components/or-code/theme.d.ts +24 -0
  26. package/dist/esm/v2/components/or-modal-v3/index.js +1 -1
  27. package/dist/esm/v2/components/or-notification/index.js +1 -1
  28. package/dist/esm/v2/components/or-skeleton/index.js +1 -1
  29. package/dist/esm/v2/index.js +6 -4
  30. package/dist/esm/v3/{OrCode-033d49f4.js → OrCode-fe49ca8e.js} +180 -14
  31. package/dist/esm/v3/{OrModal-17c3a1cb.js → OrModal-f9f2279b.js} +4 -4
  32. package/dist/esm/v3/{OrNotification-b90cf406.js → OrNotification-2d77aae4.js} +1 -1
  33. package/dist/esm/v3/{OrSkeletonText-2b1610ce.js → OrSkeletonText-0546754d.js} +3 -3
  34. package/dist/esm/v3/components/index.js +6 -4
  35. package/dist/esm/v3/components/or-code/index.js +4 -2
  36. package/dist/esm/v3/components/or-code/theme.d.ts +24 -0
  37. package/dist/esm/v3/components/or-modal-v3/index.js +1 -1
  38. package/dist/esm/v3/components/or-notification/index.js +1 -1
  39. package/dist/esm/v3/components/or-skeleton/index.js +1 -1
  40. package/dist/esm/v3/index.js +6 -4
  41. package/package.json +4 -3
  42. package/src/components/or-code/OrCode.vue +8 -6
  43. package/src/components/or-code/theme.ts +213 -0
  44. package/src/components/or-modal-v3/OrModal.stories3.ts +0 -19
  45. package/src/components/or-modal-v3/styles.ts +4 -1
  46. package/src/components/or-notification/OrNotification.vue +26 -1
  47. package/src/components/or-skeleton/styles.scss +18 -3
  48. 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 './OrIconButton.vue_rollup-plugin-vue_styles.0-3846c424.js';
@@ -17,6 +17,8 @@ import { css } from '@codemirror/lang-css';
17
17
  import { json } from '@codemirror/lang-json';
18
18
  import { javascript } from '@codemirror/lang-javascript';
19
19
  import { markdown } from '@codemirror/lang-markdown';
20
+ import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
21
+ import { tags } from '@lezer/highlight';
20
22
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
21
23
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
22
24
 
@@ -49,6 +51,173 @@ var languages = {
49
51
  [OrCodeLanguages.MD]: MD
50
52
  };
51
53
 
54
+ // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
55
+ const chalky = 'var(--c-warning-darken-20)',
56
+ coral = 'var(--c-error)',
57
+ cyan = '#56b6c2',
58
+ invalid = 'var(--c-white)',
59
+ ivory = 'var(--c-neutral-6)',
60
+ stone = 'var(--c-neutral-5)',
61
+ // Brightened compared to original to increase contrast
62
+ malibu = '#61afef',
63
+ sage = 'var(--c-success)',
64
+ whiskey = 'var(--c-warning-darken-5)',
65
+ violet = '#c678dd',
66
+ darkBackground = 'var(--c-neutral-1)',
67
+ highlightBackground = 'var(--c-neutral-2)',
68
+ background = 'var(--c-neutral-1)',
69
+ tooltipBackground = 'var(--c-neutral-2)',
70
+ selection = 'var(--c-neutral-3)',
71
+ cursor = 'var(--c-primary)';
72
+ /// The editor theme styles for One Dark.
73
+ const orCodeTheme = EditorView.theme({
74
+ '&': {
75
+ color: ivory,
76
+ backgroundColor: background
77
+ },
78
+ '.cm-content': {
79
+ caretColor: cursor
80
+ },
81
+ '.cm-button': {
82
+ background: highlightBackground,
83
+ color: 'var(--c-neutral-6)',
84
+ border: 0,
85
+ borderRadius: 'var(--s-2)'
86
+ },
87
+ '.cm-panel.cm-search input[type=checkbox]': {
88
+ display: 'inline-block',
89
+ verticalAlign: 'middle'
90
+ },
91
+ '.cm-cursor, .cm-dropCursor': {
92
+ borderLeftColor: cursor
93
+ },
94
+ '&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
95
+ backgroundColor: selection
96
+ },
97
+ '.cm-panels': {
98
+ backgroundColor: darkBackground,
99
+ color: ivory
100
+ },
101
+ '.cm-panels.cm-panels-top': {
102
+ borderBottom: '2px solid var(--c-neutral-2)'
103
+ },
104
+ '.cm-panels.cm-panels-bottom': {
105
+ borderTop: '2px solid var(--c-neutral-2)'
106
+ },
107
+ '.cm-searchMatch': {
108
+ backgroundColor: 'var(--c-neutral-1)',
109
+ outline: '1px solid var(--c-neutral-2)'
110
+ },
111
+ '.cm-searchMatch.cm-searchMatch-selected': {
112
+ backgroundColor: '#6199ff2f'
113
+ },
114
+ '.cm-activeLine': {
115
+ backgroundColor: '#6699ff0b'
116
+ },
117
+ '.cm-selectionMatch': {
118
+ backgroundColor: '#aafe661a'
119
+ },
120
+ '&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket': {
121
+ backgroundColor: '#bad0f847'
122
+ },
123
+ '.cm-gutters': {
124
+ backgroundColor: background,
125
+ color: stone,
126
+ border: 'none'
127
+ },
128
+ '.cm-activeLineGutter': {
129
+ backgroundColor: highlightBackground
130
+ },
131
+ '.cm-foldPlaceholder': {
132
+ backgroundColor: 'transparent',
133
+ border: 'none',
134
+ color: '#ddd'
135
+ },
136
+ '.cm-tooltip': {
137
+ border: 'none',
138
+ backgroundColor: tooltipBackground
139
+ },
140
+ '.cm-tooltip .cm-tooltip-arrow:before': {
141
+ borderTopColor: 'transparent',
142
+ borderBottomColor: 'transparent'
143
+ },
144
+ '.cm-tooltip .cm-tooltip-arrow:after': {
145
+ borderTopColor: tooltipBackground,
146
+ borderBottomColor: tooltipBackground
147
+ },
148
+ '.cm-tooltip-autocomplete': {
149
+ '& > ul > li[aria-selected]': {
150
+ backgroundColor: highlightBackground,
151
+ color: ivory
152
+ }
153
+ },
154
+ '.cm-textfield': {
155
+ outline: 'none',
156
+ background: background,
157
+ color: 'var(--c-neutral-6)',
158
+ backgroundColor: 'var(--c-neutral-1)',
159
+ border: '1px solid var(--c-neutral-2)',
160
+ borderRadius: 'var(--s-2)'
161
+ }
162
+ }, {
163
+ dark: true
164
+ });
165
+ /// The highlighting style for code in the One Dark theme.
166
+ const orCodeHighlightStyle = HighlightStyle.define([{
167
+ tag: tags.keyword,
168
+ color: violet
169
+ }, {
170
+ tag: [tags.name, tags.deleted, tags.character, tags.propertyName, tags.macroName],
171
+ color: coral
172
+ }, {
173
+ tag: [tags.function(tags.variableName), tags.labelName],
174
+ color: malibu
175
+ }, {
176
+ tag: [tags.color, tags.constant(tags.name), tags.standard(tags.name)],
177
+ color: whiskey
178
+ }, {
179
+ tag: [tags.definition(tags.name), tags.separator],
180
+ color: ivory
181
+ }, {
182
+ tag: [tags.typeName, tags.className, tags.number, tags.changed, tags.annotation, tags.modifier, tags.self, tags.namespace],
183
+ color: chalky
184
+ }, {
185
+ tag: [tags.operator, tags.operatorKeyword, tags.url, tags.escape, tags.regexp, tags.link, tags.special(tags.string)],
186
+ color: cyan
187
+ }, {
188
+ tag: [tags.meta, tags.comment],
189
+ color: stone
190
+ }, {
191
+ tag: tags.strong,
192
+ fontWeight: 'bold'
193
+ }, {
194
+ tag: tags.emphasis,
195
+ fontStyle: 'italic'
196
+ }, {
197
+ tag: tags.strikethrough,
198
+ textDecoration: 'line-through'
199
+ }, {
200
+ tag: tags.link,
201
+ color: stone,
202
+ textDecoration: 'underline'
203
+ }, {
204
+ tag: tags.heading,
205
+ fontWeight: 'bold',
206
+ color: coral
207
+ }, {
208
+ tag: [tags.atom, tags.bool, tags.special(tags.variableName)],
209
+ color: whiskey
210
+ }, {
211
+ tag: [tags.processingInstruction, tags.string, tags.inserted],
212
+ color: sage
213
+ }, {
214
+ tag: tags.invalid,
215
+ color: invalid
216
+ }]);
217
+ /// Extension to enable the One Dark theme (both the editor theme and
218
+ /// the highlight style).
219
+ const theme = [orCodeTheme, syntaxHighlighting(orCodeHighlightStyle)];
220
+
52
221
  //partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
53
222
  var script = defineComponent({
54
223
  name: 'OrCode',
@@ -132,11 +301,12 @@ var script = defineComponent({
132
301
  setup(props, {
133
302
  emit
134
303
  }) {
304
+ // editor config
135
305
  const root = ref();
136
306
  const target = ref();
137
307
  const fullscreenTarget = ref();
138
308
  const isHovered = useElementHover(root);
139
- const editor = new EditorView({
309
+ const editor = new EditorView$1({
140
310
  state: EditorState.create({
141
311
  doc: props.modelValue
142
312
  }),
@@ -173,21 +343,19 @@ var script = defineComponent({
173
343
  allowPaste,
174
344
  lineWrapping
175
345
  } = this;
176
- const ext = _.compact([
177
- // Toggle light/dark mode
178
- EditorView.baseTheme({}),
346
+ const ext = _.compact([theme, EditorView$1.baseTheme({}),
179
347
  // locale settings
180
348
  this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
181
349
  // Parser language setting
182
350
  this.localLanguage,
183
351
  // Editable option
184
- EditorView.editable.of(!this.isReadonly),
352
+ EditorView$1.editable.of(!this.isReadonly),
185
353
  // Focus and blur listener
186
- EditorView.updateListener.of(viewUpdate => {
354
+ EditorView$1.updateListener.of(viewUpdate => {
187
355
  if (viewUpdate.focusChanged) {
188
356
  viewUpdate.view.hasFocus ? this.$emit('focus') : this.$emit('blur', viewUpdate.state.doc.toString());
189
357
  }
190
- }), EditorView.domEventHandlers({
358
+ }), EditorView$1.domEventHandlers({
191
359
  drop(event) {
192
360
  if (!allowDrop) {
193
361
  event.preventDefault();
@@ -202,10 +370,8 @@ var script = defineComponent({
202
370
  }
203
371
  }),
204
372
  // line wrapping
205
- lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
206
- // Append Extensions (such as basic-setup)
207
- if (this.extensions.length !== 0) _.merge(ext, this.extensions);
208
- return ext;
373
+ lineWrapping ? EditorView$1.lineWrapping : undefined, keymap.of([indentWithTab]), ...this.extensions]);
374
+ return [...ext];
209
375
  },
210
376
  isShowingError() {
211
377
  return !!this.error && this.isInvalid;
@@ -263,7 +429,7 @@ var script = defineComponent({
263
429
  }
264
430
  });
265
431
 
266
- var css_248z = "@keyframes spinAround-data-v-2056db5f{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2056db5f{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-2056db5f]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-2056db5f]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-2056db5f],.or-code .footer .or-code-hint[data-v-2056db5f]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-2056db5f]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-2056db5f]{margin-left:auto}.header .actions[data-v-2056db5f]:not(.is-visible){display:none}.or-code-editor[data-v-2056db5f]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-2056db5f]{border-color:var(--c-error)}.or-code-editor[data-v-2056db5f]> *{width:100%;height:100%}.or-code[data-v-2056db5f],.or-modal[data-v-2056db5f] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-2056db5f],.or-modal[data-v-2056db5f] .content .or-code-editor{flex-grow:1;text-align:left!important}";
432
+ var css_248z = "@keyframes spinAround-data-v-0e7eeac0{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-0e7eeac0{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-0e7eeac0]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-0e7eeac0]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-0e7eeac0],.or-code .footer .or-code-hint[data-v-0e7eeac0]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-0e7eeac0]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-0e7eeac0]{margin-left:auto}.header .actions[data-v-0e7eeac0]:not(.is-visible){display:none}.or-code-editor[data-v-0e7eeac0]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-0e7eeac0]{border-color:var(--c-error)}.or-code-editor[data-v-0e7eeac0]> *{width:100%;height:100%}.or-code[data-v-0e7eeac0],.or-modal[data-v-0e7eeac0] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-0e7eeac0],.or-modal[data-v-0e7eeac0] .content .or-code-editor{flex-grow:1;text-align:left!important}";
267
433
  styleInject(css_248z);
268
434
 
269
435
  /* script */
@@ -299,7 +465,7 @@ var __vue_render__ = function () {
299
465
  staticClass: "fullscreen-button",
300
466
  attrs: {
301
467
  "icon": "fullscreen",
302
- "icon-color": "neutral-3"
468
+ "icon-color": "neutral-4"
303
469
  },
304
470
  on: {
305
471
  "click": function ($event) {
@@ -367,7 +533,7 @@ var __vue_staticRenderFns__ = [];
367
533
  /* style */
368
534
  const __vue_inject_styles__ = undefined;
369
535
  /* scoped */
370
- const __vue_scope_id__ = "data-v-2056db5f";
536
+ const __vue_scope_id__ = "data-v-0e7eeac0";
371
537
  /* module identifier */
372
538
  const __vue_module_identifier__ = undefined;
373
539
  /* functional template */
@@ -14,7 +14,7 @@ const ModalRoot = [
14
14
  // Layout
15
15
  'layout-column',
16
16
  // Box
17
- 'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
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
@@ -80,7 +80,7 @@ var script = defineComponent({
80
80
  }
81
81
  });
82
82
 
83
- var css_248z = "@keyframes spinAround-data-v-7bc0e6b5{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-7bc0e6b5{from{opacity:1}to{opacity:0}}.or-notification[data-v-7bc0e6b5]{--alignment-height:var(--lh-1);display:flex;align-items:flex-start;width:100%;padding:var(--s-4);background-color:var(--c-white);border-radius:.25rem;box-shadow:0 .0625rem .25rem .0625rem rgba(0,0,0,.08);transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:background-color}.or-notification.is-size-default[data-v-7bc0e6b5]{max-width:48rem}.or-notification.is-size-inline[data-v-7bc0e6b5]{max-width:27.875rem}.or-notification a[data-v-7bc0e6b5]{font-weight:var(--fw-2);color:var(--c-black)}.or-notification--icon[data-v-7bc0e6b5]{display:flex;align-items:center;min-height:var(--alignment-height);margin-right:var(--s-4)}.or-notification--icon[data-v-7bc0e6b5] .or-icon{font-size:1rem}.or-notification--content[data-v-7bc0e6b5]{flex:1 1 100%;word-break:break-word}.or-notification--close[data-v-7bc0e6b5]{display:flex;height:var(--alignment-height);margin-left:1rem}.or-notification--close[data-v-7bc0e6b5] .or-icon{font-size:1rem!important}.or-notification.is-type-info[data-v-7bc0e6b5]{background-color:var(--c-primary-lighten-45)}.or-notification.is-type-info a[data-v-7bc0e6b5]{color:var(--c-primary)}.or-notification.is-type-error[data-v-7bc0e6b5]{background-color:var(--c-error-lighten-45)}.or-notification.is-type-error a[data-v-7bc0e6b5]{color:var(--c-error)}.or-notification.is-type-warning[data-v-7bc0e6b5]{background-color:var(--c-warning-lighten-45)}.or-notification.is-type-warning a[data-v-7bc0e6b5]{color:var(--c-warning)}.or-notification.is-type-success[data-v-7bc0e6b5]{background-color:var(--c-success-lighten-45)}.or-notification.is-type-success a[data-v-7bc0e6b5]{color:var(--c-success)}";
83
+ var css_248z = "@keyframes spinAround-data-v-6284d461{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-6284d461{from{opacity:1}to{opacity:0}}.or-notification[data-v-6284d461]{--alignment-height:var(--lh-1);display:flex;align-items:flex-start;width:100%;padding:var(--s-4);background-color:var(--c-white);border-radius:.25rem;box-shadow:0 .0625rem .25rem .0625rem rgba(0,0,0,.08);transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:background-color}.or-notification.is-size-default[data-v-6284d461]{max-width:48rem}.or-notification.is-size-inline[data-v-6284d461]{max-width:27.875rem}.or-notification a[data-v-6284d461]{font-weight:var(--fw-2);color:var(--c-black)}.or-notification--icon[data-v-6284d461]{display:flex;align-items:center;min-height:var(--alignment-height);margin-right:var(--s-4)}.or-notification--icon[data-v-6284d461] .or-icon{font-size:1rem}.or-notification--content[data-v-6284d461]{flex:1 1 100%;word-break:break-word}.or-notification--close[data-v-6284d461]{display:flex;height:var(--alignment-height);margin-left:1rem}.or-notification--close[data-v-6284d461] .or-icon{font-size:1rem!important}.or-notification.is-type-info[data-v-6284d461]{background-color:var(--c-primary-lighten-45)}.or-notification.is-type-info a[data-v-6284d461]{color:var(--c-primary)}.or-notification.is-type-error[data-v-6284d461]{background-color:var(--c-error-lighten-45)}.or-notification.is-type-error a[data-v-6284d461]{color:var(--c-error)}.or-notification.is-type-warning[data-v-6284d461]{background-color:var(--c-warning-lighten-45)}.or-notification.is-type-warning a[data-v-6284d461]{color:var(--c-warning)}.or-notification.is-type-success[data-v-6284d461]{background-color:var(--c-success-lighten-45)}.or-notification.is-type-success a[data-v-6284d461]{color:var(--c-success)}[data-theme=dark] .or-notification .or-icon[data-v-6284d461]{color:var(--c-neutral-1)}[data-theme=dark] .or-notification.is-type-info[data-v-6284d461]{background-color:var(--c-primary-darken-45);color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-info a[data-v-6284d461]{color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-error[data-v-6284d461]{background-color:var(--c-error-darken-45);color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-error a[data-v-6284d461]{color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-warning[data-v-6284d461]{background-color:var(--c-warning-darken-45);color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-warning a[data-v-6284d461]{color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-success[data-v-6284d461]{background-color:var(--c-success-darken-45);color:var(--c-neutral-6)}[data-theme=dark] .or-notification.is-type-success a[data-v-6284d461]{color:var(--c-neutral-6)}";
84
84
  styleInject(css_248z);
85
85
 
86
86
  /* script */
@@ -122,7 +122,7 @@ var __vue_staticRenderFns__ = [];
122
122
  /* style */
123
123
  const __vue_inject_styles__ = undefined;
124
124
  /* scoped */
125
- const __vue_scope_id__ = "data-v-7bc0e6b5";
125
+ const __vue_scope_id__ = "data-v-6284d461";
126
126
  /* module identifier */
127
127
  const __vue_module_identifier__ = undefined;
128
128
  /* functional template */
@@ -38,7 +38,7 @@ var script$2 = defineComponent({
38
38
  }
39
39
  });
40
40
 
41
- var css_248z$2 = "@keyframes spinAround-data-v-2bdce55a{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2bdce55a{from{opacity:1}to{opacity:0}}@keyframes spinAround-data-v-2bdce55a{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2bdce55a{from{opacity:1}to{opacity:0}}@keyframes wave-data-v-2bdce55a{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.or-skeleton[data-v-2bdce55a]{overflow:hidden;position:relative;padding:0;background:#f6f8fd;border:0}.or-skeleton.is-animated[data-v-2bdce55a]::before{content:\"\";display:block;position:absolute;left:0;right:0;bottom:0;top:0;background:linear-gradient(90.14deg,#f6f8fd .1%,#fff 49.98%,#f6f8fd 99.06%);animation:wave-data-v-2bdce55a 1.5s linear .5s infinite}.or-skeleton-circle[data-v-2bdce55a]{border-radius:9999px!important}";
41
+ var css_248z$2 = "@keyframes spinAround-data-v-2bdce55a{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2bdce55a{from{opacity:1}to{opacity:0}}@keyframes spinAround-data-v-2bdce55a{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2bdce55a{from{opacity:1}to{opacity:0}}@keyframes wave-data-v-2bdce55a{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.or-skeleton[data-v-2bdce55a]{overflow:hidden;position:relative;padding:0;background:#f6f8fd;border:0}.or-skeleton.is-animated[data-v-2bdce55a]::before{content:\"\";display:block;position:absolute;left:0;right:0;bottom:0;top:0;background:linear-gradient(90.14deg,#f6f8fd .1%,#fff 49.98%,#f6f8fd 99.06%);animation:wave-data-v-2bdce55a 1.5s linear .5s infinite}[data-theme=dark] .or-skeleton[data-v-2bdce55a]{background:var(--c-neutral-3)}[data-theme=dark] .or-skeleton.is-animated[data-v-2bdce55a]::before{background:linear-gradient(90.14deg,var(--c-neutral-3) .1%,var(--c-neutral-2) 49.98%,var(--c-neutral-3) 99.06%)}.or-skeleton-circle[data-v-2bdce55a]{border-radius:9999px!important}";
42
42
  styleInject(css_248z$2);
43
43
 
44
44
  /* script */
@@ -112,7 +112,7 @@ var script$1 = defineComponent({
112
112
  }
113
113
  });
114
114
 
115
- var css_248z$1 = "@keyframes spinAround-data-v-570f1e07{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-570f1e07{from{opacity:1}to{opacity:0}}@keyframes spinAround-data-v-570f1e07{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-570f1e07{from{opacity:1}to{opacity:0}}@keyframes wave-data-v-570f1e07{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.or-skeleton[data-v-570f1e07]{overflow:hidden;position:relative;padding:0;background:#f6f8fd;border:0}.or-skeleton.is-animated[data-v-570f1e07]::before{content:\"\";display:block;position:absolute;left:0;right:0;bottom:0;top:0;background:linear-gradient(90.14deg,#f6f8fd .1%,#fff 49.98%,#f6f8fd 99.06%);animation:wave-data-v-570f1e07 1.5s linear .5s infinite}.or-skeleton-rect[data-v-570f1e07]{border-radius:var(--s-2)}";
115
+ var css_248z$1 = "@keyframes spinAround-data-v-570f1e07{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-570f1e07{from{opacity:1}to{opacity:0}}@keyframes spinAround-data-v-570f1e07{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-570f1e07{from{opacity:1}to{opacity:0}}@keyframes wave-data-v-570f1e07{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.or-skeleton[data-v-570f1e07]{overflow:hidden;position:relative;padding:0;background:#f6f8fd;border:0}.or-skeleton.is-animated[data-v-570f1e07]::before{content:\"\";display:block;position:absolute;left:0;right:0;bottom:0;top:0;background:linear-gradient(90.14deg,#f6f8fd .1%,#fff 49.98%,#f6f8fd 99.06%);animation:wave-data-v-570f1e07 1.5s linear .5s infinite}[data-theme=dark] .or-skeleton[data-v-570f1e07]{background:var(--c-neutral-3)}[data-theme=dark] .or-skeleton.is-animated[data-v-570f1e07]::before{background:linear-gradient(90.14deg,var(--c-neutral-3) .1%,var(--c-neutral-2) 49.98%,var(--c-neutral-3) 99.06%)}.or-skeleton-rect[data-v-570f1e07]{border-radius:var(--s-2)}";
116
116
  styleInject(css_248z$1);
117
117
 
118
118
  /* script */
@@ -204,7 +204,7 @@ var script = defineComponent({
204
204
  }
205
205
  });
206
206
 
207
- var css_248z = "@keyframes spinAround-data-v-1ddb38df{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-1ddb38df{from{opacity:1}to{opacity:0}}@keyframes spinAround-data-v-1ddb38df{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-1ddb38df{from{opacity:1}to{opacity:0}}@keyframes wave-data-v-1ddb38df{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.or-skeleton[data-v-1ddb38df]{overflow:hidden;position:relative;padding:0;background:#f6f8fd;border:0}.or-skeleton.is-animated[data-v-1ddb38df]::before{content:\"\";display:block;position:absolute;left:0;right:0;bottom:0;top:0;background:linear-gradient(90.14deg,#f6f8fd .1%,#fff 49.98%,#f6f8fd 99.06%);animation:wave-data-v-1ddb38df 1.5s linear .5s infinite}.or-skeleton-text-root[data-v-1ddb38df]{height:auto;display:flex;flex-direction:column}.or-skeleton-text-root .or-skeleton-text[data-v-1ddb38df]{border-radius:var(--s-2);width:100%}.or-skeleton-text-root .or-skeleton-text-headline-1[data-v-1ddb38df]{height:1.5rem;margin:.145rem 0}.or-skeleton-text-root .or-skeleton-text-headline-2[data-v-1ddb38df]{height:1.25rem;margin:.03125rem 0}.or-skeleton-text-root .or-skeleton-text-headline-3[data-v-1ddb38df]{height:1rem;margin:.25rem 0}.or-skeleton-text-root .or-skeleton-text-body-1[data-v-1ddb38df]{height:1rem;margin:.25rem 0}.or-skeleton-text-root .or-skeleton-text-body-2[data-v-1ddb38df]{height:.875rem;margin:.21875rem 0}.or-skeleton-text-root .or-skeleton-text-button[data-v-1ddb38df]{height:.875rem;margin:.1875rem 0}.or-skeleton-text-root .or-skeleton-text-caption[data-v-1ddb38df]{height:.75rem;margin:.1875rem 0}";
207
+ var css_248z = "@keyframes spinAround-data-v-1ddb38df{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-1ddb38df{from{opacity:1}to{opacity:0}}@keyframes spinAround-data-v-1ddb38df{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-1ddb38df{from{opacity:1}to{opacity:0}}@keyframes wave-data-v-1ddb38df{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.or-skeleton[data-v-1ddb38df]{overflow:hidden;position:relative;padding:0;background:#f6f8fd;border:0}.or-skeleton.is-animated[data-v-1ddb38df]::before{content:\"\";display:block;position:absolute;left:0;right:0;bottom:0;top:0;background:linear-gradient(90.14deg,#f6f8fd .1%,#fff 49.98%,#f6f8fd 99.06%);animation:wave-data-v-1ddb38df 1.5s linear .5s infinite}[data-theme=dark] .or-skeleton[data-v-1ddb38df]{background:var(--c-neutral-3)}[data-theme=dark] .or-skeleton.is-animated[data-v-1ddb38df]::before{background:linear-gradient(90.14deg,var(--c-neutral-3) .1%,var(--c-neutral-2) 49.98%,var(--c-neutral-3) 99.06%)}.or-skeleton-text-root[data-v-1ddb38df]{height:auto;display:flex;flex-direction:column}.or-skeleton-text-root .or-skeleton-text[data-v-1ddb38df]{border-radius:var(--s-2);width:100%}.or-skeleton-text-root .or-skeleton-text-headline-1[data-v-1ddb38df]{height:1.5rem;margin:.145rem 0}.or-skeleton-text-root .or-skeleton-text-headline-2[data-v-1ddb38df]{height:1.25rem;margin:.03125rem 0}.or-skeleton-text-root .or-skeleton-text-headline-3[data-v-1ddb38df]{height:1rem;margin:.25rem 0}.or-skeleton-text-root .or-skeleton-text-body-1[data-v-1ddb38df]{height:1rem;margin:.25rem 0}.or-skeleton-text-root .or-skeleton-text-body-2[data-v-1ddb38df]{height:.875rem;margin:.21875rem 0}.or-skeleton-text-root .or-skeleton-text-button[data-v-1ddb38df]{height:.875rem;margin:.1875rem 0}.or-skeleton-text-root .or-skeleton-text-caption[data-v-1ddb38df]{height:.75rem;margin:.1875rem 0}";
208
208
  styleInject(css_248z);
209
209
 
210
210
  /* script */
@@ -15,7 +15,7 @@ export { _ as OrCheckbox } from '../OrCheckbox-63d444f1.js';
15
15
  export { _ as OrCheckboxV3 } from '../OrCheckbox-49d7d6b1.js';
16
16
  export { _ as OrChip } from '../OrChips.vue_rollup-plugin-vue_styles.0-8d277377.js';
17
17
  export { _ as OrChips } from '../OrChips-7f85a4ba.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-9a2cdc0c.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-930709c5.js';
19
19
  export { _ as OrCollapse } from '../OrCollapse-50e3914c.js';
20
20
  export { _ 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-fa92b4fa.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-f7c58a78.js';
@@ -51,8 +51,8 @@ export { _ as OrMenuItemV3 } from '../OrMenuItem-4f810513.js';
51
51
  export { _ as OrMenuV3 } from '../OrMenu-bb6e93bc.js';
52
52
  export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-a101a230.js';
53
53
  export { _ as OrModal, O as OrModalSizes } from '../OrModal-a02dcd2a.js';
54
- export { M as ModalSize, _ as OrModalV3 } from '../OrModal-407f3ac7.js';
55
- export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-f905da81.js';
54
+ export { M as ModalSize, _ as OrModalV3 } from '../OrModal-370cfc3b.js';
55
+ export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-0b22c94c.js';
56
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';
@@ -73,7 +73,7 @@ export { _ as OrSelectV3 } from '../OrSelect-7ef80130.js';
73
73
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-feacf13a.js';
74
74
  export { _ as OrSidebarV3 } from '../OrSidebar-89711112.js';
75
75
  export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-81c77db0.js';
76
- export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-38aef640.js';
76
+ export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-6a6f285d.js';
77
77
  export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText-6ee72718.js';
78
78
  export { _ as OrSlider } from '../OrSlider-ded83b5c.js';
79
79
  export { _ as OrSortHeaderV3 } from '../OrSortHeader-ffe6bc57.js';
@@ -117,6 +117,8 @@ import '@codemirror/lang-css';
117
117
  import '@codemirror/lang-json';
118
118
  import '@codemirror/lang-javascript';
119
119
  import '@codemirror/lang-markdown';
120
+ import '@codemirror/language';
121
+ import '@lezer/highlight';
120
122
  import '../px-to-rem-0b26b83e.js';
121
123
  import '../dom-7a41831b.js';
122
124
  import '@vueuse/math';
@@ -1,9 +1,9 @@
1
- export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-9a2cdc0c.js';
1
+ export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-930709c5.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.vue_rollup-plugin-vue_styles.0-3846c424.js';
@@ -31,3 +31,5 @@ import '@codemirror/lang-css';
31
31
  import '@codemirror/lang-json';
32
32
  import '@codemirror/lang-javascript';
33
33
  import '@codemirror/lang-markdown';
34
+ import '@codemirror/language';
35
+ 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 { M as ModalSize, _ as OrModalV3 } from '../../OrModal-407f3ac7.js';
1
+ export { M as ModalSize, _ as OrModalV3 } from '../../OrModal-370cfc3b.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIconButton-fa9bff07.js';
4
4
  import '../../OrIcon-c434985a.js';
@@ -1,4 +1,4 @@
1
- export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../../OrNotification-f905da81.js';
1
+ export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../../OrNotification-0b22c94c.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIcon-dd72b52f.js';
4
4
  import 'lodash';
@@ -1,4 +1,4 @@
1
- export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-38aef640.js';
1
+ export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../../OrSkeletonText-6a6f285d.js';
2
2
  import 'vue-demi';
3
3
  import '../../px-to-rem-0b26b83e.js';
4
4
  import 'lodash';
@@ -15,7 +15,7 @@ export { _ as OrCheckbox } from './OrCheckbox-63d444f1.js';
15
15
  export { _ as OrCheckboxV3 } from './OrCheckbox-49d7d6b1.js';
16
16
  export { _ as OrChip } from './OrChips.vue_rollup-plugin-vue_styles.0-8d277377.js';
17
17
  export { _ as OrChips } from './OrChips-7f85a4ba.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from './OrCode-9a2cdc0c.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-930709c5.js';
19
19
  export { _ as OrCollapse } from './OrCollapse-50e3914c.js';
20
20
  export { _ 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-fa92b4fa.js';
21
21
  export { _ as OrConfirm } from './OrConfirm-f7c58a78.js';
@@ -51,8 +51,8 @@ export { _ as OrMenuItemV3 } from './OrMenuItem-4f810513.js';
51
51
  export { _ as OrMenuV3 } from './OrMenu-bb6e93bc.js';
52
52
  export { P as MenuPlacement, _ as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-a101a230.js';
53
53
  export { _ as OrModal, O as OrModalSizes } from './OrModal-a02dcd2a.js';
54
- export { M as ModalSize, _ as OrModalV3 } from './OrModal-407f3ac7.js';
55
- export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-f905da81.js';
54
+ export { M as ModalSize, _ as OrModalV3 } from './OrModal-370cfc3b.js';
55
+ export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from './OrNotification-0b22c94c.js';
56
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';
@@ -73,7 +73,7 @@ export { _ as OrSelectV3 } from './OrSelect-7ef80130.js';
73
73
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-feacf13a.js';
74
74
  export { _ as OrSidebarV3 } from './OrSidebar-89711112.js';
75
75
  export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-81c77db0.js';
76
- export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-38aef640.js';
76
+ export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-6a6f285d.js';
77
77
  export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-6ee72718.js';
78
78
  export { _ as OrSlider } from './OrSlider-ded83b5c.js';
79
79
  export { _ as OrSortHeaderV3 } from './OrSortHeader-ffe6bc57.js';
@@ -123,6 +123,8 @@ import '@codemirror/lang-css';
123
123
  import '@codemirror/lang-json';
124
124
  import '@codemirror/lang-javascript';
125
125
  import '@codemirror/lang-markdown';
126
+ import '@codemirror/language';
127
+ import '@lezer/highlight';
126
128
  import './px-to-rem-0b26b83e.js';
127
129
  import './dom-7a41831b.js';
128
130
  import '@vueuse/math';