feat: adopt Mantine 9.6 components (#6758)
This commit is contained in:
1 parent
b3aa6155cc
commit
35155b18b9
28 files changed
+1192
-567
No files matched your search
@@ -20,7 +20,7 @@ const publicCatalogPath = resolve(repositoryRoot, "apps/docs/static/custom-widge
|
||||
|
||||
// Keep a reviewed ceiling close to the generated artifact so accidental metadata
|
||||
// duplication must receive explicit review.
|
||||
const MAX_CATALOG_BYTES = 800 * 1024;
|
||||
const MAX_CATALOG_BYTES = 850 * 1024;
|
||||
|
||||
describe("Custom JSX authoring catalog", () => {
|
||||
test("is versioned against the installed authoring surface", async () => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
getCustomJsxBindingType,
|
||||
} from "../core/component-registry";
|
||||
|
||||
const mantineCore941ComponentExports = [
|
||||
const mantineCore960ComponentExports = [
|
||||
"RemoveScroll",
|
||||
"Collapse",
|
||||
"ScrollArea",
|
||||
@@ -25,6 +25,7 @@ const mantineCore941ComponentExports = [
|
||||
"Flex",
|
||||
"FloatingIndicator",
|
||||
"Accordion",
|
||||
"ActionBar",
|
||||
"Affix",
|
||||
"Alert",
|
||||
"Anchor",
|
||||
@@ -40,6 +41,7 @@ const mantineCore941ComponentExports = [
|
||||
"Burger",
|
||||
"Button",
|
||||
"Card",
|
||||
"Cascader",
|
||||
"Center",
|
||||
"Checkbox",
|
||||
"Chip",
|
||||
@@ -124,7 +126,7 @@ const mantineCore941ComponentExports = [
|
||||
"Typography",
|
||||
] as const;
|
||||
|
||||
const mantineCharts941ComponentExports = [
|
||||
const mantineCharts960ComponentExports = [
|
||||
"ChartTooltip",
|
||||
"ChartLegend",
|
||||
"AreaChart",
|
||||
@@ -143,9 +145,16 @@ const mantineCharts941ComponentExports = [
|
||||
"BarsList",
|
||||
"Treemap",
|
||||
"SankeyChart",
|
||||
"BulletChart",
|
||||
"CandlestickChart",
|
||||
"ChartBrush",
|
||||
"GaugeChart",
|
||||
"MatrixChart",
|
||||
"SunburstChart",
|
||||
"WaffleChart",
|
||||
] as const;
|
||||
|
||||
const mantineDates941ComponentExports = [
|
||||
const mantineDates960ComponentExports = [
|
||||
"DatesProvider",
|
||||
"HiddenDatesInput",
|
||||
"TimeInput",
|
||||
@@ -195,6 +204,9 @@ describe("customJsxComponentRegistry", () => {
|
||||
["TextInput", "wrapped"],
|
||||
["ModalRoot", "denied"],
|
||||
["AppShellMain", "denied"],
|
||||
["ActionBar", "denied"],
|
||||
["ActionBar.Divider", "denied"],
|
||||
["GaugeChart", "wrapped"],
|
||||
] as const)("classifies %s as %s", (name, safety) => {
|
||||
expect(customJsxComponentByName.get(name)?.safety).toBe(safety);
|
||||
});
|
||||
@@ -227,10 +239,10 @@ describe("customJsxComponentRegistry", () => {
|
||||
});
|
||||
|
||||
test.each([
|
||||
...mantineCore941ComponentExports,
|
||||
...mantineCharts941ComponentExports,
|
||||
...mantineDates941ComponentExports,
|
||||
])("classifies the Mantine 9.4.1 export %s", (name) => {
|
||||
...mantineCore960ComponentExports,
|
||||
...mantineCharts960ComponentExports,
|
||||
...mantineDates960ComponentExports,
|
||||
])("classifies the Mantine 9.6.0 export %s", (name) => {
|
||||
expect(customJsxComponentByName.has(name), `${name} is not classified`).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user