@onereach/ui-components 2.68.0-beta.2008.0 → 2.68.0-beta.2017.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 (97) hide show
  1. package/dist/bundled/v2/{OrCode-b9332066.js → OrCode-edc7a1f5.js} +115 -2
  2. package/dist/bundled/v2/{OrConfirm-19758dae.js → OrConfirm-56d01cff.js} +1 -1
  3. package/dist/bundled/{v3/useFocusTrap-d21726e3.js → v2/OrModal-a5411b0d.js} +200 -3
  4. package/dist/bundled/v2/components/index.d.ts +0 -1
  5. package/dist/bundled/v2/components/index.js +3 -7
  6. package/dist/bundled/v2/components/or-code/index.js +2 -4
  7. package/dist/bundled/v2/components/or-confirm/index.js +2 -3
  8. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  9. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  10. package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +3 -0
  11. package/dist/bundled/v2/components/or-empty-state-v3/index.js +242 -0
  12. package/dist/bundled/v2/components/or-empty-state-v3/props.d.ts +4 -0
  13. package/dist/bundled/v2/components/or-empty-state-v3/styles.d.ts +15 -0
  14. package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +2 -0
  15. package/dist/bundled/v2/components/or-modal/index.js +1 -2
  16. package/dist/bundled/v2/index.js +4 -8
  17. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-5fe573eb.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +116 -3
  18. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4451e782.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +2 -2
  19. package/dist/bundled/v3/{OrModal-bbabef06.js → OrModal-868160ef.js} +1 -1
  20. package/dist/bundled/{v2/useFocusTrap-d744652a.js → v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js} +126 -4
  21. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2fdbd2f2.js → OrTabs.vue_vue_type_script_lang-ca57f9d9.js} +36 -10
  22. package/dist/bundled/v3/components/index.d.ts +0 -1
  23. package/dist/bundled/v3/components/index.js +5 -10
  24. package/dist/bundled/v3/components/or-code/index.js +3 -5
  25. package/dist/bundled/v3/components/or-confirm/index.js +3 -4
  26. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  27. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  28. package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +3 -0
  29. package/dist/bundled/v3/components/or-empty-state-v3/index.js +217 -0
  30. package/dist/bundled/v3/components/or-empty-state-v3/props.d.ts +4 -0
  31. package/dist/bundled/v3/components/or-empty-state-v3/styles.d.ts +15 -0
  32. package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +2 -0
  33. package/dist/bundled/v3/components/or-modal/index.js +1 -2
  34. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  35. package/dist/bundled/v3/index.js +182 -278
  36. package/dist/esm/v2/components/index.d.ts +0 -1
  37. package/dist/esm/v2/components/index.js +0 -19
  38. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  39. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  40. package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +3 -0
  41. package/dist/esm/v2/components/or-empty-state-v3/index.js +240 -0
  42. package/dist/esm/v2/components/or-empty-state-v3/props.d.ts +4 -0
  43. package/dist/esm/v2/components/or-empty-state-v3/styles.d.ts +15 -0
  44. package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +2 -0
  45. package/dist/esm/v2/index.js +0 -19
  46. package/dist/esm/v3/components/index.d.ts +0 -1
  47. package/dist/esm/v3/components/index.js +0 -19
  48. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +44 -0
  49. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +146 -0
  50. package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +3 -0
  51. package/dist/esm/v3/components/or-empty-state-v3/index.js +217 -0
  52. package/dist/esm/v3/components/or-empty-state-v3/props.d.ts +4 -0
  53. package/dist/esm/v3/components/or-empty-state-v3/styles.d.ts +15 -0
  54. package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +2 -0
  55. package/dist/esm/v3/index.js +0 -19
  56. package/package.json +1 -19
  57. package/src/components/index.ts +0 -1
  58. package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +221 -0
  59. package/src/components/or-empty-state-v3/OrEmptyState.vue +185 -0
  60. package/src/components/or-empty-state-v3/index.ts +3 -0
  61. package/src/components/or-empty-state-v3/props.ts +4 -0
  62. package/src/components/or-empty-state-v3/styles.ts +121 -0
  63. package/src/components/or-empty-state-v3/types.ts +3 -0
  64. package/dist/bundled/v2/OrModal-71d33219.js +0 -202
  65. package/dist/bundled/v2/OrRichTextEditor-4a41e294.js +0 -36832
  66. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  67. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  68. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  69. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +0 -25
  70. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  71. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  72. package/dist/bundled/v3/OrMenu-08aa60de.js +0 -29
  73. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +0 -128
  74. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-f5d3e39b.js +0 -36712
  75. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  76. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  77. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  78. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +0 -26
  79. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  80. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  81. package/dist/esm/v2/OrRichTextEditor-11967cd9.js +0 -520
  82. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  83. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  84. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
  85. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -39
  86. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  87. package/dist/esm/v3/OrRichTextEditor-ad5f24ba.js +0 -490
  88. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +0 -12
  89. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -149
  90. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
  91. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -38
  92. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  93. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
  94. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -62
  95. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -526
  96. package/src/components/or-rich-text-editor-v3/index.ts +0 -1
  97. package/src/components/or-rich-text-editor-v3/styles.ts +0 -65
@@ -1,10 +1,9 @@
1
1
  import { useElementHover } from '@vueuse/core';
2
- import { k as keyName, b as base, s as shift } from './index.es-3f39f316.js';
3
2
  import _ from 'lodash';
4
3
  import './index-fa6eb4ca.js';
5
4
  import { O as OrTeleport } from './OrTeleportVue2-3544f185.js';
6
5
  import { O as OrIconButton } from './OrIconButton-65962c1c.js';
7
- import { O as OrModal } from './OrModal-71d33219.js';
6
+ import { O as OrModal } from './OrModal-a5411b0d.js';
8
7
  import { O as OrError } from './OrError-31503e4c.js';
9
8
  import { O as OrHint } from './OrHint-fabea4cf.js';
10
9
  import { O as OrLabel } from './OrLabel-74c73ba4.js';
@@ -3923,6 +3922,120 @@ class StyleSet {
3923
3922
  // example to create a media query you can do `{"@media screen and
3924
3923
  // (min-width: 400px)": {...}}`.
3925
3924
 
3925
+ var base = {
3926
+ 8: "Backspace",
3927
+ 9: "Tab",
3928
+ 10: "Enter",
3929
+ 12: "NumLock",
3930
+ 13: "Enter",
3931
+ 16: "Shift",
3932
+ 17: "Control",
3933
+ 18: "Alt",
3934
+ 20: "CapsLock",
3935
+ 27: "Escape",
3936
+ 32: " ",
3937
+ 33: "PageUp",
3938
+ 34: "PageDown",
3939
+ 35: "End",
3940
+ 36: "Home",
3941
+ 37: "ArrowLeft",
3942
+ 38: "ArrowUp",
3943
+ 39: "ArrowRight",
3944
+ 40: "ArrowDown",
3945
+ 44: "PrintScreen",
3946
+ 45: "Insert",
3947
+ 46: "Delete",
3948
+ 59: ";",
3949
+ 61: "=",
3950
+ 91: "Meta",
3951
+ 92: "Meta",
3952
+ 106: "*",
3953
+ 107: "+",
3954
+ 108: ",",
3955
+ 109: "-",
3956
+ 110: ".",
3957
+ 111: "/",
3958
+ 144: "NumLock",
3959
+ 145: "ScrollLock",
3960
+ 160: "Shift",
3961
+ 161: "Shift",
3962
+ 162: "Control",
3963
+ 163: "Control",
3964
+ 164: "Alt",
3965
+ 165: "Alt",
3966
+ 173: "-",
3967
+ 186: ";",
3968
+ 187: "=",
3969
+ 188: ",",
3970
+ 189: "-",
3971
+ 190: ".",
3972
+ 191: "/",
3973
+ 192: "`",
3974
+ 219: "[",
3975
+ 220: "\\",
3976
+ 221: "]",
3977
+ 222: "'"
3978
+ };
3979
+ var shift = {
3980
+ 48: ")",
3981
+ 49: "!",
3982
+ 50: "@",
3983
+ 51: "#",
3984
+ 52: "$",
3985
+ 53: "%",
3986
+ 54: "^",
3987
+ 55: "&",
3988
+ 56: "*",
3989
+ 57: "(",
3990
+ 59: ":",
3991
+ 61: "+",
3992
+ 173: "_",
3993
+ 186: ":",
3994
+ 187: "+",
3995
+ 188: "<",
3996
+ 189: "_",
3997
+ 190: ">",
3998
+ 191: "?",
3999
+ 192: "~",
4000
+ 219: "{",
4001
+ 220: "|",
4002
+ 221: "}",
4003
+ 222: "\""
4004
+ };
4005
+ var chrome$1 = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent);
4006
+ typeof navigator != "undefined" && /Gecko\/\d+/.test(navigator.userAgent);
4007
+ var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
4008
+ var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
4009
+ var brokenModifierNames = mac || chrome$1 && +chrome$1[1] < 57;
4010
+
4011
+ // Fill in the digit keys
4012
+ for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
4013
+
4014
+ // The function keys
4015
+ for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
4016
+
4017
+ // And the alphabetic keys
4018
+ for (var i = 65; i <= 90; i++) {
4019
+ base[i] = String.fromCharCode(i + 32);
4020
+ shift[i] = String.fromCharCode(i);
4021
+ }
4022
+
4023
+ // For each code that doesn't have a shift-equivalent, copy the base name
4024
+ for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
4025
+ function keyName(event) {
4026
+ var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || ie$1 && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
4027
+ var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
4028
+ // Edge sometimes produces wrong names (Issue #3)
4029
+ if (name == "Esc") name = "Escape";
4030
+ if (name == "Del") name = "Delete";
4031
+ // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
4032
+ if (name == "Left") name = "ArrowLeft";
4033
+ if (name == "Up") name = "ArrowUp";
4034
+ if (name == "Right") name = "ArrowRight";
4035
+ if (name == "Down") name = "ArrowDown";
4036
+ return name;
4037
+ }
4038
+
3926
4039
  function getSelection(root) {
3927
4040
  let target;
3928
4041
  // Browsers differ on whether shadow roots have a getSelection
@@ -2,7 +2,7 @@ import './index-fa6eb4ca.js';
2
2
  import { useMagicKeys, useActiveElement, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-17f264f9.js';
4
4
  import { O as OrButton } from './OrButton-705cd0bd.js';
5
- import { O as OrModal, a as OrModalSizes } from './OrModal-71d33219.js';
5
+ import { O as OrModal, a as OrModalSizes } from './OrModal-a5411b0d.js';
6
6
  import { O as OrInput } from './OrInput-08f2f666.js';
7
7
  import { a as BUTTON_COLOR } from './constants-c5d1139f.js';
8
8
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -1,5 +1,20 @@
1
- import { unrefElement, tryOnScopeDispose } from '@vueuse/core';
2
- import { ref, watch } from 'vue';
1
+ import './index-fa6eb4ca.js';
2
+ import _ from 'lodash';
3
+ import { unrefElement, tryOnScopeDispose, onClickOutside } from '@vueuse/core';
4
+ import { ref, watch, defineComponent, onBeforeUnmount } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
+ import { O as OrIconButton } from './OrIconButton-65962c1c.js';
6
+ import { O as OrOverlay } from './OrOverlay-47967a8b.js';
7
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
8
+ import { c as createInjector } from './browser-82dea9ed.js';
9
+
10
+ var OrModalSizes;
11
+ (function (OrModalSizes) {
12
+ OrModalSizes["tiny"] = "tiny";
13
+ OrModalSizes["small"] = "small";
14
+ OrModalSizes["medium"] = "medium";
15
+ OrModalSizes["large"] = "large";
16
+ OrModalSizes["fullScreen"] = "fullScreen";
17
+ })(OrModalSizes || (OrModalSizes = {}));
3
18
 
4
19
  /*!
5
20
  * tabbable 6.0.1
@@ -1265,4 +1280,186 @@ function useFocusTrap(target, options = {}) {
1265
1280
  };
1266
1281
  }
1267
1282
 
1268
- export { useFocusTrap as u };
1283
+ var script = defineComponent({
1284
+ name: 'OrModal',
1285
+ components: {
1286
+ OrIconButton,
1287
+ OrOverlay
1288
+ },
1289
+ props: {
1290
+ titleText: {
1291
+ type: String,
1292
+ required: false,
1293
+ default: null,
1294
+ validator: _.isString
1295
+ },
1296
+ showClose: {
1297
+ type: Boolean,
1298
+ default: true,
1299
+ validator: _.isBoolean
1300
+ },
1301
+ closeOnClickOutside: {
1302
+ type: Boolean,
1303
+ required: false,
1304
+ default: false,
1305
+ validator: _.isBoolean
1306
+ },
1307
+ size: {
1308
+ type: String,
1309
+ required: false,
1310
+ default: OrModalSizes.small
1311
+ },
1312
+ isOpen: {
1313
+ type: Boolean,
1314
+ required: true,
1315
+ validator: _.isBoolean
1316
+ },
1317
+ isWithoutOverlay: {
1318
+ type: Boolean,
1319
+ required: false,
1320
+ default: false,
1321
+ validator: _.isBoolean
1322
+ },
1323
+ trapFocus: {
1324
+ type: Boolean,
1325
+ default: true,
1326
+ validator: _.isBoolean
1327
+ }
1328
+ },
1329
+ emits: ['close'],
1330
+ setup(props, {
1331
+ emit
1332
+ }) {
1333
+ const overlay = ref();
1334
+ let container = ref(null);
1335
+ let trap = useFocusTrap(container, {
1336
+ immediate: props.trapFocus,
1337
+ fallbackFocus: '.container',
1338
+ allowOutsideClick: true
1339
+ });
1340
+ const handleClose = () => emit('close');
1341
+ onClickOutside(container, evt => {
1342
+ if (!evt.composedPath().includes(overlay.value.$el)) return;
1343
+ if (props.closeOnClickOutside) handleClose();
1344
+ });
1345
+ const toggleFocusTrap = isNeedToTrap => {
1346
+ if (isNeedToTrap && props.isOpen) {
1347
+ trap.activate();
1348
+ } else {
1349
+ trap === null || trap === void 0 ? void 0 : trap.deactivate();
1350
+ }
1351
+ };
1352
+ watch(() => props.trapFocus, toggleFocusTrap, {
1353
+ immediate: true
1354
+ });
1355
+ watch(() => props.isOpen, isOpen => {
1356
+ toggleFocusTrap(false);
1357
+ if (isOpen) {
1358
+ container = ref(null);
1359
+ } else {
1360
+ trap === null || trap === void 0 ? void 0 : trap.deactivate();
1361
+ }
1362
+ });
1363
+ onBeforeUnmount(() => {
1364
+ trap === null || trap === void 0 ? void 0 : trap.deactivate();
1365
+ });
1366
+ return {
1367
+ container,
1368
+ overlay,
1369
+ handleClose
1370
+ };
1371
+ },
1372
+ computed: {
1373
+ sizeClass() {
1374
+ return `is-${this.size}`;
1375
+ }
1376
+ }
1377
+ });
1378
+
1379
+ /* script */
1380
+ const __vue_script__ = script;
1381
+
1382
+ /* template */
1383
+ var __vue_render__ = function () {
1384
+ var _vm = this;
1385
+ var _h = _vm.$createElement;
1386
+ var _c = _vm._self._c || _h;
1387
+ return _vm.isOpen ? _c('div', {
1388
+ staticClass: "or-modal"
1389
+ }, [_c('or-overlay', {
1390
+ ref: "overlay",
1391
+ attrs: {
1392
+ "is-active": "",
1393
+ "is-without-background": _vm.isWithoutOverlay
1394
+ }
1395
+ }, [_c('div', {
1396
+ ref: "container",
1397
+ class: [_vm.sizeClass, 'container', {
1398
+ 'is-without-overlay': _vm.isWithoutOverlay
1399
+ }]
1400
+ }, [_vm._t("header", function () {
1401
+ return [_c('div', {
1402
+ staticClass: "header"
1403
+ }, [_vm._t("title", function () {
1404
+ return [_c('div', {
1405
+ staticClass: "title"
1406
+ }, [_vm._v("\n " + _vm._s(_vm.titleText) + "\n ")])];
1407
+ }), _vm._v(" "), _c('or-icon-button', {
1408
+ directives: [{
1409
+ name: "show",
1410
+ rawName: "v-show",
1411
+ value: _vm.showClose,
1412
+ expression: "showClose"
1413
+ }],
1414
+ attrs: {
1415
+ "icon": "close",
1416
+ "icon-color": "neutral-6"
1417
+ },
1418
+ on: {
1419
+ "click": _vm.handleClose
1420
+ }
1421
+ })], 2)];
1422
+ }), _vm._v(" "), _vm._t("content", function () {
1423
+ return [_c('div', {
1424
+ staticClass: "content"
1425
+ }, [_vm._t("default")], 2)];
1426
+ }), _vm._v(" "), _c('div', {
1427
+ directives: [{
1428
+ name: "show",
1429
+ rawName: "v-show",
1430
+ value: _vm.$slots.footer,
1431
+ expression: "$slots.footer"
1432
+ }],
1433
+ staticClass: "footer"
1434
+ }, [_vm._t("footer", null, {
1435
+ "close": _vm.handleClose
1436
+ })], 2)], 2)])], 1) : _vm._e();
1437
+ };
1438
+ var __vue_staticRenderFns__ = [];
1439
+
1440
+ /* style */
1441
+ const __vue_inject_styles__ = function (inject) {
1442
+ if (!inject) return;
1443
+ inject("data-v-1caff449_0", {
1444
+ source: "@keyframes spinAround-data-v-1caff449{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-1caff449{from{opacity:1}to{opacity:0}}.or-modal[data-v-1caff449]{position:fixed;top:0;left:0;z-index:50;width:100%;height:100%}.or-modal .or-overlay[data-v-1caff449]{align-items:center;justify-content:center}.or-modal .container[data-v-1caff449]{position:absolute;display:flex;flex-flow:column;max-width:100%;max-height:80%;background-color:var(--c-neutral-0);border-radius:var(--s-2);outline:0}.or-modal .container.is-without-overlay[data-v-1caff449]{box-shadow:0 .125rem .5rem 0 rgba(0,0,0,.1)}.or-modal .container.is-fullScreen[data-v-1caff449]{width:calc(100% - var(--s-7));height:calc(100% - var(--s-7));max-height:calc(100% - var(--s-7));margin:0 auto}.or-modal .container.is-tiny[data-v-1caff449]{width:320px}.or-modal .container.is-small[data-v-1caff449]{width:480px}.or-modal .container.is-medium[data-v-1caff449]{width:700px}.or-modal .container.is-large[data-v-1caff449]{width:1049px}.or-modal .container .header[data-v-1caff449]{display:flex;justify-content:space-between;padding:24px 24px 20px 24px;border-radius:var(--s-2) var(--s-2) 0 0}.or-modal .container .header .title[data-v-1caff449]{font-size:1.125rem;font-weight:700}.or-modal .container .content[data-v-1caff449]{flex-grow:1;padding:0 24px 24px 24px;overflow:auto}.or-modal .container .footer[data-v-1caff449]{padding:16px 24px 24px 24px;border-radius:0 0 var(--s-2) var(--s-2);box-shadow:0 -3px 4px 0 rgba(0,0,0,.08)}",
1445
+ map: undefined,
1446
+ media: undefined
1447
+ });
1448
+ };
1449
+ /* scoped */
1450
+ const __vue_scope_id__ = "data-v-1caff449";
1451
+ /* module identifier */
1452
+ const __vue_module_identifier__ = undefined;
1453
+ /* functional template */
1454
+ const __vue_is_functional_template__ = false;
1455
+ /* style inject SSR */
1456
+
1457
+ /* style inject shadow dom */
1458
+
1459
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
1460
+ render: __vue_render__,
1461
+ staticRenderFns: __vue_staticRenderFns__
1462
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);
1463
+ var OrModal = __vue_component__;
1464
+
1465
+ export { OrModal as O, OrModalSizes as a };
@@ -87,4 +87,3 @@ export * from './or-toast';
87
87
  export * from './or-toast-v3';
88
88
  export * from './or-tooltip';
89
89
  export * from './or-tooltip-v3';
90
- export * from './or-rich-text-editor-v3';
@@ -15,10 +15,10 @@ export { O as OrCheckbox } from '../OrCheckbox-f97a57b9.js';
15
15
  export { O as OrCheckboxV3 } from '../OrCheckbox-5b499fc5.js';
16
16
  export { O as OrChip } from '../OrChip-000fe7b5.js';
17
17
  export { _ as OrChips } from '../OrChips-890b8476.js';
18
- export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-b9332066.js';
18
+ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-edc7a1f5.js';
19
19
  export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.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-a1a37e83.js';
21
- export { _ as OrConfirm } from '../OrConfirm-19758dae.js';
21
+ export { _ as OrConfirm } from '../OrConfirm-56d01cff.js';
22
22
  export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-22c7622d.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-e212f892.js';
24
24
  export { O as OrError } from '../OrError-31503e4c.js';
@@ -51,7 +51,7 @@ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, O as OrLoaderV3
51
51
  export { O as OrMenuItemV3 } from '../OrMenuItem-f89dfc77.js';
52
52
  export { O as OrMenuV3 } from '../OrMenu-5ac06751.js';
53
53
  export { P as MenuPlacement, O as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from '../OrPopover-2f48b854.js';
54
- export { O as OrModal, a as OrModalSizes } from '../OrModal-71d33219.js';
54
+ export { O as OrModal, a as OrModalSizes } from '../OrModal-a5411b0d.js';
55
55
  export { M as ModalSize, _ as OrModalV3 } from '../OrModal-387348ca.js';
56
56
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, _ as OrNotification } from '../OrNotification-3909aaf2.js';
57
57
  export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotification-1fa0b14e.js';
@@ -95,7 +95,6 @@ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../useToast-3a3d
95
95
  export { O as OrTooltip } from '../OrTooltip-dfea7af2.js';
96
96
  export { O as OrTooltipContent } from '../OrTooltipContent-f0fd5f75.js';
97
97
  export { O as OrTooltipV3 } from '../OrTooltip-d1764f37.js';
98
- export { _ as OrRichTextEditorV3 } from '../OrRichTextEditor-4a41e294.js';
99
98
  import '../index-fa6eb4ca.js';
100
99
  import 'vue';
101
100
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -105,7 +104,6 @@ import '../browser-82dea9ed.js';
105
104
  import '../color-1f348774.js';
106
105
  import '../useClassAttribute-9bf33346.js';
107
106
  import '@vueuse/core';
108
- import '../index.es-3f39f316.js';
109
107
  import '../px-to-rem-0b26b83e.js';
110
108
  import '../dom-3a15d036.js';
111
109
  import '../index-17f264f9.js';
@@ -114,9 +112,7 @@ import '../useToggle-6166bd53.js';
114
112
  import '../v4-cf8987a3.js';
115
113
  import '../useResponsive-e13dfbb0.js';
116
114
  import '../useElevation-aac032f4.js';
117
- import '../useFocusTrap-d744652a.js';
118
115
  import '../dropdown-open-e2a93aaf.js';
119
116
  import '../useOverflow-43299d81.js';
120
117
  import 'portal-vue/dist/portal-vue.esm.js';
121
118
  import 'portal-vue';
122
- import 'node:punycode';
@@ -1,6 +1,5 @@
1
- export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-b9332066.js';
1
+ export { _ as OrCode, O as OrCodeLanguages } from '../../OrCode-edc7a1f5.js';
2
2
  import '@vueuse/core';
3
- import '../../index.es-3f39f316.js';
4
3
  import 'lodash';
5
4
  import '../../index-fa6eb4ca.js';
6
5
  import 'vue';
@@ -19,8 +18,7 @@ import '../../constants-c5d1139f.js';
19
18
  import '../../OrIcon-10ec459c.js';
20
19
  import '../../px-to-rem-0b26b83e.js';
21
20
  import '../../OrLoader-05057239.js';
22
- import '../../OrModal-71d33219.js';
23
- import '../../useFocusTrap-d744652a.js';
21
+ import '../../OrModal-a5411b0d.js';
24
22
  import '../../OrOverlay-47967a8b.js';
25
23
  import '../../OrError-31503e4c.js';
26
24
  import '../../OrHint-fabea4cf.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrConfirm } from '../../OrConfirm-19758dae.js';
1
+ export { _ as OrConfirm } from '../../OrConfirm-56d01cff.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -18,8 +18,7 @@ import '../../OrTeleportVue2-3544f185.js';
18
18
  import 'portal-vue/dist/portal-vue.esm.js';
19
19
  import '../../dom-3a15d036.js';
20
20
  import '../../OrLoader-05057239.js';
21
- import '../../OrModal-71d33219.js';
22
- import '../../useFocusTrap-d744652a.js';
21
+ import '../../OrModal-a5411b0d.js';
23
22
  import '../../OrIconButton-65962c1c.js';
24
23
  import '../../OrTooltip-dfea7af2.js';
25
24
  import '../../OrOverlay-47967a8b.js';
@@ -0,0 +1,44 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
+ import OrEmptyState from './OrEmptyState.vue';
3
+ declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
4
+ [x: string]: ((...args: any[]) => any) | null;
5
+ } | string[], {} & {}, {
6
+ [x: number]: string;
7
+ } | {}, true>)>;
8
+ export default _default;
9
+ export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
10
+ [x: string]: ((...args: any[]) => any) | null;
11
+ } | string[], {} & {}, {
12
+ [x: number]: string;
13
+ } | {}, true>)>;
14
+ export declare const LinearLoader: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
15
+ [x: string]: ((...args: any[]) => any) | null;
16
+ } | string[], {} & {}, {
17
+ [x: number]: string;
18
+ } | {}, true>)>;
19
+ export declare const CircularLoader: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
20
+ [x: string]: ((...args: any[]) => any) | null;
21
+ } | string[], {} & {}, {
22
+ [x: number]: string;
23
+ } | {}, true>)>;
24
+ export declare const MaterialIcon: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
25
+ [x: string]: ((...args: any[]) => any) | null;
26
+ } | string[], {} & {}, {
27
+ [x: number]: string;
28
+ } | {}, true>)>;
29
+ export declare const ImageIcon: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
30
+ [x: string]: ((...args: any[]) => any) | null;
31
+ } | string[], {} & {}, {
32
+ [x: number]: string;
33
+ } | {}, true>)>;
34
+ export declare const LargeSize: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
35
+ [x: string]: ((...args: any[]) => any) | null;
36
+ } | string[], {} & {}, {
37
+ [x: number]: string;
38
+ } | {}, true>)>;
39
+ export declare const ExtraContentInSlot: StoryFn<typeof OrEmptyState>;
40
+ export declare const Containers: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
41
+ [x: string]: ((...args: any[]) => any) | null;
42
+ } | string[], {} & {}, {
43
+ [x: number]: string;
44
+ } | {}, true>)>;
@@ -0,0 +1,146 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { EmptyStateLoader, EmptyStateSize } from '.';
3
+ import { LoaderVariant } from '../or-loader-v3';
4
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {
5
+ loaderVariant(): LoaderVariant | undefined;
6
+ rootClasses(): string[];
7
+ iconContainerClasses(): string[];
8
+ iconClasses(): string[];
9
+ imageClasses(): string[];
10
+ headingClasses(): string[];
11
+ textClasses(): string[];
12
+ slotClasses(): string[];
13
+ loaderClasses(): string[];
14
+ }, {
15
+ /**
16
+ * Size of the component, affects font and icon size.
17
+ * Use Large if the component takes all screen space,
18
+ * and Medium if it is a part of the complex layout.
19
+ */
20
+ size: {
21
+ type: PropType<EmptyStateSize>;
22
+ default: EmptyStateSize;
23
+ };
24
+ /**
25
+ * The heading of the empty state block.
26
+ */
27
+ heading: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ /**
32
+ * Additional text such as a hint for a user with proposed next steps.
33
+ */
34
+ text: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ /**
39
+ * Material icon name to display above the heading.
40
+ */
41
+ icon: {
42
+ type: StringConstructor;
43
+ default: undefined;
44
+ };
45
+ /**
46
+ * Path to the image to display above the heading.
47
+ * Image height is scaled to 48px, width is undefined to preserve aspect ratio.
48
+ */
49
+ imageSrc: {
50
+ type: StringConstructor;
51
+ default: undefined;
52
+ };
53
+ /**
54
+ * If provided, then loader is being displayed.
55
+ * Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
56
+ */
57
+ loader: {
58
+ type: PropType<EmptyStateLoader>;
59
+ default: boolean;
60
+ };
61
+ }, import("@vue/composition-api").ExtractPropTypes<{
62
+ /**
63
+ * Size of the component, affects font and icon size.
64
+ * Use Large if the component takes all screen space,
65
+ * and Medium if it is a part of the complex layout.
66
+ */
67
+ size: {
68
+ type: PropType<EmptyStateSize>;
69
+ default: EmptyStateSize;
70
+ };
71
+ /**
72
+ * The heading of the empty state block.
73
+ */
74
+ heading: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ /**
79
+ * Additional text such as a hint for a user with proposed next steps.
80
+ */
81
+ text: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ /**
86
+ * Material icon name to display above the heading.
87
+ */
88
+ icon: {
89
+ type: StringConstructor;
90
+ default: undefined;
91
+ };
92
+ /**
93
+ * Path to the image to display above the heading.
94
+ * Image height is scaled to 48px, width is undefined to preserve aspect ratio.
95
+ */
96
+ imageSrc: {
97
+ type: StringConstructor;
98
+ default: undefined;
99
+ };
100
+ /**
101
+ * If provided, then loader is being displayed.
102
+ * Accepts booleans and OrLoader::variant values. `true` falls back to 'linear'.
103
+ */
104
+ loader: {
105
+ type: PropType<EmptyStateLoader>;
106
+ default: boolean;
107
+ };
108
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
109
+ size: EmptyStateSize;
110
+ heading: string;
111
+ text: string;
112
+ icon: string;
113
+ imageSrc: string;
114
+ loader: EmptyStateLoader;
115
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {
116
+ loaderVariant(): LoaderVariant | undefined;
117
+ rootClasses(): string[];
118
+ iconContainerClasses(): string[];
119
+ iconClasses(): string[];
120
+ imageClasses(): string[];
121
+ headingClasses(): string[];
122
+ textClasses(): string[];
123
+ slotClasses(): string[];
124
+ loaderClasses(): string[];
125
+ }, {}, {}, {}, {}, {
126
+ size: EmptyStateSize;
127
+ heading: string;
128
+ text: string;
129
+ icon: string;
130
+ imageSrc: string;
131
+ loader: EmptyStateLoader;
132
+ } & {}, {
133
+ size: EmptyStateSize;
134
+ heading: string;
135
+ text: string;
136
+ icon: string;
137
+ imageSrc: string;
138
+ loader: EmptyStateLoader;
139
+ }, true>);
140
+ /**
141
+ * The component to display when there is no content on a page,
142
+ * no records found or selected, or while the data is being loaded.
143
+ * Provides a hint to the user on what to do.
144
+ * Consists of text message, optional icon and optional loader.
145
+ */
146
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as OrEmptyStateV3 } from './OrEmptyState.vue';
2
+ export * from './types';
3
+ export * from './props';