jy-headless 0.1.12 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/_virtual/_tslib.js +37 -0
- package/dist/cjs/_virtual/jsx-runtime.js +7 -0
- package/dist/cjs/_virtual/jsx-runtime2.js +5 -0
- package/dist/cjs/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/cjs/_virtual/react-jsx-runtime.production.js +5 -0
- package/dist/cjs/buttons/Button.d.ts +3 -0
- package/dist/cjs/buttons/Button.js +26 -0
- package/dist/cjs/buttons/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +668 -0
- package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +46 -0
- package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +21 -0
- package/dist/cjs/types/buttons/types.d.ts +6 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/_virtual/_tslib.js +35 -0
- package/dist/esm/_virtual/jsx-runtime.js +5 -0
- package/dist/esm/_virtual/jsx-runtime2.js +3 -0
- package/dist/esm/_virtual/react-jsx-runtime.development.js +3 -0
- package/dist/esm/_virtual/react-jsx-runtime.production.js +3 -0
- package/dist/esm/buttons/Button.d.ts +3 -0
- package/dist/esm/buttons/Button.js +22 -0
- package/dist/esm/buttons/index.d.ts +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +666 -0
- package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +44 -0
- package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +19 -0
- package/dist/esm/types/buttons/types.d.ts +6 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/package.json +23 -6
- package/dist/components/accordion/Accordion.d.ts +0 -22
- package/dist/components/accordion/AccordionContext.d.ts +0 -6
- package/dist/components/button/Button.d.ts +0 -9
- package/dist/components/checkbox/Checkbox.d.ts +0 -6
- package/dist/components/checkbox/CheckboxList.d.ts +0 -22
- package/dist/components/checkbox/CheckboxListContext.d.ts +0 -6
- package/dist/components/dropdown/Dropdown.d.ts +0 -20
- package/dist/components/dropdown/DropdownContext.d.ts +0 -8
- package/dist/components/icons/CallIcon.d.ts +0 -3
- package/dist/components/icons/CloseIcon.d.ts +0 -3
- package/dist/components/icons/DownArrowIcon.d.ts +0 -3
- package/dist/components/icons/HomeIcon.d.ts +0 -3
- package/dist/components/icons/ImageIcon.d.ts +0 -3
- package/dist/components/icons/ImagePlusIcon.d.ts +0 -3
- package/dist/components/icons/SearchIcon.d.ts +0 -3
- package/dist/components/icons/UpArrowIcon.d.ts +0 -3
- package/dist/components/icons/index.d.ts +0 -17
- package/dist/components/input/DesktopKeyboardInput.d.ts +0 -20
- package/dist/components/input/ImageInput.d.ts +0 -8
- package/dist/components/input/Input.d.ts +0 -12
- package/dist/components/input/NumberInput.d.ts +0 -11
- package/dist/components/modal/Modal.d.ts +0 -26
- package/dist/components/modal/ModalContext.d.ts +0 -6
- package/dist/components/radio/RadioGroup.d.ts +0 -28
- package/dist/components/radio/RadioInput.d.ts +0 -9
- package/dist/components/spinner/Spinner.d.ts +0 -8
- package/dist/components/tabs/Tab.d.ts +0 -18
- package/dist/components/tabs/TabContext.d.ts +0 -6
- package/dist/components/tooltip/Tooltip.d.ts +0 -8
- package/dist/components/utils/generateHash.d.ts +0 -2
- package/dist/icons/CallIcon.d.ts +0 -4
- package/dist/icons/CloseIcon.d.ts +0 -4
- package/dist/icons/HomeIcon.d.ts +0 -4
- package/dist/icons/SearchIcon.d.ts +0 -4
- package/dist/icons/index.d.ts +0 -11
- package/dist/index.d.ts +0 -16
- package/dist/index.esm.js +0 -1119
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -1142
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __exports as reactJsxRuntime_production } from '../../../../../../_virtual/react-jsx-runtime.production.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
var hasRequiredReactJsxRuntime_production;
|
|
14
|
+
|
|
15
|
+
function requireReactJsxRuntime_production () {
|
|
16
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
17
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
18
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
19
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
20
|
+
function jsxProd(type, config, maybeKey) {
|
|
21
|
+
var key = null;
|
|
22
|
+
undefined !== maybeKey && (key = "" + maybeKey);
|
|
23
|
+
undefined !== config.key && (key = "" + config.key);
|
|
24
|
+
if ("key" in config) {
|
|
25
|
+
maybeKey = {};
|
|
26
|
+
for (var propName in config)
|
|
27
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
28
|
+
} else maybeKey = config;
|
|
29
|
+
config = maybeKey.ref;
|
|
30
|
+
return {
|
|
31
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
32
|
+
type: type,
|
|
33
|
+
key: key,
|
|
34
|
+
ref: undefined !== config ? config : null,
|
|
35
|
+
props: maybeKey
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
39
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
40
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
41
|
+
return reactJsxRuntime_production;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { requireReactJsxRuntime_production as __require };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __module as jsxRuntime } from '../../../../../_virtual/jsx-runtime2.js';
|
|
2
|
+
import { __require as requireReactJsxRuntime_production } from './cjs/react-jsx-runtime.production.js';
|
|
3
|
+
import { __require as requireReactJsxRuntime_development } from './cjs/react-jsx-runtime.development.js';
|
|
4
|
+
|
|
5
|
+
var hasRequiredJsxRuntime;
|
|
6
|
+
|
|
7
|
+
function requireJsxRuntime () {
|
|
8
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
9
|
+
hasRequiredJsxRuntime = 1;
|
|
10
|
+
|
|
11
|
+
if (process.env.NODE_ENV === 'production') {
|
|
12
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
13
|
+
} else {
|
|
14
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
15
|
+
}
|
|
16
|
+
return jsxRuntime.exports;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { requireJsxRuntime as __require };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './buttons/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jy-headless",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A lightweight and customizable headless UI library for React components",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -15,12 +15,28 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"exports": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
18
|
+
".": {
|
|
19
|
+
"types": {
|
|
20
|
+
"import": "./dist/index.d.ts",
|
|
21
|
+
"require": "./dist/index.d.cts"
|
|
22
|
+
},
|
|
23
|
+
"import": "./dist/index.esm.js",
|
|
24
|
+
"require": "./dist/index.cjs"
|
|
21
25
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
26
|
+
"./types": {
|
|
27
|
+
"types": {
|
|
28
|
+
"import": "./dist/types/index.d.ts",
|
|
29
|
+
"require": "./dist/types/index.d.cts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"./buttons": {
|
|
33
|
+
"types": {
|
|
34
|
+
"import": "./dist/buttons/index.d.ts",
|
|
35
|
+
"require": "./dist/buttons/index.d.cts"
|
|
36
|
+
},
|
|
37
|
+
"import": "./dist/buttons/index.js",
|
|
38
|
+
"require": "./dist/buttons/index.js"
|
|
39
|
+
}
|
|
24
40
|
},
|
|
25
41
|
"keywords": [
|
|
26
42
|
"react",
|
|
@@ -68,6 +84,7 @@
|
|
|
68
84
|
"typescript": "^5.7.3"
|
|
69
85
|
},
|
|
70
86
|
"dependencies": {
|
|
87
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
71
88
|
"tslib": "^2.8.1"
|
|
72
89
|
}
|
|
73
90
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, JSX, ReactNode } from 'react';
|
|
2
|
-
interface AccordionProps extends HTMLAttributes<HTMLDetailsElement> {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
setIsOpen: (value: boolean) => void;
|
|
5
|
-
}
|
|
6
|
-
declare const Accordion: {
|
|
7
|
-
({ children, isOpen, setIsOpen, ...restProps }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
Summary: {
|
|
9
|
-
({ icon, children, ...restProps }: SummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
Detail: {
|
|
13
|
-
({ children, ...restProps }: DetailProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
interface SummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
-
icon?: ReactNode | JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
interface DetailProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
-
}
|
|
22
|
-
export default Accordion;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
loading?: boolean;
|
|
4
|
-
spinner?: ReactNode;
|
|
5
|
-
prefixElement?: ReactNode;
|
|
6
|
-
suffixElement?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const Button: ({ prefixElement, suffixElement, children, loading, spinner, style, ...restProps }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default Button;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
interface CheckboxProps extends HTMLAttributes<HTMLInputElement> {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const Checkbox: ({ children, id, checked, onChange, style, className, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default Checkbox;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
interface CheckboxListProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
checkLimit?: number;
|
|
4
|
-
values: string[];
|
|
5
|
-
onCheck: (value: (prev: string[]) => string[]) => void;
|
|
6
|
-
showAllCheck?: boolean;
|
|
7
|
-
onAllCheck?: (isAll: boolean) => void;
|
|
8
|
-
allCheckLabel?: string | ReactNode;
|
|
9
|
-
itemCount?: number;
|
|
10
|
-
}
|
|
11
|
-
declare const CheckboxList: {
|
|
12
|
-
({ children, checkLimit, values, onCheck, showAllCheck, onAllCheck, allCheckLabel, itemCount, ...props }: CheckboxListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
Item: {
|
|
15
|
-
({ id, children, ...props }: CheckboxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export interface CheckboxItemProps extends HTMLAttributes<HTMLInputElement> {
|
|
20
|
-
children?: string;
|
|
21
|
-
}
|
|
22
|
-
export default CheckboxList;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
value?: string | number | null;
|
|
4
|
-
defaultValue?: string | number | null;
|
|
5
|
-
icon?: ReactNode;
|
|
6
|
-
optionPosition?: 'top' | 'down';
|
|
7
|
-
iconPosition?: 'left' | 'right' | 'none';
|
|
8
|
-
optionStyle?: CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
declare const Dropdown: {
|
|
11
|
-
({ children, value, defaultValue, onChange, optionPosition, iconPosition, style, icon, optionStyle, ...restProps }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
Item: {
|
|
13
|
-
({ children, value, ...restProps }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
interface DropdownItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
-
value: string | number | null;
|
|
19
|
-
}
|
|
20
|
-
export default Dropdown;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface DropdownContextType {
|
|
3
|
-
selected: string | number | null;
|
|
4
|
-
onChangeValue: (value: string | number | null) => void;
|
|
5
|
-
onChangeLabel: (label: string | ReactNode) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const DropdownContext: import("react").Context<DropdownContextType>;
|
|
8
|
-
export default DropdownContext;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import CloseIcon from './CloseIcon';
|
|
2
|
-
import CallIcon from './CallIcon';
|
|
3
|
-
import HomeIcon from './HomeIcon';
|
|
4
|
-
import SearchIcon from './SearchIcon';
|
|
5
|
-
import DownArrowIcon from './DownArrowIcon';
|
|
6
|
-
import UpArrowIcon from './UpArrowIcon';
|
|
7
|
-
import { CSSProperties } from 'react';
|
|
8
|
-
import ImageIcon from './ImageIcon';
|
|
9
|
-
import ImagePlusIcon from './ImagePlusIcon';
|
|
10
|
-
export { CloseIcon, CallIcon, HomeIcon, SearchIcon, DownArrowIcon, UpArrowIcon, ImageIcon, ImagePlusIcon, };
|
|
11
|
-
export interface IconProps {
|
|
12
|
-
color?: string;
|
|
13
|
-
size?: string;
|
|
14
|
-
fill?: string;
|
|
15
|
-
bgColor?: string;
|
|
16
|
-
style?: CSSProperties;
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
type KeyboardLayout = 'full-size' | 'tenkeyless' | 'compact-96';
|
|
3
|
-
interface DesktopKeyboardInputProps {
|
|
4
|
-
type?: KeyboardLayout;
|
|
5
|
-
hasFunction?: boolean;
|
|
6
|
-
hasNumpad?: boolean;
|
|
7
|
-
cellStyle?: CSSProperties;
|
|
8
|
-
cellClassName?: string;
|
|
9
|
-
activeCellStyle?: CSSProperties;
|
|
10
|
-
activeCellClassName?: string;
|
|
11
|
-
style?: CSSProperties;
|
|
12
|
-
className?: string;
|
|
13
|
-
resetStyle?: boolean;
|
|
14
|
-
isKor?: boolean;
|
|
15
|
-
onKeyDown?: (e: any) => void;
|
|
16
|
-
onKeyUp?: (e: any) => void;
|
|
17
|
-
cellSize?: string;
|
|
18
|
-
}
|
|
19
|
-
declare const DesktopKeyboardInput: ({ type, hasFunction, hasNumpad, cellStyle, cellClassName, activeCellStyle, activeCellClassName, style, className, onKeyDown, onKeyUp, }: DesktopKeyboardInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export default DesktopKeyboardInput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, JSX, ReactNode } from 'react';
|
|
2
|
-
interface ImageInput extends HTMLAttributes<HTMLInputElement> {
|
|
3
|
-
onFileChange: (url: string) => void;
|
|
4
|
-
defaultElement?: ReactNode | JSX.Element;
|
|
5
|
-
preview: string;
|
|
6
|
-
}
|
|
7
|
-
declare const ImageInput: ({ id, preview, defaultElement, onFileChange, onChange, style, className, children, }: ImageInput) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ImageInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, InputHTMLAttributes, JSX, ReactNode } from 'react';
|
|
2
|
-
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
showLimit?: boolean;
|
|
4
|
-
containerStyle?: CSSProperties;
|
|
5
|
-
containerClassName?: string;
|
|
6
|
-
prefixElement?: ReactNode | JSX.Element;
|
|
7
|
-
suffixElement?: ReactNode | JSX.Element;
|
|
8
|
-
showError?: boolean;
|
|
9
|
-
error?: ReactNode | JSX.Element | string;
|
|
10
|
-
}
|
|
11
|
-
declare const Input: ({ prefixElement, suffixElement, className, style, containerStyle, containerClassName, showError, error, maxLength, showLimit, ...restProps }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default Input;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { InputProps } from './Input';
|
|
3
|
-
interface NumberInputProps extends InputProps {
|
|
4
|
-
increaseElement?: ReactNode;
|
|
5
|
-
decreaseElement?: ReactNode;
|
|
6
|
-
min?: number;
|
|
7
|
-
max?: number;
|
|
8
|
-
step?: number;
|
|
9
|
-
}
|
|
10
|
-
declare const NumberInput: React.FC<NumberInputProps>;
|
|
11
|
-
export default NumberInput;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, JSX, ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '../button/Button';
|
|
3
|
-
interface ModalProps {
|
|
4
|
-
opener: ReactNode | JSX.Element;
|
|
5
|
-
children: ReactNode | JSX.Element;
|
|
6
|
-
targetSelector?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const Modal: {
|
|
9
|
-
({ opener, children, targetSelector }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
Overlay: {
|
|
11
|
-
({ backgroundColor, children, style, className, zIndex, }: ModalOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
Close: {
|
|
15
|
-
({ ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
interface ModalOverlayProps {
|
|
20
|
-
backgroundColor?: string;
|
|
21
|
-
zIndex?: number;
|
|
22
|
-
children: ReactNode | JSX.Element;
|
|
23
|
-
style?: CSSProperties;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
export default Modal;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { RadioInputProps } from './RadioInput';
|
|
3
|
-
export interface RadioGroupProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
value?: string[];
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
title?: ReactNode | string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
className?: string;
|
|
10
|
-
allowMultiSelect?: boolean;
|
|
11
|
-
clearable?: boolean;
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
showError?: boolean;
|
|
15
|
-
error?: ReactNode | string;
|
|
16
|
-
}
|
|
17
|
-
declare const RadioGroup: {
|
|
18
|
-
({ title, style, className, children, value, onChange, clearable, allowMultiSelect, readOnly, disabled, showError, error, }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
Item: ({ selectedValues, onToggle, clearable, readOnly, disabled, ...restProps }: RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
};
|
|
21
|
-
interface RadioGroupItemProps extends RadioInputProps {
|
|
22
|
-
selectedValues?: string[] | null;
|
|
23
|
-
onToggle?: (value: string) => void;
|
|
24
|
-
clearable?: boolean;
|
|
25
|
-
readOnly?: boolean;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export default RadioGroup;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface RadioInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
clearable?: boolean;
|
|
4
|
-
onToggle?: (e: any) => void;
|
|
5
|
-
showError?: boolean;
|
|
6
|
-
error?: ReactNode | string;
|
|
7
|
-
}
|
|
8
|
-
declare const RadioInput: ({ clearable, children, checked, onChange, onToggle, style, className, id, defaultChecked, readOnly, showError, error, ...restProps }: RadioInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default RadioInput;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes } from 'react';
|
|
2
|
-
interface TabProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
currentTab: string;
|
|
4
|
-
onChangeTab?: (id: string) => void;
|
|
5
|
-
}
|
|
6
|
-
declare const Tab: {
|
|
7
|
-
({ children, currentTab, onChangeTab, ...restProps }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
Item: {
|
|
9
|
-
({ children, tabId, ...restProps }: TabItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
interface TabItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
14
|
-
tabId: string;
|
|
15
|
-
activeStyle?: CSSProperties;
|
|
16
|
-
activeClassName?: string;
|
|
17
|
-
}
|
|
18
|
-
export default Tab;
|
package/dist/icons/CallIcon.d.ts
DELETED
package/dist/icons/HomeIcon.d.ts
DELETED
package/dist/icons/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CloseIcon from './CloseIcon';
|
|
2
|
-
import CallIcon from './CallIcon';
|
|
3
|
-
import HomeIcon from './HomeIcon';
|
|
4
|
-
import SearchIcon from './SearchIcon';
|
|
5
|
-
export { CloseIcon, CallIcon, HomeIcon, SearchIcon };
|
|
6
|
-
export interface IconProps {
|
|
7
|
-
color?: string;
|
|
8
|
-
size?: string;
|
|
9
|
-
fill?: string;
|
|
10
|
-
bgColor?: string;
|
|
11
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Button from './components/button/Button';
|
|
2
|
-
import Input from './components/input/Input';
|
|
3
|
-
import Spinner from './components/spinner/Spinner';
|
|
4
|
-
import RadioInput from './components/radio/RadioInput';
|
|
5
|
-
import RadioGroup from './components/radio/RadioGroup';
|
|
6
|
-
import Modal from './components/modal/Modal';
|
|
7
|
-
import Tab from './components/tabs/Tab';
|
|
8
|
-
import Accordion from './components/accordion/Accordion';
|
|
9
|
-
import Dropdown from './components/dropdown/Dropdown';
|
|
10
|
-
import ImageInput from './components/input/ImageInput';
|
|
11
|
-
import generateHash from './components/utils/generateHash';
|
|
12
|
-
import Tooltip from './components/tooltip/Tooltip';
|
|
13
|
-
import Checkbox from './components/checkbox/Checkbox';
|
|
14
|
-
import CheckboxList from './components/checkbox/CheckboxList';
|
|
15
|
-
import { CallIcon, CloseIcon, DownArrowIcon, HomeIcon, SearchIcon, UpArrowIcon, ImageIcon, ImagePlusIcon } from './components/icons';
|
|
16
|
-
export { CallIcon, CloseIcon, HomeIcon, SearchIcon, DownArrowIcon, UpArrowIcon, ImageIcon, ImagePlusIcon, Button, Input, Spinner, RadioInput, RadioGroup, Modal, Tab, Accordion, Dropdown, ImageInput, generateHash, Tooltip, Checkbox, CheckboxList, };
|