digital-rabbit-cl 1.2.6 → 1.2.8

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 (61) hide show
  1. package/dist/components/Button/Button.d.ts +26 -9
  2. package/dist/components/Button/Button.d.ts.map +1 -1
  3. package/dist/components/CSSReset/CSSReset.d.ts +2 -2
  4. package/dist/components/CSSReset/CSSReset.d.ts.map +1 -1
  5. package/dist/components/Checkbox/Checkbox.d.ts +20 -8
  6. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  7. package/dist/components/FeatureCard/FeatureCard.d.ts +3 -5
  8. package/dist/components/FeatureCard/FeatureCard.d.ts.map +1 -1
  9. package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +2 -2
  10. package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +1 -1
  11. package/dist/components/Footer/Footer.d.ts +12 -10
  12. package/dist/components/Footer/Footer.d.ts.map +1 -1
  13. package/dist/components/Footer/useFooterStyles.d.ts +11 -3
  14. package/dist/components/Footer/useFooterStyles.d.ts.map +1 -1
  15. package/dist/components/FormError/FormError.d.ts +6 -4
  16. package/dist/components/FormError/FormError.d.ts.map +1 -1
  17. package/dist/components/FormGroup/FormGroup.d.ts +21 -7
  18. package/dist/components/FormGroup/FormGroup.d.ts.map +1 -1
  19. package/dist/components/FormLabel/FormLabel.d.ts +9 -7
  20. package/dist/components/FormLabel/FormLabel.d.ts.map +1 -1
  21. package/dist/components/Hamburger/Hamburger.d.ts +3 -2
  22. package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
  23. package/dist/components/Hamburger/useHamburgerStyles.d.ts +3 -2
  24. package/dist/components/Hamburger/useHamburgerStyles.d.ts.map +1 -1
  25. package/dist/components/Header/Header.d.ts +13 -9
  26. package/dist/components/Header/Header.d.ts.map +1 -1
  27. package/dist/components/Header/useHeaderStyles.d.ts +15 -3
  28. package/dist/components/Header/useHeaderStyles.d.ts.map +1 -1
  29. package/dist/components/Hero/Hero.d.ts +2 -2
  30. package/dist/components/Hero/Hero.d.ts.map +1 -1
  31. package/dist/components/Input/Input.d.ts +20 -11
  32. package/dist/components/Input/Input.d.ts.map +1 -1
  33. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +8 -16
  34. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  35. package/dist/components/PageLayout/PageLayout.d.ts +3 -5
  36. package/dist/components/PageLayout/PageLayout.d.ts.map +1 -1
  37. package/dist/components/Radio/Radio.d.ts +14 -8
  38. package/dist/components/Radio/Radio.d.ts.map +1 -1
  39. package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +8 -3
  40. package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
  41. package/dist/components/ResponsiveSection/ResponsiveSection.d.ts +9 -6
  42. package/dist/components/ResponsiveSection/ResponsiveSection.d.ts.map +1 -1
  43. package/dist/components/Select/Select.d.ts +20 -10
  44. package/dist/components/Select/Select.d.ts.map +1 -1
  45. package/dist/components/Stack/Stack.d.ts +3 -5
  46. package/dist/components/Stack/Stack.d.ts.map +1 -1
  47. package/dist/components/StyleLoader/StyleLoader.d.ts.map +1 -1
  48. package/dist/components/Textarea/Textarea.d.ts +20 -11
  49. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  50. package/dist/digital-rabbit-cl.es.js +1642 -1533
  51. package/dist/digital-rabbit-cl.umd.js +4 -4
  52. package/dist/index.d.ts +2 -1
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/test-utils.d.ts.map +1 -1
  55. package/dist/theme/ThemeContext.d.ts +29 -8
  56. package/dist/theme/ThemeContext.d.ts.map +1 -1
  57. package/dist/theme/index.d.ts +1 -1
  58. package/dist/theme/index.d.ts.map +1 -1
  59. package/dist/utils/componentProps.d.ts +247 -0
  60. package/dist/utils/componentProps.d.ts.map +1 -0
  61. package/package.json +3 -1
@@ -1,17 +1,34 @@
1
1
  import { default as React } from 'react';
2
- export interface ButtonProps {
3
- children: React.ReactNode;
4
- color?: string;
5
- hoverColor?: string;
6
- hoverTextColor?: string;
2
+ import { BaseComponentProps, StateProps, ColorProps, HoverProps, SizeVariant, ButtonAttributes } from '../../utils/componentProps';
3
+ export interface ButtonProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<StateProps, 'disabled'>, Pick<ColorProps, 'color'>, Pick<HoverProps, 'hoverColor'> {
4
+ /**
5
+ * Button text color - defaults to theme.buttons.textColor
6
+ */
7
7
  textColor?: string;
8
+ /**
9
+ * Hover text color - defaults to textColor
10
+ */
11
+ hoverTextColor?: string;
12
+ /**
13
+ * Button size variant
14
+ */
15
+ size?: SizeVariant;
16
+ /**
17
+ * Outline style variant
18
+ */
8
19
  outline?: boolean;
9
- size?: 'small' | 'default';
20
+ /**
21
+ * Button type attribute
22
+ */
10
23
  type?: 'button' | 'submit' | 'reset';
11
- buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
12
- disabled?: boolean;
24
+ /**
25
+ * HTML button attributes - can include style overrides
26
+ */
27
+ buttonProps?: ButtonAttributes;
28
+ /**
29
+ * Click handler
30
+ */
13
31
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
14
- fontSize?: string;
15
32
  }
16
33
  declare const Button: React.FC<ButtonProps>;
17
34
  export default Button;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,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K,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmFjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -5,8 +5,8 @@ import { default as React } from 'react';
5
5
  * Reads theme from ThemeProvider context and applies CSS custom properties.
6
6
  * Maps theme.colors and theme.fonts to CSS variables.
7
7
  *
8
- * Uses useEffect to apply theme after mount.
9
- * Changed from useLayoutEffect for Next.js SSR compatibility.
8
+ * Uses useLayoutEffect to apply theme synchronously before paint,
9
+ * preventing flash of unstyled content (FOUC).
10
10
  *
11
11
  * @example
12
12
  * ```jsx
@@ -1 +1 @@
1
- {"version":3,"file":"CSSReset.d.ts","sourceRoot":"","sources":["../../../src/components/CSSReset/CSSReset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,aAAa,CAAC;AAGrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EA6FrB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CSSReset.d.ts","sourceRoot":"","sources":["../../../src/components/CSSReset/CSSReset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,aAAa,CAAC;AAGrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EA0FrB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,16 +1,29 @@
1
1
  import { default as React } from 'react';
2
- export interface CheckboxProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
2
+ import { BaseComponentProps, StateProps, ColorProps, FormElementProps } from '../../utils/componentProps';
3
+ export interface CheckboxProps extends Pick<BaseComponentProps, 'className' | 'style'>, Pick<StateProps, 'disabled' | 'error'>, Pick<ColorProps, 'color'>, Required<Pick<FormElementProps, 'name'>>, Pick<FormElementProps, 'id'> {
4
+ /**
5
+ * Whether checkbox is checked
6
+ */
3
7
  checked?: boolean;
8
+ /**
9
+ * Color of the checkmark
10
+ */
4
11
  checkmarkColor?: string;
5
- color?: string;
6
- disabled?: boolean;
7
- error?: boolean;
8
- fontSize?: string;
9
- id?: string;
12
+ /**
13
+ * Whether to invert the checkbox (fill when checked)
14
+ */
10
15
  inverted?: boolean;
16
+ /**
17
+ * Label text for the checkbox
18
+ */
11
19
  label?: string;
20
+ /**
21
+ * Custom styles for the label
22
+ */
12
23
  labelStyle?: React.CSSProperties;
13
- name: string;
24
+ /**
25
+ * Change handler
26
+ */
14
27
  onChange: (event: {
15
28
  target: {
16
29
  checked: boolean;
@@ -18,7 +31,6 @@ export interface CheckboxProps extends Omit<React.HTMLAttributes<HTMLDivElement>
18
31
  type: string;
19
32
  };
20
33
  }) => void;
21
- style?: React.CSSProperties;
22
34
  }
23
35
  declare const Checkbox: React.FC<CheckboxProps>;
24
36
  export default Checkbox;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC3F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,M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EAAE;QAAE,MAAM,EAAE;YAAE,OAAO,EAAE,OAAO,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CACzF;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoGrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,11 +1,9 @@
1
1
  import { default as React } from 'react';
2
- export interface FeatureCardProps {
2
+ import { BaseComponentProps } from '../../utils/componentProps';
3
+ export interface FeatureCardProps extends BaseComponentProps {
3
4
  icon?: React.ReactNode;
4
5
  title: string;
5
- children: React.ReactNode;
6
- className?: string;
7
- style?: React.CSSProperties;
8
- breakPointMd?: string;
6
+ breakpoint?: string;
9
7
  }
10
8
  declare const FeatureCard: React.FC<FeatureCardProps>;
11
9
  export default FeatureCard;
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureCard/FeatureCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureCard/FeatureCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { ResponsiveSectionProps } from '../ResponsiveSection';
3
+ import { BreakpointProps } from '../../utils/componentProps';
3
4
  export interface FeatureGridSectionProps extends Omit<ResponsiveSectionProps, 'className'> {
4
5
  columns?: 1 | 2 | 3 | 4;
5
6
  className?: string;
6
- breakPointMd?: string;
7
- breakPointLg?: string;
7
+ breakpoints?: BreakpointProps;
8
8
  }
9
9
  declare const FeatureGridSection: React.FC<FeatureGridSectionProps>;
10
10
  export default FeatureGridSection;
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureGridSection.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureGridSection/FeatureGridSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAA0B,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAMjF,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC;IACxF,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAgCzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"FeatureGridSection.d.ts","sourceRoot":"","sources":["../../../src/components/FeatureGridSection/FeatureGridSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAA0B,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAKjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,WAAW,CAAC;IACxF,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+BzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,15 +1,17 @@
1
1
  import { default as React } from 'react';
2
- export interface FooterProps {
3
- children?: React.ReactNode;
4
- breakPointSm?: string;
5
- maxWidth?: string;
6
- paddingSm?: string;
7
- padding?: string;
8
- fontSize?: string;
9
- background?: string;
10
- color?: string;
11
- style?: React.CSSProperties;
2
+ import { BaseComponentProps, ColorProps, LayoutProps } from '../../utils/componentProps';
3
+ export interface FooterProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<ColorProps, 'color' | 'background'>, Pick<LayoutProps, 'margin' | 'gap' | 'maxWidth' | 'minWidth' | 'width' | 'height' | 'padding' | 'paddingSm'> {
4
+ /**
5
+ * Breakpoint for small screens
6
+ */
7
+ breakPoint?: string;
8
+ /**
9
+ * HTML footer element attributes
10
+ */
12
11
  footerProps?: React.HTMLAttributes<HTMLElement>;
12
+ /**
13
+ * Ref for the footer element
14
+ */
13
15
  footerRef?: React.RefObject<HTMLElement>;
14
16
  }
15
17
  declare const Footer: React.FC<FooterProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8CjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9F,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,YAAY,CAAC,EACxC,IAAI,CACF,WAAW,EACX,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAC1F;IACH;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAEhD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -4,18 +4,26 @@
4
4
  export interface UseFooterStylesParams {
5
5
  isSmallScreen?: boolean;
6
6
  maxWidth?: string;
7
+ minWidth?: string;
8
+ width?: string;
9
+ height?: string;
7
10
  paddingSm?: string;
8
11
  padding?: string;
9
- fontSize?: string;
12
+ margin?: string;
13
+ gap?: string;
10
14
  background?: string;
11
15
  color?: string;
12
16
  }
13
17
  export interface FooterStyles {
14
18
  '--footer-max-width': string;
19
+ '--footer-min-width'?: string;
20
+ '--footer-width'?: string;
21
+ '--footer-height'?: string;
15
22
  '--footer-padding': string;
16
- '--footer-font-size': string;
23
+ '--footer-margin'?: string;
24
+ '--footer-gap'?: string;
17
25
  background?: string;
18
26
  color: string;
19
27
  }
20
- export declare const useFooterStyles: ({ isSmallScreen, maxWidth, paddingSm, padding, fontSize, background, color, }?: UseFooterStylesParams) => FooterStyles;
28
+ export declare const useFooterStyles: ({ isSmallScreen, maxWidth, minWidth, width, height, paddingSm, padding, margin, gap, background, color, }?: UseFooterStylesParams) => FooterStyles;
21
29
  //# sourceMappingURL=useFooterStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFooterStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/useFooterStyles.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,E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MAAM,CAAC;CACf;AAED,eAAO,MAAM,eAAe,GAAI,4GAY7B,qBAA0B,KAAG,YAgB/B,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { default as React } from 'react';
2
- export interface FormErrorProps {
3
- children: React.ReactNode;
4
- className?: string;
5
- style?: React.CSSProperties;
2
+ import { BaseComponentProps, ColorProps, ElementSpecificProps } from '../../utils/componentProps';
3
+ export interface FormErrorProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<ColorProps, 'color'> {
4
+ /**
5
+ * HTML div attributes
6
+ */
7
+ divProps?: ElementSpecificProps<HTMLDivElement>;
6
8
  }
7
9
  declare const FormError: React.FC<FormErrorProps>;
8
10
  export default FormError;
@@ -1 +1 @@
1
- {"version":3,"file":"FormError.d.ts","sourceRoot":"","sources":["../../../src/components/FormError/FormError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"FormError.d.ts","sourceRoot":"","sources":["../../../src/components/FormError/FormError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,17 +1,31 @@
1
1
  import { default as React } from 'react';
2
2
  import { FormLabelProps } from '../FormLabel';
3
- export interface FormGroupProps {
4
- children: React.ReactNode;
3
+ import { BaseComponentProps, StateProps, FormElementProps, ElementSpecificProps } from '../../utils/componentProps';
4
+ export interface FormGroupProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<StateProps, 'disabled' | 'error'>, Pick<FormElementProps, 'name'> {
5
+ /**
6
+ * Label text for the form group
7
+ */
5
8
  label?: string;
6
- name?: string;
7
- error?: boolean;
9
+ /**
10
+ * Error message to display
11
+ */
8
12
  errorMessage?: string;
9
- disabled?: boolean;
13
+ /**
14
+ * Show required indicator (*)
15
+ */
10
16
  required?: boolean;
17
+ /**
18
+ * Indent the input wrapper (useful for checkboxes/radios)
19
+ */
11
20
  indent?: boolean;
12
- className?: string;
13
- style?: React.CSSProperties;
21
+ /**
22
+ * Props to pass to the FormLabel component
23
+ */
14
24
  labelProps?: Partial<FormLabelProps>;
25
+ /**
26
+ * HTML div attributes
27
+ */
28
+ divProps?: ElementSpecificProps<HTMLDivElement>;
15
29
  }
16
30
  declare const FormGroup: React.FC<FormGroupProps>;
17
31
  export default FormGroup;
@@ -1 +1 @@
1
- {"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,C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AAC,cAAc,CA8EvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import { default as React } from 'react';
2
- export interface FormLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
- children: React.ReactNode;
4
- color?: string;
5
- disabled?: boolean;
6
- error?: boolean;
7
- fontSize?: string;
2
+ import { BaseComponentProps, StateProps, ColorProps, LabelAttributes } from '../../utils/componentProps';
3
+ export interface FormLabelProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<StateProps, 'disabled' | 'error'>, Pick<ColorProps, 'color'> {
4
+ /**
5
+ * The id of the form element this label is associated with
6
+ */
8
7
  htmlFor?: string;
9
- style?: React.CSSProperties;
8
+ /**
9
+ * HTML label attributes
10
+ */
11
+ labelProps?: LabelAttributes;
10
12
  }
11
13
  declare const FormLabel: React.FC<FormLabelProps>;
12
14
  export default FormLabel;
@@ -1 +1 @@
1
- {"version":3,"file":"FormLabel.d.ts","sourceRoot":"","sources":["../../../src/components/FormLabel/FormLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACjF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAqCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"FormLabel.d.ts","sourceRoot":"","sources":["../../../src/components/FormLabel/FormLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,EACtC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { BorderProps, ButtonAttributes } from '../../utils/componentProps';
2
3
  export interface HamburgerProps {
3
4
  visible: boolean;
4
5
  compact?: boolean;
@@ -6,8 +7,8 @@ export interface HamburgerProps {
6
7
  hamburgerRef?: React.RefObject<HTMLButtonElement>;
7
8
  open?: boolean;
8
9
  setOpen: (open: boolean) => void;
9
- buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
10
- borderRadius?: string;
10
+ buttonProps?: ButtonAttributes;
11
+ border?: BorderProps;
11
12
  }
12
13
  declare const Hamburger: React.FC<HamburgerProps>;
13
14
  export default Hamburger;
@@ -1 +1 @@
1
- {"version":3,"file":"Hamburger.d.ts","sourceRoot":"","sources":["../../../src/components/Hamburger/Hamburger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Hamburger.d.ts","sourceRoot":"","sources":["../../../src/components/Hamburger/Hamburger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAClD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,8 +1,9 @@
1
+ import { BorderProps } from '../../utils/componentProps';
1
2
  export interface UseHamburgerStylesParams {
2
3
  compact?: boolean;
3
4
  color?: string;
4
5
  visible?: boolean;
5
- borderRadius?: string;
6
+ border?: BorderProps;
6
7
  }
7
8
  export interface HamburgerStyles {
8
9
  '--hamburger-border-radius': string;
@@ -10,5 +11,5 @@ export interface HamburgerStyles {
10
11
  display: string;
11
12
  right?: string;
12
13
  }
13
- export declare const useHamburgerStyles: ({ compact, color, visible, borderRadius, }: UseHamburgerStylesParams) => HamburgerStyles;
14
+ export declare const useHamburgerStyles: ({ compact, color, visible, border, }: UseHamburgerStylesParams) => HamburgerStyles;
14
15
  //# sourceMappingURL=useHamburgerStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useHamburgerStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Hamburger/useHamburgerStyles.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,GAAI,4CAKhC,wBAAwB,KAAG,eAa7B,CAAC"}
1
+ {"version":3,"file":"useHamburgerStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Hamburger/useHamburgerStyles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,2BAA2B,EAAE,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,GAAI,sCAKhC,wBAAwB,KAAG,eAa7B,CAAC"}
@@ -1,13 +1,17 @@
1
1
  import { default as React } from 'react';
2
- export interface HeaderProps {
3
- children?: React.ReactNode;
4
- breakPointSm?: string;
5
- maxWidth?: string;
6
- paddingSm?: string;
7
- padding?: string;
8
- fontSize?: string;
9
- style?: React.CSSProperties;
10
- headerProps?: React.HTMLAttributes<HTMLElement>;
2
+ import { BaseComponentProps, ColorProps, LayoutProps, ElementSpecificProps } from '../../utils/componentProps';
3
+ export interface HeaderProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<ColorProps, 'color' | 'background'>, Pick<LayoutProps, 'margin' | 'gap' | 'maxWidth' | 'minWidth' | 'width' | 'height' | 'padding' | 'paddingSm'> {
4
+ /**
5
+ * Breakpoint for small screens
6
+ */
7
+ breakpoint?: string;
8
+ /**
9
+ * HTML header element attributes
10
+ */
11
+ headerProps?: ElementSpecificProps<HTMLElement>;
12
+ /**
13
+ * Ref for the header element
14
+ */
11
15
  headerRef?: React.RefObject<HTMLElement>;
12
16
  }
13
17
  declare const Header: React.FC<HeaderProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0CjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,YAAY,CAAC,EACxC,IAAI,CACF,WAAW,EACX,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAC1F;IACH;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAEhD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyDjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -4,14 +4,26 @@
4
4
  export interface UseHeaderStylesParams {
5
5
  isSmallScreen?: boolean;
6
6
  maxWidth?: string;
7
+ minWidth?: string;
8
+ width?: string;
9
+ height?: string;
7
10
  paddingSm?: string;
8
11
  padding?: string;
9
- fontSize?: string;
12
+ margin?: string;
13
+ gap?: string;
14
+ background?: string;
15
+ color?: string;
10
16
  }
11
17
  export interface HeaderStyles {
12
18
  '--header-max-width': string;
19
+ '--header-min-width'?: string;
20
+ '--header-width'?: string;
21
+ '--header-height'?: string;
13
22
  '--header-padding': string;
14
- '--header-font-size': string;
23
+ '--header-margin'?: string;
24
+ '--header-gap'?: string;
25
+ background?: string;
26
+ color?: string;
15
27
  }
16
- export declare const useHeaderStyles: ({ isSmallScreen, maxWidth, paddingSm, padding, fontSize, }?: UseHeaderStylesParams) => HeaderStyles;
28
+ export declare const useHeaderStyles: ({ isSmallScreen, maxWidth, minWidth, width, height, paddingSm, padding, margin, gap, background, color, }?: UseHeaderStylesParams) => HeaderStyles;
17
29
  //# sourceMappingURL=useHeaderStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useHeaderStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Header/useHeaderStyles.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,eAAe,GAAI,6DAM7B,qBAA0B,KAAG,YAU/B,CAAC"}
1
+ {"version":3,"file":"useHeaderStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Header/useHeaderStyles.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,GAAI,4GAY7B,qBAA0B,KAAG,YAgB/B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { ResponsiveSectionProps } from '../ResponsiveSection';
3
+ import { BreakpointProps } from '../../utils/componentProps';
3
4
  export interface HeroProps extends ResponsiveSectionProps {
4
- breakPointMd?: string;
5
- breakPointLg?: string;
5
+ breakpoints?: BreakpointProps;
6
6
  }
7
7
  declare const Hero: React.FC<HeroProps>;
8
8
  export default Hero;
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAA0B,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAMjF,MAAM,WAAW,SAAU,SAAQ,sBAAsB;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+B7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAA0B,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAKjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,SAAU,SAAQ,sBAAsB;IACvD,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8B7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,17 +1,26 @@
1
1
  import { default as React } from 'react';
2
- export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
- color?: string;
4
- disabled?: boolean;
5
- error?: boolean;
6
- fontSize?: string;
7
- name?: string;
2
+ import { BaseComponentProps, StateProps, ColorProps, FormElementProps, TextInputProps, SizeVariant, InputAttributes } from '../../utils/componentProps';
3
+ export interface InputProps extends Pick<BaseComponentProps, 'className' | 'style'>, Pick<StateProps, 'disabled' | 'error'>, Pick<ColorProps, 'color'>, FormElementProps, TextInputProps {
4
+ /**
5
+ * Input size variant
6
+ */
7
+ size?: SizeVariant;
8
+ /**
9
+ * Change handler (required for controlled inputs)
10
+ */
8
11
  onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
- placeholder?: string;
10
- placeholderOpacity?: number;
11
- size?: 'small' | 'default';
12
- style?: React.CSSProperties;
12
+ /**
13
+ * Blur handler
14
+ */
15
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
16
+ /**
17
+ * Input type attribute
18
+ */
13
19
  type?: string;
14
- value?: string;
20
+ /**
21
+ * HTML input attributes
22
+ */
23
+ inputProps?: InputAttributes;
15
24
  }
16
25
  declare const Input: React.FC<InputProps>;
17
26
  export default Input;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+D/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,CAAC,EACrD,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,EACtC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACzB,gBAAgB,EAChB,cAAc;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAGnB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE/D;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE7D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsE/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,18 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export interface LoadingSpinnerProps {
3
- /**
4
- * Size of the spinner in ems
5
- * @default 2.5
6
- */
7
- size?: number;
8
- /**
9
- * Color of the spinner (defaults to theme.colors.primary)
10
- */
11
- color?: string;
12
- /**
13
- * Color of the inner spinner dial (defaults to theme.colors.secondary)
14
- */
15
- innerColor?: string;
2
+ import { BaseComponentProps, ColorProps } from '../../utils/componentProps';
3
+ export interface LoadingSpinnerProps extends Pick<BaseComponentProps, 'className' | 'style'>, Pick<ColorProps, 'color' | 'background'> {
16
4
  /**
17
5
  * Whether to center the spinner in viewport
18
6
  * @default true
@@ -29,8 +17,12 @@ export interface LoadingSpinnerProps {
29
17
  * // Default spinner (uses theme.colors.primary)
30
18
  * <LoadingSpinner />
31
19
  *
32
- * // Custom size and color
33
- * <LoadingSpinner size={3.75} color="#ff0000" />
20
+ * // Custom size and colors
21
+ * <LoadingSpinner
22
+ * style={{ fontSize: '3em' }}
23
+ * color="#ff0000"
24
+ * background="#00ff00"
25
+ * />
34
26
  *
35
27
  * // Inline (not full screen)
36
28
  * <LoadingSpinner fullScreen={false} />
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgDjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEjF,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,CAAC,EACrD,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,YAAY,CAAC;IAC1C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0DjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,11 +1,9 @@
1
1
  import { default as React } from 'react';
2
- export interface PageLayoutProps {
3
- children: React.ReactNode;
2
+ import { BaseComponentProps } from '../../utils/componentProps';
3
+ export interface PageLayoutProps extends BaseComponentProps {
4
4
  header?: React.ReactNode;
5
5
  footer?: React.ReactNode;
6
- pagePadding?: boolean;
7
- className?: string;
8
- style?: React.CSSProperties;
6
+ mainStyle?: React.CSSProperties;
9
7
  }
10
8
  declare const PageLayout: React.FC<PageLayoutProps>;
11
9
  export default PageLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgCzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACjC;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}