@rogieking/figui3 1.0.1 → 1.0.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 (3) hide show
  1. package/fig.css +2 -12
  2. package/fig.js +2 -0
  3. package/package.json +1 -1
package/fig.css CHANGED
@@ -354,18 +354,11 @@
354
354
  :root {
355
355
  --font-size: 16px;
356
356
  --figma-color-bordertranslucent: rgba(0, 0, 0, 0.1);
357
- --figma-color-bg-brand: rgba(13, 153, 255, 1);
358
357
  --checkerboard: repeating-conic-gradient(rgba(0, 0, 0, 0.1) 0% 25%, rgba(255, 255, 255, 0.1) 0% 50%) 0 0 / .66666rem .66666rem;
359
358
  --bg-hue: linear-gradient(90deg, rgba(255, 0, 0, 1), rgba(255, 48, 0, 1), rgba(255, 96, 0, 1), rgba(255, 143, 0, 1), rgba(255, 191, 0, 1), rgba(255, 239, 0, 1), rgba(223, 255, 0, 1), rgba(175, 255, 0, 1), rgba(128, 255, 0, 1), rgba(80, 255, 0, 1), rgba(32, 255, 0, 1), rgba(0, 255, 16, 1), rgba(0, 255, 64, 1), rgba(0, 255, 112, 1), rgba(0, 255, 159, 1), rgba(0, 255, 207, 1), rgba(0, 255, 255, 1), rgba(0, 207, 255, 1), rgba(0, 159, 255, 1), rgba(0, 112, 255, 1), rgba(0, 64, 255, 1), rgba(0, 16, 255, 1), rgba(32, 0, 255, 1), rgba(80, 0, 255, 1), rgba(127, 0, 255, 1), rgba(175, 0, 255, 1), rgba(223, 0, 255, 1), rgba(255, 0, 239, 1), rgba(255, 0, 191, 1), rgba(255, 0, 143, 1), rgba(255, 0, 96, 1), rgba(255, 0, 48, 1));
360
359
  --input-transition: all 0.08s ease-out;
361
- --figma-color-text-disabled: rgba(0, 0, 0, 0.3);
362
- --figma-color-bg-tertiary: rgba(230, 230, 230, 1);
363
360
  --bg-selected: #F5F5F5;
364
- --figma-color-bg-brand: #0D99FF;
365
- --figma-color-icon-brand: #007BE5;
366
361
  --bg-selected-active: #E5F4FF;
367
- --figma-color-bg-secondary: #F5F5F5;
368
- --figma-color-border-selected: #0D99FF;
369
362
  --bg-tooltip: #1E1E1E;
370
363
  --body-medium-fontSize: 0.6875rem;
371
364
  --border-selected: #0D99FF;
@@ -385,7 +378,6 @@
385
378
  0px 0px 0.5px 0px rgba(0, 0, 0, 0.1);
386
379
 
387
380
  --popover-min-width: 15rem;
388
- --figma-color-bg-selected: #e5f4ff;
389
381
  --figma-color-bg-ghost-hover: rgba(0, 0, 0, 0.05);
390
382
  --elevation-500-modal-window: 0px 0px .5px rgba(0, 0, 0, .08), 0px 10px 24px rgba(0, 0, 0, .18), 0px 2px 5px rgba(0, 0, 0, .15);
391
383
 
@@ -402,11 +394,8 @@
402
394
  --icon-chevron: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.87868 7.12132L8 9.24264L10.1213 7.12132' stroke='rgb(255 255 255 / 50%)' stroke-linecap='round'/%3E%3C/svg%3E%0A");
403
395
  --handle-shadow: 0px 0 0 0.75px rgba(255, 255, 255, 0.1),
404
396
  0px 0px 0.5px 0px rgba(255, 255, 255, 0.1);
405
- --figma-color-bg-selected: #3B435E;
406
397
  --figma-color-bg-ghost-hover: rgba(255, 255, 255, 0.05);
407
398
  --figma-color-bordertranslucent: rgba(255, 255, 255, 0.1);
408
- --figma-color-border-selected: #0C8CE9;
409
- --figma-color-icon-brand: #7CC4F8;
410
399
  --elevation-500-modal-window: 0px 10px 24px rgba(0, 0, 0, .45), 0px 3px 5px rgba(0, 0, 0, .35), inset 0px .75px 0px rgba(255, 255, 255, .1);
411
400
  --figma-elevation-100: 0px 0px 0.5px 0px rgba(0, 0, 0, 0.50), 0px 0.75px 0px 0px rgba(255, 255, 255, 0.10) inset, 0px 1px 3px 0px rgba(0, 0, 0, 0.40);
412
401
  }
@@ -568,7 +557,7 @@ textarea {
568
557
 
569
558
  /* Dropdown */
570
559
  select,
571
- input[list] {
560
+ input[type=text][list] {
572
561
  height: var(--spacer-4);
573
562
  padding: 0 var(--spacer-2);
574
563
  appearance: none;
@@ -1785,6 +1774,7 @@ fig-field,
1785
1774
  &[direction=horizontal] {
1786
1775
  gap: var(--spacer-2);
1787
1776
  align-items: flex-start;
1777
+ flex-direction: row;
1788
1778
  }
1789
1779
  }
1790
1780
 
package/fig.js CHANGED
@@ -24,6 +24,7 @@ class FigButton extends HTMLElement {
24
24
  display: block;
25
25
  border: 0;
26
26
  font: inherit;
27
+ color: inherit;
27
28
  background: transparent;
28
29
  }
29
30
  </style>
@@ -108,6 +109,7 @@ class FigTooltip extends HTMLElement {
108
109
  this.popup = document.createElement('span');
109
110
  this.popup.setAttribute("class", "fig-tooltip")
110
111
  this.popup.style.position = "fixed"
112
+ this.popup.style.display = "none"
111
113
  this.popup.style.pointerEvents = "none"
112
114
  this.popup.innerText = this.getAttribute("text")
113
115
  document.body.append(this.popup)
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.1"
3
+ "version": "1.0.3"
4
4
  }