@tomny-dev/uzi 0.20.1-pr.139.477.1.182a310 → 0.20.1-pr.140.480.1.89f4a30
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.
- package/dist/components/filter-workspace/FilterWorkspace.d.ts +1 -1
- package/dist/components/filter-workspace/FilterWorkspace.d.ts.map +1 -1
- package/dist/index59.js +6 -8
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +5 -8
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +1 -1
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.cjs.map +1 -1
- package/dist/style.css +14 -32
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
export type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
/** Sport/books/scope selectors. */
|
|
5
5
|
leading?: React.ReactNode;
|
|
6
|
-
/** Search
|
|
6
|
+
/** Search grows with available workspace width, bounded when other slots are present. */
|
|
7
7
|
search?: React.ReactNode;
|
|
8
8
|
/** Filter trigger, sort selector, and other trailing controls. */
|
|
9
9
|
actions?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterWorkspace.d.ts","sourceRoot":"","sources":["../../../src/components/filter-workspace/FilterWorkspace.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,uFAAuF;AACvF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAClE,mCAAmC;IACnC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"FilterWorkspace.d.ts","sourceRoot":"","sources":["../../../src/components/filter-workspace/FilterWorkspace.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,uFAAuF;AACvF,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CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EAAE,KAAiB,EAAE,WAAe,EAAE,IAAI,EAAE,YAAY,EAChE,SAAS,EAAE,cAAc,GAC1B,EAAE,kBAAkB,2CA2EpB"}
|
package/dist/index59.js
CHANGED
|
@@ -3,29 +3,27 @@ var bar = "uzi-filter-workspace-module__bar__S-uyv";
|
|
|
3
3
|
var leading = "uzi-filter-workspace-module__leading__opUGQ";
|
|
4
4
|
var search = "uzi-filter-workspace-module__search__mJuTt";
|
|
5
5
|
var actions = "uzi-filter-workspace-module__actions__SC8a-";
|
|
6
|
+
var noLeading = "uzi-filter-workspace-module__noLeading__VXNl4";
|
|
7
|
+
var noActions = "uzi-filter-workspace-module__noActions__yCfYZ";
|
|
6
8
|
var activeFilters = "uzi-filter-workspace-module__activeFilters__yMnCN";
|
|
7
9
|
var chips = "uzi-filter-workspace-module__chips__9idNl";
|
|
8
10
|
var chip = "uzi-filter-workspace-module__chip__1pp-Q";
|
|
9
11
|
var popoverRoot = "uzi-filter-workspace-module__popoverRoot__XeZZ8";
|
|
10
12
|
var panel = "uzi-filter-workspace-module__panel__Z2JD4";
|
|
11
|
-
var noLeading = "uzi-filter-workspace-module__noLeading__VXNl4";
|
|
12
|
-
var noSearch = "uzi-filter-workspace-module__noSearch__1MGeC";
|
|
13
|
-
var noActions = "uzi-filter-workspace-module__noActions__yCfYZ";
|
|
14
13
|
var filter_workspace_module_default = {
|
|
15
14
|
bar,
|
|
16
15
|
leading,
|
|
17
16
|
search,
|
|
18
17
|
actions,
|
|
18
|
+
noLeading,
|
|
19
|
+
noActions,
|
|
19
20
|
activeFilters,
|
|
20
21
|
chips,
|
|
21
22
|
chip,
|
|
22
23
|
popoverRoot,
|
|
23
|
-
panel
|
|
24
|
-
noLeading,
|
|
25
|
-
noSearch,
|
|
26
|
-
noActions
|
|
24
|
+
panel
|
|
27
25
|
};
|
|
28
26
|
//#endregion
|
|
29
|
-
export { actions, activeFilters, bar, chip, chips, filter_workspace_module_default as default, leading, noActions, noLeading,
|
|
27
|
+
export { actions, activeFilters, bar, chip, chips, filter_workspace_module_default as default, leading, noActions, noLeading, panel, popoverRoot, search };
|
|
30
28
|
|
|
31
29
|
//# sourceMappingURL=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display:
|
|
1
|
+
{"version":3,"file":"index59.js","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n position: relative;\n}\n.leading, .search, .actions {\n display: flex;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n max-width: 100%;\n}\n/* Wrap according to the workspace's actual width, including narrow sidebars\n * and panels on wide screens. Compact controls keep their intrinsic width. */\n.leading, .actions { flex: 0 1 auto; flex-wrap: wrap; }\n.leading > *, .actions > * { min-width: 0; max-width: 100%; }\n.search { flex: 1 1 12rem; min-width: min(12rem, 100%); max-width: 24rem; }\n.bar.noLeading.noActions .search { max-width: none; }\n.search > * { min-width: 0; flex: 1 1 auto; }\n.search > :is(input, div) { width: 100%; }\n.activeFilters { flex: 0 0 100%; min-width: 0; }\n.activeFilters:empty { display: none; }\n.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }\n.chip {\n display: inline-flex; align-items: center; gap: .4rem;\n min-width: 0; max-width: 100%;\n min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: 999px; padding: .25rem .65rem;\n background: var(--uzi-surface-2, var(--background));\n color: var(--uzi-text-primary, var(--foreground));\n cursor: pointer; font: inherit; font-size: .75rem;\n}\n.chip > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.chip > span:last-child { flex: none; }\n.chip:disabled { opacity: .5; cursor: not-allowed; }\n.chip:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }\n.popoverRoot { position: relative; display: inline-flex; }\n.panel {\n position: absolute; top: calc(100% + .5rem); right: 0;\n z-index: 40; width: min(28rem, calc(100vw - 2rem));\n max-height: min(70vh, 36rem); overflow: auto;\n box-sizing: border-box; padding: var(--uzi-space-3, .75rem);\n border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: var(--uzi-radius-md, .625rem);\n background: var(--uzi-surface-1, var(--panel));\n box-shadow: 0 12px 28px rgb(0 0 0 / .2);\n}\n@media (max-width: 40rem) {\n .panel { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }\n}\n"],"mappings":""}
|
package/dist/index60.cjs
CHANGED
|
@@ -3,27 +3,25 @@ var bar = "uzi-filter-workspace-module__bar__S-uyv";
|
|
|
3
3
|
var leading = "uzi-filter-workspace-module__leading__opUGQ";
|
|
4
4
|
var search = "uzi-filter-workspace-module__search__mJuTt";
|
|
5
5
|
var actions = "uzi-filter-workspace-module__actions__SC8a-";
|
|
6
|
+
var noLeading = "uzi-filter-workspace-module__noLeading__VXNl4";
|
|
7
|
+
var noActions = "uzi-filter-workspace-module__noActions__yCfYZ";
|
|
6
8
|
var activeFilters = "uzi-filter-workspace-module__activeFilters__yMnCN";
|
|
7
9
|
var chips = "uzi-filter-workspace-module__chips__9idNl";
|
|
8
10
|
var chip = "uzi-filter-workspace-module__chip__1pp-Q";
|
|
9
11
|
var popoverRoot = "uzi-filter-workspace-module__popoverRoot__XeZZ8";
|
|
10
12
|
var panel = "uzi-filter-workspace-module__panel__Z2JD4";
|
|
11
|
-
var noLeading = "uzi-filter-workspace-module__noLeading__VXNl4";
|
|
12
|
-
var noSearch = "uzi-filter-workspace-module__noSearch__1MGeC";
|
|
13
|
-
var noActions = "uzi-filter-workspace-module__noActions__yCfYZ";
|
|
14
13
|
var filter_workspace_module_default = {
|
|
15
14
|
bar,
|
|
16
15
|
leading,
|
|
17
16
|
search,
|
|
18
17
|
actions,
|
|
18
|
+
noLeading,
|
|
19
|
+
noActions,
|
|
19
20
|
activeFilters,
|
|
20
21
|
chips,
|
|
21
22
|
chip,
|
|
22
23
|
popoverRoot,
|
|
23
|
-
panel
|
|
24
|
-
noLeading,
|
|
25
|
-
noSearch,
|
|
26
|
-
noActions
|
|
24
|
+
panel
|
|
27
25
|
};
|
|
28
26
|
//#endregion
|
|
29
27
|
exports.actions = actions;
|
|
@@ -35,7 +33,6 @@ exports.default = filter_workspace_module_default;
|
|
|
35
33
|
exports.leading = leading;
|
|
36
34
|
exports.noActions = noActions;
|
|
37
35
|
exports.noLeading = noLeading;
|
|
38
|
-
exports.noSearch = noSearch;
|
|
39
36
|
exports.panel = panel;
|
|
40
37
|
exports.popoverRoot = popoverRoot;
|
|
41
38
|
exports.search = search;
|
package/dist/index60.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.cjs","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display:
|
|
1
|
+
{"version":3,"file":"index60.cjs","names":[],"sources":["../src/components/filter-workspace/filter-workspace.module.css"],"sourcesContent":[".bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n position: relative;\n}\n.leading, .search, .actions {\n display: flex;\n align-items: center;\n gap: var(--uzi-space-2, .5rem);\n min-width: 0;\n max-width: 100%;\n}\n/* Wrap according to the workspace's actual width, including narrow sidebars\n * and panels on wide screens. Compact controls keep their intrinsic width. */\n.leading, .actions { flex: 0 1 auto; flex-wrap: wrap; }\n.leading > *, .actions > * { min-width: 0; max-width: 100%; }\n.search { flex: 1 1 12rem; min-width: min(12rem, 100%); max-width: 24rem; }\n.bar.noLeading.noActions .search { max-width: none; }\n.search > * { min-width: 0; flex: 1 1 auto; }\n.search > :is(input, div) { width: 100%; }\n.activeFilters { flex: 0 0 100%; min-width: 0; }\n.activeFilters:empty { display: none; }\n.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }\n.chip {\n display: inline-flex; align-items: center; gap: .4rem;\n min-width: 0; max-width: 100%;\n min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: 999px; padding: .25rem .65rem;\n background: var(--uzi-surface-2, var(--background));\n color: var(--uzi-text-primary, var(--foreground));\n cursor: pointer; font: inherit; font-size: .75rem;\n}\n.chip > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.chip > span:last-child { flex: none; }\n.chip:disabled { opacity: .5; cursor: not-allowed; }\n.chip:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }\n.popoverRoot { position: relative; display: inline-flex; }\n.panel {\n position: absolute; top: calc(100% + .5rem); right: 0;\n z-index: 40; width: min(28rem, calc(100vw - 2rem));\n max-height: min(70vh, 36rem); overflow: auto;\n box-sizing: border-box; padding: var(--uzi-space-3, .75rem);\n border: 1px solid var(--uzi-border-subtle, var(--border));\n border-radius: var(--uzi-radius-md, .625rem);\n background: var(--uzi-surface-1, var(--panel));\n box-shadow: 0 12px 28px rgb(0 0 0 / .2);\n}\n@media (max-width: 40rem) {\n .panel { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }\n}\n"],"mappings":""}
|
package/dist/index60.js
CHANGED
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
//#region src/components/filter-workspace/FilterWorkspace.tsx
|
|
8
8
|
function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }) {
|
|
9
9
|
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
-
className: cx(filter_workspace_module_default.bar, !leading && filter_workspace_module_default.noLeading, !
|
|
10
|
+
className: cx(filter_workspace_module_default.bar, !leading && filter_workspace_module_default.noLeading, !actions && filter_workspace_module_default.noActions, className),
|
|
11
11
|
...rest,
|
|
12
12
|
children: [
|
|
13
13
|
leading && /* @__PURE__ */ jsx("div", {
|
package/dist/index60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.js","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search
|
|
1
|
+
{"version":3,"file":"index60.js","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search grows with available workspace width, bounded when other slots are present. */\n search?: React.ReactNode;\n /** Filter trigger, sort selector, and other trailing controls. */\n actions?: React.ReactNode;\n /** Optional active-filter chips rendered beneath the controls. */\n activeFilters?: React.ReactNode;\n};\n\nexport function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }: FilterBarProps) {\n return <div className={cx(styles.bar, !leading && styles.noLeading, !actions && styles.noActions, className)} {...rest}>\n {leading && <div className={styles.leading}>{leading}</div>}\n {search && <div className={styles.search}>{search}</div>}\n {actions && <div className={styles.actions}>{actions}</div>}\n {children}\n {activeFilters && <div className={styles.activeFilters}>{activeFilters}</div>}\n </div>;\n}\n\nexport type FilterChip = {\n id: string;\n label: string;\n disabled?: boolean;\n};\n\nexport type FilterChipsProps = {\n chips: readonly FilterChip[];\n onRemove: (id: string) => void;\n onClear?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\n/** Only active filters produce chips, with individual and bulk removal. */\nexport function FilterChips({ chips, onRemove, onClear, clearLabel = \"Clear all\", className }: FilterChipsProps) {\n if (chips.length === 0) return null;\n return <div className={cx(styles.chips, className)} aria-label=\"Active filters\">\n {chips.map(chip => <button type=\"button\" key={chip.id}\n className={styles.chip} disabled={chip.disabled}\n aria-label={`Remove ${chip.label} filter`}\n onClick={() => onRemove(chip.id)}>\n <span>{chip.label}</span><span aria-hidden=\"true\">×</span>\n </button>)}\n {onClear && <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>{clearLabel}</Button>}\n </div>;\n}\n\nexport type FilterPopoverProps = {\n children: React.ReactNode;\n label?: string;\n activeCount?: number;\n /** Use if a form contains invalid values; closing remains possible via Escape/outside click. */\n open?: boolean;\n onOpenChange?: (next: boolean) => void;\n className?: string;\n panelClassName?: string;\n};\n\n/** Anchored non-modal filter editor. Inputs stay mounted while open and do not affect layout. */\nexport function FilterPopover({\n children, label = \"Filters\", activeCount = 0, open, onOpenChange,\n className, panelClassName,\n}: FilterPopoverProps) {\n const [internalOpen, setInternalOpen] = React.useState(false);\n const isOpen = open ?? internalOpen;\n const rootRef = React.useRef<HTMLDivElement>(null);\n const panelRef = React.useRef<HTMLDivElement>(null);\n const panelId = React.useId();\n const [panelLeft, setPanelLeft] = React.useState<number | null>(null);\n\n const setOpen = React.useCallback((next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n }, [open, onOpenChange]);\n\n React.useLayoutEffect(() => {\n if (!isOpen) {\n setPanelLeft(null);\n return;\n }\n // Position the non-modal overlay inside the viewport, even when its\n // trigger sits at the far left or right of a wrapping toolbar.\n const position = () => {\n if (!rootRef.current || !panelRef.current) return;\n const root = rootRef.current.getBoundingClientRect();\n const panel = panelRef.current.getBoundingClientRect();\n const gutter = 16;\n const width = panel.width;\n const preferredLeft = root.right - width;\n const viewportLeft = Math.max(gutter, Math.min(preferredLeft, window.innerWidth - width - gutter));\n setPanelLeft(viewportLeft - root.left);\n };\n position();\n window.addEventListener(\"resize\", position);\n return () => window.removeEventListener(\"resize\", position);\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n // Open the editor at its first actionable field instead of leaving keyboard\n // focus on the trigger behind a non-modal dialog.\n panelRef.current?.querySelector<HTMLElement>(\n 'input:not(:disabled), select:not(:disabled), textarea:not(:disabled), button:not(:disabled), [tabindex=\"0\"]',\n )?.focus();\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n const onPointer = (event: PointerEvent) => {\n if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.stopPropagation();\n setOpen(false);\n rootRef.current?.querySelector<HTMLButtonElement>(\"button\")?.focus();\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [isOpen, setOpen]);\n\n return <div ref={rootRef} className={cx(styles.popoverRoot, className)}>\n <Button variant=\"outline\" size=\"sm\"\n aria-expanded={isOpen} aria-controls={panelId} aria-haspopup=\"dialog\"\n onClick={() => setOpen(!isOpen)}>\n {label}{activeCount > 0 ? ` (${activeCount})` : \"\"}\n </Button>\n {isOpen && <div ref={panelRef} id={panelId} role=\"dialog\" aria-label={label}\n aria-modal=\"false\" className={cx(styles.panel, panelClassName)}\n style={panelLeft === null ? undefined : { left: panelLeft, right: \"auto\" }}>\n {children}\n </div>}\n </div>;\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,UAAU,EAAE,SAAS,QAAQ,SAAS,eAAe,WAAW,UAAU,GAAG,QAAwB;CACnH,OAAO,qBAAC,OAAD;EAAK,WAAW,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oBAAoB,eAAe,SAAS;GACrD,SAAS,oBAAoB,WAAW,KAAK;EAC/C;CACF,GAAG,CAAC,QAAQ,OAAO,CAAC;CAEpB,OAAO,qBAAC,OAAD;EAAK,KAAK;EAAS,WAAW,GAAG,gCAAO,aAAa,SAAS;YAA9D,CACL,qBAAC,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAC7B,iBAAe;GAAQ,iBAAe;GAAS,iBAAc;GAC7D,eAAe,QAAQ,CAAC,MAAM;aAFhC,CAGG,OAAO,cAAc,IAAI,KAAK,YAAY,KAAK,EAC1C;MACP,UAAU,oBAAC,OAAD;GAAK,KAAK;GAAU,IAAI;GAAS,MAAK;GAAS,cAAY;GACpE,cAAW;GAAQ,WAAW,GAAG,gCAAO,OAAO,cAAc;GAC7D,OAAO,cAAc,OAAO,KAAA,IAAY;IAAE,MAAM;IAAW,OAAO;GAAO;GACxE;EACE,CAAA,CACF;;AACP"}
|
package/dist/index61.cjs
CHANGED
|
@@ -9,7 +9,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
9
9
|
//#region src/components/filter-workspace/FilterWorkspace.tsx
|
|
10
10
|
function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }) {
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
12
|
-
className: require_cx.cx(require_filter_workspace_module.default.bar, !leading && require_filter_workspace_module.default.noLeading, !
|
|
12
|
+
className: require_cx.cx(require_filter_workspace_module.default.bar, !leading && require_filter_workspace_module.default.noLeading, !actions && require_filter_workspace_module.default.noActions, className),
|
|
13
13
|
...rest,
|
|
14
14
|
children: [
|
|
15
15
|
leading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
package/dist/index61.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index61.cjs","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search
|
|
1
|
+
{"version":3,"file":"index61.cjs","names":[],"sources":["../src/components/filter-workspace/FilterWorkspace.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Button } from \"../button/Button\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./filter-workspace.module.css\";\n\n/** Layout-only composition: the application owns filter definitions and evaluation. */\nexport type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Sport/books/scope selectors. */\n leading?: React.ReactNode;\n /** Search grows with available workspace width, bounded when other slots are present. */\n search?: React.ReactNode;\n /** Filter trigger, sort selector, and other trailing controls. */\n actions?: React.ReactNode;\n /** Optional active-filter chips rendered beneath the controls. */\n activeFilters?: React.ReactNode;\n};\n\nexport function FilterBar({ leading, search, actions, activeFilters, className, children, ...rest }: FilterBarProps) {\n return <div className={cx(styles.bar, !leading && styles.noLeading, !actions && styles.noActions, className)} {...rest}>\n {leading && <div className={styles.leading}>{leading}</div>}\n {search && <div className={styles.search}>{search}</div>}\n {actions && <div className={styles.actions}>{actions}</div>}\n {children}\n {activeFilters && <div className={styles.activeFilters}>{activeFilters}</div>}\n </div>;\n}\n\nexport type FilterChip = {\n id: string;\n label: string;\n disabled?: boolean;\n};\n\nexport type FilterChipsProps = {\n chips: readonly FilterChip[];\n onRemove: (id: string) => void;\n onClear?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\n/** Only active filters produce chips, with individual and bulk removal. */\nexport function FilterChips({ chips, onRemove, onClear, clearLabel = \"Clear all\", className }: FilterChipsProps) {\n if (chips.length === 0) return null;\n return <div className={cx(styles.chips, className)} aria-label=\"Active filters\">\n {chips.map(chip => <button type=\"button\" key={chip.id}\n className={styles.chip} disabled={chip.disabled}\n aria-label={`Remove ${chip.label} filter`}\n onClick={() => onRemove(chip.id)}>\n <span>{chip.label}</span><span aria-hidden=\"true\">×</span>\n </button>)}\n {onClear && <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>{clearLabel}</Button>}\n </div>;\n}\n\nexport type FilterPopoverProps = {\n children: React.ReactNode;\n label?: string;\n activeCount?: number;\n /** Use if a form contains invalid values; closing remains possible via Escape/outside click. */\n open?: boolean;\n onOpenChange?: (next: boolean) => void;\n className?: string;\n panelClassName?: string;\n};\n\n/** Anchored non-modal filter editor. Inputs stay mounted while open and do not affect layout. */\nexport function FilterPopover({\n children, label = \"Filters\", activeCount = 0, open, onOpenChange,\n className, panelClassName,\n}: FilterPopoverProps) {\n const [internalOpen, setInternalOpen] = React.useState(false);\n const isOpen = open ?? internalOpen;\n const rootRef = React.useRef<HTMLDivElement>(null);\n const panelRef = React.useRef<HTMLDivElement>(null);\n const panelId = React.useId();\n const [panelLeft, setPanelLeft] = React.useState<number | null>(null);\n\n const setOpen = React.useCallback((next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n }, [open, onOpenChange]);\n\n React.useLayoutEffect(() => {\n if (!isOpen) {\n setPanelLeft(null);\n return;\n }\n // Position the non-modal overlay inside the viewport, even when its\n // trigger sits at the far left or right of a wrapping toolbar.\n const position = () => {\n if (!rootRef.current || !panelRef.current) return;\n const root = rootRef.current.getBoundingClientRect();\n const panel = panelRef.current.getBoundingClientRect();\n const gutter = 16;\n const width = panel.width;\n const preferredLeft = root.right - width;\n const viewportLeft = Math.max(gutter, Math.min(preferredLeft, window.innerWidth - width - gutter));\n setPanelLeft(viewportLeft - root.left);\n };\n position();\n window.addEventListener(\"resize\", position);\n return () => window.removeEventListener(\"resize\", position);\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n // Open the editor at its first actionable field instead of leaving keyboard\n // focus on the trigger behind a non-modal dialog.\n panelRef.current?.querySelector<HTMLElement>(\n 'input:not(:disabled), select:not(:disabled), textarea:not(:disabled), button:not(:disabled), [tabindex=\"0\"]',\n )?.focus();\n }, [isOpen]);\n\n React.useEffect(() => {\n if (!isOpen) return;\n const onPointer = (event: PointerEvent) => {\n if (event.target instanceof Node && !rootRef.current?.contains(event.target)) setOpen(false);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return;\n event.stopPropagation();\n setOpen(false);\n rootRef.current?.querySelector<HTMLButtonElement>(\"button\")?.focus();\n };\n document.addEventListener(\"pointerdown\", onPointer);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"pointerdown\", onPointer);\n document.removeEventListener(\"keydown\", onKey);\n };\n }, [isOpen, setOpen]);\n\n return <div ref={rootRef} className={cx(styles.popoverRoot, className)}>\n <Button variant=\"outline\" size=\"sm\"\n aria-expanded={isOpen} aria-controls={panelId} aria-haspopup=\"dialog\"\n onClick={() => setOpen(!isOpen)}>\n {label}{activeCount > 0 ? ` (${activeCount})` : \"\"}\n </Button>\n {isOpen && <div ref={panelRef} id={panelId} role=\"dialog\" aria-label={label}\n aria-modal=\"false\" className={cx(styles.panel, panelClassName)}\n style={panelLeft === null ? undefined : { left: panelLeft, right: \"auto\" }}>\n {children}\n </div>}\n </div>;\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,UAAU,EAAE,SAAS,QAAQ,SAAS,eAAe,WAAW,UAAU,GAAG,QAAwB;CACnH,OAAO,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAW,WAAA,GAAG,gCAAA,QAAO,KAAK,CAAC,WAAW,gCAAA,QAAO,WAAW,CAAC,WAAW,gCAAA,QAAO,WAAW,SAAS;EAAG,GAAI;YAA3G;GACJ,WAAW,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,gCAAA,QAAO;cAAU;GAAa,CAAA;GACzD,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,gCAAA,QAA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a;GACX,SAAS,oBAAoB,eAAe,SAAS;GACrD,SAAS,oBAAoB,WAAW,KAAK;EAC/C;CACF,GAAG,CAAC,QAAQ,OAAO,CAAC;CAEpB,OAAO,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,KAAK;EAAS,WAAW,WAAA,GAAG,gCAAA,QAAO,aAAa,SAAS;YAA9D,CACL,iBAAA,GAAA,kBAAA,KAAA,CAAC,eAAA,QAAD;GAAQ,SAAQ;GAAU,MAAK;GAC7B,iBAAe;GAAQ,iBAAe;GAAS,iBAAc;GAC7D,eAAe,QAAQ,CAAC,MAAM;aAFhC,CAGG,OAAO,cAAc,IAAI,KAAK,YAAY,KAAK,EAC1C;MACP,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,KAAK;GAAU,IAAI;GAAS,MAAK;GAAS,cAAY;GACpE,cAAW;GAAQ,WAAW,WAAA,GAAG,gCAAA,QAAO,OAAO,cAAc;GAC7D,OAAO,cAAc,OAAO,KAAA,IAAY;IAAE,MAAM;IAAW,OAAO;GAAO;GACxE;EACE,CAAA,CACF;;AACP"}
|
package/dist/style.css
CHANGED
|
@@ -2499,8 +2499,8 @@ button.uzi-sidebar-nav-module__item__uMHkJ {
|
|
|
2499
2499
|
.uzi-toolbar-module__controls__EOiOk { flex: 1 1 auto; }
|
|
2500
2500
|
}
|
|
2501
2501
|
.uzi-filter-workspace-module__bar__S-uyv {
|
|
2502
|
-
display:
|
|
2503
|
-
|
|
2502
|
+
display: flex;
|
|
2503
|
+
flex-wrap: wrap;
|
|
2504
2504
|
align-items: center;
|
|
2505
2505
|
gap: var(--uzi-space-2, .5rem);
|
|
2506
2506
|
min-width: 0;
|
|
@@ -2511,24 +2511,30 @@ button.uzi-sidebar-nav-module__item__uMHkJ {
|
|
|
2511
2511
|
align-items: center;
|
|
2512
2512
|
gap: var(--uzi-space-2, .5rem);
|
|
2513
2513
|
min-width: 0;
|
|
2514
|
+
max-width: 100%;
|
|
2514
2515
|
}
|
|
2515
|
-
|
|
2516
|
+
/* Wrap according to the workspace's actual width, including narrow sidebars
|
|
2517
|
+
* and panels on wide screens. Compact controls keep their intrinsic width. */
|
|
2518
|
+
.uzi-filter-workspace-module__leading__opUGQ, .uzi-filter-workspace-module__actions__SC8a- { flex: 0 1 auto; flex-wrap: wrap; }
|
|
2519
|
+
.uzi-filter-workspace-module__leading__opUGQ > *, .uzi-filter-workspace-module__actions__SC8a- > * { min-width: 0; max-width: 100%; }
|
|
2520
|
+
.uzi-filter-workspace-module__search__mJuTt { flex: 1 1 12rem; min-width: min(12rem, 100%); max-width: 24rem; }
|
|
2521
|
+
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noLeading__VXNl4.uzi-filter-workspace-module__noActions__yCfYZ .uzi-filter-workspace-module__search__mJuTt { max-width: none; }
|
|
2516
2522
|
.uzi-filter-workspace-module__search__mJuTt > * { min-width: 0; flex: 1 1 auto; }
|
|
2517
|
-
/* Let search inputs and autocomplete wrappers consume the available column. */
|
|
2518
2523
|
.uzi-filter-workspace-module__search__mJuTt > :is(input, div) { width: 100%; }
|
|
2519
|
-
.uzi-filter-workspace-
|
|
2520
|
-
.uzi-filter-workspace-
|
|
2521
|
-
.uzi-filter-workspace-module__actions__SC8a- { justify-content: flex-end; flex-wrap: wrap; }
|
|
2522
|
-
.uzi-filter-workspace-module__activeFilters__yMnCN { grid-column: 1 / -1; min-width: 0; }
|
|
2524
|
+
.uzi-filter-workspace-module__activeFilters__yMnCN { flex: 0 0 100%; min-width: 0; }
|
|
2525
|
+
.uzi-filter-workspace-module__activeFilters__yMnCN:empty { display: none; }
|
|
2523
2526
|
.uzi-filter-workspace-module__chips__9idNl { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
|
|
2524
2527
|
.uzi-filter-workspace-module__chip__1pp-Q {
|
|
2525
2528
|
display: inline-flex; align-items: center; gap: .4rem;
|
|
2529
|
+
min-width: 0; max-width: 100%;
|
|
2526
2530
|
min-height: 2rem; border: 1px solid var(--uzi-border-subtle, var(--border));
|
|
2527
2531
|
border-radius: 999px; padding: .25rem .65rem;
|
|
2528
2532
|
background: var(--uzi-surface-2, var(--background));
|
|
2529
2533
|
color: var(--uzi-text-primary, var(--foreground));
|
|
2530
2534
|
cursor: pointer; font: inherit; font-size: .75rem;
|
|
2531
2535
|
}
|
|
2536
|
+
.uzi-filter-workspace-module__chip__1pp-Q > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2537
|
+
.uzi-filter-workspace-module__chip__1pp-Q > span:last-child { flex: none; }
|
|
2532
2538
|
.uzi-filter-workspace-module__chip__1pp-Q:disabled { opacity: .5; cursor: not-allowed; }
|
|
2533
2539
|
.uzi-filter-workspace-module__chip__1pp-Q:focus-visible { outline: 2px solid var(--uzi-accent, var(--primary)); outline-offset: 2px; }
|
|
2534
2540
|
.uzi-filter-workspace-module__popoverRoot__XeZZ8 { position: relative; display: inline-flex; }
|
|
@@ -2542,33 +2548,9 @@ button.uzi-sidebar-nav-module__item__uMHkJ {
|
|
|
2542
2548
|
background: var(--uzi-surface-1, var(--panel));
|
|
2543
2549
|
box-shadow: 0 12px 28px rgb(0 0 0 / .2);
|
|
2544
2550
|
}
|
|
2545
|
-
@media (max-width: 64rem) {
|
|
2546
|
-
.uzi-filter-workspace-module__bar__S-uyv { grid-template-columns: minmax(0, 1fr) max-content; }
|
|
2547
|
-
.uzi-filter-workspace-module__leading__opUGQ { grid-column: 1; }
|
|
2548
|
-
.uzi-filter-workspace-module__actions__SC8a- { flex-wrap: wrap; }
|
|
2549
|
-
.uzi-filter-workspace-module__search__mJuTt { grid-column: 1; grid-row: 2; }
|
|
2550
|
-
.uzi-filter-workspace-module__actions__SC8a- { grid-column: 2; grid-row: 2; }
|
|
2551
|
-
}
|
|
2552
2551
|
@media (max-width: 40rem) {
|
|
2553
|
-
.uzi-filter-workspace-module__bar__S-uyv { grid-template-columns: minmax(0, 1fr); }
|
|
2554
|
-
.uzi-filter-workspace-module__leading__opUGQ, .uzi-filter-workspace-module__search__mJuTt, .uzi-filter-workspace-module__actions__SC8a- { grid-column: 1; grid-row: auto; }
|
|
2555
|
-
.uzi-filter-workspace-module__actions__SC8a- { justify-content: flex-start; flex-wrap: wrap; }
|
|
2556
2552
|
.uzi-filter-workspace-module__panel__Z2JD4 { left: 0; right: auto; width: min(28rem, calc(100vw - 2rem)); }
|
|
2557
2553
|
}
|
|
2558
|
-
|
|
2559
|
-
/* A toolbar may omit any slot; unused grid columns must not reserve space. */
|
|
2560
|
-
@media (min-width: 64.001rem) {
|
|
2561
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noLeading__VXNl4 { grid-template-columns: minmax(0, 1fr) max-content; }
|
|
2562
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noSearch__1MGeC { grid-template-columns: minmax(0, 1fr) max-content; }
|
|
2563
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noLeading__VXNl4.uzi-filter-workspace-module__noActions__yCfYZ,
|
|
2564
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noSearch__1MGeC.uzi-filter-workspace-module__noActions__yCfYZ { grid-template-columns: minmax(0, 1fr); }
|
|
2565
|
-
}
|
|
2566
|
-
@media (min-width: 40.001rem) and (max-width: 64rem) {
|
|
2567
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noLeading__VXNl4 .uzi-filter-workspace-module__search__mJuTt { grid-column: 1; grid-row: 1; }
|
|
2568
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noLeading__VXNl4 .uzi-filter-workspace-module__actions__SC8a- { grid-column: 2; grid-row: 1; }
|
|
2569
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noSearch__1MGeC .uzi-filter-workspace-module__leading__opUGQ { grid-column: 1; grid-row: 1; }
|
|
2570
|
-
.uzi-filter-workspace-module__bar__S-uyv.uzi-filter-workspace-module__noSearch__1MGeC .uzi-filter-workspace-module__actions__SC8a- { grid-column: 2; grid-row: 1; }
|
|
2571
|
-
}
|
|
2572
2554
|
.uzi-skeleton-module__skeleton__fula5 {
|
|
2573
2555
|
background: color-mix(in srgb, var(--muted-foreground) 14%, var(--background));
|
|
2574
2556
|
animation: uzi-skeleton-module__skeleton-pulse__Yp45W 1.6s ease-in-out infinite;
|