Skip to content

Commit

Permalink
Release v0.4.0 (#291)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perez <[email protected]>
  • Loading branch information
bexsoft authored Apr 28, 2023
1 parent 33eb902 commit 9984393
Show file tree
Hide file tree
Showing 69 changed files with 9,931 additions and 6,536 deletions.
6,832 changes: 4,149 additions & 2,683 deletions dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/cjs/types/components/ActionsList/ActionsList.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { ActionsListProps } from "./ActionsList.types";
declare const ActionsList: FC<ActionsListProps>;
export default ActionsList;
22 changes: 22 additions & 0 deletions dist/cjs/types/components/ActionsList/ActionsList.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface ActionItem {
action: () => void;
label: string;
disabled: boolean;
icon: React.ReactNode;
tooltip: string;
}
export interface ActionsListProps {
sx?: CSSObject;
items: ActionItem[];
title: React.ReactNode;
}
export interface ActionsListPanelProps {
sx?: CSSObject;
}
export interface ActionButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
label: string;
icon: React.ReactNode;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/ActionsList/ObjectActionButton.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { ActionButtonProps } from "./ActionsList.types";
declare const ObjectActionButton: FC<ActionButtonProps>;
export default ObjectActionButton;
2 changes: 2 additions & 0 deletions dist/cjs/types/components/Box/Box.types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ export interface BoxProps {
sx?: CSSObject;
children?: React.ReactNode;
withBorders?: boolean;
customBorderPadding?: number | string;
useBackground?: boolean;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/Breadcrumbs/Breadcrumbs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { BreadcrumbsProps } from "./Breadcrumbs.types";
declare const Breadcrumbs: FC<BreadcrumbsProps>;
export default Breadcrumbs;
11 changes: 11 additions & 0 deletions dist/cjs/types/components/Breadcrumbs/Breadcrumbs.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface BreadcrumbsProps {
sx?: CSSObject;
children: React.ReactNode;
additionalOptions?: React.ReactNode;
goBackFunction: () => void;
}
export interface BreadcrumbsContainerProps {
sx?: CSSObject;
}
2 changes: 1 addition & 1 deletion dist/cjs/types/components/Checkbox/Checkbox.types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export interface CheckboxProps extends HTMLAttributes<HTMLInputElement> {
label?: string;
tooltip?: string;
overrideLabelClasses?: string;
overrideCheckboxStyles?: CSSObject;
sx?: CSSObject;
}
3 changes: 3 additions & 0 deletions dist/cjs/types/components/DataTable/DataTable.types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { HTMLAttributes } from "react";
import { CSSObject } from "styled-components";
export interface ItemActions {
label?: string;
type: string | any;
Expand Down Expand Up @@ -59,11 +60,13 @@ export interface DataTableProps {
index: number;
}) => "deleted" | "" | React.CSSProperties;
parentClassName?: string;
sx?: CSSObject;
}
export interface DataTableWrapperProps extends HTMLAttributes<HTMLDivElement> {
disabled?: boolean;
customPaperHeight?: string | number;
noBackground?: boolean;
sx?: CSSObject;
}
export interface IActionButton {
label?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { DropdownSelectorProps } from "./DropdownSelector.types";
declare const DropdownSelector: FC<DropdownSelectorProps>;
export default DropdownSelector;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { SelectorType } from "../../global/global.types";
import { CSSObject } from "styled-components";
export interface DropdownSelectorProps {
options: SelectorType[];
selectedOption: string;
onSelect: (value: string) => void;
hideTriggerAction: () => void;
open: boolean;
anchorEl?: (EventTarget & HTMLDivElement) | null;
}
export interface DropDownBlockProps {
sx: CSSObject;
}
5 changes: 3 additions & 2 deletions dist/cjs/types/components/IconButton/IconButton.types.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface IconButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
export interface IconBase {
label?: string;
size?: "small" | "medium" | "large" | string;
sx?: CSSObject;
children: React.ReactNode;
}
export type IconButtonProps = IconBase &
React.ButtonHTMLAttributes<HTMLButtonElement>;
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export interface LoginWrapperProps {
formFooter?: ReactNode;
promoHeader?: ReactNode;
promoInfo?: ReactNode;
disableAnimation?: boolean;
backgroundAnimation?: boolean;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/ModalBox/ModalBox.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { ModalBoxProps } from "./ModalBox.types";
declare const ModalBox: FC<ModalBoxProps>;
export default ModalBox;
21 changes: 21 additions & 0 deletions dist/cjs/types/components/ModalBox/ModalBox.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface ModalBoxProps {
onClose: () => void;
open: boolean;
title: React.ReactNode;
children: React.ReactNode;
widthLimit?: boolean;
titleIcon?: React.ReactNode;
backgroundOverlay?: boolean;
iconColor?: "accept" | "delete" | "default";
customMaxWidth?: number | string;
sx?: CSSObject;
}
export interface ModalBoxContainerProps {
backgroundOverlay?: boolean;
widthLimit?: boolean;
iconColor?: "accept" | "delete" | "default";
customMaxWidth?: number | string;
sx?: CSSObject;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/RadioGroup/RadioGroup.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { RadioGroupProps } from "./RadioGroup.types";
declare const RadioGroup: FC<RadioGroupProps>;
export default RadioGroup;
19 changes: 19 additions & 0 deletions dist/cjs/types/components/RadioGroup/RadioGroup.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import { CSSObject } from "styled-components";
import { SelectorType } from "../../global/global.types";
export interface RadioGroupProps {
label?: string;
tooltip?: string;
selectorOptions: SelectorType[];
currentValue: string;
id: string;
name: string;
disableOptions?: boolean;
displayInColumn?: boolean;
className?: string;
onChange: React.ChangeEventHandler<HTMLInputElement>;
sx?: CSSObject;
}
export interface OptionsContainerProps {
inColumn: boolean;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/ReadBox/ReadBox.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { ReadBoxProps } from "./ReadBox.types";
declare const ReadBox: FC<ReadBoxProps>;
export default ReadBox;
14 changes: 14 additions & 0 deletions dist/cjs/types/components/ReadBox/ReadBox.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface ReadBoxProps {
label?: string;
children: React.ReactNode;
multiLine?: boolean;
actionButton?: React.ReactNode;
sx?: CSSObject;
}
export interface ReadBoxBaseProps {
label?: string;
sx?: CSSObject;
multiLine?: boolean;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/ScreenTitle/ScreenTitle.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { ScreenTitleProps } from "./ScreenTitle.types";
declare const ScreenTitle: FC<ScreenTitleProps>;
export default ScreenTitle;
14 changes: 14 additions & 0 deletions dist/cjs/types/components/ScreenTitle/ScreenTitle.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface ScreenTitleProps {
icon: React.ReactNode;
subTitle: React.ReactNode;
title: string;
actions: React.ReactNode;
sx?: CSSObject;
bottomBorder?: boolean;
}
export interface ScreenTitleContainerProps {
sx?: CSSObject;
bottomBorder?: boolean;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/Select/Select.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { SelectProps } from "./Select.types";
declare const Select: FC<SelectProps>;
export default Select;
16 changes: 16 additions & 0 deletions dist/cjs/types/components/Select/Select.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { CSSObject } from "styled-components";
import { SelectorType } from "../../global/global.types";
export interface SelectProps {
options: SelectorType[];
value: string;
id: string;
name?: string;
required?: boolean;
className?: string;
disabled?: boolean;
label?: string;
tooltip?: string;
noLabelMinWidth?: boolean;
onChange: (newValue: string) => void;
sx?: CSSObject;
}
4 changes: 4 additions & 0 deletions dist/cjs/types/components/SimpleHeader/SimpleHeader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { FC } from "react";
import { SimpleHeaderProps } from "./SimpleHeader.types";
declare const SimpleHeader: FC<SimpleHeaderProps>;
export default SimpleHeader;
10 changes: 10 additions & 0 deletions dist/cjs/types/components/SimpleHeader/SimpleHeader.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface SimpleHeaderProps {
label: React.ReactNode;
icon?: React.ReactNode;
sx?: CSSObject;
}
export interface SimpleHeaderContainerProps {
sx?: CSSObject;
}
6 changes: 6 additions & 0 deletions dist/cjs/types/components/Switch/Switch.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React, { FC } from "react";
import { SwitchProps } from "./Switch.types";
declare const Switch: FC<
SwitchProps & React.InputHTMLAttributes<HTMLInputElement>
>;
export default Switch;
21 changes: 21 additions & 0 deletions dist/cjs/types/components/Switch/Switch.types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import { CSSObject } from "styled-components";
export interface MainSwitchProps {
id: string;
label?: string;
tooltip?: string;
sx?: CSSObject;
className?: string;
switchOnly?: boolean;
indicatorLabels?: string[];
description?: string;
}
export interface IndicatorProps {
on: boolean;
children: React.ReactNode;
}
export interface SwitchContainerProps {
sx?: CSSObject;
}
export type SwitchProps = MainSwitchProps &
React.InputHTMLAttributes<HTMLInputElement>;
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { ReactNode } from "react";
import { ThemeDefinitionProps } from "../../global/global.types";
export interface ThemeHandlerProps {
darkMode?: boolean;
customTheme?: ThemeDefinitionProps;
children: ReactNode;
}
6 changes: 5 additions & 1 deletion dist/cjs/types/components/Tooltip/Tooltip.types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export interface TooltipProps {
errorProps?: any;
placement?: "bottom" | "left" | "right" | "top";
}
export interface TooltipBuild {
placement: "bottom" | "left" | "right" | "top";
}
export interface TooltipConstructProps {
placement: "bottom" | "left" | "right" | "top";
children: React.ReactNode;
content: React.ReactNode;
anchorEl: (EventTarget & HTMLSpanElement) | null;
}
10 changes: 10 additions & 0 deletions dist/cjs/types/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ export { default as FormLayout } from "./FormLayout/FormLayout";
export { default as PageLayout } from "./PageLayout/PageLayout";
export { default as MainContainer } from "./MainContainer/MainContainer";
export { default as InputBox } from "./InputBox/InputBox";
export { default as Breadcrumbs } from "./Breadcrumbs/Breadcrumbs";
export { default as ActionsList } from "./ActionsList/ActionsList";
export { default as SimpleHeader } from "./SimpleHeader/SimpleHeader";
export { default as ScreenTitle } from "./ScreenTitle/ScreenTitle";
export { default as ModalBox } from "./ModalBox/ModalBox";
export { default as Switch } from "./Switch/Switch";
export { default as Select } from "./Select/Select";
export { default as DropdownSelector } from "./DropdownSelector/DropdownSelector";
export { default as RadioGroup } from "./RadioGroup/RadioGroup";
export { default as ReadBox } from "./ReadBox/ReadBox";
export * from "./Icons";
export * from "./Icons/SidebarMenus";
export * from "./Icons/FileIcons";
Loading

0 comments on commit 9984393

Please sign in to comment.