@phila/phila-ui-core 3.0.0-beta.4 → 3.0.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +22 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -253,6 +253,28 @@ declare type DecorativeIconProps = {
253
253
 
254
254
  export declare const ErrorList: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ValidationProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ValidationProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
255
255
 
256
+ /** value is string to satisfy RadioGroup (string-only) and CheckboxGroup. */
257
+ export declare interface FilterChoice {
258
+ text: string;
259
+ value: string;
260
+ }
261
+
262
+ export declare interface FilterDefinition {
263
+ key: string;
264
+ label: string;
265
+ /** Present → dropdown/section chip; absent → toggle-only chip. */
266
+ choices?: FilterChoice[];
267
+ /** Dropdown/section only: checkbox group (true) vs radio group (false). Default false. */
268
+ multiple?: boolean;
269
+ iconDefinition?: IconDefinition;
270
+ /** Optional CSS color for this chip's leading icon (independent of text color). */
271
+ iconColor?: string;
272
+ /** Leave this filter's selections out of the active-selection count (e.g. Sort). */
273
+ excludeFromCount?: boolean;
274
+ }
275
+
276
+ export declare type FilterValues = Record<string, string | string[] | boolean>;
277
+
256
278
  export declare const FocusTrap: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, ReturnType<typeof __VLS_template_5>>;
257
279
 
258
280
  export declare interface FocusTrapEmits {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phila/phila-ui-core",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "type": "module",
5
5
  "description": "Core utilities and styles for Phila UI library",
6
6
  "main": "./dist/index.js",