@yakad/ui 1.3.164 → 1.3.166
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/ActiveOnVisible/ActiveOnVisible.d.ts +1 -1
- package/dist/ActiveOnVisible/ActiveOnVisible.js +2 -1
- package/dist/AppBar/AppBar.d.ts +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.js +2 -2
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +2 -2
- package/dist/Card/Card.d.ts +1 -1
- package/dist/CheckBox/CheckBox.d.ts +1 -1
- package/dist/CheckBox/CheckBox.js +2 -2
- package/dist/CodeBox/CodeBox.d.ts +1 -1
- package/dist/CodeBox/CodeBox.js +2 -2
- package/dist/CodeField/CodeField.d.ts +1 -1
- package/dist/Container/Container.d.ts +1 -1
- package/dist/Display/Display.d.ts +1 -1
- package/dist/Dropdown/Dropdown.d.ts +2 -1
- package/dist/Dropdown/Dropdown.js +17 -3
- package/dist/Footer/Footer.d.ts +1 -1
- package/dist/Form/Form.d.ts +1 -1
- package/dist/GridContainer/GridContainer.d.ts +1 -1
- package/dist/GridItem/GridItem.d.ts +1 -1
- package/dist/Hr/Hr.d.ts +1 -1
- package/dist/InputField/InputField.d.ts +13 -5
- package/dist/InputField/InputField.js +36 -6
- package/dist/InputField/cn.d.ts +2 -0
- package/dist/InputField/cn.js +5 -0
- package/dist/InputField/input.d.ts +7 -0
- package/dist/InputField/input.js +18 -0
- package/dist/List/List.d.ts +1 -1
- package/dist/ListItem/ListItem.d.ts +1 -1
- package/dist/Main/Main.d.ts +1 -1
- package/dist/Navigation/Navigation.d.ts +1 -1
- package/dist/Popup/Popup.d.ts +2 -1
- package/dist/Popup/Popup.js +19 -5
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +2 -2
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/RenderByScroll/RenderByScroll.d.ts +1 -1
- package/dist/RenderByScroll/RenderByScroll.js +2 -1
- package/dist/Row/Row.d.ts +1 -1
- package/dist/Screen/Screen.d.ts +1 -1
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Spacer/Spacer.d.ts +1 -1
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/SvgIcon/SvgIcon.d.ts +1 -1
- package/dist/Table/Table.d.ts +7 -7
- package/dist/Text/Text.d.ts +9 -9
- package/dist/Theme/Theme.d.ts +1 -1
- package/dist/WithOverlay/WithOverlay.d.ts +1 -1
- package/dist/WithOverlay/WithOverlay.js +12 -23
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -11
- package/package.json +8 -4
- package/dist/InputField/InputField.module.css +0 -212
- package/dist/LoadingIcon/LoadingIcon.d.ts +0 -7
- package/dist/LoadingIcon/LoadingIcon.js +0 -19
- package/dist/LoadingIcon/LoadingIcon.module.css +0 -98
- package/dist/interactionHooks/useOnDoubleTap.d.ts +0 -2
- package/dist/interactionHooks/useOnDoubleTap.js +0 -23
- package/dist/interactionHooks/useOnHoverChange.d.ts +0 -2
- package/dist/interactionHooks/useOnHoverChange.js +0 -23
- package/dist/interactionHooks/useOnOutsideClick.d.ts +0 -2
- package/dist/interactionHooks/useOnOutsideClick.js +0 -21
- package/dist/interactionHooks/useOnPinch.d.ts +0 -2
- package/dist/interactionHooks/useOnPinch.js +0 -35
- package/dist/interactionHooks/useOnResizeChange.d.ts +0 -2
- package/dist/interactionHooks/useOnResizeChange.js +0 -23
- package/dist/interactionHooks/useOnRightClick.d.ts +0 -2
- package/dist/interactionHooks/useOnRightClick.js +0 -19
- package/dist/interactionHooks/useOnRotate.d.ts +0 -2
- package/dist/interactionHooks/useOnRotate.js +0 -36
- package/dist/interactionHooks/useOnScroll.d.ts +0 -2
- package/dist/interactionHooks/useOnScroll.js +0 -29
- package/dist/interactionHooks/useOnSwipe.d.ts +0 -2
- package/dist/interactionHooks/useOnSwipe.js +0 -53
- package/dist/interactionHooks/useOnVisibilityChange.d.ts +0 -2
- package/dist/interactionHooks/useOnVisibilityChange.js +0 -21
|
@@ -4,4 +4,4 @@ export interface ActiveOnVisibleProps extends StackProps {
|
|
|
4
4
|
onVisibilityChange?: (visible: boolean) => void;
|
|
5
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare function ActiveOnVisible({ onVisibilityChange, style, children, ref, ...restProps }: ActiveOnVisibleProps): import("react
|
|
7
|
+
export declare function ActiveOnVisible({ onVisibilityChange, style, children, ref, ...restProps }: ActiveOnVisibleProps): import("react").JSX.Element;
|
|
@@ -12,7 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useImperativeHandle, useRef, useState } from "react";
|
|
15
|
-
import { Stack
|
|
15
|
+
import { Stack } from "..";
|
|
16
|
+
import { useOnVisibilityChange } from "@yakad/use-interactions";
|
|
16
17
|
export function ActiveOnVisible(_a) {
|
|
17
18
|
var { onVisibilityChange, style, children, ref } = _a, restProps = __rest(_a, ["onVisibilityChange", "style", "children", "ref"]);
|
|
18
19
|
const localRef = useRef(null);
|
package/dist/AppBar/AppBar.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export interface AppBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
ref?: React.Ref<HTMLDivElement>;
|
|
10
10
|
}
|
|
11
|
-
export declare function AppBar({ align, overflow, position, size, blur, className, children, ...restProps }: AppBarProps): import("react
|
|
11
|
+
export declare function AppBar({ align, overflow, position, size, blur, className, children, ...restProps }: AppBarProps): import("react").JSX.Element;
|
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
src?: string;
|
|
4
4
|
ref?: React.Ref<HTMLDivElement>;
|
|
5
5
|
}
|
|
6
|
-
export declare function Avatar({ src, className, ...restProps }: AvatarProps):
|
|
6
|
+
export declare function Avatar({ src, className, ...restProps }: AvatarProps): React.JSX.Element;
|
package/dist/Avatar/Avatar.js
CHANGED
|
@@ -12,9 +12,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import classNames from "classnames";
|
|
14
14
|
import styles from "./Avatar.module.css";
|
|
15
|
-
import {
|
|
15
|
+
import { Material } from "@yakad/symbols";
|
|
16
16
|
export function Avatar(_a) {
|
|
17
17
|
var { src, className } = _a, restProps = __rest(_a, ["src", "className"]);
|
|
18
18
|
const joinedClassNames = classNames(styles.profileContainer, className);
|
|
19
|
-
return (_jsx("div", Object.assign({}, restProps, { className: joinedClassNames, style: src ? { backgroundImage: `url(${src})` } : {}, children: _jsx("div", { className: styles.editOverlay, children: _jsx(
|
|
19
|
+
return (_jsx("div", Object.assign({}, restProps, { className: joinedClassNames, style: src ? { backgroundImage: `url(${src})` } : {}, children: _jsx("div", { className: styles.editOverlay, children: _jsx(Material, { icon: "edit" }) }) })));
|
|
20
20
|
}
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
ref?: React.Ref<HTMLButtonElement>;
|
|
13
13
|
}
|
|
14
|
-
export declare function Button({ fullWidthOnParentDemand, size, variant, borderStyle, icon, iconPosition, loadingPosition, loadingVariant, className, children, ...restProps }: ButtonProps): import("react
|
|
14
|
+
export declare function Button({ fullWidthOnParentDemand, size, variant, borderStyle, icon, iconPosition, loadingPosition, loadingVariant, className, children, ...restProps }: ButtonProps): import("react").JSX.Element;
|
package/dist/Button/Button.js
CHANGED
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import classNames from "classnames";
|
|
14
|
-
import {
|
|
14
|
+
import { Spinner } from "@yakad/symbols";
|
|
15
15
|
import boxingStyles from "../boxing.module.css";
|
|
16
16
|
import styles from "./Button.module.css";
|
|
17
17
|
export function Button(_a) {
|
|
@@ -21,5 +21,5 @@ export function Button(_a) {
|
|
|
21
21
|
const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: fullWidthOnParentDemand }, styles.button, styles[variant], { [styles.loading]: loadingVariant }, { [styles.loadingPositionCenter]: isloadingPositionCenter }, styles[size], styles[borderStyle], { [styles.iconButton]: !children && icon }, className);
|
|
22
22
|
return (_jsxs("button", Object.assign({ className: joinedClassNames }, restProps, { children: [childrenFirst && children, loadingVariant && (_jsx("div", { className: classNames(styles.displayOnDisabled, {
|
|
23
23
|
[styles.positionCenter]: isloadingPositionCenter,
|
|
24
|
-
}), children: _jsx(
|
|
24
|
+
}), children: _jsx(Spinner, { size: size, variant: loadingVariant }) })), icon, !childrenFirst && children] })));
|
|
25
25
|
}
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export interface CardProps extends StackProps {
|
|
|
6
6
|
hoverEffect?: boolean;
|
|
7
7
|
ref?: React.Ref<HTMLDivElement>;
|
|
8
8
|
}
|
|
9
|
-
export declare function Card({ blur, level, hoverEffect, className, children, ...restProps }: CardProps): import("react
|
|
9
|
+
export declare function Card({ blur, level, hoverEffect, className, children, ...restProps }: CardProps): import("react").JSX.Element;
|
|
@@ -4,5 +4,5 @@ export interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
4
4
|
label?: string;
|
|
5
5
|
ref?: React.Ref<HTMLInputElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare function CheckBox({ label, className, style, ...restProps }: CheckBoxProps): import("react
|
|
7
|
+
export declare function CheckBox({ label, className, style, ...restProps }: CheckBoxProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -11,11 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import classNames from "classnames";
|
|
14
|
-
import {
|
|
14
|
+
import { Material } from "@yakad/symbols";
|
|
15
15
|
import boxingStyles from "../boxing.module.css";
|
|
16
16
|
import styles from "./CheckBox.module.css";
|
|
17
17
|
export function CheckBox(_a) {
|
|
18
18
|
var { label, className, style } = _a, restProps = __rest(_a, ["label", "className", "style"]);
|
|
19
19
|
const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: label }, styles.label, { [styles.labeled]: label }, { [styles.disabled]: restProps.disabled }, className);
|
|
20
|
-
return (_jsxs("label", { className: joinedClassNames, style: style, children: [label, _jsx("input", Object.assign({}, restProps, { className: styles.input, type: "checkbox" })), _jsxs("div", { className: styles.symbolContainer, children: [_jsx(
|
|
20
|
+
return (_jsxs("label", { className: joinedClassNames, style: style, children: [label, _jsx("input", Object.assign({}, restProps, { className: styles.input, type: "checkbox" })), _jsxs("div", { className: styles.symbolContainer, children: [_jsx(Material, { className: styles.symbolChecked, icon: "check_box" }), _jsx(Material, { className: styles.symbolUnChecked, icon: "check_box_outline_blank" })] })] }));
|
|
21
21
|
}
|
|
@@ -4,4 +4,4 @@ export interface CodeBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare function CodeBox({ copyButton, className, children, ...restProps }: CodeBoxProps):
|
|
7
|
+
export declare function CodeBox({ copyButton, className, children, ...restProps }: CodeBoxProps): React.JSX.Element;
|
package/dist/CodeBox/CodeBox.js
CHANGED
|
@@ -11,12 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import classNames from "classnames";
|
|
14
|
-
import {
|
|
14
|
+
import { Material } from "@yakad/symbols";
|
|
15
15
|
import { Button, Card } from "..";
|
|
16
16
|
import boxingStyles from "../boxing.module.css";
|
|
17
17
|
import styles from "./CodeBox.module.css";
|
|
18
18
|
export function CodeBox(_a) {
|
|
19
19
|
var { copyButton, className, children } = _a, restProps = __rest(_a, ["copyButton", "className", "children"]);
|
|
20
20
|
const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.ZZZZZZZZZZ, className);
|
|
21
|
-
return (_jsxs(Card, Object.assign({}, restProps, { className: joinedClassNames, children: [_jsx("pre", { children: children }), copyButton && _jsx(Button, { icon: _jsx(
|
|
21
|
+
return (_jsxs(Card, Object.assign({}, restProps, { className: joinedClassNames, children: [_jsx("pre", { children: children }), copyButton && _jsx(Button, { icon: _jsx(Material, { icon: "copy_all" }) })] })));
|
|
22
22
|
}
|
|
@@ -6,5 +6,5 @@ export interface CodeFieldsProps extends Omit<React.InputHTMLAttributes<HTMLInpu
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
ref?: React.Ref<HTMLInputElement>;
|
|
8
8
|
}
|
|
9
|
-
export declare function CodeField({ length, onFilled, autoComplete, pattern, onInput, className, style, ...restProps }: CodeFieldsProps): import("react
|
|
9
|
+
export declare function CodeField({ length, onFilled, autoComplete, pattern, onInput, className, style, ...restProps }: CodeFieldsProps): import("react").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -5,4 +5,4 @@ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare function Container({ size, align, className, children, ...restProps }: ContainerProps): import("react
|
|
8
|
+
export declare function Container({ size, align, className, children, ...restProps }: ContainerProps): import("react").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface DisplayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
}
|
|
9
9
|
export declare function Display({ align, fullWidthOnParentDemand, minWidth, maxWidth, className, children, ...restProps }: DisplayProps & {
|
|
10
10
|
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
-
}):
|
|
11
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CardProps, OverlayProps } from "..";
|
|
3
3
|
export interface DropdownProps extends CardProps, OverlayProps {
|
|
4
|
+
teleport?: boolean;
|
|
4
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
5
6
|
}
|
|
6
7
|
export declare function Dropdown({ fullWidthOnParentDemand, // Def in Card is True
|
|
7
|
-
blur, level, triggerref, onClose, className, style, children, ref, ...restProps }: DropdownProps): import("react
|
|
8
|
+
blur, level, triggerref, onClose, className, style, children, teleport, ref, ...restProps }: DropdownProps): import("react").JSX.Element;
|
|
@@ -13,11 +13,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useRef, useState, useEffect, useImperativeHandle } from "react";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import { Card
|
|
16
|
+
import { Card } from "..";
|
|
17
17
|
import styles from "./Dropdown.module.css";
|
|
18
|
+
import { createPortal } from "react-dom";
|
|
19
|
+
import { useOnOutsideClick } from "@yakad/use-interactions";
|
|
18
20
|
export function Dropdown(_a) {
|
|
19
21
|
var { fullWidthOnParentDemand = false, // Def in Card is True
|
|
20
|
-
blur, level = "high", triggerref, onClose, className, style, children, ref } = _a, restProps = __rest(_a, ["fullWidthOnParentDemand", "blur", "level", "triggerref", "onClose", "className", "style", "children", "ref"]);
|
|
22
|
+
blur, level = "high", triggerref, onClose, className, style, children, teleport = false, ref } = _a, restProps = __rest(_a, ["fullWidthOnParentDemand", "blur", "level", "triggerref", "onClose", "className", "style", "children", "teleport", "ref"]);
|
|
21
23
|
const fallbackTriggerRef = useRef(null);
|
|
22
24
|
const dropdownRef = useRef(null);
|
|
23
25
|
const placementTargetRef = triggerref || fallbackTriggerRef;
|
|
@@ -33,6 +35,17 @@ export function Dropdown(_a) {
|
|
|
33
35
|
});
|
|
34
36
|
const [isPlacedAbove, setIsPlacedAbove] = useState(false);
|
|
35
37
|
const [isPlaced, setIsPlaced] = useState(false);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
document.body.style.overflow = "hidden";
|
|
40
|
+
return () => {
|
|
41
|
+
document.body.style.overflow = "initial";
|
|
42
|
+
};
|
|
43
|
+
}, []);
|
|
44
|
+
const doTeleport = () => {
|
|
45
|
+
const portalRoot = document.getElementsByClassName("portalRoot")[0] || document;
|
|
46
|
+
const t = portalRoot && createPortal(dropdown(), portalRoot);
|
|
47
|
+
return t;
|
|
48
|
+
};
|
|
36
49
|
useEffect(() => {
|
|
37
50
|
if ((placementTargetRef === null || placementTargetRef === void 0 ? void 0 : placementTargetRef.current) && dropdownRef.current) {
|
|
38
51
|
const placementTarget = placementTargetRef.current.getBoundingClientRect();
|
|
@@ -75,11 +88,12 @@ export function Dropdown(_a) {
|
|
|
75
88
|
useOnOutsideClick(() => {
|
|
76
89
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
77
90
|
}, dropdownRef);
|
|
78
|
-
|
|
91
|
+
const dropdown = () => (_jsxs(_Fragment, { children: [!triggerref && _jsx("div", { ref: fallbackTriggerRef }), _jsx(Card, Object.assign({ ref: dropdownRef, fullWidthOnParentDemand: fullWidthOnParentDemand, blur: blur, level: level }, restProps, { className: classNames(styles.dropdownCard, { [styles.isPlacedAbove]: isPlacedAbove }, className), style: Object.assign({ top: dropdownPosition.top, left: dropdownPosition.left, visibility: isPlaced ? "visible" : "hidden" }, style), children: children })), _jsx("span", { className: classNames(styles.arrow, {
|
|
79
92
|
[styles.isPlacedAbove]: isPlacedAbove,
|
|
80
93
|
}, { [styles.blur]: blur }), style: {
|
|
81
94
|
top: arrowPosition.top,
|
|
82
95
|
left: arrowPosition.left,
|
|
83
96
|
visibility: isPlaced ? "visible" : "hidden",
|
|
84
97
|
} })] }));
|
|
98
|
+
return teleport ? doTeleport() : dropdown();
|
|
85
99
|
}
|
package/dist/Footer/Footer.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function Footer({ align, overflow, position, size, blur, className, children, ...restProps }: FooterProps & {
|
|
11
11
|
ref?: React.Ref<HTMLDivElement>;
|
|
12
|
-
}): import("react
|
|
12
|
+
}): import("react").JSX.Element;
|
package/dist/Form/Form.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function Form({ align, fullWidthOnParentDemand, className, children, ...restProps }: FormProps & {
|
|
8
8
|
ref?: React.Ref<HTMLFormElement>;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
6
6
|
}
|
|
7
7
|
export declare function GridContainer({ gap, columns, className, style, children, ...restProps }: GridContainerProps & {
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -11,5 +11,5 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function GridItem({ align, xs, sm, md, lg, xl, className, children, ...restProps }: GridItemProps & {
|
|
13
13
|
ref?: React.Ref<HTMLDivElement>;
|
|
14
|
-
}): import("react
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
15
|
export {};
|
package/dist/Hr/Hr.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface HrProps extends React.HTMLAttributes<HTMLHRElement> {
|
|
|
5
5
|
marginx?: number;
|
|
6
6
|
ref?: React.Ref<HTMLHRElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare function Hr({ variant, height, marginx, className, style, ...restProps }: HrProps): import("react
|
|
8
|
+
export declare function Hr({ variant, height, marginx, className, style, ...restProps }: HrProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Input } from "./input";
|
|
4
|
+
declare const inputFieldVariants: (props?: ({
|
|
5
|
+
variant?: "filled" | "outlined" | null | undefined;
|
|
6
|
+
boxSize?: "small" | "normal" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface InputFieldProps extends Omit<React.ComponentProps<typeof Input>, "size">, VariantProps<typeof inputFieldVariants> {
|
|
5
9
|
ref?: React.Ref<HTMLInputElement>;
|
|
6
10
|
}
|
|
7
|
-
export declare function InputField({ variant, boxSize, placeholder, className, ...restProps }: InputFieldProps):
|
|
11
|
+
export declare function InputField({ variant, boxSize, placeholder, className, ref, ...restProps }: InputFieldProps): React.JSX.Element;
|
|
12
|
+
export declare namespace InputField {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
}
|
|
15
|
+
export { inputFieldVariants };
|
|
@@ -10,11 +10,41 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import { cva } from "class-variance-authority";
|
|
14
|
+
import { cn } from "./cn";
|
|
15
|
+
import { Input } from "./input";
|
|
16
|
+
const inputFieldVariants = cva("peer w-full transition-colors placeholder:text-transparent focus-visible:ring-offset-0", {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
outlined: "border border-input bg-transparent focus-visible:ring-1 focus-visible:ring-ring",
|
|
20
|
+
filled: "rounded-b-none border-0 border-b-2 border-input bg-muted focus-visible:ring-0 focus-visible:border-primary",
|
|
21
|
+
},
|
|
22
|
+
boxSize: {
|
|
23
|
+
small: "h-8 px-2 text-sm",
|
|
24
|
+
normal: "h-10 px-3 text-base",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "outlined",
|
|
29
|
+
boxSize: "normal",
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const labelVariants = cva("pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground transition-all " +
|
|
33
|
+
"peer-focus:top-0 peer-focus:-translate-y-1/2 peer-focus:bg-background peer-focus:px-1 peer-focus:text-xs peer-focus:text-primary " +
|
|
34
|
+
"peer-[:not(:placeholder-shown)]:top-0 peer-[:not(:placeholder-shown)]:-translate-y-1/2 peer-[:not(:placeholder-shown)]:bg-background peer-[:not(:placeholder-shown)]:px-1 peer-[:not(:placeholder-shown)]:text-xs", {
|
|
35
|
+
variants: {
|
|
36
|
+
boxSize: {
|
|
37
|
+
small: "text-sm",
|
|
38
|
+
normal: "text-base",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
boxSize: "normal",
|
|
43
|
+
},
|
|
44
|
+
});
|
|
16
45
|
export function InputField(_a) {
|
|
17
|
-
var { variant = "outlined", boxSize = "normal", placeholder, className } = _a, restProps = __rest(_a, ["variant", "boxSize", "placeholder", "className"]);
|
|
18
|
-
|
|
19
|
-
return (_jsxs("div", { className: classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.div), children: [_jsx("input", Object.assign({}, restProps, { className: joinedClassNames, placeholder: " " })), placeholder && (_jsx("label", { className: styles.label, children: placeholder }))] }));
|
|
46
|
+
var { variant = "outlined", boxSize = "normal", placeholder, className, ref } = _a, restProps = __rest(_a, ["variant", "boxSize", "placeholder", "className", "ref"]);
|
|
47
|
+
return (_jsxs("div", { className: "relative w-full", children: [_jsx(Input, Object.assign({ ref: ref, placeholder: " ", className: cn(inputFieldVariants({ variant, boxSize }), className) }, restProps)), placeholder && (_jsx("label", { className: cn(labelVariants({ boxSize })), children: placeholder }))] }));
|
|
20
48
|
}
|
|
49
|
+
InputField.displayName = "InputField";
|
|
50
|
+
export { inputFieldVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { cn } from "./cn";
|
|
14
|
+
export function Input(_a) {
|
|
15
|
+
var { className, type } = _a, props = __rest(_a, ["className", "type"]);
|
|
16
|
+
return (_jsx("input", Object.assign({ type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className) }, props)));
|
|
17
|
+
}
|
|
18
|
+
Input.displayName = "Input";
|
package/dist/List/List.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
ref?: React.Ref<HTMLUListElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare function List({ direction, collapsed, className, children, ...restProps }: ListProps): import("react
|
|
8
|
+
export declare function List({ direction, collapsed, className, children, ...restProps }: ListProps): import("react").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface ListItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
3
3
|
align?: "start" | "space" | "center" | "end";
|
|
4
4
|
ref?: React.Ref<HTMLLIElement>;
|
|
5
5
|
}
|
|
6
|
-
export declare function ListItem({ align, className, children, ...restProps }: ListItemProps): import("react
|
|
6
|
+
export declare function ListItem({ align, className, children, ...restProps }: ListItemProps): import("react").JSX.Element;
|
package/dist/Main/Main.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface MainProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare function Main({ align, navOpen, className, children, ...restProps }: MainProps): import("react
|
|
8
|
+
export declare function Main({ align, navOpen, className, children, ...restProps }: MainProps): import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface NavigationProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
ref?: React.Ref<HTMLDivElement>;
|
|
8
8
|
}
|
|
9
|
-
export declare function Navigation({ align, anchor, open, className, children, ...restProps }: NavigationProps): import("react
|
|
9
|
+
export declare function Navigation({ align, anchor, open, className, children, ...restProps }: NavigationProps): import("react").JSX.Element;
|
package/dist/Popup/Popup.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { CardProps, OverlayProps } from "..";
|
|
3
3
|
export interface PopupProps extends CardProps, OverlayProps {
|
|
4
4
|
heading?: string;
|
|
5
|
+
teleport?: boolean;
|
|
5
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
7
|
}
|
|
7
|
-
export declare function Popup({ align, onClose, heading, className, children, ref, ...restProps }: PopupProps): import("react
|
|
8
|
+
export declare function Popup({ align, onClose, heading, className, children, teleport, ref, ...restProps }: PopupProps): import("react").JSX.Element;
|
package/dist/Popup/Popup.js
CHANGED
|
@@ -11,16 +11,30 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { useImperativeHandle } from "react";
|
|
14
|
+
import { useEffect, useImperativeHandle } from "react";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import {
|
|
17
|
-
import { Button, Card, Row, Screen, Spacer, Stack, Text,
|
|
16
|
+
import { Material } from "@yakad/symbols";
|
|
17
|
+
import { Button, Card, Row, Screen, Spacer, Stack, Text, } from "..";
|
|
18
18
|
import styles from "./Popup.module.css";
|
|
19
|
+
import { createPortal } from "react-dom";
|
|
20
|
+
import { useOnOutsideClick } from "@yakad/use-interactions";
|
|
19
21
|
export function Popup(_a) {
|
|
20
|
-
var { align, onClose, heading, className, children, ref } = _a, restProps = __rest(_a, ["align", "onClose", "heading", "className", "children", "ref"]);
|
|
22
|
+
var { align, onClose, heading, className, children, teleport = false, ref } = _a, restProps = __rest(_a, ["align", "onClose", "heading", "className", "children", "teleport", "ref"]);
|
|
21
23
|
const localRef = useOnOutsideClick(() => {
|
|
22
24
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
23
25
|
});
|
|
26
|
+
const doTeleport = () => {
|
|
27
|
+
const portalRoot = document.getElementsByClassName("portalRoot")[0] || document;
|
|
28
|
+
const t = portalRoot && createPortal(popup(), portalRoot);
|
|
29
|
+
return t;
|
|
30
|
+
};
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
document.body.style.overflow = "hidden";
|
|
33
|
+
return () => {
|
|
34
|
+
document.body.style.overflow = "initial";
|
|
35
|
+
};
|
|
36
|
+
}, []);
|
|
24
37
|
useImperativeHandle(ref, () => localRef.current);
|
|
25
|
-
|
|
38
|
+
const popup = () => (_jsx(Screen, { align: "center", className: styles.popupscreen, children: _jsxs(Card, Object.assign({ ref: localRef }, restProps, { className: classNames(styles.popup, className), children: [_jsxs(Row, { style: { marginBottom: "2rem" }, children: [_jsx(Text, { variant: "heading4", children: heading }), _jsx(Spacer, {}), _jsx(Button, { title: "Close", icon: _jsx(Material, { icon: "close" }), onClick: onClose })] }), _jsx(Stack, { align: align, style: { width: "100%", overflowY: "auto" }, children: children })] })) }));
|
|
39
|
+
return teleport ? doTeleport() : popup();
|
|
26
40
|
}
|
|
@@ -10,5 +10,5 @@ export interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInp
|
|
|
10
10
|
};
|
|
11
11
|
ref?: React.Ref<HTMLInputElement>;
|
|
12
12
|
}
|
|
13
|
-
export declare function RadioButton({ dataFromRadioGroup, label, onClick, className, ...restProps }: RadioButtonProps): import("react
|
|
13
|
+
export declare function RadioButton({ dataFromRadioGroup, label, onClick, className, ...restProps }: RadioButtonProps): import("react").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import classNames from "classnames";
|
|
15
|
-
import {
|
|
15
|
+
import { Material } from "@yakad/symbols";
|
|
16
16
|
import { Button } from "..";
|
|
17
17
|
import styles from "./RadioButton.module.css";
|
|
18
18
|
export function RadioButton(_a) {
|
|
@@ -25,7 +25,7 @@ export function RadioButton(_a) {
|
|
|
25
25
|
dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.onSelect();
|
|
26
26
|
onClick;
|
|
27
27
|
};
|
|
28
|
-
return (_jsxs("div", { className: joinedClassNames, children: [label && (_jsx("label", { className: styles.label, htmlFor: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.name, children: label })), _jsx(Button, { icon: _jsx(
|
|
28
|
+
return (_jsxs("div", { className: joinedClassNames, children: [label && (_jsx("label", { className: styles.label, htmlFor: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.name, children: label })), _jsx(Button, { icon: _jsx(Material, { icon: (dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.checked)
|
|
29
29
|
? "radio_button_checked"
|
|
30
30
|
: "radio_button_unchecked" }), onClick: onClickRadioButtonHandler, disabled: restProps.disabled }), _jsx("input", Object.assign({}, restProps, { className: styles.input, type: "radio", name: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.name, checked: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.checked }))] }));
|
|
31
31
|
}
|
|
@@ -8,5 +8,5 @@ export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
8
8
|
children?: RadioButtonElement | RadioButtonElement[];
|
|
9
9
|
ref?: React.Ref<HTMLDivElement>;
|
|
10
10
|
}
|
|
11
|
-
export declare function RadioGroup({ name, defaultValue, className, children, ...restProps }: RadioGroupProps): import("react
|
|
11
|
+
export declare function RadioGroup({ name, defaultValue, className, children, ...restProps }: RadioGroupProps): import("react").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -10,4 +10,4 @@ export interface RenderByScrollProps extends StackProps {
|
|
|
10
10
|
ref?: React.Ref<HTMLDivElement>;
|
|
11
11
|
}
|
|
12
12
|
export declare function RenderByScroll({ scrollMarginTop, // Sticky Header Height
|
|
13
|
-
extraRender, jumpToIndex, stopNewRenders, newChildRendered, style, children, ...restProps }: RenderByScrollProps):
|
|
13
|
+
extraRender, jumpToIndex, stopNewRenders, newChildRendered, style, children, ...restProps }: RenderByScrollProps): React.JSX.Element;
|
|
@@ -12,7 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import React, { useEffect, useRef, useState } from "react";
|
|
15
|
-
import { ActiveOnVisible, Stack
|
|
15
|
+
import { ActiveOnVisible, Stack } from "..";
|
|
16
|
+
import { useOnVisibilityChange } from "@yakad/use-interactions";
|
|
16
17
|
export function RenderByScroll(_a) {
|
|
17
18
|
var { scrollMarginTop = 8, // Sticky Header Height
|
|
18
19
|
extraRender = 5, jumpToIndex = 0, stopNewRenders, newChildRendered, style, children } = _a, restProps = __rest(_a, ["scrollMarginTop", "extraRender", "jumpToIndex", "stopNewRenders", "newChildRendered", "style", "children"]);
|
package/dist/Row/Row.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
}
|
|
10
|
-
export declare function Row({ align, fullWidthOnParentDemand, overflow, size, className, children, ...restProps }: RowProps): import("react
|
|
10
|
+
export declare function Row({ align, fullWidthOnParentDemand, overflow, size, className, children, ...restProps }: RowProps): import("react").JSX.Element;
|
package/dist/Screen/Screen.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export interface ScreenProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare function Screen({ align, className, children, ...restProps }: ScreenProps): import("react
|
|
7
|
+
export declare function Screen({ align, className, children, ...restProps }: ScreenProps): import("react").JSX.Element;
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElemen
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
ref?: React.Ref<HTMLSelectElement>;
|
|
8
8
|
}
|
|
9
|
-
export declare function Select({ variant, boxsize, placeholder, className, children, ...restProps }: SelectProps): import("react
|
|
9
|
+
export declare function Select({ variant, boxsize, placeholder, className, children, ...restProps }: SelectProps): import("react").JSX.Element;
|
package/dist/Spacer/Spacer.d.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
export interface SpacerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3
3
|
ref?: React.Ref<HTMLDivElement>;
|
|
4
4
|
}
|
|
5
|
-
export declare function Spacer({ className, ...restProps }: SpacerProps): import("react
|
|
5
|
+
export declare function Spacer({ className, ...restProps }: SpacerProps): import("react").JSX.Element;
|
package/dist/Stack/Stack.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare function Stack({ align, fullWidthOnParentDemand, className, children, ...restProps }: StackProps): import("react
|
|
8
|
+
export declare function Stack({ align, fullWidthOnParentDemand, className, children, ...restProps }: StackProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
|
-
export declare function SvgIcon({ size, className, style, children, ...restProps }: SvgIconProps): import("react
|
|
7
|
+
export declare function SvgIcon({ size, className, style, children, ...restProps }: SvgIconProps): import("react").JSX.Element;
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -3,34 +3,34 @@ export interface TableProps extends React.TableHTMLAttributes<HTMLTableElement>
|
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
ref?: React.Ref<HTMLTableElement>;
|
|
5
5
|
}
|
|
6
|
-
export declare function Table({ className, children, ...restProps }: TableProps): import("react
|
|
6
|
+
export declare function Table({ className, children, ...restProps }: TableProps): import("react").JSX.Element;
|
|
7
7
|
export interface TheadProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
ref?: React.Ref<HTMLTableSectionElement>;
|
|
10
10
|
}
|
|
11
|
-
export declare function Thead({ className, children, ...restProps }: TheadProps): import("react
|
|
11
|
+
export declare function Thead({ className, children, ...restProps }: TheadProps): import("react").JSX.Element;
|
|
12
12
|
export interface TbodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
ref?: React.Ref<HTMLTableSectionElement>;
|
|
15
15
|
}
|
|
16
|
-
export declare function Tbody({ className, children, ...restProps }: TbodyProps): import("react
|
|
16
|
+
export declare function Tbody({ className, children, ...restProps }: TbodyProps): import("react").JSX.Element;
|
|
17
17
|
export interface TfootProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
ref?: React.Ref<HTMLTableSectionElement>;
|
|
20
20
|
}
|
|
21
|
-
export declare function Tfoot({ className, children, ...restProps }: TfootProps): import("react
|
|
21
|
+
export declare function Tfoot({ className, children, ...restProps }: TfootProps): import("react").JSX.Element;
|
|
22
22
|
export interface TrProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
23
23
|
children?: React.ReactNode;
|
|
24
24
|
ref?: React.Ref<HTMLTableRowElement>;
|
|
25
25
|
}
|
|
26
|
-
export declare function Tr({ className, children, ...restProps }: TrProps): import("react
|
|
26
|
+
export declare function Tr({ className, children, ...restProps }: TrProps): import("react").JSX.Element;
|
|
27
27
|
export interface ThProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
28
28
|
children?: React.ReactNode;
|
|
29
29
|
ref?: React.Ref<HTMLTableCellElement>;
|
|
30
30
|
}
|
|
31
|
-
export declare function Th({ className, children, ...restProps }: ThProps): import("react
|
|
31
|
+
export declare function Th({ className, children, ...restProps }: ThProps): import("react").JSX.Element;
|
|
32
32
|
export interface TdProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
33
33
|
children?: React.ReactNode;
|
|
34
34
|
ref?: React.Ref<HTMLTableCellElement>;
|
|
35
35
|
}
|
|
36
|
-
export declare function Td({ className, children, ...restProps }: TdProps): import("react
|
|
36
|
+
export declare function Td({ className, children, ...restProps }: TdProps): import("react").JSX.Element;
|