jy-headless 0.0.25 → 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.
@@ -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;
@@ -0,0 +1,6 @@
1
+ interface AccordionContextType {
2
+ isOpen: boolean;
3
+ setIsOpen: (value: boolean) => void;
4
+ }
5
+ declare const AccordionContext: import("react").Context<AccordionContextType>;
6
+ export default AccordionContext;
@@ -1,4 +1,3 @@
1
1
  import { IconProps } from './index';
2
- import React from 'react';
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
- import React from 'react';
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
- import React from 'react';
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 React, { CSSProperties } from 'react';
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) => React.JSX.Element;
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,6 +1,6 @@
1
1
  import React, { CSSProperties, InputHTMLAttributes, ReactNode } from 'react';
2
2
  export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
3
- showLimit: boolean;
3
+ showLimit?: boolean;
4
4
  containerStyle?: CSSProperties;
5
5
  containerClassName?: string;
6
6
  prefixElement?: ReactNode;
@@ -1,11 +1,15 @@
1
- import { ReactNode } from 'react';
2
- interface TabItem {
3
- label: string;
4
- id: string | number;
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 TabProps {
8
- tab: TabItem[];
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;
@@ -0,0 +1,6 @@
1
+ interface TabContextType {
2
+ currentTabId: string;
3
+ onChangeTab: (tabId: string) => void;
4
+ }
5
+ declare const TabContext: import("react").Context<TabContextType>;
6
+ export default TabContext;