@yakad/ui 1.3.165 → 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/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 +1 -1
- 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 +1 -1
- package/dist/Popup/Popup.js +2 -2
- 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/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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +7 -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
|
@@ -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;
|
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;
|
|
@@ -5,4 +5,4 @@ export interface DropdownProps extends CardProps, OverlayProps {
|
|
|
5
5
|
ref?: React.Ref<HTMLDivElement>;
|
|
6
6
|
}
|
|
7
7
|
export declare function Dropdown({ fullWidthOnParentDemand, // Def in Card is True
|
|
8
|
-
blur, level, triggerref, onClose, className, style, children, teleport, ref, ...restProps }: DropdownProps): import("react
|
|
8
|
+
blur, level, triggerref, onClose, className, style, children, teleport, ref, ...restProps }: DropdownProps): import("react").JSX.Element;
|
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
|
@@ -5,4 +5,4 @@ export interface PopupProps extends CardProps, OverlayProps {
|
|
|
5
5
|
teleport?: boolean;
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
}
|
|
8
|
-
export declare function Popup({ align, onClose, heading, className, children, teleport, 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
|
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useEffect, useImperativeHandle } from "react";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import {
|
|
16
|
+
import { Material } from "@yakad/symbols";
|
|
17
17
|
import { Button, Card, Row, Screen, Spacer, Stack, Text, } from "..";
|
|
18
18
|
import styles from "./Popup.module.css";
|
|
19
19
|
import { createPortal } from "react-dom";
|
|
@@ -35,6 +35,6 @@ export function Popup(_a) {
|
|
|
35
35
|
};
|
|
36
36
|
}, []);
|
|
37
37
|
useImperativeHandle(ref, () => localRef.current);
|
|
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(
|
|
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
39
|
return teleport ? doTeleport() : popup();
|
|
40
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;
|
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;
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ export interface TextProps<T> extends React.HTMLAttributes<T> {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
ref?: React.Ref<T>;
|
|
8
8
|
}
|
|
9
|
-
export declare function H1({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react
|
|
10
|
-
export declare function H2({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react
|
|
11
|
-
export declare function H3({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react
|
|
12
|
-
export declare function H4({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react
|
|
13
|
-
export declare function H5({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react
|
|
14
|
-
export declare function H6({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react
|
|
15
|
-
export declare function P({ variant, palette, className, children, ...restProps }: TextProps<HTMLParagraphElement>): import("react
|
|
16
|
-
export declare function Span({ variant, palette, className, children, ...restProps }: TextProps<HTMLSpanElement>): import("react
|
|
17
|
-
export declare function Text({ variant, palette, className, children, ...restProps }: TextProps<HTMLDivElement>): import("react
|
|
9
|
+
export declare function H1({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react").JSX.Element;
|
|
10
|
+
export declare function H2({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react").JSX.Element;
|
|
11
|
+
export declare function H3({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react").JSX.Element;
|
|
12
|
+
export declare function H4({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react").JSX.Element;
|
|
13
|
+
export declare function H5({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react").JSX.Element;
|
|
14
|
+
export declare function H6({ variant, palette, className, children, ...restProps }: TextProps<HTMLHeadingElement>): import("react").JSX.Element;
|
|
15
|
+
export declare function P({ variant, palette, className, children, ...restProps }: TextProps<HTMLParagraphElement>): import("react").JSX.Element;
|
|
16
|
+
export declare function Span({ variant, palette, className, children, ...restProps }: TextProps<HTMLSpanElement>): import("react").JSX.Element;
|
|
17
|
+
export declare function Text({ variant, palette, className, children, ...restProps }: TextProps<HTMLDivElement>): import("react").JSX.Element;
|
|
18
18
|
export {};
|
package/dist/Theme/Theme.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export interface ThemeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
ref?: React.Ref<HTMLDivElement>;
|
|
12
12
|
}
|
|
13
|
-
export declare function Theme({ align, darkStyle, color, zoom, className, children, ...restProps }: ThemeProps): import("react
|
|
13
|
+
export declare function Theme({ align, darkStyle, color, zoom, className, children, ...restProps }: ThemeProps): import("react").JSX.Element;
|
|
@@ -11,5 +11,5 @@ export interface WithOverlayProps extends StackProps {
|
|
|
11
11
|
children?: React.ReactElement;
|
|
12
12
|
ref?: React.Ref<HTMLDivElement>;
|
|
13
13
|
}
|
|
14
|
-
export declare function WithOverlay({ trigger, overlay, children, onClick, ref, ...restProps }: WithOverlayProps): import("react
|
|
14
|
+
export declare function WithOverlay({ trigger, overlay, children, onClick, ref, ...restProps }: WithOverlayProps): import("react").JSX.Element;
|
|
15
15
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export * from "./List/List";
|
|
|
16
16
|
export * from "./ListItem/ListItem";
|
|
17
17
|
export * from "./Table/Table";
|
|
18
18
|
export * from "./Button/Button";
|
|
19
|
-
export * from "./LoadingIcon/LoadingIcon";
|
|
20
19
|
export * from "./SvgIcon/SvgIcon";
|
|
21
20
|
export * from "./Text/Text";
|
|
22
21
|
export * from "./Form/Form";
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,6 @@ export * from "./List/List";
|
|
|
19
19
|
export * from "./ListItem/ListItem";
|
|
20
20
|
export * from "./Table/Table";
|
|
21
21
|
export * from "./Button/Button";
|
|
22
|
-
export * from "./LoadingIcon/LoadingIcon";
|
|
23
22
|
export * from "./SvgIcon/SvgIcon";
|
|
24
23
|
export * from "./Text/Text";
|
|
25
24
|
// Form Components
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yakad/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.166",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Natiq",
|
|
6
6
|
"description": "UI components for NextJS/React",
|
|
@@ -33,9 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@yakad/lib": "1.0.23",
|
|
36
|
-
"@yakad/symbols": "1.0.
|
|
36
|
+
"@yakad/symbols": "1.0.42",
|
|
37
37
|
"@yakad/use-interactions": "1.0.0",
|
|
38
|
-
"
|
|
38
|
+
"class-variance-authority": "^0.7.1",
|
|
39
|
+
"classnames": "2.5.1",
|
|
40
|
+
"clsx": "^2.1.1",
|
|
41
|
+
"tailwind-merge": "^3.6.0"
|
|
39
42
|
},
|
|
40
43
|
"peerDependencies": {
|
|
41
44
|
"react": "^19.2.0",
|
|
@@ -48,4 +51,4 @@
|
|
|
48
51
|
"react": "^19.0.0",
|
|
49
52
|
"react-dom": "^19.0.0"
|
|
50
53
|
}
|
|
51
|
-
}
|
|
54
|
+
}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
.div {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
padding-top: 0.6rem;
|
|
6
|
-
}
|
|
7
|
-
.input {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
width: 100%;
|
|
10
|
-
margin: 0rem;
|
|
11
|
-
border-image: initial;
|
|
12
|
-
background-color: rgb(var(--surfaceContainerHighestColor, 230 224 233));
|
|
13
|
-
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.87);
|
|
14
|
-
caret-color: rgb(var(--primaryColor, 11 87 208));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.input:focus {
|
|
18
|
-
outline: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.input ~ .label {
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
display: block;
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 100%;
|
|
28
|
-
font-size: 1.5rem;
|
|
29
|
-
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
30
|
-
transition: 0.3s;
|
|
31
|
-
pointer-events: none;
|
|
32
|
-
}
|
|
33
|
-
@media (pointer: fine) {
|
|
34
|
-
.input:hover ~ .label {
|
|
35
|
-
color: rgb(var(--onSurfaceVariantColor, 73 69 78));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.input:focus ~ .label {
|
|
39
|
-
color: rgb(var(--primaryColor, 11 87 208));
|
|
40
|
-
}
|
|
41
|
-
.input:disabled ~ .label {
|
|
42
|
-
color: rgb(var(--onSurfaceColor, 28 27 31) / 0.38);
|
|
43
|
-
}
|
|
44
|
-
.input:invalid ~ .label,
|
|
45
|
-
.input:invalid:focus ~ .label {
|
|
46
|
-
color: rgb(var(--errorColor, 11 87 208));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/********************************************* OutLined */
|
|
50
|
-
.input.outlined {
|
|
51
|
-
height: 5rem;
|
|
52
|
-
padding: 1.5rem 1.3rem;
|
|
53
|
-
border-width: 0.1rem;
|
|
54
|
-
border-style: solid;
|
|
55
|
-
border-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
56
|
-
border-radius: 0.4rem;
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
}
|
|
59
|
-
.input.outlined.small {
|
|
60
|
-
padding: 0.75rem 1.3rem;
|
|
61
|
-
height: 3.5rem;
|
|
62
|
-
}
|
|
63
|
-
@media (pointer: fine) {
|
|
64
|
-
.input.outlined:hover {
|
|
65
|
-
border-color: rgb(var(--onSurfaceVariantColor, 73 69 78));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
.input.outlined:focus {
|
|
69
|
-
border-width: 0.2rem;
|
|
70
|
-
border-color: rgb(var(--primaryColor, 11 87 208));
|
|
71
|
-
}
|
|
72
|
-
.input.outlined:disabled {
|
|
73
|
-
border-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.38);
|
|
74
|
-
}
|
|
75
|
-
.input.outlined:invalid {
|
|
76
|
-
border-color: rgb(var(--errorColor, 11 87 208));
|
|
77
|
-
}
|
|
78
|
-
.input.outlined:invalid:focus {
|
|
79
|
-
border-color: rgb(var(--errorColor, 11 87 208));
|
|
80
|
-
}
|
|
81
|
-
.input.outlined::placeholder {
|
|
82
|
-
color: transparent;
|
|
83
|
-
}
|
|
84
|
-
.input.outlined.havePlaceHolder:focus,
|
|
85
|
-
.input.outlined.havePlaceHolder:not(:placeholder-shown) {
|
|
86
|
-
border-top-color: transparent;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.input.outlined ~ .label {
|
|
90
|
-
display: flex;
|
|
91
|
-
border-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
92
|
-
width: 100%;
|
|
93
|
-
max-height: 100%;
|
|
94
|
-
line-height: 6rem;
|
|
95
|
-
}
|
|
96
|
-
.input.outlined.small ~ .label {
|
|
97
|
-
line-height: 4.5rem;
|
|
98
|
-
}
|
|
99
|
-
.input.outlined:focus ~ .label,
|
|
100
|
-
.input.outlined:not(:placeholder-shown) ~ .label {
|
|
101
|
-
font-size: 1.1rem;
|
|
102
|
-
line-height: 1.5rem;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.input.outlined ~ .label::before,
|
|
106
|
-
.input.outlined ~ .label::after {
|
|
107
|
-
margin-top: 0.6rem;
|
|
108
|
-
border-top-width: 0.1rem;
|
|
109
|
-
border-top-style: solid;
|
|
110
|
-
border-color: transparent;
|
|
111
|
-
content: "";
|
|
112
|
-
}
|
|
113
|
-
.input.outlined:not(:placeholder-shown) ~ .label::before,
|
|
114
|
-
.input.outlined:not(:placeholder-shown) ~ .label::after {
|
|
115
|
-
border-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
116
|
-
}
|
|
117
|
-
.input.outlined:invalid:not(:placeholder-shown) ~ .label::before,
|
|
118
|
-
.input.outlined:invalid:not(:placeholder-shown) ~ .label::after {
|
|
119
|
-
border-color: rgb(var(--errorColor, 11 87 208));
|
|
120
|
-
}
|
|
121
|
-
.input.outlined ~ .label::before {
|
|
122
|
-
width: 1rem;
|
|
123
|
-
margin-right: 1.2rem;
|
|
124
|
-
border-radius: 0.4rem 0rem;
|
|
125
|
-
}
|
|
126
|
-
.input.outlined ~ .label::after {
|
|
127
|
-
width: 100%;
|
|
128
|
-
margin-left: 1.2rem;
|
|
129
|
-
border-radius: 0rem 0.4rem;
|
|
130
|
-
}
|
|
131
|
-
.input.outlined:focus ~ .label::before,
|
|
132
|
-
.input.outlined:focus ~ .label::after {
|
|
133
|
-
border-width: 0.2rem;
|
|
134
|
-
border-top-color: rgb(var(--primaryColor, 11 87 208));
|
|
135
|
-
}
|
|
136
|
-
.input.outlined:invalid:focus ~ .label::before,
|
|
137
|
-
.input.outlined:invalid:focus ~ .label::after {
|
|
138
|
-
border-color: rgb(var(--errorColor, 11 87 208));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/********************************************* Filled */
|
|
142
|
-
.input.filled {
|
|
143
|
-
height: 5rem;
|
|
144
|
-
padding: 0 1.2rem;
|
|
145
|
-
border: none;
|
|
146
|
-
border-bottom: solid 0.1rem rgb(var(--onSurfaceColor, 28 27 31) / 0.6);
|
|
147
|
-
border-radius: 0.4rem 0.4rem 0rem 0rem;
|
|
148
|
-
background-color: rgb(var(--onSurfaceColor, 28 27 31) / 0.04);
|
|
149
|
-
}
|
|
150
|
-
.input.filled.small {
|
|
151
|
-
height: 3.5rem;
|
|
152
|
-
}
|
|
153
|
-
@media (pointer: fine) {
|
|
154
|
-
.input.input.filled:hover {
|
|
155
|
-
border-color: rgb(var(--onSurfaceVariantColor, 73 69 78));
|
|
156
|
-
background-color: rgb(var(--onSurfaceVariantColor, 73 69 78) / 0.04);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.input.filled:disabled {
|
|
160
|
-
border-bottom: solid 0.1rem rgb(var(--onSurfaceColor, 28 27 31) / 0.38);
|
|
161
|
-
}
|
|
162
|
-
.input.filled:invalid {
|
|
163
|
-
border-bottom-color: rgb(var(--errorColor, 11 87 208));
|
|
164
|
-
}
|
|
165
|
-
.input.filled.havePlaceHolder {
|
|
166
|
-
padding: 2rem 1.2rem 0.5rem;
|
|
167
|
-
}
|
|
168
|
-
.input.filled.small.havePlaceHolder {
|
|
169
|
-
padding: 1.5rem 1.2rem 0.5rem;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.input.filled::placeholder {
|
|
173
|
-
color: transparent;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.input.filled ~ .label {
|
|
177
|
-
display: block;
|
|
178
|
-
box-sizing: border-box;
|
|
179
|
-
line-height: 6rem;
|
|
180
|
-
padding: 0 1rem;
|
|
181
|
-
}
|
|
182
|
-
.input.filled.small ~ .label {
|
|
183
|
-
line-height: 4.5rem;
|
|
184
|
-
}
|
|
185
|
-
.input.filled:focus ~ .label,
|
|
186
|
-
.input.filled:not(:placeholder-shown) ~ .label {
|
|
187
|
-
font-size: 1.1rem;
|
|
188
|
-
line-height: 4rem;
|
|
189
|
-
}
|
|
190
|
-
.input.filled:focus.small ~ .label,
|
|
191
|
-
.input.filled.small:not(:placeholder-shown) ~ .label {
|
|
192
|
-
line-height: 3rem;
|
|
193
|
-
}
|
|
194
|
-
.input.filled ~ .label::after {
|
|
195
|
-
position: absolute;
|
|
196
|
-
left: 0rem;
|
|
197
|
-
content: "";
|
|
198
|
-
bottom: 0rem;
|
|
199
|
-
width: 100%;
|
|
200
|
-
height: 0.2rem;
|
|
201
|
-
display: inline-block;
|
|
202
|
-
background-color: rgb(var(--primaryColor, 11 87 208));
|
|
203
|
-
transform: scaleX(0);
|
|
204
|
-
transition: transform 0.3s ease 0s;
|
|
205
|
-
}
|
|
206
|
-
.input.filled:focus ~ .label::after {
|
|
207
|
-
transform: scale(1);
|
|
208
|
-
content: "";
|
|
209
|
-
}
|
|
210
|
-
.input.filled:invalid ~ .label::after {
|
|
211
|
-
background-color: rgb(var(--errorColor, 11 87 208));
|
|
212
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface LoadingIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
size?: "extraSmall" | "small" | "medium" | "large" | "extraLarge";
|
|
4
|
-
variant?: "scaleOut" | "dots" | "spinner";
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
-
}
|
|
7
|
-
export declare function LoadingIcon({ size, variant, className, ...restProps }: LoadingIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
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 classNames from "classnames";
|
|
14
|
-
import styles from "./LoadingIcon.module.css";
|
|
15
|
-
export function LoadingIcon(_a) {
|
|
16
|
-
var { size = "medium", variant = "dots", className } = _a, restProps = __rest(_a, ["size", "variant", "className"]);
|
|
17
|
-
const joinedClassNames = classNames(styles.loadingIcon, styles[size], styles[variant], className);
|
|
18
|
-
return (_jsx("div", Object.assign({}, restProps, { className: joinedClassNames, children: _jsx("div", {}) })));
|
|
19
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
.extraSmall {
|
|
2
|
-
--size: 1.2rem;
|
|
3
|
-
}
|
|
4
|
-
.small {
|
|
5
|
-
--size: 2rem;
|
|
6
|
-
}
|
|
7
|
-
.medium {
|
|
8
|
-
--size: 2.4rem;
|
|
9
|
-
}
|
|
10
|
-
.large {
|
|
11
|
-
--size: 3rem;
|
|
12
|
-
}
|
|
13
|
-
.extraLarge {
|
|
14
|
-
--size: 5rem;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.loadingIcon {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
width: var(--size);
|
|
22
|
-
height: var(--size);
|
|
23
|
-
margin: auto;
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
--color: #7d7d7d;
|
|
26
|
-
}
|
|
27
|
-
.spinner div {
|
|
28
|
-
display: flex;
|
|
29
|
-
width: 75%;
|
|
30
|
-
height: 75%;
|
|
31
|
-
--spinner-border: calc(var(--size) / 8);
|
|
32
|
-
border-top: var(--spinner-border) solid var(--color);
|
|
33
|
-
border-right: var(--spinner-border) solid transparent;
|
|
34
|
-
border-bottom: none;
|
|
35
|
-
border-left: none;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
animation: spinner 1000ms linear infinite;
|
|
38
|
-
}
|
|
39
|
-
@keyframes spinner {
|
|
40
|
-
to {
|
|
41
|
-
transform: rotate(360deg);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.dots div {
|
|
46
|
-
width: 20%;
|
|
47
|
-
height: 20%;
|
|
48
|
-
border-radius: 50%;
|
|
49
|
-
background-color: var(--color);
|
|
50
|
-
--dots-space: calc(var(--size) / 3);
|
|
51
|
-
--dots-space-negative: calc(0rem - (var(--size) / 3));
|
|
52
|
-
box-shadow: var(--dots-space) 0 var(--color),
|
|
53
|
-
var(--dots-space-negative) 0 var(--color);
|
|
54
|
-
position: relative;
|
|
55
|
-
animation: flash 0.6s ease-out infinite alternate;
|
|
56
|
-
}
|
|
57
|
-
@keyframes flash {
|
|
58
|
-
0% {
|
|
59
|
-
background-color: var(--color);
|
|
60
|
-
box-shadow: var(--dots-space) 0 var(--color),
|
|
61
|
-
var(--dots-space-negative) 0 transparent;
|
|
62
|
-
}
|
|
63
|
-
50% {
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
box-shadow: var(--dots-space) 0 var(--color),
|
|
66
|
-
var(--dots-space-negative) 0 var(--color);
|
|
67
|
-
}
|
|
68
|
-
100% {
|
|
69
|
-
background-color: var(--color);
|
|
70
|
-
box-shadow: var(--dots-space) 0 transparent,
|
|
71
|
-
var(--dots-space-negative) 0 var(--color);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.scaleOut div {
|
|
76
|
-
width: 90%;
|
|
77
|
-
height: 90%;
|
|
78
|
-
border-radius: 50%;
|
|
79
|
-
background-color: var(--color);
|
|
80
|
-
animation: sk-scaleout 1s infinite ease-in-out;
|
|
81
|
-
}
|
|
82
|
-
@keyframes sk-scaleout {
|
|
83
|
-
0% {
|
|
84
|
-
transform: scale(0);
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
5% {
|
|
88
|
-
transform: scale(0);
|
|
89
|
-
opacity: 1;
|
|
90
|
-
}
|
|
91
|
-
50% {
|
|
92
|
-
opacity: 0.9;
|
|
93
|
-
}
|
|
94
|
-
100% {
|
|
95
|
-
transform: scale(1);
|
|
96
|
-
opacity: 0;
|
|
97
|
-
}
|
|
98
|
-
}
|