@alexgorbatchev/shadcn 0.0.51 → 0.0.52
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.
|
@@ -4090,7 +4090,7 @@ function FilterBar2({
|
|
|
4090
4090
|
"aria-label": filter.label,
|
|
4091
4091
|
value: value[filter.id] ?? "",
|
|
4092
4092
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4093
|
-
options: [{ value: "", label: filter.allLabel }, ...filter.options]
|
|
4093
|
+
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4094
4094
|
}, filter.id)),
|
|
4095
4095
|
/* @__PURE__ */ jsx43(Button2, {
|
|
4096
4096
|
type: "button",
|
|
@@ -4,8 +4,8 @@ import type { IDensityProps } from "../density/types.js";
|
|
|
4
4
|
type FilterDefinition = {
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
7
|
-
/** Text of the choice that clears this filter, such as "All statuses" or "Any time". */
|
|
8
|
-
allLabel
|
|
7
|
+
/** Text of the choice that clears this filter, such as "All statuses" or "Any time". Defaults to "All {label}". */
|
|
8
|
+
allLabel?: string;
|
|
9
9
|
options: readonly ILabelValue[];
|
|
10
10
|
};
|
|
11
11
|
type FilterBarProps = IDensityProps & {
|
package/dist/index.js
CHANGED
package/dist/prototype.js
CHANGED
|
@@ -2051,7 +2051,7 @@ var program = new Command;
|
|
|
2051
2051
|
// package.json
|
|
2052
2052
|
var package_default = {
|
|
2053
2053
|
name: "@alexgorbatchev/shadcn",
|
|
2054
|
-
version: "0.0.
|
|
2054
|
+
version: "0.0.52",
|
|
2055
2055
|
description: "Sharp, monospace React components with compact and comfortable densities.",
|
|
2056
2056
|
license: "MIT",
|
|
2057
2057
|
repository: {
|