@vertexvis/ui 0.1.0-testing.7 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{color-circle-picker-13396ec4.js → color-circle-picker-d0403f1c.js} +2 -2
  3. package/dist/cjs/color-picker-2a4820fa.js +46 -0
  4. package/dist/cjs/{color-circle-05be54bf.js → color-swatch-8aaf6c0b.js} +42 -17
  5. package/dist/cjs/components.cjs.js +1 -1
  6. package/dist/cjs/{dialog-88e2308a.js → dialog-34f1dd6e.js} +1 -1
  7. package/dist/cjs/dom-a2c535e3.js +17 -0
  8. package/dist/cjs/{icon-460fd0f5.js → icon-3b1349ea.js} +1 -1
  9. package/dist/cjs/{icon-button-786427d6.js → icon-button-19061994.js} +1 -1
  10. package/dist/cjs/{icon-helper-ba408f49.js → icon-helper-cb479ba1.js} +107 -0
  11. package/dist/cjs/index.cjs.js +18 -12
  12. package/dist/cjs/lib-1bd1e383.js +9 -0
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/{search-bar-1edc045f.js → search-bar-2e7ee35a.js} +177 -51
  15. package/dist/cjs/{select-5f8aecfe.js → select-2b2bdb97.js} +1 -1
  16. package/dist/cjs/{slider-13594e49.js → slider-7714cccb.js} +7 -1
  17. package/dist/cjs/tab-4335cd8f.js +26 -0
  18. package/dist/cjs/tabs-6f3e76e1.js +111 -0
  19. package/dist/cjs/{tooltip-e9f63631.js → tooltip-9d097c55.js} +2 -5
  20. package/dist/cjs/vertex-color-circle-picker.cjs.entry.js +1 -1
  21. package/dist/cjs/vertex-color-picker.cjs.entry.js +2 -1
  22. package/dist/cjs/vertex-color-swatch.cjs.entry.js +12 -0
  23. package/dist/cjs/vertex-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/vertex-icon-button.cjs.entry.js +2 -2
  25. package/dist/cjs/vertex-icon.cjs.entry.js +2 -2
  26. package/dist/cjs/vertex-search-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/vertex-select.cjs.entry.js +1 -1
  28. package/dist/cjs/vertex-slider.cjs.entry.js +2 -1
  29. package/dist/cjs/{vertex-color-circle.cjs.entry.js → vertex-tab.cjs.entry.js} +3 -2
  30. package/dist/cjs/vertex-tabs.cjs.entry.js +12 -0
  31. package/dist/cjs/vertex-tooltip.cjs.entry.js +2 -1
  32. package/dist/collection/collection-manifest.json +5 -3
  33. package/dist/collection/components/color-circle-picker/color-circle-picker.js +8 -8
  34. package/dist/collection/components/color-picker/color-picker.css +95 -15
  35. package/dist/collection/components/color-picker/color-picker.js +57 -3
  36. package/dist/collection/components/color-swatch/color-swatch.css +43 -0
  37. package/dist/collection/components/{color-circle/color-circle.js → color-swatch/color-swatch.js} +96 -23
  38. package/dist/collection/components/color-swatch/lib.js +5 -0
  39. package/dist/collection/components/dialog/dialog.css +0 -1
  40. package/dist/collection/components/icon/icon-helper.js +51 -0
  41. package/dist/collection/components/icon/icon.js +1 -1
  42. package/dist/collection/components/icon/icons/arrow-left-circled.js +2 -0
  43. package/dist/collection/components/icon/icons/arrow-right-circled.js +2 -0
  44. package/dist/collection/components/icon/icons/camera-add.js +2 -0
  45. package/dist/collection/components/icon/icons/caution.js +2 -0
  46. package/dist/collection/components/icon/icons/columns-add.js +2 -0
  47. package/dist/collection/components/icon/icons/compare.js +2 -0
  48. package/dist/collection/components/icon/icons/compress.js +2 -0
  49. package/dist/collection/components/icon/icons/cube-stack.js +2 -0
  50. package/dist/collection/components/icon/icons/expand.js +2 -0
  51. package/dist/collection/components/icon/icons/file-folder.js +2 -0
  52. package/dist/collection/components/icon/icons/pin-text-square.js +2 -0
  53. package/dist/collection/components/icon/icons/plus-with-arrow.js +2 -0
  54. package/dist/collection/components/icon/icons/pmi.js +2 -0
  55. package/dist/collection/components/icon/icons/report.js +2 -0
  56. package/dist/collection/components/icon/icons/square-dot-outline.js +2 -0
  57. package/dist/collection/components/icon/icons/update.js +2 -0
  58. package/dist/collection/components/icon/icons/views.js +2 -0
  59. package/dist/collection/components/icon-button/icon-button.js +1 -1
  60. package/dist/collection/components/index.js +3 -1
  61. package/dist/collection/components/result-list/result-list.js +6 -3
  62. package/dist/collection/components/result-list/types.js +1 -0
  63. package/dist/collection/components/search-bar/dom.js +18 -1
  64. package/dist/collection/components/search-bar/lib.js +57 -4
  65. package/dist/collection/components/search-bar/search-bar.css +13 -2
  66. package/dist/collection/components/search-bar/search-bar.js +112 -51
  67. package/dist/collection/components/select/select.css +8 -0
  68. package/dist/collection/components/slider/slider.js +8 -2
  69. package/dist/collection/components/tab/tab.css +16 -0
  70. package/dist/collection/components/tab/tab.js +85 -0
  71. package/dist/collection/components/tab/util.js +3 -0
  72. package/dist/collection/components/tabs/tabs.css +67 -0
  73. package/dist/collection/components/tabs/tabs.js +159 -0
  74. package/dist/collection/types/icon.js +17 -0
  75. package/dist/collection/util/components/dom.js +3 -0
  76. package/dist/components/components.css +1 -1
  77. package/dist/components/components.esm.js +1 -1
  78. package/dist/components/index.esm.js +1 -1
  79. package/dist/components/p-01d4be1d.entry.js +1 -0
  80. package/dist/components/{p-165aed7d.js → p-0d4a0d61.js} +1 -1
  81. package/dist/components/p-18ed73e9.js +1 -0
  82. package/dist/components/p-1d08dd79.entry.js +1 -0
  83. package/dist/components/p-2ae8175d.entry.js +1 -0
  84. package/dist/components/p-2b4aedaa.entry.js +1 -0
  85. package/dist/components/p-3438c441.js +1 -0
  86. package/dist/components/{p-912f6e24.js → p-4327deea.js} +1 -1
  87. package/dist/components/p-45848878.js +1 -0
  88. package/dist/components/p-48629bf1.js +1 -0
  89. package/dist/components/{p-103249b4.js → p-5384f198.js} +1 -1
  90. package/dist/components/p-655053df.js +1 -0
  91. package/dist/components/p-65f9817e.js +1 -0
  92. package/dist/components/p-6a49c365.entry.js +1 -0
  93. package/dist/components/p-6b6c2260.js +1 -0
  94. package/dist/components/p-6ff20817.js +1 -0
  95. package/dist/components/{p-ca52a423.js → p-7bd92281.js} +1 -1
  96. package/dist/components/p-8bbc344d.entry.js +1 -0
  97. package/dist/components/p-8d83dfff.entry.js +1 -0
  98. package/dist/components/p-96f55673.js +1 -0
  99. package/dist/components/{p-9374ef6c.js → p-b9dab446.js} +1 -1
  100. package/dist/components/p-c6841378.entry.js +1 -0
  101. package/dist/components/p-cbfc041e.entry.js +1 -0
  102. package/dist/components/p-d2d75bcf.entry.js +1 -0
  103. package/dist/components/p-d539f530.js +1 -0
  104. package/dist/components/p-decf635f.entry.js +1 -0
  105. package/dist/components/p-e35057b5.entry.js +1 -0
  106. package/dist/esm/{color-circle-picker-998a7e9c.js → color-circle-picker-35ad3b3e.js} +2 -2
  107. package/dist/esm/color-picker-1d67effe.js +44 -0
  108. package/dist/esm/{color-circle-842f3321.js → color-swatch-0e62d13d.js} +42 -17
  109. package/dist/esm/components.js +1 -1
  110. package/dist/esm/{dialog-e3f49527.js → dialog-1cef715c.js} +1 -1
  111. package/dist/esm/dom-9d0f7bf4.js +13 -0
  112. package/dist/esm/{icon-d37150b4.js → icon-bf8df898.js} +1 -1
  113. package/dist/esm/{icon-button-aad3c0e7.js → icon-button-a4bdeabc.js} +1 -1
  114. package/dist/esm/{icon-helper-83f10f73.js → icon-helper-94d45002.js} +107 -0
  115. package/dist/esm/index.js +15 -11
  116. package/dist/esm/lib-73fbca8b.js +7 -0
  117. package/dist/esm/loader.js +1 -1
  118. package/dist/esm/{search-bar-cb59da12.js → search-bar-8d18626e.js} +177 -51
  119. package/dist/esm/{select-d4e135b7.js → select-78aeff96.js} +1 -1
  120. package/dist/esm/{slider-dcdb388f.js → slider-3d8545e3.js} +8 -2
  121. package/dist/esm/tab-c76332b0.js +24 -0
  122. package/dist/esm/tabs-e9f6dcbe.js +109 -0
  123. package/dist/esm/{tooltip-933da261.js → tooltip-db8ebd41.js} +1 -4
  124. package/dist/esm/vertex-color-circle-picker.entry.js +1 -1
  125. package/dist/esm/vertex-color-picker.entry.js +2 -1
  126. package/dist/esm/vertex-color-swatch.entry.js +4 -0
  127. package/dist/esm/vertex-dialog.entry.js +1 -1
  128. package/dist/esm/vertex-icon-button.entry.js +2 -2
  129. package/dist/esm/vertex-icon.entry.js +2 -2
  130. package/dist/esm/vertex-search-bar.entry.js +1 -1
  131. package/dist/esm/vertex-select.entry.js +1 -1
  132. package/dist/esm/vertex-slider.entry.js +2 -1
  133. package/dist/esm/vertex-tab.entry.js +3 -0
  134. package/dist/esm/vertex-tabs.entry.js +4 -0
  135. package/dist/esm/vertex-tooltip.entry.js +2 -1
  136. package/dist/types/components/color-circle-picker/color-circle-picker.d.ts +7 -7
  137. package/dist/types/components/color-picker/color-picker.d.ts +19 -0
  138. package/dist/types/components/{color-circle/color-circle.d.ts → color-swatch/color-swatch.d.ts} +23 -5
  139. package/dist/types/components/color-swatch/lib.d.ts +1 -0
  140. package/dist/types/components/icon/icons/arrow-left-circled.d.ts +3 -0
  141. package/dist/types/components/icon/icons/arrow-right-circled.d.ts +3 -0
  142. package/dist/types/components/icon/icons/camera-add.d.ts +3 -0
  143. package/dist/types/components/icon/icons/caution.d.ts +3 -0
  144. package/dist/types/components/icon/icons/columns-add.d.ts +3 -0
  145. package/dist/types/components/icon/icons/compare.d.ts +3 -0
  146. package/dist/types/components/icon/icons/compress.d.ts +3 -0
  147. package/dist/types/components/icon/icons/cube-stack.d.ts +3 -0
  148. package/dist/types/components/icon/icons/expand.d.ts +3 -0
  149. package/dist/types/components/icon/icons/file-folder.d.ts +3 -0
  150. package/dist/types/components/icon/icons/pin-text-square.d.ts +3 -0
  151. package/dist/types/components/icon/icons/plus-with-arrow.d.ts +3 -0
  152. package/dist/types/components/icon/icons/pmi.d.ts +3 -0
  153. package/dist/types/components/icon/icons/report.d.ts +3 -0
  154. package/dist/types/components/icon/icons/square-dot-outline.d.ts +3 -0
  155. package/dist/types/components/icon/icons/update.d.ts +3 -0
  156. package/dist/types/components/icon/icons/views.d.ts +3 -0
  157. package/dist/types/components/index.d.ts +3 -1
  158. package/dist/types/components/result-list/result-list.d.ts +1 -4
  159. package/dist/types/components/result-list/types.d.ts +4 -0
  160. package/dist/types/components/search-bar/dom.d.ts +6 -1
  161. package/dist/types/components/search-bar/lib.d.ts +22 -3
  162. package/dist/types/components/search-bar/search-bar.d.ts +18 -2
  163. package/dist/types/components/slider/slider.d.ts +1 -0
  164. package/dist/types/components/tab/tab.d.ts +11 -0
  165. package/dist/types/components/tab/util.d.ts +1 -0
  166. package/dist/types/components/tabs/tabs.d.ts +23 -0
  167. package/dist/types/components.d.ts +168 -83
  168. package/dist/types/types/icon.d.ts +17 -0
  169. package/dist/types/util/components/dom.d.ts +1 -0
  170. package/package.json +2 -2
  171. package/dist/cjs/color-picker-876ace00.js +0 -37
  172. package/dist/collection/components/color-circle/color-circle.css +0 -18
  173. package/dist/components/p-03dbb28c.js +0 -1
  174. package/dist/components/p-0b1cdc8a.entry.js +0 -1
  175. package/dist/components/p-0f8b9ede.entry.js +0 -1
  176. package/dist/components/p-16719272.entry.js +0 -1
  177. package/dist/components/p-20a74d5d.entry.js +0 -1
  178. package/dist/components/p-35e7ab78.entry.js +0 -1
  179. package/dist/components/p-759f1655.js +0 -1
  180. package/dist/components/p-7cfb3736.entry.js +0 -1
  181. package/dist/components/p-7dba2574.entry.js +0 -1
  182. package/dist/components/p-7f42b27b.entry.js +0 -1
  183. package/dist/components/p-7f64b251.entry.js +0 -1
  184. package/dist/components/p-8434602f.js +0 -1
  185. package/dist/components/p-92930f2a.js +0 -1
  186. package/dist/components/p-cd6ddb10.js +0 -1
  187. package/dist/components/p-d9b9aebe.js +0 -1
  188. package/dist/components/p-f71fc166.entry.js +0 -1
  189. package/dist/esm/color-picker-2e3b51fa.js +0 -35
  190. package/dist/esm/vertex-color-circle.entry.js +0 -2
@@ -12,6 +12,9 @@ import { CardMode } from "./components/card/card";
12
12
  import { ChipColor, ChipVariant } from "./components/chip/chip";
13
13
  import { InputChangeEventDetail, TextSize } from "./components/text-field/text-field";
14
14
  import { SelectionChangedDetails } from "./components/color-circle-picker/color-circle-picker";
15
+ import { ColorSwatchSize } from "./components/color-swatch/color-swatch";
16
+ import { ColorPickerVariant } from "./components/color-picker/color-picker";
17
+ import { ColorSwatchSize as ColorSwatchSize1, ColorSwatchTheme, ColorSwatchVariant } from "./components/color-swatch/color-swatch";
15
18
  import { Point } from "./types/point";
16
19
  import { Popover, PopoverPlacement } from "./components/popover/popover";
17
20
  import { VertexExpandableType } from "./components/expandable/expandable";
@@ -21,9 +24,8 @@ import { PopoverPlacement as PopoverPlacement1, PopoverResizeBehavior } from "./
21
24
  import { DetectOverflowOptions, FlipOptions, OffsetOptions } from "@floating-ui/dom";
22
25
  import { RadioChangeEventDetail } from "./components/radio/radio";
23
26
  import { HorizontalDragDirection, ResizableBoundsUpdate, ResizeEventDetails, VerticalDragDirection } from "./components/resizable/resizable";
24
- import { Result } from "./components/result-list/result-list";
27
+ import { Result } from "./components/result-list/types";
25
28
  import { SearchBarVariant } from "./components/search-bar/search-bar";
26
- import { Result as Result1 } from "./components/result-list/result-list";
27
29
  import { LabelDisplay, SliderChangeEventDetails, SliderSize } from "./components/slider/slider";
28
30
  import { SpinnerColor, SpinnerSize } from "./components/spinner/spinner";
29
31
  import { InputChangeEventDetail as InputChangeEventDetail1, TextFieldAutocomplete, TextFieldType, TextFieldVariant, TextSize as TextSize1 } from "./components/text-field/text-field";
@@ -198,75 +200,91 @@ export namespace Components {
198
200
  */
199
201
  "open": boolean;
200
202
  }
201
- interface VertexColorCircle {
203
+ interface VertexColorCirclePicker {
202
204
  /**
203
- * The primary color of this `vertex-color-circle`. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
205
+ * The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-swatch`.
204
206
  */
205
- "color": string;
207
+ "colors": string[] | string;
206
208
  /**
207
- * The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
209
+ * The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `dark`.
208
210
  */
209
211
  "darkenPercentage": number;
210
212
  /**
211
- * The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
213
+ * The orientation of this color picker. Can be either `vertical` or `horizontal`, and defaults to `horizontal`.
212
214
  */
213
- "darkened": string;
215
+ "direction": 'vertical' | 'horizontal';
214
216
  /**
215
- * The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
217
+ * 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`.
216
218
  */
217
219
  "lightenPercentage": number;
218
220
  /**
219
- * The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
221
+ * An optional selected color. This will also be updated internally by the component when individual `vertex-color-swatch` elements are clicked.
220
222
  */
221
- "lightened": string;
223
+ "selected"?: string;
222
224
  /**
223
- * An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
225
+ * Optional supplemental colors that will be provided to the underlying `vertex-color-swatch` elements for associated indices in the `colors` array.
224
226
  */
225
- "supplementalColor"?: string;
227
+ "supplementalColors": string[] | string;
226
228
  /**
227
- * The theme to use for this `vertex-color-circle`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
229
+ * The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `darkened` color will be used for the border-colors. With the `light` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `lightened` color will be used for the border-colors.
228
230
  */
229
231
  "theme": 'light' | 'dark';
230
232
  }
231
- interface VertexColorCirclePicker {
233
+ interface VertexColorPicker {
232
234
  /**
233
- * The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-circle`.
235
+ * Whether this color picker is disabled.
234
236
  */
235
- "colors": string[] | string;
237
+ "disabled": boolean;
238
+ /**
239
+ * The size of the swatch displayed for this color picker. Can be `sm`, `md`, `lg`, or `xl`, and defaults to `md`. If the `variant` is `full`, this value will also increase the size of the associated hexadecimal value.
240
+ */
241
+ "size": ColorSwatchSize;
242
+ /**
243
+ * Optional value property to set the initial value of this input.
244
+ */
245
+ "value"?: string;
236
246
  /**
237
- * The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-circle`. This will be used when the `theme` is set to `dark`.
247
+ * The variant of this color picker. Can be `full` or `swatch`, and defaults to `full`. `full` will display both the visual color swatch and the hexadecimal representation of the color. `swatch` will display only the visual color swatch.
248
+ */
249
+ "variant": ColorPickerVariant;
250
+ }
251
+ interface VertexColorSwatch {
252
+ /**
253
+ * The primary color of this `vertex-color-swatch` in hexadecimal format. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
254
+ */
255
+ "color": string;
256
+ /**
257
+ * The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
238
258
  */
239
259
  "darkenPercentage": number;
240
260
  /**
241
- * The orientation of this color picker. Can be either `vertical` or `horizontal`, and defaults to `horizontal`.
261
+ * The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
242
262
  */
243
- "direction": 'vertical' | 'horizontal';
263
+ "darkened": string;
244
264
  /**
245
- * The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-circle`. This will be used when the `theme` is set to `light`.
265
+ * The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
246
266
  */
247
267
  "lightenPercentage": number;
248
268
  /**
249
- * An optional selected color. This will also be updated internally by the component when individual `vertex-color-circle` elements are clicked.
269
+ * The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
250
270
  */
251
- "selected"?: string;
271
+ "lightened": string;
252
272
  /**
253
- * Optional supplemental colors that will be provided to the underlying `vertex-color-circle` elements for associated indices in the `colors` array.
273
+ * The size of this color swatch. Can be `sm`, `md`, or `lg`, and defaults to `md`.
254
274
  */
255
- "supplementalColors": string[] | string;
275
+ "size": ColorSwatchSize;
256
276
  /**
257
- * The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-circle` elements, and a `darkened` color will be used for the border-colors. With the `light` theme, the provided `colors` will be used as the background-colors for `vertex-color-circle` elements, and a `lightened` color will be used for the border-colors.
277
+ * An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
258
278
  */
259
- "theme": 'light' | 'dark';
260
- }
261
- interface VertexColorPicker {
279
+ "supplementalColor"?: string;
262
280
  /**
263
- * Whether this color picker is disabled.
281
+ * The theme to use for this `vertex-color-swatch`. Can be `none`, `light`, or `dark`, and defaults to `none`. With no theme (`none`), the provided `color` will be used as the background-color, and the border will be a neutral color. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
264
282
  */
265
- "disabled": boolean;
283
+ "theme": ColorSwatchTheme;
266
284
  /**
267
- * Optional value property to set the initial value of this input.
285
+ * The variant of this color swatch. Can be either `circle` or `square`, and defaults to `circle`.
268
286
  */
269
- "value"?: string;
287
+ "variant": ColorSwatchVariant;
270
288
  }
271
289
  interface VertexContextMenu {
272
290
  /**
@@ -596,11 +614,11 @@ export namespace Components {
596
614
  /**
597
615
  * Replaced result values. This will be used in combination with the value of `value` to display existing replaced values. This value will be automatically updated as `Result`s are clicked within this search bar's `<vertex-result-list>`.
598
616
  */
599
- "replacements": Result1[];
617
+ "replacements": Result[];
600
618
  /**
601
619
  * The items to display in this search bar's `<vertex-result-list>`. This can be used alongside the `searchChanged` event to query for results to display.
602
620
  */
603
- "resultItems"?: Result1[];
621
+ "resultItems"?: Result[];
604
622
  /**
605
623
  * The character indicating that we should trigger a search. When this character is encountered, the text following it (omitting `breakCharacters`) will be emitted as a `searchChanged` event.
606
624
  */
@@ -676,6 +694,16 @@ export namespace Components {
676
694
  */
677
695
  "size": SpinnerSize;
678
696
  }
697
+ interface VertexTab {
698
+ "active": boolean;
699
+ /**
700
+ * The label to include in tab list.
701
+ */
702
+ "label": string;
703
+ }
704
+ interface VertexTabs {
705
+ "active"?: string;
706
+ }
679
707
  interface VertexTextfield {
680
708
  /**
681
709
  * Sets autoComplete attribute on <input>
@@ -884,6 +912,14 @@ export interface VertexSliderCustomEvent<T> extends CustomEvent<T> {
884
912
  detail: T;
885
913
  target: HTMLVertexSliderElement;
886
914
  }
915
+ export interface VertexTabCustomEvent<T> extends CustomEvent<T> {
916
+ detail: T;
917
+ target: HTMLVertexTabElement;
918
+ }
919
+ export interface VertexTabsCustomEvent<T> extends CustomEvent<T> {
920
+ detail: T;
921
+ target: HTMLVertexTabsElement;
922
+ }
887
923
  export interface VertexTextfieldCustomEvent<T> extends CustomEvent<T> {
888
924
  detail: T;
889
925
  target: HTMLVertexTextfieldElement;
@@ -957,12 +993,6 @@ declare global {
957
993
  prototype: HTMLVertexCollapsibleElement;
958
994
  new (): HTMLVertexCollapsibleElement;
959
995
  };
960
- interface HTMLVertexColorCircleElement extends Components.VertexColorCircle, HTMLStencilElement {
961
- }
962
- var HTMLVertexColorCircleElement: {
963
- prototype: HTMLVertexColorCircleElement;
964
- new (): HTMLVertexColorCircleElement;
965
- };
966
996
  interface HTMLVertexColorCirclePickerElement extends Components.VertexColorCirclePicker, HTMLStencilElement {
967
997
  }
968
998
  var HTMLVertexColorCirclePickerElement: {
@@ -975,6 +1005,12 @@ declare global {
975
1005
  prototype: HTMLVertexColorPickerElement;
976
1006
  new (): HTMLVertexColorPickerElement;
977
1007
  };
1008
+ interface HTMLVertexColorSwatchElement extends Components.VertexColorSwatch, HTMLStencilElement {
1009
+ }
1010
+ var HTMLVertexColorSwatchElement: {
1011
+ prototype: HTMLVertexColorSwatchElement;
1012
+ new (): HTMLVertexColorSwatchElement;
1013
+ };
978
1014
  interface HTMLVertexContextMenuElement extends Components.VertexContextMenu, HTMLStencilElement {
979
1015
  }
980
1016
  var HTMLVertexContextMenuElement: {
@@ -1101,6 +1137,18 @@ declare global {
1101
1137
  prototype: HTMLVertexSpinnerElement;
1102
1138
  new (): HTMLVertexSpinnerElement;
1103
1139
  };
1140
+ interface HTMLVertexTabElement extends Components.VertexTab, HTMLStencilElement {
1141
+ }
1142
+ var HTMLVertexTabElement: {
1143
+ prototype: HTMLVertexTabElement;
1144
+ new (): HTMLVertexTabElement;
1145
+ };
1146
+ interface HTMLVertexTabsElement extends Components.VertexTabs, HTMLStencilElement {
1147
+ }
1148
+ var HTMLVertexTabsElement: {
1149
+ prototype: HTMLVertexTabsElement;
1150
+ new (): HTMLVertexTabsElement;
1151
+ };
1104
1152
  interface HTMLVertexTextfieldElement extends Components.VertexTextfield, HTMLStencilElement {
1105
1153
  }
1106
1154
  var HTMLVertexTextfieldElement: {
@@ -1136,9 +1184,9 @@ declare global {
1136
1184
  "vertex-chip": HTMLVertexChipElement;
1137
1185
  "vertex-click-to-edit-textfield": HTMLVertexClickToEditTextfieldElement;
1138
1186
  "vertex-collapsible": HTMLVertexCollapsibleElement;
1139
- "vertex-color-circle": HTMLVertexColorCircleElement;
1140
1187
  "vertex-color-circle-picker": HTMLVertexColorCirclePickerElement;
1141
1188
  "vertex-color-picker": HTMLVertexColorPickerElement;
1189
+ "vertex-color-swatch": HTMLVertexColorSwatchElement;
1142
1190
  "vertex-context-menu": HTMLVertexContextMenuElement;
1143
1191
  "vertex-dialog": HTMLVertexDialogElement;
1144
1192
  "vertex-draggable-popover": HTMLVertexDraggablePopoverElement;
@@ -1160,6 +1208,8 @@ declare global {
1160
1208
  "vertex-select": HTMLVertexSelectElement;
1161
1209
  "vertex-slider": HTMLVertexSliderElement;
1162
1210
  "vertex-spinner": HTMLVertexSpinnerElement;
1211
+ "vertex-tab": HTMLVertexTabElement;
1212
+ "vertex-tabs": HTMLVertexTabsElement;
1163
1213
  "vertex-textfield": HTMLVertexTextfieldElement;
1164
1214
  "vertex-toast": HTMLVertexToastElement;
1165
1215
  "vertex-toggle": HTMLVertexToggleElement;
@@ -1359,43 +1409,13 @@ declare namespace LocalJSX {
1359
1409
  */
1360
1410
  "open"?: boolean;
1361
1411
  }
1362
- interface VertexColorCircle {
1363
- /**
1364
- * The primary color of this `vertex-color-circle`. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
1365
- */
1366
- "color"?: string;
1367
- /**
1368
- * The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
1369
- */
1370
- "darkenPercentage"?: number;
1371
- /**
1372
- * The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
1373
- */
1374
- "darkened"?: string;
1375
- /**
1376
- * The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
1377
- */
1378
- "lightenPercentage"?: number;
1379
- /**
1380
- * The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
1381
- */
1382
- "lightened"?: string;
1383
- /**
1384
- * An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
1385
- */
1386
- "supplementalColor"?: string;
1387
- /**
1388
- * The theme to use for this `vertex-color-circle`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
1389
- */
1390
- "theme"?: 'light' | 'dark';
1391
- }
1392
1412
  interface VertexColorCirclePicker {
1393
1413
  /**
1394
- * The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-circle`.
1414
+ * The colors to show in this `vertex-color-circle-picker`. These values will map to the `color` property of the underlying `vertex-color-swatch`.
1395
1415
  */
1396
1416
  "colors"?: string[] | string;
1397
1417
  /**
1398
- * The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-circle`. This will be used when the `theme` is set to `dark`.
1418
+ * The percentage darker color to use to compute the `darkened` color for the underlying `vertex-color-swatch`. This will be used when the `theme` is set to `dark`.
1399
1419
  */
1400
1420
  "darkenPercentage"?: number;
1401
1421
  /**
@@ -1403,20 +1423,20 @@ declare namespace LocalJSX {
1403
1423
  */
1404
1424
  "direction"?: 'vertical' | 'horizontal';
1405
1425
  /**
1406
- * The percentage lighter color to use to compute the `lightened` color for the underlying `vertex-color-circle`. This will be used when the `theme` is set to `light`.
1426
+ * 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`.
1407
1427
  */
1408
1428
  "lightenPercentage"?: number;
1409
1429
  "onSelectionChanged"?: (event: VertexColorCirclePickerCustomEvent<SelectionChangedDetails>) => void;
1410
1430
  /**
1411
- * An optional selected color. This will also be updated internally by the component when individual `vertex-color-circle` elements are clicked.
1431
+ * An optional selected color. This will also be updated internally by the component when individual `vertex-color-swatch` elements are clicked.
1412
1432
  */
1413
1433
  "selected"?: string;
1414
1434
  /**
1415
- * Optional supplemental colors that will be provided to the underlying `vertex-color-circle` elements for associated indices in the `colors` array.
1435
+ * Optional supplemental colors that will be provided to the underlying `vertex-color-swatch` elements for associated indices in the `colors` array.
1416
1436
  */
1417
1437
  "supplementalColors"?: string[] | string;
1418
1438
  /**
1419
- * The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-circle` elements, and a `darkened` color will be used for the border-colors. With the `light` theme, the provided `colors` will be used as the background-colors for `vertex-color-circle` elements, and a `lightened` color will be used for the border-colors.
1439
+ * The theme to use for this `vertex-color-circle-picker`. Can be either `light` or `dark`, and defaults to `dark`. With the `dark` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `darkened` color will be used for the border-colors. With the `light` theme, the provided `colors` will be used as the background-colors for `vertex-color-swatch` elements, and a `lightened` color will be used for the border-colors.
1420
1440
  */
1421
1441
  "theme"?: 'light' | 'dark';
1422
1442
  }
@@ -1433,10 +1453,56 @@ declare namespace LocalJSX {
1433
1453
  * Emitted when a new value is input.
1434
1454
  */
1435
1455
  "onValueInput"?: (event: VertexColorPickerCustomEvent<string>) => void;
1456
+ /**
1457
+ * The size of the swatch displayed for this color picker. Can be `sm`, `md`, `lg`, or `xl`, and defaults to `md`. If the `variant` is `full`, this value will also increase the size of the associated hexadecimal value.
1458
+ */
1459
+ "size"?: ColorSwatchSize;
1436
1460
  /**
1437
1461
  * Optional value property to set the initial value of this input.
1438
1462
  */
1439
1463
  "value"?: string;
1464
+ /**
1465
+ * The variant of this color picker. Can be `full` or `swatch`, and defaults to `full`. `full` will display both the visual color swatch and the hexadecimal representation of the color. `swatch` will display only the visual color swatch.
1466
+ */
1467
+ "variant"?: ColorPickerVariant;
1468
+ }
1469
+ interface VertexColorSwatch {
1470
+ /**
1471
+ * The primary color of this `vertex-color-swatch` in hexadecimal format. For `dark` theme, this will be the background-color. For `light` theme, this will be the border-color.
1472
+ */
1473
+ "color"?: string;
1474
+ /**
1475
+ * The percentage darker color to use to compute the `darkened` color. This will be used when the `theme` is set to `dark`.
1476
+ */
1477
+ "darkenPercentage"?: number;
1478
+ /**
1479
+ * The computed darker color based on the provided `color` and `darkenPercentage`. This will be used when the `theme` is set to `dark`.
1480
+ */
1481
+ "darkened"?: string;
1482
+ /**
1483
+ * The percentage lighter color to use to compute the `lightened` color. This will be used when the `theme` is set to `light`.
1484
+ */
1485
+ "lightenPercentage"?: number;
1486
+ /**
1487
+ * The computed lighter color based on the provided `color` and `lightenPercentage`. This will be used when the `theme` is set to `light`.
1488
+ */
1489
+ "lightened"?: string;
1490
+ /**
1491
+ * The size of this color swatch. Can be `sm`, `md`, or `lg`, and defaults to `md`.
1492
+ */
1493
+ "size"?: ColorSwatchSize;
1494
+ /**
1495
+ * An optional supplemental color to be paired with the `color`. For `dark` theme, this will be the border-color. For `light` theme, this will be the background-color.
1496
+ */
1497
+ "supplementalColor"?: string;
1498
+ /**
1499
+ * The theme to use for this `vertex-color-swatch`. Can be `none`, `light`, or `dark`, and defaults to `none`. With no theme (`none`), the provided `color` will be used as the background-color, and the border will be a neutral color. With the `dark` theme, the provided `color` will be used as the background-color, and the `darkened` color will be used for the border-color. With the `light` theme, the provided `color` will be used as the border-color, and the `lightened` color will be used for the background-color.
1500
+ */
1501
+ "theme"?: ColorSwatchTheme;
1502
+ /**
1503
+ * The variant of this color swatch. Can be either `circle` or `square`, and defaults to `circle`.
1504
+ */
1505
+ "variant"?: ColorSwatchVariant;
1440
1506
  }
1441
1507
  interface VertexContextMenu {
1442
1508
  /**
@@ -1828,7 +1894,7 @@ declare namespace LocalJSX {
1828
1894
  /**
1829
1895
  * Emitted when a result has been selected to replace the trigger text. Includes the ID of the `Result` selected.
1830
1896
  */
1831
- "onResultReplaced"?: (event: VertexSearchBarCustomEvent<Result1>) => void;
1897
+ "onResultReplaced"?: (event: VertexSearchBarCustomEvent<Result>) => void;
1832
1898
  /**
1833
1899
  * Emitted when the value of the current search triggered by the specified `triggerCharacter` has changed.
1834
1900
  */
@@ -1849,11 +1915,11 @@ declare namespace LocalJSX {
1849
1915
  /**
1850
1916
  * Replaced result values. This will be used in combination with the value of `value` to display existing replaced values. This value will be automatically updated as `Result`s are clicked within this search bar's `<vertex-result-list>`.
1851
1917
  */
1852
- "replacements"?: Result1[];
1918
+ "replacements"?: Result[];
1853
1919
  /**
1854
1920
  * The items to display in this search bar's `<vertex-result-list>`. This can be used alongside the `searchChanged` event to query for results to display.
1855
1921
  */
1856
- "resultItems"?: Result1[];
1922
+ "resultItems"?: Result[];
1857
1923
  /**
1858
1924
  * The character indicating that we should trigger a search. When this character is encountered, the text following it (omitting `breakCharacters`) will be emitted as a `searchChanged` event.
1859
1925
  */
@@ -1938,6 +2004,21 @@ declare namespace LocalJSX {
1938
2004
  */
1939
2005
  "size"?: SpinnerSize;
1940
2006
  }
2007
+ interface VertexTab {
2008
+ "active"?: boolean;
2009
+ /**
2010
+ * The label to include in tab list.
2011
+ */
2012
+ "label": string;
2013
+ "onTabClick"?: (event: VertexTabCustomEvent<string>) => void;
2014
+ }
2015
+ interface VertexTabs {
2016
+ "active"?: string;
2017
+ /**
2018
+ * An event that is emitted whenever the selected tab changes and contains the label of the newly selected tab.
2019
+ */
2020
+ "onSelectedTabChanged"?: (event: VertexTabsCustomEvent<string>) => void;
2021
+ }
1941
2022
  interface VertexTextfield {
1942
2023
  /**
1943
2024
  * Sets autoComplete attribute on <input>
@@ -2095,9 +2176,9 @@ declare namespace LocalJSX {
2095
2176
  "vertex-chip": VertexChip;
2096
2177
  "vertex-click-to-edit-textfield": VertexClickToEditTextfield;
2097
2178
  "vertex-collapsible": VertexCollapsible;
2098
- "vertex-color-circle": VertexColorCircle;
2099
2179
  "vertex-color-circle-picker": VertexColorCirclePicker;
2100
2180
  "vertex-color-picker": VertexColorPicker;
2181
+ "vertex-color-swatch": VertexColorSwatch;
2101
2182
  "vertex-context-menu": VertexContextMenu;
2102
2183
  "vertex-dialog": VertexDialog;
2103
2184
  "vertex-draggable-popover": VertexDraggablePopover;
@@ -2119,6 +2200,8 @@ declare namespace LocalJSX {
2119
2200
  "vertex-select": VertexSelect;
2120
2201
  "vertex-slider": VertexSlider;
2121
2202
  "vertex-spinner": VertexSpinner;
2203
+ "vertex-tab": VertexTab;
2204
+ "vertex-tabs": VertexTabs;
2122
2205
  "vertex-textfield": VertexTextfield;
2123
2206
  "vertex-toast": VertexToast;
2124
2207
  "vertex-toggle": VertexToggle;
@@ -2139,9 +2222,9 @@ declare module "@stencil/core" {
2139
2222
  "vertex-chip": LocalJSX.VertexChip & JSXBase.HTMLAttributes<HTMLVertexChipElement>;
2140
2223
  "vertex-click-to-edit-textfield": LocalJSX.VertexClickToEditTextfield & JSXBase.HTMLAttributes<HTMLVertexClickToEditTextfieldElement>;
2141
2224
  "vertex-collapsible": LocalJSX.VertexCollapsible & JSXBase.HTMLAttributes<HTMLVertexCollapsibleElement>;
2142
- "vertex-color-circle": LocalJSX.VertexColorCircle & JSXBase.HTMLAttributes<HTMLVertexColorCircleElement>;
2143
2225
  "vertex-color-circle-picker": LocalJSX.VertexColorCirclePicker & JSXBase.HTMLAttributes<HTMLVertexColorCirclePickerElement>;
2144
2226
  "vertex-color-picker": LocalJSX.VertexColorPicker & JSXBase.HTMLAttributes<HTMLVertexColorPickerElement>;
2227
+ "vertex-color-swatch": LocalJSX.VertexColorSwatch & JSXBase.HTMLAttributes<HTMLVertexColorSwatchElement>;
2145
2228
  "vertex-context-menu": LocalJSX.VertexContextMenu & JSXBase.HTMLAttributes<HTMLVertexContextMenuElement>;
2146
2229
  "vertex-dialog": LocalJSX.VertexDialog & JSXBase.HTMLAttributes<HTMLVertexDialogElement>;
2147
2230
  "vertex-draggable-popover": LocalJSX.VertexDraggablePopover & JSXBase.HTMLAttributes<HTMLVertexDraggablePopoverElement>;
@@ -2163,6 +2246,8 @@ declare module "@stencil/core" {
2163
2246
  "vertex-select": LocalJSX.VertexSelect & JSXBase.HTMLAttributes<HTMLVertexSelectElement>;
2164
2247
  "vertex-slider": LocalJSX.VertexSlider & JSXBase.HTMLAttributes<HTMLVertexSliderElement>;
2165
2248
  "vertex-spinner": LocalJSX.VertexSpinner & JSXBase.HTMLAttributes<HTMLVertexSpinnerElement>;
2249
+ "vertex-tab": LocalJSX.VertexTab & JSXBase.HTMLAttributes<HTMLVertexTabElement>;
2250
+ "vertex-tabs": LocalJSX.VertexTabs & JSXBase.HTMLAttributes<HTMLVertexTabsElement>;
2166
2251
  "vertex-textfield": LocalJSX.VertexTextfield & JSXBase.HTMLAttributes<HTMLVertexTextfieldElement>;
2167
2252
  "vertex-toast": LocalJSX.VertexToast & JSXBase.HTMLAttributes<HTMLVertexToastElement>;
2168
2253
  "vertex-toggle": LocalJSX.VertexToggle & JSXBase.HTMLAttributes<HTMLVertexToggleElement>;
@@ -6,9 +6,11 @@ export declare enum IconNames {
6
6
  'align-view-to-plane' = "align-view-to-plane",
7
7
  'annotation' = "annotation",
8
8
  'arrow-filled' = "arrow-filled",
9
+ 'arrow-left-circled' = "arrow-left-circled",
9
10
  'arrow-line-left' = "arrow-line-left",
10
11
  'arrow-line-right' = "arrow-line-right",
11
12
  'arrow-partial' = "arrow-partial",
13
+ 'arrow-right-circled' = "arrow-right-circled",
12
14
  'arrow-triangle-left' = "arrow-triangle-left",
13
15
  'arrow-triangle-right' = "arrow-triangle-right",
14
16
  'arrow-up-circled' = "arrow-up-circled",
@@ -20,9 +22,11 @@ export declare enum IconNames {
20
22
  'box-cursor' = "box-cursor",
21
23
  'box-select' = "box-select",
22
24
  'camera' = "camera",
25
+ 'camera-add' = "camera-add",
23
26
  'caret-down' = "caret-down",
24
27
  'caret-left' = "caret-left",
25
28
  'caret-up' = "caret-up",
29
+ 'caution' = "caution",
26
30
  'check' = "check",
27
31
  'check-circle' = "check-circle",
28
32
  'caret-right' = "caret-right",
@@ -36,23 +40,29 @@ export declare enum IconNames {
36
40
  'close-circle' = "close-circle",
37
41
  'collapse-all' = "collapse-all",
38
42
  'columns' = "columns",
43
+ 'columns-add' = "columns-add",
39
44
  'comment-add' = "comment-add",
40
45
  'comment-filled' = "comment-filled",
41
46
  'comment-reopen' = "comment-reopen",
42
47
  'comment-resolve' = "comment-resolve",
43
48
  'comment-show' = "comment-show",
49
+ 'compare' = "compare",
50
+ 'compress' = "compress",
44
51
  'copy' = "copy",
45
52
  'cross-section' = "cross-section",
46
53
  'cube-orthographic' = "cube-orthographic",
47
54
  'cube-perspective' = "cube-perspective",
55
+ 'cube-stack' = "cube-stack",
48
56
  'delete' = "delete",
49
57
  'download' = "download",
50
58
  'drag-indicator' = "drag-indicator",
51
59
  'ellipse' = "ellipse",
52
60
  'error-circle' = "error-circle",
61
+ 'expand' = "expand",
53
62
  'expand-all' = "expand-all",
54
63
  'export' = "export",
55
64
  'file' = "file",
65
+ 'file-folder' = "file-folder",
56
66
  'file-pdf' = "file-pdf",
57
67
  'fit-all' = "fit-all",
58
68
  'fit-selected' = "fit-selected",
@@ -85,9 +95,13 @@ export declare enum IconNames {
85
95
  'pin-line' = "pin-line",
86
96
  'pin-text' = "pin-text",
87
97
  'pin-text-fill' = "pin-text-fill",
98
+ 'pin-text-square' = "pin-text-square",
88
99
  'plus' = "plus",
100
+ 'plus-with-arrow' = "plus-with-arrow",
101
+ 'pmi' = "pmi",
89
102
  'precise-measurement' = "precise-measurement",
90
103
  'rabbit' = "rabbit",
104
+ 'report' = "report",
91
105
  'reset' = "reset",
92
106
  'resize' = "resize",
93
107
  'rotate' = "rotate",
@@ -96,12 +110,15 @@ export declare enum IconNames {
96
110
  'show-only-nearby' = "show-only-nearby",
97
111
  'snapshots' = "snapshots",
98
112
  'star' = "star",
113
+ 'square-dot-outline' = "square-dot-outline",
99
114
  'tape-measure' = "tape-measure",
100
115
  'teleport-and-align' = "teleport-and-align",
101
116
  'teleport-toward' = "teleport-toward",
102
117
  'teleport' = "teleport",
103
118
  'turtle' = "turtle",
119
+ 'update' = "update",
104
120
  'version-history' = "version-history",
121
+ 'views' = "views",
105
122
  'visibility-hidden' = "visibility-hidden",
106
123
  'visibility-partial' = "visibility-partial",
107
124
  'visibility-visible' = "visibility-visible",
@@ -1,3 +1,4 @@
1
1
  export declare function readDOM(callback: VoidFunction): void;
2
2
  export declare function getBoundingClientRect(el: HTMLElement): DOMRect;
3
3
  export declare function getComputedStyle(el: HTMLElement): CSSStyleDeclaration;
4
+ export declare function blurElement(el: HTMLElement): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/ui",
3
- "version": "0.1.0-testing.7",
3
+ "version": "0.1.0",
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.21.0",
88
88
  "fast-deep-equal": "^3.1.3"
89
89
  },
90
- "gitHead": "72b8c589035ef4955b205c744e4ff46a2a8976bb"
90
+ "gitHead": "83569fb49b20a52ab8ff8c64f37a6df931776bdc"
91
91
  }
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-6a92256c.js');
4
- const index$1 = require('./index-e1b40fa6.js');
5
-
6
- const colorPickerCss = ":host{--selected-color-width:30px;--selected-color-height:30px}.color-picker{display:inline-flex;position:relative;background:var(--vertex-ui-neutral-200);border-radius:4px;cursor:pointer}.color-picker.disabled{opacity:0.5;cursor:default}.selected{height:var(--selected-color-height);width:var(--selected-color-width);box-sizing:content-box;border:1px solid var(--vertex-ui-neutral-300);border-radius:4px}.handle{display:flex;align-items:center;padding:0 3px}.input{position:absolute;pointer-events:none;height:100%;width:100%;left:0;top:0;opacity:0}";
7
-
8
- const ColorPicker = class {
9
- constructor(hostRef) {
10
- index.registerInstance(this, hostRef);
11
- this.valueInput = index.createEvent(this, "valueInput", 7);
12
- this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
- this.handleInput = (event) => {
14
- const input = event.target;
15
- this.value = input.value || '';
16
- };
17
- this.handleChange = (event) => {
18
- this.valueChanged.emit(this.value);
19
- };
20
- this.value = undefined;
21
- this.disabled = false;
22
- }
23
- valueChange() {
24
- this.valueInput.emit(this.value);
25
- }
26
- render() {
27
- return (index.h(index.Host, null, index.h("label", { class: index$1.classnames('color-picker', { disabled: this.disabled }) }, index.h("input", { type: "color", class: "input", "data-testid": "input", disabled: this.disabled, value: this.value, onInput: this.handleInput, onChange: this.handleChange }), index.h("div", { class: "selected", style: {
28
- 'background-color': this.value,
29
- }, title: this.value }), index.h("div", { class: "handle" }, index.h("slot", { name: "handle-icon" }, index.h("vertex-icon", { name: "chevron-down", size: "sm" }))))));
30
- }
31
- static get watchers() { return {
32
- "value": ["valueChange"]
33
- }; }
34
- };
35
- ColorPicker.style = colorPickerCss;
36
-
37
- exports.ColorPicker = ColorPicker;
@@ -1,18 +0,0 @@
1
- :host {
2
- display: flex;
3
-
4
- /*
5
- The size of the circle.
6
- Defaults to 24px;
7
- */
8
- --circle-size: 24px;
9
- }
10
-
11
- .root {
12
- border-radius: 100%;
13
- border-width: 2px;
14
- border-style: solid;
15
- width: var(--circle-size);
16
- height: var(--circle-size);
17
- box-sizing: border-box;
18
- }