tfy-web-components 0.0.19 → 0.0.20
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 +65 -4
- package/dist/..d.ts +46 -0
- package/dist/Accordion.d.ts +8 -9
- package/dist/Alert.d.ts +73 -0
- package/dist/AudioPlayer.d.ts +10 -0
- package/dist/Avatar.d.ts +19 -0
- package/dist/Badge.d.ts +2 -1
- package/dist/CopyField.d.ts +1 -0
- package/dist/CustomDrawer.d.ts +8 -1
- package/dist/DropdownMenu.d.ts +25 -0
- package/dist/IconButton.d.ts +4 -2
- package/dist/ImagesPreview.d.ts +12 -0
- package/dist/Input-CnGhA18d.js +74283 -0
- package/dist/Input-CnGhA18d.js.map +1 -0
- package/dist/Markdown.d.ts +103 -0
- package/dist/Modal.d.ts +12 -0
- package/dist/MonacoEditorCore-xfpJ6z-E.js +113 -0
- package/dist/MonacoEditorCore-xfpJ6z-E.js.map +1 -0
- package/dist/OpenUiFenceBlock-CsVY6kwA.js +20 -0
- package/dist/OpenUiFenceBlock-CsVY6kwA.js.map +1 -0
- package/dist/OutlinedRadio.d.ts +9 -0
- package/dist/RootFontSizeContext-7vgn7Y_k.js +22 -0
- package/dist/RootFontSizeContext-7vgn7Y_k.js.map +1 -0
- package/dist/SimpleCodeEditor.d.ts +63 -0
- package/dist/Skeleton.d.ts +7 -0
- package/dist/ThumbsFeedback.d.ts +18 -0
- package/dist/ToggleButton.d.ts +42 -0
- package/dist/UserMessage.d.ts +15 -0
- package/dist/UserMessageEdit.d.ts +16 -0
- package/dist/_commonjsHelpers-DWwsNxpa.js +9 -0
- package/dist/_commonjsHelpers-DWwsNxpa.js.map +1 -0
- package/dist/agent-chat.d.ts +222 -0
- package/dist/classNames-Dy-RXSjS.js +9 -0
- package/dist/{classNames-CC5emYUV.js.map → classNames-Dy-RXSjS.js.map} +1 -1
- package/dist/components/atoms/Accordion.d.ts +5 -6
- package/dist/components/atoms/Accordion.es.js +9 -7
- package/dist/components/atoms/Accordion.es.js.map +1 -1
- package/dist/components/atoms/AudioPlayer.d.ts +6 -0
- package/dist/components/atoms/AudioPlayer.es.js +1424 -0
- package/dist/components/atoms/AudioPlayer.es.js.map +1 -0
- package/dist/components/atoms/Avatar.d.ts +10 -0
- package/dist/components/atoms/Avatar.es.js +62 -0
- package/dist/components/atoms/Avatar.es.js.map +1 -0
- package/dist/components/atoms/Badge.d.ts +2 -1
- package/dist/components/atoms/Badge.es.js +9 -1
- package/dist/components/atoms/Badge.es.js.map +1 -1
- package/dist/components/atoms/Button.es.js +2 -2
- package/dist/components/atoms/IconButton.d.ts +4 -2
- package/dist/components/atoms/IconButton.es.js +23 -7
- package/dist/components/atoms/IconButton.es.js.map +1 -1
- package/dist/components/atoms/IconProvider.es.js +28 -2
- package/dist/components/atoms/IconProvider.es.js.map +1 -1
- package/dist/components/atoms/Modal.d.ts +8 -0
- package/dist/components/atoms/Modal.es.js +19 -0
- package/dist/components/atoms/Modal.es.js.map +1 -0
- package/dist/components/atoms/OutlinedRadio.d.ts +5 -0
- package/dist/components/atoms/OutlinedRadio.es.js +29 -0
- package/dist/components/atoms/OutlinedRadio.es.js.map +1 -0
- package/dist/components/atoms/Skeleton.d.ts +4 -0
- package/dist/components/atoms/Skeleton.es.js +9 -0
- package/dist/components/atoms/Skeleton.es.js.map +1 -0
- package/dist/components/atoms/Spinner.es.js +1 -1
- package/dist/components/atoms/Switch.es.js +1 -18
- package/dist/components/atoms/Switch.es.js.map +1 -1
- package/dist/components/atoms/TabButton.es.js +1 -1
- package/dist/components/atoms/TabPanel.es.js +1 -1
- package/dist/components/atoms/Tooltip.es.js +1 -1
- package/dist/components/molecules/Alert.d.ts +26 -0
- package/dist/components/molecules/Alert.es.js +135 -0
- package/dist/components/molecules/Alert.es.js.map +1 -0
- package/dist/components/molecules/CopyField.d.ts +1 -0
- package/dist/components/molecules/CopyField.es.js +12 -74192
- package/dist/components/molecules/CopyField.es.js.map +1 -1
- package/dist/components/molecules/CustomDrawer.d.ts +8 -1
- package/dist/components/molecules/CustomDrawer.es.js +118 -48
- package/dist/components/molecules/CustomDrawer.es.js.map +1 -1
- package/dist/components/molecules/Dialog.es.js +2570 -1519
- package/dist/components/molecules/Dialog.es.js.map +1 -1
- package/dist/components/molecules/DropdownMenu.d.ts +18 -0
- package/dist/components/molecules/DropdownMenu.es.js +104 -0
- package/dist/components/molecules/DropdownMenu.es.js.map +1 -0
- package/dist/components/molecules/ImagesPreview.d.ts +8 -0
- package/dist/components/molecules/ImagesPreview.es.js +186 -0
- package/dist/components/molecules/ImagesPreview.es.js.map +1 -0
- package/dist/components/molecules/Input.es.js +2 -2
- package/dist/components/molecules/Markdown.d.ts +1 -0
- package/dist/components/molecules/Markdown.es.js +345 -0
- package/dist/components/molecules/Markdown.es.js.map +1 -0
- package/dist/components/molecules/Notify.es.js +6 -1023
- package/dist/components/molecules/Notify.es.js.map +1 -1
- package/dist/components/molecules/SimpleCodeEditor.d.ts +56 -0
- package/dist/components/molecules/SimpleCodeEditor.es.js +784 -0
- package/dist/components/molecules/SimpleCodeEditor.es.js.map +1 -0
- package/dist/components/molecules/ThumbsFeedback.d.ts +13 -0
- package/dist/components/molecules/ThumbsFeedback.es.js +98 -0
- package/dist/components/molecules/ThumbsFeedback.es.js.map +1 -0
- package/dist/components/molecules/ToggleButton.d.ts +37 -0
- package/dist/components/molecules/ToggleButton.es.js +72 -0
- package/dist/components/molecules/ToggleButton.es.js.map +1 -0
- package/dist/components/molecules/agent-chat/UserMessage.d.ts +11 -0
- package/dist/components/molecules/agent-chat/UserMessage.es.js +40 -0
- package/dist/components/molecules/agent-chat/UserMessage.es.js.map +1 -0
- package/dist/components/molecules/agent-chat/UserMessageEdit.d.ts +12 -0
- package/dist/components/molecules/agent-chat/UserMessageEdit.es.js +33 -0
- package/dist/components/molecules/agent-chat/UserMessageEdit.es.js.map +1 -0
- package/dist/components/molecules/agent-chat.d.ts +1 -0
- package/dist/components/molecules/agent-chat.es.js +935 -0
- package/dist/components/molecules/agent-chat.es.js.map +1 -0
- package/dist/components/theme/theme.d.ts +1 -0
- package/dist/components/theme/theme.es.js +12 -1
- package/dist/components/theme/theme.es.js.map +1 -1
- package/dist/components/theme/useTheme.d.ts +7 -0
- package/dist/components/theme/useTheme.es.js +35 -20
- package/dist/components/theme/useTheme.es.js.map +1 -1
- package/dist/components/theme/utils.es.js +1 -1
- package/dist/index.es.js +12 -4
- package/dist/index.es.js.map +1 -1
- package/dist/{isTypedArray-CoDTnA8U.js → isTypedArray-CLAk7Q1f.js} +30 -30
- package/dist/isTypedArray-CLAk7Q1f.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tailwindPreset.d.ts +140 -0
- package/dist/tailwindPreset.es.js +100 -0
- package/dist/tailwindPreset.es.js.map +1 -0
- package/dist/theme.css +163 -0
- package/dist/theme.d.ts +2 -0
- package/dist/useTheme.d.ts +7 -0
- package/package.json +49 -3
- package/dist/_commonjsHelpers-CcAunmGO.js +0 -34
- package/dist/_commonjsHelpers-CcAunmGO.js.map +0 -1
- package/dist/classNames-CC5emYUV.js +0 -9
- package/dist/isTypedArray-CoDTnA8U.js.map +0 -1
package/README.md
CHANGED
|
@@ -19,17 +19,78 @@
|
|
|
19
19
|
yarn add tfy-web-components
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
2.
|
|
22
|
+
2. Wire up theming, matching your consumer app's Tailwind version:
|
|
23
|
+
|
|
24
|
+
### Tailwind v3
|
|
25
|
+
|
|
26
|
+
Use the exported preset — it configures the color palette, `bg-light-*`/
|
|
27
|
+
`text-light-*` utilities, and the scrollbar plugin in one line, and re-exports
|
|
28
|
+
`tailwindContentPaths` so Tailwind can detect the classes this package's
|
|
29
|
+
compiled components use:
|
|
23
30
|
|
|
24
31
|
```js
|
|
25
|
-
|
|
32
|
+
// tailwind.config.js
|
|
33
|
+
import tfyPreset, { tailwindContentPaths } from 'tfy-web-components/tailwind-preset'
|
|
26
34
|
|
|
27
|
-
|
|
35
|
+
export default {
|
|
36
|
+
presets: [tfyPreset],
|
|
28
37
|
content: ['./src/**/*.{js,ts,jsx,tsx}', ...tailwindContentPaths],
|
|
29
|
-
// ...
|
|
30
38
|
}
|
|
31
39
|
```
|
|
32
40
|
|
|
41
|
+
Then wrap your app in the theme provider (owns the `.dark` class, persists the
|
|
42
|
+
user's preference, and injects the `--color-*` CSS variables at runtime):
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import { ThemeProvider } from 'tfy-web-components/components/theme/useTheme'
|
|
46
|
+
|
|
47
|
+
;<ThemeProvider>
|
|
48
|
+
<App />
|
|
49
|
+
</ThemeProvider>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Tailwind v4
|
|
53
|
+
|
|
54
|
+
Import the generated theme stylesheet once in your Tailwind entry CSS — it
|
|
55
|
+
declares the palette's `@theme inline` registrations plus an `@source`
|
|
56
|
+
directive, so no content-path configuration is needed:
|
|
57
|
+
|
|
58
|
+
```css
|
|
59
|
+
@import 'tailwindcss';
|
|
60
|
+
@import 'tfy-web-components/theme.css';
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
If a host app/SDK already owns its theme state, pass the resolved theme to
|
|
64
|
+
`ThemeProvider`. It will apply the same value to its context and the document
|
|
65
|
+
without persisting a separate preference or listening to system-theme changes:
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
<ThemeProvider theme={theme}>
|
|
69
|
+
<App />
|
|
70
|
+
</ThemeProvider>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Omit `theme` when tfy-web-components should own the preference through
|
|
74
|
+
`localStorage` and the system preference.
|
|
75
|
+
|
|
76
|
+
### Agent chat components
|
|
77
|
+
|
|
78
|
+
Import agent-chat UI from the barrel or the explicit deep entries only:
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { ToolCallCard, SubAgentCard } from 'tfy-web-components/components/molecules/agent-chat'
|
|
82
|
+
import UserMessage from 'tfy-web-components/components/molecules/agent-chat/UserMessage'
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Per-file `agent-chat/*` wildcards are not published; use the barrel unless you
|
|
86
|
+
need `UserMessage` or `UserMessageEdit` as standalone entries.
|
|
87
|
+
|
|
88
|
+
## Package Configuration
|
|
89
|
+
|
|
90
|
+
See [PACKAGE_CHANGES.md](./PACKAGE_CHANGES.md) for details on:
|
|
91
|
+
- Why `sideEffects: ["**/*.css"]` is critical for proper tree-shaking
|
|
92
|
+
- Why the `exports` field has no `"require"` entry
|
|
93
|
+
|
|
33
94
|
## Main Scripts
|
|
34
95
|
|
|
35
96
|
Always prepending yarn:
|
package/dist/..d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import { MenuItemProps } from '@mui/material/MenuItem';
|
|
2
|
+
import { PaperProps } from '@mui/material';
|
|
3
|
+
import { RadioProps } from '@mui/material/Radio';
|
|
1
4
|
import { default as React_2 } from 'react';
|
|
2
5
|
|
|
6
|
+
export declare const Avatar: React_2.FC<AvatarProps>;
|
|
7
|
+
|
|
8
|
+
export declare const AvatarFallback: React_2.FC<AvatarFallbackProps>;
|
|
9
|
+
|
|
10
|
+
declare type AvatarFallbackProps = React_2.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
|
|
12
|
+
export declare const AvatarImage: React_2.FC<AvatarImageProps>;
|
|
13
|
+
|
|
14
|
+
declare type AvatarImageProps = React_2.ImgHTMLAttributes<HTMLImageElement>;
|
|
15
|
+
|
|
16
|
+
declare interface AvatarProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
size?: 'default' | 'sm' | 'lg';
|
|
18
|
+
}
|
|
19
|
+
|
|
3
20
|
export declare const CustomDrawer: React_2.FC<DrawerProps>;
|
|
4
21
|
|
|
5
22
|
declare interface DrawerProps {
|
|
@@ -15,8 +32,37 @@ declare interface DrawerProps {
|
|
|
15
32
|
confirmOnClose?: boolean;
|
|
16
33
|
confirmOnCloseMessage?: string;
|
|
17
34
|
onClose: () => void;
|
|
35
|
+
hideBackdrop?: boolean;
|
|
36
|
+
paperProps?: PaperProps;
|
|
37
|
+
animateSizeChange?: boolean;
|
|
38
|
+
disableEnforceFocus?: boolean;
|
|
39
|
+
elevatedZIndex?: boolean;
|
|
40
|
+
dataTestPrefix?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const DropdownMenu: React_2.FC<DropdownMenuProps> & {
|
|
44
|
+
Item: typeof DropdownMenuItem;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare const DropdownMenuItem: React_2.FC<DropdownMenuItemProps>;
|
|
48
|
+
|
|
49
|
+
declare interface DropdownMenuItemProps extends MenuItemProps {
|
|
50
|
+
children: React_2.ReactNode;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare interface DropdownMenuProps {
|
|
54
|
+
trigger: React_2.ReactNode;
|
|
55
|
+
children: React_2.ReactNode;
|
|
56
|
+
align?: 'start' | 'center' | 'end';
|
|
57
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
58
|
+
className?: string;
|
|
59
|
+
contentClassName?: string;
|
|
18
60
|
}
|
|
19
61
|
|
|
62
|
+
export declare const OutlinedRadio: React_2.FC<OutlinedRadioProps>;
|
|
63
|
+
|
|
64
|
+
declare type OutlinedRadioProps = Omit<RadioProps, 'icon' | 'checkedIcon'>;
|
|
65
|
+
|
|
20
66
|
export declare const Spinner: React_2.FC<SpinnerProps>;
|
|
21
67
|
|
|
22
68
|
declare interface SpinnerProps {
|
package/dist/Accordion.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { AccordionDetailsProps } from '@mui/material/AccordionDetails';
|
|
|
3
3
|
import { AccordionSlotsAndSlotProps } from '@mui/material/Accordion';
|
|
4
4
|
import { AccordionSummaryProps as AccordionSummaryProps_2 } from '@mui/material/AccordionSummary';
|
|
5
5
|
import { CommonProps } from '@mui/material/OverridableComponent';
|
|
6
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
7
6
|
import { MUIStyledCommonProps } from '@mui/system';
|
|
8
7
|
import { PaperOwnProps } from '@mui/material';
|
|
9
8
|
import { default as React_2 } from 'react';
|
|
@@ -22,13 +21,13 @@ export declare const Accordion: StyledComponent<{
|
|
|
22
21
|
onChange?: ((event: React_2.SyntheticEvent<Element, Event>, expanded: boolean) => void) | undefined;
|
|
23
22
|
sx?: SxProps<Theme> | undefined;
|
|
24
23
|
TransitionComponent?: React_2.JSXElementConstructor<TransitionProps & {
|
|
25
|
-
children?: React_2.ReactElement<
|
|
24
|
+
children?: React_2.ReactElement<unknown, any> | undefined;
|
|
26
25
|
}> | undefined;
|
|
27
26
|
TransitionProps?: TransitionProps | undefined;
|
|
28
|
-
} & AccordionSlotsAndSlotProps & Omit<PaperOwnProps, "
|
|
27
|
+
} & AccordionSlotsAndSlotProps & Omit<PaperOwnProps, "onChange" | "classes"> & CommonProps & Omit<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
29
28
|
ref?: ((instance: HTMLDivElement | null) => void) | React_2.RefObject<HTMLDivElement> | null | undefined;
|
|
30
|
-
}, "children" | "
|
|
31
|
-
component?: React_2.ElementType<any> | undefined;
|
|
29
|
+
}, "children" | "onChange" | keyof CommonProps | "disabled" | "sx" | "square" | "elevation" | "expanded" | "TransitionComponent" | "TransitionProps" | "variant" | "disableGutters" | "defaultExpanded" | keyof AccordionSlotsAndSlotProps> & {
|
|
30
|
+
component?: React_2.ElementType<any, keyof React_2.JSX.IntrinsicElements> | undefined;
|
|
32
31
|
} & {
|
|
33
32
|
background?: string | undefined;
|
|
34
33
|
borderColor?: string | undefined;
|
|
@@ -46,13 +45,13 @@ export declare interface AccordionSummaryProps extends AccordionSummaryProps_2 {
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
declare function CustomizedAccordions({ children, btn, id, discription, sx, tools, }: {
|
|
49
|
-
children: React_2.ReactNode |
|
|
50
|
-
btn: React_2.ReactNode |
|
|
48
|
+
children: React_2.ReactNode | JSX.Element | string;
|
|
49
|
+
btn: React_2.ReactNode | JSX.Element | string;
|
|
51
50
|
id: string;
|
|
52
51
|
discription?: string;
|
|
53
52
|
sx?: object;
|
|
54
|
-
tools?: React_2.ReactNode |
|
|
55
|
-
}):
|
|
53
|
+
tools?: React_2.ReactNode | JSX.Element | string;
|
|
54
|
+
}): React_2.JSX.Element;
|
|
56
55
|
export default CustomizedAccordions;
|
|
57
56
|
|
|
58
57
|
export { }
|
package/dist/Alert.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
|
+
import MuiModal from '@mui/material/Modal';
|
|
3
|
+
import { default as React_2 } from 'react';
|
|
4
|
+
import * as React_3 from 'react';
|
|
5
|
+
import { TooltipProps as TooltipProps_2 } from '@mui/material/Tooltip';
|
|
6
|
+
|
|
7
|
+
declare const Alert: React_2.FC<AlertProps>;
|
|
8
|
+
export default Alert;
|
|
9
|
+
|
|
10
|
+
export declare type AlertProps = Omit<ModalProps, 'children'> & {
|
|
11
|
+
title: string;
|
|
12
|
+
message: string | JSX.Element | React_2.ReactNode;
|
|
13
|
+
onConfirm: () => Promise<void>;
|
|
14
|
+
onError?: (e: unknown) => void;
|
|
15
|
+
onCloseAfterConfirm?: () => void;
|
|
16
|
+
confirmButtonText?: string;
|
|
17
|
+
confirmString?: string;
|
|
18
|
+
confirmStringMessage?: string | JSX.Element;
|
|
19
|
+
confirmStringEntity?: string;
|
|
20
|
+
confirmButtonIcon?: ButtonProps['icon'];
|
|
21
|
+
confirmButtonClasses?: string;
|
|
22
|
+
confirmButtonDisabled?: boolean;
|
|
23
|
+
cancelButtonText?: string;
|
|
24
|
+
messageClasses?: string;
|
|
25
|
+
titleClasses?: string;
|
|
26
|
+
hideCancel?: boolean;
|
|
27
|
+
formClasses?: string;
|
|
28
|
+
onClose: (forced: boolean, afterConfirm: boolean) => void;
|
|
29
|
+
dataTestPrefix?: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare interface ButtonProps {
|
|
33
|
+
id?: string;
|
|
34
|
+
icon?: FontAwesomeIconProps['icon'] | string;
|
|
35
|
+
text?: React_2.ReactNode | JSX.Element | string;
|
|
36
|
+
block?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
dataTestId?: string;
|
|
40
|
+
iconToRight?: boolean;
|
|
41
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'destructive';
|
|
42
|
+
size?: ButtonSize;
|
|
43
|
+
onClick?: (e: React_2.MouseEvent<HTMLButtonElement>) => void;
|
|
44
|
+
iconClasses?: string;
|
|
45
|
+
type?: 'submit' | 'reset' | 'button';
|
|
46
|
+
tooltipProps?: TooltipProps;
|
|
47
|
+
iconSize?: number;
|
|
48
|
+
removeIconContainer?: boolean;
|
|
49
|
+
isMenuItem?: boolean;
|
|
50
|
+
useLightTooltip?: boolean;
|
|
51
|
+
className?: string;
|
|
52
|
+
autoFocus?: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare type ButtonSize = 'large' | 'small';
|
|
56
|
+
|
|
57
|
+
declare type CustomTooltipProps = TooltipProps_2 & {
|
|
58
|
+
size?: Sizes;
|
|
59
|
+
border?: boolean;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare interface ModalProps extends React_2.ComponentProps<typeof MuiModal> {
|
|
63
|
+
children: JSX.Element;
|
|
64
|
+
disableEnforceFocus?: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare type Sizes = 'large' | 'variable' | 'medium' | 'fit';
|
|
68
|
+
|
|
69
|
+
declare type TooltipProps = Partial<Pick<CustomTooltipProps, 'title' | 'placement' | 'size'>> & {
|
|
70
|
+
disabledTitle?: React_3.ReactNode;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { }
|
package/dist/Avatar.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Avatar: React_2.FC<AvatarProps>;
|
|
4
|
+
export { Avatar }
|
|
5
|
+
export default Avatar;
|
|
6
|
+
|
|
7
|
+
export declare const AvatarFallback: React_2.FC<AvatarFallbackProps>;
|
|
8
|
+
|
|
9
|
+
export declare type AvatarFallbackProps = React_2.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
|
|
11
|
+
export declare const AvatarImage: React_2.FC<AvatarImageProps>;
|
|
12
|
+
|
|
13
|
+
export declare type AvatarImageProps = React_2.ImgHTMLAttributes<HTMLImageElement>;
|
|
14
|
+
|
|
15
|
+
export declare interface AvatarProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
size?: 'default' | 'sm' | 'lg';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { }
|
package/dist/Badge.d.ts
CHANGED
|
@@ -19,9 +19,10 @@ export declare type BadgeProps = {
|
|
|
19
19
|
iconSize?: number;
|
|
20
20
|
rightIconSize?: number;
|
|
21
21
|
dataTestPrefix?: string;
|
|
22
|
+
isBold?: boolean;
|
|
22
23
|
} & React_2.AllHTMLAttributes<HTMLDivElement> & AtleastOne;
|
|
23
24
|
|
|
24
|
-
declare type BadgeType = 'default' | 'warning' | 'waiting' | 'primary' | 'danger' | 'success' | 'gray' | 'light-gray' | 'white' | 'none';
|
|
25
|
+
declare type BadgeType = 'default' | 'warning' | 'waiting' | 'primary' | 'danger' | 'success' | 'gray' | 'light-gray' | 'white' | 'none' | 'tfy-managed' | 'remote' | 'openapi' | 'virtual' | 'stdio' | 'ai';
|
|
25
26
|
|
|
26
27
|
declare type IconProp = string | IconProp_2;
|
|
27
28
|
|
package/dist/CopyField.d.ts
CHANGED
package/dist/CustomDrawer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PaperProps } from '@mui/material';
|
|
1
2
|
import { default as React_2 } from 'react';
|
|
2
3
|
|
|
3
4
|
declare type ContextType = {
|
|
@@ -12,7 +13,7 @@ export default CustomDrawer;
|
|
|
12
13
|
|
|
13
14
|
export declare const CustomDrawerContext: React_2.Context<ContextType>;
|
|
14
15
|
|
|
15
|
-
declare interface DrawerProps {
|
|
16
|
+
export declare interface DrawerProps {
|
|
16
17
|
children: React_2.ReactNode | JSX.Element | string;
|
|
17
18
|
anchor?: 'right' | 'left' | 'top' | 'bottom' | undefined;
|
|
18
19
|
open: boolean;
|
|
@@ -25,6 +26,12 @@ declare interface DrawerProps {
|
|
|
25
26
|
confirmOnClose?: boolean;
|
|
26
27
|
confirmOnCloseMessage?: string;
|
|
27
28
|
onClose: () => void;
|
|
29
|
+
hideBackdrop?: boolean;
|
|
30
|
+
paperProps?: PaperProps;
|
|
31
|
+
animateSizeChange?: boolean;
|
|
32
|
+
disableEnforceFocus?: boolean;
|
|
33
|
+
elevatedZIndex?: boolean;
|
|
34
|
+
dataTestPrefix?: string;
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
export { }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MenuItemProps } from '@mui/material/MenuItem';
|
|
2
|
+
import { default as React_2 } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const DropdownMenu: React_2.FC<DropdownMenuProps> & {
|
|
5
|
+
Item: typeof DropdownMenuItem;
|
|
6
|
+
};
|
|
7
|
+
export { DropdownMenu }
|
|
8
|
+
export default DropdownMenu;
|
|
9
|
+
|
|
10
|
+
export declare const DropdownMenuItem: React_2.FC<DropdownMenuItemProps>;
|
|
11
|
+
|
|
12
|
+
export declare interface DropdownMenuItemProps extends MenuItemProps {
|
|
13
|
+
children: React_2.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare interface DropdownMenuProps {
|
|
17
|
+
trigger: React_2.ReactNode;
|
|
18
|
+
children: React_2.ReactNode;
|
|
19
|
+
align?: 'start' | 'center' | 'end';
|
|
20
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
21
|
+
className?: string;
|
|
22
|
+
contentClassName?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { }
|
package/dist/IconButton.d.ts
CHANGED
|
@@ -4,12 +4,14 @@ import { default as React_2 } from 'react';
|
|
|
4
4
|
declare const IconButton: React_2.FC<IconButtonProps>;
|
|
5
5
|
export default IconButton;
|
|
6
6
|
|
|
7
|
-
declare interface IconButtonProps {
|
|
7
|
+
export declare interface IconButtonProps {
|
|
8
8
|
icon: string | IconProp;
|
|
9
9
|
onClick?: (e: React_2.MouseEvent) => void;
|
|
10
10
|
iconSize?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
tooltip?:
|
|
12
|
+
tooltip?: React_2.ReactNode;
|
|
13
|
+
disabledTooltip?: React_2.ReactNode;
|
|
14
|
+
className?: string;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export { }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const ImagesPreview: React_2.FC<ImagesPreviewProps>;
|
|
4
|
+
export default ImagesPreview;
|
|
5
|
+
|
|
6
|
+
export declare interface ImagesPreviewProps {
|
|
7
|
+
images: string[];
|
|
8
|
+
/** Override the default image download behavior. */
|
|
9
|
+
onDownloadImage?: (url: string, filename: string) => Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { }
|