@onereach/ui-components 4.10.0 → 4.10.1-beta.2921.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 (63) hide show
  1. package/dist/bundled/v2/components/OrCode/OrCode.js +4 -3792
  2. package/dist/bundled/v2/components/OrCode/index.js +4 -2
  3. package/dist/bundled/v2/components/OrCode/lang.js +24 -3
  4. package/dist/bundled/v2/components/OrCode/theme.js +1 -1
  5. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +333 -0
  6. package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +169 -0
  7. package/dist/bundled/v2/components/OrCodeV3/index.d.ts +2 -0
  8. package/dist/bundled/v2/components/OrCodeV3/index.js +49 -0
  9. package/dist/bundled/v2/components/OrCodeV3/props.d.ts +8 -0
  10. package/dist/bundled/v2/components/OrCodeV3/props.js +11 -0
  11. package/dist/bundled/v2/components/OrCodeV3/styles.d.ts +2 -0
  12. package/dist/bundled/v2/components/OrCodeV3/styles.js +10 -0
  13. package/dist/bundled/v2/components/OrModalV3/OrModal.js +2 -2
  14. package/dist/bundled/v2/components/index.d.ts +1 -0
  15. package/dist/bundled/v2/components/index.js +8 -3
  16. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-46846a36.js → v2/index-576b3dec.js} +3 -235
  17. package/dist/bundled/v2/{index-cf2c3c27.js → index-6a13fa4e.js} +1 -1
  18. package/dist/bundled/v2/{lang-0fb8f78b.js → index-eba9b646.js} +2 -22
  19. package/dist/bundled/v2/index.js +9 -4
  20. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-1812e6e4.js +237 -0
  21. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-84a512fb.js +200 -0
  22. package/dist/bundled/v3/components/OrCode/OrCode.js +7 -5
  23. package/dist/bundled/v3/components/OrCode/index.js +5 -3
  24. package/dist/bundled/v3/components/OrCode/lang.js +24 -3
  25. package/dist/bundled/v3/components/OrCode/theme.js +1 -1
  26. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +142 -0
  27. package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +119 -0
  28. package/dist/bundled/v3/components/OrCodeV3/index.d.ts +2 -0
  29. package/dist/bundled/v3/components/OrCodeV3/index.js +60 -0
  30. package/dist/bundled/v3/components/OrCodeV3/props.d.ts +8 -0
  31. package/dist/bundled/v3/components/OrCodeV3/props.js +11 -0
  32. package/dist/bundled/v3/components/OrCodeV3/styles.d.ts +2 -0
  33. package/dist/bundled/v3/components/OrCodeV3/styles.js +10 -0
  34. package/dist/bundled/v3/components/index.d.ts +1 -0
  35. package/dist/bundled/v3/components/index.js +10 -4
  36. package/dist/bundled/v3/index-576b3dec.js +3794 -0
  37. package/dist/bundled/v3/{index-cf2c3c27.js → index-6a13fa4e.js} +1 -1
  38. package/dist/bundled/v3/{lang-0fb8f78b.js → index-eba9b646.js} +2 -22
  39. package/dist/bundled/v3/index.js +16 -10
  40. package/dist/esm/v2/OrCode-ad718022.js +327 -0
  41. package/dist/esm/v2/components/index.d.ts +1 -0
  42. package/dist/esm/v2/components/index.js +2 -1
  43. package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +169 -0
  44. package/dist/esm/v2/components/or-code-v3/index.d.ts +2 -0
  45. package/dist/esm/v2/components/or-code-v3/index.js +35 -0
  46. package/dist/esm/v2/components/or-code-v3/props.d.ts +8 -0
  47. package/dist/esm/v2/components/or-code-v3/styles.d.ts +2 -0
  48. package/dist/esm/v2/index.js +1 -0
  49. package/dist/esm/v3/OrCode-8ccd5dc7.js +301 -0
  50. package/dist/esm/v3/components/index.d.ts +1 -0
  51. package/dist/esm/v3/components/index.js +2 -1
  52. package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +119 -0
  53. package/dist/esm/v3/components/or-code-v3/index.d.ts +2 -0
  54. package/dist/esm/v3/components/or-code-v3/index.js +33 -0
  55. package/dist/esm/v3/components/or-code-v3/props.d.ts +8 -0
  56. package/dist/esm/v3/components/or-code-v3/styles.d.ts +2 -0
  57. package/dist/esm/v3/index.js +1 -0
  58. package/package.json +2 -3
  59. package/src/components/index.ts +1 -0
  60. package/src/components/or-code-v3/OrCode.vue +338 -0
  61. package/src/components/or-code-v3/index.ts +2 -0
  62. package/src/components/or-code-v3/props.ts +8 -0
  63. package/src/components/or-code-v3/styles.ts +12 -0
@@ -1,7 +1,8 @@
1
1
  export { default as OrCode } from './OrCode.js';
2
2
  export { OrCodeLanguages } from './constants.js';
3
- import '../../index-cf2c3c27.js';
4
- import '../../lang-0fb8f78b.js';
3
+ import '../../index-6a13fa4e.js';
4
+ import '../../index-576b3dec.js';
5
+ import '../../index-eba9b646.js';
5
6
  import '../../index-c92e2839.js';
6
7
  import '../../index-ec92055d.js';
7
8
  import 'vue-demi';
@@ -9,6 +10,7 @@ import '../OrTeleport/OrTeleport.js';
9
10
  import 'vue';
10
11
  import '../OrTeleport/constants.js';
11
12
  import '../../normalize-component-6e8e3d80.js';
13
+ import './lang.js';
12
14
  import './theme.js';
13
15
  import '../OrIconButtonV2/OrIconButton.js';
14
16
  import '../OrTooltip/OrTooltip.js';
@@ -1,3 +1,24 @@
1
- export { C as CSS, H as HTML, J as JS, e as JSON, M as MD, T as TS, l as default } from '../../lang-0fb8f78b.js';
2
- import './constants.js';
3
- import '../../index-cf2c3c27.js';
1
+ import { a as javascript, c as css, h as html, j as json, m as markdown } from '../../index-eba9b646.js';
2
+ import { OrCodeLanguages } from './constants.js';
3
+ import '../../index-6a13fa4e.js';
4
+
5
+ const JS = javascript({
6
+ typescript: false
7
+ });
8
+ const TS = javascript({
9
+ typescript: true
10
+ });
11
+ const CSS = css();
12
+ const HTML = html();
13
+ const JSON = json();
14
+ const MD = markdown();
15
+ var languages = {
16
+ [OrCodeLanguages.JS]: JS,
17
+ [OrCodeLanguages.TS]: TS,
18
+ [OrCodeLanguages.CSS]: CSS,
19
+ [OrCodeLanguages.HTML]: HTML,
20
+ [OrCodeLanguages.JSON]: JSON,
21
+ [OrCodeLanguages.MD]: MD
22
+ };
23
+
24
+ export { CSS, HTML, JS, JSON, MD, TS, languages as default };
@@ -1,4 +1,4 @@
1
- import { E as EditorView, ar as HighlightStyle, aa as tags, L as syntaxHighlighting } from '../../index-cf2c3c27.js';
1
+ import { E as EditorView, _ as HighlightStyle, $ as tags, M as syntaxHighlighting } from '../../index-6a13fa4e.js';
2
2
 
3
3
  // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
4
4
  const chalky = 'var(--c-warning-darken-20)',
@@ -0,0 +1,333 @@
1
+ import { b as basicSetup, i as indentWithTab } from '../../index-576b3dec.js';
2
+ import { m as markdown, j as json, a as javascript, c as css, h as html } from '../../index-eba9b646.js';
3
+ import { E as EditorView, k as keymap, a as EditorState } from '../../index-6a13fa4e.js';
4
+ import { defineComponent, ref, computed, reactive, watch, onMounted, onUnmounted } from 'vue-demi';
5
+ import { CodeLanguage } from './props.js';
6
+ import { Code, CodeControl } from './styles.js';
7
+ import __vue_component__$1 from '../OrErrorV3/OrError.js';
8
+ import __vue_component__$2 from '../OrHintV3/OrHint.js';
9
+ import __vue_component__$3 from '../OrIconButtonV3/OrIconButton.js';
10
+ import __vue_component__$4 from '../OrInputBoxV3/OrInputBox.js';
11
+ import __vue_component__$5 from '../OrLabelV3/OrLabel.js';
12
+ import __vue_component__$6 from '../OrModalV3/OrModal.js';
13
+ import { useIdAttribute } from '../../hooks/useIdAttribute.js';
14
+ import { useControlAttributes } from '../../hooks/useControlAttributes.js';
15
+ import { useValidationAttributes } from '../../hooks/useValidationAttributes.js';
16
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
17
+ import '../OrErrorV3/styles.js';
18
+ import '../OrHintV3/styles.js';
19
+ import '../OrIconButtonV3/props.js';
20
+ import '../OrIconV3/props.js';
21
+ import '../OrIconButtonV3/styles.js';
22
+ import '../OrIconV3/OrIcon.js';
23
+ import '../OrIconV3/styles.js';
24
+ import '../OrTooltipV3/OrTooltip.js';
25
+ import '../OrTooltipV3/styles.js';
26
+ import '../OrPopoverV3/OrPopover.js';
27
+ import '../../floating-ui.dom.esm-83eba816.js';
28
+ import '../../index-c92e2839.js';
29
+ import '../../index-ec92055d.js';
30
+ import '../OrPopoverV3/props.js';
31
+ import '../OrPopoverV3/styles.js';
32
+ import '../OrBottomSheetV3/OrBottomSheet.js';
33
+ import '../OrBottomSheetV3/props.js';
34
+ import '../OrBottomSheetV3/styles.js';
35
+ import '../OrOverlayV3/OrOverlay.js';
36
+ import '../OrOverlayV3/styles.js';
37
+ import '../OrTeleportV3/OrTeleport.js';
38
+ import 'vue';
39
+ import '../../hooks/useElevation.js';
40
+ import '../../utils/isVisible.js';
41
+ import '../../hooks/usePopoverState.js';
42
+ import '../../hooks/useResponsive/useResponsive.js';
43
+ import '../OrInputBoxV3/props.js';
44
+ import '../OrInputBoxV3/styles.js';
45
+ import '../OrLabelV3/props.js';
46
+ import '../OrLabelV3/styles.js';
47
+ import '../OrModalV3/props.js';
48
+ import '../OrModalV3/styles.js';
49
+
50
+ var script = defineComponent({
51
+ name: 'OrCode',
52
+ components: {
53
+ OrError: __vue_component__$1,
54
+ OrHint: __vue_component__$2,
55
+ OrIconButton: __vue_component__$3,
56
+ OrInputBox: __vue_component__$4,
57
+ OrLabel: __vue_component__$5,
58
+ OrModal: __vue_component__$6
59
+ },
60
+ model: {
61
+ prop: 'modelValue',
62
+ event: 'update:modelValue'
63
+ },
64
+ props: {
65
+ modelValue: {
66
+ type: String,
67
+ default: undefined
68
+ },
69
+ language: {
70
+ type: String,
71
+ default: CodeLanguage.JS
72
+ },
73
+ extensions: {
74
+ type: Array,
75
+ default: () => [basicSetup]
76
+ },
77
+ label: {
78
+ type: String,
79
+ default: undefined
80
+ },
81
+ hint: {
82
+ type: String,
83
+ default: undefined
84
+ },
85
+ error: {
86
+ type: [String, Boolean],
87
+ default: undefined
88
+ },
89
+ required: {
90
+ type: Boolean,
91
+ default: false
92
+ },
93
+ readonly: {
94
+ type: Boolean,
95
+ default: false
96
+ },
97
+ disabled: {
98
+ type: Boolean,
99
+ default: false
100
+ }
101
+ },
102
+ emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
103
+ expose: ['root', 'focus', 'blur'],
104
+ setup(props, context) {
105
+ // Refs
106
+ const root = ref();
107
+ const control = ref();
108
+ const fullscreenControl = ref();
109
+ const modal = ref();
110
+ // Styles
111
+ const rootStyles = computed(() => ['or-code-v3', ...Code]);
112
+ const controlStyles = computed(() => [...CodeControl]);
113
+ // State
114
+ const controlAttributes = reactive({
115
+ id: useIdAttribute(),
116
+ ...useControlAttributes(),
117
+ ...useValidationAttributes()
118
+ });
119
+ const proxyModelValue = computed({
120
+ get: () => props.modelValue,
121
+ set: value => {
122
+ context.emit('update:modelValue', value);
123
+ }
124
+ });
125
+ const proxyLanguage = computed(() => {
126
+ switch (props.language) {
127
+ case CodeLanguage.HTML:
128
+ return html();
129
+ case CodeLanguage.CSS:
130
+ return css();
131
+ case CodeLanguage.JS:
132
+ return javascript();
133
+ case CodeLanguage.TS:
134
+ return javascript({
135
+ typescript: true
136
+ });
137
+ case CodeLanguage.JSON:
138
+ return json();
139
+ case CodeLanguage.MD:
140
+ return markdown();
141
+ }
142
+ });
143
+ // Methods
144
+ function focus() {
145
+ var _a;
146
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
147
+ }
148
+ function blur() {
149
+ var _a;
150
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
151
+ }
152
+ // #region Codemirror
153
+ const editorView = new EditorView({
154
+ dispatch: transaction => {
155
+ editorView.update([transaction]);
156
+ proxyModelValue.value = String(editorView.state.doc);
157
+ }
158
+ });
159
+ const extensions = computed(() => [...props.extensions, proxyLanguage.value, keymap.of([indentWithTab]), EditorView.editable.of(!props.readonly && !props.disabled), EditorView.domEventHandlers({
160
+ keydown: event => {
161
+ context.emit('keydown', event);
162
+ },
163
+ keyup: event => {
164
+ context.emit('keyup', event);
165
+ },
166
+ focus: event => {
167
+ context.emit('focus', event);
168
+ },
169
+ blur: event => {
170
+ context.emit('blur', event);
171
+ }
172
+ }), EditorView.baseTheme({})]);
173
+ watch([proxyModelValue, extensions], _ref => {
174
+ let [modelValue = '', extensions] = _ref;
175
+ const {
176
+ selection
177
+ } = editorView.state;
178
+ editorView.setState(EditorState.create({
179
+ doc: modelValue,
180
+ extensions,
181
+ selection: selection.ranges.some(range => range.to > modelValue.length) ? {
182
+ anchor: modelValue.length
183
+ } : selection
184
+ }));
185
+ }, {
186
+ immediate: true
187
+ });
188
+ // #endregion
189
+ // Effects
190
+ watch(() => {
191
+ var _a;
192
+ return (_a = modal.value) === null || _a === void 0 ? void 0 : _a.state;
193
+ }, value => {
194
+ setTimeout(() => {
195
+ var _a, _b;
196
+ if (value === 'open') {
197
+ (_a = fullscreenControl.value) === null || _a === void 0 ? void 0 : _a.append(editorView.dom);
198
+ } else {
199
+ (_b = control.value) === null || _b === void 0 ? void 0 : _b.append(editorView.dom);
200
+ }
201
+ });
202
+ });
203
+ // Lifecycle
204
+ onMounted(() => {
205
+ var _a;
206
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.append(editorView.dom);
207
+ });
208
+ onUnmounted(() => {
209
+ editorView.destroy();
210
+ });
211
+ return {
212
+ root,
213
+ control,
214
+ fullscreenControl,
215
+ modal,
216
+ rootStyles,
217
+ controlStyles,
218
+ controlAttributes,
219
+ proxyModelValue,
220
+ proxyLanguage,
221
+ focus,
222
+ blur
223
+ };
224
+ }
225
+ });
226
+
227
+ /* script */
228
+ const __vue_script__ = script;
229
+
230
+ /* template */
231
+ var __vue_render__ = function () {
232
+ var _vm = this;
233
+ var _h = _vm.$createElement;
234
+ var _c = _vm._self._c || _h;
235
+ return _c('div', {
236
+ ref: "root",
237
+ class: _vm.rootStyles
238
+ }, [_vm.label ? [_c('OrLabel', {
239
+ attrs: {
240
+ "control-id": _vm.controlAttributes.id,
241
+ "variant": 'input',
242
+ "required": _vm.required,
243
+ "disabled": _vm.disabled
244
+ },
245
+ scopedSlots: _vm._u([{
246
+ key: "addon",
247
+ fn: function () {
248
+ return [_c('div', {
249
+ class: ['layout-row', 'gap-xs']
250
+ }, [_vm._t("addon"), _vm._v(" "), _c('OrIconButton', {
251
+ attrs: {
252
+ "icon": 'fullscreen'
253
+ },
254
+ on: {
255
+ "click": function ($event) {
256
+ $event.stopPropagation();
257
+ return _vm.modal.open();
258
+ }
259
+ }
260
+ })], 2)];
261
+ },
262
+ proxy: true
263
+ }], null, true)
264
+ }, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
265
+ attrs: {
266
+ "size": 'm',
267
+ "invalid": !!_vm.error,
268
+ "readonly": _vm.readonly,
269
+ "disabled": _vm.disabled
270
+ }
271
+ }, [_c('div', {
272
+ ref: "control",
273
+ class: _vm.controlStyles
274
+ })]), _vm._v(" "), _c('div', {
275
+ directives: [{
276
+ name: "show",
277
+ rawName: "v-show",
278
+ value: !_vm.error,
279
+ expression: "!error"
280
+ }],
281
+ class: ['contents']
282
+ }, [_vm.hint ? [_c('OrHint', {
283
+ attrs: {
284
+ "disabled": _vm.disabled
285
+ }
286
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()], 2), _vm._v(" "), _c('div', {
287
+ directives: [{
288
+ name: "show",
289
+ rawName: "v-show",
290
+ value: typeof _vm.error === 'string',
291
+ expression: "typeof error === 'string'"
292
+ }],
293
+ class: ['contents']
294
+ }, [_c('OrError', {
295
+ attrs: {
296
+ "disabled": _vm.disabled
297
+ }
298
+ }, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])], 1), _vm._v(" "), _c('OrModal', {
299
+ ref: "modal"
300
+ }, [_c('OrInputBox', {
301
+ attrs: {
302
+ "size": 'm',
303
+ "invalid": !!_vm.error,
304
+ "readonly": _vm.readonly,
305
+ "disabled": _vm.disabled
306
+ }
307
+ }, [_c('div', {
308
+ ref: "fullscreenControl",
309
+ class: _vm.controlStyles
310
+ })])], 1)], 2);
311
+ };
312
+ var __vue_staticRenderFns__ = [];
313
+
314
+ /* style */
315
+ const __vue_inject_styles__ = undefined;
316
+ /* scoped */
317
+ const __vue_scope_id__ = undefined;
318
+ /* module identifier */
319
+ const __vue_module_identifier__ = undefined;
320
+ /* functional template */
321
+ const __vue_is_functional_template__ = false;
322
+ /* style inject */
323
+
324
+ /* style inject SSR */
325
+
326
+ /* style inject shadow dom */
327
+
328
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
329
+ render: __vue_render__,
330
+ staticRenderFns: __vue_staticRenderFns__
331
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
332
+
333
+ export { __vue_component__ as default };
@@ -0,0 +1,169 @@
1
+ import { Extension } from '@codemirror/state';
2
+ import { PropType } from 'vue-demi';
3
+ import { CodeLanguage } from './props';
4
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
+ control: import("@vue/composition-api").Ref<HTMLElement | undefined>;
7
+ fullscreenControl: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
+ modal: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
9
+ [x: string]: ((...args: any[]) => any) | null;
10
+ } | string[], {} & {}, {
11
+ [x: number]: string;
12
+ } | {}, true> | undefined>;
13
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
14
+ controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
15
+ controlAttributes: {
16
+ required: boolean | undefined;
17
+ minlength: number | undefined;
18
+ maxlength: number | undefined;
19
+ pattern: string | undefined;
20
+ min: number | undefined;
21
+ max: number | undefined;
22
+ step: number | undefined;
23
+ readonly: boolean | undefined;
24
+ disabled: boolean | undefined;
25
+ 'force-state': string | undefined;
26
+ id: string | undefined;
27
+ };
28
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
29
+ proxyLanguage: import("@vue/composition-api").ComputedRef<import("@codemirror/language").LanguageSupport>;
30
+ focus: () => void;
31
+ blur: () => void;
32
+ }> & import("@vue/composition-api").Data, {}, {}, {
33
+ modelValue: {
34
+ type: StringConstructor;
35
+ default: undefined;
36
+ };
37
+ language: {
38
+ type: PropType<CodeLanguage>;
39
+ default: CodeLanguage;
40
+ };
41
+ extensions: {
42
+ type: PropType<Extension[]>;
43
+ default: () => Extension[];
44
+ };
45
+ label: {
46
+ type: StringConstructor;
47
+ default: undefined;
48
+ };
49
+ hint: {
50
+ type: StringConstructor;
51
+ default: undefined;
52
+ };
53
+ error: {
54
+ type: (BooleanConstructor | StringConstructor)[];
55
+ default: undefined;
56
+ };
57
+ required: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ readonly: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ disabled: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ }, import("@vue/composition-api").ExtractPropTypes<{
70
+ modelValue: {
71
+ type: StringConstructor;
72
+ default: undefined;
73
+ };
74
+ language: {
75
+ type: PropType<CodeLanguage>;
76
+ default: CodeLanguage;
77
+ };
78
+ extensions: {
79
+ type: PropType<Extension[]>;
80
+ default: () => Extension[];
81
+ };
82
+ label: {
83
+ type: StringConstructor;
84
+ default: undefined;
85
+ };
86
+ hint: {
87
+ type: StringConstructor;
88
+ default: undefined;
89
+ };
90
+ error: {
91
+ type: (BooleanConstructor | StringConstructor)[];
92
+ default: undefined;
93
+ };
94
+ required: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ readonly: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
102
+ disabled: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
107
+ modelValue: string;
108
+ language: CodeLanguage;
109
+ extensions: Extension[];
110
+ label: string;
111
+ hint: string;
112
+ error: string | boolean;
113
+ required: boolean;
114
+ readonly: boolean;
115
+ disabled: boolean;
116
+ } & {} & {
117
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
118
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
119
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
120
+ control: import("@vue/composition-api").Ref<HTMLElement | undefined>;
121
+ fullscreenControl: import("@vue/composition-api").Ref<HTMLElement | undefined>;
122
+ modal: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
123
+ [x: string]: ((...args: any[]) => any) | null;
124
+ } | string[], {} & {}, {
125
+ [x: number]: string;
126
+ } | {}, true> | undefined>;
127
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
128
+ controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
129
+ controlAttributes: {
130
+ required: boolean | undefined;
131
+ minlength: number | undefined;
132
+ maxlength: number | undefined;
133
+ pattern: string | undefined;
134
+ min: number | undefined;
135
+ max: number | undefined;
136
+ step: number | undefined;
137
+ readonly: boolean | undefined;
138
+ disabled: boolean | undefined;
139
+ 'force-state': string | undefined;
140
+ id: string | undefined;
141
+ };
142
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
143
+ proxyLanguage: import("@vue/composition-api").ComputedRef<import("@codemirror/language").LanguageSupport>;
144
+ focus: () => void;
145
+ blur: () => void;
146
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
147
+ modelValue: string;
148
+ language: CodeLanguage;
149
+ extensions: Extension[];
150
+ label: string;
151
+ hint: string;
152
+ error: string | boolean;
153
+ required: boolean;
154
+ readonly: boolean;
155
+ disabled: boolean;
156
+ } & {} & {
157
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
158
+ }, {
159
+ modelValue: string;
160
+ language: CodeLanguage;
161
+ extensions: Extension[];
162
+ label: string;
163
+ hint: string;
164
+ error: string | boolean;
165
+ required: boolean;
166
+ readonly: boolean;
167
+ disabled: boolean;
168
+ }, true>);
169
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OrCodeV3 } from './OrCode.vue';
2
+ export * from './props';
@@ -0,0 +1,49 @@
1
+ export { default as OrCodeV3 } from './OrCode.js';
2
+ export { CodeLanguage } from './props.js';
3
+ import '../../index-576b3dec.js';
4
+ import '../../index-6a13fa4e.js';
5
+ import '../../index-eba9b646.js';
6
+ import 'vue-demi';
7
+ import './styles.js';
8
+ import '../OrErrorV3/OrError.js';
9
+ import '../OrErrorV3/styles.js';
10
+ import '../../normalize-component-6e8e3d80.js';
11
+ import '../OrHintV3/OrHint.js';
12
+ import '../OrHintV3/styles.js';
13
+ import '../OrIconButtonV3/OrIconButton.js';
14
+ import '../OrIconButtonV3/props.js';
15
+ import '../OrIconV3/props.js';
16
+ import '../OrIconButtonV3/styles.js';
17
+ import '../OrIconV3/OrIcon.js';
18
+ import '../OrIconV3/styles.js';
19
+ import '../OrTooltipV3/OrTooltip.js';
20
+ import '../OrTooltipV3/styles.js';
21
+ import '../OrPopoverV3/OrPopover.js';
22
+ import '../../floating-ui.dom.esm-83eba816.js';
23
+ import '../../index-c92e2839.js';
24
+ import '../../index-ec92055d.js';
25
+ import '../OrPopoverV3/props.js';
26
+ import '../OrPopoverV3/styles.js';
27
+ import '../OrBottomSheetV3/OrBottomSheet.js';
28
+ import '../OrBottomSheetV3/props.js';
29
+ import '../OrBottomSheetV3/styles.js';
30
+ import '../OrOverlayV3/OrOverlay.js';
31
+ import '../OrOverlayV3/styles.js';
32
+ import '../OrTeleportV3/OrTeleport.js';
33
+ import 'vue';
34
+ import '../../hooks/useElevation.js';
35
+ import '../../utils/isVisible.js';
36
+ import '../../hooks/usePopoverState.js';
37
+ import '../../hooks/useResponsive/useResponsive.js';
38
+ import '../OrInputBoxV3/OrInputBox.js';
39
+ import '../OrInputBoxV3/props.js';
40
+ import '../OrInputBoxV3/styles.js';
41
+ import '../OrLabelV3/OrLabel.js';
42
+ import '../OrLabelV3/props.js';
43
+ import '../OrLabelV3/styles.js';
44
+ import '../OrModalV3/OrModal.js';
45
+ import '../OrModalV3/props.js';
46
+ import '../OrModalV3/styles.js';
47
+ import '../../hooks/useIdAttribute.js';
48
+ import '../../hooks/useControlAttributes.js';
49
+ import '../../hooks/useValidationAttributes.js';
@@ -0,0 +1,8 @@
1
+ export declare enum CodeLanguage {
2
+ HTML = "html",
3
+ CSS = "css",
4
+ JS = "js",
5
+ TS = "ts",
6
+ JSON = "json",
7
+ MD = "md"
8
+ }
@@ -0,0 +1,11 @@
1
+ var CodeLanguage;
2
+ (function (CodeLanguage) {
3
+ CodeLanguage["HTML"] = "html";
4
+ CodeLanguage["CSS"] = "css";
5
+ CodeLanguage["JS"] = "js";
6
+ CodeLanguage["TS"] = "ts";
7
+ CodeLanguage["JSON"] = "json";
8
+ CodeLanguage["MD"] = "md";
9
+ })(CodeLanguage || (CodeLanguage = {}));
10
+
11
+ export { CodeLanguage };
@@ -0,0 +1,2 @@
1
+ export declare const Code: string[];
2
+ export declare const CodeControl: string[];
@@ -0,0 +1,10 @@
1
+ const Code = [
2
+ // Layout
3
+ 'layout-column',
4
+ // Spacing
5
+ 'gap-xs'];
6
+ const CodeControl = [
7
+ // Layout
8
+ 'grow'];
9
+
10
+ export { Code, CodeControl };
@@ -21,12 +21,12 @@ import '../OrPopoverV3/styles.js';
21
21
  import '../OrBottomSheetV3/OrBottomSheet.js';
22
22
  import '../OrBottomSheetV3/props.js';
23
23
  import '../OrBottomSheetV3/styles.js';
24
+ import '../OrOverlayV3/styles.js';
24
25
  import '../OrTeleportV3/OrTeleport.js';
25
26
  import 'vue';
26
- import '../../hooks/useResponsive/useResponsive.js';
27
27
  import '../../hooks/useElevation.js';
28
28
  import '../../utils/isVisible.js';
29
- import '../OrOverlayV3/styles.js';
29
+ import '../../hooks/useResponsive/useResponsive.js';
30
30
 
31
31
  const ModalContent = [
32
32
  // Layout
@@ -15,6 +15,7 @@ export * from './or-checkbox-tree-v3';
15
15
  export * from './or-checkbox-v3';
16
16
  export * from './or-chips';
17
17
  export * from './or-code';
18
+ export * from './or-code-v3';
18
19
  export * from './or-collapse';
19
20
  export * from './or-color-picker';
20
21
  export * from './or-combined-input-v3';