digital-rabbit-cl 1.2.8 → 1.3.1
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/README.md +1 -1
- package/dist/components/Button/Button.d.ts +6 -14
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/useButtonStyles.d.ts +2 -2
- package/dist/components/Button/useButtonStyles.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +8 -3
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/useCheckboxStyles.d.ts +1 -1
- package/dist/components/Checkbox/useCheckboxStyles.d.ts.map +1 -1
- package/dist/components/FeatureCard/FeatureCard.d.ts +3 -2
- package/dist/components/FeatureCard/FeatureCard.d.ts.map +1 -1
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts +2 -3
- package/dist/components/FeatureGridSection/FeatureGridSection.d.ts.map +1 -1
- package/dist/components/Footer/Footer.d.ts +4 -8
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/useFooterStyles.d.ts +10 -10
- package/dist/components/Footer/useFooterStyles.d.ts.map +1 -1
- package/dist/components/Form/Form.d.ts +3 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/FormField.d.ts +1 -1
- package/dist/components/Form/FormField.d.ts.map +1 -1
- package/dist/components/FormError/FormError.d.ts +1 -1
- package/dist/components/FormError/FormError.d.ts.map +1 -1
- package/dist/components/FormGroup/FormGroup.d.ts +6 -9
- package/dist/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/dist/components/FormLabel/FormLabel.d.ts +3 -3
- package/dist/components/FormLabel/FormLabel.d.ts.map +1 -1
- package/dist/components/Hamburger/Hamburger.d.ts +4 -5
- package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
- package/dist/components/Hamburger/useHamburgerStyles.d.ts +1 -1
- package/dist/components/Hamburger/useHamburgerStyles.d.ts.map +1 -1
- package/dist/components/Header/Header.d.ts +4 -8
- package/dist/components/Header/Header.d.ts.map +1 -1
- package/dist/components/Header/useHeaderStyles.d.ts +3 -3
- package/dist/components/Header/useHeaderStyles.d.ts.map +1 -1
- package/dist/components/Hero/Hero.d.ts +1 -1
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +7 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/PageLayout/PageLayout.d.ts +3 -2
- package/dist/components/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +8 -3
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts +8 -7
- package/dist/components/ResponsiveNav/ResponsiveNav.d.ts.map +1 -1
- package/dist/components/ResponsiveSection/ResponsiveSection.d.ts +4 -4
- package/dist/components/ResponsiveSection/ResponsiveSection.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +3 -3
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Stack/Stack.d.ts +2 -2
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +3 -3
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +1177 -1066
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/test-utils.d.ts +2 -1
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/theme/ThemeContext.d.ts +2 -7
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/types/utils.d.ts +7 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/utils.d.ts +23 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/utils/componentProps.d.ts +0 -247
- package/dist/utils/componentProps.d.ts.map +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FormLabelProps } from '../FormLabel';
|
|
3
|
+
import { BaseComponentProps, StateProps, ColorProps, FormElementProps, ElementSpecificProps } from '../../types/component-props.d.ts';
|
|
3
4
|
export interface RadioProps extends Pick<BaseComponentProps, 'className' | 'style'>, Pick<StateProps, 'disabled' | 'error'>, Pick<ColorProps, 'color'>, Required<Pick<FormElementProps, 'name'>>, Pick<FormElementProps, 'id'> {
|
|
4
5
|
/**
|
|
5
6
|
* Whether radio is checked
|
|
6
7
|
*/
|
|
7
8
|
checked?: boolean;
|
|
8
9
|
/**
|
|
9
|
-
* Label
|
|
10
|
+
* Label for the radio
|
|
10
11
|
*/
|
|
11
|
-
label?:
|
|
12
|
+
label?: FormLabelProps['children'];
|
|
12
13
|
/**
|
|
13
14
|
* Custom styles for the label
|
|
14
15
|
*/
|
|
@@ -23,6 +24,10 @@ export interface RadioProps extends Pick<BaseComponentProps, 'className' | 'styl
|
|
|
23
24
|
type: string;
|
|
24
25
|
};
|
|
25
26
|
}) => void;
|
|
27
|
+
/**
|
|
28
|
+
* HTML div attributes (omits all top-level props to prevent conflicts)
|
|
29
|
+
*/
|
|
30
|
+
divProps?: Omit<ElementSpecificProps<HTMLDivElement>, 'className' | 'style'>;
|
|
26
31
|
}
|
|
27
32
|
declare const Radio: React.FC<RadioProps>;
|
|
28
33
|
export default Radio;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,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,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,KAAK,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAEnC;;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;IAExF;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;CAC9E;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmG/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ThemeBreakpoints } from '../../theme';
|
|
3
|
-
import { ElementSpecificProps } from '../../
|
|
3
|
+
import { ElementSpecificProps } from '../../types/component-props.d.ts';
|
|
4
4
|
export interface ResponsiveNavProps {
|
|
5
|
+
mobileBackground?: string;
|
|
6
|
+
mobileColor?: string;
|
|
7
|
+
mobileActiveBackground?: string;
|
|
8
|
+
mobileActiveColor?: string;
|
|
9
|
+
mobileButtonHoverColor?: string;
|
|
5
10
|
/**
|
|
6
11
|
* Breakpoint values for responsive behavior
|
|
7
12
|
* Can override specific breakpoints: { xs, sm, md, lg }
|
|
@@ -10,13 +15,9 @@ export interface ResponsiveNavProps {
|
|
|
10
15
|
children: React.ReactNode | ((context: {
|
|
11
16
|
setOpen: (open: boolean) => void;
|
|
12
17
|
}) => React.ReactNode);
|
|
13
|
-
|
|
14
|
-
mobileColor?: string;
|
|
15
|
-
mobileActiveBackground?: string;
|
|
16
|
-
mobileActiveColor?: string;
|
|
17
|
-
mobileButtonHoverColor?: string;
|
|
18
|
+
className?: string;
|
|
18
19
|
style?: React.CSSProperties;
|
|
19
|
-
navProps?: ElementSpecificProps<HTMLElement>;
|
|
20
|
+
navProps?: Omit<ElementSpecificProps<HTMLElement>, 'className' | 'style'>;
|
|
20
21
|
}
|
|
21
22
|
declare const ResponsiveNav: React.FC<ResponsiveNavProps>;
|
|
22
23
|
export default ResponsiveNav;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveNav.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/ResponsiveNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAY,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ResponsiveNav.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveNav/ResponsiveNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAY,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,MAAM,WAAW,kBAAkB;IAEjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAGhC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAGxC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAGjG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAG5B,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;CAC3E;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4F/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BaseComponentProps, ColorProps, LayoutProps, ElementSpecificProps } from '../../
|
|
3
|
-
export interface ResponsiveSectionProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<ColorProps, 'color' | '
|
|
2
|
+
import { BaseComponentProps, ColorProps, LayoutProps, ElementSpecificProps } from '../../types/component-props.d.ts';
|
|
3
|
+
export interface ResponsiveSectionProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<ColorProps, 'color' | 'backgroundColor'>, Pick<LayoutProps, 'margin' | 'gap' | 'maxWidth' | 'minWidth' | 'width' | 'height' | 'padding' | 'paddingSm'> {
|
|
4
4
|
/**
|
|
5
5
|
* Vertical rhythm multiplier - uses theme.fonts.rhythm as base
|
|
6
6
|
*/
|
|
7
7
|
verticalRhythm?: number;
|
|
8
8
|
/**
|
|
9
|
-
* HTML section element attributes
|
|
9
|
+
* HTML section element attributes (omits all top-level props to prevent conflicts)
|
|
10
10
|
*/
|
|
11
|
-
sectionProps?: ElementSpecificProps<HTMLElement>;
|
|
11
|
+
sectionProps?: Omit<ElementSpecificProps<HTMLElement>, 'className' | 'style'>;
|
|
12
12
|
}
|
|
13
13
|
declare const ResponsiveSection: React.FC<ResponsiveSectionProps>;
|
|
14
14
|
export default ResponsiveSection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveSection.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveSection/ResponsiveSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"ResponsiveSection.d.ts","sourceRoot":"","sources":["../../../src/components/ResponsiveSection/ResponsiveSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,iBAAiB,CAAC,EAC7C,IAAI,CACF,WAAW,EACX,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAC1F;IACH;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;CAC/E;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4DvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BaseComponentProps, StateProps, ColorProps, FormElementProps, TextInputProps, SizeVariant,
|
|
2
|
+
import { BaseComponentProps, StateProps, ColorProps, FormElementProps, TextInputProps, SizeVariant, ElementSpecificProps } from '../../types/component-props.d.ts';
|
|
3
3
|
export interface SelectProps extends Pick<BaseComponentProps, 'className' | 'style' | 'children'>, Pick<StateProps, 'disabled' | 'error'>, Pick<ColorProps, 'color'>, FormElementProps, Pick<TextInputProps, 'placeholder'> {
|
|
4
4
|
/**
|
|
5
5
|
* Select size variant
|
|
@@ -18,9 +18,9 @@ export interface SelectProps extends Pick<BaseComponentProps, 'className' | 'sty
|
|
|
18
18
|
*/
|
|
19
19
|
value?: string;
|
|
20
20
|
/**
|
|
21
|
-
* HTML select attributes
|
|
21
|
+
* HTML select attributes (omits all top-level props to prevent conflicts)
|
|
22
22
|
*/
|
|
23
|
-
selectProps?:
|
|
23
|
+
selectProps?: Omit<ElementSpecificProps<HTMLSelectElement>, 'className' | 'style' | 'disabled' | 'id' | 'name' | 'onChange' | 'onBlur' | 'value' | 'children'>;
|
|
24
24
|
}
|
|
25
25
|
declare const Select: React.FC<SelectProps>;
|
|
26
26
|
export default Select;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.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,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.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,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,WACf,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,EACzB,gBAAgB,EAChB,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAGnB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAEhE;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE9D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAChB,oBAAoB,CAAC,iBAAiB,CAAC,EACrC,WAAW,GACX,OAAO,GACP,UAAU,GACV,IAAI,GACJ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,OAAO,GACP,UAAU,CACb,CAAC;CACH;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyFjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BaseComponentProps, LayoutProps, ElementSpecificProps } from '../../
|
|
2
|
+
import { BaseComponentProps, LayoutProps, ElementSpecificProps } from '../../types/component-props.d.ts';
|
|
3
3
|
export interface StackProps extends BaseComponentProps, Pick<LayoutProps, 'direction'> {
|
|
4
|
-
divProps?: ElementSpecificProps<HTMLDivElement>;
|
|
4
|
+
divProps?: Omit<ElementSpecificProps<HTMLDivElement>, 'className' | 'style'>;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Stack provides consistent spacing for elements in either vertical or horizontal layouts.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,kBAAkB,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC;IACpF,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;CAC9E;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2B/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BaseComponentProps, StateProps, ColorProps, FormElementProps, TextInputProps, SizeVariant,
|
|
2
|
+
import { BaseComponentProps, StateProps, ColorProps, FormElementProps, TextInputProps, SizeVariant, ElementSpecificProps } from '../../types/component-props.d.ts';
|
|
3
3
|
export interface TextareaProps extends Pick<BaseComponentProps, 'className' | 'style'>, Pick<StateProps, 'disabled' | 'error'>, Pick<ColorProps, 'color'>, FormElementProps, TextInputProps {
|
|
4
4
|
/**
|
|
5
5
|
* Textarea size variant
|
|
@@ -18,9 +18,9 @@ export interface TextareaProps extends Pick<BaseComponentProps, 'className' | 's
|
|
|
18
18
|
*/
|
|
19
19
|
rows?: number;
|
|
20
20
|
/**
|
|
21
|
-
* HTML textarea attributes
|
|
21
|
+
* HTML textarea attributes (omits all top-level props to prevent conflicts)
|
|
22
22
|
*/
|
|
23
|
-
textareaProps?:
|
|
23
|
+
textareaProps?: Omit<ElementSpecificProps<HTMLTextAreaElement>, 'className' | 'style' | 'disabled' | 'id' | 'name' | 'onChange' | 'onBlur' | 'placeholder' | 'rows' | 'value'>;
|
|
24
24
|
}
|
|
25
25
|
declare const Textarea: React.FC<TextareaProps>;
|
|
26
26
|
export default Textarea;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.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,
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.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,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,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,gBAAgB,EAChB,cAAc;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAGnB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAElE;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IAEhE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd;;OAEG;IACH,aAAa,CAAC,EAAE,IAAI,CAClB,oBAAoB,CAAC,mBAAmB,CAAC,EACvC,WAAW,GACX,OAAO,GACP,UAAU,GACV,IAAI,GACJ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,aAAa,GACb,MAAM,GACN,OAAO,CACV,CAAC;CACH;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|