@vertexvis/ui 0.1.0-canary.1 → 0.1.0-canary.11

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 (128) hide show
  1. package/dist/cjs/badge-d39ac1fc.js +23 -0
  2. package/dist/cjs/components.cjs.js +1 -1
  3. package/dist/cjs/icon-button-e2dbc8b2.js +43 -0
  4. package/dist/cjs/{icon-53d62a46.js → icon-c40f74ca.js} +1 -1
  5. package/dist/cjs/{icon-helper-caf2699e.js → icon-helper-c24d6e6b.js} +18 -0
  6. package/dist/cjs/index.cjs.js +11 -9
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{popover-d9ec8e10.js → popover-942209b8.js} +23 -1
  9. package/dist/cjs/{result-list-1e592c3c.js → result-list-241ffe8d.js} +46 -2
  10. package/dist/cjs/search-bar-91cbcd07.js +421 -0
  11. package/dist/cjs/{select-0eb7203f.js → select-5f8aecfe.js} +27 -4
  12. package/dist/cjs/{text-field-0397fb34.js → text-field-bccbde1f.js} +1 -0
  13. package/dist/cjs/{tooltip-80a7b722.js → tooltip-e9f63631.js} +57 -18
  14. package/dist/cjs/vertex-badge.cjs.entry.js +11 -0
  15. package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
  16. package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
  17. package/dist/cjs/vertex-popover.cjs.entry.js +1 -1
  18. package/dist/cjs/vertex-result-list.cjs.entry.js +1 -1
  19. package/dist/cjs/vertex-search-bar.cjs.entry.js +1 -1
  20. package/dist/cjs/vertex-select.cjs.entry.js +1 -1
  21. package/dist/cjs/vertex-textfield.cjs.entry.js +1 -1
  22. package/dist/cjs/vertex-tooltip.cjs.entry.js +1 -1
  23. package/dist/collection/collection-manifest.json +2 -1
  24. package/dist/collection/components/badge/badge.css +18 -0
  25. package/dist/collection/components/badge/badge.js +69 -0
  26. package/dist/collection/components/icon/icon-helper.js +9 -0
  27. package/dist/collection/components/icon/icon.js +1 -1
  28. package/dist/collection/components/icon/icons/comment-filled.js +2 -0
  29. package/dist/collection/components/icon/icons/compare.js +2 -0
  30. package/dist/collection/components/icon/icons/pin-text-square.js +2 -0
  31. package/dist/collection/components/icon-button/icon-button.css +16 -1
  32. package/dist/collection/components/icon-button/icon-button.js +2 -2
  33. package/dist/collection/components/index.js +1 -0
  34. package/dist/collection/components/menu/menu.js +1 -1
  35. package/dist/collection/components/popover/popover.js +51 -0
  36. package/dist/collection/components/result-list/result-list.js +52 -5
  37. package/dist/collection/components/result-list/types.js +1 -0
  38. package/dist/collection/components/search-bar/dom.js +12 -0
  39. package/dist/collection/components/search-bar/lib.js +35 -15
  40. package/dist/collection/components/search-bar/search-bar.css +0 -16
  41. package/dist/collection/components/search-bar/search-bar.js +380 -324
  42. package/dist/collection/components/select/select.css +16 -0
  43. package/dist/collection/components/select/select.js +49 -2
  44. package/dist/collection/components/text-field/text-field.js +1 -0
  45. package/dist/collection/components/tooltip/tooltip.js +62 -18
  46. package/dist/collection/types/icon.js +3 -0
  47. package/dist/collection/util/templates/element-pool.js +19 -1
  48. package/dist/components/components.css +1 -1
  49. package/dist/components/components.esm.js +1 -1
  50. package/dist/components/index.esm.js +1 -1
  51. package/dist/components/p-08f0434e.js +1 -0
  52. package/dist/components/p-0b1cdc8a.entry.js +1 -0
  53. package/dist/components/p-0b4406fa.entry.js +1 -0
  54. package/dist/components/p-29d7697f.js +1 -0
  55. package/dist/components/p-406e73da.entry.js +1 -0
  56. package/dist/components/p-43b1b3f9.js +1 -0
  57. package/dist/components/p-606596de.entry.js +1 -0
  58. package/dist/components/p-6b862967.js +1 -0
  59. package/dist/components/p-7cfb3736.entry.js +1 -0
  60. package/dist/components/p-90a530df.entry.js +1 -0
  61. package/dist/components/p-912f6e24.js +1 -0
  62. package/dist/components/{p-17b97932.js → p-91811c21.js} +1 -1
  63. package/dist/components/p-92930f2a.js +1 -0
  64. package/dist/components/p-9340952f.entry.js +1 -0
  65. package/dist/components/p-c2706288.js +1 -0
  66. package/dist/components/p-cfe369bf.entry.js +1 -0
  67. package/dist/components/p-db34f10c.js +1 -0
  68. package/dist/components/p-ee496965.entry.js +1 -0
  69. package/dist/components/p-f007c274.js +1 -0
  70. package/dist/esm/badge-6d27ca92.js +21 -0
  71. package/dist/esm/components.js +1 -1
  72. package/dist/esm/icon-button-b0992730.js +41 -0
  73. package/dist/esm/{icon-2630793d.js → icon-c48d1e4c.js} +1 -1
  74. package/dist/esm/{icon-helper-10a99d95.js → icon-helper-cf9f8ca1.js} +18 -0
  75. package/dist/esm/index.js +10 -9
  76. package/dist/esm/loader.js +1 -1
  77. package/dist/esm/{popover-67c88e4b.js → popover-6e806354.js} +23 -1
  78. package/dist/esm/{result-list-36cfb08a.js → result-list-16c6afbd.js} +46 -2
  79. package/dist/esm/search-bar-f12a3599.js +419 -0
  80. package/dist/esm/{select-75ed5653.js → select-d4e135b7.js} +27 -4
  81. package/dist/esm/{text-field-e542da25.js → text-field-32ac877e.js} +1 -0
  82. package/dist/esm/{tooltip-97c1b3ec.js → tooltip-933da261.js} +57 -18
  83. package/dist/esm/vertex-badge.entry.js +3 -0
  84. package/dist/esm/vertex-icon-button.entry.js +2 -2
  85. package/dist/esm/vertex-icon.entry.js +2 -2
  86. package/dist/esm/vertex-popover.entry.js +1 -1
  87. package/dist/esm/vertex-result-list.entry.js +1 -1
  88. package/dist/esm/vertex-search-bar.entry.js +1 -1
  89. package/dist/esm/vertex-select.entry.js +1 -1
  90. package/dist/esm/vertex-textfield.entry.js +1 -1
  91. package/dist/esm/vertex-tooltip.entry.js +1 -1
  92. package/dist/types/components/badge/badge.d.ts +14 -0
  93. package/dist/types/components/icon/icons/comment-filled.d.ts +3 -0
  94. package/dist/types/components/icon/icons/compare.d.ts +3 -0
  95. package/dist/types/components/icon/icons/pin-text-square.d.ts +3 -0
  96. package/dist/types/components/index.d.ts +1 -0
  97. package/dist/types/components/popover/popover.d.ts +7 -0
  98. package/dist/types/components/result-list/result-list.d.ts +6 -1
  99. package/dist/types/components/result-list/types.d.ts +4 -0
  100. package/dist/types/components/search-bar/dom.d.ts +3 -0
  101. package/dist/types/components/search-bar/lib.d.ts +24 -6
  102. package/dist/types/components/search-bar/search-bar.d.ts +124 -42
  103. package/dist/types/components/select/select.d.ts +8 -0
  104. package/dist/types/components/tooltip/tooltip.d.ts +7 -0
  105. package/dist/types/components.d.ts +122 -20
  106. package/dist/types/types/icon.d.ts +3 -0
  107. package/dist/types/util/templates/element-pool.d.ts +10 -1
  108. package/package.json +4 -3
  109. package/dist/cjs/icon-button-f868bf06.js +0 -43
  110. package/dist/cjs/search-bar-bb40cfa7.js +0 -290
  111. package/dist/components/p-19318fee.entry.js +0 -1
  112. package/dist/components/p-1d6cb015.entry.js +0 -1
  113. package/dist/components/p-209db2ba.entry.js +0 -1
  114. package/dist/components/p-4224c2ad.js +0 -1
  115. package/dist/components/p-52739247.js +0 -1
  116. package/dist/components/p-552c128f.js +0 -1
  117. package/dist/components/p-6505cdb3.js +0 -1
  118. package/dist/components/p-79fd6fb6.entry.js +0 -1
  119. package/dist/components/p-94168b92.js +0 -1
  120. package/dist/components/p-ae6a3c46.entry.js +0 -1
  121. package/dist/components/p-bd11e7d1.js +0 -1
  122. package/dist/components/p-e576818b.entry.js +0 -1
  123. package/dist/components/p-ebabee40.entry.js +0 -1
  124. package/dist/components/p-ee8b96b2.js +0 -1
  125. package/dist/components/p-f49a7ffd.js +0 -1
  126. package/dist/components/p-f900d0f4.entry.js +0 -1
  127. package/dist/esm/icon-button-25edf617.js +0 -41
  128. package/dist/esm/search-bar-59cc151d.js +0 -288
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const iconButton = require('./icon-button-f868bf06.js');
5
+ const iconButton = require('./icon-button-e2dbc8b2.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
- require('./icon-helper-caf2699e.js');
8
+ require('./icon-helper-c24d6e6b.js');
9
9
 
10
10
 
11
11
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const icon = require('./icon-53d62a46.js');
5
+ const icon = require('./icon-c40f74ca.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
- require('./icon-helper-caf2699e.js');
8
+ require('./icon-helper-c24d6e6b.js');
9
9
 
10
10
 
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const popover = require('./popover-d9ec8e10.js');
5
+ const popover = require('./popover-942209b8.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const resultList = require('./result-list-1e592c3c.js');
5
+ const resultList = require('./result-list-241ffe8d.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
8
  require('./templates-e7b3ffbb.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const searchBar = require('./search-bar-bb40cfa7.js');
5
+ const searchBar = require('./search-bar-91cbcd07.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
8
  require('./templates-e7b3ffbb.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const select = require('./select-0eb7203f.js');
5
+ const select = require('./select-5f8aecfe.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const textField = require('./text-field-0397fb34.js');
5
+ const textField = require('./text-field-bccbde1f.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./index-e1b40fa6.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const tooltip = require('./tooltip-80a7b722.js');
5
+ const tooltip = require('./tooltip-e9f63631.js');
6
6
  require('./index-6a92256c.js');
7
7
  require('./tslib.es6-838fd860.js');
8
8
  require('./index-e1b40fa6.js');
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "entries": [
3
3
  "./components/avatar/avatar.js",
4
+ "./components/badge/badge.js",
4
5
  "./components/button/button.js",
5
6
  "./components/card/card.js",
6
7
  "./components/chip/chip.js",
@@ -11,7 +12,6 @@
11
12
  "./components/icon-button/icon-button.js",
12
13
  "./components/radio/radio.js",
13
14
  "./components/resizable/resizable.js",
14
- "./components/result-list/result-list.js",
15
15
  "./components/search-bar/search-bar.js",
16
16
  "./components/slider/slider.js",
17
17
  "./components/spinner/spinner.js",
@@ -35,6 +35,7 @@
35
35
  "./components/menu-divider/menu-divider.js",
36
36
  "./components/menu-item/menu-item.js",
37
37
  "./components/radio-group/radio-group.js",
38
+ "./components/result-list/result-list.js",
38
39
  "./components/select/select.js",
39
40
  "./components/tooltip/tooltip.js"
40
41
  ],
@@ -0,0 +1,18 @@
1
+ .string-overlay {
2
+ width: 100%;
3
+ line-height: 1.0rem;
4
+ margin-left: 5px;
5
+ margin-right: 5px;
6
+ border-radius: 10px;
7
+ font-size: var(--vertex-ui-text-xxs);
8
+ }
9
+
10
+ .string-overlay.primary {
11
+ color: var(--vertex-ui-white);
12
+ background-color: var(--vertex-ui-blue-600)
13
+ }
14
+
15
+ .string-overlay.secondary {
16
+ color: var(--vertex-ui-black);
17
+ background-color: var(--vertex-ui-neutral-300)
18
+ }
@@ -0,0 +1,69 @@
1
+ import { h, Host } from '@stencil/core';
2
+ import classNames from 'classnames';
3
+ export class Badge {
4
+ constructor() {
5
+ this.badgeText = undefined;
6
+ this.badgeColor = 'primary';
7
+ }
8
+ render() {
9
+ return (h(Host, null, h("div", { class: classNames('string-overlay', {
10
+ primary: this.badgeColor === 'primary',
11
+ secondary: this.badgeColor === 'secondary',
12
+ }) }, this.badgeText)));
13
+ }
14
+ static get is() { return "vertex-badge"; }
15
+ static get encapsulation() { return "shadow"; }
16
+ static get originalStyleUrls() {
17
+ return {
18
+ "$": ["badge.css"]
19
+ };
20
+ }
21
+ static get styleUrls() {
22
+ return {
23
+ "$": ["badge.css"]
24
+ };
25
+ }
26
+ static get properties() {
27
+ return {
28
+ "badgeText": {
29
+ "type": "string",
30
+ "mutable": false,
31
+ "complexType": {
32
+ "original": "string",
33
+ "resolved": "string | undefined",
34
+ "references": {}
35
+ },
36
+ "required": false,
37
+ "optional": true,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": "The string to show in the badge."
41
+ },
42
+ "attribute": "badge-text",
43
+ "reflect": false
44
+ },
45
+ "badgeColor": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "BadgeIconColor",
50
+ "resolved": "\"primary\" | \"secondary\"",
51
+ "references": {
52
+ "BadgeIconColor": {
53
+ "location": "local"
54
+ }
55
+ }
56
+ },
57
+ "required": false,
58
+ "optional": false,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": "The color of the badge displayed in this <vertex-badge>.\nCan be \"primary\" or \"secondary\", and defaults to \"primary.\""
62
+ },
63
+ "attribute": "badge-color",
64
+ "reflect": false,
65
+ "defaultValue": "'primary'"
66
+ }
67
+ };
68
+ }
69
+ }
@@ -37,9 +37,11 @@ import { CloseCircleFill } from './icons/close-circle-fill';
37
37
  import { CollapseAll } from './icons/collapse-all';
38
38
  import { Columns } from './icons/columns';
39
39
  import { CommentAdd } from './icons/comment-add';
40
+ import { CommentFilled } from './icons/comment-filled';
40
41
  import { CommentReopen } from './icons/comment-reopen';
41
42
  import { CommentResolve } from './icons/comment-resolve';
42
43
  import { CommentShow } from './icons/comment-show';
44
+ import { Compare } from './icons/compare';
43
45
  import { Copy } from './icons/copy';
44
46
  import { CrossSection } from './icons/cross-section';
45
47
  import { CubeOrthographic } from './icons/cube-orthographic';
@@ -84,6 +86,7 @@ import { PinFill } from './icons/pin-fill';
84
86
  import { PinLine } from './icons/pin-line';
85
87
  import { PinText } from './icons/pin-text';
86
88
  import { PinTextFill } from './icons/pin-text-fill';
89
+ import { PinTextSquare } from './icons/pin-text-square';
87
90
  import { Plus } from './icons/plus';
88
91
  import { PreciseMeasurement } from './icons/precise-measurement';
89
92
  import { Rabbit } from './icons/rabbit';
@@ -183,12 +186,16 @@ export function getSvg(name) {
183
186
  return h(Columns, null);
184
187
  case 'comment-add':
185
188
  return h(CommentAdd, null);
189
+ case 'comment-filled':
190
+ return h(CommentFilled, null);
186
191
  case 'comment-reopen':
187
192
  return h(CommentReopen, null);
188
193
  case 'comment-resolve':
189
194
  return h(CommentResolve, null);
190
195
  case 'comment-show':
191
196
  return h(CommentShow, null);
197
+ case 'compare':
198
+ return h(Compare, null);
192
199
  case 'copy':
193
200
  return h(Copy, null);
194
201
  case 'cross-section':
@@ -277,6 +284,8 @@ export function getSvg(name) {
277
284
  return h(PinText, null);
278
285
  case 'pin-text-fill':
279
286
  return h(PinTextFill, null);
287
+ case 'pin-text-square':
288
+ return h(PinTextSquare, null);
280
289
  case 'plus':
281
290
  return h(Plus, null);
282
291
  case 'precise-measurement':
@@ -33,7 +33,7 @@ export class Icon {
33
33
  "mutable": false,
34
34
  "complexType": {
35
35
  "original": "IconName",
36
- "resolved": "\"help\" | \"open\" | \"info\" | \"copy\" | \"menu\" | \"ellipse\" | \"line\" | \"download\" | \"rotate\" | \"close\" | \"flip\" | \"reset\" | \"resize\" | \"search\" | \"caret-down\" | \"caret-up\" | \"adjustments\" | \"align-to-global\" | \"align-to-part\" | \"align-to-surface\" | \"align-view-to-plane\" | \"annotation\" | \"arrow-filled\" | \"arrow-line-left\" | \"arrow-line-right\" | \"arrow-partial\" | \"arrow-triangle-left\" | \"arrow-triangle-right\" | \"arrow-up-circled\" | \"attachment\" | \"axis-x\" | \"axis-y\" | \"axis-z\" | \"back\" | \"box-cursor\" | \"box-select\" | \"camera\" | \"caret-left\" | \"check\" | \"check-circle\" | \"caret-right\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-up\" | \"circle-outline\" | \"close-circle-fill\" | \"close-circle\" | \"collapse-all\" | \"columns\" | \"comment-add\" | \"comment-reopen\" | \"comment-resolve\" | \"comment-show\" | \"cross-section\" | \"cube-orthographic\" | \"cube-perspective\" | \"delete\" | \"drag-indicator\" | \"error-circle\" | \"expand-all\" | \"export\" | \"file\" | \"file-pdf\" | \"fit-all\" | \"fit-selected\" | \"folder-plus\" | \"forward\" | \"gear\" | \"invert\" | \"line-dot-left\" | \"line-dot-right\" | \"line-hash-left\" | \"line-hash-right\" | \"locate\" | \"markup\" | \"notification\" | \"open-window\" | \"pan\" | \"pencil\" | \"person-height\" | \"person-run\" | \"person-short\" | \"person-tall\" | \"person-walk\" | \"pin-fill\" | \"pin-line\" | \"pin-text\" | \"pin-text-fill\" | \"plus\" | \"precise-measurement\" | \"rabbit\" | \"ruler\" | \"show-only-nearby\" | \"snapshots\" | \"star\" | \"tape-measure\" | \"teleport-and-align\" | \"teleport-toward\" | \"teleport\" | \"turtle\" | \"version-history\" | \"visibility-hidden\" | \"visibility-partial\" | \"visibility-visible\" | \"zoom\"",
36
+ "resolved": "\"compare\" | \"help\" | \"open\" | \"info\" | \"copy\" | \"menu\" | \"ellipse\" | \"line\" | \"download\" | \"rotate\" | \"close\" | \"flip\" | \"reset\" | \"resize\" | \"search\" | \"caret-down\" | \"caret-up\" | \"adjustments\" | \"align-to-global\" | \"align-to-part\" | \"align-to-surface\" | \"align-view-to-plane\" | \"annotation\" | \"arrow-filled\" | \"arrow-line-left\" | \"arrow-line-right\" | \"arrow-partial\" | \"arrow-triangle-left\" | \"arrow-triangle-right\" | \"arrow-up-circled\" | \"attachment\" | \"axis-x\" | \"axis-y\" | \"axis-z\" | \"back\" | \"box-cursor\" | \"box-select\" | \"camera\" | \"caret-left\" | \"check\" | \"check-circle\" | \"caret-right\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-up\" | \"circle-outline\" | \"close-circle-fill\" | \"close-circle\" | \"collapse-all\" | \"columns\" | \"comment-add\" | \"comment-filled\" | \"comment-reopen\" | \"comment-resolve\" | \"comment-show\" | \"cross-section\" | \"cube-orthographic\" | \"cube-perspective\" | \"delete\" | \"drag-indicator\" | \"error-circle\" | \"expand-all\" | \"export\" | \"file\" | \"file-pdf\" | \"fit-all\" | \"fit-selected\" | \"folder-plus\" | \"forward\" | \"gear\" | \"invert\" | \"line-dot-left\" | \"line-dot-right\" | \"line-hash-left\" | \"line-hash-right\" | \"locate\" | \"markup\" | \"notification\" | \"open-window\" | \"pan\" | \"pencil\" | \"person-height\" | \"person-run\" | \"person-short\" | \"person-tall\" | \"person-walk\" | \"pin-fill\" | \"pin-line\" | \"pin-text\" | \"pin-text-fill\" | \"pin-text-square\" | \"plus\" | \"precise-measurement\" | \"rabbit\" | \"ruler\" | \"show-only-nearby\" | \"snapshots\" | \"star\" | \"tape-measure\" | \"teleport-and-align\" | \"teleport-toward\" | \"teleport\" | \"turtle\" | \"version-history\" | \"visibility-hidden\" | \"visibility-partial\" | \"visibility-visible\" | \"zoom\"",
37
37
  "references": {
38
38
  "IconName": {
39
39
  "location": "import",
@@ -0,0 +1,2 @@
1
+ import { h } from '@stencil/core';
2
+ export const CommentFilled = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", "data-testid": "comment-filled" }, h("path", { d: "M2.5 2A1.5 1.5 0 0 0 1 3.5v7A1.5 1.5 0 0 0 2.5 12h5.79l2.86 2.85a.47.47 0 0 0 .54.11.5.5 0 0 0 .31-.46V12h1.5a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 13.5 2Zm0 1h11a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-2a.51.51 0 0 0-.5.5v1.79l-2.15-2.14A.47.47 0 0 0 8.5 11h-6a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5Z" }), h("path", { d: "M11.306 14.941c-.085-.042-.422-.367-1.55-1.497L8.314 12H5.431c-1.806 0-2.955-.009-3.075-.022a1.49 1.49 0 0 1-1.257-.98l-.07-.18-.005-3.756c-.006-4.202-.018-3.888.152-4.233a1.18 1.18 0 0 1 .276-.369c.204-.204.374-.307.651-.393l.163-.05h11.468l.163.05c.271.085.448.19.64.383s.288.34.375.578l.058.159v7.631l-.069.18c-.168.436-.495.76-.911.905-.225.078-.465.097-1.269.097h-.73l-.007 1.319-.006 1.319-.065.106c-.135.217-.394.301-.607.197zm-.223-3.68a.527.527 0 0 1 .31-.235c.056-.015.46-.023 1.155-.023 1.178 0 1.157.002 1.303-.137a.616.616 0 0 0 .113-.156c.039-.083.04-.227.04-3.708l.001-3.622-.057-.115a.476.476 0 0 0-.335-.26c-.152-.033-11.074-.033-11.226 0a.476.476 0 0 0-.335.26l-.057.115v3.617c0 3.994-.011 3.697.136 3.85.15.158-.147.144 3.343.156 3.026.01 3.147.012 3.22.051.042.023.578.54 1.192 1.15l1.117 1.108.01-.976.011-.976z", stroke: "currentColor", "stroke-width": ".0216802" }), h("path", { d: "M9.888 12.26c-.799-.783-1.159-1.121-1.23-1.156l-.103-.05-3.264-.01-3.265-.011-.106-.062a.477.477 0 0 1-.17-.166l-.062-.104V3.238l.068-.096a.722.722 0 0 1 .179-.162l.11-.067h11.729l.093.049a.58.58 0 0 1 .25.266c.024.058.03.714.03 3.75v3.68l-.058.114a.527.527 0 0 1-.247.24c-.025.011-.58.025-1.231.031-1.167.011-1.188.012-1.279.06a.697.697 0 0 0-.265.27c-.018.04-.03.35-.038 1.026l-.011.968z", stroke: "currentColor", "stroke-width": "2.36182", "stroke-miterlimit": "4", "stroke-dasharray": "none" })));
@@ -0,0 +1,2 @@
1
+ import { h } from '@stencil/core';
2
+ export const Compare = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", "data-testid": "compare" }, h("path", { d: "M8.27 9.94 5.89 7.56c-.11-.11-.23-.17-.36-.17s-.25.06-.36.17c-.11.11-.16.23-.15.37 0 .13.06.25.15.34l1.74 1.74H1.5c-.14 0-.26.05-.36.14-.1.1-.14.21-.14.36s.05.26.14.36c.1.1.21.14.36.14h5.42l-1.74 1.74c-.11.11-.16.23-.16.35 0 .13.06.24.16.35.11.11.23.16.36.16.13 0 .25-.06.34-.15l2.39-2.39c.09-.09.15-.18.18-.27.04-.09.05-.19.05-.3s-.02-.21-.05-.3c-.04-.09-.1-.18-.18-.27Zm6.59-4.79c-.1-.1-.21-.14-.36-.14H9.11l1.74-1.74c.11-.11.16-.23.16-.35 0-.13-.06-.24-.16-.35a.495.495 0 0 0-.36-.16c-.13 0-.25.06-.34.15L7.76 4.95c-.09.09-.15.18-.18.27-.04.09-.05.19-.05.3s.02.21.05.3c.04.09.1.18.18.27l2.38 2.38c.11.11.23.17.36.17s.25-.06.36-.17c.11-.11.16-.23.15-.37 0-.13-.06-.25-.15-.34L9.12 6.02h5.39c.14 0 .26-.05.36-.14.1-.1.14-.21.14-.36s-.05-.26-.14-.36Z" })));
@@ -0,0 +1,2 @@
1
+ import { h } from '@stencil/core';
2
+ export const PinTextSquare = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", "data-testid": "pin-text-square" }, h("path", { d: "M13.51 14.97H2.5c-.83 0-1.5-.67-1.5-1.5V2.5C1 1.67 1.67 1 2.5 1h11.01c.83 0 1.5.67 1.5 1.5v10.97c0 .83-.67 1.5-1.5 1.5ZM2.5 2c-.28 0-.5.22-.5.5v10.97c0 .28.22.5.5.5h11.01c.28 0 .5-.22.5-.5V2.5c0-.28-.22-.5-.5-.5H2.5Z" }), h("path", { d: "m3.98 11.97 3.3-8h1.37l3.37 8h-1.04l-.88-2.01H5.9l-.91 2.01H3.98Zm4.02-7-1.76 4h3.42L8 4.97Z" })));
@@ -44,9 +44,14 @@ button {
44
44
  --active-box-shadow: none;
45
45
  /*
46
46
  The box shadow of this button when focused.
47
- Defaults to 0 0 0 1px var(--vertex-ui-neutral-900).
47
+ Defaults to 0 0 0 1px var(--vertex-ui-neutral-900).
48
48
  */
49
49
  --focus-box-shadow: 0 0 0 1px var(--vertex-ui-neutral-900);
50
+ /*
51
+ The margin around the icon.
52
+ Defaults to 0px.
53
+ */
54
+ --icon-margin: 0px;
50
55
  }
51
56
 
52
57
  .container {
@@ -66,6 +71,7 @@ button {
66
71
 
67
72
  .icon-button {
68
73
  display: flex;
74
+ position: relative;
69
75
  justify-content: center;
70
76
  align-items: center;
71
77
  fill: currentColor;
@@ -76,6 +82,15 @@ button {
76
82
  .icon-button svg {
77
83
  width: 100%;
78
84
  height: 100%;
85
+ margin: var(--icon-margin, 0px);
86
+ }
87
+
88
+ .badge {
89
+ position: absolute;
90
+ top: 0px;
91
+ right: 4px;
92
+ justify-content: flex-end;
93
+ align-items: flex-end;
79
94
  }
80
95
 
81
96
  .floating {
@@ -21,7 +21,7 @@ export class IconButton {
21
21
  sm: this.iconSize === 'sm',
22
22
  md: this.iconSize === 'md',
23
23
  lg: this.iconSize === 'lg',
24
- }) }, getSvg(this.iconName)), h("slot", null))));
24
+ }) }, getSvg(this.iconName), h("div", { class: "badge" }, h("slot", { name: "badge" }))), h("slot", null))));
25
25
  }
26
26
  handleClick(event) {
27
27
  var _a;
@@ -50,7 +50,7 @@ export class IconButton {
50
50
  "mutable": false,
51
51
  "complexType": {
52
52
  "original": "IconName",
53
- "resolved": "\"help\" | \"open\" | \"info\" | \"copy\" | \"menu\" | \"ellipse\" | \"line\" | \"download\" | \"rotate\" | \"close\" | \"flip\" | \"reset\" | \"resize\" | \"search\" | \"caret-down\" | \"caret-up\" | \"adjustments\" | \"align-to-global\" | \"align-to-part\" | \"align-to-surface\" | \"align-view-to-plane\" | \"annotation\" | \"arrow-filled\" | \"arrow-line-left\" | \"arrow-line-right\" | \"arrow-partial\" | \"arrow-triangle-left\" | \"arrow-triangle-right\" | \"arrow-up-circled\" | \"attachment\" | \"axis-x\" | \"axis-y\" | \"axis-z\" | \"back\" | \"box-cursor\" | \"box-select\" | \"camera\" | \"caret-left\" | \"check\" | \"check-circle\" | \"caret-right\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-up\" | \"circle-outline\" | \"close-circle-fill\" | \"close-circle\" | \"collapse-all\" | \"columns\" | \"comment-add\" | \"comment-reopen\" | \"comment-resolve\" | \"comment-show\" | \"cross-section\" | \"cube-orthographic\" | \"cube-perspective\" | \"delete\" | \"drag-indicator\" | \"error-circle\" | \"expand-all\" | \"export\" | \"file\" | \"file-pdf\" | \"fit-all\" | \"fit-selected\" | \"folder-plus\" | \"forward\" | \"gear\" | \"invert\" | \"line-dot-left\" | \"line-dot-right\" | \"line-hash-left\" | \"line-hash-right\" | \"locate\" | \"markup\" | \"notification\" | \"open-window\" | \"pan\" | \"pencil\" | \"person-height\" | \"person-run\" | \"person-short\" | \"person-tall\" | \"person-walk\" | \"pin-fill\" | \"pin-line\" | \"pin-text\" | \"pin-text-fill\" | \"plus\" | \"precise-measurement\" | \"rabbit\" | \"ruler\" | \"show-only-nearby\" | \"snapshots\" | \"star\" | \"tape-measure\" | \"teleport-and-align\" | \"teleport-toward\" | \"teleport\" | \"turtle\" | \"version-history\" | \"visibility-hidden\" | \"visibility-partial\" | \"visibility-visible\" | \"zoom\"",
53
+ "resolved": "\"compare\" | \"help\" | \"open\" | \"info\" | \"copy\" | \"menu\" | \"ellipse\" | \"line\" | \"download\" | \"rotate\" | \"close\" | \"flip\" | \"reset\" | \"resize\" | \"search\" | \"caret-down\" | \"caret-up\" | \"adjustments\" | \"align-to-global\" | \"align-to-part\" | \"align-to-surface\" | \"align-view-to-plane\" | \"annotation\" | \"arrow-filled\" | \"arrow-line-left\" | \"arrow-line-right\" | \"arrow-partial\" | \"arrow-triangle-left\" | \"arrow-triangle-right\" | \"arrow-up-circled\" | \"attachment\" | \"axis-x\" | \"axis-y\" | \"axis-z\" | \"back\" | \"box-cursor\" | \"box-select\" | \"camera\" | \"caret-left\" | \"check\" | \"check-circle\" | \"caret-right\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-up\" | \"circle-outline\" | \"close-circle-fill\" | \"close-circle\" | \"collapse-all\" | \"columns\" | \"comment-add\" | \"comment-filled\" | \"comment-reopen\" | \"comment-resolve\" | \"comment-show\" | \"cross-section\" | \"cube-orthographic\" | \"cube-perspective\" | \"delete\" | \"drag-indicator\" | \"error-circle\" | \"expand-all\" | \"export\" | \"file\" | \"file-pdf\" | \"fit-all\" | \"fit-selected\" | \"folder-plus\" | \"forward\" | \"gear\" | \"invert\" | \"line-dot-left\" | \"line-dot-right\" | \"line-hash-left\" | \"line-hash-right\" | \"locate\" | \"markup\" | \"notification\" | \"open-window\" | \"pan\" | \"pencil\" | \"person-height\" | \"person-run\" | \"person-short\" | \"person-tall\" | \"person-walk\" | \"pin-fill\" | \"pin-line\" | \"pin-text\" | \"pin-text-fill\" | \"pin-text-square\" | \"plus\" | \"precise-measurement\" | \"rabbit\" | \"ruler\" | \"show-only-nearby\" | \"snapshots\" | \"star\" | \"tape-measure\" | \"teleport-and-align\" | \"teleport-toward\" | \"teleport\" | \"turtle\" | \"version-history\" | \"visibility-hidden\" | \"visibility-partial\" | \"visibility-visible\" | \"zoom\"",
54
54
  "references": {
55
55
  "IconName": {
56
56
  "location": "import",
@@ -1,6 +1,7 @@
1
1
  export * from './auto-resize-textarea/auto-resize-textarea';
2
2
  export * from './avatar/avatar';
3
3
  export * from './avatar-group/avatar-group';
4
+ export * from './badge/badge';
4
5
  export * from './button/button';
5
6
  export * from './card/card';
6
7
  export * from './card-group/card-group';
@@ -182,7 +182,7 @@ export class Menu {
182
182
  "mutable": false,
183
183
  "complexType": {
184
184
  "original": "Partial<Popover>",
185
- "resolved": "undefined | ({ open?: boolean | undefined; placement?: Placement | undefined; position?: string | Point | undefined; anchorBounds?: Pick<DOMRect, \"height\" | \"width\" | \"x\" | \"y\"> | undefined; backdrop?: boolean | undefined; animated?: boolean | undefined; anchorSelector?: string | undefined; boundarySelector?: string | undefined; resizeBehavior?: PopoverResizeBehavior | undefined; overflowBehavior?: { rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; padding?: Padding | undefined; boundary?: Boundary | undefined; } | undefined; flipBehavior?: { rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; padding?: Padding | undefined; crossAxis?: boolean | undefined; mainAxis?: boolean | undefined; fallbackPlacements?: Placement[] | undefined; fallbackStrategy?: \"bestFit\" | \"initialPlacement\" | undefined; fallbackAxisSideDirection?: \"none\" | \"start\" | \"end\" | undefined; flipAlignment?: boolean | undefined; boundary?: Boundary | undefined; } | undefined; offsetBehavior?: OffsetOptions | undefined; updateOnResize?: boolean | undefined; dismissed?: EventEmitter<void> | undefined; connectedCallback?: (() => void) | undefined; componentDidUpdate?: (() => void) | undefined; componentDidLoad?: (() => void) | undefined; disconnectedCallback?: (() => void) | undefined; updatePosition?: ((position?: string | Point | undefined) => void) | undefined; updatePlacement?: (() => void) | undefined; updateOpened?: ((open?: boolean | undefined) => void) | undefined; updateAnimated?: (() => void) | undefined; updateMiddleware?: (() => void) | undefined; setWindow?: ((partialWindow: Pick<Window, \"innerHeight\" | \"innerWidth\">) => void) | undefined; render?: (() => IntrinsicElements) | undefined; })",
185
+ "resolved": "undefined | ({ open?: boolean | undefined; placement?: Placement | undefined; position?: string | Point | undefined; anchorBounds?: Pick<DOMRect, \"height\" | \"width\" | \"x\" | \"y\"> | undefined; backdrop?: boolean | undefined; animated?: boolean | undefined; anchorSelector?: string | undefined; boundarySelector?: string | undefined; resizeBehavior?: PopoverResizeBehavior | undefined; overflowBehavior?: { rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; padding?: Padding | undefined; boundary?: Boundary | undefined; } | undefined; flipBehavior?: { rootBoundary?: RootBoundary | undefined; elementContext?: ElementContext | undefined; altBoundary?: boolean | undefined; padding?: Padding | undefined; crossAxis?: boolean | undefined; mainAxis?: boolean | undefined; fallbackPlacements?: Placement[] | undefined; fallbackStrategy?: \"bestFit\" | \"initialPlacement\" | undefined; fallbackAxisSideDirection?: \"none\" | \"start\" | \"end\" | undefined; flipAlignment?: boolean | undefined; boundary?: Boundary | undefined; } | undefined; offsetBehavior?: OffsetOptions | undefined; updateOnResize?: boolean | undefined; dismissed?: EventEmitter<void> | undefined; resizeObserverFactory?: ((cb: (entries: ResizeObserverEntry[]) => void) => ResizeObserver) | undefined; connectedCallback?: (() => void) | undefined; componentDidUpdate?: (() => void) | undefined; componentDidLoad?: (() => void) | undefined; disconnectedCallback?: (() => void) | undefined; updatePosition?: ((position?: string | Point | undefined) => void) | undefined; updatePlacement?: (() => void) | undefined; updateOpened?: ((open?: boolean | undefined) => void) | undefined; updateAnimated?: (() => void) | undefined; updateMiddleware?: (() => void) | undefined; updateResizeObserver?: (() => void) | undefined; setWindow?: ((partialWindow: Pick<Window, \"innerHeight\" | \"innerWidth\">) => void) | undefined; render?: (() => IntrinsicElements) | undefined; })",
186
186
  "references": {
187
187
  "Partial": {
188
188
  "location": "global"
@@ -24,13 +24,17 @@ export class Popover {
24
24
  this.updateOnResize = false;
25
25
  this.opened = false;
26
26
  this.computedPlacement = this.placement;
27
+ this.resizeObserverFactory = (cb) => new ResizeObserver(cb);
27
28
  this.updateListener = this.updateListener.bind(this);
28
29
  this.handlePositionUpdate = this.handlePositionUpdate.bind(this);
29
30
  this.handleResize = this.handleResize.bind(this);
31
+ this.handleMiddlewareChange = this.handleMiddlewareChange.bind(this);
30
32
  this.setWindow = this.setWindow.bind(this);
33
+ this.updateResizeObserver = this.updateResizeObserver.bind(this);
31
34
  }
32
35
  connectedCallback() {
33
36
  this.updatePosition(this.position);
37
+ this.updateResizeObserver();
34
38
  }
35
39
  componentDidUpdate() {
36
40
  if (this.shouldUpdatePosition) {
@@ -52,12 +56,14 @@ export class Popover {
52
56
  }
53
57
  }
54
58
  disconnectedCallback() {
59
+ var _a;
55
60
  this.viewportWidth = undefined;
56
61
  this.viewportHeight = undefined;
57
62
  this.opened = false;
58
63
  if (this.resizeBehavior === 'dynamic') {
59
64
  window.removeEventListener('resize', this.handleResize);
60
65
  }
66
+ (_a = this.boundaryResizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
61
67
  }
62
68
  updatePosition(position) {
63
69
  if (position != null) {
@@ -81,6 +87,16 @@ export class Popover {
81
87
  updateMiddleware() {
82
88
  this.handleMiddlewareChange();
83
89
  }
90
+ updateResizeObserver() {
91
+ const observer = this.getOrCreateResizeObserver();
92
+ observer.disconnect();
93
+ if (this.boundarySelector != null) {
94
+ const element = document.querySelector(this.boundarySelector);
95
+ if (element != null) {
96
+ observer.observe(element);
97
+ }
98
+ }
99
+ }
84
100
  /**
85
101
  * @private Used for internals or testing.
86
102
  */
@@ -186,6 +202,12 @@ export class Popover {
186
202
  this.viewportWidth = this.partialWindow.innerWidth;
187
203
  this.viewportHeight = this.partialWindow.innerHeight;
188
204
  }
205
+ getOrCreateResizeObserver() {
206
+ if (this.boundaryResizeObserver == null) {
207
+ this.boundaryResizeObserver = this.resizeObserverFactory(this.handleMiddlewareChange);
208
+ }
209
+ return this.boundaryResizeObserver;
210
+ }
189
211
  getTransformClass() {
190
212
  if (this.animated) {
191
213
  switch (this.computedPlacement) {
@@ -485,6 +507,32 @@ export class Popover {
485
507
  "attribute": "update-on-resize",
486
508
  "reflect": false,
487
509
  "defaultValue": "false"
510
+ },
511
+ "resizeObserverFactory": {
512
+ "type": "unknown",
513
+ "mutable": false,
514
+ "complexType": {
515
+ "original": "(\n cb: (entries: ResizeObserverEntry[]) => void\n ) => ResizeObserver",
516
+ "resolved": "(cb: (entries: ResizeObserverEntry[]) => void) => ResizeObserver",
517
+ "references": {
518
+ "ResizeObserverEntry": {
519
+ "location": "global"
520
+ },
521
+ "ResizeObserver": {
522
+ "location": "global"
523
+ }
524
+ }
525
+ },
526
+ "required": false,
527
+ "optional": false,
528
+ "docs": {
529
+ "tags": [{
530
+ "name": "internal",
531
+ "text": undefined
532
+ }],
533
+ "text": ""
534
+ },
535
+ "defaultValue": "(cb) => new ResizeObserver(cb)"
488
536
  }
489
537
  };
490
538
  }
@@ -538,6 +586,9 @@ export class Popover {
538
586
  }, {
539
587
  "propName": "offsetBehavior",
540
588
  "methodName": "updateMiddleware"
589
+ }, {
590
+ "propName": "boundarySelector",
591
+ "methodName": "updateResizeObserver"
541
592
  }];
542
593
  }
543
594
  }
@@ -1,6 +1,6 @@
1
1
  import { h, Host, } from '@stencil/core';
2
2
  import classNames from 'classnames';
3
- import { ElementPool } from '../../util/templates/element-pool';
3
+ import { ElementPool, } from '../../util/templates/element-pool';
4
4
  import { generateInstanceFromTemplate, } from '../../util/templates/templates';
5
5
  import { getResultListHeight, scrollToResult } from './lib';
6
6
  export class ResultList {
@@ -29,7 +29,7 @@ export class ResultList {
29
29
  }
30
30
  };
31
31
  this.createResultPool = () => {
32
- this.stateMap.resultPool = new ElementPool(this.hostEl, () => this.createResultInstance());
32
+ this.stateMap.resultPool = new ElementPool(this.hostEl, () => this.createResultInstance(), () => this.createResultHandlers());
33
33
  };
34
34
  this.createResultInstance = () => {
35
35
  if (this.stateMap.resultTemplate != null) {
@@ -41,6 +41,18 @@ export class ResultList {
41
41
  throw new Error('Result template not defined.');
42
42
  }
43
43
  };
44
+ this.createResultHandlers = () => {
45
+ return [
46
+ {
47
+ type: 'pointerdown',
48
+ handler: this.handlePointerDown,
49
+ },
50
+ {
51
+ type: 'click',
52
+ handler: this.handleResultClick,
53
+ },
54
+ ];
55
+ };
44
56
  this.layoutResults = () => {
45
57
  var _a, _b, _c, _d;
46
58
  const visibleRowCount = this.viewportEndIndex - this.viewportStartIndex + 1;
@@ -61,6 +73,7 @@ export class ResultList {
61
73
  el.style.top = `${(this.viewportStartIndex + index) * this.resultHeight}px`;
62
74
  el.style.width = '100%';
63
75
  el.setAttribute('is-focused', `${this.viewportStartIndex + index === this.lastFocusedIndex}`);
76
+ el.setAttribute('data-result-id', result.id);
64
77
  binding.bind(result);
65
78
  }
66
79
  });
@@ -103,6 +116,8 @@ export class ResultList {
103
116
  this.lastStartIndex = 0;
104
117
  this.lastFocusedIndex = 0;
105
118
  this.stateMap = {};
119
+ this.handleResultClick = this.handleResultClick.bind(this);
120
+ this.handlePointerDown = this.handlePointerDown.bind(this);
106
121
  }
107
122
  handleResultsChanged(results) {
108
123
  if (typeof results === 'string') {
@@ -148,6 +163,16 @@ export class ResultList {
148
163
  height: `${this.parsedResults.length * this.resultHeight}px`,
149
164
  } }, h("slot", null), h("slot", { name: "result" })))))));
150
165
  }
166
+ handlePointerDown(event) {
167
+ event.preventDefault();
168
+ }
169
+ handleResultClick(event) {
170
+ const closestIdElement = event.target.closest('[data-result-id]');
171
+ const result = this.parsedResults.find((r) => r.id === (closestIdElement === null || closestIdElement === void 0 ? void 0 : closestIdElement.getAttribute('data-result-id')));
172
+ if (result != null) {
173
+ this.resultClick.emit(result);
174
+ }
175
+ }
151
176
  computeViewportResults() {
152
177
  const viewportHeight = this.getListHeight();
153
178
  if (viewportHeight != null && this.resultHeight > 0) {
@@ -188,7 +213,8 @@ export class ResultList {
188
213
  "resolved": "Result[]",
189
214
  "references": {
190
215
  "Result": {
191
- "location": "local"
216
+ "location": "import",
217
+ "path": "./types"
192
218
  }
193
219
  }
194
220
  },
@@ -377,10 +403,31 @@ export class ResultList {
377
403
  },
378
404
  "complexType": {
379
405
  "original": "Result",
380
- "resolved": "{ [x: string]: unknown; }",
406
+ "resolved": "{ id: string; type: string; } & Record<string, unknown>",
407
+ "references": {
408
+ "Result": {
409
+ "location": "import",
410
+ "path": "./types"
411
+ }
412
+ }
413
+ }
414
+ }, {
415
+ "method": "resultClick",
416
+ "name": "resultClick",
417
+ "bubbles": true,
418
+ "cancelable": true,
419
+ "composed": true,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": ""
423
+ },
424
+ "complexType": {
425
+ "original": "Result",
426
+ "resolved": "{ id: string; type: string; } & Record<string, unknown>",
381
427
  "references": {
382
428
  "Result": {
383
- "location": "local"
429
+ "location": "import",
430
+ "path": "./types"
384
431
  }
385
432
  }
386
433
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export const getWindowSelection = () => {
2
+ if (typeof window !== 'undefined') {
3
+ return window.getSelection();
4
+ }
5
+ return undefined;
6
+ };
7
+ export const createDocumentRange = () => {
8
+ return document.createRange();
9
+ };
10
+ export const createTextNode = (text) => {
11
+ return new Text(text);
12
+ };