@fuf-stack/megapixels 0.11.24 → 0.11.26

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 (34) hide show
  1. package/dist/Filter/index.cjs +1 -1
  2. package/dist/Filter/index.d.cts +1 -1
  3. package/dist/Filter/index.d.ts +1 -1
  4. package/dist/Filter/index.js +1 -1
  5. package/dist/{Filter-BVwu1kNx.cjs → Filter-B_YqTFA5.cjs} +23 -29
  6. package/dist/Filter-B_YqTFA5.cjs.map +1 -0
  7. package/dist/{Filter-MoxrK8MI.js → Filter-DHNzbevz.js} +23 -23
  8. package/dist/{Filter-MoxrK8MI.js.map → Filter-DHNzbevz.js.map} +1 -1
  9. package/dist/Notification/index.cjs +1 -1
  10. package/dist/Notification/index.d.cts +1 -1
  11. package/dist/Notification/index.d.ts +1 -1
  12. package/dist/Notification/index.js +1 -1
  13. package/dist/{Notification-B-G4OVD2.js → Notification-5tyFF-87.js} +1 -1
  14. package/dist/{Notification-B-G4OVD2.js.map → Notification-5tyFF-87.js.map} +1 -1
  15. package/dist/{Notification-BjftuLye.cjs → Notification-ClLRWj0j.cjs} +1 -2
  16. package/dist/{Notification-BjftuLye.cjs.map → Notification-ClLRWj0j.cjs.map} +1 -1
  17. package/dist/index-BkliAQ5x.d.cts +2060 -0
  18. package/dist/index-BkliAQ5x.d.cts.map +1 -0
  19. package/dist/index-DNAyXW3U.d.ts +2060 -0
  20. package/dist/index-DNAyXW3U.d.ts.map +1 -0
  21. package/dist/{index-DMd9TyqF.d.cts → index-DRyBPfQT.d.cts} +1 -1
  22. package/dist/{index-DMd9TyqF.d.cts.map → index-DRyBPfQT.d.cts.map} +1 -1
  23. package/dist/{index-DaLo1TQx.d.ts → index-DRyBPfQT.d.ts} +1 -1
  24. package/dist/{index-DaLo1TQx.d.ts.map → index-DRyBPfQT.d.ts.map} +1 -1
  25. package/dist/index.cjs +2 -2
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +2 -2
  29. package/package.json +7 -7
  30. package/dist/Filter-BVwu1kNx.cjs.map +0 -1
  31. package/dist/index-DU-9vg7q.d.ts +0 -354
  32. package/dist/index-DU-9vg7q.d.ts.map +0 -1
  33. package/dist/index-Dpm2SIC2.d.cts +0 -354
  34. package/dist/index-Dpm2SIC2.d.cts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DNAyXW3U.d.ts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"mappings":";;;;;;cAMa,QAAA,4BAAM,aAAA;;AAAnB;;;;EAAmB;;;;;;;;;;;;KAgBP,MAAA,GAAS,IAAA,CAAK,MAAA,QAAc,QAAA;EACtC,OAAA;IACE,KAAA,EAAO,SAAA,KAAc,IAAA,yBAA6B,SAAA;IAClD,KAAA;EAAA;AAAA;;;;;;;AAnBJ;;;;;;;UCOiB,gBAAA;EACf,UAAA;;;;;IAKE,OAAA,GAAU,KAAA;MAAS,KAAA,EAAO,KAAA;MAAO,MAAA,EAAQ,MAAA;IAAA,MAAa,SAAA;IDGxC;;;;ICEd,IAAA,GAAO,KAAA;MAAS,SAAA;MAAmB,MAAA,EAAQ,MAAA;IAAA,MAAa,SAAA;EAAA;EAE1D,QAAA;IDJwB,yECMtB,MAAA,EAAQ,MAAA,EDLV;ICOE,KAAA,EAAO,KAAA;EAAA;EDNc;;;;ECYvB,UAAA,GAAa,MAAA,GAAS,MAAA;AAAA;;;AAvBxB;;;;;;;;KAoCY,aAAA,mBAAgC,IAAA;EAnBjC,sEAqBT,MAAA,GAAS,OAAA,CAAQ,MAAA,GAfW;EAiB5B,IAAA,GAAO,SAAA,EAxCyB;EA0ChC,IAAA;AAAA,MACI,cAAA,CAAe,MAAA,EAAQ,KAAA;;;;;;;;;;;;UAaZ,cAAA;EA7C2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;EAEA,QAAA,GAAW,UAAA,EAAY,YAAA;;EAEvB,MAAA,EAAQ,YAAA;AAAA;;;;;;cAQJ,MAAA;EAAU,QAAA;EAAA,SAAA;EAAA,MAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,GAOb,WAAA,iCAAW,GAAA,CAAA,OAAA;;;;;;;AHhHd;;;;;;;;;;;;;cIaM,YAAA,kBACJ,UAAA,EAAY,gBAAA,CAAiB,MAAA,EAAQ,KAAA,MACpC,aAAA,CAAc,MAAA,EAAQ,KAAA;;;cCVZ,OAAA;WAGZ,aAAA"}
@@ -94,4 +94,4 @@ declare const NotificationHost: ({
94
94
  }: NotificationHostProps) => import("react/jsx-runtime").JSX.Element;
95
95
  //#endregion
96
96
  export { notification as a, NotificationRenderProps as i, NotificationHostProps as n, NotificationOptions as r, NotificationHost as t };
97
- //# sourceMappingURL=index-DMd9TyqF.d.cts.map
97
+ //# sourceMappingURL=index-DRyBPfQT.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DMd9TyqF.d.cts","names":[],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx"],"mappings":";;;;;;;AAWA;;UAAiB,uBAAA;EAEf;EAAA,KAAA,EAAO,aAAa;AAAA;;UAIL,mBAAA,SAA4B,IAAA,CAAK,YAAA;EAAA;;;;;EAMhD,UAAA,GAAa,SAAA,KAAc,KAAA,EAAO,uBAAA,KAA4B,SAAA;AAAA;;;;;;;;;AAAS;AACxE;;;;;;;;;;;;;cAiDK,YAAA;EAiCqD;;;;qBA5BtC,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;kBAOZ,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;kBAOT,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;qBAON,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;mBAOX,SAAA,EAAS,OAAA,GAAY,mBAAA,UAAZ;;;;;UCrGX,qBAAA;;;;;ADMjB;ECAE,KAAK;AAAA;;ADEe;AAItB;;;;;;;cCMM,gBAAA;EAAoB;AAAA,GAAiB,qBAAqB,iCAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"index-DRyBPfQT.d.cts","names":[],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx"],"mappings":";;;;;;;AAWA;;UAAiB,uBAAA;EAEf;EAAA,KAAA,EAAO,aAAa;AAAA;;UAIL,mBAAA,SAA4B,IAAA,CAAK,YAAA;EAAA;;;;;EAMhD,UAAA,GAAa,SAAA,KAAc,KAAA,EAAO,uBAAA,KAA4B,SAAA;AAAA;;;;;;;;;AAAS;AACxE;;;;;;;;;;;;;cAiDK,YAAA;EAiCqD;;;;qBA5BtC,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;kBAOZ,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;kBAOT,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;qBAON,SAAA,EAAS,OAAA,GAAY,mBAAA;EAAZ;;;;mBAOX,SAAA,EAAS,OAAA,GAAY,mBAAA,UAAZ;;;;;UCrGX,qBAAA;;;;;ADMjB;ECAE,KAAK;AAAA;;ADEe;AAItB;;;;;;;cCMM,gBAAA;EAAoB;AAAA,GAAiB,qBAAqB,iCAAA,GAAA,CAAA,OAAA"}
@@ -94,4 +94,4 @@ declare const NotificationHost: ({
94
94
  }: NotificationHostProps) => import("react/jsx-runtime").JSX.Element;
95
95
  //#endregion
96
96
  export { notification as a, NotificationRenderProps as i, NotificationHostProps as n, NotificationOptions as r, NotificationHost as t };
97
- //# sourceMappingURL=index-DaLo1TQx.d.ts.map
97
+ //# sourceMappingURL=index-DRyBPfQT.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DaLo1TQx.d.ts","names":[],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx"],"mappings":";;;;;;;AAWA;;UAAiB,uBAAA;EAEf;EAAA,KAAA,EAAO,aAA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CMM,gBAAA;EAAoB;AAAA,GAAiB,qBAAqB,iCAAA,GAAA,CAAA,OAAA"}
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Filter = require("./Filter-BVwu1kNx.cjs");
3
- const require_Notification = require("./Notification-BjftuLye.cjs");
2
+ const require_Filter = require("./Filter-B_YqTFA5.cjs");
3
+ const require_Notification = require("./Notification-ClLRWj0j.cjs");
4
4
  //#region src/index.ts
5
5
  /* v8 ignore stop */
6
6
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-Dpm2SIC2.cjs";
2
- import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-DMd9TyqF.cjs";
1
+ import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-BkliAQ5x.cjs";
2
+ import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-DRyBPfQT.cjs";
3
3
  export { FilterChildRenderFn, type FilterDefinition, type FilterDisplayProps, type FilterFactory, type FilterFormProps, type FilterInstance, FilterProps, FilterValues, type FiltersConfiguration, NotificationHost, type NotificationHostProps, type NotificationOptions, type NotificationRenderProps, createFilter, filterVariants, filters, notification };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-DU-9vg7q.js";
2
- import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-DaLo1TQx.js";
1
+ import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-DNAyXW3U.js";
2
+ import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-DRyBPfQT.js";
3
3
  export { FilterChildRenderFn, type FilterDefinition, type FilterDisplayProps, type FilterFactory, type FilterFormProps, type FilterInstance, FilterProps, FilterValues, type FiltersConfiguration, NotificationHost, type NotificationHostProps, type NotificationOptions, type NotificationRenderProps, createFilter, filterVariants, filters, notification };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { i as filterVariants, n as filters, r as createFilter } from "./Filter-MoxrK8MI.js";
2
- import { n as NotificationHost, r as notification } from "./Notification-B-G4OVD2.js";
1
+ import { i as filterVariants, n as filters, r as createFilter } from "./Filter-DHNzbevz.js";
2
+ import { n as NotificationHost, r as notification } from "./Notification-5tyFF-87.js";
3
3
  //#region src/index.ts
4
4
  /* v8 ignore stop */
5
5
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/megapixels",
3
- "version": "0.11.24",
3
+ "version": "0.11.26",
4
4
  "description": "fuf react advanced components library",
5
5
  "author": "Fröhlich ∧ Frei",
6
6
  "homepage": "https://github.com/fuf-stack/megapixels#readme",
@@ -49,11 +49,11 @@
49
49
  "react-dom": ">=18"
50
50
  },
51
51
  "dependencies": {
52
- "@fuf-stack/pixel-motion": "1.2.1",
53
- "@fuf-stack/pixel-utils": "1.3.0",
54
- "@fuf-stack/pixels": "1.11.0",
55
- "@fuf-stack/uniform": "1.22.4",
56
- "@fuf-stack/veto": "1.7.1",
52
+ "@fuf-stack/pixel-motion": "1.2.2",
53
+ "@fuf-stack/pixel-utils": "1.3.2",
54
+ "@fuf-stack/pixels": "1.11.2",
55
+ "@fuf-stack/uniform": "1.22.6",
56
+ "@fuf-stack/veto": "1.7.3",
57
57
  "debug": "4.4.3",
58
58
  "react-icons": "5.6.0"
59
59
  },
@@ -64,5 +64,5 @@
64
64
  "react": "19.2.6",
65
65
  "react-dom": "19.2.6"
66
66
  },
67
- "gitHead": "19dc5f79b48758bc16ddf97532f840be34818c09"
67
+ "gitHead": "92bdba62f9d7284ad73a2837122ebd324ca57adc"
68
68
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Filter-BVwu1kNx.cjs","names":["Label","Menu","FaSliders","Modal","Button","SubmitButton","PiSlidersHorizontalBold","Suspense","Button","FaSearch","motion","Input","SubmitButton","debug","Form","Display","Form","Switch","config","validate","validate","Checkboxes"],"sources":["../src/Filter/hooks/useFilterValidation.ts","../src/Filter/Subcomponents/FiltersContext.tsx","../src/Filter/Subcomponents/ActiveFilters.tsx","../src/Filter/Subcomponents/AddFilterMenu.tsx","../src/Filter/Subcomponents/FilterModal.tsx","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/filters/boolean/Display.tsx","../src/Filter/filters/boolean/Form.tsx","../src/Filter/filters/boolean/schema.ts","../src/Filter/filters/boolean/boolean.ts","../src/Filter/filters/checkboxes/Display.tsx","../src/Filter/filters/checkboxes/Form.tsx","../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/checkboxes/checkboxes.ts","../src/Filter/index.ts"],"sourcesContent":["import type { VetoInstance, VetoRawShape, VetoTypeAny } from '@fuf-stack/veto';\nimport type { FilterInstance } from '../filters/types';\n\nimport { useMemo } from 'react';\n\nimport { object, string, stringToJSON, veto } from '@fuf-stack/veto';\n\n/**\n * useFilterValidation\n *\n * Builds a composite validation schema from all provided filter definitions\n * under \"filter\" and optionally includes a \"search\" string field.\n * Memoized by inputs.\n */\nexport const useFilterValidation = (\n filters: FilterInstance<unknown, unknown>[],\n withSearch?: boolean,\n) => {\n return useMemo<VetoInstance>(() => {\n // build filter validation\n let filterSchema: Record<string, VetoTypeAny> = {};\n filters.forEach((f) => {\n filterSchema = {\n ...filterSchema,\n [f.name]: f.validation(f.config) as VetoTypeAny,\n };\n });\n\n const validationSchema: VetoRawShape = {\n // filter validation\n filter: stringToJSON()\n .pipe(object(filterSchema))\n .or(object(filterSchema))\n .optional()\n .nullable()\n // transform null to undefined\n .transform((val) => {\n return val ?? undefined;\n }),\n // optional search validation\n ...(withSearch\n ? { search: string({ min: 0 }).nullable().optional() }\n : {}),\n };\n\n return veto(validationSchema);\n }, [filters, withSearch]);\n};\n\nexport default useFilterValidation;\n","import type { ReactNode } from 'react';\nimport type { FilterInstance, FiltersConfiguration } from '../filters/types';\n\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { useFormContext } from '@fuf-stack/uniform/hooks/useFormContext';\n\ninterface FiltersContextValue {\n /** Active filters (names only) */\n activeFilters: string[];\n /** Seed default value and open modal for a filter usage. */\n addFilter: (name: string) => void;\n /** Close the modal. */\n closeFilterModal: () => void;\n /** Build fully-qualified form field path for a filter name */\n getFilterFormFieldName: (name: string) => string;\n /** Get current form value for a given filter name */\n getFilterValueByName: (name: string) => unknown;\n /** Get filter instance by name */\n getFilterInstanceByName: (name: string) => FilterInstance<unknown, unknown>;\n /** Validation helper for a specific filter field. */\n hasError: (name: string) => boolean;\n /** Name of the current filter that has its modal open */\n modalFilterName: string | undefined;\n /** Remove a filter from the form. */\n removeFilter: (name: string) => void;\n /** Open the modal for a given filter name. */\n showFilterModal: (name: string) => void;\n /** Filters that are not active (names only) */\n unusedFilters: string[];\n}\n\n/**\n * FiltersContext\n *\n * Central state for the filter UI with a clear boundary:\n * - The parent component controls committed filter values (via value/onChange)\n * - The form acts as an edit buffer (used by the modal)\n *\n * Design:\n * - activeFilters/unusedFilters are names-only and derived from the controlled\n * form state\n * - getFilterInstanceByName gives access to the concrete registry entry to\n * retrieve the correct Form/Display components\n * - add seeds defaults in the form and opens the modal\n * - remove un-registers the form field; if the removed filter is currently\n * open in the modal, the modal is closed without rollback\n * - on a new successful form submit (Apply), the modal closes without rollback\n * by subscribing to ex-forms submit state\n */\nconst FiltersContext = createContext<FiltersContextValue | undefined>(\n undefined,\n);\n\nexport const FiltersContextProvider = ({\n children,\n config,\n}: {\n children: ReactNode;\n config: FiltersConfiguration;\n}) => {\n // ex-forms integration:\n // - setValue/unregister/getFieldState: core helpers to manipulate and validate fields\n // - formState: we subscribe to submit-success to auto-close the modal after Apply\n const {\n formState,\n getFieldState,\n setValue,\n triggerSubmit,\n unregister,\n watch,\n } = useFormContext();\n\n /**\n * currentModalFilter\n *\n * Single source of truth for the filter edit modal and its rollback snapshot.\n * - name: which filter's modal is currently open (null when closed)\n * - hadValue/previousValue: snapshot of the controlled value taken when the\n * modal is opened; used to restore state if the user cancels/closes without\n * applying.\n *\n * Lifecycle semantics:\n * - showFilterModal(name): capture snapshot (current controlled value) and open\n * the modal for that filter.\n * - closeFilterModal(): if a snapshot exists, roll back un-applied edits by\n * restoring the previous value (setValue) or removing the field (unregister)\n * when it did not exist before; then clear currentModalFilter.\n * - On successful submit (Apply): close and clear currentModalFilter WITHOUT rollback\n * so edits remain committed.\n * - removeFilter(name): unregisters the field; when removing the filter that is\n * currently open, close the modal WITHOUT rollback (since removal is explicit).\n */\n const [currentModalFilter, setCurrentModalFilter] = useState<{\n name: string;\n hadValue: boolean;\n previousValue: unknown;\n } | null>(null);\n\n // Read current filter values from the form as the live edit buffer\n const filterValue = watch('filter', {});\n\n /**\n * getFilterFormFieldName\n *\n * Returns the fully-qualified field path for a given filter name,\n * e.g., `${filterUrlParam}.status`.\n */\n const getFilterFormFieldName = useCallback((name: string) => {\n return `filter.${name}`;\n }, []);\n\n /**\n * getFilterValueByName\n *\n * Returns the committed value for a filter from the controlled state.\n */\n const getFilterValueByName = useCallback(\n (name: string) => {\n return (filterValue as Record<string, unknown>)[name];\n },\n [filterValue],\n );\n\n /** Open the filter edit modal for the given filter name. */\n const showFilterModal = useCallback(\n (name: string) => {\n const prev = getFilterValueByName(name);\n setCurrentModalFilter({\n name,\n hadValue: typeof prev !== 'undefined',\n previousValue: prev,\n });\n },\n [getFilterValueByName],\n );\n\n /** Close the filter edit modal. Rollback un-applied edits to controlled state. */\n const closeFilterModal = useCallback(() => {\n if (currentModalFilter?.name) {\n const fieldName = getFilterFormFieldName(currentModalFilter.name);\n // if the filter had a value, set it back to the previous value,\n // otherwise unregister the field\n if (currentModalFilter.hadValue) {\n setValue(fieldName, currentModalFilter.previousValue);\n } else {\n unregister(fieldName);\n }\n }\n setCurrentModalFilter(null);\n }, [getFilterFormFieldName, currentModalFilter, setValue, unregister]);\n\n /**\n * Auto-close on submit success\n *\n * Close the modal only on new successful submissions. We track the last\n * submitCount and only react when it changes AND the form reports a\n * successful submit. This prevents closing when `isSubmitSuccessful` remains\n * true without a new submit event.\n */\n const lastSubmitCountRef = useRef<number>(0);\n useEffect(() => {\n if (\n formState.submitCount !== lastSubmitCountRef.current &&\n formState.isSubmitSuccessful\n ) {\n // On successful submit, close without rollback\n setCurrentModalFilter(null);\n }\n lastSubmitCountRef.current = formState.submitCount;\n }, [\n formState.submitCount,\n formState.isSubmitSuccessful,\n setCurrentModalFilter,\n ]);\n\n /**\n * activeFilters\n *\n * Filter names derived from the controlled form state. A filter is considered\n * active when a field exists at `filter.<name>`. Newly added filters become\n * active immediately (seeded default), and will be rolled back on cancel.\n */\n const activeFilters = useMemo(() => {\n return config\n .filter((f) => {\n return Object.hasOwn(filterValue ?? {}, f.name);\n })\n .map((f) => {\n return f.name;\n });\n }, [config, filterValue]);\n\n /**\n * unusedFilters\n *\n * Complement of activeFilters (names without a corresponding `filter.<name>`\n * field in the controlled form state).\n */\n const unusedFilters = useMemo(() => {\n return config\n .filter((f) => {\n return !Object.hasOwn(filterValue ?? {}, f.name);\n })\n .map((f) => {\n return f.name;\n });\n }, [config, filterValue]);\n\n /**\n * getRegistryFilterByName\n *\n * Looks up the concrete registry entry for a filter by name, enabling access\n * to typed Form/Display components and other registry-level metadata.\n */\n const getFilterInstanceByName = useCallback(\n (name: string) => {\n return config.find((f) => {\n return f.name === name;\n }) as FilterInstance<unknown, unknown>;\n },\n [config],\n );\n\n /**\n * addFilter\n *\n * Seeds the filter with its registry default value inside the form and opens\n * the modal for immediate editing. No URL writes happen here.\n */\n const addFilter = useCallback(\n (name: string) => {\n const inst = getFilterInstanceByName(name);\n showFilterModal(name);\n setValue(getFilterFormFieldName(name), inst.defaultValue);\n },\n [\n getFilterFormFieldName,\n getFilterInstanceByName,\n setValue,\n showFilterModal,\n ],\n );\n\n /**\n * removeFilter\n *\n * Unregisters the filter field from the form. This immediately removes the\n * filter from the active list since derived state watches the form. It\n * closes the modal without rollback if the removed filter is currently open.\n */\n const removeFilter = useCallback(\n (name: string) => {\n // unregister form field\n unregister(getFilterFormFieldName(name));\n // close filter modal if open\n if (currentModalFilter?.name === name) {\n // Explicit removal: close without rollback\n setCurrentModalFilter(null);\n }\n // trigger form submit (to update filter state)\n triggerSubmit();\n },\n [\n getFilterFormFieldName,\n currentModalFilter,\n setCurrentModalFilter,\n triggerSubmit,\n unregister,\n ],\n );\n\n /**\n * hasError\n *\n * Helper that checks the ex-forms field state for a specific filter and\n * reports whether the field is currently invalid.\n */\n const hasError = useCallback(\n (name: string) => {\n return getFieldState(getFilterFormFieldName(name)).invalid;\n },\n [getFieldState, getFilterFormFieldName],\n );\n\n const contextValue: FiltersContextValue = useMemo(() => {\n return {\n activeFilters,\n addFilter,\n closeFilterModal,\n getFilterFormFieldName,\n getFilterValueByName,\n getFilterInstanceByName,\n hasError,\n modalFilterName: currentModalFilter?.name,\n removeFilter,\n showFilterModal,\n unusedFilters,\n };\n }, [\n activeFilters,\n addFilter,\n closeFilterModal,\n getFilterFormFieldName,\n getFilterValueByName,\n getFilterInstanceByName,\n hasError,\n currentModalFilter,\n removeFilter,\n showFilterModal,\n unusedFilters,\n ]);\n\n return (\n <FiltersContext.Provider value={contextValue}>\n {children}\n </FiltersContext.Provider>\n );\n};\n\n/**\n * useFilters\n *\n * Convenience hook to consume the FiltersContext. Throws a descriptive error\n * when used outside of a FiltersContextProvider to make integration mistakes\n * obvious during development.\n */\nexport const useFilters = (): FiltersContextValue => {\n const ctx = useContext(FiltersContext);\n if (!ctx) {\n throw new Error('useFilters must be used within FiltersContextProvider');\n }\n return ctx;\n};\n\nexport default FiltersContext;\n","import Label from '@fuf-stack/pixels/Label';\n\nimport { useFilters } from './FiltersContext';\n\n/**\n * ActiveFilters\n *\n * Shows the list of currently applied filters as clickable chips that open\n * the edit modal. Each chip can be removed via its close action.\n */\ninterface ActiveFiltersProps {\n /** CSS class name to apply to each label */\n className?: string;\n}\n\nconst ActiveFilters = ({ className = undefined }: ActiveFiltersProps) => {\n const {\n activeFilters,\n getFilterValueByName,\n getFilterInstanceByName,\n hasError,\n removeFilter,\n showFilterModal,\n } = useFilters();\n return (\n <>\n {activeFilters.map((name) => {\n const instance = getFilterInstanceByName(name);\n const value = getFilterValueByName(name);\n\n // get the display component from the instance\n const DisplayComponent = instance.components.Display;\n\n return (\n <button\n key={name}\n aria-label={`Open ${name} filter`}\n type=\"button\"\n onClick={() => {\n showFilterModal(name);\n }}\n >\n <Label\n className={className}\n color={hasError(name) ? 'danger' : 'primary'}\n variant=\"flat\"\n onClose={() => {\n removeFilter(name);\n }}\n >\n {instance.icon}\n <DisplayComponent config={instance.config} value={value} />\n </Label>\n </button>\n );\n })}\n </>\n );\n};\n\nexport default ActiveFilters;\n","import { FaSliders } from 'react-icons/fa6';\n\nimport Menu from '@fuf-stack/pixels/Menu';\n\nimport { useFilters } from './FiltersContext';\n\ninterface AddFilterMenuProps {\n /** CSS class name map for slots */\n classNames?: Partial<{\n addFilterMenuItem: string;\n addFilterMenuButton: string;\n }>;\n}\n\n/**\n * AddFilterMenu\n *\n * Renders a menu trigger that opens a list of addable filters. Selecting an\n * item triggers the parent to seed a default value and open the modal.\n */\nconst AddFilterMenu = ({ classNames = {} }: AddFilterMenuProps) => {\n const { unusedFilters, addFilter, getFilterInstanceByName } = useFilters();\n\n const menuItems = unusedFilters.map((name) => {\n const instance = getFilterInstanceByName(name);\n const config = instance.config as { text?: string };\n const label = config?.text ?? name;\n return {\n key: name,\n icon: instance.icon,\n label,\n onClick: () => {\n addFilter(name);\n },\n };\n });\n\n return (\n <Menu\n isDisabled={!menuItems.length}\n items={menuItems}\n placement=\"bottom-start\"\n className={{\n item: classNames.addFilterMenuItem,\n trigger: classNames.addFilterMenuButton,\n }}\n triggerButtonProps={{\n 'aria-label': 'Add Filter',\n 'data-testid': 'add_filter_button',\n disableRipple: true,\n size: 'sm',\n variant: 'bordered',\n }}\n >\n <FaSliders />\n Filter\n </Menu>\n );\n};\n\nexport default AddFilterMenu;\n","import { Suspense } from 'react';\nimport { PiSlidersHorizontalBold } from 'react-icons/pi';\n\nimport Button from '@fuf-stack/pixels/Button';\nimport Modal from '@fuf-stack/pixels/Modal';\nimport SubmitButton from '@fuf-stack/uniform/SubmitButton';\n\nimport { useFilters } from './FiltersContext';\n\ninterface FilterModalProps {\n classNames?: Partial<{\n header: string;\n footer: string;\n body: string;\n }>;\n}\n\nconst FilterModal = ({ classNames = {} }: FilterModalProps) => {\n const {\n closeFilterModal,\n getFilterFormFieldName,\n getFilterInstanceByName,\n modalFilterName,\n removeFilter,\n } = useFilters();\n\n // don't render if no filter is open\n if (!modalFilterName) {\n return null;\n }\n\n const instance = getFilterInstanceByName(modalFilterName);\n const config = instance.config as { text?: string };\n\n // get the form component from the instance\n const FormComponent = instance.components.Form;\n\n return (\n <Modal\n isOpen\n onClose={closeFilterModal}\n className={{\n body: classNames.body,\n footer: classNames.footer,\n header: classNames.header,\n }}\n footer={\n <>\n <Button\n ariaLabel=\"Remove filter\"\n color=\"danger\"\n testId=\"remove_filter_button\"\n variant=\"flat\"\n onClick={() => {\n removeFilter(modalFilterName);\n }}\n >\n Remove\n </Button>\n <SubmitButton ariaLabel=\"Apply filter\" testId=\"apply_filter_button\">\n Apply Filter\n </SubmitButton>\n </>\n }\n header={\n <>\n {instance.icon ?? <PiSlidersHorizontalBold />}\n <div>{`${config?.text ?? modalFilterName} Filter`}</div>\n </>\n }\n >\n <Suspense>\n <FormComponent\n config={config}\n fieldName={getFilterFormFieldName(modalFilterName)}\n />\n </Suspense>\n </Modal>\n );\n};\n\nexport default FilterModal;\n","import { useState } from 'react';\nimport { FaSearch } from 'react-icons/fa';\n\nimport { motion } from '@fuf-stack/pixel-motion';\nimport Button from '@fuf-stack/pixels/Button';\nimport { useFormContext } from '@fuf-stack/uniform/hooks/useFormContext';\nimport Input from '@fuf-stack/uniform/Input';\nimport SubmitButton from '@fuf-stack/uniform/SubmitButton';\n\nexport type SearchConfiguration =\n | boolean\n | {\n /** Placeholder shown in the search input */\n placeholder?: string;\n };\n\ninterface SearchInputProps {\n /** Slots class names passed from parent variants */\n classNames?: Partial<{\n searchWrapper: string;\n searchShowButton: string;\n searchMotionDiv: string;\n searchInput: string;\n searchInputWrapper: string;\n searchSubmitButton: string;\n }>;\n /** Search configuration */\n config: SearchConfiguration;\n}\n\n/**\n * SearchInput\n *\n * By default renders only a search button. When clicked, the text input animates in\n * and a trailing submit button is shown.\n */\nconst SearchInput = ({ classNames = {}, config }: SearchInputProps) => {\n const { formState, setFocus, triggerSubmit } = useFormContext();\n\n // Auto-open if there is an initial or externally set search value\n const isInitiallyVisible = !!formState?.defaultValues?.search;\n const [isVisible, setIsVisible] = useState(isInitiallyVisible);\n\n const placeholder =\n typeof config === 'object' ? config.placeholder : undefined;\n\n return (\n <div className={classNames.searchWrapper}>\n {!isVisible && (\n <Button\n ariaLabel=\"Show search input\"\n className={classNames.searchShowButton}\n icon={<FaSearch />}\n size=\"sm\"\n testId=\"show_search_input_button\"\n variant=\"bordered\"\n onClick={() => {\n setIsVisible(true);\n }}\n />\n )}\n {isVisible ? (\n <motion.div\n key=\"search-input\"\n animate={{ opacity: 1 }}\n className={classNames.searchMotionDiv}\n // if the input was not initially visible, animate in\n initial={!isInitiallyVisible ? { opacity: 0.5 } : false}\n onAnimationComplete={() => {\n // if the input was not initially visible, focus it\n if (!isInitiallyVisible) {\n setFocus('search');\n }\n }}\n transition={{\n duration: 0.3,\n ease: 'circOut',\n }}\n >\n <Input\n clearable\n debounceDelay={0}\n name=\"search\"\n placeholder={placeholder}\n size=\"sm\"\n className={{\n input: classNames.searchInput,\n inputWrapper: classNames.searchInputWrapper,\n }}\n // submit on clear\n onClear={() => {\n triggerSubmit();\n }}\n />\n <SubmitButton\n ariaLabel=\"Submit search\"\n // eslint-disable-next-line react/no-children-prop\n children={null}\n className={classNames.searchSubmitButton}\n color=\"primary\"\n icon={<FaSearch />}\n size=\"sm\"\n testId=\"submit_search_button\"\n />\n </motion.div>\n ) : null}\n </div>\n );\n};\n\nexport default SearchInput;\n","import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { VetoInput } from '@fuf-stack/veto';\nimport type { ReactNode } from 'react';\nimport type { FiltersConfiguration } from './filters/types';\nimport type { SearchConfiguration } from './Subcomponents/SearchInput';\n\nimport createDebug from 'debug';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\nimport Form from '@fuf-stack/uniform/Form';\n\nimport { useFilterValidation } from './hooks/useFilterValidation';\nimport ActiveFilters from './Subcomponents/ActiveFilters';\nimport AddFilterMenu from './Subcomponents/AddFilterMenu';\nimport FilterModal from './Subcomponents/FilterModal';\nimport { FiltersContextProvider } from './Subcomponents/FiltersContext';\nimport SearchInput from './Subcomponents/SearchInput';\n\nconst debug = createDebug('megapixels:Filter');\n\n// filter styling variants\nexport const filterVariants = tv({\n slots: {\n // outer wrapper\n base: 'flex flex-auto flex-col',\n // add filter menu trigger button\n addFilterMenuButton: '',\n // add filter menu item\n addFilterMenuItem: '',\n // active filter label\n activeFilterLabel: 'h-8 cursor-pointer rounded-md dark:text-foreground',\n // filter modal body\n filterModalBody: '',\n // filter modal header\n filterModalHeader: 'flex items-center gap-3 text-default-700',\n // filter modal footer\n filterModalFooter: 'justify-between',\n // form element\n form: 'mb-3 flex flex-wrap gap-3',\n // search input field\n searchInput: '',\n // search input wrapper (inner control)\n searchInputWrapper: '',\n // search motion container\n searchMotionDiv: 'flex w-72 gap-2',\n // search show button\n searchShowButton: '',\n // search submit button\n searchSubmitButton: '',\n // search wrapper\n searchWrapper: 'flex items-center',\n },\n});\n\ntype ClassName = TVClassName<typeof filterVariants>;\n\nexport interface FilterValues {\n search?: string;\n filter?: string | Record<string, unknown> | null;\n}\n\nexport type FilterChildRenderFn = (values: {\n search?: string;\n filter?: Record<string, unknown>;\n}) => ReactNode;\n\n/**\n * Filter\n *\n * Controlled, form-driven filter UI.\n *\n * Responsibilities\n * - Derives initial form values from the controlled `values` prop\n * - Builds a composite validation schema from the filter registry (and optional search)\n * - Exposes ergonomic UI: active filters list, add/remove actions, and per-filter modal\n * - Commits changes by invoking the controlled `onChange` callback on submit\n *\n * Structure\n * - Owns an ex-forms `Form` that wraps the entire filter experience\n * - Optionally renders a search input bound to the `search` field\n * - Renders ActiveFilters, AddFilterMenu, and FilterModal inside a shared context\n * - Optionally renders children as a render-prop with the resolved `values`\n */\nexport interface FilterProps {\n /** Optional render-prop that receives the resolved, controlled values */\n children?: FilterChildRenderFn;\n /** CSS class name */\n className?: ClassName;\n /** Configuration of the filter */\n config: {\n /**\n * Declarative filter configuration. Each entry ties a logical name to a\n * registry filter type and (optionally) per-usage config overrides.\n */\n filters: FiltersConfiguration;\n /** Optional configuration for search field */\n search?: SearchConfiguration;\n };\n /** ex-forms form instance name. Defaults to \"filterComponentForm\". */\n formName?: string;\n /** Controlled setter invoked on submit with the next canonical values */\n onChange: (nextValues: FilterValues) => void;\n /** Controlled committed state: the canonical `search` and `filter` values */\n values: FilterValues;\n}\n\n/**\n * Renders the filter UI bound to a single ex-forms `Form`.\n * The form is the source of truth during user interaction; the committed\n * state is controlled by the parent via `values`/`onChange`.\n */\nconst Filter = ({\n children = undefined,\n className = undefined,\n config,\n formName = 'filterComponentForm',\n onChange,\n values,\n}: FilterProps) => {\n // Submit handler: map form state back into the controlled `values` shape\n const handleSubmit = (nextValues: Record<string, unknown>) => {\n debug('handleSubmit', { nextValues });\n onChange(nextValues as FilterValues);\n };\n\n // Build validation schema for all configured filters (and optional search)\n const validation = useFilterValidation(\n config.filters,\n Boolean(config.search),\n );\n\n // validate controlled values are valid\n const {\n data: valuesValidated,\n errors,\n success,\n } = validation.validate(values as VetoInput);\n\n // classNames from slots\n const variants = filterVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n debug('render', {\n props: { config, values },\n validation: { errors, success, valuesValidated },\n });\n\n return (\n <div className={classNames.base}>\n {/*\n Uniform Form wrapper\n - initialValues derive from controlled props (with optional defaults)\n - validation is built from the registry for all configured filters\n - onSubmit maps form values back into values/onChange\n */}\n <Form\n className={classNames.form}\n // disable debug mode for now\n debug={{ disable: true }}\n initialValues={valuesValidated ?? {}}\n name={formName}\n onSubmit={handleSubmit}\n validation={validation}\n >\n {/* Render search if search config is provided */}\n {config.search ? (\n <SearchInput\n config={config.search}\n classNames={{\n searchInput: classNames.searchInput,\n searchInputWrapper: classNames.searchInputWrapper,\n searchMotionDiv: classNames.searchMotionDiv,\n searchShowButton: classNames.searchShowButton,\n searchSubmitButton: classNames.searchSubmitButton,\n searchWrapper: classNames.searchWrapper,\n }}\n />\n ) : null}\n {/*\n FiltersContextProvider exposes a minimal API for the UI layer:\n - activeFilters/unusedFilters by name\n - helpers to get merged config, value, components, and field names\n - methods to add/remove filters and show/close the modal\n */}\n <FiltersContextProvider config={config.filters}>\n <ActiveFilters className={classNames.activeFilterLabel} />\n <AddFilterMenu\n classNames={{\n addFilterMenuButton: classNames.addFilterMenuButton,\n addFilterMenuItem: classNames.addFilterMenuItem,\n }}\n />\n <FilterModal\n classNames={{\n body: classNames.filterModalBody,\n footer: classNames.filterModalFooter,\n header: classNames.filterModalHeader,\n }}\n />\n </FiltersContextProvider>\n </Form>\n {/* Children can consume derived search string and parsed filter object */}\n {children?.(valuesValidated ?? {})}\n </div>\n );\n};\n\nexport default Filter;\n","import type { FilterDefinition, FilterFactory } from './types';\n\n/**\n * createFilter\n *\n * Builds a filter factory from a static FilterDefinition. The returned factory\n * accepts a usage descriptor (name/icon and optional partial config) and\n * produces a concrete FilterInstance with:\n * - merged config (shallow: definition.defaults.config overlaid by overrides)\n * - Form/Display components\n * - validate function (forwarded from the definition)\n * - defaultValue (forwarded from the definition)\n * - name and icon for UI integration\n *\n * @typeParam Config - Configuration object shape for the filter\n * @typeParam Value - Runtime value type for the filter\n * @param definition - Static description of the filter (components, defaults, validate)\n * @returns FilterFactory that creates FilterInstance<Config, Value>\n */\nconst createFilter = <Config, Value>(\n definition: FilterDefinition<Config, Value>,\n): FilterFactory<Config, Value> => {\n return ({ name, icon, config }) => {\n return {\n components: definition.components,\n config: { ...definition.defaults.config, ...(config ?? {}) } as Config,\n defaultValue: definition.defaults.value,\n icon,\n name,\n validation: definition.validation,\n };\n };\n};\n\nexport default createFilter;\n","import type { FilterDisplayProps } from '../types';\nimport type { Config, Value } from './schema';\n\n/**\n * Read-only presentation for the boolean filter.\n * Displays human-readable text based on the current boolean `value`\n * and the provided `config` strings.\n */\nconst Display = ({\n value,\n config: { text, textPrefix, textNoWord },\n}: FilterDisplayProps<Config, Value>) => {\n if (typeof value === 'boolean') {\n return (\n <>\n {`${value ? textPrefix : `${textPrefix} ${textNoWord ?? 'no'}`} ${text}`}\n </>\n );\n }\n return <>{`${text}...`}</>;\n};\n\nexport default Display;\n","import type { FilterFormProps } from '../types';\nimport type { Config } from './schema';\n\nimport Switch from '@fuf-stack/uniform/Switch';\n\n/**\n * Renders the form control for the boolean filter.\n * Uses a `Switch` to toggle the boolean value and composes\n * the label from the provided `config` and `fieldName`.\n */\nconst Form = ({\n fieldName,\n config: { text, textPrefix },\n}: FilterFormProps<Config>) => {\n return <Switch label={`${textPrefix} ${text}`} name={fieldName} />;\n};\n\nexport default Form;\n","import type { vInfer } from '@fuf-stack/veto';\n\nimport { boolean, object, string } from '@fuf-stack/veto';\n\n/** configuration of the filter */\nexport const config = object({\n /**\n * Human‑readable label used in the UI (e.g. in the chip and modal header).\n * Examples: \"Magical\", \"Haunted\"\n */\n text: string(),\n /**\n * Optional word shown before the label when building sentence‑like chips.\n * Examples: \"is\" → \"is Magical\"\n */\n textPrefix: string().optional(),\n /**\n * Optional negation word used when a boolean value is false.\n * Examples: \"not\" → \"is not Magical\"\n */\n textNoWord: string().optional(),\n});\n\n/** validate the filter value */\nexport const validate = (_config?: Config) => {\n return boolean().optional();\n};\n\nexport type Config = vInfer<typeof config>;\nexport type Value = vInfer<ReturnType<typeof validate>>;\n","/* eslint-disable import-x/prefer-default-export */\n\nimport type { Config, Value } from './schema';\n\nimport createFilter from '../createFilter';\nimport Display from './Display';\nimport Form from './Form';\nimport { validate } from './schema';\n\n/**\n * Boolean filter definition for the Filter system.\n * Provides Display and Form components, default value/config, and validation.\n *\n * Defaults:\n * - value: true\n * - config: { text: 'Active', textPrefix: 'is', textNoWord: 'no' }\n *\n * @see Display\n * @see Form\n * @see validate\n */\nexport const boolean = createFilter<Config, Value>({\n components: { Display, Form },\n defaults: {\n value: true,\n config: { text: 'Active', textPrefix: 'is', textNoWord: 'no' },\n },\n validation: validate,\n});\n","import type { FilterDisplayProps } from '../types';\nimport type { Config, Value } from './schema';\n\n/**\n * Read-only presentation for the checkboxes filter.\n * Resolves and displays selected option labels based on `value` and `config`.\n * Supports string, ReactNode, and function labels (mode: 'display').\n */\nconst Display = ({\n value,\n config: { text, options },\n}: FilterDisplayProps<Config, Value>) => {\n if (value && value.length > 0) {\n return (\n <span className=\"flex items-center gap-1\">\n {text} is\n {value.map((val) => {\n const option = options.find((op) => {\n return op.value === val;\n });\n const label = option?.label ?? val;\n const resolvedLabel =\n typeof label === 'function' ? label('display') : label;\n return <span key={val}>{resolvedLabel}</span>;\n })}\n </span>\n );\n }\n return `${text} is ...`;\n};\n\nexport default Display;\n","import type { FilterFormProps } from '../types';\nimport type { Config } from './schema';\n\nimport Checkboxes from '@fuf-stack/uniform/Checkboxes';\n\n/**\n * Renders the form control for the checkboxes filter.\n * Uses a `Checkboxes` to select multiple options.\n * Resolves function labels with 'form' mode.\n */\nconst Form = ({ fieldName, config }: FilterFormProps<Config>) => {\n const resolvedOptions = config.options.map((option) => {\n return {\n ...option,\n label:\n typeof option.label === 'function'\n ? option.label('form')\n : option.label,\n };\n });\n\n return <Checkboxes name={fieldName} options={resolvedOptions} />;\n};\n\nexport default Form;\n","import type { vInfer } from '@fuf-stack/veto';\nimport type { ReactNode } from 'react';\n\nimport { any, array, object, refineArray, string } from '@fuf-stack/veto';\n\n/** configuration of the filter */\nexport const config = object({\n /**\n * Human‑readable label used in the UI (e.g. label and modal header).\n * Example: \"Snacks\", \"Mood\"\n */\n text: string(),\n /**\n * Options rendered as multiple checkboxes. Each option needs a `label`\n * (what the user sees) and a `value` (what is written into the form state).\n * Label can be a string, React node, or a function that receives mode\n * ('form' or 'display') and returns a React node.\n */\n options: array(object({ label: any(), value: string() })),\n});\n\n/** Type-safe Config that overrides label to support ReactNode or function */\nexport type Config = Omit<vInfer<typeof config>, 'options'> & {\n options: {\n label: ReactNode | ((mode: 'form' | 'display') => ReactNode);\n value: string;\n }[];\n};\n\n/** validate the filter value */\nexport const validate = (cfg?: Config) => {\n return refineArray(array(string()).optional())({\n unique: true,\n custom: (values, ctx) => {\n if (!cfg) {\n return;\n }\n values.forEach((value) => {\n if (\n !cfg.options.find((option) => {\n return option?.value === value;\n })\n ) {\n ctx.addIssue({\n code: 'custom',\n message: `Invalid value: ${value}`,\n });\n }\n });\n },\n });\n};\n\nexport type Value = vInfer<ReturnType<typeof validate>>;\n","/* eslint-disable import-x/prefer-default-export */\n\nimport type { Config, Value } from './schema';\n\nimport createFilter from '../createFilter';\nimport Display from './Display';\nimport Form from './Form';\nimport { validate } from './schema';\n\n/**\n * Checkboxes filter definition for the Filter system.\n * Provides Display and Form components, default value/config, and validation.\n *\n * Defaults:\n * - value: []\n * - config: { text: 'Options', options: [] }\n *\n * @see Display\n * @see Form\n * @see validate\n */\nexport const checkboxes = createFilter<Config, Value>({\n components: { Display, Form },\n defaults: { value: [], config: { text: 'Options', options: [] } },\n validation: validate,\n});\n","import Filter from './Filter';\nimport { boolean } from './filters/boolean/boolean';\nimport { checkboxes } from './filters/checkboxes/checkboxes';\n\n// export types\nexport type * from './filters/types';\n\n// export helpers\nexport { default as createFilter } from './filters/createFilter';\n\n// export all filters\nexport const filters = {\n boolean,\n checkboxes,\n};\n\n// export everything from the Filter component (types and filterVariants)\nexport * from './Filter';\n\n// export the Filter component as default\nexport default Filter;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,uBACX,SACA,eACG;CACH,QAAA,GAAA,MAAA,eAAmC;EAEjC,IAAI,eAA4C,CAAC;EACjD,QAAQ,SAAS,MAAM;GACrB,eAAe;IACb,GAAG;KACF,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM;GACjC;EACF,CAAC;EAmBD,QAAA,GAAA,gBAAA,MAAY;GAfV,SAAA,GAAA,gBAAA,cAAqB,EAClB,MAAA,GAAA,gBAAA,QAAY,YAAY,CAAC,EACzB,IAAA,GAAA,gBAAA,QAAU,YAAY,CAAC,EACvB,SAAS,EACT,SAAS,EAET,WAAW,QAAQ;IAClB,OAAO,OAAO,KAAA;GAChB,CAAC;GAEH,GAAI,aACA,EAAE,SAAA,GAAA,gBAAA,QAAe,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,IACnD,CAAC;EAGoB,CAAC;CAC9B,GAAG,CAAC,SAAS,UAAU,CAAC;AAC1B;;;;;;;;;;;;;;;;;;;;;ACWA,MAAM,kBAAA,GAAA,MAAA,eACJ,KAAA,CACF;AAEA,MAAa,0BAA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,QAAgB;;;;;CAK3B,OAAA,GAAA,gBAAA,QAAa;;;;;;;CAOb,UAAA,GAAA,gBAAA,QAAA,GAAA,gBAAA,QAAsB;EAAE,QAAA,GAAA,gBAAA,KAAW;EAAG,QAAA,GAAA,gBAAA,QAAc;CAAE,CAAC,CAAC;AAC1D,CAAC;;AAWD,MAAa,YAAY,QAAiB;CACxC,QAAA,GAAA,gBAAA,cAAA,GAAA,gBAAA,QAAA,GAAA,gBAAA,QAAgC,CAAC,EAAE,SAAS,CAAC,EAAE;EAC7C,QAAQ;EACR,SAAS,QAAQ,QAAQ;GACvB,IAAI,CAAC,KACH;GAEF,OAAO,SAAS,UAAU;IACxB,IACE,CAAC,IAAI,QAAQ,MAAM,WAAW;KAC5B,OAAO,QAAQ,UAAU;IAC3B,CAAC,GAED,IAAI,SAAS;KACX,MAAM;KACN,SAAS,kBAAkB;IAC7B,CAAC;GAEL,CAAC;EACH;CACF,CAAC;AACH;;;AExCA,MAAa,UAAU;CACrB;CACA,YDQwB,aAA4B;EACpD,YAAY;GAAE;GAAS;EAAK;EAC5B,UAAU;GAAE,OAAO,CAAC;GAAG,QAAQ;IAAE,MAAM;IAAW,SAAS,CAAC;GAAE;EAAE;EAChE,YAAY;CACd,CCZE;AACF;AAMA,IAAA,iBAAe"}
@@ -1,354 +0,0 @@
1
- import { TVClassName } from "@fuf-stack/pixel-utils";
2
- import { ReactNode } from "react";
3
- import { vInfer } from "@fuf-stack/veto";
4
-
5
- //#region src/Filter/filters/checkboxes/schema.d.ts
6
- /** configuration of the filter */
7
- declare const config$1: import("@fuf-stack/veto").VObjectSchema<{
8
- /**
9
- * Human‑readable label used in the UI (e.g. label and modal header).
10
- * Example: "Snacks", "Mood"
11
- */
12
- text: import("@fuf-stack/veto").ZodString;
13
- /**
14
- * Options rendered as multiple checkboxes. Each option needs a `label`
15
- * (what the user sees) and a `value` (what is written into the form state).
16
- * Label can be a string, React node, or a function that receives mode
17
- * ('form' or 'display') and returns a React node.
18
- */
19
- options: import("@fuf-stack/veto").VArraySchema<import("@fuf-stack/veto").VObjectSchema<{
20
- label: import("@fuf-stack/veto").ZodAny;
21
- value: import("@fuf-stack/veto").ZodString;
22
- }>>;
23
- }>;
24
- /** Type-safe Config that overrides label to support ReactNode or function */
25
- type Config = Omit<vInfer<typeof config$1>, 'options'> & {
26
- options: {
27
- label: ReactNode | ((mode: 'form' | 'display') => ReactNode);
28
- value: string;
29
- }[];
30
- };
31
- //#endregion
32
- //#region src/Filter/filters/types.d.ts
33
- /**
34
- * FilterDefinition
35
- *
36
- * Declarative description of a filter. A FilterDefinition is not used
37
- * directly by the UI. Instead, it is passed to `createFilter` to produce a
38
- * concrete, runtime `FilterInstance` for a specific usage (with name/icon and
39
- * optional config overrides).
40
- *
41
- * @typeParam Config - The configuration object shape for this filter
42
- * @typeParam Value - The runtime value type produced/consumed by this filter
43
- */
44
- interface FilterDefinition<Config, Value> {
45
- components: {
46
- /**
47
- * Display component rendered inside the filter chip. Receives the current
48
- * filter `value` and the merged `config`.
49
- */
50
- Display: (props: {
51
- value: Value;
52
- config: Config;
53
- }) => ReactNode;
54
- /**
55
- * Form component rendered inside the modal. Receives the fully-qualified
56
- * field name and the merged, validated `config`.
57
- */
58
- Form: (props: {
59
- fieldName: string;
60
- config: Config;
61
- }) => ReactNode;
62
- };
63
- defaults: {
64
- /** Baseline configuration for the filter; can be overridden per usage */config: Config; /** Initial form value seeded when a filter is added */
65
- value: Value;
66
- };
67
- /**
68
- * Validation factory returning an ex-validator schema for the value shape.
69
- * Receives the (merged) `config` so the schema can depend on configuration.
70
- */
71
- validation: (config?: Config) => unknown;
72
- }
73
- /**
74
- * FilterFactory
75
- *
76
- * A filter exports a factory that, given name/icon and optional config
77
- * overrides, returns a concrete FilterInstance with merged config and a
78
- * computed defaultValue.
79
- *
80
- * @typeParam Config - Configuration object shape for the filter
81
- * @typeParam Value - Runtime value type for the filter
82
- */
83
- type FilterFactory<Config, Value> = (args: {
84
- /** Per-usage configuration overrides merged with `defaults.config` */config?: Partial<Config>; /** Optional icon element shown in menus/labels */
85
- icon?: ReactNode; /** Logical field name under `filter.{name}` */
86
- name: string;
87
- }) => FilterInstance<Config, Value>;
88
- /**
89
- * FilterInstance
90
- *
91
- * Runtime instance created by merging a filter's defaults with usage
92
- * overrides and attaching name/icon for UI.
93
- *
94
- * This is the only shape used by the rendering layer and context.
95
- *
96
- * @typeParam Config - Effective configuration object shape
97
- * @typeParam Value - Effective value type for the filter
98
- */
99
- interface FilterInstance<Config, Value> {
100
- /** UI components (Form/Display) provided by the filter */
101
- components: FilterDefinition<Config, Value>['components'];
102
- /** Merged configuration (`defaults.config` overlaid with per-usage overrides) */
103
- config: Config;
104
- /** Initial form value to seed when adding this filter */
105
- defaultValue: Value;
106
- /** Optional icon element used in menus/labels */
107
- icon?: ReactNode;
108
- /** Logical field name under `filter.{name}` */
109
- name: string;
110
- /** ex-validator schema factory for the value; typically closure over config */
111
- validation: (config?: Config) => unknown;
112
- }
113
- /**
114
- * FiltersConfiguration
115
- *
116
- * Top-level collection of instantiated filters used by the Filter component
117
- * and FiltersContext. Each entry is a concrete FilterInstance (already created
118
- * via a filter factory), carrying its merged config, default value, UI
119
- * components, and validate function.
120
- */
121
- type FiltersConfiguration = FilterInstance<any, any>[];
122
- /**
123
- * FilterDisplayProps
124
- *
125
- * Props provided to a filter's Display component. Derived from an active
126
- * FilterInstance at runtime.
127
- *
128
- * @typeParam Config - Effective configuration type for the instance
129
- * @typeParam Value - Effective value type for the instance
130
- */
131
- interface FilterDisplayProps<Config, Value> {
132
- /** Merged configuration for the filter instance */
133
- config: Config;
134
- /** Current (possibly partial) value for the filter instance */
135
- value: Value;
136
- }
137
- /**
138
- * FilterFormProps
139
- *
140
- * Props provided to a filter's Form component. The `fieldName` is the
141
- * fully-qualified path in the host form, and the `config` is the instance's
142
- * merged configuration.
143
- *
144
- * @typeParam Config - Effective configuration type for the instance
145
- */
146
- interface FilterFormProps<Config> {
147
- /** Merged configuration for the filter instance */
148
- config: Config;
149
- /** Fully-qualified form field path (e.g., `filter.status`) */
150
- fieldName: string;
151
- }
152
- //#endregion
153
- //#region src/Filter/Subcomponents/SearchInput.d.ts
154
- type SearchConfiguration = boolean | {
155
- /** Placeholder shown in the search input */placeholder?: string;
156
- };
157
- //#endregion
158
- //#region src/Filter/Filter.d.ts
159
- declare const filterVariants: import("tailwind-variants").TVReturnType<{
160
- [key: string]: {
161
- [key: string]: import("tailwind-merge").ClassNameValue | {
162
- base?: import("tailwind-merge").ClassNameValue;
163
- addFilterMenuButton?: import("tailwind-merge").ClassNameValue;
164
- addFilterMenuItem?: import("tailwind-merge").ClassNameValue;
165
- activeFilterLabel?: import("tailwind-merge").ClassNameValue;
166
- filterModalBody?: import("tailwind-merge").ClassNameValue;
167
- filterModalHeader?: import("tailwind-merge").ClassNameValue;
168
- filterModalFooter?: import("tailwind-merge").ClassNameValue;
169
- form?: import("tailwind-merge").ClassNameValue;
170
- searchInput?: import("tailwind-merge").ClassNameValue;
171
- searchInputWrapper?: import("tailwind-merge").ClassNameValue;
172
- searchMotionDiv?: import("tailwind-merge").ClassNameValue;
173
- searchShowButton?: import("tailwind-merge").ClassNameValue;
174
- searchSubmitButton?: import("tailwind-merge").ClassNameValue;
175
- searchWrapper?: import("tailwind-merge").ClassNameValue;
176
- };
177
- };
178
- } | {
179
- [x: string]: {
180
- [x: string]: import("tailwind-merge").ClassNameValue | {
181
- base?: import("tailwind-merge").ClassNameValue;
182
- addFilterMenuButton?: import("tailwind-merge").ClassNameValue;
183
- addFilterMenuItem?: import("tailwind-merge").ClassNameValue;
184
- activeFilterLabel?: import("tailwind-merge").ClassNameValue;
185
- filterModalBody?: import("tailwind-merge").ClassNameValue;
186
- filterModalHeader?: import("tailwind-merge").ClassNameValue;
187
- filterModalFooter?: import("tailwind-merge").ClassNameValue;
188
- form?: import("tailwind-merge").ClassNameValue;
189
- searchInput?: import("tailwind-merge").ClassNameValue;
190
- searchInputWrapper?: import("tailwind-merge").ClassNameValue;
191
- searchMotionDiv?: import("tailwind-merge").ClassNameValue;
192
- searchShowButton?: import("tailwind-merge").ClassNameValue;
193
- searchSubmitButton?: import("tailwind-merge").ClassNameValue;
194
- searchWrapper?: import("tailwind-merge").ClassNameValue;
195
- };
196
- };
197
- } | {}, {
198
- base: string;
199
- addFilterMenuButton: string;
200
- addFilterMenuItem: string;
201
- activeFilterLabel: string;
202
- filterModalBody: string;
203
- filterModalHeader: string;
204
- filterModalFooter: string;
205
- form: string;
206
- searchInput: string;
207
- searchInputWrapper: string;
208
- searchMotionDiv: string;
209
- searchShowButton: string;
210
- searchSubmitButton: string;
211
- searchWrapper: string;
212
- }, undefined, {
213
- [key: string]: {
214
- [key: string]: import("tailwind-merge").ClassNameValue | {
215
- base?: import("tailwind-merge").ClassNameValue;
216
- addFilterMenuButton?: import("tailwind-merge").ClassNameValue;
217
- addFilterMenuItem?: import("tailwind-merge").ClassNameValue;
218
- activeFilterLabel?: import("tailwind-merge").ClassNameValue;
219
- filterModalBody?: import("tailwind-merge").ClassNameValue;
220
- filterModalHeader?: import("tailwind-merge").ClassNameValue;
221
- filterModalFooter?: import("tailwind-merge").ClassNameValue;
222
- form?: import("tailwind-merge").ClassNameValue;
223
- searchInput?: import("tailwind-merge").ClassNameValue;
224
- searchInputWrapper?: import("tailwind-merge").ClassNameValue;
225
- searchMotionDiv?: import("tailwind-merge").ClassNameValue;
226
- searchShowButton?: import("tailwind-merge").ClassNameValue;
227
- searchSubmitButton?: import("tailwind-merge").ClassNameValue;
228
- searchWrapper?: import("tailwind-merge").ClassNameValue;
229
- };
230
- };
231
- } | {}, {
232
- base: string;
233
- addFilterMenuButton: string;
234
- addFilterMenuItem: string;
235
- activeFilterLabel: string;
236
- filterModalBody: string;
237
- filterModalHeader: string;
238
- filterModalFooter: string;
239
- form: string;
240
- searchInput: string;
241
- searchInputWrapper: string;
242
- searchMotionDiv: string;
243
- searchShowButton: string;
244
- searchSubmitButton: string;
245
- searchWrapper: string;
246
- }, import("tailwind-variants").TVReturnType<unknown, {
247
- base: string;
248
- addFilterMenuButton: string;
249
- addFilterMenuItem: string;
250
- activeFilterLabel: string;
251
- filterModalBody: string;
252
- filterModalHeader: string;
253
- filterModalFooter: string;
254
- form: string;
255
- searchInput: string;
256
- searchInputWrapper: string;
257
- searchMotionDiv: string;
258
- searchShowButton: string;
259
- searchSubmitButton: string;
260
- searchWrapper: string;
261
- }, undefined, unknown, unknown, undefined>>;
262
- type ClassName = TVClassName<typeof filterVariants>;
263
- interface FilterValues {
264
- search?: string;
265
- filter?: string | Record<string, unknown> | null;
266
- }
267
- type FilterChildRenderFn = (values: {
268
- search?: string;
269
- filter?: Record<string, unknown>;
270
- }) => ReactNode;
271
- /**
272
- * Filter
273
- *
274
- * Controlled, form-driven filter UI.
275
- *
276
- * Responsibilities
277
- * - Derives initial form values from the controlled `values` prop
278
- * - Builds a composite validation schema from the filter registry (and optional search)
279
- * - Exposes ergonomic UI: active filters list, add/remove actions, and per-filter modal
280
- * - Commits changes by invoking the controlled `onChange` callback on submit
281
- *
282
- * Structure
283
- * - Owns an ex-forms `Form` that wraps the entire filter experience
284
- * - Optionally renders a search input bound to the `search` field
285
- * - Renders ActiveFilters, AddFilterMenu, and FilterModal inside a shared context
286
- * - Optionally renders children as a render-prop with the resolved `values`
287
- */
288
- interface FilterProps {
289
- /** Optional render-prop that receives the resolved, controlled values */
290
- children?: FilterChildRenderFn;
291
- /** CSS class name */
292
- className?: ClassName;
293
- /** Configuration of the filter */
294
- config: {
295
- /**
296
- * Declarative filter configuration. Each entry ties a logical name to a
297
- * registry filter type and (optionally) per-usage config overrides.
298
- */
299
- filters: FiltersConfiguration; /** Optional configuration for search field */
300
- search?: SearchConfiguration;
301
- };
302
- /** ex-forms form instance name. Defaults to "filterComponentForm". */
303
- formName?: string;
304
- /** Controlled setter invoked on submit with the next canonical values */
305
- onChange: (nextValues: FilterValues) => void;
306
- /** Controlled committed state: the canonical `search` and `filter` values */
307
- values: FilterValues;
308
- }
309
- /**
310
- * Renders the filter UI bound to a single ex-forms `Form`.
311
- * The form is the source of truth during user interaction; the committed
312
- * state is controlled by the parent via `values`/`onChange`.
313
- */
314
- declare const Filter: ({
315
- children,
316
- className,
317
- config,
318
- formName,
319
- onChange,
320
- values
321
- }: FilterProps) => import("react/jsx-runtime").JSX.Element;
322
- //#endregion
323
- //#region src/Filter/filters/createFilter.d.ts
324
- /**
325
- * createFilter
326
- *
327
- * Builds a filter factory from a static FilterDefinition. The returned factory
328
- * accepts a usage descriptor (name/icon and optional partial config) and
329
- * produces a concrete FilterInstance with:
330
- * - merged config (shallow: definition.defaults.config overlaid by overrides)
331
- * - Form/Display components
332
- * - validate function (forwarded from the definition)
333
- * - defaultValue (forwarded from the definition)
334
- * - name and icon for UI integration
335
- *
336
- * @typeParam Config - Configuration object shape for the filter
337
- * @typeParam Value - Runtime value type for the filter
338
- * @param definition - Static description of the filter (components, defaults, validate)
339
- * @returns FilterFactory that creates FilterInstance<Config, Value>
340
- */
341
- declare const createFilter: <Config, Value>(definition: FilterDefinition<Config, Value>) => FilterFactory<Config, Value>;
342
- //#endregion
343
- //#region src/Filter/index.d.ts
344
- declare const filters: {
345
- boolean: FilterFactory<{
346
- text: string;
347
- textPrefix?: string | undefined;
348
- textNoWord?: string | undefined;
349
- }, boolean | undefined>;
350
- checkboxes: FilterFactory<Config, string[] | undefined>;
351
- };
352
- //#endregion
353
- export { FilterProps as a, FilterDefinition as c, FilterFormProps as d, FilterInstance as f, FilterChildRenderFn as i, FilterDisplayProps as l, createFilter as n, FilterValues as o, FiltersConfiguration as p, Filter as r, filterVariants as s, filters as t, FilterFactory as u };
354
- //# sourceMappingURL=index-DU-9vg7q.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DU-9vg7q.d.ts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"mapp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