digital-rabbit-cl 1.2.5 → 1.2.7
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.
- package/dist/components/Button/Button.d.ts +26 -9
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +20 -8
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/FeatureCard/FeatureCard.d.ts +3 -5
- package/dist/components/FeatureCard/FeatureCard.d.ts.map +1 -1
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +2 -2
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +1 -1
- package/dist/components/Footer/Footer.d.ts +12 -10
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/useFooterStyles.d.ts +11 -3
- package/dist/components/Footer/useFooterStyles.d.ts.map +1 -1
- package/dist/components/FormError/FormError.d.ts +6 -4
- package/dist/components/FormError/FormError.d.ts.map +1 -1
- package/dist/components/FormGroup/FormGroup.d.ts +21 -7
- package/dist/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/dist/components/FormLabel/FormLabel.d.ts +9 -7
- package/dist/components/FormLabel/FormLabel.d.ts.map +1 -1
- package/dist/components/Hamburger/Hamburger.d.ts +3 -2
- package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
- package/dist/components/Hamburger/useHamburgerStyles.d.ts +3 -2
- package/dist/components/Hamburger/useHamburgerStyles.d.ts.map +1 -1
- package/dist/components/Header/Header.d.ts +13 -9
- package/dist/components/Header/Header.d.ts.map +1 -1
- package/dist/components/Header/useHeaderStyles.d.ts +15 -3
- package/dist/components/Header/useHeaderStyles.d.ts.map +1 -1
- package/dist/components/Hero/Hero.d.ts +2 -2
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +20 -11
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +8 -16
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/PageLayout/PageLayout.d.ts +3 -5
- package/dist/components/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +14 -8
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +8 -3
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/components/ResponsiveSection/ResponsiveSection.d.ts +9 -6
- package/dist/components/ResponsiveSection/ResponsiveSection.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +20 -10
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +3 -5
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +20 -11
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +1640 -1529
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/theme/ThemeContext.d.ts +29 -8
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/utils/componentProps.d.ts +247 -0
- package/dist/utils/componentProps.d.ts.map +1 -0
- package/package.json +3 -1
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Button type attribute
|
|
22
|
+
*/
|
|
10
23
|
type?: 'button' | 'submit' | 'reset';
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAC5B,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACzB,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAGrC;;OAEG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,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"}
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,aACf,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,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,EACxC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEjC;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,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
|
-
|
|
2
|
+
import { BaseComponentProps } from '../../utils/componentProps';
|
|
3
|
+
export interface FeatureCardProps extends BaseComponentProps {
|
|
3
4
|
icon?: React.ReactNode;
|
|
4
5
|
title: string;
|
|
5
|
-
|
|
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;
|
|
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
|
-
|
|
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;
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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;
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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,
|
|
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,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,EAAE,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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Error message to display
|
|
11
|
+
*/
|
|
8
12
|
errorMessage?: string;
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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;
|
|
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;AAIzD,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,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,UAAU,GAAG,OAAO,CAAC,EACtC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8EvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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;
|
|
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?:
|
|
10
|
-
|
|
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;
|
|
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
|
-
|
|
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,
|
|
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":"
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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;
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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;
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Blur handler
|
|
14
|
+
*/
|
|
15
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Input type attribute
|
|
18
|
+
*/
|
|
13
19
|
type?: string;
|
|
14
|
-
|
|
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;
|
|
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
|
-
|
|
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
|
|
33
|
-
* <LoadingSpinner
|
|
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;
|
|
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
|
-
|
|
3
|
-
|
|
2
|
+
import { BaseComponentProps } from '../../utils/componentProps';
|
|
3
|
+
export interface PageLayoutProps extends BaseComponentProps {
|
|
4
4
|
header?: React.ReactNode;
|
|
5
5
|
footer?: React.ReactNode;
|
|
6
|
-
|
|
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;
|
|
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"}
|