cleanplate 0.1.9 → 0.1.11

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 (84) hide show
  1. package/dist/components/alert/Alert.d.ts +20 -17
  2. package/dist/components/alert/Alert.d.ts.map +1 -1
  3. package/dist/components/alert/index.d.ts +2 -1
  4. package/dist/components/alert/index.d.ts.map +1 -1
  5. package/dist/components/animated/Animated.d.ts +18 -16
  6. package/dist/components/animated/Animated.d.ts.map +1 -1
  7. package/dist/components/animated/index.d.ts +2 -2
  8. package/dist/components/animated/index.d.ts.map +1 -1
  9. package/dist/components/avatar/Avatar.d.ts +16 -17
  10. package/dist/components/avatar/Avatar.d.ts.map +1 -1
  11. package/dist/components/avatar/index.d.ts +2 -1
  12. package/dist/components/avatar/index.d.ts.map +1 -1
  13. package/dist/components/badge/Badge.d.ts +11 -11
  14. package/dist/components/badge/Badge.d.ts.map +1 -1
  15. package/dist/components/badge/index.d.ts +2 -2
  16. package/dist/components/badge/index.d.ts.map +1 -1
  17. package/dist/components/confirm-dialog/ConfirmDialog.d.ts +26 -26
  18. package/dist/components/confirm-dialog/ConfirmDialog.d.ts.map +1 -1
  19. package/dist/components/confirm-dialog/index.d.ts +2 -1
  20. package/dist/components/confirm-dialog/index.d.ts.map +1 -1
  21. package/dist/components/dropdown/Dropdown.d.ts +38 -23
  22. package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
  23. package/dist/components/dropdown/index.d.ts +2 -1
  24. package/dist/components/dropdown/index.d.ts.map +1 -1
  25. package/dist/components/form-controls/Checkbox.d.ts +10 -8
  26. package/dist/components/form-controls/Checkbox.d.ts.map +1 -1
  27. package/dist/components/form-controls/Date.d.ts +6 -4
  28. package/dist/components/form-controls/Date.d.ts.map +1 -1
  29. package/dist/components/form-controls/File.d.ts +10 -9
  30. package/dist/components/form-controls/File.d.ts.map +1 -1
  31. package/dist/components/form-controls/Input.d.ts +11 -9
  32. package/dist/components/form-controls/Input.d.ts.map +1 -1
  33. package/dist/components/form-controls/Radio.d.ts +10 -9
  34. package/dist/components/form-controls/Radio.d.ts.map +1 -1
  35. package/dist/components/form-controls/Select.d.ts +12 -6
  36. package/dist/components/form-controls/Select.d.ts.map +1 -1
  37. package/dist/components/form-controls/Stepper.d.ts +10 -8
  38. package/dist/components/form-controls/Stepper.d.ts.map +1 -1
  39. package/dist/components/form-controls/TextArea.d.ts +10 -8
  40. package/dist/components/form-controls/TextArea.d.ts.map +1 -1
  41. package/dist/components/form-controls/Toggle.d.ts +10 -9
  42. package/dist/components/form-controls/Toggle.d.ts.map +1 -1
  43. package/dist/components/form-controls/index.d.ts +30 -20
  44. package/dist/components/form-controls/index.d.ts.map +1 -1
  45. package/dist/components/media-object/MediaObject.d.ts +2 -1
  46. package/dist/components/media-object/MediaObject.d.ts.map +1 -1
  47. package/dist/components/modal/Modal.d.ts +30 -28
  48. package/dist/components/modal/Modal.d.ts.map +1 -1
  49. package/dist/components/modal/index.d.ts +2 -2
  50. package/dist/components/modal/index.d.ts.map +1 -1
  51. package/dist/components/pagination/Pagination.d.ts +30 -26
  52. package/dist/components/pagination/Pagination.d.ts.map +1 -1
  53. package/dist/components/pagination/index.d.ts +2 -2
  54. package/dist/components/pagination/index.d.ts.map +1 -1
  55. package/dist/components/pills/Pills.d.ts +21 -17
  56. package/dist/components/pills/Pills.d.ts.map +1 -1
  57. package/dist/components/pills/index.d.ts +2 -2
  58. package/dist/components/pills/index.d.ts.map +1 -1
  59. package/dist/components/spinner/Spinner.d.ts +20 -12
  60. package/dist/components/spinner/Spinner.d.ts.map +1 -1
  61. package/dist/components/spinner/index.d.ts +2 -1
  62. package/dist/components/spinner/index.d.ts.map +1 -1
  63. package/dist/components/stepper/Stepper.d.ts +27 -13
  64. package/dist/components/stepper/Stepper.d.ts.map +1 -1
  65. package/dist/components/stepper/index.d.ts +2 -1
  66. package/dist/components/stepper/index.d.ts.map +1 -1
  67. package/dist/components/table/Table.d.ts +37 -29
  68. package/dist/components/table/Table.d.ts.map +1 -1
  69. package/dist/components/table/index.d.ts +2 -2
  70. package/dist/components/table/index.d.ts.map +1 -1
  71. package/dist/index.css +1 -1
  72. package/dist/index.es.css +1 -1
  73. package/dist/index.es.js +3 -3
  74. package/dist/index.js +3 -3
  75. package/package.json +1 -1
  76. package/docs/Button.md +0 -175
  77. package/docs/Container.md +0 -230
  78. package/docs/Icon.md +0 -225
  79. package/docs/MediaObject.md +0 -303
  80. package/docs/Typography.md +0 -226
  81. package/docs-template-sample.md +0 -67
  82. package/llms.txt +0 -83
  83. package/scripts/generate-icons.js +0 -175
  84. package/tsconfig.json +0 -26
@@ -1,20 +1,23 @@
1
- export default Alert;
2
- declare function Alert({ message, size, variant, canDismiss, onDismiss, margin, }: {
3
- message: any;
4
- size?: string;
5
- variant?: string;
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ export type AlertSize = "small" | "medium" | "large";
4
+ export type AlertVariant = "success" | "error" | "warning" | "info" | "default";
5
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
6
+ export type AlertMargin = string | SpacingOption[];
7
+ export interface AlertProps {
8
+ /** Main message text shown in the alert */
9
+ message?: string;
10
+ /** Size of the alert and its icon/close button */
11
+ size?: AlertSize;
12
+ /** Visual variant (success, error, warning, info, default) */
13
+ variant?: AlertVariant;
14
+ /** Whether to show a dismiss button */
6
15
  canDismiss?: boolean;
7
- onDismiss: any;
8
- margin?: string[];
9
- }): import("react/jsx-runtime").JSX.Element;
10
- declare namespace Alert {
11
- namespace propTypes {
12
- let message: any;
13
- let canDismiss: any;
14
- let onDismiss: any;
15
- let size: any;
16
- let variant: any;
17
- let margin: any;
18
- }
16
+ /** Called when the user dismisses the alert */
17
+ onDismiss?: () => void;
18
+ /** Spacing suffix(s) for outer margin. Component adds the m- prefix (e.g. "0" → m-0). */
19
+ margin?: AlertMargin;
19
20
  }
21
+ declare const Alert: React.FC<AlertProps>;
22
+ export default Alert;
20
23
  //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.jsx"],"names":[],"mappings":";AAWA;;;;;;;4CAuCC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAKzD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAEhF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,yFAAyF;IACzF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuC/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Alert from "./Alert";
1
2
  export default Alert;
2
- import Alert from "./Alert.jsx";
3
+ export type { AlertProps, AlertSize, AlertVariant, AlertMargin, SpacingOption, } from "./Alert";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/alert/index.js"],"names":[],"mappings":";kBAAkB,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe,KAAK,CAAC;AACrB,YAAY,EACV,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,SAAS,CAAC"}
@@ -1,21 +1,23 @@
1
- export default Animated;
2
- declare function Animated({ animationType, as: Component, children, margin, delay, className, isBlock, ...otherProps }: {
3
- [x: string]: any;
4
- animationType?: string;
5
- as?: string;
6
- children: any;
7
- margin?: string[];
1
+ import React from "react";
2
+ import { ANIMATION_DELAY_OPTIONS, ANIMATION_TYPE_OPTIONS, SPACING_OPTIONS } from "../../constants/common";
3
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
4
+ export type AnimatedMargin = string | SpacingOption[];
5
+ export type AnimationType = (typeof ANIMATION_TYPE_OPTIONS)[number];
6
+ export type AnimationDelay = (typeof ANIMATION_DELAY_OPTIONS)[number];
7
+ export interface AnimatedProps extends Omit<React.HTMLAttributes<HTMLElement>, "className"> {
8
+ /** Animation type applied when element is in view */
9
+ animationType?: AnimationType;
10
+ /** Root element or component to render (default "span") */
11
+ as?: React.ElementType;
12
+ /** Margin spacing (suffix or array of spacing suffixes; component adds m- prefix) */
13
+ margin?: AnimatedMargin;
14
+ /** Delay in ms; maps to delay-{delay} class (e.g. 200 → delay-200) */
8
15
  delay?: number;
16
+ /** Additional class names for the root element */
9
17
  className?: string;
18
+ /** If true, applies block display */
10
19
  isBlock?: boolean;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare namespace Animated {
13
- namespace propTypes {
14
- let className: any;
15
- let children: any;
16
- let delay: any;
17
- let animationType: any;
18
- let margin: any;
19
- }
20
20
  }
21
+ declare const Animated: React.FC<AnimatedProps>;
22
+ export default Animated;
21
23
  //# sourceMappingURL=Animated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../src/components/animated/Animated.jsx"],"names":[],"mappings":";AAYA;;;;;;;;;4CA0CC"}
1
+ {"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../src/components/animated/Animated.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAKhC,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC5D,qDAAqD;IACrD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,2DAA2D;IAC3D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,qFAAqF;IACrF,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6CrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
- export default Animated;
2
- import Animated from "./Animated.jsx";
1
+ export { default } from "./Animated";
2
+ export type { AnimatedProps, AnimatedMargin, AnimationType, AnimationDelay, SpacingOption, } from "./Animated";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/animated/index.js"],"names":[],"mappings":";qBAAqB,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/animated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,aAAa,GACd,MAAM,YAAY,CAAC"}
@@ -1,22 +1,21 @@
1
- export default Avatar;
2
- declare function Avatar({ size, margin, onClick, name, image, icon, className, }: {
3
- size?: string;
4
- margin?: string;
5
- onClick: any;
1
+ import React from "react";
2
+ import { SPACING_OPTIONS } from "../../constants/common";
3
+ import type { MaterialIconName } from "../icon/material-icon-names";
4
+ export type SpacingOption = (typeof SPACING_OPTIONS)[number];
5
+ export type AvatarSize = "small" | "medium";
6
+ export type AvatarMargin = string | SpacingOption[];
7
+ export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
8
+ /** Display name; used for initials and title when no image/icon */
6
9
  name?: string;
10
+ /** Image URL; when set, shows image instead of initials */
7
11
  image?: string;
8
- icon?: string;
12
+ /** Material icon name; when set (and no image), shows icon instead of initials */
13
+ icon?: MaterialIconName;
14
+ size?: AvatarSize;
15
+ margin?: AvatarMargin;
16
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
9
17
  className?: string;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare namespace Avatar {
12
- namespace propTypes {
13
- let name: any;
14
- let image: any;
15
- let icon: any;
16
- let className: any;
17
- let size: any;
18
- let margin: any;
19
- let onClick: any;
20
- }
21
18
  }
19
+ declare const Avatar: React.FC<AvatarProps>;
20
+ export default Avatar;
22
21
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/Avatar.jsx"],"names":[],"mappings":";AASA;;;;;;;;4CAkCC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;AAEpD,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Avatar from "./Avatar";
1
2
  export default Avatar;
2
- import Avatar from "./Avatar.jsx";
3
+ export type { AvatarProps, AvatarSize, AvatarMargin, SpacingOption } from "./Avatar";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/index.js"],"names":[],"mappings":";mBAAmB,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -1,13 +1,13 @@
1
- export default Badge;
2
- declare function Badge({ label, variant }: {
3
- label: any;
4
- variant?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare namespace Badge {
7
- namespace propTypes {
8
- let label: any;
9
- let size: any;
10
- let variant: any;
11
- }
1
+ import React from "react";
2
+ export type BadgeVariant = "default" | "info" | "warning" | "error" | "success";
3
+ export interface BadgeProps {
4
+ /** Text shown in the badge */
5
+ label?: string;
6
+ /** Visual variant */
7
+ variant?: BadgeVariant;
8
+ /** Additional class names for the root element */
9
+ className?: string;
12
10
  }
11
+ declare const Badge: React.FC<BadgeProps>;
12
+ export default Badge;
13
13
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/Badge.jsx"],"names":[],"mappings":";AAIA;;;4CAEC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAY/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,3 +1,3 @@
1
- export default Badge;
2
- import Badge from "./Badge.jsx";
1
+ export { default } from "./Badge";
2
+ export type { BadgeProps, BadgeVariant } from "./Badge";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/badge/index.js"],"names":[],"mappings":";kBAAkB,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -1,38 +1,38 @@
1
- export default ConfirmDialog;
2
- declare function ConfirmDialog({ isOpen, onClose, title, description, primaryButtonLabel, onPrimaryButtonClick, secondaryButtonLabel, onSecondaryButtonClick, size, variant, showCloseButton, closeOnOverlayClick, closeOnEscape, className, overlayClassName, }: {
1
+ import React from "react";
2
+ export type ConfirmDialogSize = "small" | "medium" | "large";
3
+ export type ConfirmDialogVariant = "default" | "destructive" | "warning";
4
+ export interface ConfirmDialogProps {
5
+ /** Whether the dialog is visible */
3
6
  isOpen?: boolean;
4
- onClose: any;
7
+ /** Called when the dialog should close (close button, overlay, escape, or after primary/secondary action) */
8
+ onClose?: () => void;
9
+ /** Dialog title */
5
10
  title?: string;
11
+ /** Optional description text below the title */
6
12
  description?: string;
13
+ /** Label for the primary (confirm) button */
7
14
  primaryButtonLabel?: string;
8
- onPrimaryButtonClick: any;
15
+ /** Called when the primary button is clicked; onClose is also called */
16
+ onPrimaryButtonClick?: () => void;
17
+ /** Label for the secondary (cancel) button; empty string hides it */
9
18
  secondaryButtonLabel?: string;
10
- onSecondaryButtonClick: any;
11
- size?: string;
12
- variant?: string;
19
+ /** Called when the secondary button is clicked; onClose is also called */
20
+ onSecondaryButtonClick?: () => void;
21
+ /** Size of the dialog */
22
+ size?: ConfirmDialogSize;
23
+ /** Visual variant (default, destructive, warning) */
24
+ variant?: ConfirmDialogVariant;
25
+ /** Whether to show the X close button */
13
26
  showCloseButton?: boolean;
27
+ /** Whether clicking the overlay closes the dialog */
14
28
  closeOnOverlayClick?: boolean;
29
+ /** Whether pressing Escape closes the dialog */
15
30
  closeOnEscape?: boolean;
31
+ /** Additional class names for the dialog panel */
16
32
  className?: string;
33
+ /** Additional class names for the overlay */
17
34
  overlayClassName?: string;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare namespace ConfirmDialog {
20
- namespace propTypes {
21
- let isOpen: any;
22
- let onClose: any;
23
- let title: any;
24
- let description: any;
25
- let primaryButtonLabel: any;
26
- let onPrimaryButtonClick: any;
27
- let secondaryButtonLabel: any;
28
- let onSecondaryButtonClick: any;
29
- let size: any;
30
- let variant: any;
31
- let showCloseButton: any;
32
- let closeOnOverlayClick: any;
33
- let closeOnEscape: any;
34
- let className: any;
35
- let overlayClassName: any;
36
- }
37
35
  }
36
+ declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
37
+ export default ConfirmDialog;
38
38
  //# sourceMappingURL=ConfirmDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-dialog/ConfirmDialog.jsx"],"names":[],"mappings":";AAQA;;;;;;;;;;;;;;;;4CAsKC"}
1
+ {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6GAA6G;IAC7G,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,qEAAqE;IACrE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0EAA0E;IAC1E,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,yBAAyB;IACzB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,qDAAqD;IACrD,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,yCAAyC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiK/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
+ import ConfirmDialog from "./ConfirmDialog";
1
2
  export default ConfirmDialog;
2
- import ConfirmDialog from "./ConfirmDialog.jsx";
3
+ export type { ConfirmDialogProps, ConfirmDialogSize, ConfirmDialogVariant, } from "./ConfirmDialog";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-dialog/index.js"],"names":[],"mappings":";0BAA0B,qBAAqB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/confirm-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,eAAe,aAAa,CAAC;AAC7B,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC"}
@@ -1,32 +1,47 @@
1
- export default Dropdown;
2
- declare function Dropdown({ trigger, content, placement, offset: offsetValue, shift: shiftValue, flip: flipValue, closeOnClickOutside, closeOnEscape, className, contentClassName, renderTrigger, triggerLabel, }: {
3
- trigger: any;
4
- content: any;
5
- placement?: string;
1
+ import React, { type RefObject, type MouseEvent as ReactMouseEvent } from "react";
2
+ export type DropdownPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
3
+ export interface DropdownTriggerProps {
4
+ ref: RefObject<HTMLElement | null>;
5
+ onClick: (e: ReactMouseEvent<HTMLElement>) => void;
6
+ className: string;
7
+ role: string;
8
+ "aria-expanded": boolean;
9
+ "aria-haspopup": string;
10
+ }
11
+ export interface DropdownRenderTriggerParams {
12
+ isOpen: boolean;
13
+ isAnimating: boolean;
14
+ placement: DropdownPlacement;
15
+ toggle: () => void;
16
+ close: () => void;
17
+ triggerProps: DropdownTriggerProps;
18
+ }
19
+ export interface DropdownProps {
20
+ /** Trigger element to clone and attach ref/onClick (use when not using renderTrigger or triggerLabel) */
21
+ trigger?: React.ReactElement;
22
+ /** Content element to show in the floating panel; receives onClose and className when cloned */
23
+ content: React.ReactElement;
24
+ /** Preferred placement of the floating content */
25
+ placement?: DropdownPlacement;
26
+ /** Offset in pixels between trigger and content */
6
27
  offset?: number;
28
+ /** Whether to shift content to stay in viewport */
7
29
  shift?: boolean;
30
+ /** Whether to flip placement when content would overflow viewport */
8
31
  flip?: boolean;
32
+ /** Close when clicking outside trigger and content */
9
33
  closeOnClickOutside?: boolean;
34
+ /** Close when pressing Escape */
10
35
  closeOnEscape?: boolean;
36
+ /** Class name for the wrapper div */
11
37
  className?: string;
38
+ /** Class name applied to the cloned content element */
12
39
  contentClassName?: string;
13
- renderTrigger: any;
14
- triggerLabel: any;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- declare namespace Dropdown {
17
- namespace propTypes {
18
- let trigger: any;
19
- let content: any;
20
- let placement: any;
21
- let offset: any;
22
- let shift: any;
23
- let flip: any;
24
- let closeOnClickOutside: any;
25
- let closeOnEscape: any;
26
- let className: any;
27
- let contentClassName: any;
28
- let renderTrigger: any;
29
- let triggerLabel: any;
30
- }
40
+ /** Render prop for custom trigger; receives state and triggerProps */
41
+ renderTrigger?: (params: DropdownRenderTriggerParams) => React.ReactNode;
42
+ /** Label for default button trigger (used when neither trigger nor renderTrigger is provided) */
43
+ triggerLabel?: string;
31
44
  }
45
+ declare const Dropdown: React.FC<DropdownProps>;
46
+ export default Dropdown;
32
47
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;4CA+PC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,KAAK,SAAS,EACd,KAAK,UAAU,IAAI,eAAe,EAEnC,MAAM,OAAO,CAAC;AAKf,MAAM,MAAM,iBAAiB,GACzB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AAEhB,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,YAAY,EAAE,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,yGAAyG;IACzG,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,gGAAgG;IAChG,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B,kDAAkD;IAClD,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qEAAqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sDAAsD;IACtD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sEAAsE;IACtE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,2BAA2B,KAAK,KAAK,CAAC,SAAS,CAAC;IACzE,iGAAiG;IACjG,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAgCD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwNrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
+ import Dropdown from "./Dropdown";
1
2
  export default Dropdown;
2
- import Dropdown from "./Dropdown.jsx";
3
+ export type { DropdownProps, DropdownPlacement, DropdownTriggerProps, DropdownRenderTriggerParams, } from "./Dropdown";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.js"],"names":[],"mappings":";qBAAqB,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe,QAAQ,CAAC;AACxB,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
@@ -1,14 +1,16 @@
1
- export default Checkbox;
2
- declare function Checkbox({ name, id, onChange, defaultValue, value, label, isDisabled, className, isFluid, error, }: {
3
- name: any;
4
- id: any;
5
- onChange: any;
6
- defaultValue: any;
7
- value: any;
1
+ import React from "react";
2
+ export interface CheckboxProps {
3
+ name?: string;
4
+ id?: string;
5
+ onChange?: (checked: boolean) => void;
6
+ defaultValue?: boolean;
7
+ value?: boolean;
8
8
  label?: string;
9
9
  isDisabled?: boolean;
10
10
  className?: string;
11
11
  isFluid?: boolean;
12
12
  error?: string;
13
- }): import("react/jsx-runtime").JSX.Element;
13
+ }
14
+ declare const Checkbox: React.FC<CheckboxProps>;
15
+ export default Checkbox;
14
16
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Checkbox.jsx"],"names":[],"mappings":";AAIA;;;;;;;;;;;4CA4CC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8CrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,11 +1,13 @@
1
- export default Date;
2
- declare function Date({ onChange, defaultValue, label, isDisabled, className, error, isFluid, }: {
3
- onChange: any;
1
+ import React from "react";
2
+ export interface DateProps {
3
+ onChange?: (dateValue: string) => void;
4
4
  defaultValue?: string;
5
5
  label?: string;
6
6
  isDisabled?: boolean;
7
7
  className?: string;
8
8
  error?: string;
9
9
  isFluid?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
10
+ }
11
+ declare const Date: React.FC<DateProps>;
12
+ export default Date;
11
13
  //# sourceMappingURL=Date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Date.jsx"],"names":[],"mappings":";AASA;;;;;;;;4CAgGC"}
1
+ {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Date.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+F7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,15 +1,16 @@
1
- export default File;
2
- declare function File({ name, id, onChange, defaultValue, value, label, isDisabled, type, className, isFluid, error, }: {
3
- name: any;
4
- id: any;
5
- onChange: any;
6
- defaultValue: any;
7
- value: any;
1
+ import React from "react";
2
+ export interface FileProps {
3
+ name?: string;
4
+ id?: string;
5
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ defaultValue?: string;
7
+ value?: string;
8
8
  label?: string;
9
9
  isDisabled?: boolean;
10
- type?: string;
11
10
  className?: string;
12
11
  isFluid?: boolean;
13
12
  error?: string;
14
- }): import("react/jsx-runtime").JSX.Element;
13
+ }
14
+ declare const File: React.FC<FileProps>;
15
+ export default File;
15
16
  //# sourceMappingURL=File.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/File.jsx"],"names":[],"mappings":";AAGA;;;;;;;;;;;;4CAwCC"}
1
+ {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/File.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0C7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,11 +1,11 @@
1
- export default Input;
2
- declare function Input({ name, id, onChange, onKeyDown, defaultValue, value, label, isDisabled, isRequired, isFluid, type, className, placeholder, error, }: {
3
- name: any;
4
- id: any;
5
- onChange: any;
6
- onKeyDown: any;
7
- defaultValue: any;
8
- value: any;
1
+ import React from "react";
2
+ export interface InputProps {
3
+ name?: string;
4
+ id?: string;
5
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
7
+ defaultValue?: string;
8
+ value?: string;
9
9
  label?: string;
10
10
  isDisabled?: boolean;
11
11
  isRequired?: boolean;
@@ -14,5 +14,7 @@ declare function Input({ name, id, onChange, onKeyDown, defaultValue, value, lab
14
14
  className?: string;
15
15
  placeholder?: string;
16
16
  error?: string;
17
- }): import("react/jsx-runtime").JSX.Element;
17
+ }
18
+ declare const Input: React.FC<InputProps>;
19
+ export default Input;
18
20
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Input.jsx"],"names":[],"mappings":";AAGA;;;;;;;;;;;;;;;4CAqDC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmD/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,15 +1,16 @@
1
- export default Radio;
2
- declare function Radio({ name, id, onChange, defaultValue, value, label, isDisabled, type, className, isFluid, error, }: {
3
- name: any;
4
- id: any;
5
- onChange: any;
6
- defaultValue: any;
7
- value: any;
1
+ import React from "react";
2
+ export interface RadioProps {
3
+ name?: string;
4
+ id?: string;
5
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ defaultValue?: string;
7
+ value?: string;
8
8
  label?: string;
9
9
  isDisabled?: boolean;
10
- type?: string;
11
10
  className?: string;
12
11
  isFluid?: boolean;
13
12
  error?: string;
14
- }): import("react/jsx-runtime").JSX.Element;
13
+ }
14
+ declare const Radio: React.FC<RadioProps>;
15
+ export default Radio;
15
16
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Radio.jsx"],"names":[],"mappings":";AAGA;;;;;;;;;;;;4CAwCC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA0C/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,18 +1,24 @@
1
- export default Select;
2
- declare function Select({ onChange, value, label, isDisabled, className, triggerClassName, triggerActiveClassName, contentsClassName, options, isRequired, placeholder, error, isFluid, isMulti, }: {
3
- onChange: any;
4
- value: any;
1
+ import React from "react";
2
+ export interface SelectOption {
3
+ label: string;
4
+ value: string | number;
5
+ }
6
+ export interface SelectProps {
7
+ onChange?: (option: SelectOption | SelectOption[]) => void;
8
+ value?: SelectOption | SelectOption[] | null;
5
9
  label?: string;
6
10
  isDisabled?: boolean;
7
11
  className?: string;
8
12
  triggerClassName?: string;
9
13
  triggerActiveClassName?: string;
10
14
  contentsClassName?: string;
11
- options?: any[];
15
+ options?: SelectOption[];
12
16
  isRequired?: boolean;
13
17
  placeholder?: string;
14
18
  error?: string;
15
19
  isFluid?: boolean;
16
20
  isMulti?: boolean;
17
- }): import("react/jsx-runtime").JSX.Element;
21
+ }
22
+ declare const Select: React.FC<SelectProps>;
23
+ export default Select;
18
24
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Select.jsx"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;4CAuJC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/form-controls/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,EAAE,KAAK,IAAI,CAAC;IAC3D,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoKjC,CAAA;AAED,eAAe,MAAM,CAAC"}