tfy-web-components 0.0.21 → 0.0.23

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.
Files changed (101) hide show
  1. package/dist/components/atoms/Accordion.d.ts +10 -18
  2. package/dist/components/atoms/IconProvider.es.js +2 -1
  3. package/dist/components/atoms/IconProvider.es.js.map +1 -1
  4. package/dist/components/atoms/Switch.d.ts +1 -5
  5. package/dist/components/atoms/Tooltip.d.ts +3 -5
  6. package/dist/components/molecules/Markdown/ChatFileDownload.d.ts +17 -0
  7. package/dist/components/molecules/Markdown/ExpandableMarkdown.d.ts +13 -0
  8. package/dist/components/molecules/Markdown/LimitedLinesMarkdown.d.ts +10 -0
  9. package/dist/components/molecules/Markdown/Markdown.d.ts +23 -0
  10. package/dist/components/molecules/Markdown/Markdown.utils.d.ts +8 -0
  11. package/dist/components/molecules/Markdown/MarkdownLazy.d.ts +16 -0
  12. package/dist/components/molecules/Markdown/MarkdownWithOpenUI.d.ts +31 -0
  13. package/dist/components/molecules/Markdown/OpenUiFenceBlock.d.ts +9 -0
  14. package/dist/components/molecules/Markdown/SandboxArtifactsFenceBlock.d.ts +9 -0
  15. package/dist/components/molecules/Markdown/codeFencing.d.ts +50 -0
  16. package/dist/components/molecules/Markdown/components.d.ts +59 -0
  17. package/dist/components/molecules/Markdown/index.d.ts +7 -0
  18. package/dist/components/molecules/Markdown/parseSandboxArtifacts.d.ts +15 -0
  19. package/dist/components/molecules/agent-chat/AgentStepRow.d.ts +28 -0
  20. package/dist/components/molecules/agent-chat/AskUserQuestionCard.d.ts +36 -0
  21. package/dist/components/molecules/agent-chat/AssistantMessage.d.ts +9 -0
  22. package/dist/components/molecules/agent-chat/McpAuthCard.d.ts +16 -0
  23. package/dist/components/molecules/agent-chat/ReasoningCard.d.ts +16 -0
  24. package/dist/components/molecules/agent-chat/SandboxToolCall.d.ts +15 -0
  25. package/dist/components/molecules/agent-chat/StatusDot.d.ts +7 -0
  26. package/dist/components/molecules/agent-chat/StepIconBox.d.ts +11 -0
  27. package/dist/components/molecules/agent-chat/SubAgentCard.d.ts +18 -0
  28. package/dist/components/molecules/agent-chat/ToolApprovalBlock.d.ts +36 -0
  29. package/dist/components/molecules/agent-chat/ToolCallCard.d.ts +25 -0
  30. package/dist/components/molecules/agent-chat/ToolCallContentBlock.d.ts +17 -0
  31. package/dist/components/molecules/agent-chat/UserMessage.es.js +1 -1
  32. package/dist/components/molecules/agent-chat/UserMessage.es.js.map +1 -1
  33. package/dist/components/molecules/agent-chat/index.d.ts +26 -0
  34. package/dist/components/molecules/agent-chat.es.js +317 -252
  35. package/dist/components/molecules/agent-chat.es.js.map +1 -1
  36. package/dist/components/molecules/monacoEditorCore/MonacoEditorCore.d.ts +15 -0
  37. package/dist/components/molecules/monacoEditorCore/useFontReady.d.ts +1 -0
  38. package/dist/contexts/RootFontSizeContext.d.ts +7 -0
  39. package/dist/hooks/useContainerDimensions.d.ts +3 -0
  40. package/dist/index.d.ts +6 -0
  41. package/dist/style.css +1 -1
  42. package/dist/tailwindPreset.d.ts +144 -140
  43. package/dist/types/enum.d.ts +7 -0
  44. package/dist/utils/classNames.d.ts +2 -0
  45. package/dist/utils/conversions.d.ts +1 -0
  46. package/dist/utils/getRootFontSize.d.ts +2 -0
  47. package/dist/utils/index.d.ts +5 -0
  48. package/package.json +1 -1
  49. package/dist/..d.ts +0 -77
  50. package/dist/Accordion.d.ts +0 -57
  51. package/dist/Alert.d.ts +0 -73
  52. package/dist/AudioPlayer.d.ts +0 -10
  53. package/dist/Avatar.d.ts +0 -19
  54. package/dist/Badge.d.ts +0 -47
  55. package/dist/Button.d.ts +0 -64
  56. package/dist/CopyField.d.ts +0 -82
  57. package/dist/CustomDrawer.d.ts +0 -37
  58. package/dist/Dialog.d.ts +0 -18
  59. package/dist/DropdownMenu.d.ts +0 -25
  60. package/dist/IconButton.d.ts +0 -17
  61. package/dist/IconProvider.d.ts +0 -41
  62. package/dist/ImagesPreview.d.ts +0 -12
  63. package/dist/Input.d.ts +0 -27
  64. package/dist/Markdown.d.ts +0 -103
  65. package/dist/Modal.d.ts +0 -12
  66. package/dist/Notification.d.ts +0 -12
  67. package/dist/Notify.d.ts +0 -4
  68. package/dist/OutlinedRadio.d.ts +0 -9
  69. package/dist/SimpleCodeEditor.d.ts +0 -63
  70. package/dist/Skeleton.d.ts +0 -7
  71. package/dist/Spinner.d.ts +0 -15
  72. package/dist/Switch.d.ts +0 -20
  73. package/dist/TabButton.d.ts +0 -20
  74. package/dist/TabPanel.d.ts +0 -14
  75. package/dist/ThumbsFeedback.d.ts +0 -18
  76. package/dist/ToggleButton.d.ts +0 -42
  77. package/dist/Tooltip.d.ts +0 -32
  78. package/dist/UserMessage.d.ts +0 -15
  79. package/dist/UserMessageEdit.d.ts +0 -16
  80. package/dist/agent-chat.d.ts +0 -222
  81. package/dist/animation.d.ts +0 -6
  82. package/dist/backgroundColor.d.ts +0 -5
  83. package/dist/backgroundImage.d.ts +0 -10
  84. package/dist/borderWidth.d.ts +0 -6
  85. package/dist/colors.d.ts +0 -195
  86. package/dist/components/molecules/Markdown.d.ts +0 -1
  87. package/dist/components/molecules/agent-chat.d.ts +0 -1
  88. package/dist/cursor.d.ts +0 -5
  89. package/dist/dropShadow.d.ts +0 -5
  90. package/dist/flexGrow.d.ts +0 -5
  91. package/dist/fontSize.d.ts +0 -8
  92. package/dist/height.d.ts +0 -8
  93. package/dist/keyframes.d.ts +0 -20
  94. package/dist/lightColorPlugin.d.ts +0 -3
  95. package/dist/maxHeight.d.ts +0 -6
  96. package/dist/screens.d.ts +0 -8
  97. package/dist/theme.d.ts +0 -58
  98. package/dist/transitionProperty.d.ts +0 -6
  99. package/dist/useTheme.d.ts +0 -32
  100. package/dist/utils.d.ts +0 -79
  101. package/dist/zIndex.d.ts +0 -5
@@ -1,140 +1,144 @@
1
- export declare const tailwindContentPaths: string[];
2
-
3
- /**
4
- * Tailwind v3 preset for consumers of tfy-web-components.
5
- *
6
- * ── For Tailwind v3 apps ─────────────────────────────────────────────
7
- *
8
- * Spread this preset into your own tailwind.config.js so tfy's colour
9
- * palette, custom scrollbar utilities, and `bg-light-*` / `text-light-*`
10
- * utilities are available without manually redefining them:
11
- *
12
- * import tfyPreset, { tailwindContentPaths } from 'tfy-web-components/tailwind-preset'
13
- *
14
- * export default {
15
- * presets: [tfyPreset],
16
- * content: ['./src/​**​/*.{ts,tsx}', ...tailwindContentPaths],
17
- * }
18
- *
19
- * `tailwindContentPaths` points at this package's compiled `dist/`
20
- * directory so Tailwind scans tfy-web-components' own files for
21
- * utility class usage and generates them in the consumer's build.
22
- *
23
- * ── For Tailwind v4 apps ─────────────────────────────────────────────
24
- *
25
- * You do NOT need this preset. Use the generated CSS entry instead:
26
- *
27
- * @ *
28
- * That gives you the same palette via CSS variables + `@theme inline`
29
- * registrations + `@source` scanning — the Tailwind v4 equivalents
30
- * of everything this preset provides.
31
- *
32
- * ── What this preset provides ────────────────────────────────────────
33
- *
34
- * • `colors` — maps every palette key (e.g. `gray.250`, `indigo.500`)
35
- * to `var(--color-gray-250)` / `var(--color-indigo-500)`, so
36
- * utility classes resolve to the CSS variable rather than a
37
- * hard-coded hex value. The actual hex values are set at runtime by
38
- * `ThemeProvider` / `initializeTheme()` or statically by
39
- * `tokens.css`.
40
- *
41
- * • `createLightColorPlugin` — generates `bg-light-*` / `text-light-*`
42
- * utilities that always resolve to the light-mode palette value
43
- * regardless of the current `.dark` state.
44
- *
45
- * • `scrollbar` — custom scrollbar utilities.
46
- *
47
- * • `fontFamily.lab` — the Lab Grotesque font stack used across the
48
- * TrueFoundry platform UI.
49
- */
50
- declare const tailwindPreset: {
51
- darkMode: string;
52
- theme: {
53
- extend: {
54
- colors: any;
55
- fontFamily: {
56
- lab: string[];
57
- };
58
- fontSize: {
59
- 'base-lg': string;
60
- 'sm-base': string;
61
- '2xs': string;
62
- '3xs': string;
63
- };
64
- screens: {
65
- '2xl': string;
66
- '3xl': string;
67
- '4xl': string;
68
- '5xl': string;
69
- };
70
- borderWidth: {
71
- DEFAULT: string;
72
- 1: string;
73
- };
74
- dropShadow: (theme: (path: string) => string | undefined) => {
75
- xl: string[];
76
- };
77
- backgroundImage: (theme: (path: string) => string | undefined) => {
78
- 'blue-red-gradient': string;
79
- 'white-indigo-gradient': string;
80
- 'chat-template': string;
81
- 'blue-linear-gradient': string;
82
- 'new-deployment-gradient': string;
83
- 'new-deployment-gradient-text': string;
84
- };
85
- backgroundColor: (theme: (path: string) => string | undefined) => {
86
- app: string | undefined;
87
- };
88
- zIndex: {
89
- '-1': string;
90
- };
91
- flexGrow: {
92
- 5: string;
93
- };
94
- height: {
95
- 'screen-50': string;
96
- 'screen-60': string;
97
- 'screen-70': string;
98
- 'screen-75': string;
99
- };
100
- maxHeight: {
101
- 'screen-menu': string;
102
- modal: string;
103
- };
104
- transitionProperty: {
105
- position: string;
106
- textColor: string;
107
- };
108
- keyframes: {
109
- fadeOut: {
110
- from: {
111
- opacity: string;
112
- };
113
- to: {
114
- opacity: string;
115
- };
116
- };
117
- fadeIn: {
118
- from: {
119
- opacity: string;
120
- };
121
- to: {
122
- opacity: string;
123
- };
124
- };
125
- };
126
- animation: {
127
- fadeOut: string;
128
- fadeIn: string;
129
- };
130
- cursor: {
131
- drag: string;
132
- };
133
- };
134
- };
135
- plugins: any[];
136
- };
137
- export default tailwindPreset;
138
- export { tailwindPreset }
139
-
140
- export { }
1
+ import { tailwindContentPaths } from './components/theme';
2
+ /**
3
+ * Tailwind v3 preset for consumers of tfy-web-components.
4
+ *
5
+ * ── For Tailwind v3 apps ─────────────────────────────────────────────
6
+ *
7
+ * Spread this preset into your own tailwind.config.js so tfy's colour
8
+ * palette, custom scrollbar utilities, and `bg-light-*` / `text-light-*`
9
+ * utilities are available without manually redefining them:
10
+ *
11
+ * import tfyPreset, { tailwindContentPaths } from 'tfy-web-components/tailwind-preset'
12
+ *
13
+ * export default {
14
+ * presets: [tfyPreset],
15
+ * content: ['./src/​**​/*.{ts,tsx}', ...tailwindContentPaths],
16
+ * }
17
+ *
18
+ * `tailwindContentPaths` points at this package's compiled `dist/`
19
+ * directory so Tailwind scans tfy-web-components' own files for
20
+ * utility class usage and generates them in the consumer's build.
21
+ *
22
+ * ── For Tailwind v4 apps ─────────────────────────────────────────────
23
+ *
24
+ * You do NOT need this preset. Use the generated CSS entry instead:
25
+ *
26
+ * @ *
27
+ * That gives you the same palette via CSS variables + `@theme inline`
28
+ * registrations + `@source` scanning — the Tailwind v4 equivalents
29
+ * of everything this preset provides.
30
+ *
31
+ * ── What this preset provides ────────────────────────────────────────
32
+ *
33
+ * • `colors` — maps every palette key (e.g. `gray.250`, `indigo.500`)
34
+ * to `var(--color-gray-250)` / `var(--color-indigo-500)`, so
35
+ * utility classes resolve to the CSS variable rather than a
36
+ * hard-coded hex value. The actual hex values are set at runtime by
37
+ * `ThemeProvider` / `initializeTheme()` or statically by
38
+ * `tokens.css`.
39
+ *
40
+ * • `createLightColorPlugin` — generates `bg-light-*` / `text-light-*`
41
+ * utilities that always resolve to the light-mode palette value
42
+ * regardless of the current `.dark` state.
43
+ *
44
+ * • `scrollbar` — custom scrollbar utilities.
45
+ *
46
+ * • `fontFamily.lab` — the Lab Grotesque font stack used across the
47
+ * TrueFoundry platform UI.
48
+ */
49
+ export declare const tailwindPreset: {
50
+ darkMode: string;
51
+ theme: {
52
+ extend: {
53
+ colors: any;
54
+ fontFamily: {
55
+ lab: string[];
56
+ };
57
+ fontSize: {
58
+ 'base-lg': string;
59
+ 'sm-base': string;
60
+ '2xs': string;
61
+ '3xs': string;
62
+ };
63
+ screens: {
64
+ '2xl': string;
65
+ '3xl': string;
66
+ '4xl': string;
67
+ '5xl': string;
68
+ };
69
+ borderWidth: {
70
+ DEFAULT: string;
71
+ 1: string;
72
+ };
73
+ dropShadow: (theme: (path: string) => string | undefined) => {
74
+ xl: string[];
75
+ };
76
+ backgroundImage: (theme: (path: string) => string | undefined) => {
77
+ 'blue-red-gradient': string;
78
+ 'white-indigo-gradient': string;
79
+ 'chat-template': string;
80
+ 'blue-linear-gradient': string;
81
+ 'new-deployment-gradient': string;
82
+ 'new-deployment-gradient-text': string;
83
+ };
84
+ backgroundColor: (theme: (path: string) => string | undefined) => {
85
+ app: string | undefined;
86
+ };
87
+ zIndex: {
88
+ '-1': string;
89
+ };
90
+ flexGrow: {
91
+ 5: string;
92
+ };
93
+ height: {
94
+ 'screen-50': string;
95
+ 'screen-60': string;
96
+ 'screen-70': string;
97
+ 'screen-75': string;
98
+ };
99
+ maxHeight: {
100
+ 'screen-menu': string;
101
+ modal: string;
102
+ };
103
+ transitionProperty: {
104
+ position: string;
105
+ textColor: string;
106
+ };
107
+ keyframes: {
108
+ fadeOut: {
109
+ from: {
110
+ opacity: string;
111
+ };
112
+ to: {
113
+ opacity: string;
114
+ };
115
+ };
116
+ fadeIn: {
117
+ from: {
118
+ opacity: string;
119
+ };
120
+ to: {
121
+ opacity: string;
122
+ };
123
+ };
124
+ };
125
+ animation: {
126
+ fadeOut: string;
127
+ fadeIn: string;
128
+ };
129
+ cursor: {
130
+ drag: string;
131
+ };
132
+ };
133
+ };
134
+ plugins: any[];
135
+ };
136
+ /**
137
+ * Content paths pointing at this package's compiled output. Spread
138
+ * these into your Tailwind config's `content` array so the build scans
139
+ * tfy-web-components' components for utility class usage:
140
+ *
141
+ * content: ['./src/​**​/*.{ts,tsx}', ...tailwindContentPaths],
142
+ */
143
+ export { tailwindContentPaths };
144
+ export default tailwindPreset;
@@ -0,0 +1,7 @@
1
+ export declare enum InfoType {
2
+ SUCCESS = "success",
3
+ ERROR = "error",
4
+ WARNING = "warning",
5
+ DEFAULT = "default",
6
+ DESCRIPTION = "description"
7
+ }
@@ -0,0 +1,2 @@
1
+ import { Argument } from 'classnames';
2
+ export default function classNames(...args: Argument[]): string;
@@ -0,0 +1 @@
1
+ export declare const toDataTestId: (testId?: string, prefix?: string) => string | undefined;
@@ -0,0 +1,2 @@
1
+ declare const getRootFontSize: () => number;
2
+ export default getRootFontSize;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export { default as Spinner } from '../components/atoms/Spinner';
3
+ export { default as CustomDrawer } from '../components/molecules/CustomDrawer';
4
+ export declare function downloadTextFile(content: string, name?: string): void;
5
+ export declare const mergeRefs: <T>(...refs: React.Ref<T>[]) => React.Ref<T>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "tfy-web-components",
4
- "version": "0.0.21",
4
+ "version": "0.0.23",
5
5
  "description": "Truefoundry web components",
6
6
  "author": "Truefoundry",
7
7
  "license": "ISC",
package/dist/..d.ts DELETED
@@ -1,77 +0,0 @@
1
- import { MenuItemProps } from '@mui/material/MenuItem';
2
- import { PaperProps } from '@mui/material';
3
- import { RadioProps } from '@mui/material/Radio';
4
- import { default as React_2 } from 'react';
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
-
20
- export declare const CustomDrawer: React_2.FC<DrawerProps>;
21
-
22
- declare interface DrawerProps {
23
- children: React_2.ReactNode | JSX.Element | string;
24
- anchor?: 'right' | 'left' | 'top' | 'bottom' | undefined;
25
- open: boolean;
26
- inner?: boolean;
27
- size?: 'small' | 'medium' | 'large' | 'xlarge';
28
- width?: string;
29
- bodyClassName?: string;
30
- className?: string;
31
- overflowY?: boolean;
32
- confirmOnClose?: boolean;
33
- confirmOnCloseMessage?: string;
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;
60
- }
61
-
62
- export declare const OutlinedRadio: React_2.FC<OutlinedRadioProps>;
63
-
64
- declare type OutlinedRadioProps = Omit<RadioProps, 'icon' | 'checkedIcon'>;
65
-
66
- export declare const Spinner: React_2.FC<SpinnerProps>;
67
-
68
- declare interface SpinnerProps {
69
- className?: string;
70
- small?: boolean;
71
- big?: boolean;
72
- medium?: boolean;
73
- center?: boolean;
74
- type?: 'normal';
75
- }
76
-
77
- export { }
@@ -1,57 +0,0 @@
1
- import { AccordionClasses } from '@mui/material/Accordion';
2
- import { AccordionDetailsProps } from '@mui/material/AccordionDetails';
3
- import { AccordionSlotsAndSlotProps } from '@mui/material/Accordion';
4
- import { AccordionSummaryProps as AccordionSummaryProps_2 } from '@mui/material/AccordionSummary';
5
- import { CommonProps } from '@mui/material/OverridableComponent';
6
- import { MUIStyledCommonProps } from '@mui/system';
7
- import { PaperOwnProps } from '@mui/material';
8
- import { default as React_2 } from 'react';
9
- import { StyledComponent } from '@emotion/styled';
10
- import { SxProps } from '@mui/material/styles';
11
- import { Theme } from '@mui/material/styles';
12
- import { TransitionProps } from '@mui/material/transitions';
13
-
14
- export declare const Accordion: StyledComponent<{
15
- children: NonNullable<React_2.ReactNode>;
16
- classes?: Partial<AccordionClasses> | undefined;
17
- defaultExpanded?: boolean | undefined;
18
- disabled?: boolean | undefined;
19
- disableGutters?: boolean | undefined;
20
- expanded?: boolean | undefined;
21
- onChange?: ((event: React_2.SyntheticEvent<Element, Event>, expanded: boolean) => void) | undefined;
22
- sx?: SxProps<Theme> | undefined;
23
- TransitionComponent?: React_2.JSXElementConstructor<TransitionProps & {
24
- children?: React_2.ReactElement<unknown, any> | undefined;
25
- }> | undefined;
26
- TransitionProps?: TransitionProps | undefined;
27
- } & AccordionSlotsAndSlotProps & Omit<PaperOwnProps, "onChange" | "classes"> & CommonProps & Omit<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
- ref?: ((instance: HTMLDivElement | null) => void) | React_2.RefObject<HTMLDivElement> | null | 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;
31
- } & {
32
- background?: string | undefined;
33
- borderColor?: string | undefined;
34
- } & MUIStyledCommonProps<Theme>, {}, {}>;
35
-
36
- export declare const AccordionDetails: StyledComponent<AccordionDetailsProps & MUIStyledCommonProps<Theme>, {}, {}>;
37
-
38
- export declare const AccordionSummary: StyledComponent<AccordionSummaryProps & MUIStyledCommonProps<Theme>, {}, {}>;
39
-
40
- export declare interface AccordionSummaryProps extends AccordionSummaryProps_2 {
41
- hideIcon?: boolean;
42
- chevronDown?: boolean;
43
- rightIcon?: boolean;
44
- iconClasses?: string;
45
- }
46
-
47
- declare function CustomizedAccordions({ children, btn, id, discription, sx, tools, }: {
48
- children: React_2.ReactNode | JSX.Element | string;
49
- btn: React_2.ReactNode | JSX.Element | string;
50
- id: string;
51
- discription?: string;
52
- sx?: object;
53
- tools?: React_2.ReactNode | JSX.Element | string;
54
- }): React_2.JSX.Element;
55
- export default CustomizedAccordions;
56
-
57
- export { }
package/dist/Alert.d.ts DELETED
@@ -1,73 +0,0 @@
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 { }
@@ -1,10 +0,0 @@
1
- import { default as React_2 } from 'react';
2
-
3
- declare const AudioPlayer: React_2.FC<AudioPlayerProps>;
4
- export default AudioPlayer;
5
-
6
- export declare interface AudioPlayerProps {
7
- data: string;
8
- }
9
-
10
- export { }
package/dist/Avatar.d.ts DELETED
@@ -1,19 +0,0 @@
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 DELETED
@@ -1,47 +0,0 @@
1
- import { IconProp as IconProp_2 } from '@fortawesome/fontawesome-svg-core';
2
- import { default as React_2 } from 'react';
3
-
4
- declare type AtleastOne = IconRequired | RightIconRequired | TextRequired;
5
-
6
- declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
7
- export default Badge;
8
-
9
- export declare type BadgeProps = {
10
- className?: string;
11
- iconClasses?: string;
12
- rightIconClasses?: string;
13
- textClasses?: string;
14
- type?: BadgeType;
15
- iconColor?: string;
16
- rightIconColor?: string;
17
- customPadding?: string;
18
- onClick?: () => void;
19
- iconSize?: number;
20
- rightIconSize?: number;
21
- dataTestPrefix?: string;
22
- isBold?: boolean;
23
- } & React_2.AllHTMLAttributes<HTMLDivElement> & AtleastOne;
24
-
25
- declare type BadgeType = 'default' | 'warning' | 'waiting' | 'primary' | 'danger' | 'success' | 'gray' | 'light-gray' | 'white' | 'none' | 'tfy-managed' | 'remote' | 'openapi' | 'virtual' | 'stdio' | 'ai';
26
-
27
- declare type IconProp = string | IconProp_2;
28
-
29
- declare interface IconRequired {
30
- icon: IconProp;
31
- rightIcon?: IconProp;
32
- text?: React_2.ReactNode | JSX.Element | string;
33
- }
34
-
35
- declare interface RightIconRequired {
36
- icon?: IconProp;
37
- rightIcon: IconProp;
38
- text?: React_2.ReactNode | JSX.Element | string;
39
- }
40
-
41
- declare interface TextRequired {
42
- icon?: IconProp;
43
- rightIcon?: IconProp;
44
- text: React_2.ReactNode | JSX.Element | string;
45
- }
46
-
47
- export { }