@wpic/ui 0.9.3 → 0.9.5

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,11 @@
1
+ ## 0.9.5
2
+
3
+ - WSelect: expose automatic popover placement and a viewport-clamped minimum height; keep search and selection controls fixed while only the options list scrolls.
4
+
5
+ ## 0.9.4
6
+
7
+ - WCard: reduce body vertical padding independently of horizontal spacing (sm: 8/12px, md: 12/16px, lg: 16/24px).
8
+
1
9
  ## 0.9.3
2
10
 
3
11
  - WButton: restore a transparent surface and visible theme border for the outline variant; secondary buttons retain their filled surface.
package/COMPONENTS.md CHANGED
@@ -212,6 +212,8 @@ click: [e: MouseEvent]
212
212
 
213
213
  Header titles default to `titleSize="lg"` (`text-lg`, 18px) and semibold weight. Use `titleSize="base"` for `text-base` (16px). This styling applies only to the title wrapper (including a heading in the title slot), not action buttons.
214
214
 
215
+ Body padding uses smaller vertical spacing than horizontal spacing: sm 0.5/0.75rem, md 0.75/1rem, lg 1/1.5rem (vertical/horizontal).
216
+
215
217
  **Import:** `import { WCard } from '@wpic/ui'`
216
218
 
217
219
  **Props:**
@@ -782,3 +784,5 @@ For a shorter metric card, use `compact`. Use `changePosition="label"` to align
782
784
  ### Localization options (0.6.6)
783
785
 
784
786
  WTable accepts `labels` (`loading`, `results`, `of`, `item`, `items`, `previous`, `next`) and `loadingSpinner=false` for plain loading text. Existing `emptyText` and `searchPlaceholder` remain available. WSelect accepts `searchPlaceholder`, `selectAllLabel`, `clearLabel` and `noResultsLabel`; WFilterBar forwards `selectLabels` to its selects. WDateRangePicker accepts `locale`, `applyLabel`, `previousMonthLabel`, `nextMonthLabel` in addition to translated `presets`, `ariaLabel`, `clearLabel` and `placeholder`.
787
+
788
+ WSelect popovers support `popoverAutoPlacement` to choose the side with the most room and `popoverMinHeight` for a viewport-clamped minimum height. Set `popoverWidth` for compact triggers with longer menu labels.
@@ -35,6 +35,10 @@ type __VLS_Props = {
35
35
  popoverWidth?: string;
36
36
  popoverPlacement?: 'top' | 'bottom' | 'left' | 'right' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
37
37
  popoverFlip?: boolean;
38
+ /** Let Floating UI choose the side with the most available space. */
39
+ popoverAutoPlacement?: boolean;
40
+ /** Optional usable panel height, clamped to the available viewport. */
41
+ popoverMinHeight?: string;
38
42
  popoverMaxHeight?: string;
39
43
  };
40
44
  declare var __VLS_42: {