@wpic/ui 0.9.30 → 0.9.31

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.9.31
2
+
3
+ - Size default select popovers to their content, using the trigger width as a minimum and the viewport as a maximum. Explicit popoverWidth and mobile sheets retain their behavior.
4
+
1
5
  # 0.9.30
2
6
 
3
7
  - Prevent searchable select inputs from overflowing narrow popovers and scrolling their contents sideways on focus.
package/COMPONENTS.md CHANGED
@@ -885,3 +885,5 @@ i18n plugin or localStorage dependency.
885
885
  ### Chat panel layout (0.9.26)
886
886
 
887
887
  `WChatPanel` keeps its composer in normal flex layout, outside the message scroll viewport. Remove any application CSS that adds a footer mask or extra footer-height padding to `.wpic-chat-panel__messages`. `dockedInset` sets the outer gap of the docked card (default 8px); the card uses the WPIC surface/border tokens, 12px corners and no outer gutter.
888
+
889
+ WSelect defaults to content-sized dropdowns (at least trigger width, capped to viewport). `popoverWidth` remains an explicit width override. WPopover exposes opt-in `fitAnchorContent` alongside `matchAnchorWidth`; other popovers retain exact anchor matching.
@@ -18,6 +18,8 @@ type __VLS_Props = {
18
18
  offset?: number;
19
19
  /** Make the panel at least as wide as the anchor element */
20
20
  matchAnchorWidth?: boolean;
21
+ /** With matchAnchorWidth, allow content to widen the panel within viewport bounds. */
22
+ fitAnchorContent?: boolean;
21
23
  /** Keep the first computed placement while the panel remains open */
22
24
  freezePositionOnOpen?: boolean;
23
25
  flip?: boolean;