@newtonschool/grauity 3.2.0-beta.0 → 3.2.0
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/common/types.d.ts +2 -2
- package/dist/index.d.ts +216 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/ui/elements/Accordion/types.d.ts +3 -3
- package/dist/ui/elements/Alert/constants.d.ts +0 -98
- package/dist/ui/elements/Alert/constants.d.ts.map +1 -1
- package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +1 -1
- package/dist/ui/elements/AlertBanner/types.d.ts +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts +4 -4
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/types.d.ts +3 -3
- package/dist/ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.styles.d.ts.map +1 -1
- package/dist/ui/elements/Drawer/Drawer.d.ts +5 -0
- package/dist/ui/elements/Drawer/Drawer.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/Drawer.styles.d.ts +5 -0
- package/dist/ui/elements/Drawer/Drawer.styles.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/constants.d.ts +2 -0
- package/dist/ui/elements/Drawer/constants.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/index.d.ts +3 -0
- package/dist/ui/elements/Drawer/index.d.ts.map +1 -0
- package/dist/ui/elements/Drawer/types.d.ts +70 -0
- package/dist/ui/elements/Drawer/types.d.ts.map +1 -0
- package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/ui/elements/DropdownMenu/types.d.ts +3 -0
- package/dist/ui/elements/DropdownMenu/types.d.ts.map +1 -1
- package/dist/ui/elements/DropdownMenu/utils.d.ts +9 -0
- package/dist/ui/elements/DropdownMenu/utils.d.ts.map +1 -1
- package/dist/ui/elements/Modal/types.d.ts +1 -1
- package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/types.d.ts +1 -1
- package/dist/ui/elements/Placeholder/types.d.ts +1 -1
- package/dist/ui/elements/SelectDropdown/SelectDropdown.styles.d.ts.map +1 -1
- package/dist/ui/elements/Tab/Tab.d.ts +5 -0
- package/dist/ui/elements/Tab/Tab.d.ts.map +1 -0
- package/dist/ui/elements/Tab/Tab.styles.d.ts +7 -0
- package/dist/ui/elements/Tab/Tab.styles.d.ts.map +1 -0
- package/dist/ui/elements/Tab/constants.d.ts +37 -0
- package/dist/ui/elements/Tab/constants.d.ts.map +1 -0
- package/dist/ui/elements/Tab/index.d.ts +6 -0
- package/dist/ui/elements/Tab/index.d.ts.map +1 -0
- package/dist/ui/elements/Tab/types.d.ts +105 -0
- package/dist/ui/elements/Tab/types.d.ts.map +1 -0
- package/dist/ui/elements/TabList/TabList.d.ts +5 -0
- package/dist/ui/elements/TabList/TabList.d.ts.map +1 -0
- package/dist/ui/elements/TabList/constants.d.ts +10 -0
- package/dist/ui/elements/TabList/constants.d.ts.map +1 -0
- package/dist/ui/elements/TabList/index.d.ts +4 -0
- package/dist/ui/elements/TabList/index.d.ts.map +1 -0
- package/dist/ui/elements/TabList/index.styles.d.ts +5 -0
- package/dist/ui/elements/TabList/index.styles.d.ts.map +1 -0
- package/dist/ui/elements/TabList/types.d.ts +41 -0
- package/dist/ui/elements/TabList/types.d.ts.map +1 -0
- package/dist/ui/elements/Table/Table.styles.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/Tabs.d.ts +2 -2
- package/dist/ui/elements/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/index.d.ts +1 -1
- package/dist/ui/elements/Tabs/index.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/types.d.ts +1 -1
- package/dist/ui/elements/Tabs/types.d.ts.map +1 -1
- package/dist/ui/elements/Tooltip/types.d.ts +4 -4
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -17,17 +17,17 @@ export interface AccordionProps {
|
|
|
17
17
|
suffix?: React.ReactNode;
|
|
18
18
|
/**
|
|
19
19
|
* Background color of the accordion header.
|
|
20
|
-
* @default var(--bg-secondary, #
|
|
20
|
+
* @default var(--bg-subtle-secondary-default, #f6f7f9)
|
|
21
21
|
*/
|
|
22
22
|
headerBackgroundColor?: string;
|
|
23
23
|
/**
|
|
24
24
|
* Background color of the accordion content.
|
|
25
|
-
* @default var(--bg-secondary, #
|
|
25
|
+
* @default var(--bg-subtle-secondary-default, #f6f7f9)
|
|
26
26
|
*/
|
|
27
27
|
contentBackgroundColor?: string;
|
|
28
28
|
/**
|
|
29
29
|
* Color of the accordion toggle icon.
|
|
30
|
-
* @default var(--text-primary, #
|
|
30
|
+
* @default var(--text-emphasis-primary-default, #16191d)
|
|
31
31
|
*/
|
|
32
32
|
iconColor?: string;
|
|
33
33
|
/**
|
|
@@ -15,102 +15,4 @@ export declare const ERRONEOUS_ALERT_VARIANTS: ALERT_VARIANTS_ENUM[];
|
|
|
15
15
|
export declare const ALERT_VARIANTS: ALERT_VARIANTS_ENUM[];
|
|
16
16
|
export declare const ALERT_TYPES: ALERT_TYPES_ENUM[];
|
|
17
17
|
export declare const DEFAULT_ALERT_VARIANT_ICON_MAPPING: Record<ALERT_VARIANTS_ENUM, grauityIconName>;
|
|
18
|
-
export declare const ALERT_COLOR_MAPPINGS: {
|
|
19
|
-
default: {
|
|
20
|
-
primary: {
|
|
21
|
-
iconColor: string;
|
|
22
|
-
textColor: string;
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
borderColor: string;
|
|
25
|
-
};
|
|
26
|
-
success: {
|
|
27
|
-
iconColor: string;
|
|
28
|
-
textColor: string;
|
|
29
|
-
backgroundColor: string;
|
|
30
|
-
borderColor: string;
|
|
31
|
-
};
|
|
32
|
-
warning: {
|
|
33
|
-
iconColor: string;
|
|
34
|
-
textColor: string;
|
|
35
|
-
backgroundColor: string;
|
|
36
|
-
borderColor: string;
|
|
37
|
-
};
|
|
38
|
-
error: {
|
|
39
|
-
iconColor: string;
|
|
40
|
-
textColor: string;
|
|
41
|
-
backgroundColor: string;
|
|
42
|
-
borderColor: string;
|
|
43
|
-
};
|
|
44
|
-
default: {
|
|
45
|
-
iconColor: string;
|
|
46
|
-
textColor: string;
|
|
47
|
-
backgroundColor: string;
|
|
48
|
-
borderColor: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
outlined: {
|
|
52
|
-
primary: {
|
|
53
|
-
iconColor: string;
|
|
54
|
-
textColor: string;
|
|
55
|
-
backgroundColor: string;
|
|
56
|
-
borderColor: string;
|
|
57
|
-
};
|
|
58
|
-
success: {
|
|
59
|
-
iconColor: string;
|
|
60
|
-
textColor: string;
|
|
61
|
-
backgroundColor: string;
|
|
62
|
-
borderColor: string;
|
|
63
|
-
};
|
|
64
|
-
warning: {
|
|
65
|
-
iconColor: string;
|
|
66
|
-
textColor: string;
|
|
67
|
-
backgroundColor: string;
|
|
68
|
-
borderColor: string;
|
|
69
|
-
};
|
|
70
|
-
error: {
|
|
71
|
-
iconColor: string;
|
|
72
|
-
textColor: string;
|
|
73
|
-
backgroundColor: string;
|
|
74
|
-
borderColor: string;
|
|
75
|
-
};
|
|
76
|
-
default: {
|
|
77
|
-
iconColor: string;
|
|
78
|
-
textColor: string;
|
|
79
|
-
backgroundColor: string;
|
|
80
|
-
borderColor: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
filled: {
|
|
84
|
-
primary: {
|
|
85
|
-
iconColor: string;
|
|
86
|
-
textColor: string;
|
|
87
|
-
backgroundColor: string;
|
|
88
|
-
borderColor: string;
|
|
89
|
-
};
|
|
90
|
-
success: {
|
|
91
|
-
iconColor: string;
|
|
92
|
-
textColor: string;
|
|
93
|
-
backgroundColor: string;
|
|
94
|
-
borderColor: string;
|
|
95
|
-
};
|
|
96
|
-
warning: {
|
|
97
|
-
iconColor: string;
|
|
98
|
-
textColor: string;
|
|
99
|
-
backgroundColor: string;
|
|
100
|
-
borderColor: string;
|
|
101
|
-
};
|
|
102
|
-
error: {
|
|
103
|
-
iconColor: string;
|
|
104
|
-
textColor: string;
|
|
105
|
-
backgroundColor: string;
|
|
106
|
-
borderColor: string;
|
|
107
|
-
};
|
|
108
|
-
default: {
|
|
109
|
-
iconColor: string;
|
|
110
|
-
textColor: string;
|
|
111
|
-
backgroundColor: string;
|
|
112
|
-
borderColor: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
18
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Alert/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,oBAAY,gBAAgB;IACxB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,oBAAY,mBAAmB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,eAAO,MAAM,wBAAwB,uBAGpC,CAAC;AAEF,eAAO,MAAM,cAAc,uBAM1B,CAAC;AAEF,eAAO,MAAM,WAAW,oBAIvB,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACnD,mBAAmB,EACnB,eAAe,CAOlB,CAAC
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Alert/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,oBAAY,gBAAgB;IACxB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,oBAAY,mBAAmB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,eAAO,MAAM,wBAAwB,uBAGpC,CAAC;AAEF,eAAO,MAAM,cAAc,uBAM1B,CAAC;AAEF,eAAO,MAAM,WAAW,oBAIvB,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACnD,mBAAmB,EACnB,eAAe,CAOlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQ3C;;;GAGG;AACH,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQ3C;;;GAGG;AACH,QAAA,MAAM,WAAW,yFAwFhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -23,7 +23,7 @@ export interface AlertBannerProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* Alert banner padding
|
|
25
25
|
*
|
|
26
|
-
* Default: `'var(--spacing-8px, 8px)'`
|
|
26
|
+
* Default: `'var(--spacing-4px, 4px) var(--spacing-8px, 8px)'` if action buttons/close button are present else `'var(--spacing-8px, 8px)'`
|
|
27
27
|
* */
|
|
28
28
|
padding?: string;
|
|
29
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarEvent.styles.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"CalendarEvent.styles.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,0BAA0B,oQAkDtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,mPAMvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,mPAMnC,CAAC;AAEF,eAAO,MAAM,4BAA4B,6NAOxC,CAAC"}
|
|
@@ -31,22 +31,22 @@ export interface CalendarEventProps {
|
|
|
31
31
|
minDurationToDisplayTime?: number;
|
|
32
32
|
/**
|
|
33
33
|
* Text color of the event.
|
|
34
|
-
* @default 'var(--text-
|
|
34
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
35
35
|
*/
|
|
36
36
|
textColor?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Background color of the event.
|
|
39
|
-
* @default 'var(--bg-
|
|
39
|
+
* @default 'var(--bg-emphasis-brand-default, #0673f9)'
|
|
40
40
|
*/
|
|
41
41
|
backgroundColor?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Border color of the event.
|
|
44
|
-
* @default 'var(--border)'
|
|
44
|
+
* @default 'var(--border-subtle-primary-default, #e1e5ea)'
|
|
45
45
|
*/
|
|
46
46
|
borderColor?: string;
|
|
47
47
|
/**
|
|
48
48
|
* Text color of the chip content.
|
|
49
|
-
* @default 'var(--text-
|
|
49
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
50
50
|
*/
|
|
51
51
|
chipTextColor?: string;
|
|
52
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MonthlyCalendar.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,iBAAS,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"MonthlyCalendar.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,iBAAS,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,eAgHzD;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { StyledDivProps } from '../../../../common/types';
|
|
|
2
2
|
export interface MonthlyCalendarEventProps extends StyledDivProps {
|
|
3
3
|
/**
|
|
4
4
|
* The background color of the calendar event.
|
|
5
|
-
* @default 'var(--bg-
|
|
5
|
+
* @default 'var(--bg-emphasis-brand-default, #0673f9)'
|
|
6
6
|
*/
|
|
7
7
|
backgroundColor?: string;
|
|
8
8
|
/**
|
|
@@ -30,12 +30,12 @@ export interface MonthlyCalendarEventProps extends StyledDivProps {
|
|
|
30
30
|
eventTitle: string;
|
|
31
31
|
/**
|
|
32
32
|
* The color of the event time text.
|
|
33
|
-
* @default 'var(--text-
|
|
33
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
34
34
|
*/
|
|
35
35
|
eventTimeColor?: string;
|
|
36
36
|
/**
|
|
37
37
|
* The color of the event title text.
|
|
38
|
-
* @default 'var(--text-
|
|
38
|
+
* @default 'var(--text-emphasis-invert-primary-default, #ffffff)'
|
|
39
39
|
*/
|
|
40
40
|
eventTitleColor?: string;
|
|
41
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeeklyCalendar.styles.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,uBAAuB,EAC1B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,qCAAqC,mPAEjD,CAAC;AAEF,eAAO,MAAM,yBAAyB,mPAOrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"WeeklyCalendar.styles.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,uBAAuB,EAC1B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,qCAAqC,mPAEjD,CAAC;AAEF,eAAO,MAAM,yBAAyB,mPAOrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mPAoBjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,mPAMhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,mPAO7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gUAInC,CAAC;AAEF,eAAO,MAAM,2BAA2B,qQAkCvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,6PAsBrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,mPAMnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,6PAmBnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,mPAElC,CAAC;AAEF,eAAO,MAAM,yBAAyB,gUAIrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,6PA0C/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,4PAe9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Drawer/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,QAAA,MAAM,MAAM,oFAiEV,CAAC;AAIH,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledDrawerContentProps, StyledDrawerProps } from './types';
|
|
3
|
+
export declare const StyledDrawer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> & import("react").RefAttributes<HTMLDivElement>, StyledDrawerProps>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
4
|
+
export declare const StyledDrawerContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledDrawerContentProps>> & string;
|
|
5
|
+
//# sourceMappingURL=Drawer.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Drawer/Drawer.styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAEH,wBAAwB,EACxB,iBAAiB,EACpB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,YAAY,maAqBxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,6PAW/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Drawer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyledDivProps } from '../../../common/types';
|
|
3
|
+
export declare enum DrawerPosition {
|
|
4
|
+
LEFT = "left",
|
|
5
|
+
RIGHT = "right"
|
|
6
|
+
}
|
|
7
|
+
export interface DrawerProps {
|
|
8
|
+
/**
|
|
9
|
+
* The content to be displayed inside the Drawer.
|
|
10
|
+
*/
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Determines whether the Drawer is open or closed.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Callback function to be called when the Drawer is requested to be closed.
|
|
19
|
+
* @default () => {}
|
|
20
|
+
*/
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* If true, the Drawer will take up the full screen.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
fullScreen?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the Drawer will close when the backdrop is clicked.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
closeOnBackdropClick?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The width of the Drawer.
|
|
34
|
+
* @default '30%'
|
|
35
|
+
*/
|
|
36
|
+
width?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The side from which the Drawer opens.
|
|
39
|
+
* @default 'left'
|
|
40
|
+
*/
|
|
41
|
+
position?: 'left' | 'right';
|
|
42
|
+
/**
|
|
43
|
+
* Additional class name to be passed to the Drawer.
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Should focus on the first element in the drawer
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
shouldFocusOnFirstElement?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Flag to determine if the background scroll should be disabled.
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
shouldDisableScroll?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Custom styles to override drawer styling
|
|
58
|
+
*/
|
|
59
|
+
styles?: React.CSSProperties;
|
|
60
|
+
}
|
|
61
|
+
export interface StyledDrawerProps extends StyledDivProps {
|
|
62
|
+
$isOpen?: boolean;
|
|
63
|
+
$width: string;
|
|
64
|
+
$fullScreen?: boolean;
|
|
65
|
+
$position: 'left' | 'right';
|
|
66
|
+
}
|
|
67
|
+
export interface StyledDrawerContentProps extends StyledDivProps {
|
|
68
|
+
$width?: string;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,oBAAY,cAAc;IACtB,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AAkBf,OAAO,EAIH,iBAAiB,EACpB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAON,MAAM,OAAO,CAAC;AAkBf,OAAO,EAIH,iBAAiB,EACpB,MAAM,SAAS,CAAC;AASjB,QAAA,MAAM,YAAY,0FAuWjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -10,9 +10,11 @@ export type OptionValue = string | number;
|
|
|
10
10
|
export type BaseItemSubHeaderProps = {
|
|
11
11
|
type: BaseItemType.SUB_HEADER;
|
|
12
12
|
title: string;
|
|
13
|
+
scrollToOnOpen?: boolean;
|
|
13
14
|
};
|
|
14
15
|
export type BaseItemDividerProps = {
|
|
15
16
|
type: BaseItemType.DIVIDER;
|
|
17
|
+
scrollToOnOpen?: boolean;
|
|
16
18
|
};
|
|
17
19
|
export type BaseItemOptionProps = {
|
|
18
20
|
type: BaseItemType.OPTION;
|
|
@@ -22,6 +24,7 @@ export type BaseItemOptionProps = {
|
|
|
22
24
|
leftIcon?: grauityIconName;
|
|
23
25
|
rightIcon?: grauityIconName;
|
|
24
26
|
disabled?: boolean;
|
|
27
|
+
scrollToOnOpen?: boolean;
|
|
25
28
|
};
|
|
26
29
|
export type BaseItemProps = BaseItemSubHeaderProps | BaseItemDividerProps | BaseItemOptionProps;
|
|
27
30
|
export interface DropdownMenuProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,oBAAY,YAAY;IACpB,UAAU,cAAc;IACxB,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,cA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AM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wCACb,SAAQ,cAAc;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BaseItemOptionProps, BaseItemProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* Filters the given array of `BaseItemProps` and returns only the items of type `BaseItemType.OPTION`.
|
|
@@ -20,4 +21,12 @@ export declare function getOptionsFromBaseDropdownItems(items: BaseItemProps[]):
|
|
|
20
21
|
export declare function defaultSearchMethod(searchValue: string, options: BaseItemOptionProps[]): BaseItemOptionProps[];
|
|
21
22
|
export declare const getSelectedValuesForDropdownType: (multiple: boolean, value: BaseItemOptionProps | BaseItemOptionProps[]) => BaseItemOptionProps[];
|
|
22
23
|
export declare function isDropdownMenuItemNavigable(item: BaseItemProps): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Scrolls to the first item with scrollToOnOpen property set to true
|
|
26
|
+
*
|
|
27
|
+
* @param items - Array of items to search through
|
|
28
|
+
* @param refs - Ref array containing DOM elements for each item
|
|
29
|
+
* @param delay - Optional delay before scrolling (default: 100ms)
|
|
30
|
+
*/
|
|
31
|
+
export declare function scrollToFirstMarkedItem(items: BaseItemProps[], refs: React.MutableRefObject<(HTMLDivElement | HTMLButtonElement | null)[]>, delay?: number): void;
|
|
23
32
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DropdownMenu/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAgB,MAAM,SAAS,CAAC;AAE3E;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,aAAa,EAAE,GACvB,mBAAmB,EAAE,CAIvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAC/B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,mBAAmB,EAAE,GAC/B,mBAAmB,EAAE,CAQvB;AAED,eAAO,MAAM,gCAAgC,aAC/B,OAAO,SACV,mBAAmB,GAAG,mBAAmB,EAAE,KACnD,mBAAmB,EAQrB,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,cAAc,GAAG,iBAAiB,GAAG,IAAI,CAAC,EAAE,CAAC,EAC3E,KAAK,GAAE,MAAY,GACpB,IAAI,CAeN"}
|
|
@@ -186,7 +186,7 @@ export interface ModalProps {
|
|
|
186
186
|
*/
|
|
187
187
|
overflow?: string;
|
|
188
188
|
/**
|
|
189
|
-
* Border for the modal. By default, it is `1px solid var(--border, #e1e5ea)`
|
|
189
|
+
* Border for the modal. By default, it is `1px solid var(--border-subtle-primary-default, #e1e5ea)`
|
|
190
190
|
* */
|
|
191
191
|
border?: string;
|
|
192
192
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectDropdown.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EACH,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC7B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,qBAAqB,+PAOjC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mPAGxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,8PAchC,CAAC;AAEF,eAAO,MAAM,yBAAyB,mPAerC,CAAC;AAEF,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"MultiSelectDropdown.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EACH,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC7B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,qBAAqB,+PAOjC,CAAC;AAEF,eAAO,MAAM,4BAA4B,mPAGxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,8PAchC,CAAC;AAEF,eAAO,MAAM,yBAAyB,mPAerC,CAAC;AAEF,eAAO,MAAM,uBAAuB,mPAgBnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,4PAI9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,4QA+BlC,CAAC;AAEF,eAAO,MAAM,0BAA0B,6NAKtC,CAAC;AAEF,eAAO,MAAM,sBAAsB,gQAmBlC,CAAC;AAEF,eAAO,MAAM,6BAA6B,6NAazC,CAAC;AAEF,eAAO,MAAM,yBAAyB,4QAUrC,CAAC;AAEF,eAAO,MAAM,iBAAiB,6ZAG7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDropdown.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/SelectDropdown/SelectDropdown.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACH,8BAA8B,EAC9B,kCAAkC,EAClC,6BAA6B,EAC7B,gCAAgC,EACnC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,2BAA2B,qQAMvC,CAAC;AAEF,eAAO,MAAM,kCAAkC,mPAG9C,CAAC;AAEF,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"SelectDropdown.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/SelectDropdown/SelectDropdown.styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACH,8BAA8B,EAC9B,kCAAkC,EAClC,6BAA6B,EAC7B,gCAAgC,EACnC,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,2BAA2B,qQAMvC,CAAC;AAEF,eAAO,MAAM,kCAAkC,mPAG9C,CAAC;AAEF,eAAO,MAAM,6BAA6B,uQA2BzC,CAAC;AAEF,eAAO,MAAM,wBAAwB,6NAGpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,kQAkCpC,CAAC;AAEF,eAAO,MAAM,6BAA6B,6NAazC,CAAC;AAEF,eAAO,MAAM,yBAAyB,4QAUrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tab/Tab.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,iBAAS,GAAG,CAAC,KAAK,EAAE,QAAQ,eA6D3B;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledTabComponentProps, StyledTabContainerProps, StyledTabContentProps, StyledTabSubtextProps } from './types';
|
|
3
|
+
export declare const StyledTab: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledTabComponentProps>> & string;
|
|
4
|
+
export declare const StyledTabContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTabContainerProps>> & string;
|
|
5
|
+
export declare const StyledTabContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledTabContentProps>> & string;
|
|
6
|
+
export declare const StyledSubtext: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledTabSubtextProps>> & string;
|
|
7
|
+
//# sourceMappingURL=Tab.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tab/Tab.styles.ts"],"names":[],"mappings":";AAQA,OAAO,EACH,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,SAAS,wQAgDrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,4PAI9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,0PAa5B,CAAC;AAEF,eAAO,MAAM,aAAa,4PAsBzB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum TAB_SIZES_ENUM {
|
|
2
|
+
SMALL = "small",
|
|
3
|
+
MEDIUM = "medium",
|
|
4
|
+
LARGE = "large",
|
|
5
|
+
EXTRA_LARGE = "extra-large"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TAB_ICON_POSITIONS_ENUM {
|
|
8
|
+
LEFT = "left",
|
|
9
|
+
RIGHT = "right",
|
|
10
|
+
TOP = "top",
|
|
11
|
+
BOTTOM = "bottom"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TAB_VARIANT_ENUM {
|
|
14
|
+
BORDERED = "bordered",
|
|
15
|
+
ROUNDED = "rounded"
|
|
16
|
+
}
|
|
17
|
+
export declare const TAB_SIZE_MAPPING: {
|
|
18
|
+
[key in TAB_SIZES_ENUM]: {
|
|
19
|
+
[cssSelector: string]: any;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const TAB_SIZE_STYLES_MAPPING: {
|
|
23
|
+
[key in TAB_SIZES_ENUM]: {
|
|
24
|
+
[cssSelector: string]: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const ICON_POSITION_STYLES_MAPPING: {
|
|
28
|
+
[key in TAB_ICON_POSITIONS_ENUM]: {
|
|
29
|
+
[cssSelector: string]: any;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const TAB_VARIANT_STYLES_MAPPING: {
|
|
33
|
+
[key in TAB_VARIANT_ENUM]: {
|
|
34
|
+
[cssSelector: string]: any;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tab/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACtB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC9B;AAED,oBAAY,uBAAuB;IAC/B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;CACpB;AAED,oBAAY,gBAAgB;IACxB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE;KAC1B,GAAG,IAAI,cAAc,GAAG;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CA8B1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE;KACjC,GAAG,IAAI,cAAc,GAAG;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAkB1D,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE;KACtC,GAAG,IAAI,uBAAuB,GAAG;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAcnE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE;KACpC,GAAG,IAAI,gBAAgB,GAAG;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAQ5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tab/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { grauityIconName, grauityIconSizeName } from 'ui/core';
|
|
3
|
+
import { StyledButtonProps, StyledDivProps, StyledSpanProps } from '../../../common/types';
|
|
4
|
+
import { TAB_ICON_POSITIONS_ENUM, TAB_SIZES_ENUM, TAB_VARIANT_ENUM } from './constants';
|
|
5
|
+
export type TabIconPosition = `${TAB_ICON_POSITIONS_ENUM}`;
|
|
6
|
+
export type TabSize = `${TAB_SIZES_ENUM}`;
|
|
7
|
+
export type TabVariant = `${TAB_VARIANT_ENUM}`;
|
|
8
|
+
export interface TabProps {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the tab, useful for testing or tracking.
|
|
11
|
+
* @default ''
|
|
12
|
+
* @type {string}
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Size of the tab, can be 'small', 'medium', 'large' or 'extra-large'.
|
|
17
|
+
* @default 'medium'
|
|
18
|
+
*/
|
|
19
|
+
size?: TabSize;
|
|
20
|
+
/**
|
|
21
|
+
* Additional CSS class names to apply to the tab.
|
|
22
|
+
* @default ''
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Inline styles to apply to the tab.
|
|
27
|
+
* @default {}
|
|
28
|
+
*/
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
/**
|
|
31
|
+
* Content to display inside the tab.
|
|
32
|
+
* Can be a string, number, or ReactNode.
|
|
33
|
+
* @default null
|
|
34
|
+
*/
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Subtext to display below the main content of the tab.
|
|
38
|
+
* Can be a string or ReactNode.
|
|
39
|
+
* @default ''
|
|
40
|
+
*/
|
|
41
|
+
subText?: React.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Icon to display in the tab.
|
|
44
|
+
* Can be a string representing the icon name.
|
|
45
|
+
* @default ''
|
|
46
|
+
*/
|
|
47
|
+
icon?: grauityIconName;
|
|
48
|
+
/**
|
|
49
|
+
* Size of the icon
|
|
50
|
+
* @default '20'
|
|
51
|
+
*/
|
|
52
|
+
iconSize?: grauityIconSizeName;
|
|
53
|
+
/**
|
|
54
|
+
* Position of the icon relative to the text, can be 'left', 'right', 'top', or 'bottom'.
|
|
55
|
+
* @default 'left'
|
|
56
|
+
*/
|
|
57
|
+
iconPosition?: TabIconPosition;
|
|
58
|
+
/**
|
|
59
|
+
* Variant of the tab, can be 'rounded', or 'bordered'.
|
|
60
|
+
* @default 'bordered'
|
|
61
|
+
*/
|
|
62
|
+
variant?: TabVariant;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the tab is currently active.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
isActive?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the tab is disabled.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Click event handler for the tab.
|
|
75
|
+
* @default () => {}
|
|
76
|
+
*/
|
|
77
|
+
onClick?: () => void;
|
|
78
|
+
/**
|
|
79
|
+
* Tab index for keyboard navigation.
|
|
80
|
+
* @default 0
|
|
81
|
+
*/
|
|
82
|
+
tabIndex?: number;
|
|
83
|
+
/**
|
|
84
|
+
* ID of the tabpanel associated with the tab.
|
|
85
|
+
* @default ''
|
|
86
|
+
*/
|
|
87
|
+
ariaControls?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface StyledTabComponentProps extends StyledButtonProps {
|
|
90
|
+
$iconPosition?: TabIconPosition;
|
|
91
|
+
$size: TabSize;
|
|
92
|
+
$isActive?: boolean;
|
|
93
|
+
$disabled?: boolean;
|
|
94
|
+
$variant: TabVariant;
|
|
95
|
+
}
|
|
96
|
+
export interface StyledTabContainerProps extends StyledDivProps {
|
|
97
|
+
}
|
|
98
|
+
export interface StyledTabContentProps extends StyledDivProps {
|
|
99
|
+
$iconPosition?: TabIconPosition;
|
|
100
|
+
$size: TabSize;
|
|
101
|
+
}
|
|
102
|
+
export interface StyledTabSubtextProps extends StyledSpanProps {
|
|
103
|
+
$isActive?: boolean;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tab/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,uBAAuB,EACvB,cAAc,EACd,gBAAgB,EACnB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG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