@juspay/blend-design-system 0.0.9 → 0.0.10

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.
@@ -1 +1 @@
1
- [data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{display:none}.gradient-blur{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0}.gradient-blur>div,.gradient-blur:before,.gradient-blur:after{position:absolute;top:0;right:0;bottom:0;left:0}.gradient-blur:before{content:"";z-index:30;-webkit-backdrop-filter:blur(.5px);backdrop-filter:blur(.5px);mask:linear-gradient(to top,rgba(0,0,0,0) 0%,rgba(0,0,0,1) 12.5%,rgba(0,0,0,1) 25%,rgba(0,0,0,0) 37.5%)}.gradient-blur>div:nth-of-type(1){z-index:32;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);mask:linear-gradient(to top,rgba(0,0,0,0) 12.5%,rgba(0,0,0,1) 25%,rgba(0,0,0,1) 37.5%,rgba(0,0,0,0) 50%)}.gradient-blur>div:nth-of-type(2){z-index:33;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);mask:linear-gradient(to top,rgba(0,0,0,0) 25%,rgba(0,0,0,1) 37.5%,rgba(0,0,0,1) 50%,rgba(0,0,0,0) 62.5%)}.gradient-blur>div:nth-of-type(3){z-index:34;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);mask:linear-gradient(to top,rgba(0,0,0,0) 37.5%,rgba(0,0,0,1) 50%,rgba(0,0,0,1) 62.5%,rgba(0,0,0,0) 75%)}.gradient-blur>div:nth-of-type(4){z-index:35;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);mask:linear-gradient(to top,rgba(0,0,0,0) 50%,rgba(0,0,0,1) 62.5%,rgba(0,0,0,1) 75%,rgba(0,0,0,0) 87.5%)}.gradient-blur>div:nth-of-type(5){z-index:36;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);mask:linear-gradient(to top,rgba(0,0,0,0) 62.5%,rgba(0,0,0,1) 75%,rgba(0,0,0,1) 87.5%,rgba(0,0,0,0) 100%)}.gradient-blur>div:nth-of-type(6){z-index:37;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);mask:linear-gradient(to top,rgba(0,0,0,0) 75%,rgba(0,0,0,1) 87.5%,rgba(0,0,0,1) 100%)}.gradient-blur:after{content:"";z-index:38;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);mask:linear-gradient(to top,rgba(0,0,0,0) 87.5%,rgba(0,0,0,1) 100%)}
1
+ [data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{display:none}
@@ -76,6 +76,8 @@ export type ChartHeaderProps = {
76
76
  onExitFullscreen?: () => void;
77
77
  isFullscreen?: boolean;
78
78
  isSmallScreen?: boolean;
79
+ isExpanded: boolean;
80
+ setIsExpanded: (isExpanded: boolean) => void;
79
81
  };
80
82
  export type ChartLegendsProps = {
81
83
  chartContainerRef: React.RefObject<HTMLDivElement>;
@@ -6,6 +6,7 @@ type CalendarGridProps = {
6
6
  allowSingleDateSelection?: boolean;
7
7
  disableFutureDates?: boolean;
8
8
  disablePastDates?: boolean;
9
+ showDateTimePicker?: boolean;
9
10
  };
10
11
  declare const CalendarGrid: import('react').ForwardRefExoticComponent<CalendarGridProps & import('react').RefAttributes<HTMLDivElement>>;
11
12
  export default CalendarGrid;
@@ -1,7 +1,10 @@
1
+ import { default as React } from 'react';
1
2
  type TimeSelectorProps = {
2
3
  value: string;
3
4
  onChange: (time: string) => void;
4
5
  className?: string;
6
+ autoFocus?: boolean;
7
+ tabIndex?: number;
5
8
  };
6
- declare const TimeSelector: import('react').ForwardRefExoticComponent<TimeSelectorProps & import('react').RefAttributes<HTMLDivElement>>;
9
+ declare const TimeSelector: React.ForwardRefExoticComponent<TimeSelectorProps & React.RefAttributes<HTMLDivElement>>;
7
10
  export default TimeSelector;
@@ -1,5 +1,6 @@
1
1
  import { CSSObject } from 'styled-components';
2
2
  import { FoundationTokenType } from '../../tokens/theme.token';
3
+ import { BreakpointType } from '../../breakpoints/breakPoints';
3
4
  export type CalendarTokenType = {
4
5
  quickRange: {
5
6
  width: CSSObject['width'];
@@ -176,8 +177,12 @@ export type CalendarTokenType = {
176
177
  gap: CSSObject['gap'];
177
178
  label: {
178
179
  color: CSSObject['color'];
179
- minWidth: CSSObject['minWidth'];
180
+ width: CSSObject['width'];
181
+ fontSize: CSSObject['fontSize'];
182
+ fontWeight: CSSObject['fontWeight'];
180
183
  };
184
+ fontSize: CSSObject['fontSize'];
185
+ fontWeight: CSSObject['fontWeight'];
181
186
  };
182
187
  };
183
188
  calendarGrid: {
@@ -197,6 +202,7 @@ export type CalendarTokenType = {
197
202
  container: {
198
203
  position: CSSObject['position'];
199
204
  height: CSSObject['height'];
205
+ marginBottom: CSSObject['marginBottom'];
200
206
  };
201
207
  };
202
208
  week: {
@@ -204,6 +210,12 @@ export type CalendarTokenType = {
204
210
  display: CSSObject['display'];
205
211
  gridTemplateColumns: CSSObject['gridTemplateColumns'];
206
212
  padding: CSSObject['padding'];
213
+ gap: CSSObject['gap'];
214
+ };
215
+ container: {
216
+ display: CSSObject['display'];
217
+ flexDirection: CSSObject['flexDirection'];
218
+ gap: CSSObject['gap'];
207
219
  };
208
220
  header: {
209
221
  display: CSSObject['display'];
@@ -219,6 +231,9 @@ export type CalendarTokenType = {
219
231
  };
220
232
  dayName: {
221
233
  padding: CSSObject['padding'];
234
+ fontSize: CSSObject['fontSize'];
235
+ fontWeight: CSSObject['fontWeight'];
236
+ color: CSSObject['color'];
222
237
  };
223
238
  };
224
239
  day: {
@@ -229,10 +244,17 @@ export type CalendarTokenType = {
229
244
  position: CSSObject['position'];
230
245
  fontWeight: CSSObject['fontWeight'];
231
246
  boxSizing: CSSObject['boxSizing'];
232
- border: CSSObject['border'];
247
+ outline: CSSObject['outline'];
248
+ fontSize: CSSObject['fontSize'];
249
+ lineHeight: CSSObject['lineHeight'];
250
+ display: CSSObject['display'];
251
+ alignItems: CSSObject['alignItems'];
252
+ justifyContent: CSSObject['justifyContent'];
253
+ width: CSSObject['width'];
254
+ height: CSSObject['height'];
233
255
  };
234
256
  hover: {
235
- border: CSSObject['border'];
257
+ outline: CSSObject['outline'];
236
258
  borderRadius: CSSObject['borderRadius'];
237
259
  };
238
260
  empty: {
@@ -280,4 +302,7 @@ export type CalendarTokenType = {
280
302
  };
281
303
  };
282
304
  };
283
- export declare const getCalendarToken: (foundationToken: FoundationTokenType) => CalendarTokenType;
305
+ export type ResponsiveCalendarTokens = {
306
+ [key in keyof BreakpointType]: CalendarTokenType;
307
+ };
308
+ export declare const getCalendarToken: (foundationToken: FoundationTokenType) => ResponsiveCalendarTokens;
@@ -23,7 +23,7 @@ export type DateRange = {
23
23
  export type DateRangePickerProps = {
24
24
  value?: DateRange;
25
25
  onChange?: (range: DateRange) => void;
26
- showTimePicker?: boolean;
26
+ showDateTimePicker?: boolean;
27
27
  showPresets?: boolean;
28
28
  placeholder?: string;
29
29
  isDisabled?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { TextInputSize } from '../TextInput/types';
2
2
  import { SelectMenuGroupType } from '../../Select/types';
3
3
  export declare enum DropdownInputSize {
4
+ SM = "sm",
4
5
  MD = "md",
5
6
  LG = "lg"
6
7
  }
@@ -1,5 +1,6 @@
1
1
  import { TextInputSize } from '../TextInput/types';
2
2
  export declare enum MultiValueInputSize {
3
+ SM = "sm",
3
4
  MD = "md",
4
5
  LG = "lg"
5
6
  }
@@ -2,6 +2,7 @@ import { CSSObject } from 'styled-components';
2
2
  import { FoundationTokenType } from '../../../tokens/theme.token';
3
3
  import { BreakpointType } from '../../../breakpoints/breakPoints';
4
4
  declare enum TextInputSize {
5
+ SM = "sm",
5
6
  MD = "md",
6
7
  LG = "lg"
7
8
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum TextInputSize {
2
+ SMALL = "sm",
2
3
  MEDIUM = "md",
3
4
  LARGE = "lg"
4
5
  }
@@ -1,6 +1,6 @@
1
1
  import { PopoverProps } from './types';
2
2
  declare const Popover: {
3
- ({ heading, description, trigger, children, showCloseButton, onOpenChange, open, asModal, primaryAction, secondaryAction, sideOffset, side, align, alignOffset, width, minWidth, maxWidth, height, minHeight, maxHeight, zIndex, size, onClose, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ heading, description, trigger, children, showCloseButton, onOpenChange, open, asModal, primaryAction, secondaryAction, sideOffset, side, align, alignOffset, width, minWidth, maxWidth, height, minHeight, maxHeight, zIndex, size, onClose, shadow, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  export default Popover;
@@ -4,7 +4,7 @@ import { FoundationTokenType } from '../../tokens/theme.token';
4
4
  export type PopoverTokenType = {
5
5
  background: CSSObject['backgroundColor'];
6
6
  border: CSSObject['border'];
7
- shadow: CSSObject['boxShadow'];
7
+ shadow: FoundationTokenType['shadows'];
8
8
  gap: CSSObject['gap'];
9
9
  zIndex: CSSObject['zIndex'];
10
10
  borderRadius: CSSObject['borderRadius'];
@@ -28,4 +28,5 @@ export type PopoverProps = {
28
28
  zIndex?: number;
29
29
  size?: PopoverSize;
30
30
  onClose?: () => void;
31
+ shadow?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
31
32
  };
@@ -14,6 +14,7 @@ type PrimitiveInputProps = StateStyles & {
14
14
  color?: CSSObject['color'];
15
15
  fontSize?: CSSObject['fontSize'];
16
16
  fontWeight?: CSSObject['fontWeight'];
17
+ lineHeight?: CSSObject['lineHeight'];
17
18
  position?: CSSObject['position'];
18
19
  inset?: CSSObject['inset'];
19
20
  top?: CSSObject['top'];
@@ -1,44 +1,20 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DirectoryData } from '../Directory/types';
3
- export type SidebarNavItem = {
4
- label: string;
5
- leftSlot?: ReactNode;
6
- rightSlot?: ReactNode;
7
- onClick?: () => void;
8
- };
9
- export type SidebarNavSection = {
10
- label?: string;
11
- navItems: SidebarNavItem[];
12
- };
13
- export type MerchantData = {
14
- label: string;
15
- sections: SidebarNavSection[];
16
- };
17
- export type TenantData = {
3
+ export type LeftPanelItem = {
18
4
  label: string;
19
5
  icon: ReactNode;
20
- merchantData: MerchantData[];
6
+ value?: string;
21
7
  };
22
- type TenantInfo = {
23
- label: string;
24
- icon: ReactNode;
25
- id?: string;
26
- };
27
- type MerchantInfo = {
28
- label: string;
29
- icon: ReactNode;
30
- id?: string;
8
+ export type LeftPanelInfo = {
9
+ items: LeftPanelItem[];
10
+ selected: string;
11
+ onSelect: (value: string) => void;
31
12
  };
32
13
  export type SidebarProps = {
33
- tenants: TenantInfo[];
34
- merchants: MerchantInfo[];
35
14
  children: ReactNode;
36
15
  data: DirectoryData[];
16
+ leftPanel?: LeftPanelInfo;
37
17
  topbar: ReactNode;
38
- activeTenant?: string;
39
- setActiveTenant?: (tenant: string) => void;
40
- activeMerchant?: string;
41
- setActiveMerchant?: (merchant: string) => void;
42
18
  footer?: ReactNode;
19
+ sidebarTopSlot?: ReactNode;
43
20
  };
44
- export {};
@@ -23,6 +23,9 @@ export type SingleSelectTokensType = {
23
23
  container: {
24
24
  [key in TriggerStates]: CSSObject['backgroundColor'];
25
25
  };
26
+ 'no-container': {
27
+ [key in TriggerStates]: CSSObject['backgroundColor'];
28
+ };
26
29
  };
27
30
  outline: {
28
31
  [key in SelectMenuVariant]: {
@@ -53,7 +53,7 @@ export type SelectMenuItemType = {
53
53
  subMenu?: SelectMenuItemType[];
54
54
  };
55
55
  export type SingleSelectProps = {
56
- label: string;
56
+ label?: string;
57
57
  subLabel?: string;
58
58
  hintText?: string;
59
59
  required?: boolean;
@@ -21,7 +21,7 @@ import { PopoverTokenType } from '../components/Popover/popover.tokens';
21
21
  import { ResponsiveMenuTokensType } from '../components/Menu/menu.tokens';
22
22
  import { ResponsiveMultiSelectTokens } from '../components/MultiSelect/multiSelect.tokens';
23
23
  import { TableTokenType } from '../components/DataTable/dataTable.tokens';
24
- import { CalendarTokenType } from '../components/DateRangePicker/dateRangePicker.tokens';
24
+ import { ResponsiveCalendarTokens } from '../components/DateRangePicker/dateRangePicker.tokens';
25
25
  import { ResponsiveAccordionTokens } from '../components/Accordion/accordion.tokens';
26
26
  import { ResponsiveStatCardTokens } from '../components/StatCard/statcard.tokens';
27
27
  import { ProgressBarTokenType } from '../components/ProgressBar/progressbar.tokens';
@@ -54,7 +54,7 @@ export type ComponentTokenType = {
54
54
  MULTI_SELECT?: ResponsiveMultiSelectTokens;
55
55
  SINGLE_SELECT?: ResponsiveSingleSelectTokens;
56
56
  TABLE?: TableTokenType;
57
- CALENDAR?: CalendarTokenType;
57
+ CALENDAR?: ResponsiveCalendarTokens;
58
58
  ACCORDION?: ResponsiveAccordionTokens;
59
59
  STAT_CARD?: ResponsiveStatCardTokens;
60
60
  PROGRESS_BAR?: ProgressBarTokenType;
@@ -21,7 +21,7 @@ import { PopoverTokenType } from '../components/Popover/popover.tokens';
21
21
  import { ResponsiveMenuTokensType } from '../components/Menu/menu.tokens';
22
22
  import { ResponsiveMultiSelectTokens } from '../components/MultiSelect/multiSelect.tokens';
23
23
  import { TableTokenType } from '../components/DataTable/dataTable.tokens';
24
- import { CalendarTokenType } from '../components/DateRangePicker/dateRangePicker.tokens';
24
+ import { ResponsiveCalendarTokens } from '../components/DateRangePicker/dateRangePicker.tokens';
25
25
  import { ResponsiveAccordionTokens } from '../components/Accordion/accordion.tokens';
26
26
  import { ResponsiveStatCardTokens } from '../components/StatCard/statcard.tokens';
27
27
  import { ProgressBarTokenType } from '../components/ProgressBar/progressbar.tokens';
@@ -29,4 +29,4 @@ import { DrawerTokensType } from '../components/Drawer/drawer.tokens';
29
29
  import { ResponsiveSingleSelectTokens } from '../components/SingleSelect/singleSelect.tokens';
30
30
  import { ResponsiveChartTokens } from '../components/Charts/chart.tokens';
31
31
  import { ResponsiveSnackbarTokens } from '../components/Snackbar/snackbar.tokens';
32
- export declare const useComponentToken: (component: keyof ComponentTokenType) => SearchInputTokensType | ResponsiveTagTokens | ResponsiveTextAreaTokens | ResponsiveTextInputTokens | ResponsiveNumberInputTokens | ResponsiveAlertTokens | ResponsiveRadioTokens | OTPInputTokensType | ResponsiveUnitInputTokens | MultiValueInputTokensType | ResponsiveSwitchTokens | ResponsiveCheckboxTokens | ResponsiveTabsTokens | TooltipTokensType | ResponsiveDropdownInputTokens | ResponsiveButtonTokens | ModalTokensType | ResponsiveBreadcrumbTokens | PopoverTokenType | ResponsiveMenuTokensType | ResponsiveMultiSelectTokens | ResponsiveSingleSelectTokens | TableTokenType | CalendarTokenType | ResponsiveAccordionTokens | ResponsiveStatCardTokens | ProgressBarTokenType | DrawerTokensType | ResponsiveChartTokens | ResponsiveSnackbarTokens;
32
+ export declare const useComponentToken: (component: keyof ComponentTokenType) => SearchInputTokensType | ResponsiveTagTokens | ResponsiveTextAreaTokens | ResponsiveTextInputTokens | ResponsiveNumberInputTokens | ResponsiveAlertTokens | ResponsiveRadioTokens | OTPInputTokensType | ResponsiveUnitInputTokens | MultiValueInputTokensType | ResponsiveSwitchTokens | ResponsiveCheckboxTokens | ResponsiveTabsTokens | TooltipTokensType | ResponsiveDropdownInputTokens | ResponsiveButtonTokens | ModalTokensType | ResponsiveBreadcrumbTokens | PopoverTokenType | ResponsiveMenuTokensType | ResponsiveMultiSelectTokens | ResponsiveSingleSelectTokens | TableTokenType | ResponsiveCalendarTokens | ResponsiveAccordionTokens | ResponsiveStatCardTokens | ProgressBarTokenType | DrawerTokensType | ResponsiveChartTokens | ResponsiveSnackbarTokens;