From 29f130f7484071f0a62993de1e09f36ec2af3cdb Mon Sep 17 00:00:00 2001 From: OfficialDakari Date: Thu, 3 Apr 2025 18:38:53 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=81=D0=BB=D0=B8=20=D1=8D=D1=82=D0=BE?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=84=D0=B8=D0=BA=D1=81=D0=B8=D1=82=20=D0=B1?= =?UTF-8?q?=D0=B0=D0=B3=20=D1=82=D0=BE=20=D0=B1=D1=80=D0=B5=D1=8E=D1=81?= =?UTF-8?q?=D1=8C=20=D0=BD=D0=B0=D0=BB=D1=8B=D1=81=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/src/components/AppBar.d.ts | 2 +- dist/src/components/Box.d.ts | 4 ++-- dist/src/components/Button.d.ts | 2 +- dist/src/components/Checkbox.d.ts | 2 +- dist/src/components/Chip.d.ts | 8 ++++---- dist/src/components/CircularProgress.d.ts | 4 ++-- dist/src/components/Dialog.d.ts | 8 ++++---- dist/src/components/Divider.d.ts | 2 +- dist/src/components/Dropdown.d.ts | 2 +- dist/src/components/FloatingActionButton.d.ts | 4 ++-- dist/src/components/Forms.d.ts | 4 ++-- dist/src/components/IconButton.d.ts | 2 +- dist/src/components/Link.d.ts | 2 +- dist/src/components/List.d.ts | 4 ++-- dist/src/components/Menu.d.ts | 6 +++--- dist/src/components/Paper.d.ts | 3 +-- dist/src/components/RadioButton.d.ts | 2 +- dist/src/components/Slider.d.ts | 2 +- dist/src/components/Switch.d.ts | 2 +- dist/src/components/Tabs.d.ts | 4 ++-- dist/src/components/Typography.d.ts | 2 +- dist/src/hooks/useScheme.d.ts | 2 +- dist/src/hooks/useTheme.d.ts | 2 +- tsconfig.json | 6 +++--- 24 files changed, 40 insertions(+), 41 deletions(-) diff --git a/dist/src/components/AppBar.d.ts b/dist/src/components/AppBar.d.ts index 931496b..2e6f38a 100644 --- a/dist/src/components/AppBar.d.ts +++ b/dist/src/components/AppBar.d.ts @@ -7,5 +7,5 @@ type AppBarProps = AriaProps & { children?: React.ReactNode; style?: React.CSSProperties; }; -export declare const AppBar: (props: AppBarProps) => React.JSX.Element; +export declare const AppBar: (props: AppBarProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Box.d.ts b/dist/src/components/Box.d.ts index 0244d59..5373c16 100644 --- a/dist/src/components/Box.d.ts +++ b/dist/src/components/Box.d.ts @@ -1,4 +1,4 @@ -import { default as React, CSSProperties, ReactNode } from 'react'; +import { CSSProperties, ReactNode } from 'react'; import { AriaProps } from '../types/aria'; export type BoxProps = AriaProps & { @@ -23,4 +23,4 @@ export type BoxProps = AriaProps & { id?: string; className?: string; }; -export declare const Box: (props: BoxProps) => React.JSX.Element; +export declare const Box: (props: BoxProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/src/components/Button.d.ts b/dist/src/components/Button.d.ts index e04bb0d..3b1c379 100644 --- a/dist/src/components/Button.d.ts +++ b/dist/src/components/Button.d.ts @@ -21,5 +21,5 @@ type ButtonProps = AriaProps & { style?: React.CSSProperties; id?: string; }; -export declare const Button: ({ variant, children, disabled, softDisabled, href, target, type, value, ...props }: ButtonProps) => React.JSX.Element; +export declare const Button: ({ variant, children, disabled, softDisabled, href, target, type, value, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Checkbox.d.ts b/dist/src/components/Checkbox.d.ts index dd4607e..4311964 100644 --- a/dist/src/components/Checkbox.d.ts +++ b/dist/src/components/Checkbox.d.ts @@ -27,5 +27,5 @@ type CheckboxProps = AriaProps & { tabIndex?: number; name?: string; }; -export declare const Checkbox: ({ checked, indeterminate, id, disabled, hidden, ariaLabel, ariaLabelledBy, ariaDescribedBy, ariaControls, required, onInput, onChange, onClick, onMouseDown, onMouseUp, onMouseEnter, onFocus, onBlur, className, style, tabIndex, name, ...props }: CheckboxProps) => React.JSX.Element; +export declare const Checkbox: ({ checked, indeterminate, id, disabled, hidden, ariaLabel, ariaLabelledBy, ariaDescribedBy, ariaControls, required, onInput, onChange, onClick, onMouseDown, onMouseUp, onMouseEnter, onFocus, onBlur, className, style, tabIndex, name, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Chip.d.ts b/dist/src/components/Chip.d.ts index 160f17e..003392f 100644 --- a/dist/src/components/Chip.d.ts +++ b/dist/src/components/Chip.d.ts @@ -4,7 +4,7 @@ import { AriaProps } from '../types/aria'; type ChipSetProps = AriaProps & { children: React.ReactNode; }; -export declare const ChipSet: (props: ChipSetProps) => React.JSX.Element; +export declare const ChipSet: (props: ChipSetProps) => import("react/jsx-runtime").JSX.Element; type AssistChipProps = AriaProps & { label?: string; elevated?: boolean; @@ -13,7 +13,7 @@ type AssistChipProps = AriaProps & { disabled?: boolean; alwaysFocusable?: boolean; }; -export declare const AssistChip: (props: AssistChipProps) => React.JSX.Element; +export declare const AssistChip: (props: AssistChipProps) => import("react/jsx-runtime").JSX.Element; type FilterChipProps = AriaProps & { elevated?: boolean; removable?: boolean; @@ -23,7 +23,7 @@ type FilterChipProps = AriaProps & { alwaysFocusable?: boolean; label: string; }; -export declare const FilterChip: (props: FilterChipProps) => React.JSX.Element; +export declare const FilterChip: (props: FilterChipProps) => import("react/jsx-runtime").JSX.Element; type InputChipProps = AriaProps & { avatar?: boolean; href?: string; @@ -34,5 +34,5 @@ type InputChipProps = AriaProps & { alwaysFocusable?: boolean; label: string; }; -export declare const InputChip: (props: InputChipProps) => React.JSX.Element; +export declare const InputChip: (props: InputChipProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/CircularProgress.d.ts b/dist/src/components/CircularProgress.d.ts index 1526be4..855df6f 100644 --- a/dist/src/components/CircularProgress.d.ts +++ b/dist/src/components/CircularProgress.d.ts @@ -10,7 +10,7 @@ type CircularProgressProps = { color?: string; size?: string; }; -export declare const CircularProgress: (props: CircularProgressProps) => React.JSX.Element; +export declare const CircularProgress: (props: CircularProgressProps) => import("react/jsx-runtime").JSX.Element; type LinearProgressProps = { buffer?: number; value?: number; @@ -22,5 +22,5 @@ type LinearProgressProps = { color?: string; size?: string; }; -export declare const LinearProgress: (props: LinearProgressProps) => React.JSX.Element; +export declare const LinearProgress: (props: LinearProgressProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Dialog.d.ts b/dist/src/components/Dialog.d.ts index f5b8a5a..386b9a2 100644 --- a/dist/src/components/Dialog.d.ts +++ b/dist/src/components/Dialog.d.ts @@ -18,26 +18,26 @@ type DialogProps = AriaProps & { onCancel?: () => void; fullScreen?: boolean; }; -export declare const Dialog: (props: DialogProps) => React.JSX.Element; +export declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element; type DialogTitleProps = AriaProps & { children: React.ReactNode; style?: React.CSSProperties; className?: string; id?: string; }; -export declare const DialogTitle: (props: DialogTitleProps) => React.JSX.Element; +export declare const DialogTitle: (props: DialogTitleProps) => import("react/jsx-runtime").JSX.Element; type DialogContentProps = AriaProps & { children: React.ReactNode; style?: React.CSSProperties; className?: string; id?: string; }; -export declare const DialogContent: (props: DialogContentProps) => React.JSX.Element; +export declare const DialogContent: (props: DialogContentProps) => import("react/jsx-runtime").JSX.Element; type DialogActionsProps = AriaProps & { children: React.ReactNode; style?: React.CSSProperties; className?: string; id?: string; }; -export declare const DialogActions: (props: DialogActionsProps) => React.JSX.Element; +export declare const DialogActions: (props: DialogActionsProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Divider.d.ts b/dist/src/components/Divider.d.ts index cbd984e..c9ea2f9 100644 --- a/dist/src/components/Divider.d.ts +++ b/dist/src/components/Divider.d.ts @@ -8,5 +8,5 @@ type DividerProps = AriaProps & { id?: string; color?: string; }; -export declare const Divider: ({ orientation, className, style, color, ...props }: DividerProps) => React.JSX.Element; +export declare const Divider: ({ orientation, className, style, color, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Dropdown.d.ts b/dist/src/components/Dropdown.d.ts index a12b9bb..6e81198 100644 --- a/dist/src/components/Dropdown.d.ts +++ b/dist/src/components/Dropdown.d.ts @@ -22,5 +22,5 @@ type SelectProps = { style?: React.CSSProperties; children?: React.ReactNode; }; -export declare const Select: (props: SelectProps) => React.JSX.Element; +export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/FloatingActionButton.d.ts b/dist/src/components/FloatingActionButton.d.ts index 07941d2..6185773 100644 --- a/dist/src/components/FloatingActionButton.d.ts +++ b/dist/src/components/FloatingActionButton.d.ts @@ -10,7 +10,7 @@ type FABProps = AriaProps & { label?: string; lowered?: boolean; }; -export declare const FAB: (props: FABProps) => React.JSX.Element; +export declare const FAB: (props: FABProps) => import("react/jsx-runtime").JSX.Element; type BrandedFABProps = AriaProps & { children: React.ReactNode; className?: string; @@ -20,5 +20,5 @@ type BrandedFABProps = AriaProps & { label?: string; lowered?: boolean; }; -export declare const BrandedFAB: (props: BrandedFABProps) => React.JSX.Element; +export declare const BrandedFAB: (props: BrandedFABProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Forms.d.ts b/dist/src/components/Forms.d.ts index 591eb88..f099cdc 100644 --- a/dist/src/components/Forms.d.ts +++ b/dist/src/components/Forms.d.ts @@ -1,3 +1,3 @@ -import { default as React, LabelHTMLAttributes } from 'react'; +import { LabelHTMLAttributes } from 'react'; -export declare const FormLabel: (props: LabelHTMLAttributes) => React.JSX.Element; +export declare const FormLabel: (props: LabelHTMLAttributes) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/src/components/IconButton.d.ts b/dist/src/components/IconButton.d.ts index 0cd9086..9c774ef 100644 --- a/dist/src/components/IconButton.d.ts +++ b/dist/src/components/IconButton.d.ts @@ -23,5 +23,5 @@ type IconButtonProps = AriaProps & { onInput?: (event: Event) => void; onClick?: (event: Event) => void; }; -export declare const IconButton: (props: IconButtonProps) => React.JSX.Element; +export declare const IconButton: (props: IconButtonProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Link.d.ts b/dist/src/components/Link.d.ts index c03eb25..b8954b1 100644 --- a/dist/src/components/Link.d.ts +++ b/dist/src/components/Link.d.ts @@ -11,5 +11,5 @@ type LinkProps = AriaProps & { style?: React.CSSProperties; color?: string; }; -export declare const Link: (props: LinkProps) => React.JSX.Element; +export declare const Link: (props: LinkProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/List.d.ts b/dist/src/components/List.d.ts index 186d852..15bbd3f 100644 --- a/dist/src/components/List.d.ts +++ b/dist/src/components/List.d.ts @@ -4,7 +4,7 @@ import { AriaProps } from '../types/aria'; type ListProps = AriaProps & { children: React.ReactNode; }; -export declare const List: (props: ListProps) => React.JSX.Element; +export declare const List: (props: ListProps) => import("react/jsx-runtime").JSX.Element; type ListItemProps = AriaProps & { children: React.ReactNode; className?: string; @@ -14,5 +14,5 @@ type ListItemProps = AriaProps & { href?: string; target?: '_blank' | '_self' | '_parent' | '_top'; }; -export declare const ListItem: (props: ListItemProps) => React.JSX.Element; +export declare const ListItem: (props: ListItemProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Menu.d.ts b/dist/src/components/Menu.d.ts index e621cad..e3b34be 100644 --- a/dist/src/components/Menu.d.ts +++ b/dist/src/components/Menu.d.ts @@ -21,7 +21,7 @@ type MenuProps = { children?: React.ReactNode; id?: string; }; -export declare const Menu: (props: MenuProps) => React.JSX.Element; +export declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element; type SubMenuProps = { children?: React.ReactNode; className?: string; @@ -32,7 +32,7 @@ type SubMenuProps = { hoverOpenDelay?: number; hoverCloseDelay?: number; }; -export declare const SubMenu: (props: SubMenuProps) => React.JSX.Element; +export declare const SubMenu: (props: SubMenuProps) => import("react/jsx-runtime").JSX.Element; type MenuItemProps = { children?: React.ReactNode; className?: string; @@ -45,5 +45,5 @@ type MenuItemProps = { selected?: boolean; onCloseMenu?: () => void; }; -export declare const MenuItem: (props: MenuItemProps) => React.JSX.Element; +export declare const MenuItem: (props: MenuItemProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Paper.d.ts b/dist/src/components/Paper.d.ts index 41455cb..a186282 100644 --- a/dist/src/components/Paper.d.ts +++ b/dist/src/components/Paper.d.ts @@ -1,4 +1,3 @@ -import { default as React } from 'react'; import { BoxProps } from './Box'; -export declare const Paper: ({ children, style, ...props }: BoxProps) => React.JSX.Element; +export declare const Paper: ({ children, style, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/src/components/RadioButton.d.ts b/dist/src/components/RadioButton.d.ts index d8c2810..789a48b 100644 --- a/dist/src/components/RadioButton.d.ts +++ b/dist/src/components/RadioButton.d.ts @@ -16,5 +16,5 @@ type RadioProps = AriaProps & { selectedIconColor?: string; iconSize?: string; }; -export declare const Radio: (props: RadioProps) => React.JSX.Element; +export declare const Radio: (props: RadioProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Slider.d.ts b/dist/src/components/Slider.d.ts index b3d14e8..c0419fb 100644 --- a/dist/src/components/Slider.d.ts +++ b/dist/src/components/Slider.d.ts @@ -34,5 +34,5 @@ type SliderProps = AriaProps & { withTickMarks?: boolean; withTicks?: boolean; }; -export declare const Slider: ({ className, id, style, ...rest }: SliderProps) => React.JSX.Element; +export declare const Slider: ({ className, id, style, ...rest }: SliderProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Switch.d.ts b/dist/src/components/Switch.d.ts index fc3da6a..243c8ac 100644 --- a/dist/src/components/Switch.d.ts +++ b/dist/src/components/Switch.d.ts @@ -26,5 +26,5 @@ type SwitchProps = AriaProps & { tabIndex?: number; name?: string; }; -export declare const Switch: ({ checked, id, disabled, hidden, ariaLabel, ariaLabelledBy, ariaDescribedBy, ariaControls, required, onInput, onChange, onClick, onMouseDown, onMouseUp, onMouseEnter, onFocus, onBlur, className, style, tabIndex, name, ...props }: SwitchProps) => React.JSX.Element; +export declare const Switch: ({ checked, id, disabled, hidden, ariaLabel, ariaLabelledBy, ariaDescribedBy, ariaControls, required, onInput, onChange, onClick, onMouseDown, onMouseUp, onMouseEnter, onFocus, onBlur, className, style, tabIndex, name, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Tabs.d.ts b/dist/src/components/Tabs.d.ts index 6fbc223..7f25d21 100644 --- a/dist/src/components/Tabs.d.ts +++ b/dist/src/components/Tabs.d.ts @@ -21,6 +21,6 @@ type TabProps = AriaProps & { variant?: 'primary' | 'secondary'; onClick?: (e: MouseEvent) => void; }; -export declare const Tabs: (props: TabsProps) => React.JSX.Element; -export declare const Tab: (props: TabProps) => React.JSX.Element; +export declare const Tabs: (props: TabsProps) => import("react/jsx-runtime").JSX.Element; +export declare const Tab: (props: TabProps) => import("react/jsx-runtime").JSX.Element; export {}; diff --git a/dist/src/components/Typography.d.ts b/dist/src/components/Typography.d.ts index d72890a..b24a3dd 100644 --- a/dist/src/components/Typography.d.ts +++ b/dist/src/components/Typography.d.ts @@ -13,5 +13,5 @@ type TypographyProps = AriaProps & { size?: "small" | "medium" | "large" | "auto"; htmlFor?: string; }; -export declare const Typography: ({ children, variant, className, color, align, style, noWrap, id, size, htmlFor }: TypographyProps) => React.JSX.Element | null; +export declare const Typography: ({ children, variant, className, color, align, style, noWrap, id, size, htmlFor }: TypographyProps) => import("react/jsx-runtime").JSX.Element | null; export {}; diff --git a/dist/src/hooks/useScheme.d.ts b/dist/src/hooks/useScheme.d.ts index 489e070..0513bea 100644 --- a/dist/src/hooks/useScheme.d.ts +++ b/dist/src/hooks/useScheme.d.ts @@ -3,5 +3,5 @@ import { default as React } from 'react'; export declare function SchemeProvider({ children, scheme }: { children: React.ReactNode; scheme: 'light' | 'dark'; -}): React.JSX.Element; +}): import("react/jsx-runtime").JSX.Element; export declare function useScheme(): "dark" | "light"; diff --git a/dist/src/hooks/useTheme.d.ts b/dist/src/hooks/useTheme.d.ts index 653524f..f0f86ab 100644 --- a/dist/src/hooks/useTheme.d.ts +++ b/dist/src/hooks/useTheme.d.ts @@ -5,6 +5,6 @@ export declare function ThemeProvider({ children, theme, scheme }: { children: React.ReactNode; theme: Theme; scheme: 'dark' | 'light'; -}): React.JSX.Element; +}): import("react/jsx-runtime").JSX.Element; export declare function useTheme(): Theme; export declare function usePalette(): import('@material/material-color-utilities').Scheme; diff --git a/tsconfig.json b/tsconfig.json index 2b4149b..62251ae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "sourceMap": true, - "jsx": "react", + "jsx": "react-jsx", "target": "ES2016", "module": "ESNext", "lib": [ @@ -12,10 +12,10 @@ "allowJs": true, "strict": true, "esModuleInterop": true, - "moduleResolution": "bundler", + "moduleResolution": "node", "resolveJsonModule": true, "outDir": "dist", - "skipLibCheck": true, + "skipLibCheck": true }, "exclude": [ "node_modules",