@rogieking/figui3 4.15.8 → 4.15.10
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 +35 -29
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/dist/fig.js +25 -24
- package/fig.js +26 -2
- package/package.json +1 -1
package/components.css
CHANGED
|
@@ -1499,6 +1499,7 @@ fig-video {
|
|
|
1499
1499
|
opacity: 0;
|
|
1500
1500
|
pointer-events: none;
|
|
1501
1501
|
z-index: 2;
|
|
1502
|
+
max-width:calc(100% - var(--spacer-4));
|
|
1502
1503
|
}
|
|
1503
1504
|
&:is(:not([src]), [src=""]) > fig-input-file[data-generated],
|
|
1504
1505
|
&:hover > fig-input-file[data-generated] {
|
|
@@ -5008,54 +5009,50 @@ fig-choice {
|
|
|
5008
5009
|
fig-handle {
|
|
5009
5010
|
--width: 0.875rem;
|
|
5010
5011
|
--height: 0.875rem;
|
|
5011
|
-
--fill:
|
|
5012
|
+
--fill: transparent;
|
|
5012
5013
|
--border-radius: 50%;
|
|
5013
|
-
--ring-width: 0.125rem;
|
|
5014
|
-
--box-shadow: 0px 0 0 0.5px rgba(0, 0, 0, 0.1), var(--elevation-100-canvas);
|
|
5015
|
-
--outline: none;
|
|
5016
|
-
--border: none;
|
|
5017
5014
|
--fig-handle-hit-area-opacity: 0;
|
|
5018
5015
|
--fig-handle-hit-area-size: 0;
|
|
5019
5016
|
--fig-handle-checkerboard: var(--checkerboard);
|
|
5017
|
+
--fig-handle-bg: var(--handle-color);
|
|
5018
|
+
--fig-handle-outline-color: transparent;
|
|
5019
|
+
--fig-handle-outline: 1px solid var(--fig-handle-outline-color);
|
|
5020
|
+
--fig-handle-outline-offset: 1px;
|
|
5021
|
+
--fig-handle-inner-bg: var(--fill);
|
|
5022
|
+
--fig-handle-inner-outline: 1px solid var(--figma-color-bg-brand);
|
|
5023
|
+
--fig-handle-height: 0.875rem;
|
|
5024
|
+
--fig-handle-width: 0.875rem;
|
|
5025
|
+
--fig-handle-padding: 0.0625rem;
|
|
5026
|
+
--fig-handle-shadow: 0px 0 0 0.5px rgba(0, 0, 0, 0.1), var(--elevation-100-canvas);
|
|
5027
|
+
--fig-handle-inner-shadow: none;
|
|
5020
5028
|
|
|
5021
5029
|
margin: 0;
|
|
5022
|
-
padding:
|
|
5030
|
+
padding: var(--fig-handle-padding);
|
|
5023
5031
|
place-items: center;
|
|
5024
5032
|
width: var(--width);
|
|
5025
5033
|
height: var(--height);
|
|
5026
5034
|
border-radius: var(--border-radius);
|
|
5027
5035
|
display: grid;
|
|
5036
|
+
background: var(--fig-handle-bg);
|
|
5037
|
+
outline: var(--fig-handle-outline);
|
|
5038
|
+
outline-offset: var(--fig-handle-outline-offset);
|
|
5039
|
+
box-shadow: var(--fig-handle-shadow);
|
|
5028
5040
|
|
|
5029
|
-
|
|
5030
|
-
content: "";
|
|
5031
|
-
color-scheme: light only;
|
|
5032
|
-
width: var(--width);
|
|
5033
|
-
height: var(--height);
|
|
5034
|
-
background: var(--handle-color);
|
|
5035
|
-
border-radius: var(--border-radius);
|
|
5036
|
-
box-shadow: var(--box-shadow);
|
|
5037
|
-
outline: var(--outline);
|
|
5038
|
-
border: var(--border);
|
|
5039
|
-
place-self: center;
|
|
5040
|
-
grid-area: 1 / 1;
|
|
5041
|
-
z-index: 1;
|
|
5042
|
-
}
|
|
5043
|
-
|
|
5041
|
+
/* Used for active state/color handles */
|
|
5044
5042
|
&::after {
|
|
5045
5043
|
content: "";
|
|
5046
5044
|
color-scheme: light only;
|
|
5047
|
-
width:
|
|
5048
|
-
height:
|
|
5049
|
-
background:
|
|
5050
|
-
linear-gradient(var(--fill), var(--fill)), var(--fig-handle-checkerboard);
|
|
5045
|
+
width: 100%;
|
|
5046
|
+
height: 100%;
|
|
5047
|
+
background: var(--fig-handle-inner-bg);
|
|
5051
5048
|
background-position: 0 0;
|
|
5052
5049
|
background-size: 0.625rem 0.625rem;
|
|
5053
5050
|
border-radius: var(--border-radius);
|
|
5054
|
-
box-shadow:
|
|
5051
|
+
box-shadow: var(--fig-handle-inner-shadow);
|
|
5052
|
+
outline: var(--fig-handle-inner-outline);
|
|
5055
5053
|
place-self: center;
|
|
5056
5054
|
grid-area: 1 / 1;
|
|
5057
5055
|
z-index: 2;
|
|
5058
|
-
display: none;
|
|
5059
5056
|
}
|
|
5060
5057
|
|
|
5061
5058
|
&[size="small"] {
|
|
@@ -5069,8 +5066,14 @@ fig-handle {
|
|
|
5069
5066
|
}
|
|
5070
5067
|
&:hover,
|
|
5071
5068
|
&[selected]:not([selected="false"]) {
|
|
5072
|
-
outline:
|
|
5073
|
-
|
|
5069
|
+
--fig-handle-outline-color: var(--figma-color-border-selected);
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
/* Default handle (no type) hover/selected */
|
|
5073
|
+
&:hover:not([type]),
|
|
5074
|
+
&[selected]:not([selected="false"]):not([type]) {
|
|
5075
|
+
--fig-handle-inner-bg: var(--figma-color-bg-brand);
|
|
5076
|
+
--fig-handle-outline-color: var(--figma-color-border-selected);
|
|
5074
5077
|
}
|
|
5075
5078
|
|
|
5076
5079
|
&[disabled]:not([disabled="false"]),
|
|
@@ -5095,6 +5098,9 @@ fig-handle {
|
|
|
5095
5098
|
|
|
5096
5099
|
&[type="color"],
|
|
5097
5100
|
&[control] {
|
|
5101
|
+
--fig-handle-inner-bg: linear-gradient(var(--fill), var(--fill)), var(--fig-handle-checkerboard);
|
|
5102
|
+
--fig-handle-inner-shadow: inset 0 0 0 1px var(--figma-color-bordertranslucent);
|
|
5103
|
+
--fig-handle-inner-outline: none;
|
|
5098
5104
|
position: relative;
|
|
5099
5105
|
overflow: visible;
|
|
5100
5106
|
|