@juspay/blend-design-system 0.0.16 → 0.0.17
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/ChartUtils.d.ts +6 -0
- package/dist/components/Charts/types.d.ts +2 -1
- package/dist/components/DateRangePicker/QuickRangeSelector.d.ts +2 -1
- package/dist/components/DateRangePicker/dateRangePicker.tokens.d.ts +20 -5
- package/dist/components/DateRangePicker/types.d.ts +6 -0
- package/dist/components/DateRangePicker/utils.d.ts +3 -1
- package/dist/components/Inputs/TextInput/TextInput.d.ts +1 -1
- package/dist/components/Inputs/TextInput/types.d.ts +1 -0
- package/dist/components/KeyValuePair/KeyValuePair.tokens.d.ts +29 -9
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
- package/dist/components/MultiSelect/types.d.ts +7 -6
- package/dist/components/Sidebar/Sidebar.d.ts +1 -2
- package/dist/components/Sidebar/SidebarFooter.d.ts +6 -0
- package/dist/components/Sidebar/SidebarHeader.d.ts +12 -0
- package/dist/components/Sidebar/TenantPanel.d.ts +15 -0
- package/dist/components/Sidebar/types.d.ts +15 -0
- package/dist/components/Sidebar/utils.d.ts +25 -0
- package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
- package/dist/components/SingleSelect/SingleSelectMenu.d.ts +4 -4
- package/dist/components/SingleSelect/types.d.ts +4 -3
- package/dist/components/StatCard/StatCard.d.ts +1 -1
- package/dist/components/StatCard/types.d.ts +1 -0
- package/dist/components/Topbar/topbar.tokens.d.ts +0 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +16003 -14799
- package/package.json +1 -1
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { NewNestedDataPoint, FlattenedDataPoint, AxisType, XAxisConfig } from './types';
|
|
2
2
|
export declare function transformNestedData(data: NewNestedDataPoint[], selectedKeys?: string[]): FlattenedDataPoint[];
|
|
3
|
+
export declare function transformScatterData(data: NewNestedDataPoint[], selectedKeys?: string[]): Array<{
|
|
4
|
+
name: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
seriesKey: string;
|
|
8
|
+
}>;
|
|
3
9
|
export declare function lightenHexColor(hex: string, amount?: number): string;
|
|
4
10
|
export declare const formatNumber: (value: number | string) => string;
|
|
5
11
|
export declare const capitaliseCamelCase: (text: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateRangePreset } from './types';
|
|
1
|
+
import { DateRangePreset, DateRangePickerSize } from './types';
|
|
2
2
|
type QuickRangeSelectorProps = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onToggle: () => void;
|
|
@@ -9,6 +9,7 @@ type QuickRangeSelectorProps = {
|
|
|
9
9
|
disableFutureDates?: boolean;
|
|
10
10
|
disablePastDates?: boolean;
|
|
11
11
|
isDisabled?: boolean;
|
|
12
|
+
size?: DateRangePickerSize;
|
|
12
13
|
};
|
|
13
14
|
declare const QuickRangeSelector: import('react').ForwardRefExoticComponent<QuickRangeSelectorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
15
|
export default QuickRangeSelector;
|
|
@@ -4,13 +4,11 @@ import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
|
4
4
|
export type CalendarTokenType = {
|
|
5
5
|
quickRange: {
|
|
6
6
|
trigger: {
|
|
7
|
-
height: CSSObject['height'];
|
|
8
7
|
borderLeft: CSSObject['borderLeft'];
|
|
9
8
|
borderTop: CSSObject['borderTop'];
|
|
10
9
|
borderBottom: CSSObject['borderBottom'];
|
|
11
10
|
borderTopLeftRadius: CSSObject['borderTopLeftRadius'];
|
|
12
11
|
borderBottomLeftRadius: CSSObject['borderBottomLeftRadius'];
|
|
13
|
-
padding: CSSObject['padding'];
|
|
14
12
|
display: CSSObject['display'];
|
|
15
13
|
justifyContent: CSSObject['justifyContent'];
|
|
16
14
|
alignItems: CSSObject['alignItems'];
|
|
@@ -20,6 +18,16 @@ export type CalendarTokenType = {
|
|
|
20
18
|
iconSize: CSSObject['iconSize'];
|
|
21
19
|
text: CSSObject;
|
|
22
20
|
gap: CSSObject['gap'];
|
|
21
|
+
padding: {
|
|
22
|
+
sm: CSSObject['padding'];
|
|
23
|
+
md: CSSObject['padding'];
|
|
24
|
+
lg: CSSObject['padding'];
|
|
25
|
+
};
|
|
26
|
+
fontSize: {
|
|
27
|
+
sm: CSSObject['fontSize'];
|
|
28
|
+
md: CSSObject['fontSize'];
|
|
29
|
+
lg: CSSObject['fontSize'];
|
|
30
|
+
};
|
|
23
31
|
};
|
|
24
32
|
content: {
|
|
25
33
|
padding: CSSObject['padding'];
|
|
@@ -144,16 +152,13 @@ export type CalendarTokenType = {
|
|
|
144
152
|
};
|
|
145
153
|
};
|
|
146
154
|
trigger: {
|
|
147
|
-
height: CSSObject['height'];
|
|
148
155
|
display: CSSObject['display'];
|
|
149
156
|
alignItems: CSSObject['alignItems'];
|
|
150
157
|
justifyContent: CSSObject['justifyContent'];
|
|
151
|
-
padding: CSSObject['padding'];
|
|
152
158
|
border: CSSObject['border'];
|
|
153
159
|
borderRadius: CSSObject['borderRadius'];
|
|
154
160
|
boxShadow: CSSObject['boxShadow'];
|
|
155
161
|
backgroundColor: CSSObject['backgroundColor'];
|
|
156
|
-
fontSize: CSSObject['fontSize'];
|
|
157
162
|
color: CSSObject['color'];
|
|
158
163
|
cursor: CSSObject['cursor'];
|
|
159
164
|
disabled: {
|
|
@@ -162,6 +167,16 @@ export type CalendarTokenType = {
|
|
|
162
167
|
};
|
|
163
168
|
borderRadiusWithPresets: CSSObject['borderRadius'];
|
|
164
169
|
borderRadiusWithoutPresets: CSSObject['borderRadius'];
|
|
170
|
+
padding: {
|
|
171
|
+
sm: CSSObject['padding'];
|
|
172
|
+
md: CSSObject['padding'];
|
|
173
|
+
lg: CSSObject['padding'];
|
|
174
|
+
};
|
|
175
|
+
fontSize: {
|
|
176
|
+
sm: CSSObject['fontSize'];
|
|
177
|
+
md: CSSObject['fontSize'];
|
|
178
|
+
lg: CSSObject['fontSize'];
|
|
179
|
+
};
|
|
165
180
|
};
|
|
166
181
|
calendar: {
|
|
167
182
|
minWidth: CSSObject['minWidth'];
|
|
@@ -15,6 +15,11 @@ export declare enum DateRangePreset {
|
|
|
15
15
|
NEXT_3_MONTHS = "next3Months",
|
|
16
16
|
NEXT_12_MONTHS = "next12Months"
|
|
17
17
|
}
|
|
18
|
+
export declare enum DateRangePickerSize {
|
|
19
|
+
SMALL = "sm",
|
|
20
|
+
MEDIUM = "md",
|
|
21
|
+
LARGE = "lg"
|
|
22
|
+
}
|
|
18
23
|
export type DateRange = {
|
|
19
24
|
startDate: Date;
|
|
20
25
|
endDate: Date;
|
|
@@ -90,6 +95,7 @@ export type DateRangePickerProps = {
|
|
|
90
95
|
triggerElement?: ReactNode;
|
|
91
96
|
useDrawerOnMobile?: boolean;
|
|
92
97
|
skipQuickFiltersOnMobile?: boolean;
|
|
98
|
+
size?: DateRangePickerSize;
|
|
93
99
|
formatConfig?: DateFormatConfig;
|
|
94
100
|
triggerConfig?: TriggerConfig;
|
|
95
101
|
};
|
|
@@ -206,9 +206,11 @@ export declare const getMonthName: (monthIndex: number) => string;
|
|
|
206
206
|
export declare const getDayNames: () => string[];
|
|
207
207
|
/**
|
|
208
208
|
* Calculates the height of a single month in the calendar
|
|
209
|
+
* @param year The year of the month
|
|
210
|
+
* @param month The month (0-based)
|
|
209
211
|
* @returns Height in pixels
|
|
210
212
|
*/
|
|
211
|
-
export declare const getMonthHeight: () => number;
|
|
213
|
+
export declare const getMonthHeight: (year?: number, month?: number) => number;
|
|
212
214
|
/**
|
|
213
215
|
* Calculates which months should be visible in the viewport
|
|
214
216
|
* @param scrollTop Current scroll position
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextInputProps } from './types';
|
|
2
|
-
declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, onBlur, onFocus, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, onBlur, onFocus, cursor, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextInput;
|
|
@@ -24,4 +24,5 @@ export type TextInputProps = {
|
|
|
24
24
|
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
25
25
|
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
26
26
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
27
|
+
cursor?: 'text' | 'pointer' | 'default' | 'not-allowed';
|
|
27
28
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onBlur' | 'onFocus'>;
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { KeyValuePairSize } from './types';
|
|
3
3
|
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
4
|
-
import {
|
|
4
|
+
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
5
|
+
/**
|
|
6
|
+
* KeyValuePair Tokens following the pattern: [target].CSSProp.[size].[state]
|
|
7
|
+
* component.CSSProp.[size].[variant].[subType].[state].value
|
|
8
|
+
* Structure:
|
|
9
|
+
* - target: container | key | value (defines what element the token applies to)
|
|
10
|
+
* - CSSProp: gap | color | fontSize
|
|
11
|
+
* - size: sm | md | lg (only for size-dependent properties like value fontSize)
|
|
12
|
+
* - state: vertical | horizontal (layout state)
|
|
13
|
+
*
|
|
14
|
+
* Size-independent properties: gap, key color, key fontSize, value color
|
|
15
|
+
* Size-dependent properties: value fontSize
|
|
16
|
+
*/
|
|
5
17
|
export type KeyValuePairTokensType = {
|
|
6
|
-
gap:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[
|
|
12
|
-
|
|
18
|
+
gap: {
|
|
19
|
+
[key in 'vertical' | 'horizontal']: CSSObject['gap'];
|
|
20
|
+
};
|
|
21
|
+
key: {
|
|
22
|
+
color: CSSObject['color'];
|
|
23
|
+
fontSize: CSSObject['fontSize'];
|
|
24
|
+
fontWeight: CSSObject['fontWeight'];
|
|
25
|
+
gap: CSSObject['gap'];
|
|
26
|
+
};
|
|
27
|
+
value: {
|
|
28
|
+
color: CSSObject['color'];
|
|
29
|
+
fontSize: {
|
|
30
|
+
[key in KeyValuePairSize]: CSSObject['fontSize'];
|
|
13
31
|
};
|
|
32
|
+
fontWeight: CSSObject['fontWeight'];
|
|
33
|
+
gap: CSSObject['gap'];
|
|
14
34
|
};
|
|
15
35
|
};
|
|
16
36
|
export type ResponsiveKeyValuePairTokens = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MultiSelectProps } from './types';
|
|
2
|
-
declare const MultiSelect: ({ selectedValues, onChange, items, label, sublabel, disabled, helpIconHintText, name, required, variant, selectionTagType, slot, hintText, placeholder, size, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, customTrigger, useDrawerOnMobile,
|
|
2
|
+
declare const MultiSelect: ({ selectedValues, onChange, items, label, sublabel, disabled, helpIconHintText, name, required, variant, selectionTagType, slot, hintText, placeholder, size, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, customTrigger, useDrawerOnMobile, minMenuWidth, maxMenuWidth, maxMenuHeight, alignment, side, sideOffset, alignOffset, inline, onBlur, onFocus, error, errorMessage, showActionButtons, primaryAction, secondaryAction, showItemDividers, showHeaderBorder, fullWidth, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MultiSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MultiSelectMenuProps } from './types';
|
|
2
|
-
declare const MultiSelectMenu: ({ items, selected, onSelect, trigger,
|
|
2
|
+
declare const MultiSelectMenu: ({ items, selected, onSelect, trigger, minMenuWidth, maxMenuWidth, maxMenuHeight, disabled, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, onSelectAll, alignment, side, sideOffset, alignOffset, open, onOpenChange, showActionButtons, primaryAction, secondaryAction, }: MultiSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MultiSelectMenu;
|
|
@@ -76,9 +76,9 @@ export type MultiSelectProps = {
|
|
|
76
76
|
maxSelections?: number;
|
|
77
77
|
customTrigger?: React.ReactNode;
|
|
78
78
|
useDrawerOnMobile?: boolean;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
minMenuWidth?: number;
|
|
80
|
+
maxMenuWidth?: number;
|
|
81
|
+
maxMenuHeight?: number;
|
|
82
82
|
alignment?: MultiSelectMenuAlignment;
|
|
83
83
|
side?: MultiSelectMenuSide;
|
|
84
84
|
sideOffset?: number;
|
|
@@ -103,15 +103,16 @@ export type MultiSelectProps = {
|
|
|
103
103
|
};
|
|
104
104
|
showItemDividers?: boolean;
|
|
105
105
|
showHeaderBorder?: boolean;
|
|
106
|
+
fullWidth?: boolean;
|
|
106
107
|
};
|
|
107
108
|
export type MultiSelectMenuProps = {
|
|
108
109
|
items: MultiSelectMenuGroupType[];
|
|
109
110
|
selected: string[];
|
|
110
111
|
onSelect: (value: string) => void;
|
|
111
112
|
trigger: React.ReactNode;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
minMenuWidth?: number;
|
|
114
|
+
maxMenuWidth?: number;
|
|
115
|
+
maxMenuHeight?: number;
|
|
115
116
|
disabled?: boolean;
|
|
116
117
|
enableSearch?: boolean;
|
|
117
118
|
searchPlaceholder?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { SidebarProps } from './types';
|
|
3
|
-
declare const Sidebar:
|
|
2
|
+
declare const Sidebar: import('react').ForwardRefExoticComponent<SidebarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
3
|
export default Sidebar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SidebarMerchantInfo } from './types';
|
|
3
|
+
type SidebarHeaderProps = {
|
|
4
|
+
sidebarTopSlot?: React.ReactNode;
|
|
5
|
+
merchantInfo?: SidebarMerchantInfo;
|
|
6
|
+
isExpanded: boolean;
|
|
7
|
+
isScrolled: boolean;
|
|
8
|
+
sidebarCollapseKey: string;
|
|
9
|
+
onToggle: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare const SidebarHeader: React.FC<SidebarHeaderProps>;
|
|
12
|
+
export default SidebarHeader;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TenantItem } from './types';
|
|
3
|
+
type TenantPanelProps = {
|
|
4
|
+
items: TenantItem[];
|
|
5
|
+
selected: string;
|
|
6
|
+
onSelect: (label: string) => void;
|
|
7
|
+
maxVisibleItems?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const TenantPanel: React.FC<TenantPanelProps>;
|
|
10
|
+
declare const TenantItem: React.FC<{
|
|
11
|
+
tenant: TenantItem;
|
|
12
|
+
isSelected: boolean;
|
|
13
|
+
onSelect: () => void;
|
|
14
|
+
}>;
|
|
15
|
+
export default TenantPanel;
|
|
@@ -12,6 +12,20 @@ export type LeftPanelInfo = {
|
|
|
12
12
|
onSelect: (value: string) => void;
|
|
13
13
|
maxVisibleItems?: number;
|
|
14
14
|
};
|
|
15
|
+
export type TenantItem = {
|
|
16
|
+
label: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
icon: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
export type SidebarMerchantInfo = {
|
|
21
|
+
items: Array<{
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
}>;
|
|
26
|
+
selected: string;
|
|
27
|
+
onSelect: (value: string) => void;
|
|
28
|
+
};
|
|
15
29
|
export type SidebarProps = {
|
|
16
30
|
children: ReactNode;
|
|
17
31
|
data: DirectoryData[];
|
|
@@ -22,4 +36,5 @@ export type SidebarProps = {
|
|
|
22
36
|
sidebarCollapseKey?: string;
|
|
23
37
|
merchantInfo?: MerchantInfo;
|
|
24
38
|
rightActions?: ReactNode;
|
|
39
|
+
enableTopbarAutoHide?: boolean;
|
|
25
40
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TenantItem } from './types';
|
|
2
|
+
export declare const arrangeTenants: (tenants: TenantItem[], selectedLabel: string, maxVisible: number) => {
|
|
3
|
+
visibleTenants: TenantItem[];
|
|
4
|
+
hiddenTenants: TenantItem[];
|
|
5
|
+
hasMoreTenants: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const getSidebarWidth: (isExpanded: boolean, isHovering: boolean, hasLeftPanel: boolean) => string;
|
|
8
|
+
export declare const getSidebarBorder: (isExpanded: boolean, isHovering: boolean) => string;
|
|
9
|
+
export declare const getTopbarStyles: (enableAutoHide: boolean, showTopbar: boolean) => {
|
|
10
|
+
transform?: undefined;
|
|
11
|
+
transition?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
transform: string;
|
|
14
|
+
transition: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const getDefaultMerchantInfo: () => {
|
|
17
|
+
items: {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
icon: null;
|
|
21
|
+
}[];
|
|
22
|
+
selected: string;
|
|
23
|
+
onSelect: (value: string) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare const useTopbarAutoHide: (enableTopbarAutoHide: boolean) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SingleSelectProps } from './types';
|
|
2
|
-
declare const SingleSelect: ({ label, subLabel, hintText, required, helpIconText, placeholder, error, errorMessage, size, items, name, variant, disabled, selected, onSelect, enableSearch, searchPlaceholder, slot, customTrigger, useDrawerOnMobile, alignment, side, sideOffset, alignOffset,
|
|
2
|
+
declare const SingleSelect: ({ label, subLabel, hintText, required, helpIconText, placeholder, error, errorMessage, size, items, name, variant, disabled, selected, onSelect, enableSearch, searchPlaceholder, slot, customTrigger, useDrawerOnMobile, alignment, side, sideOffset, alignOffset, minMenuWidth, maxMenuWidth, maxMenuHeight, onBlur, onFocus, inline, fullWidth, }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SingleSelect;
|
|
@@ -5,9 +5,9 @@ type SingleSelectMenuProps = {
|
|
|
5
5
|
selected: string;
|
|
6
6
|
onSelect: (value: string) => void;
|
|
7
7
|
trigger: React.ReactNode;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
minMenuWidth?: number;
|
|
9
|
+
maxMenuWidth?: number;
|
|
10
|
+
maxMenuHeight?: number;
|
|
11
11
|
enableSearch?: boolean;
|
|
12
12
|
searchPlaceholder?: string;
|
|
13
13
|
disabled?: boolean;
|
|
@@ -18,5 +18,5 @@ type SingleSelectMenuProps = {
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
onOpenChange: (open: boolean) => void;
|
|
20
20
|
};
|
|
21
|
-
declare const SingleSelectMenu: ({ items, selected, onSelect, trigger,
|
|
21
|
+
declare const SingleSelectMenu: ({ items, selected, onSelect, trigger, minMenuWidth, maxMenuWidth, maxMenuHeight, enableSearch, searchPlaceholder, disabled, alignment, side, sideOffset, alignOffset, open, onOpenChange, }: SingleSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export default SingleSelectMenu;
|
|
@@ -86,12 +86,13 @@ export type SingleSelectProps = {
|
|
|
86
86
|
side?: SelectMenuSide;
|
|
87
87
|
sideOffset?: number;
|
|
88
88
|
alignOffset?: number;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
minMenuWidth?: number;
|
|
90
|
+
maxMenuWidth?: number;
|
|
91
|
+
maxMenuHeight?: number;
|
|
92
92
|
inline?: boolean;
|
|
93
93
|
onBlur?: () => void;
|
|
94
94
|
onFocus?: () => void;
|
|
95
95
|
error?: boolean;
|
|
96
96
|
errorMessage?: string;
|
|
97
|
+
fullWidth?: boolean;
|
|
97
98
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StatCardProps } from './types';
|
|
2
2
|
declare const StatCard: {
|
|
3
|
-
({ title, value, valueTooltip, change, subtitle, variant, chartData, progressValue, titleIcon, actionIcon, helpIconText, dropdownProps, maxWidth, xAxis, yAxis, valueFormatter, }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ title, value, valueTooltip, change, subtitle, variant, chartData, progressValue, titleIcon, actionIcon, helpIconText, dropdownProps, maxWidth, xAxis, yAxis, valueFormatter, height, }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default StatCard;
|
|
@@ -3,7 +3,6 @@ import { FoundationTokenType } from '../../tokens/theme.token';
|
|
|
3
3
|
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
4
4
|
export type TopbarState = 'default' | 'hover' | 'active';
|
|
5
5
|
export type TopbarTokensType = {
|
|
6
|
-
height: CSSObject['height'];
|
|
7
6
|
position: CSSObject['position'];
|
|
8
7
|
top: CSSObject['top'];
|
|
9
8
|
zIndex: CSSObject['zIndex'];
|
package/dist/main.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './components/Slider';
|
|
|
30
30
|
export * from './components/ProgressBar';
|
|
31
31
|
export * from './components/Drawer';
|
|
32
32
|
export * from './components/Skeleton';
|
|
33
|
+
export * from './components/KeyValuePair';
|
|
33
34
|
export * from './components/ButtonGroup';
|
|
34
35
|
export * from './components/Button';
|
|
35
36
|
export * from './context';
|