@getsoren/design-system 4.49.0 → 4.51.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/dist/main.cjs +43 -43
- package/dist/main.js +3410 -3390
- package/dist/src/components/DataDisplay/PlanningTimeline/utils/timeScale.d.ts +5 -0
- package/dist/src/components/Inputs/ChipFilter/ChipFilter.d.ts +16 -1
- package/dist/src/components/Navigation/NavigationMenu/NavigationMenu.d.ts +4 -0
- package/package.json +1 -1
|
@@ -37,6 +37,11 @@ export interface TimeScale {
|
|
|
37
37
|
}
|
|
38
38
|
/** Local-midnight start of the given day. */
|
|
39
39
|
export declare const startOfDay: (date: Date | number) => Date;
|
|
40
|
+
/**
|
|
41
|
+
* Parse a date input, reading date-only strings ("2026-07-01") as LOCAL midnight — `new Date()`
|
|
42
|
+
* would read them as UTC midnight, which lands on the previous local day west of UTC.
|
|
43
|
+
*/
|
|
44
|
+
export declare const parseLocalDate: (value: string | number | Date) => Date;
|
|
40
45
|
/** Last millisecond of the given day (23:59:59.999, local time). */
|
|
41
46
|
export declare const endOfDay: (date: Date | number) => Date;
|
|
42
47
|
export declare const startOfMonth: (date: Date | number) => Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChipProps } from '@mui/material';
|
|
1
|
+
import { ChipProps, MenuProps } from '@mui/material';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export type OptionValue = string | number;
|
|
4
4
|
type Option<T = OptionValue> = {
|
|
@@ -51,6 +51,21 @@ interface ChipFilterBaseProps<T = OptionValue> {
|
|
|
51
51
|
* When false (default), changes require clicking "Apply" to be applied.
|
|
52
52
|
*/
|
|
53
53
|
applyOnSelect?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Hides the menu header row (the labelMenu title and its close button).
|
|
56
|
+
* Useful when the chip itself is the only expected way to toggle the menu.
|
|
57
|
+
*/
|
|
58
|
+
hideMenuHeader?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Compact menu rendering: dense menu items and smaller option labels,
|
|
61
|
+
* for tight containers (e.g. a menu nested inside a popover).
|
|
62
|
+
*/
|
|
63
|
+
denseMenu?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Props forwarded to the underlying MUI Menu (e.g. elevation, sx, slotProps).
|
|
66
|
+
* Passing slotProps replaces the default paper minWidth.
|
|
67
|
+
*/
|
|
68
|
+
menuProps?: Partial<Omit<MenuProps, "open" | "anchorEl" | "onClose">>;
|
|
54
69
|
}
|
|
55
70
|
export interface ChipFilterToggleProps extends ChipFilterBaseProps<boolean> {
|
|
56
71
|
/**
|
|
@@ -5,6 +5,10 @@ export type ObjectNavigationItem = {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
count?: number;
|
|
7
7
|
countColor?: ChipProps["color"];
|
|
8
|
+
/** Small highlight chip rendered next to the label (e.g. "New"). Hidden when the sidebar is collapsed to the icon rail. */
|
|
9
|
+
tag?: string;
|
|
10
|
+
/** Color of the `tag` chip. @default "info" */
|
|
11
|
+
tagColor?: ChipProps["color"];
|
|
8
12
|
icon?: ReactNode;
|
|
9
13
|
active?: boolean;
|
|
10
14
|
state?: any;
|