@tanishraj/ui-kit 2.5.3 → 2.5.6

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/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { CreatableProps } from 'react-select/creatable';
11
11
  import { DayPickerProps } from 'react-day-picker';
12
12
  import { default as default_2 } from 'react-select';
13
13
  import { DetailedHTMLProps } from 'react';
14
+ import { ElementType } from 'react';
14
15
  import { FC } from 'react';
15
16
  import { FieldsetHTMLAttributes } from 'react';
16
17
  import { ForwardRefExoticComponent } from 'react';
@@ -1392,6 +1393,11 @@ export declare type TabsSizes = RemoveNull<VariantProps<typeof tabRootStyles>>['
1392
1393
 
1393
1394
  export declare type TabsVariant = RemoveNull<VariantProps<typeof tabRootStyles>>['variant'];
1394
1395
 
1396
+ declare function Text_2<TElement extends TextElement = 'span'>({ align, as, children, className, italic, ref, size, tone, transform, truncate, weight, ...restProps }: TextProps<TElement>): JSX.Element;
1397
+ export { Text_2 as Text }
1398
+
1399
+ export declare type TextAlign = RemoveNull<VariantProps<typeof textStyles>>['align'];
1400
+
1395
1401
  export declare function TextArea({ ref, id, label, caption, error, size, variant, fullWidth, containerClassName, labelClassName, textAreaClassName, className, disabled, required, value, defaultValue, maxLength, onChange, rows, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, ...restProps }: TextAreaProps): JSX.Element;
1396
1402
 
1397
1403
  export declare interface TextAreaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'children' | 'size'> {
@@ -1410,6 +1416,34 @@ export declare type TextAreaSizes = ButtonSizes;
1410
1416
 
1411
1417
  export declare type TextAreaVariants = ButtonVariants;
1412
1418
 
1419
+ export declare type TextElement = ElementType;
1420
+
1421
+ export declare interface TextOwnProps extends RemoveNull<VariantProps<typeof textStyles>> {
1422
+ as?: TextElement;
1423
+ children?: ReactNode;
1424
+ className?: string;
1425
+ }
1426
+
1427
+ export declare type TextProps<TElement extends TextElement = 'span'> = TextOwnProps & Omit<ComponentPropsWithRef<TElement>, keyof TextOwnProps>;
1428
+
1429
+ export declare type TextSize = RemoveNull<VariantProps<typeof textStyles>>['size'];
1430
+
1431
+ declare const textStyles: (props?: ({
1432
+ size?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
1433
+ weight?: "bold" | "medium" | "semibold" | "regular" | null | undefined;
1434
+ tone?: "default" | "primary" | "info" | "success" | "warning" | "danger" | "inverted" | "caption" | "placeholder" | null | undefined;
1435
+ align?: "center" | "right" | "left" | "justify" | null | undefined;
1436
+ transform?: "none" | "capitalize" | "lowercase" | "uppercase" | null | undefined;
1437
+ italic?: boolean | null | undefined;
1438
+ truncate?: boolean | null | undefined;
1439
+ } & ClassProp) | undefined) => string;
1440
+
1441
+ export declare type TextTone = RemoveNull<VariantProps<typeof textStyles>>['tone'];
1442
+
1443
+ export declare type TextTransform = RemoveNull<VariantProps<typeof textStyles>>['transform'];
1444
+
1445
+ export declare type TextWeight = RemoveNull<VariantProps<typeof textStyles>>['weight'];
1446
+
1413
1447
  export declare type TMetricCardColorVariant = MetricCardColorVariant;
1414
1448
 
1415
1449
  export declare function Toaster({ className, position, toastOptions, ...restProps }: ToasterProps): JSX.Element;