@scaleflex/ui-tw 0.0.40 → 0.0.41
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/badge/badge.component.d.ts +4 -0
- package/badge/badge.component.js +20 -0
- package/badge/badge.constants.d.ts +4 -0
- package/badge/badge.constants.js +19 -0
- package/badge/badge.types.d.ts +4 -0
- package/badge/badge.types.js +1 -0
- package/badge/index.d.ts +1 -0
- package/badge/index.js +1 -0
- package/button/button.component.d.ts +1 -1
- package/button/components/start-icon.d.ts +1 -1
- package/date-picker/date-picker.component.d.ts +1 -1
- package/date-picker/date-picker.component.js +34 -8
- package/date-picker/date-picker.types.d.ts +3 -1
- package/input/input.component.d.ts +1 -1
- package/package.json +2 -2
- package/pill/pill.component.d.ts +2 -2
- package/select/select.component.d.ts +1 -1
- package/table/index.d.ts +1 -0
- package/table/index.js +1 -0
- package/table/table.component.d.ts +15 -0
- package/table/table.component.js +83 -0
- package/textarea/textarea.component.d.ts +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["className", "variant", "size"];
|
|
4
|
+
import { badgeVariants } from '@scaleflex/ui-tw/badge/badge.constants';
|
|
5
|
+
import { cn } from '@scaleflex/ui-tw/utils/cn';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
function Badge(_ref) {
|
|
8
|
+
var className = _ref.className,
|
|
9
|
+
variant = _ref.variant,
|
|
10
|
+
size = _ref.size,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
13
|
+
"data-slot": "badge",
|
|
14
|
+
className: cn('inline-flex items-center rounded-md py-0.5 font-normal ring-1 ring-inset', badgeVariants({
|
|
15
|
+
variant: variant,
|
|
16
|
+
size: size
|
|
17
|
+
}), className)
|
|
18
|
+
}, props));
|
|
19
|
+
}
|
|
20
|
+
export { Badge };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
export var badgeVariants = cva('', {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
neutral: 'bg-border text-foreground ring-input',
|
|
6
|
+
green: 'bg-success text-white ring-success-foreground/10',
|
|
7
|
+
yellow: 'bg-warning text-white ring-warning-foreground/10',
|
|
8
|
+
greenSoft: 'bg-success/15 text-success-foreground ring-success/10'
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
md: 'text-sm px-2',
|
|
12
|
+
lg: 'text-md px-3'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: 'neutral',
|
|
17
|
+
size: 'md'
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/badge/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from './badge.component';
|
package/badge/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from './badge.component';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ButtonProps } from './button.types';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "outline" | "ghost-primary" | "ghost-secondary" | "error-primary" | "warning-primary" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "lg" | "xs" | "sm" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
export { Button, buttonVariants };
|
|
@@ -2,7 +2,7 @@ import type { StartIconProps } from '@scaleflex/ui-tw/button/button.types';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const startIconVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "outline" | "ghost-primary" | "ghost-secondary" | "error-primary" | "warning-primary" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "lg" | "xs" | "sm" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare const StartIcon: (props: StartIconProps) => React.JSX.Element | null;
|
|
8
8
|
export { StartIcon, startIconVariants };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DatePickerProps } from './date-picker.types';
|
|
3
|
-
declare function DatePicker({ minDate, maxDate, readOnly, defaultDate, size, invalidDateText, disabled, onChange, popoverClassName, defaultOpen, popoverContentProps, ...rest }: DatePickerProps): React.JSX.Element;
|
|
3
|
+
declare function DatePicker({ minDate, maxDate, readOnly, defaultDate, size, invalidDateText, disabled, onChange, popoverClassName, defaultOpen, popoverContentProps, onKeyDown, onBlur, ...rest }: DatePickerProps): React.JSX.Element;
|
|
4
4
|
export { DatePicker };
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["minDate", "maxDate", "readOnly", "defaultDate", "size", "invalidDateText", "disabled", "onChange", "popoverClassName", "defaultOpen", "popoverContentProps"];
|
|
5
|
+
var _excluded = ["minDate", "maxDate", "readOnly", "defaultDate", "size", "invalidDateText", "disabled", "onChange", "popoverClassName", "defaultOpen", "popoverContentProps", "onKeyDown", "onBlur"];
|
|
6
6
|
import { Button } from '@scaleflex/ui-tw/button';
|
|
7
7
|
import { Calendar } from '@scaleflex/ui-tw/calendar';
|
|
8
8
|
import { Input } from '@scaleflex/ui-tw/input';
|
|
@@ -13,7 +13,7 @@ import { getBaseInputClasses } from '@scaleflex/ui-tw/styles/shared-classes';
|
|
|
13
13
|
import { FormSize } from '@scaleflex/ui-tw/types/form-size';
|
|
14
14
|
import { cn } from '@scaleflex/ui-tw/utils/cn';
|
|
15
15
|
import { CalendarIcon } from 'lucide-react';
|
|
16
|
-
import React, { useState } from 'react';
|
|
16
|
+
import React, { useRef, useState } from 'react';
|
|
17
17
|
import { buttonSizeInTriggerOptions, iconSizeInTriggerOptions } from './date-picker.constants';
|
|
18
18
|
import { parseDateString, toHtmlDateString } from './date-picker.utils';
|
|
19
19
|
function DatePicker(_ref) {
|
|
@@ -31,7 +31,11 @@ function DatePicker(_ref) {
|
|
|
31
31
|
_ref$defaultOpen = _ref.defaultOpen,
|
|
32
32
|
defaultOpen = _ref$defaultOpen === void 0 ? false : _ref$defaultOpen,
|
|
33
33
|
popoverContentProps = _ref.popoverContentProps,
|
|
34
|
+
onKeyDown = _ref.onKeyDown,
|
|
35
|
+
onBlur = _ref.onBlur,
|
|
34
36
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
+
var inputRef = useRef(null);
|
|
38
|
+
var isEscapeBlur = useRef(false);
|
|
35
39
|
var _useState = useState(defaultOpen),
|
|
36
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
37
41
|
open = _useState2[0],
|
|
@@ -61,18 +65,44 @@ function DatePicker(_ref) {
|
|
|
61
65
|
};
|
|
62
66
|
var handleCalendarSelect = function handleCalendarSelect(date) {
|
|
63
67
|
if (date) {
|
|
68
|
+
var _inputRef$current;
|
|
64
69
|
setSelectedDate(date);
|
|
65
70
|
setInputValue(toHtmlDateString(date));
|
|
66
71
|
setCalendarMonth(date);
|
|
67
72
|
setOpen(false);
|
|
68
73
|
onChange === null || onChange === void 0 || onChange(date);
|
|
74
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
69
75
|
}
|
|
70
76
|
};
|
|
77
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
78
|
+
var allowed = '0123456789/';
|
|
79
|
+
if (event.key.length === 1 && !allowed.includes(event.key)) {
|
|
80
|
+
event.preventDefault();
|
|
81
|
+
}
|
|
82
|
+
if (event.key === 'Escape') {
|
|
83
|
+
var _inputRef$current2;
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
isEscapeBlur.current = true;
|
|
86
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();
|
|
87
|
+
}
|
|
88
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
89
|
+
};
|
|
90
|
+
var handleBlur = function handleBlur(event) {
|
|
91
|
+
if (event.relatedTarget instanceof HTMLButtonElement && event.relatedTarget.id === 'date-picker') {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (isEscapeBlur.current) {
|
|
95
|
+
isEscapeBlur.current = false;
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
onBlur === null || onBlur === void 0 || onBlur(event);
|
|
99
|
+
};
|
|
71
100
|
return /*#__PURE__*/React.createElement("div", {
|
|
72
101
|
className: "flex flex-col gap-2"
|
|
73
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
74
103
|
className: "relative flex gap-2"
|
|
75
104
|
}, /*#__PURE__*/React.createElement(Input, _extends({
|
|
105
|
+
ref: inputRef,
|
|
76
106
|
id: "date",
|
|
77
107
|
type: "text",
|
|
78
108
|
inputMode: "numeric",
|
|
@@ -85,12 +115,8 @@ function DatePicker(_ref) {
|
|
|
85
115
|
size: size
|
|
86
116
|
}), readOnly && selectReadOnlyClassNames, !isInputValid && 'border-destructive'])),
|
|
87
117
|
onChange: handleInputChange,
|
|
88
|
-
onKeyDown:
|
|
89
|
-
|
|
90
|
-
if (e.key.length === 1 && !allowed.includes(e.key)) {
|
|
91
|
-
e.preventDefault();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
118
|
+
onKeyDown: handleKeyDown,
|
|
119
|
+
onBlur: handleBlur
|
|
94
120
|
}, rest)), /*#__PURE__*/React.createElement(Popover, {
|
|
95
121
|
open: open,
|
|
96
122
|
defaultOpen: defaultOpen,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
2
|
import { FormSizeType } from '@scaleflex/ui-tw/types/form-size';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
3
|
+
import type { ComponentProps, FocusEvent, KeyboardEvent } from 'react';
|
|
4
4
|
export type DatePickerProps = {
|
|
5
5
|
minDate?: Date;
|
|
6
6
|
maxDate?: Date;
|
|
@@ -12,5 +12,7 @@ export type DatePickerProps = {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
defaultOpen?: boolean;
|
|
14
14
|
onChange?: (date: Date) => void;
|
|
15
|
+
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
15
17
|
popoverContentProps?: ComponentProps<typeof PopoverPrimitive.Content>;
|
|
16
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { InputProps } from './input.types';
|
|
3
3
|
declare const inputVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "md" | "lg" | "sm" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Input({ className, type, size, disabled, readOnly, ...props }: InputProps): React.JSX.Element;
|
|
7
7
|
export { Input, inputVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/ui-tw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"author": "scaleflex",
|
|
5
5
|
"repository": "github:scaleflex/ui",
|
|
6
6
|
"homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@radix-ui/react-slot": "^1.1.2",
|
|
23
23
|
"@radix-ui/react-switch": "^1.0.1",
|
|
24
24
|
"@radix-ui/react-tooltip": "^1.2.6",
|
|
25
|
-
"@scaleflex/icons-tw": "^0.0.
|
|
25
|
+
"@scaleflex/icons-tw": "^0.0.41",
|
|
26
26
|
"@types/lodash.merge": "^4.6.9",
|
|
27
27
|
"class-variance-authority": "^0.7.1",
|
|
28
28
|
"cmdk": "^1.1.1",
|
package/pill/pill.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PillProps } from '@scaleflex/ui-tw/pill/pill.types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const pillVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
5
|
-
variant?: "
|
|
4
|
+
size?: "md" | "lg" | "sm" | null | undefined;
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Pill({ className, size, variant, removable, onRemove, ...props }: PillProps): React.JSX.Element;
|
|
8
8
|
export { Pill, pillVariants };
|
|
@@ -5,7 +5,7 @@ declare function Select({ ...props }: ComponentProps<typeof SelectPrimitive.Root
|
|
|
5
5
|
declare function SelectGroup({ ...props }: ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
6
6
|
declare function SelectValue({ ...props }: ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
|
|
7
7
|
export declare const selectTriggerVariants: (props?: ({
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "md" | "lg" | "sm" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
declare function SelectTrigger({ className, size, children, readOnly, icon, ...props }: SelectTriggerProps): React.JSX.Element;
|
|
11
11
|
declare function SelectContent({ className, children, position, ...props }: ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
|
package/table/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from './table.component';
|
package/table/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption } from './table.component';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
|
+
declare function Table({ className, sticky, wrapperClassName, ...props }: ComponentProps<'table'> & {
|
|
3
|
+
sticky?: boolean;
|
|
4
|
+
wrapperClassName?: string;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
declare function TableHeader({ className, ...props }: ComponentProps<'thead'>): React.JSX.Element;
|
|
7
|
+
declare function TableBody({ className, ...props }: ComponentProps<'tbody'>): React.JSX.Element;
|
|
8
|
+
declare function TableFooter({ className, ...props }: ComponentProps<'tfoot'>): React.JSX.Element;
|
|
9
|
+
declare function TableRow({ className, ...props }: ComponentProps<'tr'>): React.JSX.Element;
|
|
10
|
+
declare function TableHead({ className, sticky, ...props }: ComponentProps<'th'> & {
|
|
11
|
+
sticky?: boolean;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
declare function TableCell({ className, ...props }: ComponentProps<'td'>): React.JSX.Element;
|
|
14
|
+
declare function TableCaption({ className, ...props }: ComponentProps<'caption'>): React.JSX.Element;
|
|
15
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["className", "sticky", "wrapperClassName"],
|
|
4
|
+
_excluded2 = ["className"],
|
|
5
|
+
_excluded3 = ["className"],
|
|
6
|
+
_excluded4 = ["className"],
|
|
7
|
+
_excluded5 = ["className"],
|
|
8
|
+
_excluded6 = ["className", "sticky"],
|
|
9
|
+
_excluded7 = ["className"],
|
|
10
|
+
_excluded8 = ["className"];
|
|
11
|
+
import { cn } from '@scaleflex/ui-tw/utils/cn';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
function Table(_ref) {
|
|
14
|
+
var className = _ref.className,
|
|
15
|
+
sticky = _ref.sticky,
|
|
16
|
+
wrapperClassName = _ref.wrapperClassName,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
"data-slot": "table-container",
|
|
20
|
+
className: cn('relative w-full overflow-x-auto', sticky && 'max-h-[400px] overflow-auto', wrapperClassName)
|
|
21
|
+
}, /*#__PURE__*/React.createElement("table", _extends({
|
|
22
|
+
"data-slot": "table",
|
|
23
|
+
className: cn('w-full caption-bottom text-sm', className)
|
|
24
|
+
}, props)));
|
|
25
|
+
}
|
|
26
|
+
function TableHeader(_ref2) {
|
|
27
|
+
var className = _ref2.className,
|
|
28
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
29
|
+
return /*#__PURE__*/React.createElement("thead", _extends({
|
|
30
|
+
"data-slot": "table-header",
|
|
31
|
+
className: cn('[&_tr]:border-b-border [&_tr]:border-b [&_tr]:hover:bg-transparent', className)
|
|
32
|
+
}, props));
|
|
33
|
+
}
|
|
34
|
+
function TableBody(_ref3) {
|
|
35
|
+
var className = _ref3.className,
|
|
36
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
37
|
+
return /*#__PURE__*/React.createElement("tbody", _extends({
|
|
38
|
+
"data-slot": "table-body",
|
|
39
|
+
className: cn('[&_tr:last-child]:border-0', className)
|
|
40
|
+
}, props));
|
|
41
|
+
}
|
|
42
|
+
function TableFooter(_ref4) {
|
|
43
|
+
var className = _ref4.className,
|
|
44
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
45
|
+
return /*#__PURE__*/React.createElement("tfoot", _extends({
|
|
46
|
+
"data-slot": "table-footer",
|
|
47
|
+
className: cn('bg-muted/50 border-t-border border-t font-medium [&>tr]:last:border-b-0', className)
|
|
48
|
+
}, props));
|
|
49
|
+
}
|
|
50
|
+
function TableRow(_ref5) {
|
|
51
|
+
var className = _ref5.className,
|
|
52
|
+
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
53
|
+
return /*#__PURE__*/React.createElement("tr", _extends({
|
|
54
|
+
"data-slot": "table-row",
|
|
55
|
+
className: cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b-border border-b transition-colors', className)
|
|
56
|
+
}, props));
|
|
57
|
+
}
|
|
58
|
+
function TableHead(_ref6) {
|
|
59
|
+
var className = _ref6.className,
|
|
60
|
+
sticky = _ref6.sticky,
|
|
61
|
+
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
62
|
+
return /*#__PURE__*/React.createElement("th", _extends({
|
|
63
|
+
"data-slot": "table-head",
|
|
64
|
+
className: cn(sticky && 'sticky top-0 z-10', 'bg-background text-secondary-foreground h-12 px-4 text-left align-middle text-sm font-normal whitespace-nowrap', '[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className)
|
|
65
|
+
}, props));
|
|
66
|
+
}
|
|
67
|
+
function TableCell(_ref7) {
|
|
68
|
+
var className = _ref7.className,
|
|
69
|
+
props = _objectWithoutProperties(_ref7, _excluded7);
|
|
70
|
+
return /*#__PURE__*/React.createElement("td", _extends({
|
|
71
|
+
"data-slot": "table-cell",
|
|
72
|
+
className: cn('px-4 py-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className)
|
|
73
|
+
}, props));
|
|
74
|
+
}
|
|
75
|
+
function TableCaption(_ref8) {
|
|
76
|
+
var className = _ref8.className,
|
|
77
|
+
props = _objectWithoutProperties(_ref8, _excluded8);
|
|
78
|
+
return /*#__PURE__*/React.createElement("caption", _extends({
|
|
79
|
+
"data-slot": "table-caption",
|
|
80
|
+
className: cn('text-muted-foreground mt-4 text-sm', className)
|
|
81
|
+
}, props));
|
|
82
|
+
}
|
|
83
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TextareaProps } from './textarea.types';
|
|
3
3
|
declare const textareaVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "md" | "lg" | "sm" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Textarea({ className, size, disabled, readOnly, ...props }: TextareaProps): React.JSX.Element;
|
|
7
7
|
export { Textarea, textareaVariants };
|