@gouvfr-lasuite/ui-kit 0.24.0 → 0.26.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-WRGeH0v3.cjs → PdfPreview-BgrDRBo3.cjs} +2 -2
- package/dist/{PdfPreview-WRGeH0v3.cjs.map → PdfPreview-BgrDRBo3.cjs.map} +1 -1
- package/dist/{PdfPreview-CLFZxX-1.js → PdfPreview-BzwV05lv.js} +3 -3
- package/dist/{PdfPreview-CLFZxX-1.js.map → PdfPreview-BzwV05lv.js.map} +1 -1
- package/dist/ZoomPlus-BYvInasa.cjs +23 -0
- package/dist/ZoomPlus-BYvInasa.cjs.map +1 -0
- package/dist/{ZoomPlus-BpYaKE3S.js → ZoomPlus-CqMxLvvg.js} +143 -77
- package/dist/ZoomPlus-CqMxLvvg.js.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +631 -691
- package/dist/icons.js.map +1 -1
- package/dist/{index-QmW7lImF.js → index-B4kcK437.js} +4601 -4517
- package/dist/index-B4kcK437.js.map +1 -0
- package/dist/index-BL_a2Q73.cjs +87 -0
- package/dist/index-BL_a2Q73.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ZoomPlus-BpYaKE3S.js.map +0 -1
- package/dist/ZoomPlus-Buc4s50D.cjs +0 -23
- package/dist/ZoomPlus-Buc4s50D.cjs.map +0 -1
- package/dist/index-8IuJhpRl.cjs +0 -87
- package/dist/index-8IuJhpRl.cjs.map +0 -1
- package/dist/index-QmW7lImF.js.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-BL_a2Q73.cjs"),r=require("./ZoomPlus-BYvInasa.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.StorageGauge=e.StorageGauge;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.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
|
@@ -1149,6 +1149,7 @@ export declare type FilterOption = Option_2 & {
|
|
|
1149
1149
|
export declare type FilterProps = {
|
|
1150
1150
|
label: string;
|
|
1151
1151
|
options: FilterOption[];
|
|
1152
|
+
showReset?: boolean;
|
|
1152
1153
|
} & SelectProps;
|
|
1153
1154
|
|
|
1154
1155
|
export declare type FilterSubContentHelpers = {
|
|
@@ -1295,6 +1296,7 @@ export declare type IconProps = {
|
|
|
1295
1296
|
|
|
1296
1297
|
export declare const ICONS: {
|
|
1297
1298
|
mini: {
|
|
1299
|
+
docs: string;
|
|
1298
1300
|
calc: string;
|
|
1299
1301
|
doc: string;
|
|
1300
1302
|
image: string;
|
|
@@ -1309,6 +1311,7 @@ export declare const ICONS: {
|
|
|
1309
1311
|
grist: string;
|
|
1310
1312
|
};
|
|
1311
1313
|
normal: {
|
|
1314
|
+
docs: string;
|
|
1312
1315
|
calc: string;
|
|
1313
1316
|
doc: string;
|
|
1314
1317
|
image: string;
|
|
@@ -1540,6 +1543,10 @@ export declare const locales: {
|
|
|
1540
1543
|
menu: {
|
|
1541
1544
|
newWindowLabelSuffix: string;
|
|
1542
1545
|
};
|
|
1546
|
+
searchFilter: {
|
|
1547
|
+
reset: string;
|
|
1548
|
+
placeholder: string;
|
|
1549
|
+
};
|
|
1543
1550
|
share: {
|
|
1544
1551
|
copyLink: string;
|
|
1545
1552
|
ok: string;
|
|
@@ -1799,6 +1806,10 @@ export declare const locales: {
|
|
|
1799
1806
|
menu: {
|
|
1800
1807
|
newWindowLabelSuffix: string;
|
|
1801
1808
|
};
|
|
1809
|
+
searchFilter: {
|
|
1810
|
+
reset: string;
|
|
1811
|
+
placeholder: string;
|
|
1812
|
+
};
|
|
1802
1813
|
share: {
|
|
1803
1814
|
copyLink: string;
|
|
1804
1815
|
ok: string;
|
|
@@ -2040,6 +2051,7 @@ export declare type MenuItemSeparator = {
|
|
|
2040
2051
|
};
|
|
2041
2052
|
|
|
2042
2053
|
export declare const MIME_MAP: {
|
|
2054
|
+
docs: string[];
|
|
2043
2055
|
calc: string[];
|
|
2044
2056
|
pdf: string[];
|
|
2045
2057
|
doc: string[];
|
|
@@ -2051,6 +2063,7 @@ export declare const MIME_MAP: {
|
|
|
2051
2063
|
export declare const MIME_TO_CATEGORY: Record<string, MimeCategory>;
|
|
2052
2064
|
|
|
2053
2065
|
export declare enum MimeCategory {
|
|
2066
|
+
DOCS = "docs",
|
|
2054
2067
|
CALC = "calc",
|
|
2055
2068
|
DOC = "doc",
|
|
2056
2069
|
IMAGE = "image",
|
|
@@ -2317,11 +2330,13 @@ export declare type SearchFilterProps<T extends SearchFilterItem = SearchFilterI
|
|
|
2317
2330
|
placeholder?: string;
|
|
2318
2331
|
items: T[];
|
|
2319
2332
|
renderItem: (item: T) => ReactNode;
|
|
2320
|
-
onItemSelect?: (item
|
|
2333
|
+
onItemSelect?: (item?: T) => void;
|
|
2334
|
+
selected?: T;
|
|
2321
2335
|
isLoading?: boolean;
|
|
2322
2336
|
emptyState?: ReactNode;
|
|
2323
2337
|
isOpen?: boolean;
|
|
2324
2338
|
onOpenChange?: (isOpen: boolean) => void;
|
|
2339
|
+
showReset?: boolean;
|
|
2325
2340
|
};
|
|
2326
2341
|
|
|
2327
2342
|
export declare const SearchUserItem: <UserType>({ user, }: SearchUserItemProps<UserType>) => JSX.Element;
|
|
@@ -2700,13 +2715,13 @@ export declare type UserData<T> = T & {
|
|
|
2700
2715
|
|
|
2701
2716
|
export declare const useResponsive: () => ResponsiveStates;
|
|
2702
2717
|
|
|
2703
|
-
export declare const UserMenu: ({ user, settingsCTA, logout, termOfServiceUrl, actions, }: UserMenuProps) => JSX.Element | null;
|
|
2718
|
+
export declare const UserMenu: ({ user, settingsCTA, logout, termOfServiceUrl, actions, withMobileView, }: UserMenuProps) => JSX.Element | null;
|
|
2704
2719
|
|
|
2705
2720
|
export declare const UserMenuItem: ({ label, icon, onClick }: UserMenuItemProps) => JSX.Element;
|
|
2706
2721
|
|
|
2707
2722
|
declare type UserMenuItemProps = {
|
|
2708
2723
|
label: string;
|
|
2709
|
-
icon:
|
|
2724
|
+
icon: ReactElement;
|
|
2710
2725
|
onClick?: () => void;
|
|
2711
2726
|
};
|
|
2712
2727
|
|
|
@@ -2720,6 +2735,7 @@ export declare type UserMenuProps = {
|
|
|
2720
2735
|
termOfServiceUrl?: string;
|
|
2721
2736
|
isInitialOpen?: boolean;
|
|
2722
2737
|
actions?: ReactElement;
|
|
2738
|
+
withMobileView?: boolean;
|
|
2723
2739
|
};
|
|
2724
2740
|
|
|
2725
2741
|
declare type UserProps = {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { an as s, ag as r, aQ as o, a9 as t, aC as i, m as n, j as l, C as u, K as S, D as c, h as m, aM as I, aT as p, ab as M, aI as d, aJ as g, ax as C, n as T, F as h, s as w, aa as v, H as P, o as E, G as F, az as L, I as A, aO as N, af as U, ae as V, aD as b, p as x, q as R, a8 as y, r as G, t as O, L as f, aA as k, aB as _, v as z, M as D, ay as H, aR as B, at as Q, aN as K, aK as W, P as
|
|
2
|
-
import { a as ee,
|
|
1
|
+
import { an as s, ag as r, aQ as o, a9 as t, aC as i, m as n, j as l, C as u, K as S, D as c, h as m, aM as I, aT as p, ab as M, aI as d, aJ as g, ax as C, n as T, F as h, s as w, aa as v, H as P, o as E, G as F, az as L, I as A, aO as N, af as U, ae as V, aD as b, p as x, q as R, a8 as y, r as G, t as O, L as f, aA as k, aB as _, v as z, M as D, ay as H, aR as B, at as Q, aN as K, aK as W, P as q, Q as X, z as j, B as J, A as Y, E as Z, aw 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, av as la, aS as ua, N as Sa, a5 as ca, a6 as ma, R as Ia, Y as pa, $ as Ma, _ as da, X as ga, am as Ca, ar as Ta, as as ha, aq as wa, U as va, V as Pa, aP as Ea, aL as Fa, W as La, aU as Aa, Z as Na, e as Ua, g as Va, f as ba, aG as xa, aE as Ra, au as ya, aV as Ga, ap as Oa, ao as fa, x as ka, a3 as _a, a0 as za, a1 as Da, a2 as Ha, l as Ba, aH as Qa, aF as Ka, ad as Wa, k as qa, u as Xa, i as ja, ac as Ja, a4 as Ya, a7 as Za, w as $a } from "./index-B4kcK437.js";
|
|
2
|
+
import { a as ee, m as se, I as re, o as oe, p as te, q as ie, n as ne } from "./ZoomPlus-CqMxLvvg.js";
|
|
3
3
|
import { ModalSize as ue } from "@gouvfr-lasuite/cunningham-react";
|
|
4
4
|
export {
|
|
5
5
|
s as AVATAR_COLORS,
|
|
@@ -51,9 +51,9 @@ export {
|
|
|
51
51
|
Q as OnboardingModal,
|
|
52
52
|
K as PlayerPreviewControls,
|
|
53
53
|
W as PreviewMessage,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
q as ProConnectButton,
|
|
55
|
+
X as QuickSearch,
|
|
56
|
+
j as QuickSearchGroup,
|
|
57
57
|
J as QuickSearchInput,
|
|
58
58
|
Y as QuickSearchItem,
|
|
59
59
|
Z as QuickSearchItemTemplate,
|
|
@@ -109,9 +109,9 @@ export {
|
|
|
109
109
|
Qa as printImage,
|
|
110
110
|
Ka as removeFileExtension,
|
|
111
111
|
Wa as useArrowRoving,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
qa as useContextMenuContext,
|
|
113
|
+
Xa as useCustomTranslations,
|
|
114
|
+
ja as useDropdownMenu,
|
|
115
115
|
Ja as useResponsive,
|
|
116
116
|
Ya as useTree,
|
|
117
117
|
Za as useTreeContext,
|