@juspay/blend-design-system 0.0.5-beta.1 → 0.0.6
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.
|
@@ -2,5 +2,8 @@ import { AccordionItemProps, AccordionType, AccordionChevronPosition } from './t
|
|
|
2
2
|
declare const AccordionItem: import('react').ForwardRefExoticComponent<AccordionItemProps & {
|
|
3
3
|
accordionType?: AccordionType;
|
|
4
4
|
chevronPosition?: AccordionChevronPosition;
|
|
5
|
+
isFirst?: boolean;
|
|
6
|
+
isLast?: boolean;
|
|
7
|
+
isIntermediate?: boolean;
|
|
5
8
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
9
|
export default AccordionItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
2
|
import { AccordionType } from './types';
|
|
3
3
|
import { FoundationTokenType } from '../../tokens/theme.token';
|
|
4
|
+
import { BreakpointType } from '../../breakpoints/breakPoints';
|
|
4
5
|
export type AccordionState = 'default' | 'hover' | 'active' | 'disabled' | 'open' | 'closed';
|
|
5
6
|
export type AccordionTokenType = {
|
|
6
7
|
gap: {
|
|
@@ -46,4 +47,7 @@ export type AccordionTokenType = {
|
|
|
46
47
|
};
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
|
-
export
|
|
50
|
+
export type ResponsiveAccordionTokens = {
|
|
51
|
+
[key in keyof BreakpointType]: AccordionTokenType;
|
|
52
|
+
};
|
|
53
|
+
export declare const getAccordionToken: (foundationToken: FoundationTokenType) => ResponsiveAccordionTokens;
|
|
@@ -22,7 +22,7 @@ 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
24
|
import { CalendarTokenType } from '../components/DateRangePicker/dateRangePicker.tokens';
|
|
25
|
-
import {
|
|
25
|
+
import { ResponsiveAccordionTokens } from '../components/Accordion/accordion.tokens';
|
|
26
26
|
import { StatCardTokenType } from '../components/StatCard/statcard.tokens';
|
|
27
27
|
import { ProgressBarTokenType } from '../components/ProgressBar/progressbar.tokens';
|
|
28
28
|
import { DrawerTokensType } from '../components/Drawer/drawer.tokens';
|
|
@@ -53,7 +53,7 @@ export type ComponentTokenType = {
|
|
|
53
53
|
SINGLE_SELECT?: ResponsiveSingleSelectTokens;
|
|
54
54
|
TABLE?: TableTokenType;
|
|
55
55
|
CALENDAR?: CalendarTokenType;
|
|
56
|
-
ACCORDION?:
|
|
56
|
+
ACCORDION?: ResponsiveAccordionTokens;
|
|
57
57
|
STAT_CARD?: StatCardTokenType;
|
|
58
58
|
PROGRESS_BAR?: ProgressBarTokenType;
|
|
59
59
|
DRAWER?: DrawerTokensType;
|
|
@@ -22,9 +22,9 @@ 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
24
|
import { CalendarTokenType } from '../components/DateRangePicker/dateRangePicker.tokens';
|
|
25
|
-
import {
|
|
25
|
+
import { ResponsiveAccordionTokens } from '../components/Accordion/accordion.tokens';
|
|
26
26
|
import { StatCardTokenType } from '../components/StatCard/statcard.tokens';
|
|
27
27
|
import { ProgressBarTokenType } from '../components/ProgressBar/progressbar.tokens';
|
|
28
28
|
import { DrawerTokensType } from '../components/Drawer/drawer.tokens';
|
|
29
29
|
import { ResponsiveSingleSelectTokens } from '../components/SingleSelect/singleSelect.tokens';
|
|
30
|
-
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 |
|
|
30
|
+
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 | StatCardTokenType | ProgressBarTokenType | DrawerTokensType;
|