@cobre-npm/ds-v3 0.154.0 → 0.155.0

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.
@@ -5,6 +5,8 @@ type __VLS_Props = {
5
5
  /** Prefix of each option's control id, as `${idPrefix}-${option.value}`. */
6
6
  idPrefix: string;
7
7
  disabled?: boolean;
8
+ /** Forced column count; unset keeps two with sections, one without. */
9
+ columns?: 1 | 2;
8
10
  };
9
11
  declare var __VLS_1: {
10
12
  id: string;
@@ -73,6 +73,11 @@ export interface CheckboxFilter extends BaseFilter<'checkbox'> {
73
73
  value: (string | number)[];
74
74
  options: FilterOption[];
75
75
  sections?: FilterSection[];
76
+ /**
77
+ * Number of columns the option list renders in. Unset keeps the default:
78
+ * two with `sections`, one without.
79
+ */
80
+ columns?: 1 | 2;
76
81
  tabs?: FilterTab[];
77
82
  props?: CommonDisabledProps & CommonSearchProps;
78
83
  validation?: CommonValidation;
@@ -81,8 +86,13 @@ export interface CheckboxFilter extends BaseFilter<'checkbox'> {
81
86
  export interface RadioFilter extends BaseFilter<'radio'> {
82
87
  value: string | number | null;
83
88
  options: FilterOption[];
84
- /** Section headings, in render order. Enables the two-column grouped layout. */
89
+ /** Section headings, in render order. Enables the grouped layout (two columns unless `columns` says otherwise). */
85
90
  sections?: FilterSection[];
91
+ /**
92
+ * Number of columns the option list renders in. Unset keeps the default:
93
+ * two with `sections`, one without.
94
+ */
95
+ columns?: 1 | 2;
86
96
  props?: CommonDisabledProps & CommonSearchProps;
87
97
  validation?: CommonValidation;
88
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.154.0",
3
+ "version": "0.155.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.0.4",
6
6
  "engines": {