@televet/kibble-ui 1.12.9 → 1.12.10-beta.2wp7xv5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
- import React from 'react';
1
+ import React, { ForwardedRef } from 'react';
2
2
  import { TextareaProps as CTextareaProps } from '@chakra-ui/react';
3
3
  import { WithFormControlProps } from '../FormControl/formControl.component';
4
4
  export interface TextareaProps extends WithFormControlProps, CTextareaProps {
5
+ textareaRef?: ForwardedRef<HTMLTextAreaElement>;
5
6
  }
6
- declare const WrappedTextArea: React.FC<TextareaProps>;
7
+ declare const WrappedTextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
7
8
  export { WrappedTextArea as Textarea };
@@ -0,0 +1,2 @@
1
+ import { ModalBodyProps } from '@chakra-ui/react';
2
+ export declare const ModalBody: ({ children, ...rest }: ModalBodyProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from '../../Forms';
2
+ export declare const ModalCloseButton: ({ right, left, size, ...rest }: ButtonProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ModalFooterProps as ChakraModalFooterProps } from '@chakra-ui/react';
2
+ export interface ModalFooterProps extends ChakraModalFooterProps {
3
+ }
4
+ export declare const ModalFooter: ({ children, ...rest }: ModalFooterProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ModalFooterProps as ChakraModalFooterProps } from '@chakra-ui/react';
2
+ export interface ModalFooterButtonProps extends ChakraModalFooterProps {
3
+ submitText?: string;
4
+ isLoading?: boolean;
5
+ isDestructive?: boolean;
6
+ onSubmit?: () => void;
7
+ allowCancel?: boolean;
8
+ onCancel?: () => void;
9
+ }
10
+ export declare const ModalFooterButtons: ({ submitText, isLoading, isDestructive, children, onSubmit, allowCancel, onCancel, ...rest }: ModalFooterButtonProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ModalHeaderProps as ChakraModalHeaderProps } from '@chakra-ui/react';
2
+ import { HeadingSize } from '../../Typography';
3
+ export interface ModalHeaderProps extends ChakraModalHeaderProps {
4
+ size?: HeadingSize;
5
+ }
6
+ export declare const ModalHeader: ({ size, children, ...rest }: ModalHeaderProps) => JSX.Element;
package/build/index.js CHANGED
@@ -1218,7 +1218,7 @@ const SvgPersonAdd = ({ color = "currentColor", height = "24px", width = "24px"
1218
1218
  const ForwardRef$C = React.forwardRef(SvgPersonAdd);
1219
1219
 
1220
1220
  const SvgPerson = ({ color = "currentColor", height = "24px", width = "24px" }, ref) => (React__namespace.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: width, height: height, ref: ref },
1221
- React__namespace.createElement("path", { d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 8-8 8 8 0 0 0-8-8Zm0 2.2a2.6 2.6 0 1 1 0 5.2 2.6 2.6 0 0 1 0-5.2Zm0 12.2a6.38 6.38 0 0 1-4.87-2.25.812.812 0 0 1 .138-1.176C8.482 14.061 10.694 13.6 12 13.6c1.307 0 3.518.46 4.732 1.373.376.283.444.82.14 1.177A6.386 6.386 0 0 1 12 18.4Z", fill: color })));
1221
+ React__namespace.createElement("path", { d: "M13 3a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Zm0 2.475a2.924 2.924 0 1 1 .001 5.849A2.924 2.924 0 0 1 13 5.475ZM13 19.2a7.178 7.178 0 0 1-5.479-2.531.914.914 0 0 1 .155-1.324C9.043 14.32 11.53 13.8 13 13.8c1.47 0 3.958.518 5.324 1.545.422.318.499.923.156 1.324A7.184 7.184 0 0 1 13 19.2Z", fill: color })));
1222
1222
  const ForwardRef$B = React.forwardRef(SvgPerson);
1223
1223
 
1224
1224
  const SvgPhoneButtons = ({ color = "currentColor", height = "24px", width = "24px" }, ref) => (React__namespace.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: width, height: height, ref: ref },
@@ -1298,7 +1298,7 @@ const SvgSmileyFacePlus = ({ color = "currentColor", height = "24px", width = "2
1298
1298
  const ForwardRef$j = React.forwardRef(SvgSmileyFacePlus);
1299
1299
 
1300
1300
  const SvgSmileyFace = ({ color = "currentColor", height = "24px", width = "24px" }, ref) => (React__namespace.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: width, height: height, ref: ref },
1301
- React__namespace.createElement("path", { d: "M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm2.8 4.8c.664 0 1.2.536 1.2 1.2 0 .664-.536 1.2-1.2 1.2-.664 0-1.2-.536-1.2-1.2 0-.664.536-1.2 1.2-1.2Zm-5.6 0c.664 0 1.2.536 1.2 1.2 0 .664-.536 1.2-1.2 1.2-.664 0-1.2-.536-1.2-1.2 0-.664.536-1.2 1.2-1.2Zm2.8 7.6a4.388 4.388 0 0 1-3.798-2.198.404.404 0 0 1 .352-.602h6.892c.308 0 .505.336.35.602A4.38 4.38 0 0 1 12 16.4Z", fill: color })));
1301
+ React__namespace.createElement("path", { d: "M13 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm3.15 5.4c.747 0 1.35.603 1.35 1.35 0 .747-.603 1.35-1.35 1.35-.747 0-1.35-.603-1.35-1.35 0-.747.603-1.35 1.35-1.35Zm-6.3 0c.747 0 1.35.603 1.35 1.35 0 .747-.603 1.35-1.35 1.35-.747 0-1.35-.603-1.35-1.35 0-.747.603-1.35 1.35-1.35ZM13 16.95a4.936 4.936 0 0 1-4.273-2.473.455.455 0 0 1 .396-.677h7.754c.346 0 .568.378.393.677A4.927 4.927 0 0 1 13 16.95Z", fill: color })));
1302
1302
  const ForwardRef$i = React.forwardRef(SvgSmileyFace);
1303
1303
 
1304
1304
  const SvgSort = ({ color = "currentColor", height = "24px", width = "24px" }, ref) => (React__namespace.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: width, height: height, ref: ref },
@@ -3764,12 +3764,12 @@ var CheckboxConfig = {
3764
3764
  },
3765
3765
  };
3766
3766
 
3767
- var Textarea = function (props) {
3768
- props.isFieldInline; var domProps = __rest(props, ["isFieldInline"]);
3769
- return React__default["default"].createElement(react.Textarea, __assign({ background: colors.background.light }, domProps));
3770
- };
3771
- Textarea.displayName = 'Textarea';
3772
- var WrappedTextArea = withFormControl(Textarea);
3767
+ var Textarea = withFormControl(function (props) {
3768
+ props.isFieldInline; var textareaRef = props.textareaRef, domProps = __rest(props, ["isFieldInline", "textareaRef"]);
3769
+ return React__default["default"].createElement(react.Textarea, __assign({ background: colors.background.light, ref: textareaRef }, domProps));
3770
+ });
3771
+ var WrappedTextArea = React.forwardRef(function (props, ref) { return (React__default["default"].createElement(Textarea, __assign({ textareaRef: ref }, props))); });
3772
+ WrappedTextArea.displayName = 'Textarea';
3773
3773
 
3774
3774
  var FormControlConfig = {
3775
3775
  baseStyle: {