@rocket.chat/fuselage 0.32.0-dev.270 → 0.32.0-dev.272
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/components/Sidebar/SidebarBanner.d.ts +13 -0
- package/dist/components/Sidebar/SidebarBanner.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +9 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/fuselage.development.js +57 -17
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
declare type VariantType = 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
declare type SidebarBannerProps = {
|
|
4
|
+
text?: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
variant?: VariantType;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const SidebarBanner: ({ text, description, onClick, variant, onClose, children, }: SidebarBannerProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SidebarBanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarBanner.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,aAAK,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEzE,aAAK,kBAAkB,GAAG;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,gEAOvB,kBAAkB,gBAuBpB,CAAC"}
|
|
@@ -178,6 +178,14 @@ declare const _default: ((props: {
|
|
|
178
178
|
}) => JSX.Element;
|
|
179
179
|
};
|
|
180
180
|
Divider: () => JSX.Element;
|
|
181
|
+
Banner: ({ text, description, onClick, variant, onClose, children, }: {
|
|
182
|
+
text?: React.ReactNode;
|
|
183
|
+
description?: React.ReactNode;
|
|
184
|
+
onClick?: (() => void) | undefined;
|
|
185
|
+
variant?: ("info" | "success" | "warning" | "danger" | "default") | undefined;
|
|
186
|
+
onClose?: (() => void) | undefined;
|
|
187
|
+
children?: React.ReactNode;
|
|
188
|
+
}) => JSX.Element;
|
|
181
189
|
};
|
|
182
190
|
export default _default;
|
|
183
191
|
export { default as SidebarItem } from './Item';
|
|
@@ -186,6 +194,7 @@ export { default as SidebarSection } from './Section';
|
|
|
186
194
|
export * from './Section';
|
|
187
195
|
export { default as SidebarTopBar } from './TopBar';
|
|
188
196
|
export * from './TopBar';
|
|
197
|
+
export * from './SidebarBanner';
|
|
189
198
|
export * from './SidebarFooter';
|
|
190
199
|
export { SidebarDivider };
|
|
191
200
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,GAAG,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,GAAG,MAAM,QAAQ,CAAC;AAIzB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,aAAK,YAAY,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;AAE/C,eAAO,MAAM,OAAO,UAAW,YAAY,gBAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/E,wBAMG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChD,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,CAAC"}
|