@upbound/monarch-blocks 0.7.0 → 0.7.2
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/cel-filter-bar.js +2 -31
- package/dist/cel-filter-bar.js.map +1 -1
- package/dist/chart.js +1 -31
- package/dist/chart.js.map +1 -1
- package/dist/chat-interface.js +1 -31
- package/dist/chat-interface.js.map +1 -1
- package/dist/code-block.js +1 -31
- package/dist/code-block.js.map +1 -1
- package/dist/data-table.d.ts +10 -1
- package/dist/data-table.js +7 -34
- package/dist/data-table.js.map +1 -1
- package/dist/filter-bar.js +2 -31
- package/dist/filter-bar.js.map +1 -1
- package/dist/floating-widget.js +1 -31
- package/dist/floating-widget.js.map +1 -1
- package/dist/graph.js +2 -31
- package/dist/graph.js.map +1 -1
- package/dist/index.js +7 -34
- package/dist/index.js.map +1 -1
- package/dist/page-header.js +1 -31
- package/dist/page-header.js.map +1 -1
- package/dist/relative-time.js +1 -31
- package/dist/relative-time.js.map +1 -1
- package/dist/section-header.js +1 -31
- package/dist/section-header.js.map +1 -1
- package/dist/section-nav.js +1 -31
- package/dist/section-nav.js.map +1 -1
- package/dist/timeline.js +1 -31
- package/dist/timeline.js.map +1 -1
- package/package.json +3 -5
package/dist/cel-filter-bar.js
CHANGED
|
@@ -35,37 +35,7 @@ import * as React from "react";
|
|
|
35
35
|
import { Icon } from "@upbound/monarch-core";
|
|
36
36
|
|
|
37
37
|
// src/lib/utils.ts
|
|
38
|
-
import {
|
|
39
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
40
|
-
var twMerge = extendTailwindMerge({
|
|
41
|
-
extend: {
|
|
42
|
-
classGroups: {
|
|
43
|
-
"font-size": [
|
|
44
|
-
{
|
|
45
|
-
text: [
|
|
46
|
-
"display-hero",
|
|
47
|
-
"display-kpi-sm",
|
|
48
|
-
"display-kpi",
|
|
49
|
-
"display-kpi-lg",
|
|
50
|
-
"display-feature",
|
|
51
|
-
"h1",
|
|
52
|
-
"h2",
|
|
53
|
-
"h3",
|
|
54
|
-
"h4",
|
|
55
|
-
"body-lg",
|
|
56
|
-
"body",
|
|
57
|
-
"body-sm",
|
|
58
|
-
"caption",
|
|
59
|
-
"eyebrow"
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
function cn(...inputs) {
|
|
67
|
-
return twMerge(clsx(inputs));
|
|
68
|
-
}
|
|
38
|
+
import { cn } from "@upbound/monarch-core/utils";
|
|
69
39
|
function sortBy(items, getKey) {
|
|
70
40
|
return [...items].sort((a, b) => getKey(a).localeCompare(getKey(b)));
|
|
71
41
|
}
|
|
@@ -1291,6 +1261,7 @@ function CelAddFilterButton({
|
|
|
1291
1261
|
items: groups,
|
|
1292
1262
|
itemToStringValue: (item) => item.title,
|
|
1293
1263
|
itemToStringLabel: (item) => item.title,
|
|
1264
|
+
value: null,
|
|
1294
1265
|
onValueChange: (column) => {
|
|
1295
1266
|
if (column) onSelect(column.id);
|
|
1296
1267
|
},
|