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

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.
@@ -38,7 +38,20 @@ export type FilterCategorySubmenuRow = {
38
38
  label: string;
39
39
  content: FilterSubmenuContent;
40
40
  };
41
- /** Left column row: inline check toggle (no right panel). */
41
+ /**
42
+ * Options rendered inline in the first panel (no chevron / second column).
43
+ * Mix with submenu rows for hybrid menus (e.g. Status submenu + Sort by flat).
44
+ */
45
+ export type FilterCategoryInlineOptionsRow = {
46
+ kind: "inline-options";
47
+ id: string;
48
+ /** Small section header above the options (e.g. "Sort by"). */
49
+ title?: string;
50
+ selectionKey: string;
51
+ selectionMode?: FilterSelectionMode;
52
+ options: FilterOption[];
53
+ };
54
+ /** First-panel row: label + Switch (no right panel). */
42
55
  export type FilterCategoryToggleRow = {
43
56
  kind: "toggle";
44
57
  id: string;
@@ -46,7 +59,7 @@ export type FilterCategoryToggleRow = {
46
59
  checked: boolean;
47
60
  onCheckedChange: (checked: boolean) => void;
48
61
  };
49
- export type FilterCategoryRow = FilterCategorySubmenuRow | FilterCategoryToggleRow;
62
+ export type FilterCategoryRow = FilterCategorySubmenuRow | FilterCategoryInlineOptionsRow | FilterCategoryToggleRow;
50
63
  type ResolvedSubmenuView = {
51
64
  kind: "folders";
52
65
  items: FilterNestedItem[];
@@ -67,7 +80,10 @@ export declare function resolveSubmenuView(content: FilterSubmenuContent, path:
67
80
  export type FilterDropdownProps = {
68
81
  align?: "start" | "center" | "end";
69
82
  sideOffset?: number;
70
- /** Left column: submenu roots and/or toggles. */
83
+ /**
84
+ * First panel rows — mix freely:
85
+ * submenu (chevron + second panel), inline-options (flat list), toggle (Switch).
86
+ */
71
87
  categoryRows: FilterCategoryRow[];
72
88
  selectedValuesBySelectionKey: Record<string, string[] | undefined>;
73
89
  /**
@@ -77,6 +93,8 @@ export type FilterDropdownProps = {
77
93
  onSelectOption: (selectionKey: string, optionValue: string) => void;
78
94
  onResetAll: () => void;
79
95
  resetAllLabel?: string;
96
+ /** When false, hides the Reset all footer. Default true. */
97
+ showResetAll?: boolean;
80
98
  activeFilterCount: number;
81
99
  getOptionLabelStyle?: (selectionKey: string, optionValue: string) => CSSProperties | undefined;
82
100
  zIndexClass?: string;
@@ -94,8 +112,8 @@ export type FilterDropdownProps = {
94
112
  className?: string;
95
113
  };
96
114
  /**
97
- * Filters trigger + two-column popover (audit-prep pattern).
98
- * Supports multi/single option leaves, nested folders, custom panels, and toggles.
115
+ * Filters trigger + popover. First panel supports hybrid rows: submenus,
116
+ * inline option lists, and Switch toggles. Submenus open a second column.
99
117
  */
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;
118
+ export declare function FilterDropdown({ align, sideOffset, categoryRows, selectedValuesBySelectionKey, onSelectOption, onResetAll, resetAllLabel, showResetAll, activeFilterCount, getOptionLabelStyle, zIndexClass, trigger, triggerAppearance, submenuSide, open: openControlled, onOpenChange, className, }: FilterDropdownProps): import("react/jsx-runtime").JSX.Element;
101
119
  export {};
@@ -2,7 +2,7 @@ export { FiltersBar, type FiltersBarFilters, type FiltersBarProps, type FiltersB
2
2
  export { FilteredPill, type FilteredPillProps, } from './FilteredPill';
3
3
  export { FilterPill, type FilterPillAppearance, type FilterPillProps, } from './FilterPill';
4
4
  export { FilterPills, type FilterPillsItem, type FilterPillsProps, } from './FilterPills';
5
- export { FilterDropdown, resolveSubmenuView, type FilterCategoryRow, type FilterCategorySubmenuRow, type FilterCategoryToggleRow, type FilterDropdownProps, type FilterNestedItem, type FilterOption, type FilterSelectionMode, type FilterSubmenuContent, } from './FilterDropdown';
5
+ export { FilterDropdown, resolveSubmenuView, type FilterCategoryInlineOptionsRow, type FilterCategoryRow, type FilterCategorySubmenuRow, type FilterCategoryToggleRow, type FilterDropdownProps, type FilterNestedItem, type FilterOption, type FilterSelectionMode, type FilterSubmenuContent, } from './FilterDropdown';
6
6
  export { formatActiveFilterChipLabel } from './formatActiveFilterChipLabel';
7
7
  /** @deprecated Use `activeFilterCount` on FilterPill instead. */
8
8
  export type FilterPillIndicator = "on" | "off";