@rhammy/architect-core 1.0.0

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 (87) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/LICENSE +21 -0
  3. package/README.md +355 -0
  4. package/dist/components/Accordion/Accordion.d.ts +34 -0
  5. package/dist/components/Accordion/Accordion.d.ts.map +1 -0
  6. package/dist/components/Accordion/index.d.ts +3 -0
  7. package/dist/components/Accordion/index.d.ts.map +1 -0
  8. package/dist/components/Button/Button.d.ts +21 -0
  9. package/dist/components/Button/Button.d.ts.map +1 -0
  10. package/dist/components/Button/index.d.ts +3 -0
  11. package/dist/components/Button/index.d.ts.map +1 -0
  12. package/dist/components/Checkbox/Checkbox.d.ts +25 -0
  13. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  14. package/dist/components/Checkbox/index.d.ts +3 -0
  15. package/dist/components/Checkbox/index.d.ts.map +1 -0
  16. package/dist/components/Dialog/Dialog.d.ts +48 -0
  17. package/dist/components/Dialog/Dialog.d.ts.map +1 -0
  18. package/dist/components/Dialog/index.d.ts +3 -0
  19. package/dist/components/Dialog/index.d.ts.map +1 -0
  20. package/dist/components/Dropdown/Dropdown.d.ts +28 -0
  21. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
  22. package/dist/components/Dropdown/index.d.ts +3 -0
  23. package/dist/components/Dropdown/index.d.ts.map +1 -0
  24. package/dist/components/Input/ErrorMessage.d.ts +9 -0
  25. package/dist/components/Input/ErrorMessage.d.ts.map +1 -0
  26. package/dist/components/Input/FormField.d.ts +24 -0
  27. package/dist/components/Input/FormField.d.ts.map +1 -0
  28. package/dist/components/Input/Input.d.ts +27 -0
  29. package/dist/components/Input/Input.d.ts.map +1 -0
  30. package/dist/components/Input/Label.d.ts +13 -0
  31. package/dist/components/Input/Label.d.ts.map +1 -0
  32. package/dist/components/Input/index.d.ts +10 -0
  33. package/dist/components/Input/index.d.ts.map +1 -0
  34. package/dist/components/Radio/Radio.d.ts +36 -0
  35. package/dist/components/Radio/Radio.d.ts.map +1 -0
  36. package/dist/components/Radio/index.d.ts +3 -0
  37. package/dist/components/Radio/index.d.ts.map +1 -0
  38. package/dist/components/Select/Select.d.ts +38 -0
  39. package/dist/components/Select/Select.d.ts.map +1 -0
  40. package/dist/components/Select/index.d.ts +3 -0
  41. package/dist/components/Select/index.d.ts.map +1 -0
  42. package/dist/components/Switch/Switch.d.ts +19 -0
  43. package/dist/components/Switch/Switch.d.ts.map +1 -0
  44. package/dist/components/Switch/index.d.ts +3 -0
  45. package/dist/components/Switch/index.d.ts.map +1 -0
  46. package/dist/components/Tabs/Tabs.d.ts +35 -0
  47. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  48. package/dist/components/Tabs/index.d.ts +3 -0
  49. package/dist/components/Tabs/index.d.ts.map +1 -0
  50. package/dist/components/Textarea/Textarea.d.ts +25 -0
  51. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  52. package/dist/components/Textarea/index.d.ts +3 -0
  53. package/dist/components/Textarea/index.d.ts.map +1 -0
  54. package/dist/components/Toast/Toast.d.ts +46 -0
  55. package/dist/components/Toast/Toast.d.ts.map +1 -0
  56. package/dist/components/Toast/index.d.ts +3 -0
  57. package/dist/components/Toast/index.d.ts.map +1 -0
  58. package/dist/components/Tooltip/Tooltip.d.ts +31 -0
  59. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  60. package/dist/components/Tooltip/index.d.ts +3 -0
  61. package/dist/components/Tooltip/index.d.ts.map +1 -0
  62. package/dist/hooks/useClickOutside.d.ts +4 -0
  63. package/dist/hooks/useClickOutside.d.ts.map +1 -0
  64. package/dist/hooks/useControllableState.d.ts +19 -0
  65. package/dist/hooks/useControllableState.d.ts.map +1 -0
  66. package/dist/hooks/useEscapeKey.d.ts +13 -0
  67. package/dist/hooks/useEscapeKey.d.ts.map +1 -0
  68. package/dist/hooks/useFocusTrap.d.ts +15 -0
  69. package/dist/hooks/useFocusTrap.d.ts.map +1 -0
  70. package/dist/hooks/useId.d.ts +10 -0
  71. package/dist/hooks/useId.d.ts.map +1 -0
  72. package/dist/index.cjs +23 -0
  73. package/dist/index.cjs.map +1 -0
  74. package/dist/index.d.ts +25 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +2342 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/style.css +1 -0
  79. package/dist/tests/setup.d.ts +2 -0
  80. package/dist/tests/setup.d.ts.map +1 -0
  81. package/dist/types/index.d.ts +59 -0
  82. package/dist/types/index.d.ts.map +1 -0
  83. package/dist/utils/dom.d.ts +31 -0
  84. package/dist/utils/dom.d.ts.map +1 -0
  85. package/dist/utils/focus.d.ts +26 -0
  86. package/dist/utils/focus.d.ts.map +1 -0
  87. package/package.json +107 -0
@@ -0,0 +1,48 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ export interface DialogProps extends BaseComponentProps, WithChildren {
5
+ /** Whether the dialog is open (controlled) */
6
+ open?: boolean;
7
+ /** Default open state (uncontrolled) */
8
+ defaultOpen?: boolean;
9
+ /** Callback when open state changes */
10
+ onOpenChange?: (open: boolean) => void;
11
+ /** Callback when dialog is dismissed */
12
+ onDismiss?: () => void;
13
+ /** Whether clicking outside closes the dialog */
14
+ closeOnOutsideClick?: boolean;
15
+ /** Whether pressing Escape closes the dialog */
16
+ closeOnEscape?: boolean;
17
+ /** Where to render the dialog in the DOM */
18
+ container?: Element | null;
19
+ /** Whether to trap focus within the dialog */
20
+ trapFocus?: boolean;
21
+ /** Whether to restore focus when dialog closes */
22
+ restoreFocus?: boolean;
23
+ /** Role attribute for the dialog */
24
+ role?: 'dialog' | 'alertdialog';
25
+ }
26
+ export interface DialogOverlayProps extends BaseComponentProps, WithChildren, React.HTMLAttributes<HTMLDivElement> {
27
+ }
28
+ export interface DialogContentProps extends BaseComponentProps, WithChildren, React.HTMLAttributes<HTMLDivElement> {
29
+ /** ID of the element that labels this dialog */
30
+ 'aria-labelledby'?: string;
31
+ /** ID of the element that describes this dialog */
32
+ 'aria-describedby'?: string;
33
+ }
34
+ export interface DialogTitleProps extends BaseComponentProps, WithChildren, React.HTMLAttributes<HTMLHeadingElement> {
35
+ /** Heading level */
36
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
37
+ }
38
+ export interface DialogDescriptionProps extends BaseComponentProps, WithChildren, React.HTMLAttributes<HTMLParagraphElement> {
39
+ }
40
+ export interface DialogCloseProps extends BaseComponentProps, WithChildren, React.ButtonHTMLAttributes<HTMLButtonElement> {
41
+ }
42
+ export declare const Dialog: React.FC<DialogProps>;
43
+ export declare const DialogOverlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
44
+ export declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
45
+ export declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
46
+ export declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
47
+ export declare const DialogClose: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
48
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,WAAW,WAAY,SAAQ,kBAAkB,EAAE,YAAY;IACnE,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,iDAAiD;IACjD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oCAAoC;IACpC,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACjC;AAED,MAAM,WAAW,kBACf,SACE,kBAAkB,EAClB,YAAY,EACZ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,MAAM,WAAW,kBACf,SACE,kBAAkB,EAClB,YAAY,EACZ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtC,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,gBACf,SACE,kBAAkB,EAClB,YAAY,EACZ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAC1C,oBAAoB;IACpB,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,sBACf,SACE,kBAAkB,EAClB,YAAY,EACZ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;CAAG;AAEjD,MAAM,WAAW,gBACf,SACE,kBAAkB,EAClB,YAAY,EACZ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AA0BpD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuDxC,CAAC;AAMF,eAAO,MAAM,aAAa,2FAyBzB,CAAC;AAMF,eAAO,MAAM,aAAa,2FA0CzB,CAAC;AAMF,eAAO,MAAM,WAAW,6FAWvB,CAAC;AAMF,eAAO,MAAM,iBAAiB,qGAW5B,CAAC;AAMH,eAAO,MAAM,WAAW,4FAqBvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Dialog, DialogOverlay, DialogContent, DialogTitle, DialogDescription, DialogClose, } from './Dialog';
2
+ export type { DialogProps, DialogOverlayProps, DialogContentProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, } from './Dialog';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,UAAU,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ export interface DropdownProps extends BaseComponentProps, WithChildren {
5
+ /** Whether the dropdown is open (controlled) */
6
+ open?: boolean;
7
+ /** Default open state (uncontrolled) */
8
+ defaultOpen?: boolean;
9
+ /** Callback when open state changes */
10
+ onOpenChange?: (open: boolean) => void;
11
+ }
12
+ export interface DropdownTriggerProps extends BaseComponentProps, React.ButtonHTMLAttributes<HTMLButtonElement> {
13
+ }
14
+ export interface DropdownMenuProps extends BaseComponentProps, WithChildren {
15
+ /** Whether to render in a portal */
16
+ portal?: boolean;
17
+ /** Placement of the menu relative to trigger */
18
+ placement?: 'bottom' | 'top';
19
+ }
20
+ export interface DropdownItemProps extends BaseComponentProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'role'> {
21
+ /** Whether the item is disabled */
22
+ disabled?: boolean;
23
+ }
24
+ export declare const Dropdown: React.FC<DropdownProps>;
25
+ export declare const DropdownTrigger: React.ForwardRefExoticComponent<DropdownTriggerProps & React.RefAttributes<HTMLButtonElement>>;
26
+ export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
27
+ export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLButtonElement>>;
28
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAc/D,MAAM,WAAW,aAAc,SAAQ,kBAAkB,EAAE,YAAY;IACrE,gDAAgD;IAChD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,oBACf,SAAQ,kBAAkB,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAE9E,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,EAAE,YAAY;IACzE,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,iBACf,SACE,kBAAkB,EAClB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC7D,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAgBD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4C5C,CAAC;AAIF,eAAO,MAAM,eAAe,gGAmC1B,CAAC;AAMH,eAAO,MAAM,YAAY,0FA6LxB,CAAC;AAMF,eAAO,MAAM,YAAY,6FA+DxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Dropdown, DropdownTrigger, DropdownMenu, DropdownItem, } from './Dropdown';
2
+ export type { DropdownProps, DropdownTriggerProps, DropdownMenuProps, DropdownItemProps, } from './Dropdown';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ export interface ErrorMessageProps extends BaseComponentProps, WithChildren, HTMLAttributes<HTMLParagraphElement> {
5
+ /** Whether to show the error message */
6
+ show?: boolean;
7
+ }
8
+ export declare const ErrorMessage: import('react').ForwardRefExoticComponent<ErrorMessageProps & import('react').RefAttributes<HTMLParagraphElement>>;
9
+ //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/components/Input/ErrorMessage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAc,cAAc,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,WAAW,iBACf,SACE,kBAAkB,EAClB,YAAY,EACZ,cAAc,CAAC,oBAAoB,CAAC;IACtC,wCAAwC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAID,eAAO,MAAM,YAAY,oHAkBxB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { InputProps } from './Input';
3
+ import { LabelProps } from './Label';
4
+ import { ErrorMessageProps } from './ErrorMessage';
5
+ import { BaseComponentProps } from '../../types';
6
+
7
+ export interface FormFieldProps extends BaseComponentProps {
8
+ /** Label text */
9
+ label: React.ReactNode;
10
+ /** Error message */
11
+ error?: React.ReactNode;
12
+ /** Input props */
13
+ inputProps?: Omit<InputProps, 'id' | 'errorId' | 'labelId' | 'invalid'>;
14
+ /** Label props */
15
+ labelProps?: Omit<LabelProps, 'htmlFor' | 'required'>;
16
+ /** Error message props */
17
+ errorProps?: Omit<ErrorMessageProps, 'id' | 'show'>;
18
+ /** Whether the field is required */
19
+ required?: boolean;
20
+ /** Custom ID for the input (auto-generated if not provided) */
21
+ id?: string;
22
+ }
23
+ export declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLInputElement>>;
24
+ //# sourceMappingURL=FormField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/Input/FormField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,iBAAiB;IACjB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kBAAkB;IAClB,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;IACxE,kBAAkB;IAClB,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;IACtD,0BAA0B;IAC1B,UAAU,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;IACpD,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAID,eAAO,MAAM,SAAS,yFA4CrB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+ import { BaseComponentProps } from '../../types';
3
+
4
+ export interface InputProps extends BaseComponentProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid' | 'prefix'> {
5
+ /** Whether the input has an error */
6
+ invalid?: boolean;
7
+ /** ID of the error message element */
8
+ errorId?: string;
9
+ /** ID of the label element */
10
+ labelId?: string;
11
+ /** Icon/content to display before the input */
12
+ prefix?: React.ReactNode;
13
+ /** Icon/content to display after the input */
14
+ suffix?: React.ReactNode;
15
+ /** Hide number input spinners (for type="number") */
16
+ hideNumberSpinners?: boolean;
17
+ /** Hide date/time picker icon (for type="date", "time", "datetime-local") */
18
+ hideDateIcon?: boolean;
19
+ /** Enable password visibility toggle (for type="password") */
20
+ showPasswordToggle?: boolean;
21
+ /** Wrapper className for the input container */
22
+ wrapperClassName?: string;
23
+ /** Wrapper style for the input container */
24
+ wrapperStyle?: React.CSSProperties;
25
+ }
26
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
27
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,EAEZ,mBAAmB,EAGpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,WAAW,UACf,SACE,kBAAkB,EAClB,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,cAAc,GAAG,QAAQ,CAAC;IACxE,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4CAA4C;IAC5C,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC;AAID,eAAO,MAAM,KAAK,qFA4NjB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { default as React, LabelHTMLAttributes } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ export interface LabelProps extends BaseComponentProps, WithChildren, LabelHTMLAttributes<HTMLLabelElement> {
5
+ /** Whether the associated field is required */
6
+ required?: boolean;
7
+ /** Custom required indicator (defaults to "*") */
8
+ requiredIndicator?: React.ReactNode;
9
+ /** Whether to show the required indicator */
10
+ showRequiredIndicator?: boolean;
11
+ }
12
+ export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
13
+ //# sourceMappingURL=Label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Label.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAAc,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,WAAW,UACf,SACE,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,CAAC,gBAAgB,CAAC;IACvC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,6CAA6C;IAC7C,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAID,eAAO,MAAM,KAAK,qFA2BjB,CAAC"}
@@ -0,0 +1,10 @@
1
+
2
+ export { Input } from './Input';
3
+ export { Label } from './Label';
4
+ export { ErrorMessage } from './ErrorMessage';
5
+ export { FormField } from './FormField';
6
+ export type { InputProps } from './Input';
7
+ export type { LabelProps } from './Label';
8
+ export type { ErrorMessageProps } from './ErrorMessage';
9
+ export type { FormFieldProps } from './FormField';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+ import { BaseComponentProps } from '../../types';
3
+
4
+ export interface RadioGroupProps extends BaseComponentProps {
5
+ /** Group name */
6
+ name: string;
7
+ /** Selected value */
8
+ value?: string;
9
+ /** Default selected value (uncontrolled) */
10
+ defaultValue?: string;
11
+ /** Whether the group is disabled */
12
+ disabled?: boolean;
13
+ /** Whether the group has an error */
14
+ invalid?: boolean;
15
+ /** Label for the group */
16
+ label?: string;
17
+ /** Helper text */
18
+ helperText?: string;
19
+ /** Error message */
20
+ errorMessage?: string;
21
+ /** Callback when value changes */
22
+ onValueChange?: (value: string) => void;
23
+ /** Children (Radio components) */
24
+ children: React.ReactNode;
25
+ }
26
+ export interface RadioProps extends BaseComponentProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
27
+ /** Value of this radio option */
28
+ value: string;
29
+ /** Label text */
30
+ label?: string;
31
+ /** Whether this radio is disabled */
32
+ disabled?: boolean;
33
+ }
34
+ export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
35
+ export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
36
+ //# sourceMappingURL=Radio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAKZ,mBAAmB,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAWjD,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,kCAAkC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,UACf,SACE,kBAAkB,EAClB,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9D,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAgBD,eAAO,MAAM,UAAU,wFAyGtB,CAAC;AAMF,eAAO,MAAM,KAAK,qFAmDjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Radio, RadioGroup } from './Radio';
2
+ export type { RadioProps, RadioGroupProps } from './Radio';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps } from '../../types';
3
+
4
+ export interface SelectOption {
5
+ value: string;
6
+ label: string;
7
+ disabled?: boolean;
8
+ }
9
+ export interface SelectProps extends BaseComponentProps {
10
+ /** Available options */
11
+ options: SelectOption[];
12
+ /** Selected value(s) */
13
+ value?: string | string[];
14
+ /** Default value (uncontrolled) */
15
+ defaultValue?: string | string[];
16
+ /** Placeholder text */
17
+ placeholder?: string;
18
+ /** Whether the select is disabled */
19
+ disabled?: boolean;
20
+ /** Whether the select has an error */
21
+ invalid?: boolean;
22
+ /** Whether to allow multiple selections */
23
+ multiple?: boolean;
24
+ /** Whether to show search input */
25
+ searchable?: boolean;
26
+ /** Label text */
27
+ label?: string;
28
+ /** Helper text */
29
+ helperText?: string;
30
+ /** Error message */
31
+ errorMessage?: string;
32
+ /** Callback when value changes */
33
+ onValueChange?: (value: string | string[]) => void;
34
+ /** Custom render for selected value */
35
+ renderValue?: (value: string | string[]) => React.ReactNode;
36
+ }
37
+ export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
38
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAMN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,uCAAuC;IACvC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;CAC7D;AAQD,eAAO,MAAM,MAAM,uFAiUlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Select } from './Select';
2
+ export type { SelectProps, SelectOption } from './Select';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+ import { BaseComponentProps } from '../../types';
3
+
4
+ export interface SwitchProps extends BaseComponentProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
5
+ /** Whether the switch is checked */
6
+ checked?: boolean;
7
+ /** Default checked state (uncontrolled) */
8
+ defaultChecked?: boolean;
9
+ /** Whether the switch is disabled */
10
+ disabled?: boolean;
11
+ /** Label text */
12
+ label?: string;
13
+ /** Helper text */
14
+ helperText?: string;
15
+ /** Callback when checked state changes */
16
+ onCheckedChange?: (checked: boolean) => void;
17
+ }
18
+ export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
19
+ //# 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;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAA2B,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,WAAW,WACf,SACE,kBAAkB,EAClB,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9D,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAID,eAAO,MAAM,MAAM,sFA6HlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Switch } from './Switch';
2
+ export type { SwitchProps } from './Switch';
3
+ //# 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,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ type Orientation = 'horizontal' | 'vertical';
5
+ type ActivationMode = 'automatic' | 'manual';
6
+ export interface TabsProps extends BaseComponentProps, WithChildren {
7
+ /** Currently selected tab value (controlled) */
8
+ value?: string;
9
+ /** Default selected tab value (uncontrolled) */
10
+ defaultValue?: string;
11
+ /** Callback when selected tab changes */
12
+ onValueChange?: (value: string) => void;
13
+ /** Orientation of tabs */
14
+ orientation?: Orientation;
15
+ /** Activation mode - automatic activates on focus, manual requires Enter/Space */
16
+ activationMode?: ActivationMode;
17
+ }
18
+ export interface TabsListProps extends BaseComponentProps, WithChildren {
19
+ }
20
+ export interface TabsTriggerProps extends BaseComponentProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
21
+ /** Unique value for this tab */
22
+ value: string;
23
+ /** Whether the tab is disabled */
24
+ disabled?: boolean;
25
+ }
26
+ export interface TabsContentProps extends BaseComponentProps, WithChildren {
27
+ /** Value of the tab this content belongs to */
28
+ value: string;
29
+ }
30
+ export declare const Tabs: React.FC<TabsProps>;
31
+ export declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
32
+ export declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
33
+ export declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
34
+ export {};
35
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAQN,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/D,KAAK,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAC7C,KAAK,cAAc,GAAG,WAAW,GAAG,QAAQ,CAAC;AAa7C,MAAM,WAAW,SAAU,SAAQ,kBAAkB,EAAE,YAAY;IACjE,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,0BAA0B;IAC1B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kFAAkF;IAClF,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,MAAM,WAAW,aAAc,SAAQ,kBAAkB,EAAE,YAAY;CAAG;AAE1E,MAAM,WAAW,gBACf,SACE,kBAAkB,EAClB,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC9D,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,EAAE,YAAY;IACxE,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf;AAgBD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA2DpC,CAAC;AAIF,eAAO,MAAM,QAAQ,sFAiBpB,CAAC;AAMF,eAAO,MAAM,WAAW,4FA0IvB,CAAC;AAMF,eAAO,MAAM,WAAW,yFAsBvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from './Tabs';
2
+ export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps, } from './Tabs';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAClE,YAAY,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { default as React, TextareaHTMLAttributes } from 'react';
2
+ import { BaseComponentProps } from '../../types';
3
+
4
+ export interface TextareaProps extends BaseComponentProps, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
5
+ /** Label text */
6
+ label?: string;
7
+ /** Helper text */
8
+ helperText?: string;
9
+ /** Error message */
10
+ errorMessage?: string;
11
+ /** Whether the textarea has an error */
12
+ invalid?: boolean;
13
+ /** Maximum character count */
14
+ maxLength?: number;
15
+ /** Show character count */
16
+ showCount?: boolean;
17
+ /** Auto-resize to fit content */
18
+ autoResize?: boolean;
19
+ /** Minimum rows when auto-resizing */
20
+ minRows?: number;
21
+ /** Maximum rows when auto-resizing */
22
+ maxRows?: number;
23
+ }
24
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
25
+ //# 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;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAKZ,sBAAsB,EACvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,WAAW,aACf,SACE,kBAAkB,EAClB,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC3D,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iCAAiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,eAAO,MAAM,QAAQ,2FA2KpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Textarea } from './Textarea';
2
+ export type { TextareaProps } from './Textarea';
3
+ //# 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,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ export type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
5
+ export type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
6
+ export interface Toast {
7
+ id: string;
8
+ title?: string;
9
+ description?: string;
10
+ variant?: ToastVariant;
11
+ duration?: number;
12
+ onDismiss?: () => void;
13
+ }
14
+ interface ToastContextValue {
15
+ toasts: Toast[];
16
+ addToast: (toast: Omit<Toast, 'id'>) => string;
17
+ removeToast: (id: string) => void;
18
+ position: ToastPosition;
19
+ }
20
+ export interface ToastProviderProps extends WithChildren {
21
+ /** Position of toast notifications */
22
+ position?: ToastPosition;
23
+ /** Maximum number of toasts to show */
24
+ maxToasts?: number;
25
+ }
26
+ export interface ToastItemProps extends BaseComponentProps {
27
+ /** Toast data */
28
+ toast: Toast;
29
+ /** Callback when toast is dismissed */
30
+ onDismiss: (id: string) => void;
31
+ }
32
+ export declare const useToast: () => ToastContextValue;
33
+ export declare const ToastProvider: React.FC<ToastProviderProps>;
34
+ /**
35
+ * Hook to show toast notifications
36
+ * Must be used within ToastProvider
37
+ */
38
+ export declare const useToastNotification: () => {
39
+ toast: (options: Omit<Toast, "id">) => string;
40
+ success: (title: string, description?: string) => string;
41
+ error: (title: string, description?: string) => string;
42
+ warning: (title: string, description?: string) => string;
43
+ info: (title: string, description?: string) => string;
44
+ };
45
+ export {};
46
+ //# 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;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAON,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAChF,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,UAAU,iBAAiB;IACzB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,sCAAsC;IACtC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,iBAAiB;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,uCAAuC;IACvC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAMD,eAAO,MAAM,QAAQ,yBAMpB,CAAC;AAWF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4CtD,CAAC;AA+LF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;qBAInB,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC;qBAOnB,MAAM,gBAAgB,MAAM;mBAO5B,MAAM,gBAAgB,MAAM;qBAO5B,MAAM,gBAAgB,MAAM;kBAO5B,MAAM,gBAAgB,MAAM;CAavC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ToastProvider, useToast, useToastNotification } from './Toast';
2
+ export type { Toast, ToastVariant, ToastPosition, ToastProviderProps, } from './Toast';
3
+ //# 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,aAAa,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EACV,KAAK,EACL,YAAY,EACZ,aAAa,EACb,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps, WithChildren } from '../../types';
3
+
4
+ type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
5
+ export interface TooltipProps extends WithChildren {
6
+ /** Delay before showing tooltip (ms) */
7
+ delayShow?: number;
8
+ /** Delay before hiding tooltip (ms) */
9
+ delayHide?: number;
10
+ /** Default open state (uncontrolled) */
11
+ defaultOpen?: boolean;
12
+ /** Controlled open state */
13
+ open?: boolean;
14
+ /** Callback when open state changes */
15
+ onOpenChange?: (open: boolean) => void;
16
+ }
17
+ export interface TooltipTriggerProps extends BaseComponentProps, React.HTMLAttributes<HTMLElement> {
18
+ /** Element to render as trigger */
19
+ asChild?: boolean;
20
+ }
21
+ export interface TooltipContentProps extends BaseComponentProps, WithChildren {
22
+ /** Placement of tooltip relative to trigger */
23
+ placement?: TooltipPlacement;
24
+ /** Whether to render in a portal */
25
+ portal?: boolean;
26
+ }
27
+ export declare const Tooltip: React.FC<TooltipProps>;
28
+ export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLElement>>;
29
+ export declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
30
+ export {};
31
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAQN,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI/D,KAAK,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAW5D,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,mBACf,SAAQ,kBAAkB,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC7D,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,YAAY;IAC3E,+CAA+C;IAC/C,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAoBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqC1C,CAAC;AAIF,eAAO,MAAM,cAAc,yFA4G1B,CAAC;AAMF,eAAO,MAAM,cAAc,4FAmH1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Tooltip, TooltipTrigger, TooltipContent } from './Tooltip';
2
+ export type { TooltipProps, TooltipTriggerProps, TooltipContentProps, } from './Tooltip';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpE,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RefObject } from 'react';
2
+
3
+ export declare function useClickOutside(refs: RefObject<HTMLElement>[] | RefObject<HTMLElement>, handler: () => void): void;
4
+ //# sourceMappingURL=useClickOutside.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../src/hooks/useClickOutside.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,EACvD,OAAO,EAAE,MAAM,IAAI,GAClB,IAAI,CAyBN"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Custom hook for managing controlled/uncontrolled state
3
+ * Allows components to work in both modes seamlessly
4
+ */
5
+ interface UseControllableStateOptions<T> {
6
+ /** Controlled value from props */
7
+ value?: T;
8
+ /** Default value for uncontrolled mode */
9
+ defaultValue?: T;
10
+ /** Callback when value changes */
11
+ onChange?: (value: T) => void;
12
+ }
13
+ /**
14
+ * Hook that manages both controlled and uncontrolled state
15
+ * This is a fundamental pattern for flexible component APIs
16
+ */
17
+ export declare function useControllableState<T>({ value: controlledValue, defaultValue, onChange, }: UseControllableStateOptions<T>): [T | undefined, (value: T) => void];
18
+ export {};
19
+ //# sourceMappingURL=useControllableState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useControllableState.d.ts","sourceRoot":"","sources":["../../src/hooks/useControllableState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,UAAU,2BAA2B,CAAC,CAAC;IACrC,kCAAkC;IAClC,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EACtC,KAAK,EAAE,eAAe,EACtB,YAAY,EACZ,QAAQ,GACT,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAuBtE"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Custom hook for handling Escape key press
3
+ * Common pattern in overlays, modals, dropdowns, etc.
4
+ */
5
+ interface UseEscapeKeyOptions {
6
+ /** Whether the escape key handler is active */
7
+ enabled: boolean;
8
+ /** Callback to execute when Escape is pressed */
9
+ onEscape: () => void;
10
+ }
11
+ export declare function useEscapeKey({ enabled, onEscape }: UseEscapeKeyOptions): void;
12
+ export {};
13
+ //# sourceMappingURL=useEscapeKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEscapeKey.d.ts","sourceRoot":"","sources":["../../src/hooks/useEscapeKey.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,UAAU,mBAAmB;IAC3B,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,mBAAmB,QAiBtE"}