jy-headless 0.0.27 → 0.0.28
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/components/accordion/Accordion.d.ts +16 -0
- package/dist/components/accordion/AccordionContext.d.ts +6 -0
- package/dist/components/icons/CallIcon.d.ts +1 -2
- package/dist/components/icons/DownArrowIcon.d.ts +1 -2
- package/dist/components/icons/UpArrowIcon.d.ts +1 -2
- package/dist/components/input/DesktopKeyboardInput.d.ts +2 -2
- package/dist/components/tabs/Tab.d.ts +12 -8
- package/dist/components/tabs/TabContext.d.ts +6 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +766 -167
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +765 -167
- package/dist/index.js.map +1 -1
- package/package.json +64 -55
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
interface AccordionComposition {
|
|
3
|
+
Summary?: React.FC<SummaryProps>;
|
|
4
|
+
Detail?: React.FC<DetailProps>;
|
|
5
|
+
}
|
|
6
|
+
interface AccordionProps extends HTMLAttributes<HTMLDetailsElement> {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
setIsOpen: (value: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Accordion: React.FC<AccordionProps> & AccordionComposition;
|
|
11
|
+
interface SummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface DetailProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
}
|
|
16
|
+
export default Accordion;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { IconProps } from './index';
|
|
2
|
-
|
|
3
|
-
declare const CallIcon: ({ color, size, bgColor, fill, }: IconProps) => React.JSX.Element;
|
|
2
|
+
declare const CallIcon: ({ color, size, bgColor, fill, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default CallIcon;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { IconProps } from './index';
|
|
2
|
-
|
|
3
|
-
declare const DownArrowIcon: ({ color, size, bgColor, fill, }: IconProps) => React.JSX.Element;
|
|
2
|
+
declare const DownArrowIcon: ({ color, size, bgColor, fill, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default DownArrowIcon;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { IconProps } from './index';
|
|
2
|
-
|
|
3
|
-
declare const UpArrowIcon: ({ color, size, bgColor, fill, }: IconProps) => React.JSX.Element;
|
|
2
|
+
declare const UpArrowIcon: ({ color, size, bgColor, fill, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default UpArrowIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
2
|
type KeyboardLayout = 'full-size' | 'tenkeyless' | 'compact-96';
|
|
3
3
|
interface DesktopKeyboardInputProps {
|
|
4
4
|
type?: KeyboardLayout;
|
|
@@ -16,5 +16,5 @@ interface DesktopKeyboardInputProps {
|
|
|
16
16
|
onKeyUp?: (e: any) => void;
|
|
17
17
|
cellSize?: string;
|
|
18
18
|
}
|
|
19
|
-
declare const DesktopKeyboardInput: ({ type, hasFunction, hasNumpad, cellStyle, cellClassName, activeCellStyle, activeCellClassName, style, className, onKeyDown, onKeyUp, }: DesktopKeyboardInputProps) =>
|
|
19
|
+
declare const DesktopKeyboardInput: ({ type, hasFunction, hasNumpad, cellStyle, cellClassName, activeCellStyle, activeCellClassName, style, className, onKeyDown, onKeyUp, }: DesktopKeyboardInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default DesktopKeyboardInput;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface
|
|
3
|
-
|
|
4
|
-
id: string
|
|
5
|
-
redner: ReactNode;
|
|
1
|
+
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
2
|
+
interface TabProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
currentTab: string;
|
|
4
|
+
onChangeTab: (id: string) => void;
|
|
6
5
|
}
|
|
7
|
-
interface
|
|
8
|
-
|
|
6
|
+
interface TabComposition {
|
|
7
|
+
Item?: React.FC<TabItemProps>;
|
|
8
|
+
}
|
|
9
|
+
declare const Tab: React.FC<TabProps> & TabComposition;
|
|
10
|
+
interface TabItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
tabId: string;
|
|
12
|
+
activeStyle?: CSSProperties;
|
|
13
|
+
activeClassName?: string;
|
|
9
14
|
}
|
|
10
|
-
declare const Tab: ({ tab }: TabProps) => void;
|
|
11
15
|
export default Tab;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import Button from './components/button/Button';
|
|
2
2
|
import Input from './components/input/Input';
|
|
3
|
-
import NumberInput from './components/input/NumberInput';
|
|
4
3
|
import DesktopKeyboardInput from './components/input/DesktopKeyboardInput';
|
|
5
4
|
import Spinner from './components/spinner/Spinner';
|
|
6
5
|
import RadioInput from './components/radio/RadioInput';
|
|
7
6
|
import RadioGroup from './components/radio/RadioGroup';
|
|
8
7
|
import Modal from './components/modal/Modal';
|
|
9
8
|
import { CallIcon, CloseIcon, HomeIcon, SearchIcon } from './components/icons';
|
|
10
|
-
export { Button, Input, DesktopKeyboardInput, Spinner, CallIcon, CloseIcon, HomeIcon, SearchIcon, RadioInput, RadioGroup, Modal,
|
|
9
|
+
export { Button, Input, DesktopKeyboardInput, Spinner, CallIcon, CloseIcon, HomeIcon, SearchIcon, RadioInput, RadioGroup, Modal, };
|