@vertexvis/ui 0.1.1 → 0.1.2-canary.1

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 (100) hide show
  1. package/dist/components/auto-resize-textarea.js +157 -0
  2. package/dist/components/color-swatch.js +124 -0
  3. package/dist/components/dom.js +13 -0
  4. package/dist/components/expandable.js +100 -0
  5. package/dist/components/icon-button.js +63 -0
  6. package/dist/components/icon-helper.js +722 -0
  7. package/dist/components/icon.js +43 -0
  8. package/dist/components/index.d.ts +71 -0
  9. package/dist/components/index.js +52 -0
  10. package/dist/components/index2.js +89 -0
  11. package/dist/components/menu.js +89 -0
  12. package/dist/components/popover.js +1737 -0
  13. package/dist/components/result-list.js +565 -0
  14. package/dist/components/slots.js +26 -0
  15. package/dist/components/text-field.js +171 -0
  16. package/dist/components/tooltip.js +360 -0
  17. package/dist/components/tslib.es6.js +65 -0
  18. package/dist/components/vertex-auto-resize-textarea.d.ts +11 -0
  19. package/dist/components/vertex-auto-resize-textarea.js +6 -0
  20. package/dist/components/vertex-avatar-group.d.ts +11 -0
  21. package/dist/components/vertex-avatar-group.js +34 -0
  22. package/dist/components/vertex-avatar.d.ts +11 -0
  23. package/dist/components/vertex-avatar.js +68 -0
  24. package/dist/components/vertex-badge.d.ts +11 -0
  25. package/dist/components/vertex-badge.js +43 -0
  26. package/dist/components/vertex-banner.d.ts +11 -0
  27. package/dist/components/vertex-banner.js +141 -0
  28. package/dist/components/vertex-button.d.ts +11 -0
  29. package/dist/components/vertex-button.js +96 -0
  30. package/dist/components/vertex-card-group.d.ts +11 -0
  31. package/dist/components/vertex-card-group.js +51 -0
  32. package/dist/components/vertex-card.d.ts +11 -0
  33. package/dist/components/vertex-card.js +49 -0
  34. package/dist/components/vertex-chip.d.ts +11 -0
  35. package/dist/components/vertex-chip.js +45 -0
  36. package/dist/components/vertex-click-to-edit-textfield.d.ts +11 -0
  37. package/dist/components/vertex-click-to-edit-textfield.js +156 -0
  38. package/dist/components/vertex-collapsible.d.ts +11 -0
  39. package/dist/components/vertex-collapsible.js +63 -0
  40. package/dist/components/vertex-color-circle-picker.d.ts +11 -0
  41. package/dist/components/vertex-color-circle-picker.js +104 -0
  42. package/dist/components/vertex-color-picker.d.ts +11 -0
  43. package/dist/components/vertex-color-picker.js +75 -0
  44. package/dist/components/vertex-color-swatch.d.ts +11 -0
  45. package/dist/components/vertex-color-swatch.js +6 -0
  46. package/dist/components/vertex-context-menu.d.ts +11 -0
  47. package/dist/components/vertex-context-menu.js +125 -0
  48. package/dist/components/vertex-dialog.d.ts +11 -0
  49. package/dist/components/vertex-dialog.js +263 -0
  50. package/dist/components/vertex-draggable-popover.d.ts +11 -0
  51. package/dist/components/vertex-draggable-popover.js +119 -0
  52. package/dist/components/vertex-dropdown-menu.d.ts +11 -0
  53. package/dist/components/vertex-dropdown-menu.js +64 -0
  54. package/dist/components/vertex-expandable.d.ts +11 -0
  55. package/dist/components/vertex-expandable.js +6 -0
  56. package/dist/components/vertex-help-tooltip.d.ts +11 -0
  57. package/dist/components/vertex-help-tooltip.js +67 -0
  58. package/dist/components/vertex-icon-button.d.ts +11 -0
  59. package/dist/components/vertex-icon-button.js +6 -0
  60. package/dist/components/vertex-icon.d.ts +11 -0
  61. package/dist/components/vertex-icon.js +6 -0
  62. package/dist/components/vertex-logo-loading.d.ts +11 -0
  63. package/dist/components/vertex-logo-loading.js +34 -0
  64. package/dist/components/vertex-menu-divider.d.ts +11 -0
  65. package/dist/components/vertex-menu-divider.js +34 -0
  66. package/dist/components/vertex-menu-item.d.ts +11 -0
  67. package/dist/components/vertex-menu-item.js +44 -0
  68. package/dist/components/vertex-menu.d.ts +11 -0
  69. package/dist/components/vertex-menu.js +6 -0
  70. package/dist/components/vertex-popover.d.ts +11 -0
  71. package/dist/components/vertex-popover.js +6 -0
  72. package/dist/components/vertex-radio-group.d.ts +11 -0
  73. package/dist/components/vertex-radio-group.js +88 -0
  74. package/dist/components/vertex-radio.d.ts +11 -0
  75. package/dist/components/vertex-radio.js +56 -0
  76. package/dist/components/vertex-resizable.d.ts +11 -0
  77. package/dist/components/vertex-resizable.js +445 -0
  78. package/dist/components/vertex-result-list.d.ts +11 -0
  79. package/dist/components/vertex-result-list.js +6 -0
  80. package/dist/components/vertex-search-bar.d.ts +11 -0
  81. package/dist/components/vertex-search-bar.js +568 -0
  82. package/dist/components/vertex-select.d.ts +11 -0
  83. package/dist/components/vertex-select.js +200 -0
  84. package/dist/components/vertex-slider.d.ts +11 -0
  85. package/dist/components/vertex-slider.js +81 -0
  86. package/dist/components/vertex-spinner.d.ts +11 -0
  87. package/dist/components/vertex-spinner.js +49 -0
  88. package/dist/components/vertex-tab.d.ts +11 -0
  89. package/dist/components/vertex-tab.js +46 -0
  90. package/dist/components/vertex-tabs.d.ts +11 -0
  91. package/dist/components/vertex-tabs.js +133 -0
  92. package/dist/components/vertex-textfield.d.ts +11 -0
  93. package/dist/components/vertex-textfield.js +6 -0
  94. package/dist/components/vertex-toast.d.ts +11 -0
  95. package/dist/components/vertex-toast.js +127 -0
  96. package/dist/components/vertex-toggle.d.ts +11 -0
  97. package/dist/components/vertex-toggle.js +67 -0
  98. package/dist/components/vertex-tooltip.d.ts +11 -0
  99. package/dist/components/vertex-tooltip.js +6 -0
  100. package/package.json +2 -2
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexMenuDivider extends Components.VertexMenuDivider, HTMLElement {}
4
+ export const VertexMenuDivider: {
5
+ prototype: VertexMenuDivider;
6
+ new (): VertexMenuDivider;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,34 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const menuDividerCss = ":host{--color:var(--vertex-ui-neutral-300)}.root{margin:0.12em 0;border-top:1px solid var(--color)}";
4
+
5
+ const MenuDivider = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ }
11
+ render() {
12
+ return h("div", { class: "root" });
13
+ }
14
+ static get style() { return menuDividerCss; }
15
+ }, [1, "vertex-menu-divider"]);
16
+ function defineCustomElement$1() {
17
+ if (typeof customElements === "undefined") {
18
+ return;
19
+ }
20
+ const components = ["vertex-menu-divider"];
21
+ components.forEach(tagName => { switch (tagName) {
22
+ case "vertex-menu-divider":
23
+ if (!customElements.get(tagName)) {
24
+ customElements.define(tagName, MenuDivider);
25
+ }
26
+ break;
27
+ } });
28
+ }
29
+ defineCustomElement$1();
30
+
31
+ const VertexMenuDivider = MenuDivider;
32
+ const defineCustomElement = defineCustomElement$1;
33
+
34
+ export { MenuDivider as M, VertexMenuDivider, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexMenuItem extends Components.VertexMenuItem, HTMLElement {}
4
+ export const VertexMenuItem: {
5
+ prototype: VertexMenuItem;
6
+ new (): VertexMenuItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,44 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { c as classnames } from './index2.js';
3
+
4
+ const menuItemCss = ":host{--background-color:var(--vertex-ui-white);--color:var(--vertex-ui-neutral-700);--hover-background-color:var(--vertex-ui-neutral-200)}.root{font-family:var(--vertex-ui-font-family);font-size:var(--vertex-ui-text-base);line-height:1.1;display:flex;align-items:center;color:var(--color);margin:0.075em 0;padding:0.5rem 0.75rem;background-color:var(--background-color);transition:background-color;transition-duration:0.5s;user-select:none}.root:not(.disabled):hover{cursor:pointer;background-color:var(--hover-background-color)}.root.disabled{opacity:0.5}slot[name='icon']::slotted(*){padding-right:0.8125rem}";
5
+
6
+ const MenuItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.disabled = false;
12
+ }
13
+ render() {
14
+ return (h("div", { class: classnames('root', {
15
+ disabled: this.disabled,
16
+ }), onClick: (e) => {
17
+ if (this.disabled) {
18
+ e.stopPropagation();
19
+ }
20
+ } }, h("slot", { name: "icon" }), h("slot", null)));
21
+ }
22
+ static get style() { return menuItemCss; }
23
+ }, [1, "vertex-menu-item", {
24
+ "disabled": [516]
25
+ }]);
26
+ function defineCustomElement$1() {
27
+ if (typeof customElements === "undefined") {
28
+ return;
29
+ }
30
+ const components = ["vertex-menu-item"];
31
+ components.forEach(tagName => { switch (tagName) {
32
+ case "vertex-menu-item":
33
+ if (!customElements.get(tagName)) {
34
+ customElements.define(tagName, MenuItem);
35
+ }
36
+ break;
37
+ } });
38
+ }
39
+ defineCustomElement$1();
40
+
41
+ const VertexMenuItem = MenuItem;
42
+ const defineCustomElement = defineCustomElement$1;
43
+
44
+ export { MenuItem as M, VertexMenuItem, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexMenu extends Components.VertexMenu, HTMLElement {}
4
+ export const VertexMenu: {
5
+ prototype: VertexMenu;
6
+ new (): VertexMenu;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { M as Menu, d as defineCustomElement$1 } from './menu.js';
2
+
3
+ const VertexMenu = Menu;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { VertexMenu, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexPopover extends Components.VertexPopover, HTMLElement {}
4
+ export const VertexPopover: {
5
+ prototype: VertexPopover;
6
+ new (): VertexPopover;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { P as Popover, d as defineCustomElement$1 } from './popover.js';
2
+
3
+ const VertexPopover = Popover;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { VertexPopover, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexRadioGroup extends Components.VertexRadioGroup, HTMLElement {}
4
+ export const VertexRadioGroup: {
5
+ prototype: VertexRadioGroup;
6
+ new (): VertexRadioGroup;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,88 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+
3
+ const radioGroupCss = ".radio-group{display:flex;flex-direction:column}";
4
+
5
+ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.valueChanged = createEvent(this, "valueChanged", 7);
11
+ this.name = undefined;
12
+ this.value = undefined;
13
+ this.handleListenOnRadioButtonChange =
14
+ this.handleListenOnRadioButtonChange.bind(this);
15
+ }
16
+ updateValue() {
17
+ if (this.value != null) {
18
+ this.valueChanged.emit(this.value);
19
+ }
20
+ }
21
+ connectedCallback() {
22
+ this.getVertexRadioButtons();
23
+ this.addEventListeners();
24
+ }
25
+ disconnectedCallback() {
26
+ this.removeEventListeners();
27
+ }
28
+ render() {
29
+ return (h("div", { class: "radio-group" }, h("slot", null)));
30
+ }
31
+ getVertexRadioButtons() {
32
+ var _a, _b;
33
+ this.radioButtons =
34
+ ((_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('vertex-radio')) || undefined;
35
+ (_b = this.radioButtons) === null || _b === void 0 ? void 0 : _b.forEach((radio) => {
36
+ radio.name = this.name;
37
+ if (this.value === radio.value) {
38
+ radio.checked = true;
39
+ }
40
+ });
41
+ }
42
+ removeEventListeners() {
43
+ var _a;
44
+ (_a = this.radioButtons) === null || _a === void 0 ? void 0 : _a.forEach((radioButton) => {
45
+ radioButton.removeEventListener('valueChanged', this.handleListenOnRadioButtonChange);
46
+ });
47
+ }
48
+ addEventListeners() {
49
+ var _a;
50
+ (_a = this.radioButtons) === null || _a === void 0 ? void 0 : _a.forEach((radioButton) => {
51
+ radioButton.addEventListener('valueChanged', this.handleListenOnRadioButtonChange);
52
+ });
53
+ }
54
+ handleListenOnRadioButtonChange(ev) {
55
+ const event = ev;
56
+ event.stopPropagation();
57
+ if (event.detail.checked) {
58
+ this.value = event.detail.value;
59
+ }
60
+ }
61
+ get hostElement() { return this; }
62
+ static get watchers() { return {
63
+ "value": ["updateValue"]
64
+ }; }
65
+ static get style() { return radioGroupCss; }
66
+ }, [1, "vertex-radio-group", {
67
+ "name": [513],
68
+ "value": [1537]
69
+ }]);
70
+ function defineCustomElement$1() {
71
+ if (typeof customElements === "undefined") {
72
+ return;
73
+ }
74
+ const components = ["vertex-radio-group"];
75
+ components.forEach(tagName => { switch (tagName) {
76
+ case "vertex-radio-group":
77
+ if (!customElements.get(tagName)) {
78
+ customElements.define(tagName, RadioGroup);
79
+ }
80
+ break;
81
+ } });
82
+ }
83
+ defineCustomElement$1();
84
+
85
+ const VertexRadioGroup = RadioGroup;
86
+ const defineCustomElement = defineCustomElement$1;
87
+
88
+ export { RadioGroup as R, VertexRadioGroup, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexRadio extends Components.VertexRadio, HTMLElement {}
4
+ export const VertexRadio: {
5
+ prototype: VertexRadio;
6
+ new (): VertexRadio;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,56 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as classnames } from './index2.js';
3
+
4
+ const radioCss = ".radio.sc-vertex-radio{display:inline-flex;position:relative;font-family:var(--vertex-ui-font-family);color:var( --vertex-ui-neutral-700);margin:4px 0px;white-space:nowrap}.radio.sc-vertex-radio:not(.disabled):hover{color:var( --vertex-ui-neutral-800)}.radio.sc-vertex-radio input.sc-vertex-radio{position:absolute;opacity:0;cursor:pointer}.radio.sc-vertex-radio:not(.disabled){cursor:pointer}.radio.disabled.sc-vertex-radio input.sc-vertex-radio{cursor:not-allowed}.checkmark.sc-vertex-radio{display:flex;position:relative;margin:auto;margin-right:0.75rem;height:16px;width:16px;background-color:var(--vertex-ui-white);border-radius:50%;border:1px solid var(--vertex-ui-neutral-400)}.checkmark.disabled.sc-vertex-radio{cursor:not-allowed}.radio.sc-vertex-radio:not(.disabled):hover input.sc-vertex-radio~.checkmark.sc-vertex-radio{border:1px solid var(--vertex-ui-neutral-500);cursor:pointer}.radio.sc-vertex-radio input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio{border:1px solid var(--vertex-ui-blue-700)}.radio.disabled.sc-vertex-radio input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio{border:1px solid var( --vertex-ui-neutral-400)}.radio.sc-vertex-radio:not(.disabled):hover input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio{border:1px solid var(--vertex-ui-blue-500);cursor:pointer}.checkmark.sc-vertex-radio:after{content:\"\";position:absolute;display:none}.radio.sc-vertex-radio input.sc-vertex-radio:checked~.checkmark.sc-vertex-radio:after{display:flex}.radio.sc-vertex-radio .checkmark.sc-vertex-radio:after{position:relative;margin:auto;width:12px;height:12px;border-radius:50%;background:var(--vertex-ui-blue-700)}.radio.sc-vertex-radio:hover .checkmark.sc-vertex-radio:after{background:var(--vertex-ui-blue-500);cursor:pointer}.radio.disabled.sc-vertex-radio .checkmark.sc-vertex-radio:after{background:var( --vertex-ui-neutral-400)}.disabled.sc-vertex-radio{color:var( --vertex-ui-neutral-400)}";
5
+
6
+ const Radio = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.valueChanged = createEvent(this, "valueChanged", 7);
11
+ this.disabled = false;
12
+ this.value = undefined;
13
+ this.label = undefined;
14
+ this.name = undefined;
15
+ this.checked = undefined;
16
+ }
17
+ render() {
18
+ return (h("label", { class: classnames('radio', {
19
+ disabled: this.disabled,
20
+ }) }, h("input", { disabled: this.disabled, onChange: (event) => {
21
+ const radioValue = event.target;
22
+ this.valueChanged.emit({
23
+ checked: radioValue.checked,
24
+ value: radioValue.value,
25
+ });
26
+ }, type: "radio", id: `vertex-radio-${this.name}-${this.value}`, name: this.name, value: this.value, checked: this.checked }), h("span", { class: classnames('checkmark', {
27
+ disabled: this.disabled,
28
+ }) }), this.label));
29
+ }
30
+ static get style() { return radioCss; }
31
+ }, [2, "vertex-radio", {
32
+ "disabled": [516],
33
+ "value": [513],
34
+ "label": [513],
35
+ "name": [513],
36
+ "checked": [516]
37
+ }]);
38
+ function defineCustomElement$1() {
39
+ if (typeof customElements === "undefined") {
40
+ return;
41
+ }
42
+ const components = ["vertex-radio"];
43
+ components.forEach(tagName => { switch (tagName) {
44
+ case "vertex-radio":
45
+ if (!customElements.get(tagName)) {
46
+ customElements.define(tagName, Radio);
47
+ }
48
+ break;
49
+ } });
50
+ }
51
+ defineCustomElement$1();
52
+
53
+ const VertexRadio = Radio;
54
+ const defineCustomElement = defineCustomElement$1;
55
+
56
+ export { Radio as R, VertexRadio, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface VertexResizable extends Components.VertexResizable, HTMLElement {}
4
+ export const VertexResizable: {
5
+ prototype: VertexResizable;
6
+ new (): VertexResizable;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;