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

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 (61) 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-53d62a46.js → icon-460fd0f5.js} +1 -1
  4. package/dist/cjs/icon-button-786427d6.js +43 -0
  5. package/dist/cjs/{icon-helper-caf2699e.js → icon-helper-ba408f49.js} +7 -0
  6. package/dist/cjs/index.cjs.js +6 -4
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{tooltip-80a7b722.js → tooltip-e9f63631.js} +57 -18
  9. package/dist/cjs/vertex-badge.cjs.entry.js +11 -0
  10. package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
  11. package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
  12. package/dist/cjs/vertex-tooltip.cjs.entry.js +1 -1
  13. package/dist/collection/collection-manifest.json +1 -0
  14. package/dist/collection/components/badge/badge.css +18 -0
  15. package/dist/collection/components/badge/badge.js +69 -0
  16. package/dist/collection/components/icon/icon-helper.js +3 -0
  17. package/dist/collection/components/icon/icon.js +1 -1
  18. package/dist/collection/components/icon/icons/comment-filled.js +2 -0
  19. package/dist/collection/components/icon-button/icon-button.css +16 -1
  20. package/dist/collection/components/icon-button/icon-button.js +2 -2
  21. package/dist/collection/components/index.js +1 -0
  22. package/dist/collection/components/tooltip/tooltip.js +62 -18
  23. package/dist/collection/types/icon.js +1 -0
  24. package/dist/components/components.esm.js +1 -1
  25. package/dist/components/index.esm.js +1 -1
  26. package/dist/components/p-03dbb28c.js +1 -0
  27. package/dist/components/p-0b1cdc8a.entry.js +1 -0
  28. package/dist/components/p-0b4406fa.entry.js +1 -0
  29. package/dist/components/p-103249b4.js +1 -0
  30. package/dist/components/p-29d7697f.js +1 -0
  31. package/dist/components/p-7dba2574.entry.js +1 -0
  32. package/dist/components/p-92930f2a.js +1 -0
  33. package/dist/components/{p-17b97932.js → p-ca52a423.js} +1 -1
  34. package/dist/components/p-f71fc166.entry.js +1 -0
  35. package/dist/esm/badge-6d27ca92.js +21 -0
  36. package/dist/esm/components.js +1 -1
  37. package/dist/esm/icon-button-aad3c0e7.js +41 -0
  38. package/dist/esm/{icon-2630793d.js → icon-d37150b4.js} +1 -1
  39. package/dist/esm/{icon-helper-10a99d95.js → icon-helper-83f10f73.js} +7 -0
  40. package/dist/esm/index.js +5 -4
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/esm/{tooltip-97c1b3ec.js → tooltip-933da261.js} +57 -18
  43. package/dist/esm/vertex-badge.entry.js +3 -0
  44. package/dist/esm/vertex-icon-button.entry.js +2 -2
  45. package/dist/esm/vertex-icon.entry.js +2 -2
  46. package/dist/esm/vertex-tooltip.entry.js +1 -1
  47. package/dist/types/components/badge/badge.d.ts +14 -0
  48. package/dist/types/components/icon/icons/comment-filled.d.ts +3 -0
  49. package/dist/types/components/index.d.ts +1 -0
  50. package/dist/types/components/tooltip/tooltip.d.ts +7 -0
  51. package/dist/types/components.d.ts +30 -0
  52. package/dist/types/types/icon.d.ts +1 -0
  53. package/package.json +2 -2
  54. package/dist/cjs/icon-button-f868bf06.js +0 -43
  55. package/dist/components/p-1d6cb015.entry.js +0 -1
  56. package/dist/components/p-79fd6fb6.entry.js +0 -1
  57. package/dist/components/p-94168b92.js +0 -1
  58. package/dist/components/p-ee8b96b2.js +0 -1
  59. package/dist/components/p-f49a7ffd.js +0 -1
  60. package/dist/components/p-f900d0f4.entry.js +0 -1
  61. package/dist/esm/icon-button-25edf617.js +0 -41
@@ -0,0 +1,41 @@
1
+ import { r as registerInstance, h, H as Host } from './index-72f28b71.js';
2
+ import { c as classnames } from './index-9c609209.js';
3
+ import { g as getSvg } from './icon-helper-83f10f73.js';
4
+
5
+ const iconButtonCss = "button{border:none;background-color:transparent;font-family:var(--vertex-ui-font-family);font-size:0.875rem;padding:0}:host{--enabled-cursor:pointer;--disabled-cursor:not-allowed;--hover-background-color:var(--vertex-ui-neutral-300);--active-background-color:var(--vertex-ui-neutral-400);--focus-background-color:var(--vertex-ui-neutral-400);--hover-box-shadow:0 2px 2px rgb(0 0 0 / 20%);--active-box-shadow:none;--focus-box-shadow:0 0 0 1px var(--vertex-ui-neutral-900);--icon-margin:0px}.container{display:flex;justify-content:center;align-items:center;outline:none;fill:currentColor;color:currentColor;cursor:var(--enabled-cursor)}.container:not(.plain){border-radius:4px;padding:0.25rem}.icon-button{display:flex;position:relative;justify-content:center;align-items:center;fill:currentColor;height:var(--icon-size, 1.5rem);width:var(--icon-size, 1.5rem)}.icon-button svg{width:100%;height:100%;margin:var(--icon-margin, 0px)}.badge{position:absolute;top:0px;right:4px;justify-content:flex-end;align-items:flex-end}.floating{background-color:var(--vertex-ui-neutral-100);box-shadow:var(--vertex-ui-overlay-shadow);color:var(--vertex-ui-neutral-700);fill:var(--vertex-ui-neutral-700);opacity:0.95}.floating.disabled{color:var(--vertex-ui-neutral-400);cursor:var(--disabled-cursor)}.container:not(.disabled):not(.plain):hover{background-color:var(--hover-background-color);box-shadow:var(--hover-box-shadow)}.container:not(.disabled):not(.plain):active{background-color:var(--active-background-color);box-shadow:var(--active-box-shadow)}.container:not(.disabled):not(.plain):focus-visible{background-color:var(--focus-background-color);box-shadow:var(--focus-box-shadow);color:var(--vertex-ui-neutral-900)}.container.disabled:not(.floating){cursor:var(--disabled-cursor);color:var(--vertex-ui-neutral-400)}.container.primary:not(.disabled){color:var(--vertex-ui-blue-700)}.container.secondary:not(.disabled){color:var(--vertex-ui-neutral-800)}.xs{height:var(--icon-size, 0.75rem);width:var(--icon-size, 0.75rem)}.sm{height:var(--icon-size, 1rem);width:var(--icon-size, 1rem)}.md{height:var(--icon-size, 1.5rem);width:var(--icon-size, 1.5rem)}.lg{height:var(--icon-size, 2rem);width:var(--icon-size, 2rem)}";
6
+
7
+ const IconButton = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.iconName = undefined;
11
+ this.disabled = undefined;
12
+ this.variant = 'default';
13
+ this.iconColor = 'default';
14
+ this.iconSize = 'md';
15
+ }
16
+ render() {
17
+ return (h(Host, { onClick: (e) => this.handleClick(e) }, h("button", { ref: (el) => (this.buttonEl = el), disabled: this.disabled, class: classnames('container', {
18
+ disabled: this.disabled,
19
+ floating: this.variant === 'floating',
20
+ plain: this.variant === 'plain',
21
+ primary: this.iconColor === 'primary',
22
+ secondary: this.iconColor === 'secondary',
23
+ }) }, h("slot", { name: "left" }), h("div", { class: classnames('icon-button', {
24
+ xs: this.iconSize === 'xs',
25
+ sm: this.iconSize === 'sm',
26
+ md: this.iconSize === 'md',
27
+ lg: this.iconSize === 'lg',
28
+ }) }, getSvg(this.iconName), h("div", { class: "badge" }, h("slot", { name: "badge" }))), h("slot", null))));
29
+ }
30
+ handleClick(event) {
31
+ var _a;
32
+ if (this.disabled) {
33
+ event.preventDefault();
34
+ event.stopPropagation();
35
+ }
36
+ (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.blur();
37
+ }
38
+ };
39
+ IconButton.style = iconButtonCss;
40
+
41
+ export { IconButton as I };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-72f28b71.js';
2
2
  import { c as classnames } from './index-9c609209.js';
3
- import { g as getSvg } from './icon-helper-10a99d95.js';
3
+ import { g as getSvg } from './icon-helper-83f10f73.js';
4
4
 
5
5
  const iconCss = ".container{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon{display:flex;justify-content:center;align-items:center;fill:currentColor}.xs{height:var(--icon-size, 0.75rem);width:var(--icon-size, 0.75rem)}.sm{height:var(--icon-size, 1rem);width:var(--icon-size, 1rem)}.md{height:var(--icon-size, 1.5rem);width:var(--icon-size, 1.5rem)}.lg{height:var(--icon-size, 2rem);width:var(--icon-size, 2rem)}svg{position:relative;width:100%}";
6
6
 
@@ -128,6 +128,11 @@ const Columns = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox:
128
128
  const CommentAdd = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", "data-testid": "comment-add" },
129
129
  h("path", { d: "M10.5,6.7h-5c-.3,0-.5.2-.5.5s.2.5.5.5h5c.3,0,.5-.2.5-.5s-.2-.5-.5-.5ZM7.5,5v4.4c0,.3.2.5.5.5s.5-.2.5-.5v-4.4c0-.3-.2-.5-.5-.5s-.5.2-.5.5ZM13.5,2H2.5c-.8,0-1.5.7-1.5,1.5v7c0,.8.7,1.5,1.5,1.5h5.8l2.9,2.9c.1.1.4.2.5.1.2,0,.3-.3.3-.5v-2.5h1.5c.8,0,1.5-.7,1.5-1.5V3.5c0-.8-.7-1.5-1.5-1.5ZM14,10.5c0,.3-.2.5-.5.5h-2c-.3,0-.5.2-.5.5v1.8l-2.1-2.1s-.2-.2-.4-.1H2.5c-.3,0-.5-.2-.5-.5V3.5c0-.3.2-.5.5-.5h11c.3,0,.5.2.5.5v7Z" })));
130
130
 
131
+ const CommentFilled = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", "data-testid": "comment-filled" },
132
+ 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" }),
133
+ 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" }),
134
+ 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" })));
135
+
131
136
  const CommentReopen = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", "data-testid": "comment-reopen" },
132
137
  h("path", { d: "M13.5,2H11.81l.57,1H13.5a.5.5,0,0,1,.5.5v7a.5.5,0,0,1-.5.5h-2a.51.51,0,0,0-.5.5v1.79L8.85,11.15A.47.47,0,0,0,8.5,11h-6a.5.5,0,0,1-.5-.5v-7A.5.5,0,0,1,2.5,3H8.62l.57-1H2.5A1.5,1.5,0,0,0,1,3.5v7A1.5,1.5,0,0,0,2.5,12H8.29l2.86,2.85a.47.47,0,0,0,.54.11A.5.5,0,0,0,12,14.5V12h1.5A1.5,1.5,0,0,0,15,10.5v-7A1.5,1.5,0,0,0,13.5,2ZM7.11,5.21a.5.5,0,0,0,.22-.67.49.49,0,0,0-.67-.22A3,3,0,1,0,11,7V5.08h1.49l-2-3.45-2,3.45H10V7A2,2,0,1,1,7.11,5.21Z" })));
133
138
 
@@ -455,6 +460,8 @@ function getSvg(name) {
455
460
  return h(Columns, null);
456
461
  case 'comment-add':
457
462
  return h(CommentAdd, null);
463
+ case 'comment-filled':
464
+ return h(CommentFilled, null);
458
465
  case 'comment-reopen':
459
466
  return h(CommentReopen, null);
460
467
  case 'comment-resolve':
package/dist/esm/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { A as AutoResizeTextArea } from './auto-resize-textarea-087fecdb.js';
2
2
  export { A as Avatar } from './avatar-775455a5.js';
3
3
  export { A as AvatarGroup } from './avatar-group-e5ca86bf.js';
4
+ export { B as Badge } from './badge-6d27ca92.js';
4
5
  export { B as Button } from './button-547336b8.js';
5
6
  export { C as Card } from './card-1e8790aa.js';
6
7
  export { C as CardGroup } from './card-group-4e8e0421.js';
@@ -16,8 +17,8 @@ export { D as DraggablePopover } from './draggable-popover-8ef3aec6.js';
16
17
  export { D as DropdownMenu } from './dropdown-menu-1598ba20.js';
17
18
  export { E as Expandable } from './expandable-b487cb00.js';
18
19
  export { H as HelpTooltip } from './help-tooltip-c2f0d996.js';
19
- export { I as Icon } from './icon-2630793d.js';
20
- export { I as IconButton } from './icon-button-25edf617.js';
20
+ export { I as Icon } from './icon-d37150b4.js';
21
+ export { I as IconButton } from './icon-button-aad3c0e7.js';
21
22
  export { L as LogoLoading } from './logo-loading-3c7fa23d.js';
22
23
  export { M as Menu } from './menu-daa7f9c9.js';
23
24
  export { M as MenuDivider } from './menu-divider-87c888cb.js';
@@ -34,10 +35,10 @@ export { S as Spinner } from './spinner-afccea51.js';
34
35
  export { T as TextField } from './text-field-e542da25.js';
35
36
  export { T as Toast } from './toast-255648ff.js';
36
37
  export { T as Toggle } from './toggle-1fe22e4f.js';
37
- export { T as Tooltip } from './tooltip-97c1b3ec.js';
38
+ export { T as Tooltip } from './tooltip-933da261.js';
38
39
  import './index-72f28b71.js';
39
40
  import './slots-fbb5afb3.js';
40
41
  import './index-9c609209.js';
41
- import './icon-helper-10a99d95.js';
42
+ import './icon-helper-83f10f73.js';
42
43
  import './templates-797420bf.js';
43
44
  import './tslib.es6-99cd0de8.js';
@@ -11,7 +11,7 @@ const patchEsm = () => {
11
11
  const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
- return bootstrapLazy([["vertex-click-to-edit-textfield",[[6,"vertex-click-to-edit-textfield",{"placeholder":[1],"fontSize":[1,"font-size"],"disabled":[516],"multiline":[4],"minRows":[2,"min-rows"],"maxRows":[2,"max-rows"],"value":[1032],"autoFocus":[4,"auto-focus"],"editing":[1540],"hasError":[4,"has-error"]}]]],["vertex-collapsible",[[1,"vertex-collapsible",{"label":[1],"open":[1540]}]]],["vertex-context-menu",[[1,"vertex-context-menu",{"targetSelector":[1,"target-selector"],"animated":[4],"position":[32],"open":[32]}]]],["vertex-dialog",[[1,"vertex-dialog",{"open":[1540],"fullscreen":[4],"resizable":[4],"width":[32],"height":[32],"minWidth":[32],"minHeight":[32],"maxWidth":[32],"maxHeight":[32],"isResizing":[32]},[[4,"keydown","keyDownListener"]]]]],["vertex-draggable-popover",[[1,"vertex-draggable-popover",{"position":[1],"boundarySelector":[1,"boundary-selector"],"boundaryPadding":[2,"boundary-padding"],"anchorPosition":[32],"lastPosition":[32],"dragging":[32]}]]],["vertex-dropdown-menu",[[1,"vertex-dropdown-menu",{"animated":[4],"placement":[1],"open":[32]}]]],["vertex-help-tooltip",[[1,"vertex-help-tooltip",{"animated":[4],"placement":[1],"open":[32]}]]],["vertex-search-bar",[[6,"vertex-search-bar",{"variant":[1],"resultItems":[16],"triggerCharacters":[16],"triggerCharacter":[1,"trigger-character"],"breakCharacters":[16],"debounce":[2],"placeholder":[1],"placement":[1],"cursorPosition":[32],"open":[32],"triggerKey":[32],"triggerRange":[32],"replaceTriggeredValue":[64],"getEditableContent":[64]}]]],["vertex-select",[[1,"vertex-select",{"value":[513],"placeholder":[513],"disabled":[516],"animated":[4],"resizeObserverFactory":[16],"open":[32],"position":[32],"displayValue":[32]}]]],["vertex-slider",[[1,"vertex-slider",{"min":[2],"max":[2],"valueLabelDisplay":[1,"value-label-display"],"step":[8],"size":[1],"value":[1026],"disabled":[4]}]]],["vertex-toast",[[1,"vertex-toast",{"content":[1],"placement":[1],"duration":[2],"animated":[4],"open":[4],"type":[1],"isOpen":[32]}]]],["vertex-color-circle-picker",[[1,"vertex-color-circle-picker",{"colors":[1],"supplementalColors":[1,"supplemental-colors"],"theme":[513],"lightenPercentage":[2,"lighten-percentage"],"darkenPercentage":[2,"darken-percentage"],"selected":[1537],"direction":[1]}]]],["vertex-color-picker",[[1,"vertex-color-picker",{"value":[1537],"disabled":[4]}]]],["vertex-toggle",[[1,"vertex-toggle",{"variant":[1],"disabled":[4],"checked":[1540]}]]],["vertex-avatar",[[1,"vertex-avatar",{"firstName":[1,"first-name"],"lastName":[1,"last-name"],"value":[1],"active":[4],"variant":[1]}]]],["vertex-avatar-group",[[1,"vertex-avatar-group"]]],["vertex-button",[[1,"vertex-button",{"type":[1],"color":[1],"variant":[1],"size":[1],"expand":[1],"href":[1],"target":[1],"disabled":[516]}]]],["vertex-card",[[1,"vertex-card",{"mode":[1]}]]],["vertex-card-group",[[1,"vertex-card-group",{"selected":[516],"hovered":[516],"expanded":[516]}]]],["vertex-chip",[[1,"vertex-chip",{"variant":[1],"color":[1]}]]],["vertex-logo-loading",[[1,"vertex-logo-loading"]]],["vertex-menu-divider",[[1,"vertex-menu-divider"]]],["vertex-menu-item",[[1,"vertex-menu-item",{"disabled":[516]}]]],["vertex-radio",[[2,"vertex-radio",{"disabled":[516],"value":[513],"label":[513],"name":[513],"checked":[516]}]]],["vertex-radio-group",[[1,"vertex-radio-group",{"name":[513],"value":[1537]}]]],["vertex-resizable",[[1,"vertex-resizable",{"horizontalDirection":[1,"horizontal-direction"],"verticalDirection":[1,"vertical-direction"],"initialHorizontalScale":[2,"initial-horizontal-scale"],"initialVerticalScale":[2,"initial-vertical-scale"],"initializeWithOffset":[4,"initialize-with-offset"],"parentSelector":[1,"parent-selector"],"verticalSiblingSelector":[1,"vertical-sibling-selector"],"horizontalSiblingSelector":[1,"horizontal-sibling-selector"],"contentSelector":[1,"content-selector"],"position":[1],"dimensionsComputed":[1540,"dimensions-computed"],"width":[32],"minWidth":[32],"maxWidth":[32],"height":[32],"minHeight":[32],"maxHeight":[32],"left":[32],"top":[32],"hoveredLocation":[32],"dragStartLocation":[32],"updateDimensions":[64]}]]],["vertex-spinner",[[1,"vertex-spinner",{"color":[1],"size":[1]}]]],["vertex-expandable",[[1,"vertex-expandable",{"expanded":[1540],"expanding":[1540],"collapsing":[1540],"controlled":[516],"expandType":[513,"expand-type"],"animated":[4],"contentScrollHeight":[32]}]]],["vertex-result-list",[[1,"vertex-result-list",{"items":[16],"itemsJson":[1,"items"],"viewportStartIndex":[1026,"viewport-start-index"],"viewportEndIndex":[1026,"viewport-end-index"],"resultHeight":[1026,"result-height"],"overScanCount":[2,"over-scan-count"],"placement":[1],"position":[1],"open":[4],"listHeight":[32],"parsedResults":[32],"scrollTop":[32],"lastStartIndex":[32],"lastFocusedIndex":[32],"stateMap":[32]}]]],["vertex-textfield",[[6,"vertex-textfield",{"type":[1],"name":[1],"variant":[1],"fontSize":[1,"font-size"],"multiline":[4],"minRows":[2,"min-rows"],"maxRows":[2,"max-rows"],"placeholder":[1],"autoFocus":[4,"auto-focus"],"autoComplete":[1,"auto-complete"],"autoCorrect":[1,"auto-correct"],"value":[1032],"disabled":[516],"hasError":[4,"has-error"],"updateInput":[64],"blurInput":[64],"getInputValue":[64],"selectAll":[64]}]]],["vertex-tooltip",[[1,"vertex-tooltip",{"content":[1],"disabled":[4],"placement":[1],"delay":[2],"animated":[4],"open":[32]}]]],["vertex-color-circle",[[1,"vertex-color-circle",{"color":[513],"supplementalColor":[513,"supplemental-color"],"theme":[513],"lightenPercentage":[2,"lighten-percentage"],"darkenPercentage":[2,"darken-percentage"],"lightened":[1537],"darkened":[1537]}]]],["vertex-auto-resize-textarea",[[1,"vertex-auto-resize-textarea",{"textareaSelector":[1,"textarea-selector"],"initialValue":[1,"initial-value"],"minRows":[514,"min-rows"],"maxRows":[514,"max-rows"],"textValue":[32]}]]],["vertex-menu",[[1,"vertex-menu",{"animated":[4],"open":[1540],"placement":[1],"fallbackPlacements":[16],"backdrop":[4],"position":[1040],"popoverProps":[16]}]]],["vertex-icon-button",[[1,"vertex-icon-button",{"iconName":[1,"icon-name"],"disabled":[516],"variant":[1],"iconColor":[1,"icon-color"],"iconSize":[1,"icon-size"]}]]],["vertex-icon",[[1,"vertex-icon",{"name":[1],"size":[1]}]]],["vertex-popover",[[1,"vertex-popover",{"open":[1540],"placement":[1],"position":[1025],"anchorBounds":[16],"backdrop":[4],"animated":[4],"anchorSelector":[1,"anchor-selector"],"boundarySelector":[1,"boundary-selector"],"resizeBehavior":[1,"resize-behavior"],"overflowBehavior":[16],"flipBehavior":[16],"offsetBehavior":[2,"offset-behavior"],"updateOnResize":[4,"update-on-resize"],"opened":[32],"computedPlacement":[32]}]]]], options);
14
+ return bootstrapLazy([["vertex-click-to-edit-textfield",[[6,"vertex-click-to-edit-textfield",{"placeholder":[1],"fontSize":[1,"font-size"],"disabled":[516],"multiline":[4],"minRows":[2,"min-rows"],"maxRows":[2,"max-rows"],"value":[1032],"autoFocus":[4,"auto-focus"],"editing":[1540],"hasError":[4,"has-error"]}]]],["vertex-collapsible",[[1,"vertex-collapsible",{"label":[1],"open":[1540]}]]],["vertex-context-menu",[[1,"vertex-context-menu",{"targetSelector":[1,"target-selector"],"animated":[4],"position":[32],"open":[32]}]]],["vertex-dialog",[[1,"vertex-dialog",{"open":[1540],"fullscreen":[4],"resizable":[4],"width":[32],"height":[32],"minWidth":[32],"minHeight":[32],"maxWidth":[32],"maxHeight":[32],"isResizing":[32]},[[4,"keydown","keyDownListener"]]]]],["vertex-draggable-popover",[[1,"vertex-draggable-popover",{"position":[1],"boundarySelector":[1,"boundary-selector"],"boundaryPadding":[2,"boundary-padding"],"anchorPosition":[32],"lastPosition":[32],"dragging":[32]}]]],["vertex-dropdown-menu",[[1,"vertex-dropdown-menu",{"animated":[4],"placement":[1],"open":[32]}]]],["vertex-help-tooltip",[[1,"vertex-help-tooltip",{"animated":[4],"placement":[1],"open":[32]}]]],["vertex-search-bar",[[6,"vertex-search-bar",{"variant":[1],"resultItems":[16],"triggerCharacters":[16],"triggerCharacter":[1,"trigger-character"],"breakCharacters":[16],"debounce":[2],"placeholder":[1],"placement":[1],"cursorPosition":[32],"open":[32],"triggerKey":[32],"triggerRange":[32],"replaceTriggeredValue":[64],"getEditableContent":[64]}]]],["vertex-select",[[1,"vertex-select",{"value":[513],"placeholder":[513],"disabled":[516],"animated":[4],"resizeObserverFactory":[16],"open":[32],"position":[32],"displayValue":[32]}]]],["vertex-slider",[[1,"vertex-slider",{"min":[2],"max":[2],"valueLabelDisplay":[1,"value-label-display"],"step":[8],"size":[1],"value":[1026],"disabled":[4]}]]],["vertex-toast",[[1,"vertex-toast",{"content":[1],"placement":[1],"duration":[2],"animated":[4],"open":[4],"type":[1],"isOpen":[32]}]]],["vertex-color-circle-picker",[[1,"vertex-color-circle-picker",{"colors":[1],"supplementalColors":[1,"supplemental-colors"],"theme":[513],"lightenPercentage":[2,"lighten-percentage"],"darkenPercentage":[2,"darken-percentage"],"selected":[1537],"direction":[1]}]]],["vertex-color-picker",[[1,"vertex-color-picker",{"value":[1537],"disabled":[4]}]]],["vertex-toggle",[[1,"vertex-toggle",{"variant":[1],"disabled":[4],"checked":[1540]}]]],["vertex-avatar",[[1,"vertex-avatar",{"firstName":[1,"first-name"],"lastName":[1,"last-name"],"value":[1],"active":[4],"variant":[1]}]]],["vertex-avatar-group",[[1,"vertex-avatar-group"]]],["vertex-badge",[[1,"vertex-badge",{"badgeText":[1,"badge-text"],"badgeColor":[1,"badge-color"]}]]],["vertex-button",[[1,"vertex-button",{"type":[1],"color":[1],"variant":[1],"size":[1],"expand":[1],"href":[1],"target":[1],"disabled":[516]}]]],["vertex-card",[[1,"vertex-card",{"mode":[1]}]]],["vertex-card-group",[[1,"vertex-card-group",{"selected":[516],"hovered":[516],"expanded":[516]}]]],["vertex-chip",[[1,"vertex-chip",{"variant":[1],"color":[1]}]]],["vertex-logo-loading",[[1,"vertex-logo-loading"]]],["vertex-menu-divider",[[1,"vertex-menu-divider"]]],["vertex-menu-item",[[1,"vertex-menu-item",{"disabled":[516]}]]],["vertex-radio",[[2,"vertex-radio",{"disabled":[516],"value":[513],"label":[513],"name":[513],"checked":[516]}]]],["vertex-radio-group",[[1,"vertex-radio-group",{"name":[513],"value":[1537]}]]],["vertex-resizable",[[1,"vertex-resizable",{"horizontalDirection":[1,"horizontal-direction"],"verticalDirection":[1,"vertical-direction"],"initialHorizontalScale":[2,"initial-horizontal-scale"],"initialVerticalScale":[2,"initial-vertical-scale"],"initializeWithOffset":[4,"initialize-with-offset"],"parentSelector":[1,"parent-selector"],"verticalSiblingSelector":[1,"vertical-sibling-selector"],"horizontalSiblingSelector":[1,"horizontal-sibling-selector"],"contentSelector":[1,"content-selector"],"position":[1],"dimensionsComputed":[1540,"dimensions-computed"],"width":[32],"minWidth":[32],"maxWidth":[32],"height":[32],"minHeight":[32],"maxHeight":[32],"left":[32],"top":[32],"hoveredLocation":[32],"dragStartLocation":[32],"updateDimensions":[64]}]]],["vertex-spinner",[[1,"vertex-spinner",{"color":[1],"size":[1]}]]],["vertex-expandable",[[1,"vertex-expandable",{"expanded":[1540],"expanding":[1540],"collapsing":[1540],"controlled":[516],"expandType":[513,"expand-type"],"animated":[4],"contentScrollHeight":[32]}]]],["vertex-result-list",[[1,"vertex-result-list",{"items":[16],"itemsJson":[1,"items"],"viewportStartIndex":[1026,"viewport-start-index"],"viewportEndIndex":[1026,"viewport-end-index"],"resultHeight":[1026,"result-height"],"overScanCount":[2,"over-scan-count"],"placement":[1],"position":[1],"open":[4],"listHeight":[32],"parsedResults":[32],"scrollTop":[32],"lastStartIndex":[32],"lastFocusedIndex":[32],"stateMap":[32]}]]],["vertex-textfield",[[6,"vertex-textfield",{"type":[1],"name":[1],"variant":[1],"fontSize":[1,"font-size"],"multiline":[4],"minRows":[2,"min-rows"],"maxRows":[2,"max-rows"],"placeholder":[1],"autoFocus":[4,"auto-focus"],"autoComplete":[1,"auto-complete"],"autoCorrect":[1,"auto-correct"],"value":[1032],"disabled":[516],"hasError":[4,"has-error"],"updateInput":[64],"blurInput":[64],"getInputValue":[64],"selectAll":[64]}]]],["vertex-tooltip",[[1,"vertex-tooltip",{"content":[1],"disabled":[4],"placement":[1],"delay":[2],"animated":[4],"open":[32]}]]],["vertex-color-circle",[[1,"vertex-color-circle",{"color":[513],"supplementalColor":[513,"supplemental-color"],"theme":[513],"lightenPercentage":[2,"lighten-percentage"],"darkenPercentage":[2,"darken-percentage"],"lightened":[1537],"darkened":[1537]}]]],["vertex-auto-resize-textarea",[[1,"vertex-auto-resize-textarea",{"textareaSelector":[1,"textarea-selector"],"initialValue":[1,"initial-value"],"minRows":[514,"min-rows"],"maxRows":[514,"max-rows"],"textValue":[32]}]]],["vertex-menu",[[1,"vertex-menu",{"animated":[4],"open":[1540],"placement":[1],"fallbackPlacements":[16],"backdrop":[4],"position":[1040],"popoverProps":[16]}]]],["vertex-icon-button",[[1,"vertex-icon-button",{"iconName":[1,"icon-name"],"disabled":[516],"variant":[1],"iconColor":[1,"icon-color"],"iconSize":[1,"icon-size"]}]]],["vertex-icon",[[1,"vertex-icon",{"name":[1],"size":[1]}]]],["vertex-popover",[[1,"vertex-popover",{"open":[1540],"placement":[1],"position":[1025],"anchorBounds":[16],"backdrop":[4],"animated":[4],"anchorSelector":[1,"anchor-selector"],"boundarySelector":[1,"boundary-selector"],"resizeBehavior":[1,"resize-behavior"],"overflowBehavior":[16],"flipBehavior":[16],"offsetBehavior":[2,"offset-behavior"],"updateOnResize":[4,"update-on-resize"],"opened":[32],"computedPlacement":[32]}]]]], options);
15
15
  });
16
16
  };
17
17
 
@@ -2060,6 +2060,7 @@ const TOOLTIP_OPEN_DELAY = 500;
2060
2060
  const Tooltip = class {
2061
2061
  constructor(hostRef) {
2062
2062
  registerInstance(this, hostRef);
2063
+ this.pointerEntered = false;
2063
2064
  this.content = undefined;
2064
2065
  this.disabled = undefined;
2065
2066
  this.placement = 'bottom';
@@ -2068,32 +2069,40 @@ const Tooltip = class {
2068
2069
  this.open = false;
2069
2070
  this.handlePointerEnter = this.handlePointerEnter.bind(this);
2070
2071
  this.handlePointerLeave = this.handlePointerLeave.bind(this);
2072
+ this.handleContentChange = this.handleContentChange.bind(this);
2073
+ this.handleDisabledChange = this.handleDisabledChange.bind(this);
2071
2074
  this.tooltipId = `vertex-tooltip-${uuid.create()}`;
2072
2075
  }
2073
2076
  disconnectedCallback() {
2074
2077
  this.removeElement();
2075
2078
  this.clearOpenTimeout();
2079
+ this.pointerEntered = false;
2080
+ }
2081
+ handleContentChange() {
2082
+ if (this.internalContentElement != null) {
2083
+ this.updateContentElementChildren(this.internalContentElement);
2084
+ }
2085
+ }
2086
+ handleDisabledChange() {
2087
+ if (this.internalContentElement != null) {
2088
+ this.updateContentElementClass(this.internalContentElement);
2089
+ }
2090
+ if (!this.disabled && this.pointerEntered) {
2091
+ this.handlePointerEnter();
2092
+ }
2076
2093
  }
2077
2094
  render() {
2078
2095
  return (h(Host, null, h("div", { class: "target", ref: (el) => {
2079
2096
  this.targetElement = el;
2080
2097
  }, onPointerEnter: this.handlePointerEnter, onPointerLeave: this.handlePointerLeave }, h("slot", null)), h("div", { class: "content-hidden", ref: (el) => {
2081
2098
  this.contentElement = el;
2082
- } }, h("slot", { name: "content" }))));
2099
+ } }, h("slot", { name: "content", onSlotchange: this.handleContentChange }))));
2083
2100
  }
2084
2101
  addElement() {
2085
- var _a;
2086
2102
  if (this.targetElement != null) {
2087
2103
  const popover = this.createPopoverElement(this.targetElement);
2088
2104
  const content = this.createContentElement();
2089
- this.displayedSlottedContent =
2090
- (_a = getSlottedContent(this.contentElement)) !== null && _a !== void 0 ? _a : this.displayedSlottedContent;
2091
- if (this.content != null) {
2092
- content.innerText = this.content;
2093
- }
2094
- else if (this.displayedSlottedContent != null) {
2095
- content.appendChild(this.displayedSlottedContent);
2096
- }
2105
+ this.updateContentElementChildren(content);
2097
2106
  popover.appendChild(content);
2098
2107
  this.hostElement.ownerDocument.body.appendChild(popover);
2099
2108
  }
@@ -2103,6 +2112,7 @@ const Tooltip = class {
2103
2112
  if (popover != null) {
2104
2113
  popover.remove();
2105
2114
  }
2115
+ this.internalContentElement = undefined;
2106
2116
  }
2107
2117
  createPopoverElement(anchorElement) {
2108
2118
  const popover = this.hostElement.ownerDocument.createElement('vertex-popover');
@@ -2117,25 +2127,50 @@ const Tooltip = class {
2117
2127
  return popover;
2118
2128
  }
2119
2129
  createContentElement() {
2120
- const content = this.hostElement.ownerDocument.createElement('div');
2121
- content.setAttribute('class', classnames('vertex-tooltip-content', {
2130
+ this.internalContentElement =
2131
+ this.hostElement.ownerDocument.createElement('div');
2132
+ this.internalContentElement.setAttribute('class', classnames('vertex-tooltip-content', {
2133
+ hidden: !this.open || this.disabled,
2134
+ }));
2135
+ return this.internalContentElement;
2136
+ }
2137
+ updateContentElementClass(element) {
2138
+ element.setAttribute('class', classnames('vertex-tooltip-content', {
2122
2139
  hidden: !this.open || this.disabled,
2123
2140
  }));
2124
- return content;
2141
+ }
2142
+ updateContentElementChildren(element) {
2143
+ var _a;
2144
+ this.displayedSlottedContent =
2145
+ (_a = getSlottedContent(this.contentElement)) !== null && _a !== void 0 ? _a : this.displayedSlottedContent;
2146
+ if (this.content != null) {
2147
+ element.innerText = this.content;
2148
+ }
2149
+ else if (this.displayedSlottedContent != null) {
2150
+ element.appendChild(this.displayedSlottedContent);
2151
+ }
2125
2152
  }
2126
2153
  handlePointerEnter() {
2127
2154
  if (this.openTimeout == null && !this.disabled) {
2128
- this.openTimeout = setTimeout(() => {
2129
- this.open = true;
2130
- this.openTimeout = undefined;
2131
- this.addElement();
2132
- }, this.delay);
2155
+ this.createOpenTimeout();
2156
+ }
2157
+ else if (this.openTimeout == null) {
2158
+ this.pointerEntered = true;
2133
2159
  }
2134
2160
  }
2135
2161
  handlePointerLeave() {
2136
2162
  this.clearOpenTimeout();
2137
2163
  this.removeElement();
2138
2164
  this.open = false;
2165
+ this.pointerEntered = false;
2166
+ }
2167
+ createOpenTimeout() {
2168
+ this.openTimeout = setTimeout(() => {
2169
+ this.open = true;
2170
+ this.openTimeout = undefined;
2171
+ this.addElement();
2172
+ }, this.delay);
2173
+ this.pointerEntered = false;
2139
2174
  }
2140
2175
  clearOpenTimeout() {
2141
2176
  if (this.openTimeout != null) {
@@ -2144,6 +2179,10 @@ const Tooltip = class {
2144
2179
  }
2145
2180
  }
2146
2181
  get hostElement() { return getElement(this); }
2182
+ static get watchers() { return {
2183
+ "content": ["handleContentChange"],
2184
+ "disabled": ["handleDisabledChange"]
2185
+ }; }
2147
2186
  };
2148
2187
  Tooltip.style = tooltipCss;
2149
2188
 
@@ -0,0 +1,3 @@
1
+ export { B as vertex_badge } from './badge-6d27ca92.js';
2
+ import './index-72f28b71.js';
3
+ import './index-9c609209.js';
@@ -1,4 +1,4 @@
1
- export { I as vertex_icon_button } from './icon-button-25edf617.js';
1
+ export { I as vertex_icon_button } from './icon-button-aad3c0e7.js';
2
2
  import './index-72f28b71.js';
3
3
  import './index-9c609209.js';
4
- import './icon-helper-10a99d95.js';
4
+ import './icon-helper-83f10f73.js';
@@ -1,4 +1,4 @@
1
- export { I as vertex_icon } from './icon-2630793d.js';
1
+ export { I as vertex_icon } from './icon-d37150b4.js';
2
2
  import './index-72f28b71.js';
3
3
  import './index-9c609209.js';
4
- import './icon-helper-10a99d95.js';
4
+ import './icon-helper-83f10f73.js';
@@ -1,4 +1,4 @@
1
- export { T as vertex_tooltip } from './tooltip-97c1b3ec.js';
1
+ export { T as vertex_tooltip } from './tooltip-933da261.js';
2
2
  import './index-72f28b71.js';
3
3
  import './tslib.es6-99cd0de8.js';
4
4
  import './index-9c609209.js';
@@ -0,0 +1,14 @@
1
+ import { h } from '../../stencil-public-runtime';
2
+ export type BadgeIconColor = 'primary' | 'secondary';
3
+ export declare class Badge {
4
+ /**
5
+ * The string to show in the badge.
6
+ */
7
+ badgeText?: string;
8
+ /**
9
+ * The color of the badge displayed in this <vertex-badge>.
10
+ * Can be "primary" or "secondary", and defaults to "primary."
11
+ */
12
+ badgeColor: BadgeIconColor;
13
+ render(): h.JSX.IntrinsicElements;
14
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { h } from '../../../stencil-public-runtime';
3
+ export declare const CommentFilled: () => h.JSX.IntrinsicElements;
@@ -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';
@@ -40,18 +40,25 @@ export declare class Tooltip {
40
40
  hostElement: HTMLElement;
41
41
  private open;
42
42
  private tooltipId;
43
+ private pointerEntered;
43
44
  private openTimeout?;
44
45
  private targetElement?;
45
46
  private contentElement?;
46
47
  private displayedSlottedContent?;
48
+ private internalContentElement?;
47
49
  constructor();
48
50
  disconnectedCallback(): void;
51
+ protected handleContentChange(): void;
52
+ protected handleDisabledChange(): void;
49
53
  render(): h.JSX.IntrinsicElements;
50
54
  private addElement;
51
55
  private removeElement;
52
56
  private createPopoverElement;
53
57
  private createContentElement;
58
+ private updateContentElementClass;
59
+ private updateContentElementChildren;
54
60
  private handlePointerEnter;
55
61
  private handlePointerLeave;
62
+ private createOpenTimeout;
56
63
  private clearOpenTimeout;
57
64
  }
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { AvatarVariant } from "./components/avatar/avatar";
9
+ import { BadgeIconColor } from "./components/badge/badge";
9
10
  import { ButtonColor, ButtonExpand, ButtonSize, ButtonType, ButtonVariant } from "./components/button/button";
10
11
  import { CardMode } from "./components/card/card";
11
12
  import { ChipColor, ChipVariant } from "./components/chip/chip";
@@ -71,6 +72,16 @@ export namespace Components {
71
72
  }
72
73
  interface VertexAvatarGroup {
73
74
  }
75
+ interface VertexBadge {
76
+ /**
77
+ * The color of the badge displayed in this <vertex-badge>. Can be "primary" or "secondary", and defaults to "primary."
78
+ */
79
+ "badgeColor": BadgeIconColor;
80
+ /**
81
+ * The string to show in the badge.
82
+ */
83
+ "badgeText"?: string;
84
+ }
74
85
  interface VertexButton {
75
86
  /**
76
87
  * The color of this <vertex-button>. Can be "primary", "secondary", or "danger" and defaults to "secondary".
@@ -869,6 +880,12 @@ declare global {
869
880
  prototype: HTMLVertexAvatarGroupElement;
870
881
  new (): HTMLVertexAvatarGroupElement;
871
882
  };
883
+ interface HTMLVertexBadgeElement extends Components.VertexBadge, HTMLStencilElement {
884
+ }
885
+ var HTMLVertexBadgeElement: {
886
+ prototype: HTMLVertexBadgeElement;
887
+ new (): HTMLVertexBadgeElement;
888
+ };
872
889
  interface HTMLVertexButtonElement extends Components.VertexButton, HTMLStencilElement {
873
890
  }
874
891
  var HTMLVertexButtonElement: {
@@ -1077,6 +1094,7 @@ declare global {
1077
1094
  "vertex-auto-resize-textarea": HTMLVertexAutoResizeTextareaElement;
1078
1095
  "vertex-avatar": HTMLVertexAvatarElement;
1079
1096
  "vertex-avatar-group": HTMLVertexAvatarGroupElement;
1097
+ "vertex-badge": HTMLVertexBadgeElement;
1080
1098
  "vertex-button": HTMLVertexButtonElement;
1081
1099
  "vertex-card": HTMLVertexCardElement;
1082
1100
  "vertex-card-group": HTMLVertexCardGroupElement;
@@ -1156,6 +1174,16 @@ declare namespace LocalJSX {
1156
1174
  }
1157
1175
  interface VertexAvatarGroup {
1158
1176
  }
1177
+ interface VertexBadge {
1178
+ /**
1179
+ * The color of the badge displayed in this <vertex-badge>. Can be "primary" or "secondary", and defaults to "primary."
1180
+ */
1181
+ "badgeColor"?: BadgeIconColor;
1182
+ /**
1183
+ * The string to show in the badge.
1184
+ */
1185
+ "badgeText"?: string;
1186
+ }
1159
1187
  interface VertexButton {
1160
1188
  /**
1161
1189
  * The color of this <vertex-button>. Can be "primary", "secondary", or "danger" and defaults to "secondary".
@@ -1987,6 +2015,7 @@ declare namespace LocalJSX {
1987
2015
  "vertex-auto-resize-textarea": VertexAutoResizeTextarea;
1988
2016
  "vertex-avatar": VertexAvatar;
1989
2017
  "vertex-avatar-group": VertexAvatarGroup;
2018
+ "vertex-badge": VertexBadge;
1990
2019
  "vertex-button": VertexButton;
1991
2020
  "vertex-card": VertexCard;
1992
2021
  "vertex-card-group": VertexCardGroup;
@@ -2030,6 +2059,7 @@ declare module "@stencil/core" {
2030
2059
  "vertex-auto-resize-textarea": LocalJSX.VertexAutoResizeTextarea & JSXBase.HTMLAttributes<HTMLVertexAutoResizeTextareaElement>;
2031
2060
  "vertex-avatar": LocalJSX.VertexAvatar & JSXBase.HTMLAttributes<HTMLVertexAvatarElement>;
2032
2061
  "vertex-avatar-group": LocalJSX.VertexAvatarGroup & JSXBase.HTMLAttributes<HTMLVertexAvatarGroupElement>;
2062
+ "vertex-badge": LocalJSX.VertexBadge & JSXBase.HTMLAttributes<HTMLVertexBadgeElement>;
2033
2063
  "vertex-button": LocalJSX.VertexButton & JSXBase.HTMLAttributes<HTMLVertexButtonElement>;
2034
2064
  "vertex-card": LocalJSX.VertexCard & JSXBase.HTMLAttributes<HTMLVertexCardElement>;
2035
2065
  "vertex-card-group": LocalJSX.VertexCardGroup & JSXBase.HTMLAttributes<HTMLVertexCardGroupElement>;
@@ -37,6 +37,7 @@ export declare enum IconNames {
37
37
  'collapse-all' = "collapse-all",
38
38
  'columns' = "columns",
39
39
  'comment-add' = "comment-add",
40
+ 'comment-filled' = "comment-filled",
40
41
  'comment-reopen' = "comment-reopen",
41
42
  'comment-resolve' = "comment-resolve",
42
43
  'comment-show' = "comment-show",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/ui",
3
- "version": "0.1.0-canary.1",
3
+ "version": "0.1.0-canary.3",
4
4
  "description": "The Vertex UI component library.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -86,5 +86,5 @@
86
86
  "@floating-ui/dom": "^1.6.5",
87
87
  "@vertexvis/utils": "^0.21.0"
88
88
  },
89
- "gitHead": "fdcf32dc075ecc364ee9887342e417bd5b6386e5"
89
+ "gitHead": "74641a62e6a3ad23243503b3db1948a85effdfa1"
90
90
  }
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-6a92256c.js');
4
- const index$1 = require('./index-e1b40fa6.js');
5
- const iconHelper = require('./icon-helper-caf2699e.js');
6
-
7
- const iconButtonCss = "button{border:none;background-color:transparent;font-family:var(--vertex-ui-font-family);font-size:0.875rem;padding:0}:host{--enabled-cursor:pointer;--disabled-cursor:not-allowed;--hover-background-color:var(--vertex-ui-neutral-300);--active-background-color:var(--vertex-ui-neutral-400);--focus-background-color:var(--vertex-ui-neutral-400);--hover-box-shadow:0 2px 2px rgb(0 0 0 / 20%);--active-box-shadow:none;--focus-box-shadow:0 0 0 1px var(--vertex-ui-neutral-900)}.container{display:flex;justify-content:center;align-items:center;outline:none;fill:currentColor;color:currentColor;cursor:var(--enabled-cursor)}.container:not(.plain){border-radius:4px;padding:0.25rem}.icon-button{display:flex;justify-content:center;align-items:center;fill:currentColor;height:var(--icon-size, 1.5rem);width:var(--icon-size, 1.5rem)}.icon-button svg{width:100%;height:100%}.floating{background-color:var(--vertex-ui-neutral-100);box-shadow:var(--vertex-ui-overlay-shadow);color:var(--vertex-ui-neutral-700);fill:var(--vertex-ui-neutral-700);opacity:0.95}.floating.disabled{color:var(--vertex-ui-neutral-400);cursor:var(--disabled-cursor)}.container:not(.disabled):not(.plain):hover{background-color:var(--hover-background-color);box-shadow:var(--hover-box-shadow)}.container:not(.disabled):not(.plain):active{background-color:var(--active-background-color);box-shadow:var(--active-box-shadow)}.container:not(.disabled):not(.plain):focus-visible{background-color:var(--focus-background-color);box-shadow:var(--focus-box-shadow);color:var(--vertex-ui-neutral-900)}.container.disabled:not(.floating){cursor:var(--disabled-cursor);color:var(--vertex-ui-neutral-400)}.container.primary:not(.disabled){color:var(--vertex-ui-blue-700)}.container.secondary:not(.disabled){color:var(--vertex-ui-neutral-800)}.xs{height:var(--icon-size, 0.75rem);width:var(--icon-size, 0.75rem)}.sm{height:var(--icon-size, 1rem);width:var(--icon-size, 1rem)}.md{height:var(--icon-size, 1.5rem);width:var(--icon-size, 1.5rem)}.lg{height:var(--icon-size, 2rem);width:var(--icon-size, 2rem)}";
8
-
9
- const IconButton = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.iconName = undefined;
13
- this.disabled = undefined;
14
- this.variant = 'default';
15
- this.iconColor = 'default';
16
- this.iconSize = 'md';
17
- }
18
- render() {
19
- return (index.h(index.Host, { onClick: (e) => this.handleClick(e) }, index.h("button", { ref: (el) => (this.buttonEl = el), disabled: this.disabled, class: index$1.classnames('container', {
20
- disabled: this.disabled,
21
- floating: this.variant === 'floating',
22
- plain: this.variant === 'plain',
23
- primary: this.iconColor === 'primary',
24
- secondary: this.iconColor === 'secondary',
25
- }) }, index.h("slot", { name: "left" }), index.h("div", { class: index$1.classnames('icon-button', {
26
- xs: this.iconSize === 'xs',
27
- sm: this.iconSize === 'sm',
28
- md: this.iconSize === 'md',
29
- lg: this.iconSize === 'lg',
30
- }) }, iconHelper.getSvg(this.iconName)), index.h("slot", null))));
31
- }
32
- handleClick(event) {
33
- var _a;
34
- if (this.disabled) {
35
- event.preventDefault();
36
- event.stopPropagation();
37
- }
38
- (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.blur();
39
- }
40
- };
41
- IconButton.style = iconButtonCss;
42
-
43
- exports.IconButton = IconButton;
@@ -1 +0,0 @@
1
- export{T as vertex_tooltip}from"./p-f49a7ffd.js";import"./p-6834631c.js";import"./p-59032668.js";import"./p-fe062eb0.js";import"./p-b2c7b113.js";
@@ -1 +0,0 @@
1
- export{I as vertex_icon}from"./p-17b97932.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-94168b92.js";