@juspay/blend-design-system 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/components/AccordionV2/AccordionV2.d.ts +12 -0
  2. package/dist/components/AccordionV2/AccordionV2Chevron.d.ts +11 -0
  3. package/dist/components/AccordionV2/AccordionV2Item.d.ts +10 -0
  4. package/dist/components/AccordionV2/AccordionV2TriggerContent.d.ts +17 -0
  5. package/dist/components/AccordionV2/accordionV2.animations.d.ts +3 -0
  6. package/dist/components/AccordionV2/accordionV2.dark.tokens.d.ts +3 -0
  7. package/dist/components/AccordionV2/accordionV2.light.tokens.d.ts +3 -0
  8. package/dist/components/AccordionV2/accordionV2.tokens.d.ts +70 -0
  9. package/dist/components/AccordionV2/accordionV2.types.d.ts +34 -0
  10. package/dist/components/AccordionV2/index.d.ts +4 -0
  11. package/dist/components/AlertV2/AlertV2.d.ts +19 -0
  12. package/dist/components/AlertV2/alertV2.dark.tokens.d.ts +3 -0
  13. package/dist/components/AlertV2/alertV2.light.tokens.d.ts +3 -0
  14. package/dist/components/AlertV2/alertV2.tokens.d.ts +87 -0
  15. package/dist/components/AlertV2/alertV2.types.d.ts +54 -0
  16. package/dist/components/AlertV2/index.d.ts +3 -0
  17. package/dist/components/ButtonV2/utils.d.ts +46 -0
  18. package/dist/components/Drawer/components/DrawerBase.d.ts +1 -0
  19. package/dist/components/Inputs/TextInput/TextInput.d.ts +1 -1
  20. package/dist/components/Inputs/TextInput/types.d.ts +6 -0
  21. package/dist/components/Inputs/TextInput/utils.d.ts +6 -0
  22. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  23. package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
  24. package/dist/components/MultiSelect/types.d.ts +2 -0
  25. package/dist/components/MultiSelect/utils.d.ts +7 -1
  26. package/dist/components/MultiSelectGroup/MultiSelectGroup.d.ts +3 -0
  27. package/dist/components/MultiSelectGroup/MultiselectGroupProps.types.d.ts +7 -0
  28. package/dist/components/MultiSelectGroup/index.d.ts +3 -0
  29. package/dist/components/Primitives/Block/Block.d.ts +17 -3
  30. package/dist/components/Primitives/PrimitiveButton/PrimitiveButton.d.ts +20 -4
  31. package/dist/components/SelectorsContent/SelectorsContent.types.d.ts +45 -0
  32. package/dist/components/SelectorsContent/SelectorsLabel.d.ts +3 -0
  33. package/dist/components/SelectorsContent/SelectorsSubLabel.d.ts +6 -0
  34. package/dist/components/SelectorsContent/index.d.ts +3 -0
  35. package/dist/components/Sidebar/SidebarContent.d.ts +24 -0
  36. package/dist/components/Sidebar/SidebarFooter.d.ts +1 -0
  37. package/dist/components/Sidebar/SidebarHeader.d.ts +1 -0
  38. package/dist/components/Sidebar/TenantPanel.d.ts +1 -1
  39. package/dist/components/Sidebar/types.d.ts +1 -72
  40. package/dist/components/Sidebar/utils.d.ts +1 -7
  41. package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
  42. package/dist/components/SingleSelect/SingleSelectMenu.d.ts +2 -1
  43. package/dist/components/SingleSelect/types.d.ts +1 -0
  44. package/dist/components/SingleSelect/utils.d.ts +6 -4
  45. package/dist/components/SingleSelectGroup/SingleSelectGroup.d.ts +3 -0
  46. package/dist/components/SingleSelectGroup/SingleSelectGroupProps.types.d.ts +7 -0
  47. package/dist/components/SingleSelectGroup/index.d.ts +3 -0
  48. package/dist/components/SnackbarV2/SnackbarV2.d.ts +6 -0
  49. package/dist/components/SnackbarV2/index.d.ts +4 -0
  50. package/dist/components/SnackbarV2/snackbarV2.dark.tokens.d.ts +3 -0
  51. package/dist/components/SnackbarV2/snackbarV2.light.tokens.d.ts +3 -0
  52. package/dist/components/SnackbarV2/snackbarV2.tokens.d.ts +73 -0
  53. package/dist/components/SnackbarV2/snackbarV2.types.d.ts +56 -0
  54. package/dist/components/Switch/switch.token.d.ts +0 -1
  55. package/dist/components/SwitchV2/SwitchV2.d.ts +19 -0
  56. package/dist/components/SwitchV2/index.d.ts +3 -0
  57. package/dist/components/SwitchV2/switchV2.dark.tokens.d.ts +3 -0
  58. package/dist/components/SwitchV2/switchV2.light.tokens.d.ts +3 -0
  59. package/dist/components/SwitchV2/switchV2.tokens.d.ts +76 -0
  60. package/dist/components/SwitchV2/switchV2.types.d.ts +53 -0
  61. package/dist/components/Tabs/Tabs.d.ts +1 -0
  62. package/dist/components/Tabs/TabsList.d.ts +1 -0
  63. package/dist/components/Tabs/types.d.ts +2 -0
  64. package/dist/components/TagV2/TagV2.d.ts +4 -4
  65. package/dist/components/TagV2/TagV2.types.d.ts +11 -5
  66. package/dist/components/TagV2/tagV2.tokens.d.ts +2 -3
  67. package/dist/components/Tags/tag.dark.tokens.d.ts +3 -0
  68. package/dist/components/Tags/tag.light.tokens.d.ts +3 -0
  69. package/dist/components/TextInputGroup/TextInputGroup.d.ts +3 -0
  70. package/dist/components/TextInputGroup/TextInputGroupProps.types.d.ts +7 -0
  71. package/dist/components/TextInputGroup/index.d.ts +3 -0
  72. package/dist/components/Upload/utils.d.ts +3 -10
  73. package/dist/components/common/Seperator.d.ts +8 -0
  74. package/dist/context/ThemeContext.d.ts +10 -2
  75. package/dist/context/useComponentToken.d.ts +5 -1
  76. package/dist/global-utils/GlobalUtils.d.ts +2 -1
  77. package/dist/hooks/index.d.ts +1 -0
  78. package/dist/hooks/usePreventParentScroll.d.ts +3 -0
  79. package/dist/main.js +33058 -31079
  80. package/dist/tokens/font.tokens.d.ts +2 -0
  81. package/dist/tokens/unit.tokens.d.ts +1 -0
  82. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { AccordionV2Type } from './accordionV2.types';
2
+ import * as React from 'react';
3
+ declare const AccordionV2: React.ForwardRefExoticComponent<{
4
+ children: React.ReactNode;
5
+ accordionType?: AccordionV2Type;
6
+ defaultValue?: string | string[];
7
+ value?: string | string[];
8
+ isMultiple?: boolean;
9
+ onValueChange?: (value: string | string[]) => void;
10
+ } & import('./accordionV2.types').AccordionV2Dimensions & React.RefAttributes<HTMLDivElement>>;
11
+ export default AccordionV2;
12
+ export { AccordionV2Item } from './AccordionV2Item';
@@ -0,0 +1,11 @@
1
+ import { AccordionV2ChevronPosition } from './accordionV2.types';
2
+ import { AccordionV2TokensType } from './accordionV2.tokens';
3
+ import * as React from 'react';
4
+ type AccordionV2ChevronProps = {
5
+ isExpanded: boolean;
6
+ isDisabled: boolean;
7
+ position: AccordionV2ChevronPosition;
8
+ accordionTokens: AccordionV2TokensType;
9
+ };
10
+ export declare const AccordionV2Chevron: React.FC<AccordionV2ChevronProps>;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { AccordionV2ItemProps, AccordionV2Type, AccordionV2ChevronPosition } from './accordionV2.types';
2
+ declare const AccordionV2Item: import('react').ForwardRefExoticComponent<AccordionV2ItemProps & {
3
+ accordionType?: AccordionV2Type;
4
+ chevronPosition?: AccordionV2ChevronPosition;
5
+ isFirst?: boolean;
6
+ isLast?: boolean;
7
+ isIntermediate?: boolean;
8
+ currentValue?: string | string[];
9
+ } & import('react').RefAttributes<HTMLDivElement>>;
10
+ export { AccordionV2Item };
@@ -0,0 +1,17 @@
1
+ import { AccordionV2ChevronPosition } from './accordionV2.types';
2
+ import { AccordionV2TokensType } from './accordionV2.tokens';
3
+ import * as React from 'react';
4
+ type AccordionV2TriggerContentProps = {
5
+ title: string;
6
+ subtext?: string;
7
+ leftSlot?: React.ReactNode;
8
+ rightSlot?: React.ReactNode;
9
+ subtextSlot?: React.ReactNode;
10
+ isDisabled: boolean;
11
+ isExpanded: boolean;
12
+ chevronPosition: AccordionV2ChevronPosition;
13
+ accordionTokens: AccordionV2TokensType;
14
+ isSmallScreen: boolean;
15
+ };
16
+ export declare const AccordionV2TriggerContent: React.FC<AccordionV2TriggerContentProps>;
17
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const accordionDown: import('styled-components/dist/models/Keyframes').default;
2
+ export declare const accordionUp: import('styled-components/dist/models/Keyframes').default;
3
+ export declare const ACCORDION_TRANSITION = "all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)";
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveAccordionV2Tokens } from './accordionV2.tokens';
3
+ export declare const getAccordionV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveAccordionV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveAccordionV2Tokens } from './accordionV2.tokens';
3
+ export declare const getAccordionV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveAccordionV2Tokens;
@@ -0,0 +1,70 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { AccordionV2Type } from './accordionV2.types';
3
+ import { FoundationTokenType } from '../../tokens/theme.token';
4
+ import { BreakpointType } from '../../breakpoints/breakPoints';
5
+ import { Theme } from '../../context/theme.enum';
6
+ export type AccordionV2State = 'default' | 'hover' | 'active' | 'disabled' | 'open';
7
+ export type AccordionV2TokensType = {
8
+ gap: {
9
+ [key in AccordionV2Type]: CSSObject['gap'];
10
+ };
11
+ borderRadius: {
12
+ [key in AccordionV2Type]: CSSObject['borderRadius'];
13
+ };
14
+ trigger: {
15
+ content: {
16
+ gap: CSSObject['gap'];
17
+ };
18
+ backgroundColor: {
19
+ [key in AccordionV2Type]: {
20
+ [key in AccordionV2State]: CSSObject['backgroundColor'];
21
+ };
22
+ };
23
+ border: {
24
+ [key in AccordionV2Type]: {
25
+ [key in AccordionV2State]: CSSObject['border'];
26
+ };
27
+ };
28
+ padding: {
29
+ [key in AccordionV2Type]: CSSObject['padding'];
30
+ };
31
+ text: {
32
+ gap: CSSObject['gap'];
33
+ title: {
34
+ fontSize: CSSObject['fontSize'];
35
+ fontWeight: CSSObject['fontWeight'];
36
+ lineHeight: CSSObject['lineHeight'];
37
+ color: {
38
+ [key in AccordionV2State]: CSSObject['color'];
39
+ };
40
+ };
41
+ subtext: {
42
+ fontSize: CSSObject['fontSize'];
43
+ fontWeight: CSSObject['fontWeight'];
44
+ lineHeight: CSSObject['lineHeight'];
45
+ gap: CSSObject['gap'];
46
+ color: {
47
+ [key in AccordionV2State]: CSSObject['color'];
48
+ };
49
+ };
50
+ };
51
+ slot: {
52
+ height: CSSObject['height'];
53
+ };
54
+ };
55
+ separator: {
56
+ color: {
57
+ [key in AccordionV2Type]: CSSObject['color'];
58
+ };
59
+ };
60
+ chevron: {
61
+ height: CSSObject['height'];
62
+ color: {
63
+ [key in AccordionV2State]: CSSObject['color'];
64
+ };
65
+ };
66
+ };
67
+ export type ResponsiveAccordionV2Tokens = {
68
+ [key in keyof BreakpointType]: AccordionV2TokensType;
69
+ };
70
+ export declare const getAccordionV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveAccordionV2Tokens;
@@ -0,0 +1,34 @@
1
+ import { ReactNode } from 'react';
2
+ import { CSSObject } from 'styled-components';
3
+ export declare enum AccordionV2Type {
4
+ BORDER = "border",
5
+ NO_BORDER = "noBorder"
6
+ }
7
+ export declare enum AccordionV2ChevronPosition {
8
+ LEFT = "left",
9
+ RIGHT = "right"
10
+ }
11
+ export type AccordionV2ItemProps = {
12
+ value: string;
13
+ title: string;
14
+ subtext?: string;
15
+ leftSlot?: ReactNode;
16
+ rightSlot?: ReactNode;
17
+ subtextSlot?: ReactNode;
18
+ children: ReactNode;
19
+ isDisabled?: boolean;
20
+ chevronPosition?: AccordionV2ChevronPosition;
21
+ };
22
+ export type AccordionV2Dimensions = {
23
+ width?: CSSObject['width'];
24
+ maxWidth?: CSSObject['maxWidth'];
25
+ minWidth?: CSSObject['minWidth'];
26
+ };
27
+ export type AccordionV2Props = {
28
+ children: ReactNode;
29
+ accordionType?: AccordionV2Type;
30
+ defaultValue?: string | string[];
31
+ value?: string | string[];
32
+ isMultiple?: boolean;
33
+ onValueChange?: (value: string | string[]) => void;
34
+ } & AccordionV2Dimensions;
@@ -0,0 +1,4 @@
1
+ export { default as AccordionV2 } from './AccordionV2';
2
+ export { AccordionV2Item } from './AccordionV2Item';
3
+ export * from './accordionV2.tokens';
4
+ export * from './accordionV2.types';
@@ -0,0 +1,19 @@
1
+ import { default as React, ReactElement } from 'react';
2
+ import { AlertV2Type, AlertV2SubType, AlertV2Actions } from './alertV2.types';
3
+ import { CSSObject } from 'styled-components';
4
+ declare const AlertV2: React.ForwardRefExoticComponent<{
5
+ type?: AlertV2Type;
6
+ subType?: AlertV2SubType;
7
+ slot?: {
8
+ slot: ReactElement;
9
+ maxHeight?: CSSObject["maxHeight"];
10
+ };
11
+ heading?: string;
12
+ description?: string;
13
+ actions?: AlertV2Actions;
14
+ closeButton?: {
15
+ show?: boolean;
16
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
17
+ };
18
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "className" | "slot"> & import('./alertV2.types').AlertV2Dimensions & React.RefAttributes<HTMLDivElement>>;
19
+ export default AlertV2;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveAlertV2Tokens } from './alertV2.tokens';
3
+ export declare const getAlertV2DarkTokens: (foundationToken: FoundationTokenType) => ResponsiveAlertV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveAlertV2Tokens } from './alertV2.tokens';
3
+ export declare const getAlertV2LightTokens: (foundationToken: FoundationTokenType) => ResponsiveAlertV2Tokens;
@@ -0,0 +1,87 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { AlertV2Type, AlertV2SubType, AlertV2ActionPosition, AlertV2PaddingDirection } from './alertV2.types';
3
+ import { FoundationTokenType } from '../../tokens/theme.token';
4
+ import { BreakpointType } from '../../breakpoints/breakPoints';
5
+ import { Theme } from '../../context/theme.enum';
6
+ export type AlertV2TokensType = {
7
+ width: CSSObject['width'];
8
+ maxWidth: CSSObject['maxWidth'];
9
+ minWidth: CSSObject['minWidth'];
10
+ border: {
11
+ [key in AlertV2Type]: {
12
+ [key in AlertV2SubType]: CSSObject['color'];
13
+ };
14
+ };
15
+ borderRadius: CSSObject['borderRadius'];
16
+ backgroundColor: {
17
+ [key in AlertV2Type]: {
18
+ [key in AlertV2SubType]: CSSObject['color'];
19
+ };
20
+ };
21
+ padding: {
22
+ [key in AlertV2PaddingDirection]: CSSObject['padding'];
23
+ };
24
+ gap: {
25
+ [key in AlertV2ActionPosition]: CSSObject['gap'];
26
+ };
27
+ slot: {
28
+ maxHeight: CSSObject['maxHeight'];
29
+ };
30
+ mainContainer: {
31
+ gap: CSSObject['gap'];
32
+ content: {
33
+ gap: {
34
+ [key in AlertV2ActionPosition]: CSSObject['gap'];
35
+ };
36
+ textContainer: {
37
+ gap: CSSObject['gap'];
38
+ heading: {
39
+ color: {
40
+ [key in AlertV2Type]: CSSObject['color'];
41
+ };
42
+ fontWeight: CSSObject['fontWeight'];
43
+ fontSize: CSSObject['fontSize'];
44
+ lineHeight: CSSObject['lineHeight'];
45
+ };
46
+ description: {
47
+ color: {
48
+ [key in AlertV2Type]: CSSObject['color'];
49
+ };
50
+ fontWeight: CSSObject['fontWeight'];
51
+ fontSize: CSSObject['fontSize'];
52
+ lineHeight: CSSObject['lineHeight'];
53
+ };
54
+ };
55
+ actionContainer: {
56
+ gap: CSSObject['gap'];
57
+ primaryAction: {
58
+ color: {
59
+ [key in AlertV2Type]: CSSObject['color'];
60
+ };
61
+ fontWeight: CSSObject['fontWeight'];
62
+ fontSize: CSSObject['fontSize'];
63
+ lineHeight: CSSObject['lineHeight'];
64
+ };
65
+ secondaryAction: {
66
+ color: {
67
+ [key in AlertV2Type]: CSSObject['color'];
68
+ };
69
+ fontWeight: CSSObject['fontWeight'];
70
+ fontSize: CSSObject['fontSize'];
71
+ lineHeight: CSSObject['lineHeight'];
72
+ };
73
+ };
74
+ };
75
+ closeButton: {
76
+ color: {
77
+ [key in AlertV2Type]: CSSObject['color'];
78
+ };
79
+ height: CSSObject['height'];
80
+ width: CSSObject['width'];
81
+ };
82
+ };
83
+ };
84
+ export type ResponsiveAlertV2Tokens = {
85
+ [key in keyof BreakpointType]: AlertV2TokensType;
86
+ };
87
+ export declare const getAlertV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveAlertV2Tokens;
@@ -0,0 +1,54 @@
1
+ import { ReactElement } from 'react';
2
+ import { CSSObject } from 'styled-components';
3
+ export declare enum AlertV2PaddingDirection {
4
+ TOP = "top",
5
+ BOTTOM = "bottom",
6
+ LEFT = "left",
7
+ RIGHT = "right"
8
+ }
9
+ export declare enum AlertV2Type {
10
+ PRIMARY = "primary",
11
+ SUCCESS = "success",
12
+ WARNING = "warning",
13
+ ERROR = "error",
14
+ PURPLE = "purple",
15
+ ORANGE = "orange",
16
+ NEUTRAL = "neutral"
17
+ }
18
+ export declare enum AlertV2SubType {
19
+ SUBTLE = "subtle",
20
+ NO_FILL = "noFill"
21
+ }
22
+ export declare enum AlertV2ActionPosition {
23
+ BOTTOM = "bottom",
24
+ RIGHT = "right"
25
+ }
26
+ export type AlertV2Action = {
27
+ text: string;
28
+ onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
29
+ };
30
+ export type AlertV2Actions = {
31
+ position?: AlertV2ActionPosition;
32
+ primaryAction?: AlertV2Action;
33
+ secondaryAction?: AlertV2Action;
34
+ };
35
+ export type AlertV2Dimensions = {
36
+ width?: CSSObject['width'];
37
+ maxWidth?: CSSObject['maxWidth'];
38
+ minWidth?: CSSObject['minWidth'];
39
+ };
40
+ export type AlertV2Props = {
41
+ type?: AlertV2Type;
42
+ subType?: AlertV2SubType;
43
+ slot?: {
44
+ slot: ReactElement;
45
+ maxHeight?: CSSObject['maxHeight'];
46
+ };
47
+ heading?: string;
48
+ description?: string;
49
+ actions?: AlertV2Actions;
50
+ closeButton?: {
51
+ show?: boolean;
52
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
53
+ };
54
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, 'slot' | 'className' | 'style'> & AlertV2Dimensions;
@@ -0,0 +1,3 @@
1
+ export { default as AlertV2 } from './AlertV2';
2
+ export * from './alertV2.tokens';
3
+ export * from './alertV2.types';
@@ -0,0 +1,46 @@
1
+ import { MouseEvent } from 'react';
2
+ import { ButtonV2Size, ButtonV2State, ButtonV2SubType, ButtonV2Type } from './buttonV2.types';
3
+ import { ButtonV2TokensType } from './buttonV2.tokens';
4
+ export declare function getBorderRadius(size: ButtonV2Size, buttonType: ButtonV2Type, subType: ButtonV2SubType, buttonGroupPosition: 'center' | 'left' | 'right' | undefined, tokens: ButtonV2TokensType): string;
5
+ export declare function createButtonClickHandler(onClick?: (event?: MouseEvent<HTMLButtonElement>) => void, isSkeleton?: boolean, isDisabled?: boolean, isLoading?: boolean): (event: MouseEvent<HTMLButtonElement>) => void;
6
+ export declare function getButtonHeight(subType: ButtonV2SubType): string | undefined;
7
+ export declare function getIconMaxHeight(subType: ButtonV2SubType, leftSlotMaxHeight: string | number | undefined, rightSlotMaxHeight: string | number | undefined, size: ButtonV2Size): string;
8
+ export declare function getButtonStatus(isLoading: boolean | undefined, isDisabled: boolean | undefined): 'loading' | 'disabled' | 'enabled';
9
+ export declare function getButtonTabIndex(isDisabled: boolean, providedTabIndex?: number): number;
10
+ export declare function getSkeletonBorderRadius(size: ButtonV2Size, buttonType: ButtonV2Type, subType: ButtonV2SubType, buttonGroupPosition: 'center' | 'left' | 'right' | undefined, tokens: ButtonV2TokensType): string;
11
+ export declare function getSkeletonWidth(width?: string | number): string;
12
+ export declare function getButtonBorderStyles(buttonGroupPosition: 'center' | 'left' | 'right' | undefined, defaultBorder: string | undefined): {
13
+ border?: string;
14
+ borderTop?: string;
15
+ borderRight?: string;
16
+ borderBottom?: string;
17
+ borderLeft?: string;
18
+ };
19
+ /** Return type for getButtonStyles (explicit to avoid csstype reference in .d.ts) */
20
+ export type ButtonStylesReturn = {
21
+ background?: string;
22
+ color?: string;
23
+ border?: string;
24
+ borderTop?: string;
25
+ borderBottom?: string;
26
+ borderLeft?: string;
27
+ borderRight?: string;
28
+ cursor?: string;
29
+ _active?: Record<string, string | number | undefined>;
30
+ _hover?: Record<string, string | number | undefined>;
31
+ _focusVisible?: Record<string, string | number | undefined>;
32
+ _disabled?: Record<string, string | number | undefined>;
33
+ };
34
+ /**
35
+ * Get all button styles in one call for better performance
36
+ */
37
+ export declare function getButtonStyles(isSkeleton: boolean, isDisabled: boolean, buttonType: ButtonV2Type, subType: ButtonV2SubType, tokens: ButtonV2TokensType, buttonGroupPosition?: 'center' | 'left' | 'right'): ButtonStylesReturn;
38
+ export declare function getIconColor(isSkeleton: boolean, disabled: boolean | undefined, buttonType: ButtonV2Type, subType: ButtonV2SubType, tokens: ButtonV2TokensType): string;
39
+ export declare function getTextColor(isSkeleton: boolean, disabled: boolean | undefined, state: ButtonV2State, buttonType: ButtonV2Type, subType: ButtonV2SubType, tokens: ButtonV2TokensType): string;
40
+ export declare function getButtonPadding(size: ButtonV2Size, buttonType: ButtonV2Type, subType: ButtonV2SubType, tokens: ButtonV2TokensType): {
41
+ top: string;
42
+ right: string;
43
+ bottom: string;
44
+ left: string;
45
+ };
46
+ export declare function getButtonLineHeight(size: ButtonV2Size, tokens: ButtonV2TokensType): string;
@@ -16,6 +16,7 @@ export declare const DrawerContent: React.ForwardRefExoticComponent<DrawerConten
16
16
  contentDriven?: boolean;
17
17
  width?: string | number;
18
18
  maxWidth?: string | number;
19
+ offSet?: string | number;
19
20
  mobileOffset?: {
20
21
  top?: string;
21
22
  bottom?: string;
@@ -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, cursor, id: providedId, passwordToggle, type: providedType, ...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, id: providedId, passwordToggle, type: providedType, textInputGroupPosition, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TextInput;
@@ -10,6 +10,11 @@ export declare enum TextInputState {
10
10
  ERROR = "error",
11
11
  DISABLED = "disabled"
12
12
  }
13
+ export declare enum TextInputGroupPosition {
14
+ CENTER = "center",
15
+ LEFT = "left",
16
+ RIGHT = "right"
17
+ }
13
18
  export type TextInputProps = {
14
19
  label?: string;
15
20
  sublabel?: string;
@@ -26,4 +31,5 @@ export type TextInputProps = {
26
31
  onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
27
32
  cursor?: 'text' | 'pointer' | 'default' | 'not-allowed';
28
33
  passwordToggle?: boolean;
34
+ textInputGroupPosition?: TextInputGroupPosition;
29
35
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onBlur' | 'onFocus'>;
@@ -0,0 +1,6 @@
1
+ import { TextInputTokensType } from './textInput.tokens';
2
+ import { TextInputGroupPosition, TextInputSize } from './types';
3
+ export declare const getTextInputBorderRadius: (size: TextInputSize, textInputGroupPosition: TextInputGroupPosition | undefined, tokens: TextInputTokensType) => {
4
+ borderRadius: string;
5
+ borderRight?: string;
6
+ };
@@ -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, minMenuWidth, maxMenuWidth, maxMenuHeight, alignment, side, sideOffset, alignOffset, inline, onBlur, onFocus, error, errorMessage, showActionButtons, primaryAction, secondaryAction, showItemDividers, showHeaderBorder, fullWidth, enableVirtualization, virtualListItemHeight, virtualListOverscan, itemsToRender, onEndReached, endReachedThreshold, hasMore, loadingComponent, skeleton, maxTriggerWidth, minTriggerWidth, allowCustomValue, customValueLabel, showClearButton, onClearAllClick, onOpenChange, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
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, enableVirtualization, virtualListItemHeight, virtualListOverscan, itemsToRender, onEndReached, endReachedThreshold, hasMore, loadingComponent, skeleton, maxTriggerWidth, minTriggerWidth, allowCustomValue, customValueLabel, showClearButton, onClearAllClick, onOpenChange, multiSelectGroupPosition, }: 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, minMenuWidth, maxMenuWidth, maxMenuHeight, disabled, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, onSelectAll, alignment, side, sideOffset, alignOffset, open, onOpenChange, showActionButtons, primaryAction, secondaryAction, enableVirtualization, virtualListItemHeight, virtualListOverscan, onEndReached, endReachedThreshold, hasMore, skeleton, size, variant, allowCustomValue, customValueLabel, menuId, }: MultiSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const MultiSelectMenu: ({ items, selected, onSelect, trigger, minMenuWidth, maxMenuWidth, maxMenuHeight, disabled, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, onSelectAll, alignment, side, sideOffset, alignOffset, collisionBoundary, open, onOpenChange, showActionButtons, primaryAction, secondaryAction, enableVirtualization, virtualListItemHeight, virtualListOverscan, onEndReached, endReachedThreshold, hasMore, skeleton, size, variant, allowCustomValue, customValueLabel, menuId, }: MultiSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MultiSelectMenu;
@@ -126,6 +126,7 @@ export type MultiSelectProps = {
126
126
  customValueLabel?: string;
127
127
  showClearButton?: boolean;
128
128
  onClearAllClick?: () => void;
129
+ multiSelectGroupPosition?: 'center' | 'left' | 'right';
129
130
  };
130
131
  export type MultiSelectMenuProps = {
131
132
  items: MultiSelectMenuGroupType[];
@@ -175,4 +176,5 @@ export type MultiSelectMenuProps = {
175
176
  allowCustomValue?: boolean;
176
177
  customValueLabel?: string;
177
178
  menuId?: string;
179
+ collisionBoundary?: Element | null | Array<Element | null>;
178
180
  };
@@ -1,8 +1,14 @@
1
- import { MultiSelectMenuGroupType, MultiSelectMenuItemType } from './types';
1
+ import { MultiSelectTokensType } from './multiSelect.tokens';
2
+ import { MultiSelectMenuSize, MultiSelectVariant, MultiSelectMenuGroupType, MultiSelectMenuItemType } from './types';
2
3
  export declare const getSelectAllState: (selected: string[], availableValues: string[]) => {
3
4
  allSelected: boolean;
4
5
  someSelected: boolean;
5
6
  };
7
+ export declare function getMultiSelectBorderRadius(size: MultiSelectMenuSize, varient: MultiSelectVariant, multiSelectGroupPosition: 'center' | 'left' | 'right' | undefined, tokens: MultiSelectTokensType, shouldShowClearButton: boolean): string;
8
+ export declare function getMultiSelectCrossBorderRadius(size: MultiSelectMenuSize, varient: MultiSelectVariant, multiSelectGroupPosition: 'center' | 'left' | 'right' | undefined, tokens: MultiSelectTokensType): {
9
+ borderRadius: string;
10
+ borderRight?: string;
11
+ };
6
12
  export declare const map: (groups: MultiSelectMenuGroupType[]) => Record<string, string>;
7
13
  export declare const getAllValues: (groups: MultiSelectMenuGroupType[]) => string[];
8
14
  export declare const handleSelectAll: (selectAll: boolean, items: MultiSelectMenuGroupType[], selectedValues: string[], onChange: (value: string) => void) => void;
@@ -0,0 +1,3 @@
1
+ import { MultiSelectGroupProps } from './MultiselectGroupProps.types';
2
+ declare const MultiSelectGroup: import('react').ForwardRefExoticComponent<MultiSelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default MultiSelectGroup;
@@ -0,0 +1,7 @@
1
+ import { ReactElement } from 'react';
2
+ import { MultiSelectProps } from '../MultiSelect/types';
3
+ export type MultiSelectGroupProps = {
4
+ stacked?: boolean;
5
+ gap?: string | number;
6
+ children: ReactElement<MultiSelectProps> | ReactElement<MultiSelectProps>[];
7
+ };
@@ -0,0 +1,3 @@
1
+ import { default as MultiSelectGroup } from './MultiSelectGroup';
2
+ export { MultiSelectGroup };
3
+ export type * from './/MultiselectGroupProps.types';
@@ -78,7 +78,6 @@ type StyledBlockProps = StateStyles & {
78
78
  overflowX?: CSSObject['overflowX'];
79
79
  overflowY?: CSSObject['overflowY'];
80
80
  whiteSpace?: CSSObject['whiteSpace'];
81
- transition?: CSSObject['transition'];
82
81
  contentCentered?: boolean;
83
82
  cursor?: CSSObject['cursor'];
84
83
  fontSize?: CSSObject['fontSize'];
@@ -89,8 +88,16 @@ type StyledBlockProps = StateStyles & {
89
88
  textTransform?: CSSObject['textTransform'];
90
89
  textOverflow?: CSSObject['textOverflow'];
91
90
  userSelect?: CSSObject['userSelect'];
91
+ transform?: CSSObject['transform'];
92
+ willChange?: CSSObject['willChange'];
93
+ transformOrigin?: CSSObject['transformOrigin'];
94
+ backfaceVisibility?: CSSObject['backfaceVisibility'];
95
+ transition?: CSSObject['transition'];
96
+ transitionDuration?: CSSObject['transitionDuration'];
97
+ transitionTimingFunction?: CSSObject['transitionTimingFunction'];
98
+ transitionDelay?: CSSObject['transitionDelay'];
92
99
  };
93
- type SemanticTagType = keyof Pick<JSX.IntrinsicElements, 'div' | 'section' | 'article' | 'header' | 'footer' | 'main' | 'span' | 'nav' | 'hr'>;
100
+ type SemanticTagType = keyof Pick<JSX.IntrinsicElements, 'div' | 'section' | 'article' | 'header' | 'footer' | 'main' | 'span' | 'nav' | 'hr' | 'label'>;
94
101
  export type BlockProps = StyledBlockProps & Omit<React.HTMLAttributes<HTMLElement>, 'as' | 'color'> & {
95
102
  children?: React.ReactNode;
96
103
  as?: SemanticTagType;
@@ -173,7 +180,6 @@ declare const Block: React.ForwardRefExoticComponent<StateStyles & {
173
180
  overflowX?: CSSObject["overflowX"];
174
181
  overflowY?: CSSObject["overflowY"];
175
182
  whiteSpace?: CSSObject["whiteSpace"];
176
- transition?: CSSObject["transition"];
177
183
  contentCentered?: boolean;
178
184
  cursor?: CSSObject["cursor"];
179
185
  fontSize?: CSSObject["fontSize"];
@@ -184,6 +190,14 @@ declare const Block: React.ForwardRefExoticComponent<StateStyles & {
184
190
  textTransform?: CSSObject["textTransform"];
185
191
  textOverflow?: CSSObject["textOverflow"];
186
192
  userSelect?: CSSObject["userSelect"];
193
+ transform?: CSSObject["transform"];
194
+ willChange?: CSSObject["willChange"];
195
+ transformOrigin?: CSSObject["transformOrigin"];
196
+ backfaceVisibility?: CSSObject["backfaceVisibility"];
197
+ transition?: CSSObject["transition"];
198
+ transitionDuration?: CSSObject["transitionDuration"];
199
+ transitionTimingFunction?: CSSObject["transitionTimingFunction"];
200
+ transitionDelay?: CSSObject["transitionDelay"];
187
201
  } & Omit<React.HTMLAttributes<HTMLElement>, "color" | "as"> & {
188
202
  children?: React.ReactNode;
189
203
  as?: SemanticTagType;
@@ -32,6 +32,7 @@ type PrimitiveButtonProps = StateStyles & {
32
32
  maxWidth?: CSSObject['maxWidth'];
33
33
  minHeight?: CSSObject['minHeight'];
34
34
  maxHeight?: CSSObject['maxHeight'];
35
+ opacity?: CSSObject['opacity'];
35
36
  flexGrow?: CSSObject['flexGrow'];
36
37
  flexShrink?: CSSObject['flexShrink'];
37
38
  flexBasis?: CSSObject['flexBasis'];
@@ -62,15 +63,22 @@ type PrimitiveButtonProps = StateStyles & {
62
63
  outlineStyle?: CSSObject['outlineStyle'];
63
64
  outlineWidth?: CSSObject['outlineWidth'];
64
65
  outlineColor?: CSSObject['outlineColor'];
65
- transform?: CSSObject['transform'];
66
- transition?: CSSObject['transition'];
67
66
  disabled?: boolean;
68
67
  fontWeight?: CSSObject['fontWeight'];
68
+ lineHeight?: CSSObject['lineHeight'];
69
69
  fontSize?: CSSObject['fontSize'];
70
70
  fontFamily?: CSSObject['fontFamily'];
71
71
  textDecoration?: CSSObject['textDecoration'];
72
72
  textUnderlineOffset?: CSSObject['textUnderlineOffset'];
73
73
  textTransform?: CSSObject['textTransform'];
74
+ willChange?: CSSObject['willChange'];
75
+ transformOrigin?: CSSObject['transformOrigin'];
76
+ backfaceVisibility?: CSSObject['backfaceVisibility'];
77
+ transform?: CSSObject['transform'];
78
+ transition?: CSSObject['transition'];
79
+ transitionDuration?: CSSObject['transitionDuration'];
80
+ transitionTimingFunction?: CSSObject['transitionTimingFunction'];
81
+ transitionDelay?: CSSObject['transitionDelay'];
74
82
  };
75
83
  export type ButtonProps = PrimitiveButtonProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'> & {
76
84
  children?: React.ReactNode;
@@ -98,6 +106,7 @@ declare const PrimitiveButton: React.ForwardRefExoticComponent<StateStyles & {
98
106
  maxWidth?: CSSObject["maxWidth"];
99
107
  minHeight?: CSSObject["minHeight"];
100
108
  maxHeight?: CSSObject["maxHeight"];
109
+ opacity?: CSSObject["opacity"];
101
110
  flexGrow?: CSSObject["flexGrow"];
102
111
  flexShrink?: CSSObject["flexShrink"];
103
112
  flexBasis?: CSSObject["flexBasis"];
@@ -128,15 +137,22 @@ declare const PrimitiveButton: React.ForwardRefExoticComponent<StateStyles & {
128
137
  outlineStyle?: CSSObject["outlineStyle"];
129
138
  outlineWidth?: CSSObject["outlineWidth"];
130
139
  outlineColor?: CSSObject["outlineColor"];
131
- transform?: CSSObject["transform"];
132
- transition?: CSSObject["transition"];
133
140
  disabled?: boolean;
134
141
  fontWeight?: CSSObject["fontWeight"];
142
+ lineHeight?: CSSObject["lineHeight"];
135
143
  fontSize?: CSSObject["fontSize"];
136
144
  fontFamily?: CSSObject["fontFamily"];
137
145
  textDecoration?: CSSObject["textDecoration"];
138
146
  textUnderlineOffset?: CSSObject["textUnderlineOffset"];
139
147
  textTransform?: CSSObject["textTransform"];
148
+ willChange?: CSSObject["willChange"];
149
+ transformOrigin?: CSSObject["transformOrigin"];
150
+ backfaceVisibility?: CSSObject["backfaceVisibility"];
151
+ transform?: CSSObject["transform"];
152
+ transition?: CSSObject["transition"];
153
+ transitionDuration?: CSSObject["transitionDuration"];
154
+ transitionTimingFunction?: CSSObject["transitionTimingFunction"];
155
+ transitionDelay?: CSSObject["transitionDelay"];
140
156
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
141
157
  children?: React.ReactNode;
142
158
  } & React.RefAttributes<HTMLButtonElement>>;