@lateralus-ai/shipping-ui 2.0.0-dev.22 → 2.0.0-dev.23

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.
@@ -1,4 +1,5 @@
1
1
  import { ComponentType, CSSProperties, ReactNode } from 'react';
2
+ import { FilterPillAppearance } from './FilterPill';
2
3
  /** One selectable row at a leaf list. */
3
4
  export type FilterOption = {
4
5
  value: string;
@@ -30,7 +31,7 @@ export type FilterNestedItem = {
30
31
  label: string;
31
32
  content: FilterSubmenuContent;
32
33
  };
33
- /** Left column row that opens a (possibly nested) submenu on the right. */
34
+ /** Left-column row that opens a (possibly nested) submenu panel. */
34
35
  export type FilterCategorySubmenuRow = {
35
36
  kind?: "submenu";
36
37
  id: string;
@@ -81,6 +82,13 @@ export type FilterDropdownProps = {
81
82
  zIndexClass?: string;
82
83
  /** Replace the default FilterPill trigger. */
83
84
  trigger?: ReactNode;
85
+ /** Passed to the default FilterPill when `trigger` is omitted. */
86
+ triggerAppearance?: FilterPillAppearance;
87
+ /**
88
+ * Which side the options panel attaches to the category column.
89
+ * Carets stay on the right of category rows either way.
90
+ */
91
+ submenuSide?: "left" | "right";
84
92
  open?: boolean;
85
93
  onOpenChange?: (open: boolean) => void;
86
94
  className?: string;
@@ -89,5 +97,5 @@ export type FilterDropdownProps = {
89
97
  * Filters trigger + two-column popover (audit-prep pattern).
90
98
  * Supports multi/single option leaves, nested folders, custom panels, and toggles.
91
99
  */
92
- export declare function FilterDropdown({ align, sideOffset, categoryRows, selectedValuesBySelectionKey, onSelectOption, onResetAll, resetAllLabel, activeFilterCount, getOptionLabelStyle, zIndexClass, trigger, open: openControlled, onOpenChange, className, }: FilterDropdownProps): import("react/jsx-runtime").JSX.Element;
100
+ export declare function FilterDropdown({ align, sideOffset, categoryRows, selectedValuesBySelectionKey, onSelectOption, onResetAll, resetAllLabel, activeFilterCount, getOptionLabelStyle, zIndexClass, trigger, triggerAppearance, submenuSide, open: openControlled, onOpenChange, className, }: FilterDropdownProps): import("react/jsx-runtime").JSX.Element;
93
101
  export {};
@@ -1,13 +1,23 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
+ export type FilterPillAppearance = "filled" | "ghost";
2
3
  export type FilterPillProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
3
- /** When > 0, trigger uses active (blue) fill and shows a count badge. */
4
+ /** When > 0, shows the orange count badge. */
4
5
  activeFilterCount?: number;
6
+ /**
7
+ * `filled` — grey idle / blue when active (Figma default).
8
+ * `ghost` — white idle and active; only hover changes surface color.
9
+ */
10
+ appearance?: FilterPillAppearance;
5
11
  };
6
12
  /**
7
13
  * Filter trigger — Figma Filter Pill (6154:149608 / 6154:149599).
8
- * Idle: grey-100. Active: accent blue-100 + orange count badge.
9
14
  */
10
15
  export declare const FilterPill: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
11
- /** When > 0, trigger uses active (blue) fill and shows a count badge. */
16
+ /** When > 0, shows the orange count badge. */
12
17
  activeFilterCount?: number;
18
+ /**
19
+ * `filled` — grey idle / blue when active (Figma default).
20
+ * `ghost` — white idle and active; only hover changes surface color.
21
+ */
22
+ appearance?: FilterPillAppearance;
13
23
  } & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,6 @@
1
1
  export { FiltersBar, type FiltersBarFilters, type FiltersBarProps, type FiltersBarTabs, } from './FiltersBar';
2
2
  export { FilteredPill, type FilteredPillProps, } from './FilteredPill';
3
- export { FilterPill, type FilterPillProps, } from './FilterPill';
3
+ export { FilterPill, type FilterPillAppearance, type FilterPillProps, } from './FilterPill';
4
4
  export { FilterPills, type FilterPillsItem, type FilterPillsProps, } from './FilterPills';
5
5
  export { FilterDropdown, resolveSubmenuView, type FilterCategoryRow, type FilterCategorySubmenuRow, type FilterCategoryToggleRow, type FilterDropdownProps, type FilterNestedItem, type FilterOption, type FilterSelectionMode, type FilterSubmenuContent, } from './FilterDropdown';
6
6
  export { formatActiveFilterChipLabel } from './formatActiveFilterChipLabel';