@gouvfr-lasuite/ui-kit 0.26.0 → 0.27.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/{PdfPreview-BgrDRBo3.cjs → PdfPreview-Cvmydeqr.cjs} +2 -2
- package/dist/{PdfPreview-BgrDRBo3.cjs.map → PdfPreview-Cvmydeqr.cjs.map} +1 -1
- package/dist/{PdfPreview-BzwV05lv.js → PdfPreview-Dn3s5J1l.js} +3 -3
- package/dist/{PdfPreview-BzwV05lv.js.map → PdfPreview-Dn3s5J1l.js.map} +1 -1
- package/dist/ZoomPlus-BDjh_aTS.cjs +23 -0
- package/dist/ZoomPlus-BDjh_aTS.cjs.map +1 -0
- package/dist/{ZoomPlus-CqMxLvvg.js → ZoomPlus-CCz8Lj8v.js} +120 -95
- package/dist/ZoomPlus-CCz8Lj8v.js.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.d.ts +7 -0
- package/dist/icons.js +706 -729
- package/dist/icons.js.map +1 -1
- package/dist/{index-B4kcK437.js → index-CUMYiXm1.js} +4282 -4188
- package/dist/index-CUMYiXm1.js.map +1 -0
- package/dist/{index-BL_a2Q73.cjs → index-DUED4Win.cjs} +23 -23
- package/dist/index-DUED4Win.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +51 -2
- package/dist/index.js +86 -83
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ZoomPlus-BYvInasa.cjs +0 -23
- package/dist/ZoomPlus-BYvInasa.cjs.map +0 -1
- package/dist/ZoomPlus-CqMxLvvg.js.map +0 -1
- package/dist/index-B4kcK437.js.map +0 -1
- package/dist/index-BL_a2Q73.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DUED4Win.cjs"),r=require("./ZoomPlus-BDjh_aTS.cjs"),o=require("@gouvfr-lasuite/cunningham-react");exports.AVATAR_COLORS=e.AVATAR_COLORS;exports.AccessRoleDropdown=e.AccessRoleDropdown;exports.AudioPlayer=e.AudioPlayer;exports.Badge=e.Badge;exports.CALC_EXTENSIONS=e.CALC_EXTENSIONS;exports.ContextMenu=e.ContextMenu;exports.ContextMenuProvider=e.ContextMenuProvider;exports.CunninghamProvider=e.CunninghamProvider;exports.CustomTabs=e.CustomTabs;exports.DEFAULT_PDF_WORKER_SRC=e.DEFAULT_PDF_WORKER_SRC;exports.DropdownMenu=e.DropdownMenu;exports.DurationBar=e.DurationBar;exports.ErrorPreview=e.ErrorPreview;exports.FeedbackForm=e.FeedbackForm;exports.FileIcon=e.FileIcon;exports.FileIconContent=e.FileIconContent;exports.FilePreview=e.FilePreview;exports.Filter=e.Filter;exports.Footer=e.Footer;exports.Header=e.Header;exports.HelpMenu=e.HelpMenu;exports.Hero=e.Hero;exports.HomeGutter=e.HomeGutter;exports.HorizontalSeparator=e.HorizontalSeparator;exports.ICONS=e.ICONS;exports.Icon=e.Icon;exports.ImageViewer=e.ImageViewer;exports.InvitationUserSelectorItem=e.InvitationUserSelectorItem;exports.InvitationUserSelectorList=e.InvitationUserSelectorList;exports.KNOWN_EXTENSIONS=e.KNOWN_EXTENSIONS;exports.LaGaufre=e.LaGaufre;exports.LaGaufreV2=e.LaGaufreV2;exports.Label=e.Label;exports.LanguagePicker=e.LanguagePicker;exports.LeftPanel=e.LeftPanel;exports.LeftSidebarIcon=e.LeftSidebarIcon;exports.MIME_MAP=e.MIME_MAP;exports.MIME_TO_CATEGORY=e.MIME_TO_CATEGORY;exports.MainLayout=e.MainLayout;exports.MenuItemBody=e.MenuItemBody;exports.MimeCategory=e.MimeCategory;exports.NotSupportedPreview=e.NotSupportedPreview;exports.OnboardingModal=e.OnboardingModal;exports.PlayerPreviewControls=e.PlayerPreviewControls;exports.PreviewMessage=e.PreviewMessage;exports.ProConnectButton=e.ProConnectButton;exports.QuickSearch=e.QuickSearch;exports.QuickSearchGroup=e.QuickSearchGroup;exports.QuickSearchInput=e.QuickSearchInput;exports.QuickSearchItem=e.QuickSearchItem;exports.QuickSearchItemTemplate=e.QuickSearchItemTemplate;exports.ReleaseNoteModal=e.ReleaseNoteModal;exports.SearchFilter=e.SearchFilter;exports.SearchUserItem=e.SearchUserItem;exports.ShareInvitationItem=e.ShareInvitationItem;exports.ShareMemberItem=e.ShareMemberItem;exports.ShareModal=e.ShareModal;exports.ShareModalCopyLinkFooter=e.ShareModalCopyLinkFooter;exports.SmartScroller=e.SmartScroller;exports.Spinner=e.Spinner;exports.StorageGaugeBar=e.StorageGaugeBar;exports.StorageGaugeButton=e.StorageGaugeButton;exports.StorageGaugeInformation=e.StorageGaugeInformation;exports.SuspiciousPreview=e.SuspiciousPreview;exports.TreeApi=e.TreeApi;exports.TreeContext=e.TreeContext;exports.TreeProvider=e.TreeProvider;exports.TreeView=e.TreeView;exports.TreeViewItem=e.TreeViewItem;exports.TreeViewMoveModeEnum=e.TreeViewMoveModeEnum;exports.TreeViewNodeTypeEnum=e.TreeViewNodeTypeEnum;exports.TreeViewSeparator=e.TreeViewSeparator;exports.UserAvatar=e.UserAvatar;exports.UserMenu=e.UserMenu;exports.UserMenuItem=e.UserMenuItem;exports.UserRow=e.UserRow;exports.UserSearchFilter=e.UserSearchFilter;exports.VerticalSeparator=e.VerticalSeparator;exports.VideoPlayer=e.VideoPlayer;exports.VolumeBar=e.VolumeBar;exports.WithLabel=e.WithLabel;exports.WopiOpenInEditor=e.WopiOpenInEditor;exports.ZoomControls=e.ZoomControls;exports.anctGlobals=e.anctGlobals;exports.cunninghamConfig=e.config;exports.dsfrGlobals=e.dsfrGlobals;exports.getExtensionFromName=e.getExtensionFromName;exports.getMimeCategory=e.getMimeCategory;exports.getStepIcon=e.getStepIcon;exports.getUIKitThemesFromGlobals=e.getUIKitThemesFromGlobals;exports.getUserColor=e.getUserColor;exports.getUserInitials=e.getUserInitials;exports.headerHeight=e.headerHeight;exports.isNode=e.isNode;exports.isSeparator=e.isSeparator;exports.isTitle=e.isTitle;exports.isViewMore=e.isViewMore;exports.locales=e.locales;exports.printImage=e.printImage;exports.removeFileExtension=e.removeFileExtension;exports.useArrowRoving=e.useArrowRoving;exports.useContextMenuContext=e.useContextMenuContext;exports.useCustomTranslations=e.useCustomTranslations;exports.useDropdownMenu=e.useDropdownMenu;exports.useResponsive=e.useResponsive;exports.useStorageGauge=e.useStorageGauge;exports.useTree=e.useTree;exports.useTreeContext=e.useTreeContext;exports.whiteLabelGlobals=e.whiteLabelGlobals;exports.IconSize=r.IconSize;exports.IconSvg=r.IconSvg;exports.IconType=r.IconType;exports.containerSizeMap=r.containerSizeMap;exports.getContainerSize=r.getContainerSize;exports.getIconSize=r.getIconSize;exports.iconSizeMap=r.iconSizeMap;Object.defineProperty(exports,"ModalSize",{enumerable:!0,get:()=>o.ModalSize});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1715,6 +1715,14 @@ export declare const locales: {
|
|
|
1715
1715
|
print: string;
|
|
1716
1716
|
};
|
|
1717
1717
|
};
|
|
1718
|
+
"storage-gauge": {
|
|
1719
|
+
locked: string;
|
|
1720
|
+
information: {
|
|
1721
|
+
title: string;
|
|
1722
|
+
usage: string;
|
|
1723
|
+
"more-info": string;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1718
1726
|
};
|
|
1719
1727
|
};
|
|
1720
1728
|
"fr-FR": {
|
|
@@ -1978,6 +1986,14 @@ export declare const locales: {
|
|
|
1978
1986
|
print: string;
|
|
1979
1987
|
};
|
|
1980
1988
|
};
|
|
1989
|
+
"storage-gauge": {
|
|
1990
|
+
locked: string;
|
|
1991
|
+
information: {
|
|
1992
|
+
title: string;
|
|
1993
|
+
usage: string;
|
|
1994
|
+
"more-info": string;
|
|
1995
|
+
};
|
|
1996
|
+
};
|
|
1981
1997
|
};
|
|
1982
1998
|
};
|
|
1983
1999
|
"nl-NL": any;
|
|
@@ -2482,9 +2498,26 @@ declare type SpinnerProps = {
|
|
|
2482
2498
|
size?: "sm" | "md" | "lg" | "xl";
|
|
2483
2499
|
};
|
|
2484
2500
|
|
|
2485
|
-
export declare const
|
|
2501
|
+
export declare const StorageGaugeBar: ({ used, total, "aria-label": ariaLabel, }: StorageGaugeBarProps) => JSX.Element;
|
|
2486
2502
|
|
|
2487
|
-
declare type
|
|
2503
|
+
export declare type StorageGaugeBarProps = {
|
|
2504
|
+
used: number;
|
|
2505
|
+
total: number;
|
|
2506
|
+
"aria-label"?: string;
|
|
2507
|
+
};
|
|
2508
|
+
|
|
2509
|
+
export declare const StorageGaugeButton: ({ used, total, unit, compact, precision, locked, lockedContent, className, ...props }: StorageGaugeProps) => JSX.Element;
|
|
2510
|
+
|
|
2511
|
+
export declare const StorageGaugeInformation: ({ used, total, unit, precision, title, titleChildren, onMoreInfoClick, locked, labelChildren, label, }: Omit<StorageGaugeProps, "lockedContent"> & {
|
|
2512
|
+
titleChildren?: React.ReactNode;
|
|
2513
|
+
onMoreInfoClick?: () => void;
|
|
2514
|
+
title?: string;
|
|
2515
|
+
locked?: boolean;
|
|
2516
|
+
labelChildren?: React.ReactNode;
|
|
2517
|
+
label?: string;
|
|
2518
|
+
}) => JSX.Element;
|
|
2519
|
+
|
|
2520
|
+
export declare type StorageGaugeProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
2488
2521
|
/** Storage used (in the given unit) */
|
|
2489
2522
|
used: number;
|
|
2490
2523
|
/** Total storage available (in the given unit) */
|
|
@@ -2495,6 +2528,10 @@ declare type StorageGaugeProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
|
2495
2528
|
compact?: boolean;
|
|
2496
2529
|
/** Number of decimal places for the used value (default: 2) */
|
|
2497
2530
|
precision?: number;
|
|
2531
|
+
/** Whether the gauge is locked */
|
|
2532
|
+
locked?: boolean;
|
|
2533
|
+
/** Content displayed when the gauge is locked */
|
|
2534
|
+
lockedContent?: React.ReactNode;
|
|
2498
2535
|
};
|
|
2499
2536
|
|
|
2500
2537
|
export declare const SuspiciousPreview: ({ handleDownload, }: SuspiciousPreviewProps) => JSX.Element;
|
|
@@ -2755,6 +2792,11 @@ export declare type UserSearchFilterItem = SearchFilterItem & {
|
|
|
2755
2792
|
|
|
2756
2793
|
export declare type UserSearchFilterProps = Omit<SearchFilterProps<UserSearchFilterItem>, "renderItem">;
|
|
2757
2794
|
|
|
2795
|
+
export declare const useStorageGauge: ({ used, total, precision, }: StorageGaugeProps) => {
|
|
2796
|
+
formattedUsed: string;
|
|
2797
|
+
formattedTotal: string;
|
|
2798
|
+
};
|
|
2799
|
+
|
|
2758
2800
|
export declare const useTree: <T>(initialItems: TreeViewDataType<T>[], refreshCallback?: (id: string) => Promise<Partial<TreeViewDataType<T>>>, onLoadChildren?: (id: string, page: number) => Promise<PaginatedChildrenResult<T>>) => {
|
|
2759
2801
|
nodes: TreeDataItem<TreeViewDataType<T>>[];
|
|
2760
2802
|
addChild: (parentId: string | null, newNode: TreeViewDataType<T>, index?: number) => void;
|
|
@@ -3244,3 +3286,10 @@ declare global {
|
|
|
3244
3286
|
__helpMenuCalls: string[];
|
|
3245
3287
|
}
|
|
3246
3288
|
}
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
declare global {
|
|
3292
|
+
interface Window {
|
|
3293
|
+
__storageGaugeCalls: string[];
|
|
3294
|
+
}
|
|
3295
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { an as s, ag as r,
|
|
2
|
-
import { a as
|
|
3
|
-
import { ModalSize as
|
|
1
|
+
import { an as s, ag as r, aT as o, a9 as t, aF as i, m as n, j as u, C as l, K as S, D as c, h as m, aP as I, aW as g, ab as p, aL as M, aM as d, aA as C, n as T, F as h, s as w, aa as v, H as P, o as E, G as F, aC as L, I as G, aR as A, af as N, ae as U, aG as V, p as b, q as x, a8 as R, r as f, t as y, L as O, aD as k, aE as _, v as z, M as B, aB as D, aU as H, at as Q, aQ as W, aN as K, P as X, Q as q, z as Y, B as j, A as J, E as Z, az as $, S as aa, ak as ea, ai as sa, aj as ra, ah as oa, al as ta, J as ia, y as na, aw as ua, av as la, ax as Sa, aV as ca, N as ma, a5 as Ia, a6 as ga, R as pa, Y as Ma, $ as da, _ as Ca, X as Ta, am as ha, ar as wa, as as va, aq as Pa, U as Ea, V as Fa, aS as La, aO as Ga, W as Aa, aX as Na, Z as Ua, e as Va, g as ba, f as xa, aJ as Ra, aH as fa, au as ya, aY as Oa, ap as ka, ao as _a, x as za, a3 as Ba, a0 as Da, a1 as Ha, a2 as Qa, l as Wa, aK as Ka, aI as Xa, ad as qa, k as Ya, u as ja, i as Ja, ac as Za, ay as $a, a4 as ae, a7 as ee, w as se } from "./index-CUMYiXm1.js";
|
|
2
|
+
import { a as oe, n as te, I as ie, p as ne, q as ue, r as le, o as Se } from "./ZoomPlus-CCz8Lj8v.js";
|
|
3
|
+
import { ModalSize as me } from "@gouvfr-lasuite/cunningham-react";
|
|
4
4
|
export {
|
|
5
5
|
s as AVATAR_COLORS,
|
|
6
6
|
r as AccessRoleDropdown,
|
|
@@ -8,16 +8,16 @@ export {
|
|
|
8
8
|
t as Badge,
|
|
9
9
|
i as CALC_EXTENSIONS,
|
|
10
10
|
n as ContextMenu,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
u as ContextMenuProvider,
|
|
12
|
+
l as CunninghamProvider,
|
|
13
13
|
S as CustomTabs,
|
|
14
14
|
c as DEFAULT_PDF_WORKER_SRC,
|
|
15
15
|
m as DropdownMenu,
|
|
16
16
|
I as DurationBar,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
g as ErrorPreview,
|
|
18
|
+
p as FeedbackForm,
|
|
19
|
+
M as FileIcon,
|
|
20
|
+
d as FileIconContent,
|
|
21
21
|
C as FilePreview,
|
|
22
22
|
T as Filter,
|
|
23
23
|
h as Footer,
|
|
@@ -27,35 +27,35 @@ export {
|
|
|
27
27
|
E as HomeGutter,
|
|
28
28
|
F as HorizontalSeparator,
|
|
29
29
|
L as ICONS,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
G as Icon,
|
|
31
|
+
oe as IconSize,
|
|
32
|
+
te as IconSvg,
|
|
33
|
+
ie as IconType,
|
|
34
|
+
A as ImageViewer,
|
|
35
|
+
N as InvitationUserSelectorItem,
|
|
36
|
+
U as InvitationUserSelectorList,
|
|
37
|
+
V as KNOWN_EXTENSIONS,
|
|
38
|
+
b as LaGaufre,
|
|
39
|
+
x as LaGaufreV2,
|
|
40
|
+
R as Label,
|
|
41
|
+
f as LanguagePicker,
|
|
42
|
+
y as LeftPanel,
|
|
43
|
+
O as LeftSidebarIcon,
|
|
44
44
|
k as MIME_MAP,
|
|
45
45
|
_ as MIME_TO_CATEGORY,
|
|
46
46
|
z as MainLayout,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
B as MenuItemBody,
|
|
48
|
+
D as MimeCategory,
|
|
49
|
+
me as ModalSize,
|
|
50
|
+
H as NotSupportedPreview,
|
|
51
51
|
Q as OnboardingModal,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
W as PlayerPreviewControls,
|
|
53
|
+
K as PreviewMessage,
|
|
54
|
+
X as ProConnectButton,
|
|
55
|
+
q as QuickSearch,
|
|
56
|
+
Y as QuickSearchGroup,
|
|
57
|
+
j as QuickSearchInput,
|
|
58
|
+
J as QuickSearchItem,
|
|
59
59
|
Z as QuickSearchItemTemplate,
|
|
60
60
|
$ as ReleaseNoteModal,
|
|
61
61
|
aa as SearchFilter,
|
|
@@ -66,55 +66,58 @@ export {
|
|
|
66
66
|
ta as ShareModalCopyLinkFooter,
|
|
67
67
|
ia as SmartScroller,
|
|
68
68
|
na as Spinner,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Sa as
|
|
72
|
-
ca as
|
|
73
|
-
ma as
|
|
74
|
-
Ia as
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Ca as
|
|
80
|
-
Ta as
|
|
81
|
-
ha as
|
|
82
|
-
wa as
|
|
83
|
-
va as
|
|
84
|
-
Pa as
|
|
85
|
-
Ea as
|
|
86
|
-
Fa as
|
|
87
|
-
La as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Va as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
xa as
|
|
96
|
-
|
|
97
|
-
Ra as
|
|
69
|
+
ua as StorageGaugeBar,
|
|
70
|
+
la as StorageGaugeButton,
|
|
71
|
+
Sa as StorageGaugeInformation,
|
|
72
|
+
ca as SuspiciousPreview,
|
|
73
|
+
ma as TreeApi,
|
|
74
|
+
Ia as TreeContext,
|
|
75
|
+
ga as TreeProvider,
|
|
76
|
+
pa as TreeView,
|
|
77
|
+
Ma as TreeViewItem,
|
|
78
|
+
da as TreeViewMoveModeEnum,
|
|
79
|
+
Ca as TreeViewNodeTypeEnum,
|
|
80
|
+
Ta as TreeViewSeparator,
|
|
81
|
+
ha as UserAvatar,
|
|
82
|
+
wa as UserMenu,
|
|
83
|
+
va as UserMenuItem,
|
|
84
|
+
Pa as UserRow,
|
|
85
|
+
Ea as UserSearchFilter,
|
|
86
|
+
Fa as VerticalSeparator,
|
|
87
|
+
La as VideoPlayer,
|
|
88
|
+
Ga as VolumeBar,
|
|
89
|
+
Aa as WithLabel,
|
|
90
|
+
Na as WopiOpenInEditor,
|
|
91
|
+
Ua as ZoomControls,
|
|
92
|
+
Va as anctGlobals,
|
|
93
|
+
ne as containerSizeMap,
|
|
94
|
+
ba as cunninghamConfig,
|
|
95
|
+
xa as dsfrGlobals,
|
|
96
|
+
ue as getContainerSize,
|
|
97
|
+
Ra as getExtensionFromName,
|
|
98
|
+
le as getIconSize,
|
|
99
|
+
fa as getMimeCategory,
|
|
98
100
|
ya as getStepIcon,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
101
|
+
Oa as getUIKitThemesFromGlobals,
|
|
102
|
+
ka as getUserColor,
|
|
103
|
+
_a as getUserInitials,
|
|
104
|
+
za as headerHeight,
|
|
105
|
+
Se as iconSizeMap,
|
|
106
|
+
Ba as isNode,
|
|
107
|
+
Da as isSeparator,
|
|
108
|
+
Ha as isTitle,
|
|
109
|
+
Qa as isViewMore,
|
|
110
|
+
Wa as locales,
|
|
111
|
+
Ka as printImage,
|
|
112
|
+
Xa as removeFileExtension,
|
|
113
|
+
qa as useArrowRoving,
|
|
114
|
+
Ya as useContextMenuContext,
|
|
115
|
+
ja as useCustomTranslations,
|
|
116
|
+
Ja as useDropdownMenu,
|
|
117
|
+
Za as useResponsive,
|
|
118
|
+
$a as useStorageGauge,
|
|
119
|
+
ae as useTree,
|
|
120
|
+
ee as useTreeContext,
|
|
121
|
+
se as whiteLabelGlobals
|
|
119
122
|
};
|
|
120
123
|
//# sourceMappingURL=index.js.map
|