pixelize-design-library 1.0.12 → 1.0.13

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.
Files changed (78) hide show
  1. package/dist/App.d.ts +3 -0
  2. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.d.ts +3 -0
  3. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.d.ts +4 -0
  4. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.d.ts +19 -0
  5. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.d.ts +3 -0
  6. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.d.ts +4 -0
  7. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.d.ts +17 -0
  8. package/dist/Components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  9. package/dist/Components/Breadcrumbs/Breadcrumbs.stories.d.ts +4 -0
  10. package/dist/Components/Breadcrumbs/BreadcrumbsProps.d.ts +11 -0
  11. package/dist/Components/Button/Button.d.ts +3 -0
  12. package/dist/Components/Button/Button.stories.d.ts +6 -0
  13. package/dist/Components/Button/ButtonProps.d.ts +9 -0
  14. package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.d.ts +13 -0
  15. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +3 -0
  16. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.d.ts +4 -0
  17. package/dist/Components/Checkbox/Checkbox.d.ts +4 -0
  18. package/dist/Components/Checkbox/Checkbox.stories.d.ts +6 -0
  19. package/dist/Components/Checkbox/CheckboxProps.d.ts +8 -0
  20. package/dist/Components/Input/TextInput.d.ts +3 -0
  21. package/dist/Components/Input/TextInput.stories.d.ts +6 -0
  22. package/dist/Components/Input/TextInputProps.d.ts +14 -0
  23. package/dist/Components/InputTextArea/InputTextArea.d.ts +3 -0
  24. package/dist/Components/InputTextArea/InputTextArea.stories.d.ts +6 -0
  25. package/dist/Components/InputTextArea/InputTextAreaProps.d.ts +10 -0
  26. package/dist/Components/Loading/Loading.d.ts +3 -0
  27. package/dist/Components/Loading/Loading.stories.d.ts +4 -0
  28. package/dist/Components/Loading/LoadingProps.d.ts +4 -0
  29. package/dist/Components/Modal/Modal.d.ts +3 -0
  30. package/dist/Components/Modal/Modal.stories.d.ts +8 -0
  31. package/dist/Components/Modal/ModalProps.d.ts +11 -0
  32. package/dist/Components/NavigationBar/NavBar.stories.d.ts +4 -0
  33. package/dist/Components/NavigationBar/NavigationBar.d.ts +3 -0
  34. package/dist/Components/NavigationBar/NavigationBarProps.d.ts +12 -0
  35. package/dist/Components/NumberInput/NumberInput.d.ts +3 -0
  36. package/dist/Components/NumberInput/NumberInput.stories.d.ts +3 -0
  37. package/dist/Components/NumberInput/NumberInputProps.d.ts +12 -0
  38. package/dist/Components/PinInput/PinInput.d.ts +3 -0
  39. package/dist/Components/PinInput/PinInput.stories.d.ts +6 -0
  40. package/dist/Components/PinInput/PinInputProps.d.ts +9 -0
  41. package/dist/Components/ProfileCard/ProfileCard.d.ts +3 -0
  42. package/dist/Components/ProfileCard/ProfileCard.stories.d.ts +4 -0
  43. package/dist/Components/ProfileCard/ProfileCardProps.d.ts +14 -0
  44. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.d.ts +3 -0
  45. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.d.ts +4 -0
  46. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.d.ts +14 -0
  47. package/dist/Components/ProgressBar/ProgressBar.d.ts +3 -0
  48. package/dist/Components/ProgressBar/ProgressBar.stories.d.ts +4 -0
  49. package/dist/Components/ProgressBar/ProgressBarProps.d.ts +6 -0
  50. package/dist/Components/RadioButton/RadioButton.d.ts +5 -0
  51. package/dist/Components/RadioButton/RadioButton.stories.d.ts +14 -0
  52. package/dist/Components/RadioButton/RadioButtonProps.d.ts +11 -0
  53. package/dist/Components/Select/Select.d.ts +3 -0
  54. package/dist/Components/Select/Select.stories.d.ts +6 -0
  55. package/dist/Components/Select/SelectProps.d.ts +13 -0
  56. package/dist/Components/SideBar/SideBar.d.ts +3 -0
  57. package/dist/Components/SideBar/SideBarProps.d.ts +20 -0
  58. package/dist/Components/SideBar/Sidebar.stories.d.ts +4 -0
  59. package/dist/Components/Skeletons/Skeleton.stories.d.ts +6 -0
  60. package/dist/Components/Skeletons/SkeletonProps.d.ts +4 -0
  61. package/dist/Components/Skeletons/Skeletons.d.ts +3 -0
  62. package/dist/Components/Table/Table.d.ts +3 -0
  63. package/dist/Components/Table/Table.stories.d.ts +4 -0
  64. package/dist/Components/Table/TableProps.d.ts +33 -0
  65. package/dist/Components/Toaster/Toaster.d.ts +4 -0
  66. package/dist/Components/Toaster/Toaster.stories.d.ts +8 -0
  67. package/dist/Components/Toaster/ToasterProps.d.ts +12 -0
  68. package/dist/Components/ToolTip/ToolTip.d.ts +3 -0
  69. package/dist/Components/ToolTip/ToolTip.stories.d.ts +5 -0
  70. package/dist/Components/ToolTip/ToolTipProps.d.ts +6 -0
  71. package/dist/Layout.d.ts +3 -0
  72. package/dist/Theme/Dark/theme.d.ts +2 -0
  73. package/dist/Theme/Default/theme.d.ts +2 -0
  74. package/dist/Theme/index.d.ts +3 -0
  75. package/dist/bootstrap.d.ts +1 -0
  76. package/dist/index.d.ts +2 -0
  77. package/package.json +1 -1
  78. package/tsconfig.json +1 -0
package/dist/App.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare function App(): React.JSX.Element;
3
+ export default App;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ApexBarChartProps } from "./ApexBarChartProps";
3
+ export default function ApexBarChart({ data, Labels, title, titlePosition, height, width, barColor, xAxisStyle, yAxisStyle, titleStyle, }: ApexBarChartProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ApexBarChartProps } from './ApexBarChartProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ApexBarChartProps>;
@@ -0,0 +1,19 @@
1
+ export type ApexBarChartProps = {
2
+ data: number[];
3
+ Labels: string[];
4
+ title?: string;
5
+ titlePosition?: 'left' | 'center' | 'right';
6
+ height?: number;
7
+ width?: number;
8
+ barColor?: string[];
9
+ xAxisStyle?: StyleProps;
10
+ yAxisStyle?: StyleProps;
11
+ titleStyle?: StyleProps;
12
+ };
13
+ type StyleProps = {
14
+ fontSize?: string;
15
+ fontFamily?: string;
16
+ fontWeight?: string | number;
17
+ color?: string;
18
+ };
19
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ApexPieChartProps } from "./ApexPieChartProps";
3
+ export default function ApexPieChart({ data, labels, title, titlePosition, height, width, chartColor, titleStyle, }: ApexPieChartProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ApexPieChartProps } from './ApexPieChartProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ApexPieChartProps>;
@@ -0,0 +1,17 @@
1
+ export type ApexPieChartProps = {
2
+ data: number[];
3
+ labels: string[];
4
+ title?: string;
5
+ titlePosition?: 'left' | 'center' | 'right';
6
+ height?: number;
7
+ width?: number;
8
+ chartColor?: string[];
9
+ titleStyle?: StyleProps;
10
+ };
11
+ type StyleProps = {
12
+ fontSize?: string;
13
+ fontFamily?: string;
14
+ fontWeight?: string | number;
15
+ color?: string;
16
+ };
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { BreadcrumbsProps } from "./BreadcrumbsProps";
3
+ export default function Breadcrumbs({ spacing, separator, fontWeight, fontSize, isCurrentPage, handleClick, items }: BreadcrumbsProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { BreadcrumbsProps } from './BreadcrumbsProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, BreadcrumbsProps>;
@@ -0,0 +1,11 @@
1
+ import { BreadcrumbProps } from "@chakra-ui/react";
2
+ export type BreadcrumbsProps = Pick<BreadcrumbProps, "spacing" | "separator" | "fontWeight" | "fontSize"> & {
3
+ isCurrentPage?: boolean;
4
+ isLastChild?: boolean;
5
+ handleClick: (path: string) => void;
6
+ items: BreadcrumbItem[];
7
+ };
8
+ export type BreadcrumbItem = {
9
+ path: string;
10
+ label: string;
11
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ButtonProps } from './ButtonProps';
3
+ export default function Button({ label, width, onClick, color, variant, leftIcon, rightIcon, size, isDisabled, isLoading, loadingText, type }: ButtonProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Button from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,9 @@
1
+ import { ButtonProps as ChakraButtonProps } from "@chakra-ui/react";
2
+ export type ButtonProps = Pick<ChakraButtonProps, "onClick" | "leftIcon" | "rightIcon" | "isDisabled" | "isLoading" | "loadingText" | "colorScheme" | "spinner"> & {
3
+ label?: string;
4
+ width?: string | number;
5
+ size?: "lg" | "md" | "sm" | "xs";
6
+ variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
7
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
8
+ type?: "button" | "submit" | "reset";
9
+ };
@@ -0,0 +1,13 @@
1
+ import { ReactElement } from "react";
2
+ export type ButtonGroupIconProps = {
3
+ leftIcon?: ReactElement;
4
+ rightIcon?: ReactElement;
5
+ onLeftIconClick?: () => void;
6
+ onRightIconClick?: () => void;
7
+ buttonText: string;
8
+ onButtonClick?: () => void;
9
+ onButtongroupClick?: () => void;
10
+ size?: "lg" | "md" | "sm" | "xs";
11
+ variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
12
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
13
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ButtonGroupIconProps } from "./ButtonGoupIconProps";
3
+ export default function ButtonGroupIcon({ leftIcon, rightIcon, onLeftIconClick, onRightIconClick, buttonText, onButtonClick, onButtongroupClick, size, variant, color }: ButtonGroupIconProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ButtonGroupIconProps } from './ButtonGoupIconProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ButtonGroupIconProps>;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { CheckboxProps } from './CheckboxProps';
3
+ declare const CheckBox: FC<CheckboxProps>;
4
+ export default CheckBox;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import CheckBox from './Checkbox';
3
+ declare const meta: Meta<typeof CheckBox>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Check_box: Story;
@@ -0,0 +1,8 @@
1
+ import { CheckboxProps as ChakraButtonProps } from "@chakra-ui/react";
2
+ export type CheckboxProps = Pick<ChakraButtonProps, 'spacing' | 'isInvalid' | 'size' | 'iconColor' | 'iconSize' | 'isChecked' | 'isIndeterminate' | 'onChange' | 'isDisabled' | 'value' | 'defaultChecked'> & {
3
+ label?: string;
4
+ width?: string | number;
5
+ variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
6
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
7
+ size?: "sm" | "md" | "lg";
8
+ };
@@ -0,0 +1,3 @@
1
+ import { TextInputProps } from "./TextInputProps";
2
+ import React from "react";
3
+ export default function TextInput({ label, type, id, name, onChange, onBlur, onFocus, isDisabled, isReadOnly, isRequired, value, placeholder, width, error, errorMessage, helperText, onRightIconclick, inputRightIcon, inputGroupStyle, inputStyle, }: TextInputProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TextInput from './TextInput';
3
+ declare const meta: Meta<typeof TextInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from "@chakra-ui/react";
3
+ export type TextInputProps = Pick<InputProps, "value" | "type" | "onChange" | "placeholder" | "onBlur" | "onFocus" | "isDisabled" | "isRequired" | "isReadOnly" | "width" | "errorBorderColor"> & {
4
+ label?: string;
5
+ id?: string;
6
+ name?: string;
7
+ error?: boolean;
8
+ errorMessage?: string;
9
+ helperText?: string;
10
+ onRightIconclick?: () => void;
11
+ inputRightIcon?: JSX.Element | string;
12
+ inputStyle?: {};
13
+ inputGroupStyle?: {};
14
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { InputTextAreaProps } from './InputTextAreaProps';
3
+ export default function InputTextArea({ label, placeholder, value, onChange, size, resize, width, isDisabled, errorBorderColor, focusBorderColor, isReadOnly, isRequired, error, errorMessage, helperText, rows, height }: InputTextAreaProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react/*";
2
+ import InputTextArea from "./InputTextArea";
3
+ declare const meta: Meta<typeof InputTextArea>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,10 @@
1
+ import { TextareaProps } from "@chakra-ui/react";
2
+ export type InputTextAreaProps = Pick<TextareaProps, "placeholder" | "value" | "onChange" | "size" | "resize" | "isDisabled" | "errorBorderColor" | "focusBorderColor" | "isReadOnly" | "isRequired" | "variant"> & {
3
+ label?: string;
4
+ error?: boolean;
5
+ errorMessage?: string;
6
+ helperText?: string;
7
+ width?: string | number;
8
+ rows?: number;
9
+ height?: string | number;
10
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { LoadingProps } from "./LoadingProps";
3
+ export default function Loading({ text, isLoading }: LoadingProps): React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import { LoadingProps } from './LoadingProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Interactive: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, LoadingProps>;
@@ -0,0 +1,4 @@
1
+ export type LoadingProps = {
2
+ text?: string;
3
+ isLoading: boolean;
4
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ChakraModelProps } from "./ModalProps";
3
+ export default function Modal({ size, isOpen, onClose, title, footer, overlaybg, overlaybackdropFilter, overlaybackdropInvert, overlaybackdropBlur, isCentered, finalFocusRef, blockScrollOnMount, initialFocusRef, closeOnOverlayClick, motionPreset, scrollBehavior, children, }: ChakraModelProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ChakraModelProps } from './ModalProps';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ interface StoryProps extends ChakraModelProps {
6
+ footer: React.ReactNode;
7
+ }
8
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, StoryProps>;
@@ -0,0 +1,11 @@
1
+ import { ModalProps } from "@chakra-ui/react";
2
+ export type ChakraModelProps = Pick<ModalProps, "isOpen" | "onClose" | "finalFocusRef" | "blockScrollOnMount" | "initialFocusRef" | "closeOnOverlayClick" | "isCentered" | "motionPreset" | "scrollBehavior"> & {
3
+ title?: string;
4
+ footer?: any;
5
+ overlaybg?: string;
6
+ overlaybackdropFilter?: string;
7
+ overlaybackdropInvert?: string;
8
+ overlaybackdropBlur?: string;
9
+ size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
10
+ children?: any;
11
+ };
@@ -0,0 +1,4 @@
1
+ import { NavbarProps } from './NavigationBarProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, NavbarProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { NavbarProps } from "./NavigationBarProps";
3
+ export default function NavBar({ userAvathar, userName, navMenu, handleNavOnClick, handleLogout, logoutText }: NavbarProps): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ export type NavbarProps = {
2
+ userAvathar: string;
3
+ userName: string;
4
+ navMenu: MenuProps[];
5
+ handleNavOnClick: (url: string) => void;
6
+ handleLogout: () => void;
7
+ logoutText: string;
8
+ };
9
+ export type MenuProps = {
10
+ title: string;
11
+ url: string;
12
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { NumberInputProps } from "./NumberInputProps";
3
+ export default function NumberInput({ defaultValue, min, max, precision, step, clampValueOnBlur, keepWithinRange, value, onChange, size, maxW, allowMouseWheel, NumberIncrementStepperBg, NumberIncrementStepperActive, NumberIncrementStepperChildren, NumberDecrementStepperBg, NumberDecrementStepperChildren, NumberDecrementStepperActive }: NumberInputProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
@@ -0,0 +1,12 @@
1
+ import { NumberInputProps as chakraNumbetInpurProps } from "@chakra-ui/react";
2
+ export type NumberInputProps = Pick<chakraNumbetInpurProps, "defaultValue" | "min" | "max" | "precision" | "step" | "clampValueOnBlur" | "keepWithinRange" | "value" | "onChange" | "size" | "maxW" | "allowMouseWheel"> & {
3
+ NumberIncrementStepperBg?: string;
4
+ NumberIncrementStepperActive?: ActiveStyle;
5
+ NumberIncrementStepperChildren?: string;
6
+ NumberDecrementStepperBg?: string;
7
+ NumberDecrementStepperChildren?: string;
8
+ NumberDecrementStepperActive?: ActiveStyle;
9
+ };
10
+ export type ActiveStyle = {
11
+ bg: string;
12
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ChakraPinInputProps } from "./PinInputProps";
3
+ export default function PinInputs({ otp, mask, defaultValue, placeholder, manageFocus, errorBorderColor, focusBorderColor, onChange, onComplete, type, color, variant, pins, label }: ChakraPinInputProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ChakraPinInputProps } from './PinInputProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ChakraPinInputProps>;
5
+ export declare const Masked: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ChakraPinInputProps>;
6
+ export declare const SixPins: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ChakraPinInputProps>;
@@ -0,0 +1,9 @@
1
+ import { PinInputProps } from "@chakra-ui/react";
2
+ export type ChakraPinInputProps = Pick<PinInputProps, "otp" | "mask" | "defaultValue" | "placeholder" | "manageFocus" | "errorBorderColor" | "focusBorderColor" | "onChange" | "onComplete"> & {
3
+ type?: "alphanumeric" | "number";
4
+ size?: "xs" | "sm" | "md" | "lg";
5
+ variant?: "flushed" | "outline" | "filled" | "unstyled";
6
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
7
+ pins: number;
8
+ label?: string;
9
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ProfileCardProps } from "./ProfileCardProps";
3
+ export default function ProfileCard({ key, maxW, align, variant, direction, justify, header, footer, children, size, color, overflow, dividercolor, dividersize, dividervariant, }: ProfileCardProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ProfileCardProps } from './ProfileCardProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ProfileCardProps>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from "@chakra-ui/react";
3
+ export type ProfileCardProps = Pick<CardProps, "direction" | "maxW" | "align" | "justify" | "overflow"> & {
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ children: React.ReactNode;
7
+ variant?: "elevated" | "outlein" | "filled" | "unstyled";
8
+ size?: "sm" | "md" | "lg";
9
+ color?: "whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
10
+ key?: string;
11
+ dividercolor?: "whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
12
+ dividersize?: string;
13
+ dividervariant?: "solid" | "dashed";
14
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ProfilePhotoViewerProps } from "./ProfilePhotoViewerProps";
3
+ export default function ProfilePhotoViewer({ photoUrl, onPhotoChange, imageWidth, imageAlt, imageObjectFit, imageBorderRadius, editIconSize, editIconPositionRight, editIconPositionBottom, isRound, boxStyle }: ProfilePhotoViewerProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ProfilePhotoViewerProps } from './ProfilePhotoViewerProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ProfilePhotoViewerProps>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export type ProfilePhotoViewerProps = {
3
+ photoUrl: string;
4
+ onPhotoChange: (photoUrl: File) => void;
5
+ imageWidth?: string;
6
+ imageAlt?: string;
7
+ imageObjectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
8
+ imageBorderRadius?: string;
9
+ editIconSize?: string;
10
+ editIconPositionRight?: string;
11
+ editIconPositionBottom?: string;
12
+ isRound?: boolean;
13
+ boxStyle?: React.CSSProperties;
14
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ProgressBarProps } from "./ProgressBarProps";
3
+ export default function ProgressBar({ size, isIndeterminate, color, hasStripe, height, value, isAnimated, max, min, variant, }: ProgressBarProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ProgressBarProps } from "./ProgressBarProps";
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ProgressBarProps>;
@@ -0,0 +1,6 @@
1
+ import { ProgressProps } from "@chakra-ui/react";
2
+ export type ProgressBarProps = Pick<ProgressProps, "size" | "isIndeterminate" | "value" | "height" | "hasStripe" | "isAnimated" | "max" | "min"> & {
3
+ color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
4
+ variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
5
+ size?: "lg" | "md" | "sm" | "xs";
6
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ChakraRadioProps, ChakraRadioGroupProps } from './RadioButtonProps';
3
+ declare const RadioButton: ({ label, colorScheme, isChecked, onChange, isDisabled, size, value, defaultChecked, }: ChakraRadioProps) => React.JSX.Element;
4
+ declare const RadioButtonGroup: ({ options, onChange, value, defaultValue, isDisabled, size, colorScheme, }: ChakraRadioGroupProps) => React.JSX.Element;
5
+ export { RadioButton, RadioButtonGroup };
@@ -0,0 +1,14 @@
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, Pick<import("@chakra-ui/radio/dist/radio").RadioProps, "isDisabled" | "colorScheme" | "value" | "defaultChecked" | "onChange" | "size" | "isChecked"> & {
2
+ label: string;
3
+ }>;
4
+ export default _default;
5
+ export declare const SingleRadioButton: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, Pick<import("@chakra-ui/radio/dist/radio").RadioProps, "isDisabled" | "colorScheme" | "value" | "defaultChecked" | "onChange" | "size" | "isChecked"> & {
6
+ label: string;
7
+ }>;
8
+ export declare const RadioButtonGroupStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, Pick<import("@chakra-ui/radio/dist/radio-group").RadioGroupProps, "isDisabled" | "colorScheme" | "value" | "defaultValue" | "size"> & {
9
+ options: {
10
+ label: string;
11
+ value: string;
12
+ }[];
13
+ onChange?: ((value: string) => void) | undefined;
14
+ }>;
@@ -0,0 +1,11 @@
1
+ import { RadioProps, RadioGroupProps } from '@chakra-ui/react';
2
+ export type ChakraRadioProps = Pick<RadioProps, "size" | "colorScheme" | "isChecked" | "onChange" | "isDisabled" | "value" | "defaultChecked"> & {
3
+ label: string;
4
+ };
5
+ export type ChakraRadioGroupProps = Pick<RadioGroupProps, "size" | "colorScheme" | "isDisabled" | "defaultValue" | "value"> & {
6
+ options: {
7
+ label: string;
8
+ value: string;
9
+ }[];
10
+ onChange?: (value: string) => void;
11
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { chakraSelectProps } from "./SelectProps";
3
+ export default function Select({ placeholder, size, variant, icon, bg, borderColor, color, error, isRequired, label, errorMessage, helperText, options, value, onChange, width, }: chakraSelectProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react';
2
+ import Select from './Select';
3
+ import { chakraSelectProps } from './SelectProps';
4
+ declare const meta: Meta<typeof Select>;
5
+ export default meta;
6
+ export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, chakraSelectProps>;
@@ -0,0 +1,13 @@
1
+ import { SelectProps } from "@chakra-ui/react";
2
+ export type chakraSelectProps = Pick<SelectProps, "placeholder" | "size" | "variant" | "icon" | "bg" | "borderColor" | "color" | "onChange" | "onBlur" | "onFocus" | "errorBorderColor" | "isDisabled" | "isReadOnly" | "isRequired" | "value"> & {
3
+ label?: string;
4
+ error?: boolean;
5
+ errorMessage?: string;
6
+ helperText?: string;
7
+ options: OptionProp[];
8
+ width?: string | number;
9
+ };
10
+ export type OptionProp = {
11
+ id: string | number;
12
+ label: string | number;
13
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SidebarProps } from './SideBarProps';
3
+ export default function Sidebar({ menus, activeMenu, handleMenuClick, toggle, changeToggle, logo, companyName }: SidebarProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { IconType } from "react-icons";
2
+ export type SidebarProps = {
3
+ menus: Menu[];
4
+ activeMenu: string;
5
+ handleMenuClick: (title: string, url: string) => void;
6
+ toggle: boolean;
7
+ changeToggle: () => void;
8
+ logo: string;
9
+ companyName: string;
10
+ };
11
+ type Menu = {
12
+ title: string;
13
+ icon: IconType;
14
+ url: string;
15
+ subMenu?: {
16
+ title: string;
17
+ url: string;
18
+ }[];
19
+ };
20
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SidebarProps } from './SideBarProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, SidebarProps>;
@@ -0,0 +1,6 @@
1
+ import { SkeletonProps } from './SkeletonProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const DefaultSkeleton: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, SkeletonProps>;
5
+ export declare const SkeletonCircle: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, SkeletonProps>;
6
+ export declare const SkeletonText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, SkeletonProps>;
@@ -0,0 +1,4 @@
1
+ import { SkeletonProps as ChakraSkeleton, SkeletonTextProps } from "@chakra-ui/react";
2
+ export type SkeletonProps = Pick<ChakraSkeleton, "startColor" | "endColor" | "height" | "isLoaded" | "bg" | "color" | "fadeDuration" | "children" | "speed" | "size" | "mt" | "noOfLines" | "width"> & {
3
+ type: "skeleton" | "circle" | "text";
4
+ } & Partial<Pick<SkeletonTextProps, "spacing" | "skeletonHeight">>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SkeletonProps } from "./SkeletonProps";
3
+ export default function Skeletons({ startColor, endColor, height, isLoaded, bg, color, fadeDuration, children, type, speed, size, mt, noOfLines, spacing, skeletonHeight, width }: SkeletonProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { TableProps } from "./TableProps";
3
+ export default function Table({ data, headers, tableHeaderBgColor, tableHeaderColor, handleExportChange, exportOptions, exportLabel, isLoading, loadingContaxt, loadingBoxStyle, }: TableProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { TableProps } from './TableProps';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, TableProps>;
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from "react";
2
+ export type TableProps = {
3
+ data: DataObject[];
4
+ headers: TableHeader[];
5
+ tableHeaderBgColor?: string;
6
+ tableHeaderColor?: string;
7
+ handleExportChange?: (value: string) => void | undefined;
8
+ exportOptions?: ExportOption[];
9
+ exportLabel?: string;
10
+ isLoading?: boolean;
11
+ loadingType?: 'skeleton' | 'spinner';
12
+ loadingContaxt?: ReactNode;
13
+ loadingBoxStyle?: React.CSSProperties;
14
+ };
15
+ export type DataObject = {
16
+ id: number;
17
+ name: string;
18
+ email: string;
19
+ role: string;
20
+ [key: string]: string | number;
21
+ };
22
+ export type TableHeader = {
23
+ label: string;
24
+ accessor_key: string;
25
+ sort?: boolean;
26
+ search?: boolean;
27
+ columnFreeze?: boolean;
28
+ accessor_function?: (data: string | number) => JSX.Element | string | number;
29
+ };
30
+ export type ExportOption = {
31
+ label: string;
32
+ value: string;
33
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ToasterChildren, ToasterContextType } from './ToasterProps';
3
+ export default function ToasterProvider({ children }: ToasterChildren): React.JSX.Element;
4
+ export declare const useToaster: () => ToasterContextType;
@@ -0,0 +1,8 @@
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
2
+ export default _default;
3
+ interface StoryProps {
4
+ title: string;
5
+ status: 'info' | 'warning' | 'success' | 'error';
6
+ position: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
7
+ }
8
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, StoryProps>;
@@ -0,0 +1,12 @@
1
+ import { ToastProps } from "@chakra-ui/react";
2
+ import { ReactNode } from "react";
3
+ export type ToasterToastProps = Pick<ToastProps, 'description' | 'title' | 'isClosable' | 'duration' | 'children' | 'onClose'> & {
4
+ position?: "top" | "bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
5
+ status?: "success" | "error" | "warning" | "info" | "loading";
6
+ };
7
+ export interface ToasterContextType {
8
+ showToast: (children: ToasterToastProps) => void;
9
+ }
10
+ export interface ToasterChildren {
11
+ children: ReactNode;
12
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ToolTipProps } from "./ToolTipProps";
3
+ export default function ToolTip({ placement, label, children, hasArrow, fontSize, bg, color, isDisabled, isOpen, defaultIsOpen, openDelay, closeDelay, arrowSize, closeOnClick, size, width, height, arrowPadding, arrowShadowColor, direction, gutter, onClose, modifiers, closeOnPointerDown }: ToolTipProps): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ToolTipProps } from "./ToolTipProps";
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ToolTipProps>;
5
+ export declare const Customized: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, ToolTipProps>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { TooltipProps as ChakraTooltip } from "@chakra-ui/react";
3
+ export type ToolTipProps = Pick<ChakraTooltip, "placement" | "label" | "hasArrow" | "fontSize" | "bg" | "color" | "isDisabled" | "isOpen" | "defaultIsOpen" | "openDelay" | "closeDelay" | "arrowSize" | "closeOnClick" | "size" | "width" | "height" | "arrowPadding" | "arrowShadowColor" | "direction" | "gutter" | "onClose" | "modifiers" | "closeOnPointerDown"> & {
4
+ children: React.ReactNode;
5
+ placement: "auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
6
+ };
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Layout: () => React.JSX.Element;
3
+ export default Layout;
@@ -0,0 +1,2 @@
1
+ declare const darkTheme: Record<string, any>;
2
+ export default darkTheme;
@@ -0,0 +1,2 @@
1
+ declare const theme: Record<string, any>;
2
+ export default theme;
@@ -0,0 +1,3 @@
1
+ import theme from "./Default/theme";
2
+ import darkTheme from "./Dark/theme";
3
+ export { theme as defaultTheme, darkTheme };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default as Loading } from "./Components/Loading/Loading";
2
+ export { default as ToolTip } from "./Components/ToolTip/ToolTip";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "private": false,
5
5
  "main": "dist/index.ts",
6
6
  "module": "dist/index.js",
package/tsconfig.json CHANGED
@@ -24,6 +24,7 @@
24
24
  "./node_modules/@types",
25
25
  "./src/types"
26
26
  ],
27
+ "declaration": true,
27
28
  },
28
29
  "include": [
29
30
  "src"