@sector.siit/mlz-components 1.0.5 → 1.0.6

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 (58) hide show
  1. package/dist/components/Checkbox/Checkbox.d.ts +21 -0
  2. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  3. package/dist/components/Checkbox/Checkbox.stories.d.ts +10 -0
  4. package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -0
  5. package/dist/components/Checkbox/index.d.ts +2 -0
  6. package/dist/components/Checkbox/index.d.ts.map +1 -0
  7. package/dist/components/FileInput/FileInput.d.ts +17 -0
  8. package/dist/components/FileInput/FileInput.d.ts.map +1 -0
  9. package/dist/components/FileInput/FileInput.stories.d.ts +11 -0
  10. package/dist/components/FileInput/FileInput.stories.d.ts.map +1 -0
  11. package/dist/components/FileInput/index.d.ts +2 -0
  12. package/dist/components/FileInput/index.d.ts.map +1 -0
  13. package/dist/components/Icons/CheckBlue.d.ts +3 -0
  14. package/dist/components/Icons/CheckBlue.d.ts.map +1 -0
  15. package/dist/components/Icons/CheckCircle.d.ts +3 -0
  16. package/dist/components/Icons/CheckCircle.d.ts.map +1 -0
  17. package/dist/components/Icons/ErrorCircle.d.ts +3 -0
  18. package/dist/components/Icons/ErrorCircle.d.ts.map +1 -0
  19. package/dist/components/Icons/InfoCircle.d.ts +3 -0
  20. package/dist/components/Icons/InfoCircle.d.ts.map +1 -0
  21. package/dist/components/Icons/Paperclip.d.ts +3 -0
  22. package/dist/components/Icons/Paperclip.d.ts.map +1 -0
  23. package/dist/components/Icons/WarningTriangle.d.ts +3 -0
  24. package/dist/components/Icons/WarningTriangle.d.ts.map +1 -0
  25. package/dist/components/Switch/Switch.d.ts +12 -0
  26. package/dist/components/Switch/Switch.d.ts.map +1 -0
  27. package/dist/components/Switch/Switch.stories.d.ts +11 -0
  28. package/dist/components/Switch/Switch.stories.d.ts.map +1 -0
  29. package/dist/components/Switch/index.d.ts +2 -0
  30. package/dist/components/Switch/index.d.ts.map +1 -0
  31. package/dist/components/TextArea/TextArea.d.ts +22 -0
  32. package/dist/components/TextArea/TextArea.d.ts.map +1 -0
  33. package/dist/components/TextArea/TextArea.stories.d.ts +12 -0
  34. package/dist/components/TextArea/TextArea.stories.d.ts.map +1 -0
  35. package/dist/components/TextArea/index.d.ts +2 -0
  36. package/dist/components/TextArea/index.d.ts.map +1 -0
  37. package/dist/components/Toast/Toast.d.ts +10 -0
  38. package/dist/components/Toast/Toast.d.ts.map +1 -0
  39. package/dist/components/Toast/Toast.stories.d.ts +12 -0
  40. package/dist/components/Toast/Toast.stories.d.ts.map +1 -0
  41. package/dist/components/Toast/ToastProvider.d.ts +20 -0
  42. package/dist/components/Toast/ToastProvider.d.ts.map +1 -0
  43. package/dist/components/Toast/index.d.ts +5 -0
  44. package/dist/components/Toast/index.d.ts.map +1 -0
  45. package/dist/components/Toast/toastHelpers.d.ts +14 -0
  46. package/dist/components/Toast/toastHelpers.d.ts.map +1 -0
  47. package/dist/fonts/Geometria-Bold.woff2 +0 -0
  48. package/dist/fonts/Geometria-ExtraLight.woff2 +0 -0
  49. package/dist/fonts/Geometria-Light.woff2 +0 -0
  50. package/dist/fonts/Geometria-Regular.woff2 +0 -0
  51. package/dist/index.d.ts +14828 -8
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.esm.js +210 -32
  54. package/dist/index.esm.js.map +1 -1
  55. package/dist/index.js +223 -30
  56. package/dist/index.js.map +1 -1
  57. package/dist/styles.css +1 -0
  58. package/package.json +14 -2
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export interface CheckboxOption {
3
+ label: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface CheckboxProps {
8
+ label?: string;
9
+ options: CheckboxOption[];
10
+ value?: string[];
11
+ onChange?: (values: string[]) => void;
12
+ hasError?: boolean;
13
+ errorText?: string;
14
+ helperText?: string;
15
+ direction?: "vertical" | "horizontal";
16
+ containerProps?: React.HTMLAttributes<HTMLDivElement>;
17
+ labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
18
+ helperTextProps?: React.HTMLAttributes<HTMLParagraphElement>;
19
+ }
20
+ export declare const Checkbox: React.FC<CheckboxProps>;
21
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACtC,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAC7D;AAgCD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuE5C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { 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 Checkbox>;
6
+ export declare const Vertical: Story;
7
+ export declare const Horizontal: Story;
8
+ export declare const WithError: Story;
9
+ export declare const AllStates: Story;
10
+ //# sourceMappingURL=Checkbox.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAmE/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAkCvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Checkbox, type CheckboxProps, type CheckboxOption } from "./Checkbox";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ export interface FileInputProps {
3
+ label?: string;
4
+ value?: File | null;
5
+ onChange?: (file: File | null) => void;
6
+ hasError?: boolean;
7
+ errorText?: string;
8
+ helperText?: string;
9
+ disabled?: boolean;
10
+ accept?: string;
11
+ multiple?: boolean;
12
+ containerProps?: React.HTMLAttributes<HTMLDivElement>;
13
+ labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
14
+ helperTextProps?: React.HTMLAttributes<HTMLParagraphElement>;
15
+ }
16
+ export declare const FileInput: React.FC<FileInputProps>;
17
+ //# sourceMappingURL=FileInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cAAc;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAC7D;AAkDD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { FileInput } from "./FileInput";
3
+ declare const meta: Meta<typeof FileInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FileInput>;
6
+ export declare const Default: Story;
7
+ export declare const WithError: Story;
8
+ export declare const WithFile: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const AllStates: Story;
11
+ //# sourceMappingURL=FileInput.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA2DhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KActB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAsBvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { FileInput, type FileInputProps } from "./FileInput";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const CheckBlueIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=CheckBlue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckBlue.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/CheckBlue.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAcjE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const CheckCircleIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=CheckCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckCircle.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/CheckCircle.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAcnE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const ErrorCircleIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=ErrorCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorCircle.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/ErrorCircle.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAiBnE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const InfoCircleIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=InfoCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoCircle.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/InfoCircle.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAclE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const PaperclipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=Paperclip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paperclip.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/Paperclip.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAcjE,CAAC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const WarningTriangleIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=WarningTriangle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningTriangle.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/WarningTriangle.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAcvE,CAAC"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface SwitchProps {
3
+ label?: string;
4
+ checked?: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ variant?: "default" | "error";
7
+ disabled?: boolean;
8
+ containerProps?: React.HTMLAttributes<HTMLDivElement>;
9
+ labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
10
+ }
11
+ export declare const Switch: React.FC<SwitchProps>;
12
+ //# sourceMappingURL=Switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,WAAW;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CACzD;AAsDD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCxC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Switch } from "./Switch";
3
+ declare const meta: Meta<typeof Switch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Switch>;
6
+ export declare const Off: Story;
7
+ export declare const On: Story;
8
+ export declare const OnError: Story;
9
+ export declare const AllStates: Story;
10
+ export declare const Disabled: Story;
11
+ //# sourceMappingURL=Switch.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CA+C7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,GAAG,EAAE,KAWjB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,KAWhB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Switch, type SwitchProps } from "./Switch";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ errorText?: string;
4
+ hasError?: boolean;
5
+ helperText?: string;
6
+ label?: string;
7
+ disabled?: boolean;
8
+ placeholder?: string;
9
+ fullWidth?: boolean;
10
+ containerProps?: ContainerProp;
11
+ labelProps?: LabelProp;
12
+ helperTextProps?: HelperTextProp;
13
+ }
14
+ interface ContainerProp extends React.HTMLAttributes<HTMLDivElement> {
15
+ }
16
+ interface LabelProp extends React.LabelHTMLAttributes<HTMLLabelElement> {
17
+ }
18
+ interface HelperTextProp extends React.HTMLAttributes<HTMLParagraphElement> {
19
+ }
20
+ export declare const TextArea: React.FC<TextAreaProps>;
21
+ export {};
22
+ //# sourceMappingURL=TextArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,aAChB,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,eAAe,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEvE,UAAU,SAAU,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAE1E,UAAU,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;CAAG;AAoC9E,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8B5C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { TextArea } from "./TextArea";
3
+ declare const meta: Meta<typeof TextArea>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextArea>;
6
+ export declare const Default: Story;
7
+ export declare const WithError: Story;
8
+ export declare const WithHelperText: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const FullWidth: Story;
11
+ export declare const AllStates: Story;
12
+ //# sourceMappingURL=TextArea.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAyF/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAS5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KA+BvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { TextArea, type TextAreaProps } from "./TextArea";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export type ToastVariant = "success" | "info" | "warning" | "error";
3
+ export interface ToastProps {
4
+ title: string;
5
+ description?: string;
6
+ variant?: ToastVariant;
7
+ onClose?: () => void;
8
+ }
9
+ export declare const Toast: React.FC<ToastProps>;
10
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAyCD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuEtC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Toast } from "./Toast";
3
+ declare const meta: Meta<typeof Toast>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Toast>;
6
+ export declare const Success: Story;
7
+ export declare const Info: Story;
8
+ export declare const Warning: Story;
9
+ export declare const Error: Story;
10
+ export declare const AllVariants: Story;
11
+ export declare const WithReactHotToast: Story;
12
+ //# sourceMappingURL=Toast.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAsC5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAyBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAiE/B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { type ToastProps } from "./Toast";
3
+ interface ToastItem extends Omit<ToastProps, "onClose"> {
4
+ id: string;
5
+ duration?: number;
6
+ }
7
+ interface ToastContextType {
8
+ toasts: ToastItem[];
9
+ showToast: (toast: Omit<ToastItem, "id">) => string;
10
+ removeToast: (id: string) => void;
11
+ clearToasts: () => void;
12
+ }
13
+ export declare const useToast: () => ToastContextType;
14
+ interface ToastProviderProps {
15
+ children: React.ReactNode;
16
+ position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
17
+ }
18
+ export declare const ToastProvider: React.FC<ToastProviderProps>;
19
+ export {};
20
+ //# sourceMappingURL=ToastProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,EAAS,KAAK,UAAU,EAAqB,MAAM,SAAS,CAAC;AAEpE,UAAU,SAAU,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,gBAAgB;IACzB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,MAAM,CAAC;IACpD,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ,wBAMpB,CAAC;AAEF,UAAU,kBAAkB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,YAAY,GAAG,eAAe,CAAC;CACtG;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4DtD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { Toast, type ToastProps, type ToastVariant } from "./Toast";
2
+ export { ToastProvider, useToast } from "./ToastProvider";
3
+ export { showToast, toastSuccess, toastInfo, toastWarning, toastError, toast, Toaster } from "./toastHelpers";
4
+ export type { ToastOptions } from "./toastHelpers";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9G,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type ToastVariant = "success" | "info" | "warning" | "error";
2
+ export interface ToastOptions {
3
+ title: string;
4
+ description?: string;
5
+ variant?: ToastVariant;
6
+ duration?: number;
7
+ }
8
+ export declare const showToast: ({ title, description, variant, duration }: ToastOptions) => string;
9
+ export declare const toastSuccess: (title: string, description?: string, duration?: number) => string;
10
+ export declare const toastInfo: (title: string, description?: string, duration?: number) => string;
11
+ export declare const toastWarning: (title: string, description?: string, duration?: number) => string;
12
+ export declare const toastError: (title: string, description?: string, duration?: number) => string;
13
+ export { toast, Toaster } from "react-hot-toast";
14
+ //# sourceMappingURL=toastHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toastHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/toastHelpers.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAgHD,eAAO,MAAM,SAAS,8CAA+D,YAAY,KAAG,MAenG,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,gBAAgB,MAAM,aAAa,MAAM,WACnB,CAAC;AAEjE,eAAO,MAAM,SAAS,UAAW,MAAM,gBAAgB,MAAM,aAAa,MAAM,WACnB,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,MAAM,gBAAgB,MAAM,aAAa,MAAM,WACnB,CAAC;AAEjE,eAAO,MAAM,UAAU,UAAW,MAAM,gBAAgB,MAAM,aAAa,MAAM,WACnB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
Binary file
Binary file