Skip to content

Commit 6432ab8

Browse files
authored
Release v0.10.0 (#551)
Signed-off-by: Benjamin Perez <[email protected]>
1 parent 212d698 commit 6432ab8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+17362
-15455
lines changed

dist/cjs/index.js

Lines changed: 8086 additions & 7388 deletions
Large diffs are not rendered by default.

dist/cjs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { FC, HTMLAttributes } from "react";
2+
import { BadgeProps } from "./Badge.types";
3+
declare const Badge: FC<HTMLAttributes<HTMLSpanElement> & BadgeProps>;
4+
export default Badge;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { CSSObject } from "styled-components";
2+
export interface BadgeMain {
3+
invisible?: boolean;
4+
max?: number;
5+
showZero?: boolean;
6+
badgeContent?: number;
7+
}
8+
export interface BadgeConstruct {
9+
horizontalPosition?: "left" | "right";
10+
verticalPosition?: "bottom" | "top";
11+
sx?: CSSObject;
12+
color?: "default" | "secondary" | "warn" | "alert" | "ok" | "grey";
13+
shape?: "circular" | "rectangular";
14+
dotOnly?: boolean;
15+
}
16+
export type BadgeProps = BadgeMain & BadgeConstruct;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const CheckCircleIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default CheckCircleIcon;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const CodeIcon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4+
export default CodeIcon;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const CompressIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default CompressIcon;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const ExpandIcon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4+
export default ExpandIcon;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const FindReplaceIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default FindReplaceIcon;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const FirstAidIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default FirstAidIcon;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const LoginIcon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4+
export default LoginIcon;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const LockIcon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4+
export default LockIcon;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const LoginIcon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4+
export default LoginIcon;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const PendingItemsIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default PendingItemsIcon;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const FirstAidIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default FirstAidIcon;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import { SVGProps } from "react";
3+
declare const WebhookIcon: (
4+
props: SVGProps<SVGSVGElement>,
5+
) => React.JSX.Element;
6+
export default WebhookIcon;

dist/cjs/types/components/Icons/index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,15 @@ export { default as CancelledAudioIcon } from "./CancelledAudioIcon";
197197
export { default as ThumbsUpIcon } from "./ThumbsUpIcon";
198198
export { default as ThumbsDownIcon } from "./ThumbsDownIcon";
199199
export { default as AttachFileIcon } from "./AttachFileIcon";
200+
export { default as CheckCircleIcon } from "./CheckCircleIcon";
201+
export { default as CodeIcon } from "./CodeIcon";
202+
export { default as CompressIcon } from "./CompressIcon";
203+
export { default as FindReplaceIcon } from "./FindReplaceIcon";
204+
export { default as FirstAidIcon } from "./FirstAidIcon";
205+
export { default as LockOpenIcon } from "./LockOpenIcon";
206+
export { default as LoginIcon } from "./LoginIcon";
207+
export { default as PendingItemsIcon } from "./PendingItemsIcon";
208+
export { default as PublicIcon } from "./PublicIcon";
209+
export { default as KeyIcon } from "./KeyIcon";
210+
export { default as WebhookIcon } from "./WebhookIcon";
211+
export { default as ExpandIcon } from "./ExpandIcon";
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from "react";
2+
import { WizardProps } from "./Wizard.types";
3+
declare const GenericWizard: ({
4+
wizardSteps,
5+
loadingStep,
6+
forModal,
7+
linearMode,
8+
sx,
9+
}: WizardProps) => React.JSX.Element | null;
10+
export default GenericWizard;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React from "react";
2+
import { CSSObject } from "styled-components";
3+
export interface WizardButton {
4+
label?: string;
5+
type?: "next" | "back" | "to" | "custom";
6+
action?: (nextFunction: (to: string | number) => void) => void;
7+
enabled?: boolean;
8+
toPage?: number;
9+
componentRender?: React.ReactNode;
10+
}
11+
export interface WizardElement {
12+
label: string;
13+
componentRender: any;
14+
buttons: WizardButton[];
15+
advancedOnly?: boolean;
16+
loadingStep?: boolean;
17+
}
18+
export interface WizardPage {
19+
page: WizardElement;
20+
pageChange: (to: string | number) => void;
21+
loadingStep?: boolean;
22+
}
23+
export interface WizardMain {
24+
loadingStep?: boolean;
25+
wizardSteps: WizardElement[];
26+
linearMode?: boolean;
27+
}
28+
export interface WizardConstruct {
29+
sx?: CSSObject;
30+
forModal?: boolean;
31+
}
32+
export type WizardProps = WizardMain & WizardConstruct;
33+
export type WizardPageProps = WizardPage & WizardConstruct;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import { WizardPageProps } from "./Wizard.types";
3+
declare const WizardPage: ({
4+
page,
5+
pageChange,
6+
loadingStep,
7+
forModal,
8+
}: WizardPageProps) => React.JSX.Element;
9+
export default WizardPage;

dist/cjs/types/components/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export { default as Snackbar } from "./Snackbar/Snackbar";
4646
export { default as Accordion } from "./Accordion/Accordion";
4747
export { default as HelpTip } from "./HelpTip/HelpTip";
4848
export { default as Autocomplete } from "./Autocomplete/Autocomplete";
49+
export { default as Badge } from "./Badge/Badge";
50+
export { default as Wizard } from "./Wizard/Wizard";
4951
export * from "./Icons";
5052
export * from "./Icons/SidebarMenus";
5153
export * from "./Icons/FileIcons";
@@ -91,3 +93,5 @@ export * from "./Snackbar/Snackbar.types";
9193
export * from "./Accordion/Accordion.types";
9294
export * from "./HelpTip/HelpTip.types";
9395
export * from "./Autocomplete/Autocomplete.types";
96+
export * from "./Badge/Badge.types";
97+
export * from "./Wizard/Wizard.types";

dist/cjs/types/global/global.types.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,29 @@ export interface InformativeMessageProps {
247247
warning: InformativeColorElements;
248248
error: InformativeColorElements;
249249
}
250+
export interface BadgeColorElements {
251+
backgroundColor: string;
252+
textColor: string;
253+
}
254+
export interface BadgeStyleProps {
255+
alert: BadgeColorElements;
256+
default: BadgeColorElements;
257+
secondary: BadgeColorElements;
258+
warn: BadgeColorElements;
259+
ok: BadgeColorElements;
260+
grey: BadgeColorElements;
261+
}
262+
export interface WizardStepColorProps {
263+
stepLabelColor: string;
264+
selectedStepBG: string;
265+
selectedStepLabelColor: string;
266+
disabledLabelColor: string;
267+
}
268+
export interface WizardColorProps {
269+
stepsBackground: string;
270+
vertical: WizardStepColorProps;
271+
modal: WizardStepColorProps;
272+
}
250273
export interface ThemeDefinitionProps {
251274
bgColor: string;
252275
fontColor: string;
@@ -289,6 +312,8 @@ export interface ThemeDefinitionProps {
289312
tag?: TagThemeProps;
290313
snackbar?: SnackBarThemeProps;
291314
informativeMessage?: InformativeMessageProps;
315+
badge?: BadgeStyleProps;
316+
wizard?: WizardColorProps;
292317
}
293318
export interface SelectorType {
294319
label: string;

0 commit comments

Comments
 (0)