@vertexvis/ui 0.1.4-canary.3 → 0.1.4-canary.4

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 (56) hide show
  1. package/dist/cjs/{banner-2657a052.js → banner-5628c955.js} +1 -1
  2. package/dist/cjs/{color-circle-picker-a1dc5c09.js → color-circle-picker-b0927289.js} +27 -19
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/{icon-c94b3177.js → icon-116cb9ca.js} +1 -1
  5. package/dist/cjs/{icon-button-28c8d6d0.js → icon-button-4dd2dfa4.js} +1 -1
  6. package/dist/cjs/{icon-helper-aa495f6e.js → icon-helper-475a8443.js} +6 -0
  7. package/dist/cjs/index.cjs.js +5 -5
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/vertex-banner.cjs.entry.js +2 -2
  10. package/dist/cjs/vertex-color-circle-picker.cjs.entry.js +1 -1
  11. package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
  12. package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
  13. package/dist/collection/components/color-circle-picker/color-circle-picker.css +2 -2
  14. package/dist/collection/components/color-circle-picker/color-circle-picker.js +80 -18
  15. package/dist/collection/components/icon/icon-helper.js +3 -0
  16. package/dist/collection/components/icon/icon.js +1 -1
  17. package/dist/collection/components/icon/icons/tag.js +2 -0
  18. package/dist/collection/components/icon-button/icon-button.js +1 -1
  19. package/dist/collection/components/tooltip/tooltip.js +1 -1
  20. package/dist/collection/types/icon.js +1 -0
  21. package/dist/components/components.esm.js +1 -1
  22. package/dist/components/icon-helper.js +6 -0
  23. package/dist/components/index.esm.js +1 -1
  24. package/dist/components/{p-476a4e15.js → p-1ee42db8.js} +1 -1
  25. package/dist/components/p-2930bcb0.entry.js +1 -0
  26. package/dist/components/p-2e95a400.entry.js +1 -0
  27. package/dist/components/{p-20ccb73e.js → p-5256b0a6.js} +1 -1
  28. package/dist/components/p-90931a94.js +1 -0
  29. package/dist/components/p-92e6b1d3.entry.js +1 -0
  30. package/dist/components/{p-09a91501.js → p-ccbcd666.js} +1 -1
  31. package/dist/components/p-d85544e7.entry.js +1 -0
  32. package/dist/components/{p-4d0c2f7b.js → p-f9cb8f55.js} +1 -1
  33. package/dist/components/vertex-color-circle-picker.js +47 -22
  34. package/dist/esm/{banner-6b040a2f.js → banner-38690fc8.js} +1 -1
  35. package/dist/esm/{color-circle-picker-93f3c869.js → color-circle-picker-c4e92fea.js} +27 -19
  36. package/dist/esm/components.js +1 -1
  37. package/dist/esm/{icon-358d16b8.js → icon-3aa6a6c3.js} +1 -1
  38. package/dist/esm/{icon-button-a3e07ea2.js → icon-button-d3d5e6b7.js} +1 -1
  39. package/dist/esm/{icon-helper-b838b8a1.js → icon-helper-514f627f.js} +6 -0
  40. package/dist/esm/index.js +5 -5
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/esm/vertex-banner.entry.js +2 -2
  43. package/dist/esm/vertex-color-circle-picker.entry.js +1 -1
  44. package/dist/esm/vertex-icon-button.entry.js +2 -2
  45. package/dist/esm/vertex-icon.entry.js +2 -2
  46. package/dist/types/components/color-circle-picker/color-circle-picker.d.ts +31 -1
  47. package/dist/types/components/icon/icons/tag.d.ts +3 -0
  48. package/dist/types/components/tooltip/tooltip.d.ts +1 -1
  49. package/dist/types/components.d.ts +25 -3
  50. package/dist/types/types/icon.d.ts +1 -0
  51. package/package.json +2 -2
  52. package/dist/components/p-884ce830.entry.js +0 -1
  53. package/dist/components/p-b0f419b4.entry.js +0 -1
  54. package/dist/components/p-c5d3024f.js +0 -1
  55. package/dist/components/p-c9134aec.entry.js +0 -1
  56. package/dist/components/p-ec870a45.entry.js +0 -1
@@ -12,12 +12,12 @@ import { ButtonColor, ButtonExpand, ButtonSize, ButtonType, ButtonVariant } from
12
12
  import { CardMode } from "./components/card/card";
13
13
  import { ChipColor, ChipVariant } from "./components/chip/chip";
14
14
  import { InputChangeEventDetail, TextSize } from "./components/text-field/text-field";
15
+ import { Popover, PopoverPlacement } from "./components/popover/popover";
15
16
  import { ColorPickerSizeSize, SelectionChangedDetails } from "./components/color-circle-picker/color-circle-picker";
16
17
  import { ColorSwatchSize } from "./components/color-swatch/color-swatch";
17
18
  import { ColorPickerExpand, ColorPickerVariant } from "./components/color-picker/color-picker";
18
19
  import { ColorSwatchSize as ColorSwatchSize1, ColorSwatchTheme, ColorSwatchVariant } from "./components/color-swatch/color-swatch";
19
20
  import { Point } from "./types/point";
20
- import { Popover, PopoverPlacement } from "./components/popover/popover";
21
21
  import { VertexExpandableType } from "./components/expandable/expandable";
22
22
  import { IconName, IconSize } from "./types/icon";
23
23
  import { IconButtonIconColor, IconButtonVariant } from "./components/icon-button/icon-button";
@@ -240,6 +240,14 @@ export namespace Components {
240
240
  * The orientation of this color picker. Can be either `vertical` or `horizontal`, and defaults to `horizontal`.
241
241
  */
242
242
  "direction": 'vertical' | 'horizontal';
243
+ /**
244
+ * The placement of the tooltip around the swatch elements. This can be any of the following values: 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', or 'auto-end', and defaults to 'bottom'. Note: placement will adjust based on the amount of available space, so tooltips close to screen edges may appear in a different location.
245
+ */
246
+ "labelPlacement": PopoverPlacement;
247
+ /**
248
+ * Optional labels that will be displayed as a tooltip on the underlying `vertex-color-swatch` elements for associated colors in the `colors` array.
249
+ */
250
+ "labels": Record<string, string> | string;
243
251
  /**
244
252
  * The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `light`.
245
253
  */
@@ -248,6 +256,9 @@ export namespace Components {
248
256
  * An optional selected color. This will also be updated internally by the component when individual `vertex-color-swatch` elements are clicked.
249
257
  */
250
258
  "selected"?: string;
259
+ /**
260
+ * The size of this color picker. Can be `sm`, `md`, or `lg`, and defaults to `lg`.
261
+ */
251
262
  "size": ColorPickerSizeSize;
252
263
  /**
253
264
  * Optional supplemental colors that will be provided to the underlying `vertex-color-swatch` elements for associated indices in the `colors` array.
@@ -867,7 +878,7 @@ export namespace Components {
867
878
  */
868
879
  "disabled"?: boolean;
869
880
  /**
870
- * The placement of the tooltip at the clicked point. This can be any of the following values: 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', or 'auto-end', and defaults to 'bottom'. Note: placement will adjust based on the amount of available space, so tooltips close to screen edges may appear in a different location.
881
+ * The placement of the tooltip around the slotted element. This can be any of the following values: 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', or 'auto-end', and defaults to 'bottom'. Note: placement will adjust based on the amount of available space, so tooltips close to screen edges may appear in a different location.
871
882
  */
872
883
  "placement": PopoverPlacement;
873
884
  }
@@ -1499,6 +1510,14 @@ declare namespace LocalJSX {
1499
1510
  * The orientation of this color picker. Can be either `vertical` or `horizontal`, and defaults to `horizontal`.
1500
1511
  */
1501
1512
  "direction"?: 'vertical' | 'horizontal';
1513
+ /**
1514
+ * The placement of the tooltip around the swatch elements. This can be any of the following values: 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', or 'auto-end', and defaults to 'bottom'. Note: placement will adjust based on the amount of available space, so tooltips close to screen edges may appear in a different location.
1515
+ */
1516
+ "labelPlacement"?: PopoverPlacement;
1517
+ /**
1518
+ * Optional labels that will be displayed as a tooltip on the underlying `vertex-color-swatch` elements for associated colors in the `colors` array.
1519
+ */
1520
+ "labels"?: Record<string, string> | string;
1502
1521
  /**
1503
1522
  * The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `light`.
1504
1523
  */
@@ -1508,6 +1527,9 @@ declare namespace LocalJSX {
1508
1527
  * An optional selected color. This will also be updated internally by the component when individual `vertex-color-swatch` elements are clicked.
1509
1528
  */
1510
1529
  "selected"?: string;
1530
+ /**
1531
+ * The size of this color picker. Can be `sm`, `md`, or `lg`, and defaults to `lg`.
1532
+ */
1511
1533
  "size"?: ColorPickerSizeSize;
1512
1534
  /**
1513
1535
  * Optional supplemental colors that will be provided to the underlying `vertex-color-swatch` elements for associated indices in the `colors` array.
@@ -2247,7 +2269,7 @@ declare namespace LocalJSX {
2247
2269
  */
2248
2270
  "disabled"?: boolean;
2249
2271
  /**
2250
- * The placement of the tooltip at the clicked point. This can be any of the following values: 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', or 'auto-end', and defaults to 'bottom'. Note: placement will adjust based on the amount of available space, so tooltips close to screen edges may appear in a different location.
2272
+ * The placement of the tooltip around the slotted element. This can be any of the following values: 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'auto', 'auto-start', or 'auto-end', and defaults to 'bottom'. Note: placement will adjust based on the amount of available space, so tooltips close to screen edges may appear in a different location.
2251
2273
  */
2252
2274
  "placement"?: PopoverPlacement;
2253
2275
  }
@@ -121,6 +121,7 @@ export declare enum IconNames {
121
121
  'snapshots' = "snapshots",
122
122
  'star' = "star",
123
123
  'square-dot-outline' = "square-dot-outline",
124
+ 'tag' = "tag",
124
125
  'tape-measure' = "tape-measure",
125
126
  'teleport-and-align' = "teleport-and-align",
126
127
  'teleport-toward' = "teleport-toward",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/ui",
3
- "version": "0.1.4-canary.3",
3
+ "version": "0.1.4-canary.4",
4
4
  "description": "The Vertex UI component library.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -87,5 +87,5 @@
87
87
  "@vertexvis/utils": "^0.23.2",
88
88
  "fast-deep-equal": "^3.1.3"
89
89
  },
90
- "gitHead": "88e78796ea92f8a33be8056c906389cc0b57aa97"
90
+ "gitHead": "fdbaa970a03172d27c2d3551fe53ead86d2d41b9"
91
91
  }
@@ -1 +0,0 @@
1
- export{I as vertex_icon_button}from"./p-20ccb73e.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-09a91501.js";
@@ -1 +0,0 @@
1
- export{C as vertex_color_circle_picker}from"./p-c5d3024f.js";import"./p-6834631c.js";import"./p-fe062eb0.js";
@@ -1 +0,0 @@
1
- import{r as e,e as t,h as i,H as r}from"./p-6834631c.js";import{c as o}from"./p-fe062eb0.js";const l=class{constructor(i){e(this,i),this.selectionChanged=t(this,"selectionChanged",7),this.colorArray=[],this.supplementaryColorArray=[],this.handleClick=e=>{const t=e.target;this.selectionChanged.emit({color:t.color,lightened:t.lightened,darkened:t.darkened})},this.colors=["#4c87be","#f3d336","#6fbb29","#e38826","#c72e16","#8c3681","#000000","#ffffff"],this.size="lg",this.supplementalColors=[],this.theme="dark",this.lightenPercentage=.25,this.darkenPercentage=.25,this.selected=void 0,this.direction="horizontal"}componentWillLoad(){this.handleColorsChange(this.colors),this.handleSupplementalColorsChange(this.supplementalColors)}handleColorsChange(e){this.colorArray="string"==typeof e?JSON.parse(e):e}handleSupplementalColorsChange(e){this.supplementaryColorArray="string"==typeof e?JSON.parse(e):e}render(){return i(r,null,i("div",{class:o("container",{vertical:"vertical"===this.direction})},this.colorArray.map(((e,t)=>i("vertex-color-swatch",{class:o("circle",{selected:this.selected===e}),variant:"circle",size:this.size,color:e,supplementalColor:this.supplementaryColorArray[t],onClick:this.handleClick,lightenPercentage:this.lightenPercentage,darkenPercentage:this.darkenPercentage,theme:this.theme})))))}static get watchers(){return{colors:["handleColorsChange"],supplementalColors:["handleSupplementalColorsChange"]}}};l.style=":host{display:flex;--color-circle-spacing:1rem;--color-circle-hovered-outline:2px solid var(--vertex-ui-neutral-700);--color-circle-selected-outline:var(--color-circle-hovered-outline)}.container{display:flex;gap:var(--color-circle-spacing)}.container.vertical{flex-direction:column;justify-content:center}.container.horizontal{align-items:center}.circle{cursor:pointer;outline-offset:3px;border-radius:100%}.circle.selected{outline:var(--color-circle-selected-outline)}.circle:hover{outline:var(--color-circle-hovered-outline)}";export{l as C}
@@ -1 +0,0 @@
1
- export{B as vertex_banner}from"./p-4d0c2f7b.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-09a91501.js";
@@ -1 +0,0 @@
1
- export{I as vertex_icon}from"./p-476a4e15.js";import"./p-6834631c.js";import"./p-fe062eb0.js";import"./p-09a91501.js";