@newtonschool/grauity 1.2.2 → 1.3.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 +1 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/css/grauity-icons.scss +362 -354
- package/dist/fonts/grauity-icons.eot +0 -0
- package/dist/fonts/grauity-icons.ttf +0 -0
- package/dist/fonts/grauity-icons.woff +0 -0
- package/dist/fonts/grauity-icons.woff2 +0 -0
- package/dist/index.d.ts +261 -56
- 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/core/icons/iconTags.d.ts +3 -0
- package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
- package/dist/ui/core/icons/iconTypes.d.ts +4 -2
- package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/types.d.ts +4 -0
- package/dist/ui/elements/BottomSheet/types.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts +2 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts +1 -4
- package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/MonthlyCalendar/DateCircle.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/DateCircle.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/GridHeaderRow.d.ts +4 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/GridHeaderRow.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/Loading.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/Loading.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.styles.d.ts +17 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendarGridItem.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendarGridItem.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyControls.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyControls.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowEventsList.d.ts +6 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowEventsList.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowIndicator.d.ts +6 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowIndicator.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/constants.d.ts +6 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/constants.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/types.d.ts +96 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/utils.d.ts +4 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/utils.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendar.styles.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendarEvent.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendarEvent.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/types.d.ts +51 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/Header.d.ts +5 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/Header.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.d.ts +6 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.styles.d.ts +6 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/types.d.ts +84 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/utils.d.ts +3 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/utils.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/EventRenderer.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/{WeeklyCalendar.styles.d.ts → WeeklyCalendar/WeeklyCalendar.styles.d.ts} +2 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/constants.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/types.d.ts +97 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/utils.d.ts +11 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/utils.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/types.d.ts +6 -79
- package/dist/ui/elements/Calendar/types.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/utils.d.ts +0 -7
- package/dist/ui/elements/Calendar/utils.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/Overlay.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/Overlay.styles.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/types.d.ts +5 -1
- package/dist/ui/elements/Overlay/types.d.ts.map +1 -1
- package/dist/ui/elements/Placeholder/types.d.ts +1 -1
- package/dist/ui/elements/Placeholder/types.d.ts.map +1 -1
- package/dist/ui/elements/PopOver/PopOver.d.ts.map +1 -1
- package/dist/ui/elements/PopOver/types.d.ts +9 -0
- package/dist/ui/elements/PopOver/types.d.ts.map +1 -1
- package/dist/ui/elements/RangeInput/RangeInput.styles.d.ts +1 -1
- package/dist/ui/elements/RangeInput/RangeInput.styles.d.ts.map +1 -1
- package/dist/ui/elements/RangeInput/types.d.ts +1 -2
- package/dist/ui/elements/RangeInput/types.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/Tabs.d.ts +5 -0
- package/dist/ui/elements/Tabs/Tabs.d.ts.map +1 -0
- package/dist/ui/elements/Tabs/Tabs.styles.d.ts +5 -0
- package/dist/ui/elements/Tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/ui/elements/Tabs/index.d.ts +3 -0
- package/dist/ui/elements/Tabs/index.d.ts.map +1 -0
- package/dist/ui/elements/Tabs/types.d.ts +49 -0
- package/dist/ui/elements/Tabs/types.d.ts.map +1 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ui/elements/Calendar/EventRenderer.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar.styles.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/constants.d.ts.map +0 -1
- /package/dist/ui/elements/Calendar/{EventRenderer.d.ts → WeeklyCalendar/EventRenderer.d.ts} +0 -0
- /package/dist/ui/elements/Calendar/{WeeklyCalendar.d.ts → WeeklyCalendar/WeeklyCalendar.d.ts} +0 -0
- /package/dist/ui/elements/Calendar/{constants.d.ts → WeeklyCalendar/constants.d.ts} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { StyledDivProps } from '../../../../common/types';
|
|
2
|
+
export interface MonthlyCalendarEventProps extends StyledDivProps {
|
|
3
|
+
/**
|
|
4
|
+
* The background color of the calendar event.
|
|
5
|
+
* @default 'var(--bg-action-brand)'
|
|
6
|
+
*/
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The border radius of the calendar event container.
|
|
10
|
+
* @default '4px'
|
|
11
|
+
*/
|
|
12
|
+
borderRadius?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The width of the calendar event container.
|
|
15
|
+
* @default '100%'
|
|
16
|
+
*/
|
|
17
|
+
width?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The height of the calendar event container.
|
|
20
|
+
* @default '100%'
|
|
21
|
+
*/
|
|
22
|
+
height?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The date and time of the calendar event.
|
|
25
|
+
*/
|
|
26
|
+
eventTime: Date;
|
|
27
|
+
/**
|
|
28
|
+
* The title or description of the calendar event.
|
|
29
|
+
*/
|
|
30
|
+
eventTitle: string;
|
|
31
|
+
/**
|
|
32
|
+
* The color of the event time text.
|
|
33
|
+
* @default 'var(--text-action2)'
|
|
34
|
+
*/
|
|
35
|
+
eventTimeColor?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The color of the event title text.
|
|
38
|
+
* @default 'var(--text-action2)'
|
|
39
|
+
*/
|
|
40
|
+
eventTitleColor?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the calendar event is active.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
isActive?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface StyledMonthlyCalendarEventTextProps extends StyledDivProps {
|
|
48
|
+
color?: string;
|
|
49
|
+
fontWeight?: string;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/MonthlyCalendarEvent/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,mCAAoC,SAAQ,cAAc;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/UnifiedCalendar/Header.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAUrD,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,eA0D/D;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UnifiedCalendarProps } from './types';
|
|
3
|
+
declare function UnifiedCalendar(props: UnifiedCalendarProps<any>): JSX.Element;
|
|
4
|
+
export default UnifiedCalendar;
|
|
5
|
+
export { UnifiedCalendarProps };
|
|
6
|
+
//# sourceMappingURL=UnifiedCalendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedCalendar.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,CAAC,GAAG,CAAC,eA8GxD;AAED,eAAe,eAAe,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StyledDivProps } from '../../../../common/types';
|
|
2
|
+
export declare const StyledCalendarMonthButton: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
|
|
3
|
+
export declare const StyledCalendarControlsText: import("styled-components").StyledComponent<string, any, {}, never>;
|
|
4
|
+
export declare const StyledCalendarMonthCalendarControl: import("styled-components").StyledComponent<string, any, {}, never>;
|
|
5
|
+
export declare const StyledTabContainer: import("styled-components").StyledComponent<string, any, {}, never>;
|
|
6
|
+
//# sourceMappingURL=UnifiedCalendar.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedCalendar.styles.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.styles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,eAAO,MAAM,yBAAyB,iFAQrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,qEAOtC,CAAC;AACF,eAAO,MAAM,kCAAkC,qEAK9C,CAAC;AACF,eAAO,MAAM,kBAAkB,qEAE9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/UnifiedCalendar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CalendarEvent, CalendarView } from '../types';
|
|
3
|
+
export interface UnifiedCalendarProps<T> {
|
|
4
|
+
/**
|
|
5
|
+
* Calendar view to display. Only supports monthly and weekly
|
|
6
|
+
* @default weekly
|
|
7
|
+
*/
|
|
8
|
+
view?: CalendarView;
|
|
9
|
+
/**
|
|
10
|
+
* Calendar view callback when viewtype changes
|
|
11
|
+
*/
|
|
12
|
+
onViewChange?: (viewType: CalendarView) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Array of events to display in the calendar.
|
|
15
|
+
*/
|
|
16
|
+
events: CalendarEvent<T>[];
|
|
17
|
+
/**
|
|
18
|
+
* Function to render each event in the calendar.
|
|
19
|
+
* @param item - The event item to render
|
|
20
|
+
*/
|
|
21
|
+
eventRenderer: (item: CalendarEvent<T>, view: CalendarView) => React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to show navigation controls.
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
shouldShowControls?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Custom header content to display above the calendar.
|
|
29
|
+
* @default null
|
|
30
|
+
*/
|
|
31
|
+
header?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* The date for which the calendar should render events
|
|
34
|
+
* @default new Date()
|
|
35
|
+
*/
|
|
36
|
+
date: Date;
|
|
37
|
+
/**
|
|
38
|
+
* Callback fired when the date changes.
|
|
39
|
+
* @param date - The new date value.
|
|
40
|
+
* @default null
|
|
41
|
+
*/
|
|
42
|
+
onDateChange?: (date: Date) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the calendar is in a loading state.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
loading?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Weekly calendar properties, only applicable when type is 'weekly'.
|
|
50
|
+
*/
|
|
51
|
+
weeklyCalendarProps?: {
|
|
52
|
+
/**
|
|
53
|
+
* The time in hours (24 hour format) to show at top initially.
|
|
54
|
+
* @default 8.5 (8:30 AM)
|
|
55
|
+
*/
|
|
56
|
+
defaultScrollHour?: number;
|
|
57
|
+
/**
|
|
58
|
+
* A boolean indicating whether to scroll to the first event initially.
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
shouldScrollToFirstEvent?: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Monthly calendar properties, only applicable when type is 'monthly'.
|
|
65
|
+
*/
|
|
66
|
+
monthlyCalendarProps?: {
|
|
67
|
+
/**
|
|
68
|
+
* Optional alternative render function for events.
|
|
69
|
+
* @param item - The event item to render
|
|
70
|
+
* @default null
|
|
71
|
+
*/
|
|
72
|
+
renderDayItem?: (item: CalendarEvent<T>, view: CalendarView) => React.ReactNode;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface UnifiedCalendarHeaderProps {
|
|
76
|
+
loading: boolean;
|
|
77
|
+
onViewChange: (viewType: CalendarView) => void;
|
|
78
|
+
date: Date;
|
|
79
|
+
initialActiveTab: number;
|
|
80
|
+
setDate: React.Dispatch<React.SetStateAction<Date>>;
|
|
81
|
+
label: string;
|
|
82
|
+
epochDiffForDateChange: number;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/UnifiedCalendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEvD,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAEhD;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3B;;;OAGG;IACH,aAAa,EAAE,CACX,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,IAAI,EAAE,YAAY,KACjB,KAAK,CAAC,SAAS,CAAC;IAErB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAEpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,mBAAmB,CAAC,EAAE;QAClB;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;IAEF;;OAEG;IACH,oBAAoB,CAAC,EAAE;QACnB;;;;WAIG;QACH,aAAa,CAAC,EAAE,CACZ,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,IAAI,EAAE,YAAY,KACjB,KAAK,CAAC,SAAS,CAAC;KACxB,CAAC;CACL;AAED,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/C,IAAI,EAAE,IAAI,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/UnifiedCalendar/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,yBAAyB,SAC5B,IAAI,QACJ,YAAY,KACnB,MAqBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventRenderer.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/EventRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,aAAa,8BAGhB,kBAAkB,KAAG,MAAM,YAgB7B,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WeeklyCalendar.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAA+B,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAyB3E,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,eAyTtE;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyledDivProps } from '../../../../common/types';
|
|
2
|
+
import { StyledCalendarBlockProps, StyledCalendarTimelineBlockProps, StyledEventWrapperProps } from './types';
|
|
2
3
|
export declare const StyledCalendarExternalHeaderContainer: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
|
|
3
4
|
export declare const StyledCalendarMonthButton: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
|
|
4
5
|
export declare const StyledCalendarWrapper: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
|
|
@@ -0,0 +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,iFAEjD,CAAC;AAEF,eAAO,MAAM,yBAAyB,iFAOrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,iFAmBjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,iFAMhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,iFAO7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,iFAInC,CAAC;AAEF,eAAO,MAAM,2BAA2B,mGAkCvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,2FAsBrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iFAMnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,2FAiBnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,iFAElC,CAAC;AAEF,eAAO,MAAM,yBAAyB,iFAIrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,2FA0C/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0FAe9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyledDivProps } from '../../../../common/types';
|
|
3
|
+
import { CalendarEvent, EventRendererFn } from '../types';
|
|
4
|
+
export type CalendarEventRecord<T> = Record<number, CalendarEvent<T>[]>;
|
|
5
|
+
export type CalendarEventExtended<T> = CalendarEvent<T> & {
|
|
6
|
+
overlap: number;
|
|
7
|
+
index: number;
|
|
8
|
+
forcedEventData?: {
|
|
9
|
+
start: Date;
|
|
10
|
+
end: Date;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type CalendarEventRecordExtended<T> = Record<number, CalendarEventExtended<T>[]>;
|
|
14
|
+
export interface WeeklyCalendarProps<T = {}> {
|
|
15
|
+
/**
|
|
16
|
+
* An optional array of calendar events.
|
|
17
|
+
* @default []
|
|
18
|
+
*/
|
|
19
|
+
events?: CalendarEvent<T>[];
|
|
20
|
+
/**
|
|
21
|
+
* A function to render each event.
|
|
22
|
+
*/
|
|
23
|
+
eventRenderer?: EventRendererFn<T>;
|
|
24
|
+
/**
|
|
25
|
+
* A component to render in the header of the calendar.
|
|
26
|
+
* @default null
|
|
27
|
+
*/
|
|
28
|
+
header?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* A boolean indicating whether to show week controls.
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
shouldShowWeekControls?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* [DEPRECATED] The offset for the week relative to current week, where 0 represents the current week.
|
|
36
|
+
*
|
|
37
|
+
* @default undefined
|
|
38
|
+
* @deprecated Use `date` prop instead.
|
|
39
|
+
* @see date
|
|
40
|
+
*/
|
|
41
|
+
weekOffset?: number;
|
|
42
|
+
/**
|
|
43
|
+
* [DEPRECATED] A callback function that is called when the week changes.
|
|
44
|
+
*
|
|
45
|
+
* @deprecated Use `onDateChange` instead.
|
|
46
|
+
* @see onDateChange
|
|
47
|
+
* @param weekOffset - The new week offset.
|
|
48
|
+
*/
|
|
49
|
+
onWeekChange?: (weekOffset: number) => void;
|
|
50
|
+
/**
|
|
51
|
+
* The date to show in the calendar.
|
|
52
|
+
*
|
|
53
|
+
* @default new Date()
|
|
54
|
+
*/
|
|
55
|
+
date?: Date;
|
|
56
|
+
/**
|
|
57
|
+
* A callback function that is called when the date changes.
|
|
58
|
+
*
|
|
59
|
+
* @param date - The new date.
|
|
60
|
+
*/
|
|
61
|
+
onDateChange?: (date: Date) => void;
|
|
62
|
+
/**
|
|
63
|
+
* A boolean indicating whether to show the placeholder for loading state.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* The time in hours (24 hour format) to show at top initially.
|
|
69
|
+
* @default 8.5 (8:30 AM)
|
|
70
|
+
*/
|
|
71
|
+
defaultScrollHour?: number;
|
|
72
|
+
/**
|
|
73
|
+
* A boolean indicating whether to scroll to the first event initially.
|
|
74
|
+
* @default true
|
|
75
|
+
*/
|
|
76
|
+
shouldScrollToFirstEvent?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface EventRendererProps<T = {}> {
|
|
79
|
+
event?: CalendarEvent;
|
|
80
|
+
eventRenderer?: EventRendererFn<T>;
|
|
81
|
+
}
|
|
82
|
+
export interface StyledCalendarBlockProps extends StyledDivProps {
|
|
83
|
+
$active?: boolean;
|
|
84
|
+
$currentTimeStick?: number;
|
|
85
|
+
}
|
|
86
|
+
export interface StyledCalendarTimelineBlockProps extends StyledDivProps {
|
|
87
|
+
$text?: string;
|
|
88
|
+
$headerBlock?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface StyledEventWrapperProps extends StyledDivProps {
|
|
91
|
+
$startPosition: number;
|
|
92
|
+
$height: number;
|
|
93
|
+
$widthFactor: number;
|
|
94
|
+
$indexFactor: number;
|
|
95
|
+
$focused?: boolean;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAExE,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE;QACd,KAAK,EAAE,IAAI,CAAC;QACZ,GAAG,EAAE,IAAI,CAAC;KACb,CAAC;CACL,CAAC;AAEF,M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AED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CalendarEvent } from '../types';
|
|
2
|
+
import { CalendarEventExtended } from './types';
|
|
3
|
+
export declare const getWeekOffsetByDate: (date: Date) => number;
|
|
4
|
+
export declare const calculateWeekOffsetFromDateAndInitialOffset: (initialOffset: number | null, date: Date | null) => number;
|
|
5
|
+
export declare const getCurrentTimeStickPosition: () => number;
|
|
6
|
+
export declare const getStartTimestampOfHourBlock: (date: Date, hour: number) => number;
|
|
7
|
+
export declare const getEventBlockStartPosition: (event: CalendarEvent) => number;
|
|
8
|
+
export declare const getEventBlockHeight: (event: CalendarEvent) => number;
|
|
9
|
+
export declare function getOverlapInformationForDay<T>(events: CalendarEvent<T>[]): Promise<CalendarEventExtended<T>[]>;
|
|
10
|
+
export declare const isPlaceholderBlock: (date: Date, hourIndex: number) => boolean;
|
|
11
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/WeeklyCalendar/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,mBAAmB,SAAU,IAAI,KAAG,MAShD,CAAC;AAEF,eAAO,MAAM,2CAA2C,kBACrC,MAAM,GAAG,IAAI,QACtB,IAAI,GAAG,IAAI,KAClB,MAWF,CAAC;AAEF,eAAO,MAAM,2BAA2B,QAAO,MAK9C,CAAC;AAEF,eAAO,MAAM,4BAA4B,SAC/B,IAAI,QACJ,MAAM,KACb,MAQF,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAW,aAAa,KAAG,MAKjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,aAAa,KAAG,MAI1D,CAAC;AAEF,wBAAsB,2BAA2B,CAAC,CAAC,EAC/C,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAC3B,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CA0CrC;AAED,eAAO,MAAM,kBAAkB,SAAU,IAAI,aAAa,MAAM,YAY/D,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export interface CalendarEventRequiredProps {
|
|
3
|
+
start: Date;
|
|
4
|
+
end: Date;
|
|
5
|
+
}
|
|
2
6
|
export type EventRendererFn<T> = (event: CalendarEvent<T>) => React.ReactNode;
|
|
3
7
|
export interface CalendarEvent<T = {}> {
|
|
8
|
+
id?: string | number;
|
|
4
9
|
title?: string;
|
|
5
10
|
start: Date;
|
|
6
11
|
end: Date;
|
|
@@ -8,83 +13,5 @@ export interface CalendarEvent<T = {}> {
|
|
|
8
13
|
render?: EventRendererFn<T>;
|
|
9
14
|
focused?: boolean;
|
|
10
15
|
}
|
|
11
|
-
export type
|
|
12
|
-
export type CalendarEventExtended<T> = CalendarEvent<T> & {
|
|
13
|
-
overlap: number;
|
|
14
|
-
index: number;
|
|
15
|
-
forcedEventData?: {
|
|
16
|
-
start: Date;
|
|
17
|
-
end: Date;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type CalendarEventRecordExtended<T> = Record<number, CalendarEventExtended<T>[]>;
|
|
21
|
-
export interface WeeklyCalendarProps<T = {}> {
|
|
22
|
-
/**
|
|
23
|
-
* An optional array of calendar events.
|
|
24
|
-
* @default []
|
|
25
|
-
*/
|
|
26
|
-
events?: CalendarEvent<T>[];
|
|
27
|
-
/**
|
|
28
|
-
* A function to render each event.
|
|
29
|
-
*/
|
|
30
|
-
eventRenderer?: EventRendererFn<T>;
|
|
31
|
-
/**
|
|
32
|
-
* A component to render in the header of the calendar.
|
|
33
|
-
* @default null
|
|
34
|
-
*/
|
|
35
|
-
header?: React.ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* A boolean indicating whether to show week controls.
|
|
38
|
-
* @default true
|
|
39
|
-
*/
|
|
40
|
-
shouldShowWeekControls?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* The offset for the week relative to current week, where 0 represents the current week.
|
|
43
|
-
* @default 0
|
|
44
|
-
*/
|
|
45
|
-
weekOffset?: number;
|
|
46
|
-
/**
|
|
47
|
-
* A callback function that is called when the week changes.
|
|
48
|
-
* @param weekOffset - The new week offset.
|
|
49
|
-
*/
|
|
50
|
-
onWeekChange?: (weekOffset: number) => void;
|
|
51
|
-
/**
|
|
52
|
-
* A boolean indicating whether to show the placeholder for loading state.
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
loading?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* The time in hours (24 hour format) to show at top initially.
|
|
58
|
-
* @default 8.5 (8:30 AM)
|
|
59
|
-
*/
|
|
60
|
-
defaultScrollHour?: number;
|
|
61
|
-
/**
|
|
62
|
-
* A boolean indicating whether to scroll to the first event initially.
|
|
63
|
-
* @default true
|
|
64
|
-
*/
|
|
65
|
-
shouldScrollToFirstEvent?: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface EventRendererProps<T = {}> {
|
|
68
|
-
event?: CalendarEvent;
|
|
69
|
-
eventRenderer?: EventRendererFn<T>;
|
|
70
|
-
}
|
|
71
|
-
export interface StyledDivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
72
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
73
|
-
'data-testid'?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface StyledCalendarBlockProps extends StyledDivProps {
|
|
76
|
-
$active?: boolean;
|
|
77
|
-
$currentTimeStick?: number;
|
|
78
|
-
}
|
|
79
|
-
export interface StyledCalendarTimelineBlockProps extends StyledDivProps {
|
|
80
|
-
$text?: string;
|
|
81
|
-
$headerBlock?: boolean;
|
|
82
|
-
}
|
|
83
|
-
export interface StyledEventWrapperProps extends StyledDivProps {
|
|
84
|
-
$startPosition: number;
|
|
85
|
-
$height: number;
|
|
86
|
-
$widthFactor: number;
|
|
87
|
-
$indexFactor: number;
|
|
88
|
-
$focused?: boolean;
|
|
89
|
-
}
|
|
16
|
+
export type CalendarView = 'monthly' | 'weekly';
|
|
90
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;CACb;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAE9E,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,EAAE;IACjC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarEventExtended } from './types';
|
|
2
1
|
export declare const cloneDate: (date: Date) => Date;
|
|
3
2
|
export declare const getCurrentWeek: () => Date[];
|
|
4
3
|
export declare const getWeekDayLabel: (day: Date) => string;
|
|
@@ -12,10 +11,4 @@ export declare const get12HourFormatFromDate: (date: Date) => string;
|
|
|
12
11
|
export declare const getDateStringInDDMMMYYYHHmmFormat: (date: Date) => string;
|
|
13
12
|
export declare const getTimeListIn12HourFormat: () => string[];
|
|
14
13
|
export declare const getDurationInMilliseconds: (start: Date, end: Date) => number;
|
|
15
|
-
export declare const getCurrentTimeStickPosition: () => number;
|
|
16
|
-
export declare const getStartTimestampOfHourBlock: (date: Date, hour: number) => number;
|
|
17
|
-
export declare const getEventBlockStartPosition: (event: CalendarEvent) => number;
|
|
18
|
-
export declare const getEventBlockHeight: (event: CalendarEvent) => number;
|
|
19
|
-
export declare function getOverlapInformationForDay<T>(events: CalendarEvent<T>[]): Promise<CalendarEventExtended<T>[]>;
|
|
20
|
-
export declare const isPlaceholderBlock: (date: Date, hourIndex: number) => boolean;
|
|
21
14
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/utils.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,SAAU,IAAI,KAAG,IAAgC,CAAC;AAExE,eAAO,MAAM,cAAc,QAAO,IAAI,EAUrC,CAAC;AAEF,eAAO,MAAM,eAAe,QAAS,IAAI,KAAG,MACa,CAAC;AAE1D,eAAO,MAAM,aAAa,QAAS,IAAI,KAAG,MACa,CAAC;AAExD,eAAO,MAAM,YAAY,QAAS,IAAI,KAAG,MAAsC,CAAC;AAEhF,eAAO,MAAM,eAAe,QAAS,IAAI,KAAG,MACI,CAAC;AAEjD,eAAO,MAAM,gBAAgB,QAAS,IAAI,WAAU,MAAM,KAAO,MAMhE,CAAC;AAEF,eAAO,MAAM,YAAY,QAAS,IAAI,KAAG,OAOxC,CAAC;AAEF,eAAO,MAAM,eAAe,YAAY,MAAM,KAAO,IAAI,EAWxD,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,IAAI,KAAG,MAOpD,CAAC;AAEF,eAAO,MAAM,iCAAiC,SAAU,IAAI,KAAG,MAK9D,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAO,MAAM,EAQlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,IAAI,OAAO,IAAI,KAAG,MAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Overlay/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAK7D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Overlay/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAK7D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,OAAO,qFAuEX,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Overlay/Overlay.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"Overlay.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Overlay/Overlay.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,aAAa,0LAkCzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyledDivProps } from '
|
|
2
|
+
import { StyledDivProps } from '../../../common/types';
|
|
3
3
|
export interface OverlayProps {
|
|
4
4
|
/**
|
|
5
5
|
* Content to be displayed inside the Overlay.
|
|
@@ -38,6 +38,10 @@ export interface OverlayProps {
|
|
|
38
38
|
* Duration in seconds for the overlay animation
|
|
39
39
|
*/
|
|
40
40
|
animationDuration?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Additional className to be passed to the Overlay
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
41
45
|
}
|
|
42
46
|
export interface StyledOverlayProps extends StyledDivProps {
|
|
43
47
|
$shouldTintOverlay?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Overlay/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Overlay/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Placeholder/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Placeholder/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopOver.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/PopOver.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAmC,YAAY,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"PopOver.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/PopOver.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAmC,YAAY,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,eA4RlD"}
|
|
@@ -7,6 +7,10 @@ export type PopOverOffset = {
|
|
|
7
7
|
bottom?: number;
|
|
8
8
|
right?: number;
|
|
9
9
|
};
|
|
10
|
+
export type PopoverPosition = {
|
|
11
|
+
top: number;
|
|
12
|
+
left: number;
|
|
13
|
+
};
|
|
10
14
|
export interface PopOverProps {
|
|
11
15
|
/**
|
|
12
16
|
* Whether the PopOver is open or not.
|
|
@@ -64,6 +68,11 @@ export interface PopOverProps {
|
|
|
64
68
|
* Height of the PopOver Content.
|
|
65
69
|
*/
|
|
66
70
|
height?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Custom position of the PopOver.
|
|
73
|
+
* This will directly open the popover at given position without any adjustments.
|
|
74
|
+
*/
|
|
75
|
+
position?: PopoverPosition;
|
|
67
76
|
}
|
|
68
77
|
export interface StyledPopOverContainerProps extends StyledDivProps {
|
|
69
78
|
$offset?: PopOverOffset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,gB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ainerProps, StyledRangeInputProps } from './types';
|
|
3
3
|
export declare const StyledRangeInputContainer: import("styled-components").StyledComponent<string, any, StyledRangeInputContainerProps, never>;
|
|
4
4
|
export declare const StyledRangeSliderSection: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeInput.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/RangeInput/RangeInput.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RangeInput.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/RangeInput/RangeInput.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhF,eAAO,MAAM,yBAAyB,iGAYrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,iFAMpC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;kCAoD5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,iFAQjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/RangeInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/RangeInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,8BAA+B,SAAQ,cAAc;IAClE,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tabs/Tabs.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,iBAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,eAwC5B;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StyledTabContainerProps, StyledTabItemContainerProps, StyledTextProps } from './types';
|
|
2
|
+
export declare const StyledTabContainer: import("styled-components").StyledComponent<string, any, StyledTabContainerProps, never>;
|
|
3
|
+
export declare const StyledTabItemContainer: import("styled-components").StyledComponent<string, any, StyledTabItemContainerProps, never>;
|
|
4
|
+
export declare const StyledTabItemText: import("styled-components").StyledComponent<string, any, StyledTextProps, never>;
|
|
5
|
+
//# sourceMappingURL=Tabs.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Tabs/Tabs.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,uBAAuB,EACvB,2BAA2B,EAC3B,eAAe,EAClB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,kBAAkB,0FAkB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,8FA6BlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,kFAY7B,CAAC"}
|