@rogieking/figui3 11.6.6 → 11.6.8

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.
@@ -168,7 +168,8 @@ Handlers below assume `onInput` / `onChange` / `onClick` from [react.md](react.m
168
168
  />
169
169
  ```
170
170
 
171
- - Attrs: `preview`, `label`, `accepts`, `multiple`, `disabled`, `variant` (forwards `fig-button` variants; defaults to `property`)
171
+ - Attrs: `preview`, `label`, `accepts`, `multiple`, `remove`, `disabled`, `variant` (forwards `fig-button` variants; defaults to `property`)
172
+ - `remove` defaults to true; set `remove="false"` to omit the selected file's remove button.
172
173
  - Blank or omitted `label` defaults to `Upload audio`, `Upload image`, or `Upload file` based on the known file type. An explicit label overrides it.
173
174
  - For known audio files, `preview` shows the audio icon and filename at rest, reveals play and waveform controls on hover/focus, and keeps pause plus waveform visible while playing.
174
175
  - `accepts` controls the native chooser filter; file icons and previews are detected independently.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [11.6.8]
6
+
7
+ ### Added
8
+
9
+ - Added a default-enabled `remove` attribute to `fig-input-file` for omitting the selected-file remove button.
10
+
11
+ ### Changed
12
+
13
+ - Marked the `fig-media-controls` play button as selected while playing.
14
+
15
+ ### Fixed
16
+
17
+ - Restored component registration inside playground plugin iframes by serving the color helper module.
18
+
19
+ ## [11.6.7]
20
+
21
+ ### Changed
22
+
23
+ - Applied selected text styling while preserving specialized tab, segment, menu-item, and select-option states.
24
+ - Preserved dropdown background colors when rendering native chevron images.
25
+
26
+ ### Fixed
27
+
28
+ - Marked native dropdown selects and wrapping select buttons as selected only while their picker is open.
29
+
5
30
  ## [11.6.6]
6
31
 
7
32
  ### Added
package/README.md CHANGED
@@ -547,6 +547,7 @@ Requires `fig-editor.js` and `fig-editor.css`.
547
547
  | `preview` | `"true"` \| `"false"` \| `"large"` | `false` | Show compact media previews, or use `large` for an upload-enabled `fig-image`/`fig-video` preview |
548
548
  | `label` | string | generated | Empty-state button label; defaults to `Upload audio`, `Upload image`, or `Upload file` from the known file type |
549
549
  | `multiple` | boolean | `false` | Allow multiple files |
550
+ | `remove` | boolean | `true` | Show the remove button when a file is selected; set to `"false"` to omit it |
550
551
  | `disabled` | boolean | `false` | Disabled state |
551
552
  | `variant` | string | `"property"` | Internal button variant |
552
553
 
package/components.css CHANGED
@@ -499,7 +499,7 @@
499
499
  }
500
500
  }
501
501
 
502
- [selected]:not([selected="false"]):not(fig-tabs):not(fig-tab):not(fig-segmented-control):not(fig-segment) {
502
+ [selected]:not([selected="false"]):not(:is(fig-tabs, fig-tab, fig-segmented-control, fig-segment, fig-select-option, fig-menu-item)) {
503
503
  --figma-color-bg: var(--figma-color-bg-selected);
504
504
  --figma-color-bg-hover: var(--figma-color-bg-selected-hover);
505
505
  --figma-color-bg-active: var(--figma-color-bg-selected-pressed);
@@ -521,6 +521,8 @@
521
521
  --figma-color-text-secondary-hover: var(--figma-color-text-onselected);
522
522
  --figma-color-text-tertiary: var(--figma-color-text-onselected-tertiary);
523
523
  --figma-color-text-tertiary-hover: var(--figma-color-text-onselected);
524
+
525
+ color: var(--figma-color-text-selected);
524
526
  }
525
527
 
526
528
 
@@ -728,14 +730,16 @@ textarea {
728
730
  select,
729
731
  input[type="text"][list] {
730
732
  padding: var(--spacer-2);
731
- background-color: var(--figma-color-bg);
732
733
 
733
734
 
734
735
  &:not([multiple]) {
735
736
  height: var(--fig-dropdown-height, var(--spacer-4));
736
737
  padding: 0 var(--spacer-4) 0 var(--spacer-2);
737
- background: calc(100% - var(--spacer-1)) 50% / 1rem no-repeat
738
- var(--icon-16-chevron);
738
+ background-color: var(--figma-color-bg);
739
+ background-image: var(--icon-16-chevron);
740
+ background-position: calc(100% - var(--spacer-1)) 50%;
741
+ background-size: 1rem;
742
+ background-repeat: no-repeat;
739
743
  }
740
744
  &[multiple] {
741
745
  overflow: auto;