@getsoren/design-system 4.54.0 → 4.55.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 +56 -56
- package/dist/main.js +7571 -7362
- package/dist/src/components/DataDisplay/Icons/ArrowBackIosRoundedIcon.d.ts +8 -0
- package/dist/src/components/DataDisplay/Icons/ExpandIcon.d.ts +8 -0
- package/dist/src/components/Layout/CollapsingHeader/CollapsingHeader.d.ts +8 -0
- package/dist/src/components/Layout/CollapsingHeader/types.d.ts +39 -0
- package/dist/src/locales/en.d.ts +4 -0
- package/dist/src/locales/fr.d.ts +4 -0
- package/dist/src/main.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SvgIconProps, SxProps } from '@mui/material';
|
|
2
|
+
interface ArrowBackIosRoundedIconProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
sx?: SxProps;
|
|
5
|
+
fontSize?: SvgIconProps["fontSize"];
|
|
6
|
+
}
|
|
7
|
+
declare const ArrowBackIosRoundedIcon: ({ sx, fontSize, color }: ArrowBackIosRoundedIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ArrowBackIosRoundedIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SvgIconProps, SxProps } from '@mui/material';
|
|
2
|
+
interface ExpandIconProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
sx?: SxProps;
|
|
5
|
+
fontSize?: SvgIconProps["fontSize"];
|
|
6
|
+
}
|
|
7
|
+
declare const ExpandIcon: ({ sx, fontSize, color }: ExpandIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ExpandIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CollapsingHeaderProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Collapsing header of an entity preview panel or full page, designed for the `Backoffice` layout.
|
|
4
|
+
* Preview: "open full page" link + close button above the title. Full page: back link above the
|
|
5
|
+
* title, compact actions in the sticky bar.
|
|
6
|
+
*/
|
|
7
|
+
declare const CollapsingHeader: ({ compactTitle, fullTitle, actions, compactActions, variant, onClose, onOpenFullPage, backLabel, onBack, labels, maxWidth, }: CollapsingHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CollapsingHeader;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ContainerProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Built-in UI strings; each falls back to the design-system locale (en/fr) when not overridden.
|
|
5
|
+
*/
|
|
6
|
+
export interface CollapsingHeaderLabels {
|
|
7
|
+
close: string;
|
|
8
|
+
escape: string;
|
|
9
|
+
openFullPage: string;
|
|
10
|
+
openFullScreen: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CollapsingHeaderProps {
|
|
13
|
+
/** One-line title of the compact sticky bar (small thumbnail + name + chips). */
|
|
14
|
+
compactTitle: ReactNode;
|
|
15
|
+
/** Large title block of the full header (thumbnail + name + chips row). */
|
|
16
|
+
fullTitle: ReactNode;
|
|
17
|
+
/** Rendered below the full title (e.g. action buttons). */
|
|
18
|
+
actions?: ReactNode;
|
|
19
|
+
/** Right side of the compact sticky bar — full-page mode only, hidden on mobile. */
|
|
20
|
+
compactActions?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* "preview": panel layout with the open-full-page link and close button above the title.
|
|
23
|
+
* "fullPage": page layout with the back link above the title and compact actions in the sticky bar.
|
|
24
|
+
* @default "preview"
|
|
25
|
+
*/
|
|
26
|
+
variant?: "preview" | "fullPage";
|
|
27
|
+
/** Preview only: close the panel. */
|
|
28
|
+
onClose?: () => void;
|
|
29
|
+
/** Preview only: open the entity full page. */
|
|
30
|
+
onOpenFullPage?: () => void;
|
|
31
|
+
/** Full page only: back link label. */
|
|
32
|
+
backLabel?: string;
|
|
33
|
+
/** Full page only: back link handler. */
|
|
34
|
+
onBack?: () => void;
|
|
35
|
+
/** Full page only: width of the header container — a breakpoint, or a px value. @default "lg" */
|
|
36
|
+
maxWidth?: ContainerProps["maxWidth"] | number;
|
|
37
|
+
/** Override the built-in labels (e.g. to plug the host app's i18n). */
|
|
38
|
+
labels?: Partial<CollapsingHeaderLabels>;
|
|
39
|
+
}
|
package/dist/src/locales/en.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
apply: string;
|
|
3
3
|
clickToUpload: string;
|
|
4
|
+
close: string;
|
|
4
5
|
day: string;
|
|
6
|
+
escape: string;
|
|
5
7
|
files: string;
|
|
6
8
|
month: string;
|
|
7
9
|
noResult: string;
|
|
10
|
+
openFullPage: string;
|
|
11
|
+
openFullScreen: string;
|
|
8
12
|
reset: string;
|
|
9
13
|
selectAll: string;
|
|
10
14
|
today: string;
|
package/dist/src/locales/fr.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
apply: string;
|
|
3
3
|
clickToUpload: string;
|
|
4
|
+
close: string;
|
|
4
5
|
day: string;
|
|
6
|
+
escape: string;
|
|
5
7
|
files: string;
|
|
6
8
|
month: string;
|
|
7
9
|
noResult: string;
|
|
10
|
+
openFullPage: string;
|
|
11
|
+
openFullScreen: string;
|
|
8
12
|
reset: string;
|
|
9
13
|
selectAll: string;
|
|
10
14
|
today: string;
|
package/dist/src/main.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export * from './components/Inputs/TextFieldPassword';
|
|
|
67
67
|
export { default as TextFieldPassword } from './components/Inputs/TextFieldPassword';
|
|
68
68
|
export * from './components/Layout/Backoffice';
|
|
69
69
|
export { default as Backoffice } from './components/Layout/Backoffice';
|
|
70
|
+
export { default as CollapsingHeader } from './components/Layout/CollapsingHeader/CollapsingHeader';
|
|
71
|
+
export * from './components/Layout/CollapsingHeader/types';
|
|
70
72
|
export * from './components/Navigation/NavigationMenu';
|
|
71
73
|
export { default as NavigationMenu } from './components/Navigation/NavigationMenu';
|
|
72
74
|
export * from './components/Navigation/TabPanel';
|