@juspay/blend-design-system 0.0.23 → 0.0.24
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/assets/main.css +1 -1
- package/dist/components/Avatar/StyledAvatar.d.ts +0 -7
- package/dist/components/Avatar/avatar.tokens.d.ts +6 -4
- package/dist/components/Avatar/avatarUtils.d.ts +7 -0
- package/dist/components/Avatar/types.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/ButtonBase.d.ts +11 -0
- package/dist/components/Button/types.d.ts +4 -0
- package/dist/components/Card/utils.d.ts +0 -1
- package/dist/components/ChatInput/ChatInput.d.ts +23 -2
- package/dist/components/ChatInput/types.d.ts +3 -4
- package/dist/components/ChatInput/utils.d.ts +0 -4
- package/dist/components/CodeBlock/types.d.ts +4 -0
- package/dist/components/CodeBlock/utils.d.ts +7 -2
- package/dist/components/CodeEditor/CodeEditor.d.ts +3 -0
- package/dist/components/CodeEditor/CodeEditorHeader.d.ts +13 -0
- package/dist/components/CodeEditor/MonacoEditorWrapper.d.ts +18 -0
- package/dist/components/CodeEditor/index.d.ts +2 -0
- package/dist/components/CodeEditor/types.d.ts +27 -0
- package/dist/components/CodeEditor/utils.d.ts +9 -0
- package/dist/components/Inputs/MultiValueInput/MultiValueInput.d.ts +1 -1
- package/dist/components/Inputs/MultiValueInput/types.d.ts +3 -1
- package/dist/components/Skeleton/SkeletonCompound.d.ts +0 -15
- package/dist/components/Skeleton/hooks/useSkeletonBase.d.ts +0 -4
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/Skeleton/types.d.ts +0 -12
- package/dist/components/Skeleton/utils.d.ts +18 -0
- package/dist/components/Snackbar/Snackbar.d.ts +6 -3
- package/dist/components/Snackbar/types.d.ts +9 -0
- package/dist/components/Tags/Tag.d.ts +15 -0
- package/dist/components/Tags/TagBase.d.ts +20 -0
- package/dist/components/Tags/index.d.ts +1 -1
- package/dist/components/Tags/types.d.ts +7 -2
- package/dist/components/WorkflowCanvas/index.d.ts +1 -0
- package/dist/components/WorkflowCanvas/types.d.ts +5 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +22477 -20960
- package/package.json +3 -1
- package/dist/components/Skeleton/SkeletonButton.d.ts +0 -13
- package/dist/components/Tags/Tags.d.ts +0 -3
package/dist/assets/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{display:none}.drawer-content>.drawer-body:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}[data-vaul-drawer-direction=top] .drawer-content>.drawer-body:last-child{border-top-left-radius:inherit;border-top-right-radius:inherit}[data-vaul-drawer-direction=left] .drawer-content>.drawer-body:last-child{border-bottom-left-radius:inherit}[data-vaul-drawer-direction=right] .drawer-content>.drawer-body:last-child{border-bottom-right-radius:inherit}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.blend-workflow-canvas .react-flow__node{cursor:pointer;padding:0;border:none;background:transparent;border-radius:0;box-shadow:none}.blend-workflow-canvas .react-flow__node:hover,.blend-workflow-canvas .react-flow__node.selected,.blend-workflow-canvas .react-flow__node.selectable:hover{padding:0;border:none;background:transparent;box-shadow:none}.blend-workflow-canvas .react-flow__edge{cursor:pointer}.blend-workflow-canvas .react-flow__attribution{display:none}
|
|
1
|
+
[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{display:none}.drawer-content>.drawer-body:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}[data-vaul-drawer-direction=top] .drawer-content>.drawer-body:last-child{border-top-left-radius:inherit;border-top-right-radius:inherit}[data-vaul-drawer-direction=left] .drawer-content>.drawer-body:last-child{border-bottom-left-radius:inherit}[data-vaul-drawer-direction=right] .drawer-content>.drawer-body:last-child{border-bottom-right-radius:inherit}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.blend-workflow-canvas .react-flow__node{cursor:pointer;padding:0;border:none;background:transparent;border-radius:0;box-shadow:none}.blend-workflow-canvas .react-flow__node:hover,.blend-workflow-canvas .react-flow__node.selected,.blend-workflow-canvas .react-flow__node.selectable:hover{padding:0;border:none;background:transparent;box-shadow:none}.blend-workflow-canvas .react-flow__edge{cursor:pointer}.blend-workflow-canvas .react-flow__attribution{display:none}@keyframes dashdraw{0%{stroke-dashoffset:10}to{stroke-dashoffset:0}}.blend-workflow-canvas .react-flow__handle{transition:all .2s ease}.blend-workflow-canvas .react-flow__handle:hover{transform:scale(1.3);box-shadow:0 0 8px #0000004d}.blend-workflow-canvas .react-flow__handle-connecting{transform:scale(1.4);box-shadow:0 0 12px #3b82f680}.blend-workflow-canvas .react-flow__handle-valid{background:#22c55e!important;box-shadow:0 0 12px #22c55e80}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import { StyledAvatarContainerProps, StyledAvatarIndicatorProps } from './types';
|
|
2
|
-
export declare const StyledAvatarContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledAvatarContainerProps>> & string;
|
|
3
1
|
export declare const StyledAvatarImage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
4
|
-
export declare const StyledAvatarFallback: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
export declare const StyledAvatarIndicator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledAvatarIndicatorProps>> & string;
|
|
6
|
-
export declare const StyledAvatarWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
-
export declare const StyledAvatarLeadingSlot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
-
export declare const StyledAvatarTrailingSlot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -11,7 +11,7 @@ export type AvatarVariant = 'withImage' | 'withoutImage';
|
|
|
11
11
|
*
|
|
12
12
|
* Structure:
|
|
13
13
|
* - gap: Spacing between avatar and slots
|
|
14
|
-
* -
|
|
14
|
+
* - avatar: Main avatar container properties
|
|
15
15
|
* - text: Fallback text styling
|
|
16
16
|
* - indicator: Online status indicator
|
|
17
17
|
* - slot: Leading and trailing slot styling
|
|
@@ -55,9 +55,11 @@ export type AvatarTokensType = {
|
|
|
55
55
|
[key in AvatarState]: CSSObject['backgroundColor'];
|
|
56
56
|
};
|
|
57
57
|
border: {
|
|
58
|
-
[key in
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
[key in AvatarSize]: {
|
|
59
|
+
[key in AvatarState]: {
|
|
60
|
+
color: CSSObject['borderColor'];
|
|
61
|
+
width: CSSObject['borderWidth'];
|
|
62
|
+
};
|
|
61
63
|
};
|
|
62
64
|
};
|
|
63
65
|
size: {
|
|
@@ -5,3 +5,10 @@ export declare const hexToRgb: (hex: string) => {
|
|
|
5
5
|
g: number;
|
|
6
6
|
b: number;
|
|
7
7
|
} | null;
|
|
8
|
+
/**
|
|
9
|
+
* Get a consistent color for an avatar based on the full name/text
|
|
10
|
+
* Uses hash of the entire text to ensure unique colors for different names
|
|
11
|
+
* @param text - The text to generate color from (e.g., name or alt text)
|
|
12
|
+
* @returns A hex color code
|
|
13
|
+
*/
|
|
14
|
+
export declare const getColorFromText: (text: string) => string;
|
|
@@ -9,8 +9,11 @@ declare const Button: import('react').ForwardRefExoticComponent<{
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onClick?: () => void;
|
|
11
11
|
loading?: boolean;
|
|
12
|
+
showSkeleton?: boolean;
|
|
13
|
+
skeletonVariant?: import('../Skeleton').SkeletonVariant;
|
|
12
14
|
buttonGroupPosition?: "center" | "left" | "right";
|
|
13
15
|
fullWidth?: boolean;
|
|
16
|
+
width?: string | number;
|
|
14
17
|
justifyContent?: import('styled-components').CSSObject["justifyContent"];
|
|
15
18
|
state?: ButtonState;
|
|
16
19
|
} & Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "style" | "className"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from './types';
|
|
2
|
+
import { ButtonTokensType } from './button.tokens';
|
|
3
|
+
export type ButtonBaseProps = Omit<ButtonProps, 'showSkeleton' | 'skeletonVariant'> & {
|
|
4
|
+
isSkeleton?: boolean;
|
|
5
|
+
tokens?: ButtonTokensType;
|
|
6
|
+
};
|
|
7
|
+
declare const ButtonBase: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "showSkeleton" | "skeletonVariant"> & {
|
|
8
|
+
isSkeleton?: boolean;
|
|
9
|
+
tokens?: ButtonTokensType;
|
|
10
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export default ButtonBase;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CSSObject } from 'styled-components';
|
|
3
|
+
import { SkeletonVariant } from '../Skeleton/skeleton.tokens';
|
|
3
4
|
export declare enum ButtonType {
|
|
4
5
|
PRIMARY = "primary",
|
|
5
6
|
SECONDARY = "secondary",
|
|
@@ -32,8 +33,11 @@ export type ButtonProps = {
|
|
|
32
33
|
disabled?: boolean;
|
|
33
34
|
onClick?: () => void;
|
|
34
35
|
loading?: boolean;
|
|
36
|
+
showSkeleton?: boolean;
|
|
37
|
+
skeletonVariant?: SkeletonVariant;
|
|
35
38
|
buttonGroupPosition?: 'center' | 'left' | 'right';
|
|
36
39
|
fullWidth?: boolean;
|
|
40
|
+
width?: string | number;
|
|
37
41
|
justifyContent?: CSSObject['justifyContent'];
|
|
38
42
|
state?: ButtonState;
|
|
39
43
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style' | 'className'>;
|
|
@@ -73,7 +73,6 @@ export declare const getBodySlot2MarginBottom: (hasActionButton: boolean, _isInl
|
|
|
73
73
|
/**
|
|
74
74
|
* Gets custom card styles (simple wrapper with padding)
|
|
75
75
|
*/
|
|
76
|
-
export declare const getCustomCardStyles: (cardToken: CardTokenType) => React.CSSProperties;
|
|
77
76
|
/**
|
|
78
77
|
* Determines if action button is inline type
|
|
79
78
|
* Center-aligned cards use regular buttons, non-center-aligned use inline buttons
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AttachedFile, TopQuery } from './types';
|
|
3
3
|
export declare const getDocIcon: (fileType: AttachedFile["type"]) => React.ReactNode;
|
|
4
|
-
declare const ChatInput: React.ForwardRefExoticComponent<
|
|
4
|
+
declare const ChatInput: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange"> & {
|
|
5
|
+
value?: string;
|
|
6
|
+
slot1?: React.ReactNode;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
onSend?: (message: string, files: AttachedFile[]) => void;
|
|
9
|
+
onAttachFiles?: (files: File[]) => void;
|
|
10
|
+
onVoiceRecord?: () => void;
|
|
11
|
+
onFileRemove?: (fileId: string) => void;
|
|
12
|
+
onFileClick?: (file: AttachedFile) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
maxLength?: number;
|
|
16
|
+
autoResize?: boolean;
|
|
17
|
+
attachedFiles?: AttachedFile[];
|
|
18
|
+
topQueries?: TopQuery[];
|
|
19
|
+
onTopQuerySelect?: (query: TopQuery) => void;
|
|
20
|
+
topQueriesMaxHeight?: number;
|
|
21
|
+
attachButtonIcon?: React.ReactNode;
|
|
22
|
+
voiceButtonIcon?: React.ReactNode;
|
|
23
|
+
sendButtonIcon?: React.ReactNode;
|
|
24
|
+
overflowMenuProps?: Partial<import('../Menu').MenuProps>;
|
|
25
|
+
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
26
|
export default ChatInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { MenuProps } from '../Menu/types';
|
|
3
3
|
export type AttachedFile = {
|
|
4
4
|
id: string;
|
|
@@ -12,8 +12,9 @@ export type TopQuery = {
|
|
|
12
12
|
id: string;
|
|
13
13
|
text: string;
|
|
14
14
|
};
|
|
15
|
-
export type ChatInputProps = {
|
|
15
|
+
export type ChatInputProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'value'> & {
|
|
16
16
|
value?: string;
|
|
17
|
+
slot1?: ReactNode;
|
|
17
18
|
onChange?: (value: string) => void;
|
|
18
19
|
onSend?: (message: string, files: AttachedFile[]) => void;
|
|
19
20
|
onAttachFiles?: (files: File[]) => void;
|
|
@@ -32,8 +33,6 @@ export type ChatInputProps = {
|
|
|
32
33
|
voiceButtonIcon?: ReactNode;
|
|
33
34
|
sendButtonIcon?: ReactNode;
|
|
34
35
|
overflowMenuProps?: Partial<MenuProps>;
|
|
35
|
-
'aria-label'?: string;
|
|
36
|
-
'aria-describedby'?: string;
|
|
37
36
|
};
|
|
38
37
|
export type ChatInputTokens = {
|
|
39
38
|
container: {
|
|
@@ -12,10 +12,6 @@ export declare const createOverflowMenuItems: (hiddenFiles: AttachedFile[], onFi
|
|
|
12
12
|
* Handle textarea auto-resize functionality
|
|
13
13
|
*/
|
|
14
14
|
export declare const handleAutoResize: (element: HTMLTextAreaElement | null, autoResize: boolean) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Check if Enter key should trigger send
|
|
17
|
-
*/
|
|
18
|
-
export declare const shouldSendOnEnter: (key: string, shiftKey: boolean, metaKey: boolean, ctrlKey: boolean) => boolean;
|
|
19
15
|
/**
|
|
20
16
|
* Validate message length against maxLength
|
|
21
17
|
*/
|
|
@@ -13,6 +13,7 @@ export interface DiffLine {
|
|
|
13
13
|
content: string;
|
|
14
14
|
type: DiffLineType;
|
|
15
15
|
}
|
|
16
|
+
export type SupportedLanguage = 'javascript' | 'typescript' | 'jsx' | 'tsx' | 'json' | 'css' | 'html' | 'markdown' | 'yaml' | 'python' | 'rust' | 'haskell';
|
|
16
17
|
export type CodeBlockProps = {
|
|
17
18
|
code: string;
|
|
18
19
|
variant?: CodeBlockVariant;
|
|
@@ -22,4 +23,7 @@ export type CodeBlockProps = {
|
|
|
22
23
|
headerLeftSlot?: ReactNode;
|
|
23
24
|
headerRightSlot?: ReactNode;
|
|
24
25
|
diffLines?: DiffLine[];
|
|
26
|
+
showCopyButton?: boolean;
|
|
27
|
+
autoFormat?: boolean;
|
|
28
|
+
language?: SupportedLanguage;
|
|
25
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CodeBlockTokenType } from './codeBlock.token';
|
|
2
|
-
import { DiffLineType, DiffLine } from './types';
|
|
2
|
+
import { DiffLineType, DiffLine, SupportedLanguage } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Token interface for syntax highlighting
|
|
5
5
|
*/
|
|
@@ -7,11 +7,16 @@ export interface SyntaxToken {
|
|
|
7
7
|
type: string;
|
|
8
8
|
value: string;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Formats code using Prettier (with fallback for unsupported languages)
|
|
12
|
+
* This is a simplified formatter that handles basic indentation and spacing
|
|
13
|
+
*/
|
|
14
|
+
export declare const formatCode: (code: string, language?: SupportedLanguage) => string;
|
|
10
15
|
/**
|
|
11
16
|
* Tokenizes a line of code for syntax highlighting
|
|
12
17
|
* Supports multiple languages: JavaScript/TypeScript, Python, Rust, Haskell
|
|
13
18
|
*/
|
|
14
|
-
export declare const tokenizeLine: (line: string) => SyntaxToken[];
|
|
19
|
+
export declare const tokenizeLine: (line: string, language?: string) => SyntaxToken[];
|
|
15
20
|
/**
|
|
16
21
|
* Gets the color for a token type based on syntax highlighting rules
|
|
17
22
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CodeBlockTokenType } from '../CodeBlock/codeBlock.token';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type CodeEditorHeaderProps = {
|
|
4
|
+
header: string;
|
|
5
|
+
headerLeftSlot?: ReactNode;
|
|
6
|
+
headerRightSlot?: ReactNode;
|
|
7
|
+
showCopyButton: boolean;
|
|
8
|
+
isCopied: boolean;
|
|
9
|
+
onCopy: () => void;
|
|
10
|
+
tokens: CodeBlockTokenType;
|
|
11
|
+
};
|
|
12
|
+
export declare const CodeEditorHeader: ({ header, headerLeftSlot, headerRightSlot, showCopyButton, isCopied, onCopy, tokens, }: CodeEditorHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CodeBlockTokenType } from '../CodeBlock/codeBlock.token';
|
|
2
|
+
type MonacoEditorWrapperProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
language: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
showLineNumbers: boolean;
|
|
10
|
+
minHeight: string | number;
|
|
11
|
+
maxHeight?: string | number;
|
|
12
|
+
height?: string | number;
|
|
13
|
+
tokens: CodeBlockTokenType;
|
|
14
|
+
onFocus?: () => void;
|
|
15
|
+
onBlur?: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const MonacoEditorWrapper: ({ value, language, onChange, readOnly, disabled, placeholder, showLineNumbers, minHeight, maxHeight, height, tokens, onFocus, onBlur, }: MonacoEditorWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SupportedLanguage } from '../CodeBlock/types';
|
|
3
|
+
export declare enum CodeEditorVariant {
|
|
4
|
+
DEFAULT = "default",
|
|
5
|
+
NO_GUTTER = "no-gutter"
|
|
6
|
+
}
|
|
7
|
+
export type CodeEditorProps = {
|
|
8
|
+
value: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
variant?: CodeEditorVariant;
|
|
11
|
+
showLineNumbers?: boolean;
|
|
12
|
+
showHeader?: boolean;
|
|
13
|
+
header?: string;
|
|
14
|
+
headerLeftSlot?: ReactNode;
|
|
15
|
+
headerRightSlot?: ReactNode;
|
|
16
|
+
showCopyButton?: boolean;
|
|
17
|
+
language?: SupportedLanguage;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
minHeight?: string | number;
|
|
22
|
+
maxHeight?: string | number;
|
|
23
|
+
height?: string | number;
|
|
24
|
+
className?: string;
|
|
25
|
+
onBlur?: () => void;
|
|
26
|
+
onFocus?: () => void;
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CodeEditorVariant } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Determines if line numbers should be shown
|
|
4
|
+
*/
|
|
5
|
+
export declare const shouldShowLineNumbers: (showLineNumbers: boolean | undefined, variant: CodeEditorVariant) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Calculates container styles with min/max height
|
|
8
|
+
*/
|
|
9
|
+
export declare const getContainerStyles: (minHeight?: string | number, maxHeight?: string | number) => React.CSSProperties;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MultiValueInputProps } from './types';
|
|
2
|
-
declare const MultiValueInput: ({ label, sublabel, disabled, required, error, errorMessage, hintText, tags, onTagAdd, onTagRemove, size, ...rest }: MultiValueInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MultiValueInput: ({ value, label, sublabel, disabled, required, error, errorMessage, hintText, tags, onTagAdd, onTagRemove, onChange, size, ...rest }: MultiValueInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MultiValueInput;
|
|
@@ -12,6 +12,7 @@ export declare enum MultiValueInputState {
|
|
|
12
12
|
DISABLED = "disabled"
|
|
13
13
|
}
|
|
14
14
|
export type MultiValueInputProps = {
|
|
15
|
+
value?: string;
|
|
15
16
|
label?: string;
|
|
16
17
|
sublabel?: string;
|
|
17
18
|
helpIconHintText?: string;
|
|
@@ -22,5 +23,6 @@ export type MultiValueInputProps = {
|
|
|
22
23
|
tags?: string[];
|
|
23
24
|
onTagAdd?: (tag: string) => void;
|
|
24
25
|
onTagRemove?: (tag: string) => void;
|
|
26
|
+
onChange?: (value: string) => void;
|
|
25
27
|
size?: TextInputSize;
|
|
26
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className'>;
|
|
28
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onChange' | 'value'>;
|
|
@@ -6,7 +6,6 @@ import { SkeletonProps } from './types';
|
|
|
6
6
|
* <Skeleton loading={true}>
|
|
7
7
|
* <Skeleton.Avatar size="md" />
|
|
8
8
|
* <Skeleton.Text lines={2} />
|
|
9
|
-
* <Skeleton.Button />
|
|
10
9
|
* </Skeleton>
|
|
11
10
|
*
|
|
12
11
|
* Or traditional:
|
|
@@ -26,20 +25,6 @@ declare const SkeletonCompound: import('react').ForwardRefExoticComponent<import
|
|
|
26
25
|
size?: import('./types').SkeletonSize;
|
|
27
26
|
shape?: "circle" | "square";
|
|
28
27
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
|
-
/**
|
|
30
|
-
* Button skeleton with perfect token mirroring and dynamic sizing
|
|
31
|
-
*/
|
|
32
|
-
Button: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
|
|
33
|
-
buttonType?: import('../Button').ButtonType;
|
|
34
|
-
size?: import('../Button').ButtonSize;
|
|
35
|
-
subType?: import('../Button').ButtonSubType;
|
|
36
|
-
width?: string | number;
|
|
37
|
-
fullWidth?: boolean;
|
|
38
|
-
buttonGroupPosition?: "center" | "left" | "right";
|
|
39
|
-
text?: string;
|
|
40
|
-
hasLeadingIcon?: boolean;
|
|
41
|
-
hasTrailingIcon?: boolean;
|
|
42
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
43
28
|
/**
|
|
44
29
|
* Card skeleton with default layout or custom children
|
|
45
30
|
*/
|
|
@@ -15,7 +15,3 @@ export declare const useSkeletonBase: (loading: boolean, children?: ReactNode) =
|
|
|
15
15
|
tokens: SkeletonTokensType;
|
|
16
16
|
prefersReducedMotion: boolean;
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* Common skeleton component props validation and defaults
|
|
20
|
-
*/
|
|
21
|
-
export declare const useSkeletonDefaults: <T extends Record<string, unknown>>(props: T, defaults: Partial<T>) => T;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default as Skeleton } from './SkeletonCompound';
|
|
2
2
|
export { default as SkeletonBase } from './Skeleton';
|
|
3
3
|
export { default as SkeletonAvatar } from './SkeletonAvatar';
|
|
4
|
-
export { default as SkeletonButton } from './SkeletonButton';
|
|
5
4
|
export { default as SkeletonCard } from './SkeletonCard';
|
|
6
5
|
export { useSkeletonBase } from './hooks/useSkeletonBase';
|
|
7
|
-
export
|
|
6
|
+
export { getSkeletonState, mergeSkeletonProps, getSkeletonDefaults, } from './utils';
|
|
7
|
+
export type { SkeletonProps, SkeletonAvatarProps, SkeletonCardProps, SkeletonSize, BaseSkeletonProps, SkeletonVariant, SkeletonShape, } from './types';
|
|
8
8
|
export type { SkeletonTokensType, ResponsiveSkeletonTokens, } from './skeleton.tokens';
|
|
9
9
|
export { getSkeletonTokens } from './skeleton.tokens';
|
|
10
10
|
export { default } from './SkeletonCompound';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { BlockProps } from '../Primitives/Block/Block';
|
|
3
3
|
import { SkeletonVariant, SkeletonShape } from './skeleton.tokens';
|
|
4
|
-
import { ButtonType, ButtonSize, ButtonSubType } from '../Button/types';
|
|
5
4
|
export type SkeletonSize = 'sm' | 'md' | 'lg';
|
|
6
5
|
export type BaseSkeletonProps = {
|
|
7
6
|
variant?: SkeletonVariant;
|
|
@@ -19,17 +18,6 @@ export type SkeletonAvatarProps = BaseSkeletonProps & Omit<BlockProps, 'children
|
|
|
19
18
|
size?: SkeletonSize;
|
|
20
19
|
shape?: 'circle' | 'square';
|
|
21
20
|
};
|
|
22
|
-
export type SkeletonButtonProps = BaseSkeletonProps & Omit<BlockProps, 'children'> & {
|
|
23
|
-
buttonType?: ButtonType;
|
|
24
|
-
size?: ButtonSize;
|
|
25
|
-
subType?: ButtonSubType;
|
|
26
|
-
width?: string | number;
|
|
27
|
-
fullWidth?: boolean;
|
|
28
|
-
buttonGroupPosition?: 'center' | 'left' | 'right';
|
|
29
|
-
text?: string;
|
|
30
|
-
hasLeadingIcon?: boolean;
|
|
31
|
-
hasTrailingIcon?: boolean;
|
|
32
|
-
};
|
|
33
21
|
export type SkeletonCardProps = BaseSkeletonProps & Omit<BlockProps, 'children'> & {
|
|
34
22
|
children?: ReactNode;
|
|
35
23
|
padding?: string | number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple utility function for skeleton state logic
|
|
3
|
+
* Not a hook since it doesn't call any React hooks internally
|
|
4
|
+
*/
|
|
5
|
+
export declare function getSkeletonState(showSkeleton: boolean): {
|
|
6
|
+
shouldShowSkeleton: boolean;
|
|
7
|
+
shouldShowContent: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Helper function for merging component props with skeleton props
|
|
11
|
+
* Not a hook since it's just a pure utility function
|
|
12
|
+
*/
|
|
13
|
+
export declare function mergeSkeletonProps<TComponentProps, TSkeletonProps>(componentProps: TComponentProps, skeletonProps?: Partial<TSkeletonProps>): TComponentProps & Partial<TSkeletonProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Common skeleton component props validation and defaults
|
|
16
|
+
* Renamed from useSkeletonDefaults since it's not a hook
|
|
17
|
+
*/
|
|
18
|
+
export declare function getSkeletonDefaults<T extends Record<string, unknown>>(props: T, defaults: Partial<T>): T;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { AddToastOptions, CustomToastProps } from './types';
|
|
2
|
+
import { AddToastOptions, CustomToastProps, SnackbarPosition } from './types';
|
|
4
3
|
export declare const StyledToast: React.FC<CustomToastProps>;
|
|
5
|
-
export declare const addSnackbar: ({ header, description, variant, onClose, actionButton, duration, }: AddToastOptions) => string | number;
|
|
4
|
+
export declare const addSnackbar: ({ header, description, variant, onClose, actionButton, duration, position, }: AddToastOptions) => string | number;
|
|
5
|
+
type SnackbarProps = {
|
|
6
|
+
position?: SnackbarPosition;
|
|
7
|
+
};
|
|
8
|
+
declare const Snackbar: React.FC<SnackbarProps>;
|
|
6
9
|
export default Snackbar;
|
|
@@ -4,6 +4,14 @@ export declare enum SnackbarVariant {
|
|
|
4
4
|
WARNING = "warning",
|
|
5
5
|
ERROR = "error"
|
|
6
6
|
}
|
|
7
|
+
export declare enum SnackbarPosition {
|
|
8
|
+
TOP_LEFT = "top-left",
|
|
9
|
+
TOP_RIGHT = "top-right",
|
|
10
|
+
BOTTOM_LEFT = "bottom-left",
|
|
11
|
+
BOTTOM_RIGHT = "bottom-right",
|
|
12
|
+
TOP_CENTER = "top-center",
|
|
13
|
+
BOTTOM_CENTER = "bottom-center"
|
|
14
|
+
}
|
|
7
15
|
export type AddToastOptions = {
|
|
8
16
|
header: string;
|
|
9
17
|
description?: string;
|
|
@@ -15,6 +23,7 @@ export type AddToastOptions = {
|
|
|
15
23
|
autoDismiss?: boolean;
|
|
16
24
|
};
|
|
17
25
|
duration?: number;
|
|
26
|
+
position?: SnackbarPosition;
|
|
18
27
|
};
|
|
19
28
|
export type CustomToastProps = {
|
|
20
29
|
header: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TagColor, TagShape, TagSize, TagVariant } from './types';
|
|
2
|
+
declare const Tag: import('react').ForwardRefExoticComponent<Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
|
|
3
|
+
text: string;
|
|
4
|
+
variant?: TagVariant;
|
|
5
|
+
color?: TagColor;
|
|
6
|
+
size?: TagSize;
|
|
7
|
+
shape?: TagShape;
|
|
8
|
+
leftSlot?: import('react').ReactNode;
|
|
9
|
+
rightSlot?: import('react').ReactNode;
|
|
10
|
+
splitTagPosition?: "left" | "right";
|
|
11
|
+
} & {
|
|
12
|
+
showSkeleton?: boolean;
|
|
13
|
+
skeletonVariant?: import('../Skeleton').SkeletonVariant;
|
|
14
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export default Tag;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TagTokensType } from './tag.tokens';
|
|
2
|
+
import { TagProps, TagColor, TagShape, TagSize, TagVariant } from './types';
|
|
3
|
+
export type TagBaseProps = TagProps & {
|
|
4
|
+
isSkeleton?: boolean;
|
|
5
|
+
tokens?: TagTokensType;
|
|
6
|
+
};
|
|
7
|
+
declare const TagBase: import('react').ForwardRefExoticComponent<Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
|
|
8
|
+
text: string;
|
|
9
|
+
variant?: TagVariant;
|
|
10
|
+
color?: TagColor;
|
|
11
|
+
size?: TagSize;
|
|
12
|
+
shape?: TagShape;
|
|
13
|
+
leftSlot?: import('react').ReactNode;
|
|
14
|
+
rightSlot?: import('react').ReactNode;
|
|
15
|
+
splitTagPosition?: "left" | "right";
|
|
16
|
+
} & {
|
|
17
|
+
isSkeleton?: boolean;
|
|
18
|
+
tokens?: TagTokensType;
|
|
19
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export default TagBase;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Tag } from './
|
|
1
|
+
export { default as Tag } from './Tag';
|
|
2
2
|
export * from './types';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { SkeletonVariant } from '../Skeleton/skeleton.tokens';
|
|
3
|
+
import { BlockProps } from '../Primitives/Block/Block';
|
|
2
4
|
export declare enum TagVariant {
|
|
3
5
|
NO_FILL = "noFill",
|
|
4
6
|
ATTENTIVE = "attentive",
|
|
@@ -22,7 +24,7 @@ export declare enum TagShape {
|
|
|
22
24
|
ROUNDED = "rounded",
|
|
23
25
|
SQUARICAL = "squarical"
|
|
24
26
|
}
|
|
25
|
-
export type TagProps = {
|
|
27
|
+
export type TagProps = Omit<BlockProps, 'children'> & {
|
|
26
28
|
text: string;
|
|
27
29
|
variant?: TagVariant;
|
|
28
30
|
color?: TagColor;
|
|
@@ -30,6 +32,9 @@ export type TagProps = {
|
|
|
30
32
|
shape?: TagShape;
|
|
31
33
|
leftSlot?: ReactNode;
|
|
32
34
|
rightSlot?: ReactNode;
|
|
33
|
-
onClick?: () => void;
|
|
34
35
|
splitTagPosition?: 'left' | 'right';
|
|
35
36
|
};
|
|
37
|
+
export type TagWithSkeletonProps = TagProps & {
|
|
38
|
+
showSkeleton?: boolean;
|
|
39
|
+
skeletonVariant?: SkeletonVariant;
|
|
40
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node, Edge, NodeProps, EdgeProps, Connection } from 'reactflow';
|
|
1
|
+
import { Node, Edge, NodeProps, EdgeProps, Connection, NodeTypes, EdgeTypes } from 'reactflow';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
export type { Node, Edge, NodeProps, EdgeProps, Connection };
|
|
3
|
+
export type { Node, Edge, NodeProps, EdgeProps, Connection, NodeTypes, EdgeTypes, };
|
|
4
4
|
export declare enum NodeType {
|
|
5
5
|
DEFAULT = "default",
|
|
6
6
|
INPUT = "input",
|
|
@@ -38,12 +38,15 @@ export type WorkflowCanvasProps = {
|
|
|
38
38
|
onEdgeClick?: (event: React.MouseEvent, edge: BlendEdge) => void;
|
|
39
39
|
onNodeDoubleClick?: (event: React.MouseEvent, node: BlendNode) => void;
|
|
40
40
|
onPaneClick?: (event: React.MouseEvent) => void;
|
|
41
|
+
nodeTypes?: NodeTypes;
|
|
42
|
+
edgeTypes?: EdgeTypes;
|
|
41
43
|
height?: string | number;
|
|
42
44
|
width?: string | number;
|
|
43
45
|
fitView?: boolean;
|
|
44
46
|
showControls?: boolean;
|
|
45
47
|
controlsPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
46
48
|
showMinimap?: boolean;
|
|
49
|
+
minimapPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
47
50
|
showBackground?: boolean;
|
|
48
51
|
panOnScroll?: boolean;
|
|
49
52
|
zoomOnScroll?: boolean;
|
package/dist/main.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export * from './components/Upload';
|
|
|
37
37
|
export * from './components/WorkflowCanvas';
|
|
38
38
|
export * from './components/ChatInput';
|
|
39
39
|
export * from './components/CodeBlock';
|
|
40
|
+
export * from './components/CodeEditor';
|
|
40
41
|
export * from './components/ButtonGroup';
|
|
41
42
|
export * from './components/Button';
|
|
42
43
|
export * from './context';
|