@onereach/ui-components 2.73.0-beta.2258.0 → 2.73.1-beta.2282.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrButton-d45772c1.js → OrButton-0a9470c0.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-06ecb8e1.js → OrCardCollection-4b57513e.js} +2 -2
- package/dist/bundled/v2/{OrCode-0cf7596d.js → OrCode-fc6876ec.js} +12 -184
- package/dist/bundled/v2/{OrConfirm-8c0e957d.js → OrConfirm-69563c3e.js} +1 -1
- package/dist/bundled/v2/{OrLoader-864ef92a.js → OrLoader-cf28bfa6.js} +20 -5
- package/dist/bundled/v2/{OrNotification-2e2a1941.js → OrNotification-3909aaf2.js} +3 -3
- package/dist/bundled/v2/{OrPagination-daf25de2.js → OrPagination-b82e5900.js} +1 -1
- package/dist/bundled/v2/{OrSearch-bb87b34c.js → OrSearch-09fd004c.js} +2 -1
- package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-a2bc21b9.js} +155 -34
- package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
- package/dist/bundled/v2/{OrSkeletonText-2f1a3cc7.js → OrSkeletonText-242d22f3.js} +3 -3
- package/dist/bundled/v2/{OrSwitch-782d7b43.js → OrSwitch-51e30de3.js} +1 -1
- package/dist/bundled/v2/components/index.js +13 -12
- package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/bundled/v2/components/or-code/index.js +1 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-notification/index.js +1 -1
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
- package/dist/bundled/v2/index.js +14 -13
- package/dist/bundled/v2/{types-309b7b94.js → types-79817409.js} +1 -1
- package/dist/bundled/v3/{OrButton-a1448bfa.js → OrButton-a5b98ee2.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3b1e442b.js → OrButton.vue_vue_type_script_lang-e75f9a10.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e2980d04.js → OrCardCollection.vue_vue_type_script_lang-6ede60d7.js} +3 -3
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-df150e3b.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +8 -180
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-eb2bfce2.js → OrConfirm.vue_vue_type_script_lang-223c7be0.js} +2 -2
- package/dist/bundled/v3/{OrLoader-123ef8c4.js → OrLoader-663e062d.js} +5 -4
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-4c3c1ac9.js → OrLoader.vue_vue_type_script_lang-8fc03499.js} +18 -4
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f64827ef.js → OrPagination.vue_vue_type_script_lang-eed298ce.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-321907ec.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7f3f1a16.js +291 -0
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js +75 -0
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-31994be7.js → OrSwitch.vue_vue_type_script_lang-f6039c8f.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-6fe12712.js → OrToastContainer-4aa1281e.js} +1 -1
- package/dist/bundled/v3/components/index.js +13 -12
- package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/bundled/v3/components/or-code/index.js +1 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +48 -31
- package/dist/bundled/v3/{types-22fbf9d6.js → types-5272a258.js} +2 -2
- package/dist/esm/v2/{OrButton-66964360.js → OrButton-49f7f20b.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-251ab033.js → OrCardCollection-2873b5ef.js} +2 -2
- package/dist/esm/v2/{OrCode-e2ce05ea.js → OrCode-d4400b42.js} +12 -30
- package/dist/esm/v2/{OrConfirm-9dbdedd7.js → OrConfirm-5f620847.js} +1 -1
- package/dist/esm/v2/{OrLoader-76307488.js → OrLoader-8f1f3af1.js} +20 -5
- package/dist/esm/v2/{OrNotification-a49e76d3.js → OrNotification-a9231a83.js} +3 -3
- package/dist/esm/v2/{OrPagination-1adbcadb.js → OrPagination-f2dc37a1.js} +1 -1
- package/dist/esm/v2/{OrSearch-f42d588d.js → OrSearch-7411388b.js} +2 -1
- package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-27236fbd.js} +155 -34
- package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
- package/dist/esm/v2/{OrSkeletonText-24509efe.js → OrSkeletonText-cc94bdc9.js} +3 -3
- package/dist/esm/v2/{OrSwitch-8549219a.js → OrSwitch-10ecff82.js} +1 -1
- package/dist/esm/v2/components/index.js +13 -13
- package/dist/esm/v2/components/or-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v2/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/esm/v2/components/or-code/index.js +2 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v2/components/or-notification/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/esm/v2/components/or-skeleton/index.js +1 -1
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/index.js +13 -13
- package/dist/esm/v2/{types-1f95d710.js → types-b79f2065.js} +1 -1
- package/dist/esm/v3/{OrButton-c56998e7.js → OrButton-eab948fb.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-8b8e3745.js → OrCardCollection-96b359db.js} +2 -2
- package/dist/esm/v3/{OrCode-72688173.js → OrCode-5ed69c23.js} +9 -27
- package/dist/esm/v3/{OrConfirm-37454a63.js → OrConfirm-ca80102f.js} +1 -1
- package/dist/esm/v3/{OrLoader-a53d2edf.js → OrLoader-3a918ce9.js} +22 -7
- package/dist/esm/v3/{OrNotification-eb08de33.js → OrNotification-e85a4956.js} +1 -1
- package/dist/esm/v3/{OrPagination-da9e5017.js → OrPagination-fd5746da.js} +1 -1
- package/dist/esm/v3/{OrSearch-4c5c44f2.js → OrSearch-5406bf03.js} +2 -1
- package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
- package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
- package/dist/esm/v3/{OrSkeletonText-0546754d.js → OrSkeletonText-2b1610ce.js} +3 -3
- package/dist/esm/v3/{OrSwitch-1c2196da.js → OrSwitch-0e92c92c.js} +1 -1
- package/dist/esm/v3/components/index.js +13 -13
- package/dist/esm/v3/components/or-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +0 -10
- package/dist/esm/v3/components/or-code/index.js +2 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +18 -2
- package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
- package/dist/esm/v3/components/or-notification/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- package/dist/esm/v3/components/or-skeleton/index.js +1 -1
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/index.js +13 -13
- package/dist/esm/v3/{types-b79e4387.js → types-cc84155e.js} +1 -1
- package/package.json +2 -3
- package/src/components/or-code/OrCode.vue +6 -23
- package/src/components/or-loader-v3/OrLoader.stories3.ts +16 -4
- package/src/components/or-loader-v3/OrLoader.vue +21 -3
- package/src/components/or-loader-v3/styles.ts +1 -2
- package/src/components/or-notification/OrNotification.vue +1 -26
- package/src/components/or-search-v3/OrSearch.vue +2 -1
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
- package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
- package/src/components/or-sidebar-v3/partials/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +79 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +50 -0
- package/src/components/or-sidebar-v3/styles.ts +114 -9
- package/src/components/or-skeleton/styles.scss +3 -18
- package/src/components/or-stepper/OrStepper.stories.ts +1 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +0 -181
- package/dist/esm/v3/OrSidebar-a62972f5.js +0 -206
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrLoader } from './OrLoader-
|
|
2
|
+
import { O as OrLoader } from './OrLoader-cf28bfa6.js';
|
|
3
3
|
import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|
|
@@ -2,11 +2,11 @@ import './index-fa6eb4ca.js';
|
|
|
2
2
|
import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
3
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
4
|
import { O as OrIconButton } from './OrIconButton-837d57f8.js';
|
|
5
|
-
import { O as OrButton } from './OrButton-
|
|
5
|
+
import { O as OrButton } from './OrButton-0a9470c0.js';
|
|
6
6
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-09fd004c.js';
|
|
10
10
|
|
|
11
11
|
const CardCollectionRoot = [
|
|
12
12
|
// Layout
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useElementHover } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrTeleport } from './OrTeleportVue2-3544f185.js';
|
|
@@ -23378,161 +23378,6 @@ const basicSetup = /*@__PURE__*/(() => [lineNumbers(), highlightActiveLineGutter
|
|
|
23378
23378
|
fallback: true
|
|
23379
23379
|
}), bracketMatching(), closeBrackets(), autocompletion(), rectangularSelection(), crosshairCursor(), highlightActiveLine(), highlightSelectionMatches(), keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap, ...foldKeymap, ...completionKeymap, ...lintKeymap])])();
|
|
23380
23380
|
|
|
23381
|
-
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
23382
|
-
const chalky = "#e5c07b",
|
|
23383
|
-
coral = "#e06c75",
|
|
23384
|
-
cyan = "#56b6c2",
|
|
23385
|
-
invalid = "#ffffff",
|
|
23386
|
-
ivory = "#abb2bf",
|
|
23387
|
-
stone = "#7d8799",
|
|
23388
|
-
// Brightened compared to original to increase contrast
|
|
23389
|
-
malibu = "#61afef",
|
|
23390
|
-
sage = "#98c379",
|
|
23391
|
-
whiskey = "#d19a66",
|
|
23392
|
-
violet = "#c678dd",
|
|
23393
|
-
darkBackground = "#21252b",
|
|
23394
|
-
highlightBackground = "#2c313a",
|
|
23395
|
-
background = "#282c34",
|
|
23396
|
-
tooltipBackground = "#353a42",
|
|
23397
|
-
selection = "#3E4451",
|
|
23398
|
-
cursor = "#528bff";
|
|
23399
|
-
/**
|
|
23400
|
-
The editor theme styles for One Dark.
|
|
23401
|
-
*/
|
|
23402
|
-
const oneDarkTheme = /*@__PURE__*/EditorView.theme({
|
|
23403
|
-
"&": {
|
|
23404
|
-
color: ivory,
|
|
23405
|
-
backgroundColor: background
|
|
23406
|
-
},
|
|
23407
|
-
".cm-content": {
|
|
23408
|
-
caretColor: cursor
|
|
23409
|
-
},
|
|
23410
|
-
".cm-cursor, .cm-dropCursor": {
|
|
23411
|
-
borderLeftColor: cursor
|
|
23412
|
-
},
|
|
23413
|
-
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
23414
|
-
backgroundColor: selection
|
|
23415
|
-
},
|
|
23416
|
-
".cm-panels": {
|
|
23417
|
-
backgroundColor: darkBackground,
|
|
23418
|
-
color: ivory
|
|
23419
|
-
},
|
|
23420
|
-
".cm-panels.cm-panels-top": {
|
|
23421
|
-
borderBottom: "2px solid black"
|
|
23422
|
-
},
|
|
23423
|
-
".cm-panels.cm-panels-bottom": {
|
|
23424
|
-
borderTop: "2px solid black"
|
|
23425
|
-
},
|
|
23426
|
-
".cm-searchMatch": {
|
|
23427
|
-
backgroundColor: "#72a1ff59",
|
|
23428
|
-
outline: "1px solid #457dff"
|
|
23429
|
-
},
|
|
23430
|
-
".cm-searchMatch.cm-searchMatch-selected": {
|
|
23431
|
-
backgroundColor: "#6199ff2f"
|
|
23432
|
-
},
|
|
23433
|
-
".cm-activeLine": {
|
|
23434
|
-
backgroundColor: "#6699ff0b"
|
|
23435
|
-
},
|
|
23436
|
-
".cm-selectionMatch": {
|
|
23437
|
-
backgroundColor: "#aafe661a"
|
|
23438
|
-
},
|
|
23439
|
-
"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": {
|
|
23440
|
-
backgroundColor: "#bad0f847"
|
|
23441
|
-
},
|
|
23442
|
-
".cm-gutters": {
|
|
23443
|
-
backgroundColor: background,
|
|
23444
|
-
color: stone,
|
|
23445
|
-
border: "none"
|
|
23446
|
-
},
|
|
23447
|
-
".cm-activeLineGutter": {
|
|
23448
|
-
backgroundColor: highlightBackground
|
|
23449
|
-
},
|
|
23450
|
-
".cm-foldPlaceholder": {
|
|
23451
|
-
backgroundColor: "transparent",
|
|
23452
|
-
border: "none",
|
|
23453
|
-
color: "#ddd"
|
|
23454
|
-
},
|
|
23455
|
-
".cm-tooltip": {
|
|
23456
|
-
border: "none",
|
|
23457
|
-
backgroundColor: tooltipBackground
|
|
23458
|
-
},
|
|
23459
|
-
".cm-tooltip .cm-tooltip-arrow:before": {
|
|
23460
|
-
borderTopColor: "transparent",
|
|
23461
|
-
borderBottomColor: "transparent"
|
|
23462
|
-
},
|
|
23463
|
-
".cm-tooltip .cm-tooltip-arrow:after": {
|
|
23464
|
-
borderTopColor: tooltipBackground,
|
|
23465
|
-
borderBottomColor: tooltipBackground
|
|
23466
|
-
},
|
|
23467
|
-
".cm-tooltip-autocomplete": {
|
|
23468
|
-
"& > ul > li[aria-selected]": {
|
|
23469
|
-
backgroundColor: highlightBackground,
|
|
23470
|
-
color: ivory
|
|
23471
|
-
}
|
|
23472
|
-
}
|
|
23473
|
-
}, {
|
|
23474
|
-
dark: true
|
|
23475
|
-
});
|
|
23476
|
-
/**
|
|
23477
|
-
The highlighting style for code in the One Dark theme.
|
|
23478
|
-
*/
|
|
23479
|
-
const oneDarkHighlightStyle = /*@__PURE__*/HighlightStyle.define([{
|
|
23480
|
-
tag: tags$1.keyword,
|
|
23481
|
-
color: violet
|
|
23482
|
-
}, {
|
|
23483
|
-
tag: [tags$1.name, tags$1.deleted, tags$1.character, tags$1.propertyName, tags$1.macroName],
|
|
23484
|
-
color: coral
|
|
23485
|
-
}, {
|
|
23486
|
-
tag: [/*@__PURE__*/tags$1.function(tags$1.variableName), tags$1.labelName],
|
|
23487
|
-
color: malibu
|
|
23488
|
-
}, {
|
|
23489
|
-
tag: [tags$1.color, /*@__PURE__*/tags$1.constant(tags$1.name), /*@__PURE__*/tags$1.standard(tags$1.name)],
|
|
23490
|
-
color: whiskey
|
|
23491
|
-
}, {
|
|
23492
|
-
tag: [/*@__PURE__*/tags$1.definition(tags$1.name), tags$1.separator],
|
|
23493
|
-
color: ivory
|
|
23494
|
-
}, {
|
|
23495
|
-
tag: [tags$1.typeName, tags$1.className, tags$1.number, tags$1.changed, tags$1.annotation, tags$1.modifier, tags$1.self, tags$1.namespace],
|
|
23496
|
-
color: chalky
|
|
23497
|
-
}, {
|
|
23498
|
-
tag: [tags$1.operator, tags$1.operatorKeyword, tags$1.url, tags$1.escape, tags$1.regexp, tags$1.link, /*@__PURE__*/tags$1.special(tags$1.string)],
|
|
23499
|
-
color: cyan
|
|
23500
|
-
}, {
|
|
23501
|
-
tag: [tags$1.meta, tags$1.comment],
|
|
23502
|
-
color: stone
|
|
23503
|
-
}, {
|
|
23504
|
-
tag: tags$1.strong,
|
|
23505
|
-
fontWeight: "bold"
|
|
23506
|
-
}, {
|
|
23507
|
-
tag: tags$1.emphasis,
|
|
23508
|
-
fontStyle: "italic"
|
|
23509
|
-
}, {
|
|
23510
|
-
tag: tags$1.strikethrough,
|
|
23511
|
-
textDecoration: "line-through"
|
|
23512
|
-
}, {
|
|
23513
|
-
tag: tags$1.link,
|
|
23514
|
-
color: stone,
|
|
23515
|
-
textDecoration: "underline"
|
|
23516
|
-
}, {
|
|
23517
|
-
tag: tags$1.heading,
|
|
23518
|
-
fontWeight: "bold",
|
|
23519
|
-
color: coral
|
|
23520
|
-
}, {
|
|
23521
|
-
tag: [tags$1.atom, tags$1.bool, /*@__PURE__*/tags$1.special(tags$1.variableName)],
|
|
23522
|
-
color: whiskey
|
|
23523
|
-
}, {
|
|
23524
|
-
tag: [tags$1.processingInstruction, tags$1.string, tags$1.inserted],
|
|
23525
|
-
color: sage
|
|
23526
|
-
}, {
|
|
23527
|
-
tag: tags$1.invalid,
|
|
23528
|
-
color: invalid
|
|
23529
|
-
}]);
|
|
23530
|
-
/**
|
|
23531
|
-
Extension to enable the One Dark theme (both the editor theme and
|
|
23532
|
-
the highlight style).
|
|
23533
|
-
*/
|
|
23534
|
-
const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)];
|
|
23535
|
-
|
|
23536
23381
|
var OrCodeLanguages;
|
|
23537
23382
|
(function (OrCodeLanguages) {
|
|
23538
23383
|
OrCodeLanguages["JS"] = "javascript";
|
|
@@ -29628,20 +29473,6 @@ var script = defineComponent({
|
|
|
29628
29473
|
setup(props, {
|
|
29629
29474
|
emit
|
|
29630
29475
|
}) {
|
|
29631
|
-
var _a;
|
|
29632
|
-
// theming refs
|
|
29633
|
-
const parent = document.querySelector('[data-theme]') || document.querySelector('html');
|
|
29634
|
-
const themeEl = ref(parent);
|
|
29635
|
-
const isDark = ref(((_a = parent === null || parent === void 0 ? void 0 : parent.getAttribute) === null || _a === void 0 ? void 0 : _a.call(parent, 'data-theme')) === 'dark');
|
|
29636
|
-
const themeObserver = useMutationObserver(themeEl, mutations => {
|
|
29637
|
-
var _a, _b;
|
|
29638
|
-
const mutation = mutations.find(m => m.attributeName === 'data-theme');
|
|
29639
|
-
if (!mutation) return;
|
|
29640
|
-
isDark.value = ((_b = (_a = mutation.target) === null || _a === void 0 ? void 0 : _a.getAttribute) === null || _b === void 0 ? void 0 : _b.call(_a, 'data-theme')) === 'dark';
|
|
29641
|
-
}, {
|
|
29642
|
-
attributes: true
|
|
29643
|
-
});
|
|
29644
|
-
// editor config
|
|
29645
29476
|
const root = ref();
|
|
29646
29477
|
const target = ref();
|
|
29647
29478
|
const fullscreenTarget = ref();
|
|
@@ -29661,9 +29492,7 @@ var script = defineComponent({
|
|
|
29661
29492
|
target,
|
|
29662
29493
|
fullscreenTarget,
|
|
29663
29494
|
editor,
|
|
29664
|
-
isHovered
|
|
29665
|
-
isDark,
|
|
29666
|
-
themeObserver
|
|
29495
|
+
isHovered
|
|
29667
29496
|
};
|
|
29668
29497
|
},
|
|
29669
29498
|
data() {
|
|
@@ -29685,11 +29514,9 @@ var script = defineComponent({
|
|
|
29685
29514
|
allowPaste,
|
|
29686
29515
|
lineWrapping
|
|
29687
29516
|
} = this;
|
|
29688
|
-
const ext = _.compact([
|
|
29517
|
+
const ext = _.compact([
|
|
29689
29518
|
// Toggle light/dark mode
|
|
29690
|
-
|
|
29691
|
-
dark: true
|
|
29692
|
-
}) : EditorView.baseTheme({}),
|
|
29519
|
+
EditorView.baseTheme({}),
|
|
29693
29520
|
// locale settings
|
|
29694
29521
|
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
29695
29522
|
// Parser language setting
|
|
@@ -29716,8 +29543,10 @@ var script = defineComponent({
|
|
|
29716
29543
|
}
|
|
29717
29544
|
}),
|
|
29718
29545
|
// line wrapping
|
|
29719
|
-
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])
|
|
29720
|
-
|
|
29546
|
+
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
|
|
29547
|
+
// Append Extensions (such as basic-setup)
|
|
29548
|
+
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
29549
|
+
return ext;
|
|
29721
29550
|
},
|
|
29722
29551
|
isShowingError() {
|
|
29723
29552
|
return !!this.error && this.isInvalid;
|
|
@@ -29760,7 +29589,6 @@ var script = defineComponent({
|
|
|
29760
29589
|
},
|
|
29761
29590
|
beforeUnmount() {
|
|
29762
29591
|
var _a;
|
|
29763
|
-
this.themeObserver.stop();
|
|
29764
29592
|
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
29765
29593
|
},
|
|
29766
29594
|
methods: {
|
|
@@ -29810,7 +29638,7 @@ var __vue_render__ = function () {
|
|
|
29810
29638
|
staticClass: "fullscreen-button",
|
|
29811
29639
|
attrs: {
|
|
29812
29640
|
"icon": "fullscreen",
|
|
29813
|
-
"icon-color": "neutral-
|
|
29641
|
+
"icon-color": "neutral-3"
|
|
29814
29642
|
},
|
|
29815
29643
|
on: {
|
|
29816
29644
|
"click": function ($event) {
|
|
@@ -29878,14 +29706,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
29878
29706
|
/* style */
|
|
29879
29707
|
const __vue_inject_styles__ = function (inject) {
|
|
29880
29708
|
if (!inject) return;
|
|
29881
|
-
inject("data-v-
|
|
29882
|
-
source: "@keyframes spinAround-data-v-
|
|
29709
|
+
inject("data-v-2056db5f_0", {
|
|
29710
|
+
source: "@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}",
|
|
29883
29711
|
map: undefined,
|
|
29884
29712
|
media: undefined
|
|
29885
29713
|
});
|
|
29886
29714
|
};
|
|
29887
29715
|
/* scoped */
|
|
29888
|
-
const __vue_scope_id__ = "data-v-
|
|
29716
|
+
const __vue_scope_id__ = "data-v-2056db5f";
|
|
29889
29717
|
/* module identifier */
|
|
29890
29718
|
const __vue_module_identifier__ = undefined;
|
|
29891
29719
|
/* functional template */
|
|
@@ -2,7 +2,7 @@ import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
|
2
2
|
import { l as logicAnd } from './index-17f264f9.js';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
4
|
import { O as OrOverlay } from './OrOverlay-efa7992e.js';
|
|
5
|
-
import { O as OrButton, a as ButtonColor } from './OrButton-
|
|
5
|
+
import { O as OrButton, a as ButtonColor } from './OrButton-0a9470c0.js';
|
|
6
6
|
import { O as OrInput } from './OrInput-00070eee.js';
|
|
7
7
|
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -21,7 +21,7 @@ var LoaderSize;
|
|
|
21
21
|
|
|
22
22
|
const LoaderRoot = [
|
|
23
23
|
// Layout
|
|
24
|
-
'
|
|
24
|
+
'flex', 'flex-col', 'gap-md'];
|
|
25
25
|
const LoaderRootColors = {
|
|
26
26
|
'primary': [
|
|
27
27
|
// Theme
|
|
@@ -42,10 +42,17 @@ var script = defineComponent({
|
|
|
42
42
|
type: String,
|
|
43
43
|
default: LoaderVariant.Circular
|
|
44
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* Defines a semantic color of the loading indicator.
|
|
47
|
+
* Use `'inherit'` option to set your own color from the parent (not recommended).
|
|
48
|
+
*/
|
|
45
49
|
color: {
|
|
46
50
|
type: String,
|
|
47
51
|
default: LoaderColor.Primary
|
|
48
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* Defines a diameter of the circular loader. Ignored for linear one.
|
|
55
|
+
*/
|
|
49
56
|
size: {
|
|
50
57
|
type: String,
|
|
51
58
|
default: LoaderSize.M
|
|
@@ -71,19 +78,26 @@ var script = defineComponent({
|
|
|
71
78
|
// State
|
|
72
79
|
const computedSize = computed(() => {
|
|
73
80
|
switch (props.size) {
|
|
74
|
-
case
|
|
81
|
+
case LoaderSize.M:
|
|
75
82
|
return 20;
|
|
76
|
-
case
|
|
83
|
+
case LoaderSize.S:
|
|
77
84
|
return 16;
|
|
78
85
|
}
|
|
79
86
|
});
|
|
87
|
+
/**
|
|
88
|
+
* Preserves circular loading indicator from shrinking caused by external styles.
|
|
89
|
+
*/
|
|
90
|
+
const wrapperStyle = computed(() => {
|
|
91
|
+
return `min-width: ${computedSize.value}px;`;
|
|
92
|
+
});
|
|
80
93
|
return {
|
|
81
94
|
root,
|
|
82
95
|
rootStyles,
|
|
83
96
|
containerStyles,
|
|
84
97
|
titleStyles,
|
|
85
98
|
descriptionStyles,
|
|
86
|
-
computedSize
|
|
99
|
+
computedSize,
|
|
100
|
+
wrapperStyle
|
|
87
101
|
};
|
|
88
102
|
}
|
|
89
103
|
});
|
|
@@ -102,7 +116,8 @@ var __vue_render__ = function () {
|
|
|
102
116
|
}, [_vm.title ? [_c('div', {
|
|
103
117
|
class: _vm.titleStyles
|
|
104
118
|
}, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")])] : _vm._e(), _vm._v(" "), _c('div', {
|
|
105
|
-
class: _vm.containerStyles
|
|
119
|
+
class: _vm.containerStyles,
|
|
120
|
+
style: _vm.wrapperStyle
|
|
106
121
|
}, [_vm.variant === 'circular' ? [_c('svg', {
|
|
107
122
|
attrs: {
|
|
108
123
|
"viewBox": "0 0 16 16",
|
|
@@ -120,14 +120,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
120
120
|
/* style */
|
|
121
121
|
const __vue_inject_styles__ = function (inject) {
|
|
122
122
|
if (!inject) return;
|
|
123
|
-
inject("data-v-
|
|
124
|
-
source: "@keyframes spinAround-data-v-
|
|
123
|
+
inject("data-v-7bc0e6b5_0", {
|
|
124
|
+
source: "@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)}",
|
|
125
125
|
map: undefined,
|
|
126
126
|
media: undefined
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
129
|
/* scoped */
|
|
130
|
-
const __vue_scope_id__ = "data-v-
|
|
130
|
+
const __vue_scope_id__ = "data-v-7bc0e6b5";
|
|
131
131
|
/* module identifier */
|
|
132
132
|
const __vue_module_identifier__ = undefined;
|
|
133
133
|
/* functional template */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import { O as OrButton } from './OrButton-
|
|
2
|
+
import { O as OrButton } from './OrButton-0a9470c0.js';
|
|
3
3
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
4
4
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
5
5
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
@@ -48,11 +48,12 @@ var script = defineComponent({
|
|
|
48
48
|
// State
|
|
49
49
|
const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
|
|
50
50
|
// Events
|
|
51
|
-
debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
|
|
51
|
+
debouncedWatch(localModelValue, () => localModelValue.value.length > 0 && context.emit('search', localModelValue.value), {
|
|
52
52
|
debounce: props.debounce
|
|
53
53
|
});
|
|
54
54
|
watch(localModelValue, (val, beforeVal) => {
|
|
55
55
|
if (val.length === 0 && beforeVal.length > 0) {
|
|
56
|
+
context.emit('search');
|
|
56
57
|
context.emit('clear');
|
|
57
58
|
}
|
|
58
59
|
});
|