@12-apps/ui 1.21.1 → 1.23.0
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/package.json +1 -1
- package/src/components/data-display/Chart/Chart.md +22 -0
- package/src/components/data-display/Chart/Chart.types.ts +26 -0
- package/src/components/data-display/Chart/chart-axis.ts +118 -0
- package/src/components/data-display/Chart/chart-context.ts +75 -0
- package/src/components/data-display/Chart/chart-internals.ts +32 -8
- package/src/components/data-display/Chart/chart-renderers.tsx +58 -66
- package/src/components/data-display/Chart/chart-spec.ts +3 -0
- package/src/components/data-display/DataViews/RESPONSIVE-BEHAVIOUR.md +37 -3
- package/src/components/data-display/DataViews/data-views-day-input.tsx +22 -3
- package/src/components/data-display/DataViews/data-views-display-panel.tsx +4 -2
- package/src/components/data-display/DataViews/data-views-grid-parts.tsx +13 -1
- package/src/components/data-display/DataViews/data-views-more-fields.tsx +16 -23
- package/src/components/data-display/DataViews/data-views-more-filters.tsx +7 -2
- package/src/components/data-display/DataViews/data-views-number-input.tsx +14 -4
- package/src/components/data-display/DataViews/data-views-overflow-costs.ts +87 -16
- package/src/components/data-display/DataViews/data-views-overflow.ts +87 -26
- package/src/components/data-display/Table/Table.styles.ts +22 -1
- package/src/components/form/Input/Input.tsx +10 -0
- package/src/components/layout/Drawer/Drawer.md +11 -4
- package/src/components/layout/Drawer/Drawer.tsx +11 -2
- package/src/components/layout/Drawer/Drawer.types.ts +20 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSObject } from '@mui/material/styles';
|
|
1
2
|
import type { HTMLAttributes,ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
export type DrawerVariant = 'left' | 'right' | 'top' | 'bottom' | 'glass';
|
|
@@ -16,6 +17,16 @@ export interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'child
|
|
|
16
17
|
backdrop?: boolean;
|
|
17
18
|
hideBackdrop?: boolean;
|
|
18
19
|
keepMounted?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Extra styles for the sliding surface itself (MUI's drawer paper), merged
|
|
22
|
+
* after the width/height the drawer derives from its anchor.
|
|
23
|
+
*
|
|
24
|
+
* Opt-in and additive: omit it and the drawer renders exactly as it always
|
|
25
|
+
* has. It exists because a temporary drawer PORTALS its surface, so a
|
|
26
|
+
* consumer cannot reach it with a wrapper's descendant selector — a bottom
|
|
27
|
+
* sheet that wants rounded top corners has no other way to ask.
|
|
28
|
+
*/
|
|
29
|
+
paperSx?: CSSObject;
|
|
19
30
|
className?: string;
|
|
20
31
|
dataTestId?: string;
|
|
21
32
|
}
|
|
@@ -24,6 +35,15 @@ export interface DrawerHeaderProps {
|
|
|
24
35
|
children: ReactNode;
|
|
25
36
|
onClose?: () => void;
|
|
26
37
|
showCloseButton?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Accessible name for the close button. Defaults to "Close drawer".
|
|
40
|
+
*
|
|
41
|
+
* A drawer that is not a drawer to its user needs to say what it closes:
|
|
42
|
+
* the report builder's block panel is a docked side panel, and "Fechar
|
|
43
|
+
* painel" is what its spec asks to hear (FUT-755). Left unset the wording is
|
|
44
|
+
* unchanged, so existing consumers asserting on the default keep passing.
|
|
45
|
+
*/
|
|
46
|
+
closeLabel?: string;
|
|
27
47
|
dataTestId?: string;
|
|
28
48
|
}
|
|
29
49
|
|