@gouvfr-lasuite/ui-kit 0.4.1 → 0.6.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 +85 -55
- package/dist/index.cjs +34 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +39 -2
- package/dist/index.js +8216 -9702
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -366,6 +366,36 @@ export declare const cunninghamConfig: {
|
|
|
366
366
|
"value-color": string;
|
|
367
367
|
"font-size": string;
|
|
368
368
|
};
|
|
369
|
+
badge: {
|
|
370
|
+
"font-size": string;
|
|
371
|
+
"border-radius": string;
|
|
372
|
+
"padding-inline": string;
|
|
373
|
+
"padding-block": string;
|
|
374
|
+
accent: {
|
|
375
|
+
"background-color": string;
|
|
376
|
+
color: string;
|
|
377
|
+
};
|
|
378
|
+
neutral: {
|
|
379
|
+
"background-color": string;
|
|
380
|
+
color: string;
|
|
381
|
+
};
|
|
382
|
+
danger: {
|
|
383
|
+
"background-color": string;
|
|
384
|
+
color: string;
|
|
385
|
+
};
|
|
386
|
+
success: {
|
|
387
|
+
"background-color": string;
|
|
388
|
+
color: string;
|
|
389
|
+
};
|
|
390
|
+
warning: {
|
|
391
|
+
"background-color": string;
|
|
392
|
+
color: string;
|
|
393
|
+
};
|
|
394
|
+
info: {
|
|
395
|
+
"background-color": string;
|
|
396
|
+
color: string;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
369
399
|
};
|
|
370
400
|
};
|
|
371
401
|
};
|
|
@@ -401,9 +431,14 @@ export declare type DropdownMenuProps = {
|
|
|
401
431
|
|
|
402
432
|
export declare const Filter: (props: FilterProps) => JSX.Element;
|
|
403
433
|
|
|
434
|
+
export declare type FilterOption = Option_2 & {
|
|
435
|
+
showSeparator?: boolean;
|
|
436
|
+
isChecked?: boolean;
|
|
437
|
+
};
|
|
438
|
+
|
|
404
439
|
export declare type FilterProps = {
|
|
405
440
|
label: string;
|
|
406
|
-
options:
|
|
441
|
+
options: FilterOption[];
|
|
407
442
|
} & SelectProps;
|
|
408
443
|
|
|
409
444
|
export declare const Footer: () => JSX.Element;
|
|
@@ -474,7 +509,7 @@ export declare type LeftPanelProps = {
|
|
|
474
509
|
isOpen?: boolean;
|
|
475
510
|
};
|
|
476
511
|
|
|
477
|
-
export declare const MainLayout: ({ icon, children, hideLeftPanelOnDesktop, leftPanelContent, rightPanelContent, rightHeaderContent, languages, enableResize, rightPanelIsOpen, }: PropsWithChildren<MainLayoutProps>) => JSX.Element;
|
|
512
|
+
export declare const MainLayout: ({ icon, children, hideLeftPanelOnDesktop, leftPanelContent, rightPanelContent, rightHeaderContent, languages, enableResize, rightPanelIsOpen, ...props }: PropsWithChildren<MainLayoutProps>) => JSX.Element;
|
|
478
513
|
|
|
479
514
|
export declare type MainLayoutProps = {
|
|
480
515
|
icon?: React.ReactNode;
|
|
@@ -486,6 +521,8 @@ export declare type MainLayoutProps = {
|
|
|
486
521
|
enableResize?: boolean;
|
|
487
522
|
rightPanelIsOpen?: boolean;
|
|
488
523
|
hideLeftPanelOnDesktop?: boolean;
|
|
524
|
+
isLeftPanelOpen?: boolean;
|
|
525
|
+
setIsLeftPanelOpen?: (isLeftPanelOpen: boolean) => void;
|
|
489
526
|
};
|
|
490
527
|
|
|
491
528
|
export { NodeRendererProps }
|