@juspay/blend-design-system 0.0.31 → 0.0.32-beta
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/components/Charts/BlendChart.d.ts +3 -0
- package/dist/components/Charts/BlendChart.types.d.ts +28 -0
- package/dist/components/Charts/BlendChartContainer.d.ts +6 -0
- package/dist/components/Charts/BlendChartHeader.d.ts +6 -0
- package/dist/components/Charts/index.d.ts +4 -0
- package/dist/components/Charts/renderChart.d.ts +1 -1
- package/dist/components/Charts/types.d.ts +63 -6
- package/dist/components/Charts/utils.d.ts +4 -1
- package/dist/components/ChatInput/AttachmentFile.d.ts +11 -0
- package/dist/components/ChatInput/MobileChatInput.d.ts +14 -0
- package/dist/components/ChatInput/chatInput.tokens.d.ts +46 -0
- package/dist/components/ChatInput/utils.d.ts +5 -0
- package/dist/components/DataTable/DataTablePagination.d.ts +2 -1
- package/dist/components/DataTable/TableFooter/types.d.ts +1 -0
- package/dist/components/DataTable/TableHeader/FilterComponents.d.ts +1 -0
- package/dist/components/DataTable/TableHeader/handlers.d.ts +5 -4
- package/dist/components/DataTable/TableHeader/types.d.ts +3 -3
- package/dist/components/DataTable/types.d.ts +41 -0
- package/dist/components/Directory/Directory.d.ts +1 -1
- package/dist/components/Directory/NavItem.d.ts +1 -1
- package/dist/components/Directory/Section.d.ts +1 -1
- package/dist/components/Directory/types.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts +5 -0
- package/dist/components/Inputs/NumberInput/utils.d.ts +81 -1
- package/dist/components/Inputs/TextArea/textarea.token.d.ts +4 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/MultiSelect/types.d.ts +2 -0
- package/dist/components/Primitives/PrimitiveTextArea.d.ts +80 -1
- package/dist/components/Sidebar/SidebarHeader.d.ts +1 -0
- package/dist/components/Sidebar/sidebar.tokens.d.ts +1 -0
- package/dist/components/Sidebar/types.d.ts +19 -0
- package/dist/components/Sidebar/utils.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/VirtualList/VirtualList.d.ts +0 -4
- package/dist/components/common/TruncatedTextWithTooltip.d.ts +14 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/context/ThemeContext.d.ts +2 -0
- package/dist/context/useComponentToken.d.ts +2 -1
- package/dist/main.js +47679 -40813
- package/dist/tokens/unit.tokens.d.ts +1 -0
- package/package.json +3 -1
|
@@ -91,5 +91,84 @@ type PrimitiveTextareaProps = StateStyles & {
|
|
|
91
91
|
fontWeight?: CSSObject['fontWeight'];
|
|
92
92
|
};
|
|
93
93
|
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & PrimitiveTextareaProps;
|
|
94
|
-
declare const PrimitiveTextarea: React.
|
|
94
|
+
declare const PrimitiveTextarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & StateStyles & {
|
|
95
|
+
color?: CSSObject["color"];
|
|
96
|
+
position?: CSSObject["position"];
|
|
97
|
+
inset?: CSSObject["inset"];
|
|
98
|
+
top?: CSSObject["top"];
|
|
99
|
+
right?: CSSObject["right"];
|
|
100
|
+
bottom?: CSSObject["bottom"];
|
|
101
|
+
left?: CSSObject["left"];
|
|
102
|
+
zIndex?: CSSObject["zIndex"];
|
|
103
|
+
pointerEvents?: CSSObject["pointerEvents"];
|
|
104
|
+
opacity?: CSSObject["opacity"];
|
|
105
|
+
padding?: CSSObject["padding"];
|
|
106
|
+
paddingTop?: CSSObject["paddingTop"];
|
|
107
|
+
paddingBottom?: CSSObject["paddingBottom"];
|
|
108
|
+
paddingLeft?: CSSObject["paddingLeft"];
|
|
109
|
+
paddingRight?: CSSObject["paddingRight"];
|
|
110
|
+
paddingX?: CSSObject["padding"];
|
|
111
|
+
paddingY?: CSSObject["padding"];
|
|
112
|
+
paddingInlineStart?: CSSObject["paddingInlineStart"];
|
|
113
|
+
paddingInlineEnd?: CSSObject["paddingInlineEnd"];
|
|
114
|
+
margin?: CSSObject["margin"];
|
|
115
|
+
marginTop?: CSSObject["marginTop"];
|
|
116
|
+
marginBottom?: CSSObject["marginBottom"];
|
|
117
|
+
marginLeft?: CSSObject["marginLeft"];
|
|
118
|
+
marginRight?: CSSObject["marginRight"];
|
|
119
|
+
marginX?: CSSObject["margin"];
|
|
120
|
+
marginY?: CSSObject["margin"];
|
|
121
|
+
display?: CSSObject["display"];
|
|
122
|
+
flexDirection?: CSSObject["flexDirection"];
|
|
123
|
+
justifyContent?: CSSObject["justifyContent"];
|
|
124
|
+
alignItems?: CSSObject["alignItems"];
|
|
125
|
+
flexWrap?: CSSObject["flexWrap"];
|
|
126
|
+
flexGrow?: CSSObject["flexGrow"];
|
|
127
|
+
flexShrink?: CSSObject["flexShrink"];
|
|
128
|
+
flexBasis?: CSSObject["flexBasis"];
|
|
129
|
+
gap?: CSSObject["gap"];
|
|
130
|
+
rowGap?: CSSObject["rowGap"];
|
|
131
|
+
columnGap?: CSSObject["columnGap"];
|
|
132
|
+
alignContent?: CSSObject["alignContent"];
|
|
133
|
+
alignSelf?: CSSObject["alignSelf"];
|
|
134
|
+
justifySelf?: CSSObject["justifySelf"];
|
|
135
|
+
borderRadius?: CSSObject["borderRadius"];
|
|
136
|
+
borderTopLeftRadius?: CSSObject["borderTopLeftRadius"];
|
|
137
|
+
borderTopRightRadius?: CSSObject["borderTopRightRadius"];
|
|
138
|
+
borderBottomLeftRadius?: CSSObject["borderBottomLeftRadius"];
|
|
139
|
+
borderBottomRightRadius?: CSSObject["borderBottomRightRadius"];
|
|
140
|
+
outline?: CSSObject["outline"];
|
|
141
|
+
outlineColor?: CSSObject["outlineColor"];
|
|
142
|
+
outlineWidth?: CSSObject["outlineWidth"];
|
|
143
|
+
outlineStyle?: CSSObject["outlineStyle"];
|
|
144
|
+
outlineOffset?: CSSObject["outlineOffset"];
|
|
145
|
+
width?: CSSObject["width"];
|
|
146
|
+
height?: CSSObject["height"];
|
|
147
|
+
minWidth?: CSSObject["minWidth"];
|
|
148
|
+
minHeight?: CSSObject["minHeight"];
|
|
149
|
+
maxWidth?: CSSObject["maxWidth"];
|
|
150
|
+
maxHeight?: CSSObject["maxHeight"];
|
|
151
|
+
backgroundColor?: CSSObject["backgroundColor"];
|
|
152
|
+
border?: CSSObject["border"];
|
|
153
|
+
borderTop?: CSSObject["borderTop"];
|
|
154
|
+
borderBottom?: CSSObject["borderBottom"];
|
|
155
|
+
borderLeft?: CSSObject["borderLeft"];
|
|
156
|
+
borderRight?: CSSObject["borderRight"];
|
|
157
|
+
boxShadow?: CSSObject["boxShadow"];
|
|
158
|
+
overflow?: CSSObject["overflow"];
|
|
159
|
+
overflowX?: CSSObject["overflowX"];
|
|
160
|
+
overflowY?: CSSObject["overflowY"];
|
|
161
|
+
contentCentered?: boolean;
|
|
162
|
+
cursor?: CSSObject["cursor"];
|
|
163
|
+
transition?: CSSObject["transition"];
|
|
164
|
+
transitionProperty?: CSSObject["transitionProperty"];
|
|
165
|
+
transitionDuration?: CSSObject["transitionDuration"];
|
|
166
|
+
transitionTimingFunction?: CSSObject["transitionTimingFunction"];
|
|
167
|
+
transitionDelay?: CSSObject["transitionDelay"];
|
|
168
|
+
placeholderStyles?: CSSObject;
|
|
169
|
+
resize?: CSSObject["resize"];
|
|
170
|
+
fontFamily?: CSSObject["fontFamily"];
|
|
171
|
+
fontSize?: CSSObject["fontSize"];
|
|
172
|
+
fontWeight?: CSSObject["fontWeight"];
|
|
173
|
+
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
95
174
|
export default PrimitiveTextarea;
|
|
@@ -25,6 +25,7 @@ export type SidebarTokenType = {
|
|
|
25
25
|
maxWidth: {
|
|
26
26
|
withLeftPanel: CSSObject['maxWidth'];
|
|
27
27
|
withoutLeftPanel: CSSObject['maxWidth'];
|
|
28
|
+
iconOnly?: CSSObject['maxWidth'];
|
|
28
29
|
};
|
|
29
30
|
backgroundColor: CSSObject['backgroundColor'];
|
|
30
31
|
borderRight: CSSObject['border'];
|
|
@@ -97,6 +97,25 @@ export type SidebarProps = {
|
|
|
97
97
|
* Defaults to false (intermediate state enabled)
|
|
98
98
|
*/
|
|
99
99
|
disableIntermediateState?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* When true, shows only icons (52px width) with tooltips on hover
|
|
102
|
+
* In this mode:
|
|
103
|
+
* - Directory items show only their icons
|
|
104
|
+
* - Tooltips appear on hover showing the item label
|
|
105
|
+
* - Sections render as horizontal dividers
|
|
106
|
+
* - Merchant switcher moves to topbar
|
|
107
|
+
* - Intermediate/hover state expansion is disabled
|
|
108
|
+
* - Toggle button appears at the top of the icon-only panel
|
|
109
|
+
* Defaults to false
|
|
110
|
+
*/
|
|
111
|
+
iconOnlyMode?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* When true, clicking the toggle button in icon-only mode will completely hide the sidebar.
|
|
114
|
+
* When false, clicking the toggle button will expand to full sidebar view.
|
|
115
|
+
* Only applies when iconOnlyMode is true
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
hideOnIconOnlyToggle?: boolean;
|
|
100
119
|
/**
|
|
101
120
|
* Show primary action button in mobile navigation
|
|
102
121
|
*/
|
|
@@ -6,7 +6,7 @@ export declare const arrangeTenants: (tenants: TenantItem[], selectedLabel: stri
|
|
|
6
6
|
hiddenTenants: TenantItem[];
|
|
7
7
|
hasMoreTenants: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const getSidebarWidth: (isExpanded: boolean, isHovering: boolean, hasLeftPanel: boolean, tokens: SidebarTokenType) => string;
|
|
9
|
+
export declare const getSidebarWidth: (isExpanded: boolean, isHovering: boolean, hasLeftPanel: boolean, tokens: SidebarTokenType, iconOnlyMode?: boolean) => string;
|
|
10
10
|
export declare const getSidebarBorder: (isExpanded: boolean, isHovering: boolean, tokens: SidebarTokenType) => string;
|
|
11
11
|
export declare const getTopbarStyles: (enableAutoHide: boolean, showTopbar: boolean) => {
|
|
12
12
|
transform?: undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from './types';
|
|
2
|
-
export declare const Tooltip: ({ children: trigger, content, side, align, showArrow, size, slot, slotDirection, delayDuration, offset, open, maxWidth, fullWidth, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Tooltip: ({ children: trigger, content, side, align, showArrow, size, slot, slotDirection, delayDuration, offset, open, maxWidth, fullWidth, disableInteractive, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { VirtualListProps, VirtualListRef, VirtualListItem } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* A simple, performant virtual list component that only renders visible items.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
3
|
declare function VirtualListInner<T extends VirtualListItem>({ items, renderItem, height, itemHeight, overscan, onScroll, onEndReached, endReachedThreshold, isLoading, hasMore, className, style, }: VirtualListProps<T>, ref: React.Ref<VirtualListRef>): import("react/jsx-runtime").JSX.Element;
|
|
8
4
|
declare const VirtualList: (<T extends VirtualListItem>(props: VirtualListProps<T> & {
|
|
9
5
|
ref?: React.Ref<VirtualListRef>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TooltipSize } from '../Tooltip/types';
|
|
3
|
+
type TruncatedTextWithTooltipProps = {
|
|
4
|
+
text: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
tooltipSize?: TooltipSize;
|
|
7
|
+
delayDuration?: number;
|
|
8
|
+
'data-id'?: string;
|
|
9
|
+
'data-element'?: string;
|
|
10
|
+
} & {
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const TruncatedTextWithTooltip: ({ text, style, tooltipSize, delayDuration, "data-id": dataId, "data-element": dataElement, ...restProps }: TruncatedTextWithTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -43,6 +43,7 @@ import { BREAKPOINTS } from '../breakpoints/breakPoints';
|
|
|
43
43
|
import { ResponsiveMobileNavigationTokens } from '../components/Sidebar/SidebarMobile/mobile.tokens';
|
|
44
44
|
import { ResponsiveStepperTokens } from '../components/Stepper/stepper.tokens';
|
|
45
45
|
import { Theme } from './theme.enum';
|
|
46
|
+
import { ResponsiveChatInputTokensType } from '../components/ChatInput/chatInput.tokens';
|
|
46
47
|
export type ComponentTokenType = {
|
|
47
48
|
TAGS?: ResponsiveTagTokens;
|
|
48
49
|
SEARCH_INPUT?: ResponsiveSearchInputTokens;
|
|
@@ -86,6 +87,7 @@ export type ComponentTokenType = {
|
|
|
86
87
|
MOBILE_NAVIGATION?: ResponsiveMobileNavigationTokens;
|
|
87
88
|
UPLOAD?: ResponsiveUploadTokens;
|
|
88
89
|
CODE_BLOCK?: ResponsiveCodeBlockTokens;
|
|
90
|
+
CHAT_INPUT?: ResponsiveChatInputTokensType;
|
|
89
91
|
};
|
|
90
92
|
type ThemeContextType = {
|
|
91
93
|
foundationTokens: ThemeType;
|
|
@@ -41,4 +41,5 @@ import { ResponsiveUploadTokens } from '../components/Upload/upload.tokens';
|
|
|
41
41
|
import { ResponsiveCodeBlockTokens } from '../components/CodeBlock/codeBlock.token';
|
|
42
42
|
import { ResponsiveMobileNavigationTokens } from '../components/Sidebar/SidebarMobile/mobile.tokens';
|
|
43
43
|
import { ResponsiveDirectoryTokens } from '../components/Directory/directory.tokens';
|
|
44
|
-
|
|
44
|
+
import { ResponsiveChatInputTokensType } from '../components/ChatInput/chatInput.tokens';
|
|
45
|
+
export declare const useComponentToken: (component: keyof ComponentTokenType) => ResponsiveSearchInputTokens | ResponsiveTagTokens | ResponsiveTextAreaTokens | ResponsiveTextInputTokens | ResponsiveNumberInputTokens | ResponsiveAlertTokens | ResponsiveRadioTokens | ResponsiveOTPInputTokens | ResponsiveUnitInputTokens | ResponsiveMultiValueInputTokens | ResponsiveSwitchTokens | ResponsiveCheckboxTokens | ResponsiveTabsTokens | ResponsiveTooltipTokens | ResponsiveDropdownInputTokens | ResponsiveButtonTokens | ResponsiveModalTokens | ResponsiveBreadcrumbTokens | ResponsivePopoverTokens | ResponsiveMenuTokensType | ResponsiveMultiSelectTokens | ResponsiveSingleSelectTokens | ResponsiveTableTokens | ResponsiveCalendarTokens | ResponsiveAccordionTokens | ResponsiveStatCardTokens | ResponsiveProgressBarTokens | ResponsiveDrawerTokens | ResponsiveChartTokens | ResponsiveSnackbarTokens | ResponsiveStepperTokens | ResponsiveKeyValuePairTokens | ResponsiveCardTokens | ResponsiveSkeletonTokens | ResponsiveTopbarTokens | ResponsiveAvatarTokens | ResponsiveAvatarGroupTokens | ResponsiveSidebarTokens | ResponsiveUploadTokens | ResponsiveCodeBlockTokens | ResponsiveMobileNavigationTokens | ResponsiveDirectoryTokens | ResponsiveChatInputTokensType;
|