@rogieking/figui3 1.8.4 → 1.8.6

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.
package/components.css CHANGED
@@ -418,9 +418,7 @@
418
418
  --body-medium-strong-fontWeight: 550;
419
419
  --body-large-strong-fontWeight: 500;
420
420
  --body-medium-fontWeight: 450;
421
- --handle-shadow: 0px 0 0 0.75px rgba(0, 0, 0, 0.05),
422
- 0px 1px 3px 0px rgba(0, 0, 0, 0.05), 0px 3px 8px 0px rgba(0, 0, 0, 0.05),
423
- 0px 0px 0.5px 0px rgba(0, 0, 0, 0.1), var(--figma-elevation-200);
421
+ --handle-shadow: 0px 0 0 0.5px rgba(0, 0, 0, 0.1), var(--figma-elevation-200);
424
422
  --handle-color: #fff;
425
423
 
426
424
  --popover-min-width: 15rem;
@@ -1586,11 +1584,9 @@ fig-slider {
1586
1584
  --slider-tick-size: calc(var(--slider-height) / 4);
1587
1585
  --slider-handle-shadow: inset 0 0 0 calc(4px + 0.5rem * var(--unchanged))
1588
1586
  var(--handle-color),
1589
- inset 0 0 0 5px rgba(0, 0, 0, 0.1), var(--figma-elevation-200);
1587
+ var(--handle-shadow);
1590
1588
  --slider-handle-shadow-focus: inset 0 0 0 4px var(--handle-color),
1591
- inset 0 0 0 5px rgba(0, 0, 0, 0.1), 0px 0 0 0.75px rgba(0, 0, 0, 0.1),
1592
- 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 3px 8px 0px rgba(0, 0, 0, 0.1),
1593
- 0px 0px 0.5px 0px rgba(0, 0, 0, 0.18),
1589
+ inset 0 0 0 5px rgba(0, 0, 0, 0.1), var(--handle-shadow),
1594
1590
  0 0 0 1px var(--figma-color-border-selected);
1595
1591
  --slider-transition: all 0.1s ease-in-out;
1596
1592
  --handle-transition: var(--slider-transition);
@@ -1883,6 +1879,41 @@ fig-slider {
1883
1879
  background-color: transparent;
1884
1880
  }
1885
1881
 
1882
+ &:hover,
1883
+ &:focus-within {
1884
+ fig-input-text {
1885
+ height: auto;
1886
+ }
1887
+ }
1888
+ }
1889
+ &[variant="neue"] {
1890
+ --slider-height: 0.375rem;
1891
+ --slider-thumb-size: 0.75rem;
1892
+ --slider-tick-size: calc(var(--slider-height) / 2);
1893
+ --handle-transition: none;
1894
+ --slider-transition: none;
1895
+ --slider-handle-shadow: inset 0 0 0 calc(6px + 0.5rem * var(--unchanged))
1896
+ var(--handle-color),
1897
+ 0 0 0 0.75px rgba(0, 0, 0, 0.075), inset 0 0 0 5px rgba(0, 0, 0, 0.1),
1898
+ var(--figma-elevation-200);
1899
+
1900
+ background-color: var(--figma-color-bg-secondary);
1901
+ border-radius: var(--radius-medium);
1902
+ padding-left: 0.5rem;
1903
+
1904
+ .fig-slider-input-container {
1905
+ height: var(--slider-height);
1906
+ position: relative;
1907
+ display: block;
1908
+ width: 100%;
1909
+ box-shadow: none;
1910
+ background-color: var(--figma-color-bg-tertiary);
1911
+ }
1912
+ fig-input-text {
1913
+ border-top-left-radius: 0;
1914
+ border-bottom-left-radius: 0;
1915
+ }
1916
+
1886
1917
  &:hover,
1887
1918
  &:focus-within {
1888
1919
  fig-input-text {
@@ -2205,6 +2236,7 @@ fig-input-text {
2205
2236
  justify-content: center;
2206
2237
  user-select: all;
2207
2238
  gap: 0;
2239
+ color: var(--figma-color-text);
2208
2240
 
2209
2241
  &[multiline] {
2210
2242
  display: block;
package/example.html CHANGED
@@ -28,12 +28,24 @@
28
28
 
29
29
 
30
30
 
31
+
32
+
31
33
  <fig-input-text disabled
32
34
  value="Disabled"><span slot="append">%</span></fig-input-text>
33
35
 
34
36
 
37
+ <fig-slider min="1"
38
+ max="100"
39
+ value="50"
40
+ step="1"
41
+ text="true"
42
+ units="%"
43
+ variant="neue">
44
+ </fig-slider>
45
+
46
+
35
47
  <fig-popover action="manual"
36
- open="true"
48
+ open="false"
37
49
  size="large">
38
50
  <fig-button>
39
51
  Hover me
@@ -535,6 +547,8 @@
535
547
  Close
536
548
  </fig-button>
537
549
  </fig-tooltip>
550
+ <fig-input-text placeholder="Enter text"
551
+ value="Hello"></fig-input-text>
538
552
  <p>Some content here</p>
539
553
  <fig-field direction="horizontal">
540
554
  <label for="colorLevels">Color Levels</label>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {