@gouvfr-lasuite/ui-kit 0.1.10 → 0.2.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/cunningham.ts +0 -6
- package/dist/index.cjs +37 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -9
- package/dist/index.js +5149 -4950
- package/dist/index.js.map +1 -1
- package/dist/storybook/hero-image.png +0 -0
- package/dist/storybook/logo-fichiers.svg +4 -0
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -145,12 +145,6 @@ export declare const cunninghamConfig: {
|
|
|
145
145
|
base: string;
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
logo: {
|
|
149
|
-
src: string;
|
|
150
|
-
widthHeader: string;
|
|
151
|
-
widthFooter: string;
|
|
152
|
-
alt: string;
|
|
153
|
-
};
|
|
154
148
|
spacings: {
|
|
155
149
|
"0": string;
|
|
156
150
|
none: string;
|
|
@@ -355,9 +349,11 @@ export declare type DropdownMenuProps = {
|
|
|
355
349
|
isOpen?: boolean;
|
|
356
350
|
};
|
|
357
351
|
|
|
352
|
+
export declare const Footer: () => JSX.Element;
|
|
353
|
+
|
|
358
354
|
export declare function getLocales(): {
|
|
359
|
-
|
|
360
|
-
|
|
355
|
+
"en-US": any;
|
|
356
|
+
"fr-FR": any;
|
|
361
357
|
};
|
|
362
358
|
|
|
363
359
|
export declare const Header: ({ leftIcon, rightIcon, languages, onTogglePanel, isPanelOpen, }: HeaderProps) => JSX.Element;
|
|
@@ -372,6 +368,18 @@ export declare type HeaderProps = {
|
|
|
372
368
|
isPanelOpen?: boolean;
|
|
373
369
|
};
|
|
374
370
|
|
|
371
|
+
export declare const Hero: ({ logo, mainButton, banner, title, subtitle, }: {
|
|
372
|
+
logo: React.ReactNode;
|
|
373
|
+
mainButton?: React.ReactNode;
|
|
374
|
+
banner: string;
|
|
375
|
+
title: string;
|
|
376
|
+
subtitle: string;
|
|
377
|
+
}) => JSX.Element;
|
|
378
|
+
|
|
379
|
+
export declare const HomeGutter: ({ children }: {
|
|
380
|
+
children: React.ReactNode;
|
|
381
|
+
}) => JSX.Element;
|
|
382
|
+
|
|
375
383
|
export declare const HorizontalSeparator: ({ withPadding }: Props_3) => JSX.Element;
|
|
376
384
|
|
|
377
385
|
export declare const isNode: <T>(node?: TreeViewDataType<T>) => boolean;
|
|
@@ -384,6 +392,8 @@ export declare const Label: ({ children, text, ...props }: LabelHTMLAttributes<H
|
|
|
384
392
|
text?: string;
|
|
385
393
|
}) => JSX.Element;
|
|
386
394
|
|
|
395
|
+
export declare const LaGaufre: () => JSX.Element;
|
|
396
|
+
|
|
387
397
|
export declare const LanguagePicker: ({ languages }: LanguagePickerProps) => JSX.Element;
|
|
388
398
|
|
|
389
399
|
export declare type LanguagePickerProps = {
|
|
@@ -396,7 +406,7 @@ export declare type LeftPanelProps = {
|
|
|
396
406
|
isOpen?: boolean;
|
|
397
407
|
};
|
|
398
408
|
|
|
399
|
-
export declare const MainLayout: ({ icon, children, leftPanelContent, rightPanelContent, rightHeaderContent, languages, enableResize, rightPanelIsOpen, }: PropsWithChildren<MainLayoutProps>) => JSX.Element;
|
|
409
|
+
export declare const MainLayout: ({ icon, children, hideLeftPanelOnDesktop, leftPanelContent, rightPanelContent, rightHeaderContent, languages, enableResize, rightPanelIsOpen, }: PropsWithChildren<MainLayoutProps>) => JSX.Element;
|
|
400
410
|
|
|
401
411
|
export declare type MainLayoutProps = {
|
|
402
412
|
icon?: React.ReactNode;
|
|
@@ -407,6 +417,7 @@ export declare type MainLayoutProps = {
|
|
|
407
417
|
onToggleRightPanel?: () => void;
|
|
408
418
|
enableResize?: boolean;
|
|
409
419
|
rightPanelIsOpen?: boolean;
|
|
420
|
+
hideLeftPanelOnDesktop?: boolean;
|
|
410
421
|
};
|
|
411
422
|
|
|
412
423
|
export { NodeRendererProps }
|