@newtonschool/grauity 1.0.0 → 1.0.2

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 (169) hide show
  1. package/dist/common/types.d.ts +38 -0
  2. package/dist/common/types.d.ts.map +1 -0
  3. package/dist/fonts/grauity-icons.eot +0 -0
  4. package/dist/fonts/grauity-icons.ttf +0 -0
  5. package/dist/fonts/grauity-icons.woff +0 -0
  6. package/dist/fonts/grauity-icons.woff2 +0 -0
  7. package/dist/hooks/useDisableBodyScroll.d.ts +1 -1
  8. package/dist/hooks/useDisableBodyScroll.d.ts.map +1 -1
  9. package/dist/index.d.ts +230 -228
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/main.cjs +1 -1
  12. package/dist/main.cjs.map +1 -1
  13. package/dist/main.css +1 -1
  14. package/dist/main.css.map +1 -1
  15. package/dist/module.css +1 -1
  16. package/dist/module.css.map +1 -1
  17. package/dist/module.mjs +1 -1
  18. package/dist/module.mjs.map +1 -1
  19. package/dist/stories/elements/Accordion/index.stories.d.ts +10 -0
  20. package/dist/stories/elements/Accordion/index.stories.d.ts.map +1 -0
  21. package/dist/stories/elements/BottomSheet/index.stories.d.ts +16 -0
  22. package/dist/stories/elements/BottomSheet/index.stories.d.ts.map +1 -0
  23. package/dist/stories/elements/Calendar/CalendarEvent/index.stories.d.ts +11 -0
  24. package/dist/stories/elements/Calendar/CalendarEvent/index.stories.d.ts.map +1 -0
  25. package/dist/stories/elements/Calendar/WeeklyCalendar/WithoutWeekControls.stories.d.ts +10 -0
  26. package/dist/stories/elements/Calendar/WeeklyCalendar/WithoutWeekControls.stories.d.ts.map +1 -0
  27. package/dist/stories/elements/Calendar/WeeklyCalendar/index.stories.d.ts +17 -0
  28. package/dist/stories/elements/Calendar/WeeklyCalendar/index.stories.d.ts.map +1 -0
  29. package/dist/stories/elements/Chip/Gallery.stories.d.ts +10 -0
  30. package/dist/stories/elements/Chip/Gallery.stories.d.ts.map +1 -0
  31. package/dist/stories/elements/Chip/index.stories.d.ts +9 -0
  32. package/dist/stories/elements/Chip/index.stories.d.ts.map +1 -0
  33. package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts +1 -35
  34. package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts.map +1 -1
  35. package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts +2 -35
  36. package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts.map +1 -1
  37. package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts +0 -32
  38. package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts.map +1 -1
  39. package/dist/stories/elements/PopOver/index.stories.d.ts +10 -0
  40. package/dist/stories/elements/PopOver/index.stories.d.ts.map +1 -0
  41. package/dist/stories/elements/Table/Manual.stories.d.ts +1 -31
  42. package/dist/stories/elements/Table/Manual.stories.d.ts.map +1 -1
  43. package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts +1 -31
  44. package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts.map +1 -1
  45. package/dist/stories/elements/Table/index.stories.d.ts +1 -31
  46. package/dist/stories/elements/Table/index.stories.d.ts.map +1 -1
  47. package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts +1 -21
  48. package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts.map +1 -1
  49. package/dist/stories/elements/Typography/index.stories.d.ts +1 -21
  50. package/dist/stories/elements/Typography/index.stories.d.ts.map +1 -1
  51. package/dist/stories/helper-components/ColorRenderer/index.d.ts +2 -11
  52. package/dist/stories/helper-components/ColorRenderer/index.d.ts.map +1 -1
  53. package/dist/stories/helper-components/DocPageWithPlayground.d.ts +3 -8
  54. package/dist/stories/helper-components/DocPageWithPlayground.d.ts.map +1 -1
  55. package/dist/stories/helper-components/TokenBlock/index.d.ts +2 -14
  56. package/dist/stories/helper-components/TokenBlock/index.d.ts.map +1 -1
  57. package/dist/ui/core/icons/iconTags.d.ts +2 -0
  58. package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
  59. package/dist/ui/core/icons/iconTypes.d.ts +4 -2
  60. package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
  61. package/dist/ui/elements/Accordion/Accordion.d.ts +5 -0
  62. package/dist/ui/elements/Accordion/Accordion.d.ts.map +1 -0
  63. package/dist/ui/elements/Accordion/Accordion.styles.d.ts +6 -0
  64. package/dist/ui/elements/Accordion/Accordion.styles.d.ts.map +1 -0
  65. package/dist/ui/elements/Accordion/Accordion.test.d.ts +2 -0
  66. package/dist/ui/elements/Accordion/Accordion.test.d.ts.map +1 -0
  67. package/dist/ui/elements/Accordion/index.d.ts +3 -0
  68. package/dist/ui/elements/Accordion/index.d.ts.map +1 -0
  69. package/dist/ui/elements/Accordion/types.d.ts +32 -0
  70. package/dist/ui/elements/Accordion/types.d.ts.map +1 -0
  71. package/dist/ui/elements/Alert/Alert.d.ts.map +1 -1
  72. package/dist/ui/elements/Alert/types.d.ts +1 -1
  73. package/dist/ui/elements/Alert/types.d.ts.map +1 -1
  74. package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +1 -1
  75. package/dist/ui/elements/BottomSheet/BottomSheet.d.ts +5 -0
  76. package/dist/ui/elements/BottomSheet/BottomSheet.d.ts.map +1 -0
  77. package/dist/ui/elements/BottomSheet/BottomSheet.styles.d.ts +8 -0
  78. package/dist/ui/elements/BottomSheet/BottomSheet.styles.d.ts.map +1 -0
  79. package/dist/ui/elements/BottomSheet/BottomSheet.test.d.ts +2 -0
  80. package/dist/ui/elements/BottomSheet/BottomSheet.test.d.ts.map +1 -0
  81. package/dist/ui/elements/BottomSheet/constants.d.ts +4 -0
  82. package/dist/ui/elements/BottomSheet/constants.d.ts.map +1 -0
  83. package/dist/ui/elements/BottomSheet/index.d.ts +3 -0
  84. package/dist/ui/elements/BottomSheet/index.d.ts.map +1 -0
  85. package/dist/ui/elements/BottomSheet/types.d.ts +56 -0
  86. package/dist/ui/elements/BottomSheet/types.d.ts.map +1 -0
  87. package/dist/ui/elements/Button/Button.d.ts.map +1 -1
  88. package/dist/ui/elements/Button/Button.styles.d.ts.map +1 -1
  89. package/dist/ui/elements/Button/ButtonGroup.d.ts +1 -8
  90. package/dist/ui/elements/Button/ButtonGroup.d.ts.map +1 -1
  91. package/dist/ui/elements/Button/IconButton.d.ts.map +1 -1
  92. package/dist/ui/elements/Button/constants.d.ts +14 -20
  93. package/dist/ui/elements/Button/constants.d.ts.map +1 -1
  94. package/dist/ui/elements/Button/types.d.ts +1 -0
  95. package/dist/ui/elements/Button/types.d.ts.map +1 -1
  96. package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.d.ts +5 -0
  97. package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.d.ts.map +1 -0
  98. package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts +6 -0
  99. package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts.map +1 -0
  100. package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.test.d.ts +2 -0
  101. package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.test.d.ts.map +1 -0
  102. package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts +69 -0
  103. package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts.map +1 -0
  104. package/dist/ui/elements/Calendar/EventRenderer.d.ts +5 -0
  105. package/dist/ui/elements/Calendar/EventRenderer.d.ts.map +1 -0
  106. package/dist/ui/elements/Calendar/WeeklyCalendar.d.ts +4 -0
  107. package/dist/ui/elements/Calendar/WeeklyCalendar.d.ts.map +1 -0
  108. package/dist/ui/elements/Calendar/WeeklyCalendar.styles.d.ts +15 -0
  109. package/dist/ui/elements/Calendar/WeeklyCalendar.styles.d.ts.map +1 -0
  110. package/dist/ui/elements/Calendar/WeeklyCalendar.test.d.ts +2 -0
  111. package/dist/ui/elements/Calendar/WeeklyCalendar.test.d.ts.map +1 -0
  112. package/dist/ui/elements/Calendar/constants.d.ts +3 -0
  113. package/dist/ui/elements/Calendar/constants.d.ts.map +1 -0
  114. package/dist/ui/elements/Calendar/index.d.ts +5 -0
  115. package/dist/ui/elements/Calendar/index.d.ts.map +1 -0
  116. package/dist/ui/elements/Calendar/types.d.ts +67 -0
  117. package/dist/ui/elements/Calendar/types.d.ts.map +1 -0
  118. package/dist/ui/elements/Calendar/utils.d.ts +20 -0
  119. package/dist/ui/elements/Calendar/utils.d.ts.map +1 -0
  120. package/dist/ui/elements/Chip/Chip.d.ts +5 -0
  121. package/dist/ui/elements/Chip/Chip.d.ts.map +1 -0
  122. package/dist/ui/elements/Chip/Chip.styles.d.ts +3 -0
  123. package/dist/ui/elements/Chip/Chip.styles.d.ts.map +1 -0
  124. package/dist/ui/elements/Chip/Chip.test.d.ts +2 -0
  125. package/dist/ui/elements/Chip/Chip.test.d.ts.map +1 -0
  126. package/dist/ui/elements/Chip/constants.d.ts +34 -0
  127. package/dist/ui/elements/Chip/constants.d.ts.map +1 -0
  128. package/dist/ui/elements/Chip/index.d.ts +3 -0
  129. package/dist/ui/elements/Chip/index.d.ts.map +1 -0
  130. package/dist/ui/elements/Chip/types.d.ts +53 -0
  131. package/dist/ui/elements/Chip/types.d.ts.map +1 -0
  132. package/dist/ui/elements/Icon/Icon.d.ts +0 -40
  133. package/dist/ui/elements/Icon/Icon.d.ts.map +1 -1
  134. package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts +1 -36
  135. package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts.map +1 -1
  136. package/dist/ui/elements/Modal/Modal.d.ts.map +1 -1
  137. package/dist/ui/elements/Modal/MultiStepModal/index.d.ts +0 -33
  138. package/dist/ui/elements/Modal/MultiStepModal/index.d.ts.map +1 -1
  139. package/dist/ui/elements/MultiSelectDropdown/types.d.ts +6 -7
  140. package/dist/ui/elements/MultiSelectDropdown/types.d.ts.map +1 -1
  141. package/dist/ui/elements/PopOver/PopOver.d.ts +4 -0
  142. package/dist/ui/elements/PopOver/PopOver.d.ts.map +1 -0
  143. package/dist/ui/elements/PopOver/PopOver.styles.d.ts +3 -0
  144. package/dist/ui/elements/PopOver/PopOver.styles.d.ts.map +1 -0
  145. package/dist/ui/elements/PopOver/PopOver.test.d.ts +2 -0
  146. package/dist/ui/elements/PopOver/PopOver.test.d.ts.map +1 -0
  147. package/dist/ui/elements/PopOver/constants.d.ts +2 -0
  148. package/dist/ui/elements/PopOver/constants.d.ts.map +1 -0
  149. package/dist/ui/elements/PopOver/index.d.ts +3 -0
  150. package/dist/ui/elements/PopOver/index.d.ts.map +1 -0
  151. package/dist/ui/elements/PopOver/types.d.ts +63 -0
  152. package/dist/ui/elements/PopOver/types.d.ts.map +1 -0
  153. package/dist/ui/elements/SelectDropdown/SelectDropdown.styles.d.ts +2 -1
  154. package/dist/ui/elements/SelectDropdown/SelectDropdown.styles.d.ts.map +1 -1
  155. package/dist/ui/elements/SelectDropdown/types.d.ts +4 -8
  156. package/dist/ui/elements/SelectDropdown/types.d.ts.map +1 -1
  157. package/dist/ui/elements/Table/Table.d.ts +1 -32
  158. package/dist/ui/elements/Table/Table.d.ts.map +1 -1
  159. package/dist/ui/elements/Typography/Typography.d.ts +1 -22
  160. package/dist/ui/elements/Typography/Typography.d.ts.map +1 -1
  161. package/dist/ui/elements/Typography/types.d.ts +1 -1
  162. package/dist/ui/index.d.ts +5 -3
  163. package/dist/ui/index.d.ts.map +1 -1
  164. package/dist/ui/init/GrauityInit.d.ts +2 -21
  165. package/dist/ui/init/GrauityInit.d.ts.map +1 -1
  166. package/dist/ui/themes/GlobalStyle.d.ts +1 -1
  167. package/dist/ui/themes/ThemeContext.d.ts +1 -13
  168. package/dist/ui/themes/ThemeContext.d.ts.map +1 -1
  169. package/package.json +7 -3
@@ -0,0 +1,69 @@
1
+ import React from 'react';
2
+ export interface CalendarEventProps {
3
+ /**
4
+ * The title of the calendar event.
5
+ */
6
+ title: string;
7
+ /**
8
+ * Optional content to be displayed on a chip within the event.
9
+ * If not provided, the chip will not be displayed.
10
+ */
11
+ chipContent?: string;
12
+ /**
13
+ * The start date and time of the event.
14
+ */
15
+ start: Date;
16
+ /**
17
+ * The end date and time of the event.
18
+ */
19
+ end: Date;
20
+ /**
21
+ * Optional click handler for the event.
22
+ */
23
+ onClick?: () => void;
24
+ /**
25
+ * Indicates whether the event is focused.
26
+ */
27
+ focused?: boolean;
28
+ /**
29
+ * Minimum duration (in milliseconds) required to display the event time.
30
+ */
31
+ minDurationToDisplayTime?: number;
32
+ /**
33
+ * Text color of the event.
34
+ * @default 'var(--text-action2)'
35
+ */
36
+ textColor?: string;
37
+ /**
38
+ * Background color of the event.
39
+ * @default 'var(--bg-action-brand)'
40
+ */
41
+ backgroundColor?: string;
42
+ /**
43
+ * Border color of the event.
44
+ * @default 'var(--border)'
45
+ */
46
+ borderColor?: string;
47
+ /**
48
+ * Text color of the chip content.
49
+ * @default 'var(--text-action2)'
50
+ */
51
+ chipTextColor?: string;
52
+ /**
53
+ * Background color of the chip content.
54
+ * @default 'var(--color-brand-600)'
55
+ */
56
+ chipBackgroundColor?: string;
57
+ }
58
+ export interface StyledDivProps extends React.HTMLAttributes<HTMLDivElement> {
59
+ ref?: React.Ref<HTMLDivElement>;
60
+ }
61
+ export interface StyledCalendarEventWrapperProps extends StyledDivProps {
62
+ $textColor?: string;
63
+ $backgroundColor?: string;
64
+ $borderColor?: string;
65
+ $focused?: boolean;
66
+ $smallEvent?: boolean;
67
+ $extraSmallEvent?: boolean;
68
+ }
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/CalendarEvent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,EAAE,IAAI,CAAC;IAEZ;;OAEG;IACH,GAAG,EAAE,IAAI,CAAC;IAEV;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACxE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,+BAAgC,SAAQ,cAAc;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { EventRendererProps } from './types';
3
+ declare const EventRenderer: ({ event, eventRenderer, }: EventRendererProps) => React.ReactElement;
4
+ export default EventRenderer;
5
+ //# sourceMappingURL=EventRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventRenderer.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/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,4 @@
1
+ /// <reference types="react" />
2
+ import { WeeklyCalendarProps } from './types';
3
+ export default function WeeklyCalendar<T>(props: WeeklyCalendarProps<T>): JSX.Element;
4
+ //# sourceMappingURL=WeeklyCalendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WeeklyCalendar.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/WeeklyCalendar.tsx"],"names":[],"mappings":";AAKA,OAAO,EAA+B,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA4B3E,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,eA6OtE"}
@@ -0,0 +1,15 @@
1
+ import { StyledCalendarBlockProps, StyledCalendarTimelineBlockProps, StyledDivProps, StyledEventWrapperProps } from './types';
2
+ export declare const StyledCalendarMonthButton: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
3
+ export declare const StyledCalendarWrapper: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
4
+ export declare const StyledCalendarHeader: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
5
+ export declare const StyledCalendarRow: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
6
+ export declare const StyledCalendarHeaderRow: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
7
+ export declare const StyledCalendarTimelineBlock: import("styled-components").StyledComponent<string, any, StyledCalendarTimelineBlockProps, never>;
8
+ export declare const StyledCalendarHeaderBlock: import("styled-components").StyledComponent<string, any, StyledCalendarBlockProps, never>;
9
+ export declare const StyledCalendarWeekLabel: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
10
+ export declare const StyledCalendarDateLabel: import("styled-components").StyledComponent<string, any, StyledCalendarBlockProps, never>;
11
+ export declare const StyledCalendarTimeline: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
12
+ export declare const StyledCalendarTimelineRow: import("styled-components").StyledComponent<string, any, StyledDivProps, never>;
13
+ export declare const StyledCalendarBlock: import("styled-components").StyledComponent<string, any, StyledCalendarBlockProps, never>;
14
+ export declare const StyledEventWrapper: import("styled-components").StyledComponent<string, any, StyledEventWrapperProps, never>;
15
+ //# sourceMappingURL=WeeklyCalendar.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WeeklyCalendar.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/WeeklyCalendar.styles.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,wBAAwB,EACxB,gCAAgC,EAChC,cAAc,EACd,uBAAuB,EAC1B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,yBAAyB,iFAOrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,iFAajC,CAAC;AAEF,eAAO,MAAM,oBAAoB,iFAKhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,iFAM7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,iFAInC,CAAC;AAEF,eAAO,MAAM,2BAA2B,mGAiCvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,2FAmBrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iFAMnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,2FAenC,CAAC;AAEF,eAAO,MAAM,sBAAsB,iFAElC,CAAC;AAEF,eAAO,MAAM,yBAAyB,iFAIrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,2FAyC/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0FAS9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=WeeklyCalendar.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WeeklyCalendar.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/WeeklyCalendar.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const CALENDAR_BLOCK_HEIGHT = 52;
2
+ export declare const CALENDAR_SIDEBAR_WIDTH = 80;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { WeeklyCalendarProps } from './types';
2
+ export { default } from './WeeklyCalendar';
3
+ export { default as CalendarEvent } from './CalendarEvent/CalendarEvent';
4
+ export type { CalendarEventProps } from './CalendarEvent/types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ export type EventRendererFn<T> = (event: CalendarEvent<T>) => React.ReactNode;
3
+ export interface CalendarEvent<T = {}> {
4
+ title?: string;
5
+ start: Date;
6
+ end: Date;
7
+ allDay?: boolean;
8
+ render?: EventRendererFn<T>;
9
+ }
10
+ export type CalendarEventRecord<T> = Record<number, CalendarEvent<T>[]>;
11
+ export type CalendarEventExtended<T> = CalendarEvent<T> & {
12
+ overlap: number;
13
+ index: number;
14
+ forcedEventData?: {
15
+ start: Date;
16
+ end: Date;
17
+ };
18
+ };
19
+ export type CalendarEventRecordExtended<T> = Record<number, CalendarEventExtended<T>[]>;
20
+ export interface WeeklyCalendarProps<T = {}> {
21
+ /**
22
+ * An optional array of calendar events.
23
+ * @default []
24
+ */
25
+ events?: CalendarEvent<T>[];
26
+ /**
27
+ * A function to render each event.
28
+ */
29
+ eventRenderer?: EventRendererFn<T>;
30
+ /**
31
+ * A boolean indicating whether to show week controls.
32
+ * @default true
33
+ */
34
+ shouldShowWeekControls?: boolean;
35
+ /**
36
+ * The offset for the week relative to current week, where 0 represents the current week.
37
+ * @default 0
38
+ */
39
+ weekOffset?: number;
40
+ /**
41
+ * A callback function that is called when the week changes.
42
+ * @param weekOffset - The new week offset.
43
+ */
44
+ onWeekChange?: (weekOffset: number) => void;
45
+ }
46
+ export interface EventRendererProps<T = {}> {
47
+ event?: CalendarEvent;
48
+ eventRenderer?: EventRendererFn<T>;
49
+ }
50
+ export interface StyledDivProps extends React.HTMLAttributes<HTMLDivElement> {
51
+ ref?: React.Ref<HTMLDivElement>;
52
+ }
53
+ export interface StyledCalendarBlockProps extends StyledDivProps {
54
+ $active?: boolean;
55
+ $currentTimeStick?: number;
56
+ }
57
+ export interface StyledCalendarTimelineBlockProps extends StyledDivProps {
58
+ $text?: string;
59
+ $headerBlock?: boolean;
60
+ }
61
+ export interface StyledEventWrapperProps extends StyledDivProps {
62
+ $startPosition: number;
63
+ $height: number;
64
+ $widthFactor: number;
65
+ $indexFactor: number;
66
+ }
67
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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,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,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAA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;AAED,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,gCAAiC,SAAQ,cAAc;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,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;CACxB"}
@@ -0,0 +1,20 @@
1
+ import { CalendarEvent, CalendarEventExtended } from './types';
2
+ export declare const cloneDate: (date: Date) => Date;
3
+ export declare const getCurrentWeek: () => Date[];
4
+ export declare const getWeekDayLabel: (day: Date) => string;
5
+ export declare const getMonthLabel: (day: Date) => string;
6
+ export declare const getYearLabel: (day: Date) => string;
7
+ export declare const getMonthDetails: (day: Date) => string;
8
+ export declare const getDateFullLabel: (day: Date, offset?: number) => string;
9
+ export declare const checkIsToday: (day: Date) => boolean;
10
+ export declare const getWeekByOffset: (offset?: number) => Date[];
11
+ export declare const get12HourFormatFromDate: (date: Date) => string;
12
+ export declare const getDateStringInDDMMMYYYHHmmFormat: (date: Date) => string;
13
+ export declare const getTimeListIn12HourFormat: () => string[];
14
+ 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
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","s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}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ChipProps } from './types';
3
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default Chip;
5
+ //# sourceMappingURL=Chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,IAAI,kFAyBT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { StyledChip } from './types';
2
+ export declare const StyledChipDiv: import("styled-components").StyledComponent<string, any, StyledChip, never>;
3
+ //# sourceMappingURL=Chip.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/Chip.styles.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,aAAa,6EAyCzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=Chip.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/Chip.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { ChipSizes, ChipVariants } from './types';
2
+ export declare enum CHIP_VARIANTS_ENUM {
3
+ BRAND = "brand",
4
+ SUCCESS = "success",
5
+ ERROR = "error",
6
+ WARNING = "warning",
7
+ YELLOW = "yellow",
8
+ PURPLE = "purple",
9
+ DISABLED = "disabled",
10
+ ACTION_BRAND = "action-brand",
11
+ ACTION_SUCCESS = "action-success",
12
+ ACTION_ERROR = "action-error",
13
+ ACTION_WARNING = "action-warning",
14
+ ACTION_YELLOW = "action-yellow",
15
+ ACTION_PURPLE = "action-purple"
16
+ }
17
+ export declare enum CHIP_SIZES_ENUM {
18
+ SMALL = "small",
19
+ MEDIUM = "medium",
20
+ LARGE = "large",
21
+ EXTRA_LARGE = "extra-large"
22
+ }
23
+ export declare const CHIP_VARIANT_STYLES_MAPPING: {
24
+ [variant in ChipVariants]: {
25
+ [cssSelector: string]: any;
26
+ };
27
+ };
28
+ export declare const CHIP_VARIANTS: CHIP_VARIANTS_ENUM[];
29
+ export declare const CHIP_FONT_SIZE_MAPPING: {
30
+ [size in ChipSizes]: {
31
+ [cssSelector: string]: any;
32
+ };
33
+ };
34
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAElD,oBAAY,kBAAkB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;CAClC;AAED,oBAAY,eAAe;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC9B;AAED,eAAO,MAAM,2BAA2B,EAAE;KACrC,OAAO,IAAI,YAAY,GAAG;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAmE5D,CAAC;AAEF,eAAO,MAAM,aAAa,sBAczB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE;KAChC,IAAI,IAAI,SAAS,GAAG;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;CAMtD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './Chip';
2
+ export type { ChipProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ import { StyledDivProps } from '../../../common/types';
3
+ export type ChipVariants = 'brand' | 'success' | 'error' | 'warning' | 'yellow' | 'purple' | 'disabled' | 'action-brand' | 'action-success' | 'action-error' | 'action-warning' | 'action-yellow' | 'action-purple';
4
+ export type ChipSizes = 'small' | 'medium' | 'large' | 'extra-large';
5
+ /**
6
+ * Properties for the Chip component.
7
+ */
8
+ export interface ChipProps {
9
+ /**
10
+ * Variant of the chip.
11
+ * @default 'brand'
12
+ */
13
+ variant?: ChipVariants;
14
+ /**
15
+ * Size of the chip.
16
+ * @default 'medium'
17
+ */
18
+ size?: ChipSizes;
19
+ /**
20
+ * Flag to determine if the chip should have a border.
21
+ * @default false
22
+ */
23
+ hasBorder?: boolean;
24
+ /**
25
+ * Text color of the chip.
26
+ * @default null
27
+ */
28
+ textColor?: string;
29
+ /**
30
+ * Background color of the chip.
31
+ * @default null
32
+ */
33
+ backgroundColor?: string;
34
+ /**
35
+ * Border color of the chip.
36
+ * @default null
37
+ */
38
+ borderColor?: string;
39
+ /**
40
+ * Content to be displayed inside the chip.
41
+ */
42
+ children?: React.ReactNode;
43
+ }
44
+ export interface StyledChip extends StyledDivProps {
45
+ variant?: ChipVariants;
46
+ size?: ChipSizes;
47
+ hasBorder?: boolean;
48
+ textColor?: string | null;
49
+ backgroundColor?: string | null;
50
+ borderColor?: string | null;
51
+ ref?: React.Ref<HTMLDivElement>;
52
+ }
53
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,YAAY,GAClB,OAAO,GACP,SAAS,GACT,OAAO,GACP,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAC;AAEtB,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc;IAC9C,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACnC"}
@@ -1,48 +1,8 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
2
  import { IconProps } from './types';
4
3
  /**
5
4
  * An icon is a glyph used to represent something else.
6
5
  */
7
6
  declare function Icon({ ariaHidden, ariaLabel, as, bordered, circular, color, className, disabled, fitted, flipped, inverted, link, loading, name, rotated, size, style, ...props }: IconProps): JSX.Element;
8
- declare namespace Icon {
9
- var propTypes: {
10
- ariaHidden: PropTypes.Requireable<string>;
11
- ariaLabel: PropTypes.Requireable<string>;
12
- as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
13
- bordered: PropTypes.Requireable<boolean>;
14
- circular: PropTypes.Requireable<boolean>;
15
- color: PropTypes.Requireable<string>;
16
- className: PropTypes.Requireable<string>;
17
- disabled: PropTypes.Requireable<boolean>;
18
- fitted: PropTypes.Requireable<boolean>;
19
- flipped: PropTypes.Requireable<import("../../core/miscellaneous-choices").GRAUITY_FLIPPED_CHOICES>;
20
- inverted: PropTypes.Requireable<boolean>;
21
- link: PropTypes.Requireable<boolean>;
22
- loading: PropTypes.Requireable<boolean>;
23
- name: PropTypes.Validator<string>;
24
- rotated: PropTypes.Requireable<import("../../core/miscellaneous-choices").GRAUITY_ROTATED_CHOICES>;
25
- size: PropTypes.Requireable<import("../../core").GRAUITY_SIZE>;
26
- style: PropTypes.Requireable<object>;
27
- };
28
- var defaultProps: {
29
- ariaHidden: string;
30
- ariaLabel: any;
31
- as: string;
32
- bordered: boolean;
33
- circular: boolean;
34
- color: string;
35
- className: any;
36
- disabled: boolean;
37
- fitted: boolean;
38
- flipped: any;
39
- inverted: boolean;
40
- link: boolean;
41
- loading: boolean;
42
- rotated: any;
43
- size: string;
44
- style: any;
45
- };
46
- }
47
7
  export default Icon;
48
8
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Icon/Icon.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAWnC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,iBAAS,IAAI,CAAC,EACV,UAAU,EACV,SAAS,EACT,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,KAAK,EACL,GAAG,KAAK,EACX,EAAE,SAAS,eA4DX;kBA/EQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHb,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Icon/Icon.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,iBAAS,IAAI,CAAC,EACV,UAAmB,EACnB,SAAS,EACT,EAAQ,EACR,QAAgB,EAChB,QAAgB,EAChB,KAAc,EACd,SAAS,EACT,QAAgB,EAChB,MAAc,EACd,OAAO,EACP,QAAgB,EAChB,IAAY,EACZ,OAAe,EACf,IAAI,EACJ,OAAO,EACP,IAAW,EACX,KAAK,EACL,GAAG,KAAK,EACX,EAAE,SAAS,eA4DX;AAED,eAAe,IAAI,CAAC"}
@@ -1,43 +1,8 @@
1
- import PropTypes from 'prop-types';
2
1
  import { ConfirmationDialogProps } from '../types';
3
2
  /**
4
3
  * A confirmation dialog is a dialog box that asks the user to confirm an action.
5
4
  */
6
- declare const ConfirmationDialog: {
7
- ({ cancelText, confirmText, onCancel, onConfirm, banner, title, description, body, cancelButtonVariant, confirmButtonVariant, showCloseButton, hideOnClickAway, blurBackground, mobileBottomFullWidth, }: ConfirmationDialogProps): JSX.Element;
8
- propTypes: {
9
- cancelText: PropTypes.Requireable<string>;
10
- confirmText: PropTypes.Requireable<string>;
11
- onCancel: PropTypes.Requireable<(...args: any[]) => any>;
12
- onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
13
- banner: PropTypes.Requireable<PropTypes.ReactNodeLike>;
14
- title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
15
- description: PropTypes.Requireable<string>;
16
- body: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- cancelButtonVariant: PropTypes.Requireable<string>;
18
- confirmButtonVariant: PropTypes.Requireable<string>;
19
- showCloseButton: PropTypes.Requireable<boolean>;
20
- hideOnClickAway: PropTypes.Requireable<boolean>;
21
- blurBackground: PropTypes.Requireable<boolean>;
22
- mobileBottomFullWidth: PropTypes.Requireable<boolean>;
23
- };
24
- defaultProps: {
25
- cancelText: string;
26
- confirmText: string;
27
- banner: any;
28
- title: string;
29
- description: string;
30
- body: any;
31
- onCancel: () => void;
32
- onConfirm: () => void;
33
- cancelButtonVariant: string;
34
- confirmButtonVariant: string;
35
- showCloseButton: boolean;
36
- hideOnClickAway: boolean;
37
- blurBackground: boolean;
38
- mobileBottomFullWidth: boolean;
39
- };
40
- };
5
+ declare const ConfirmationDialog: ({ cancelText, confirmText, onCancel, onConfirm, banner, title, description, body, cancelButtonVariant, confirmButtonVariant, showCloseButton, hideOnClickAway, blurBackground, mobileBottomFullWidth, }: ConfirmationDialogProps) => JSX.Element;
41
6
  export { ConfirmationDialogProps };
42
7
  export default ConfirmationDialog;
43
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Modal/ConfirmationDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAQnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD;;GAEG;AACH,QAAA,MAAM,kBAAkB;8MAerB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFzB,CAAC;AAoCF,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Modal/ConfirmationDialog/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD;;GAEG;AACH,QAAA,MAAM,kBAAkB,4MAerB,uBAAuB,gBAsFzB,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAQ9E,OAAO,EACH,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,QAAA,MAAM,KAAK;aA8FE,yBAAyB;WAC3B,kBAAkB;UACnB,sBAAsB;YACpB,wBAAwB;WACzB,uBAAuB;iBACjB,6BAA6B;UACpC,sBAAsB;YACpB,wBAAwB;aACvB,yBAAyB;CACrC,CAAC;AAgDF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAQ9E,OAAO,EACH,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;GAIG;AACH,QAAA,MAAM,KAAK;aAkGE,yBAAyB;WAC3B,kBAAkB;UACnB,sBAAsB;YACpB,wBAAwB;WACzB,uBAAuB;iBACjB,6BAA6B;UACpC,sBAAsB;YACpB,wBAAwB;aACvB,yBAAyB;CACrC,CAAC;AAYF,eAAe,KAAK,CAAC"}
@@ -1,42 +1,9 @@
1
- import PropTypes from 'prop-types';
2
1
  import { MultiStepModalProps } from '../types';
3
2
  /**
4
3
  * A multi-step modal is a modal that has multiple steps.
5
4
  */
6
5
  declare const MultiStepModal: {
7
6
  ({ modalSteps, showModalStepsPagination, hideOnClickAway, blurBackground, onHide, onFinalStep, mobileBottomFullWidth, onStepChange, modalPadding, modalBodyMargin, width, height, minHeight, showCloseButton, }: MultiStepModalProps): JSX.Element;
8
- propTypes: {
9
- modalSteps: PropTypes.Requireable<any[]>;
10
- showModalStepsPagination: PropTypes.Requireable<boolean>;
11
- hideOnClickAway: PropTypes.Requireable<boolean>;
12
- blurBackground: PropTypes.Requireable<boolean>;
13
- onHide: PropTypes.Requireable<(...args: any[]) => any>;
14
- onFinalStep: PropTypes.Requireable<(...args: any[]) => any>;
15
- mobileBottomFullWidth: PropTypes.Requireable<boolean>;
16
- onStepChange: PropTypes.Requireable<(...args: any[]) => any>;
17
- modalPadding: PropTypes.Requireable<string>;
18
- modalBodyMargin: PropTypes.Requireable<string>;
19
- width: PropTypes.Requireable<string>;
20
- height: PropTypes.Requireable<string>;
21
- minHeight: PropTypes.Requireable<string>;
22
- showCloseButton: PropTypes.Requireable<boolean>;
23
- };
24
- defaultProps: {
25
- modalSteps: any[];
26
- showModalStepsPagination: boolean;
27
- hideOnClickAway: boolean;
28
- blurBackground: boolean;
29
- onHide: () => void;
30
- onFinalStep: () => void;
31
- mobileBottomFullWidth: boolean;
32
- onStepChange: () => void;
33
- modalPadding: string;
34
- modalBodyMargin: string;
35
- width: any;
36
- height: any;
37
- minHeight: any;
38
- showCloseButton: boolean;
39
- };
40
7
  PaginatedActions: import("styled-components").StyledComponent<string, any, {}, never>;
41
8
  Pagination: import("styled-components").StyledComponent<string, any, {}, never>;
42
9
  PaginationItem: import("styled-components").StyledComponent<string, any, import("../types").ModalPaginationItemProps, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Modal/MultiStepModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,QAAA,MAAM,cAAc;qNAejB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GrB,CAAC;AAwCF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Modal/MultiStepModal/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,QAAA,MAAM,cAAc;qNAejB,mBAAmB;;;;CA6GrB,CAAC;AAMF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,eAAe,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { StyledButtonProps, StyledDivProps, StyledInputProps, StyledSelectProps } from '../../../common/types';
2
2
  export interface DropdownOption {
3
3
  id: string;
4
4
  label: string;
@@ -55,16 +55,15 @@ export interface DropdownListItemProps {
55
55
  onClickFn: () => void;
56
56
  isSelected?: boolean;
57
57
  }
58
- export interface StyledDropdownWrapperProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
59
- ref?: React.Ref<HTMLSelectElement>;
58
+ export interface StyledDropdownWrapperProps extends StyledSelectProps {
60
59
  }
61
- export interface StyledDropdownHeaderProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
60
+ export interface StyledDropdownHeaderProps extends StyledButtonProps {
62
61
  }
63
- export interface StyledDropdownListItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
62
+ export interface StyledDropdownListItemProps extends StyledButtonProps {
64
63
  }
65
- export interface StyledDropdownSearchInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
64
+ export interface StyledDropdownSearchInputProps extends StyledInputProps {
66
65
  }
67
- export interface StyledDropdownItemTextProps extends React.HTMLAttributes<HTMLDivElement> {
66
+ export interface StyledDropdownItemTextProps extends StyledDivProps {
68
67
  $selected?: boolean;
69
68
  }
70
69
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/MultiSelectDropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACrC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAE9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC5D;AAED,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,MAAM,CA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C;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC5D;AAED,MAAM,WAAW,qBAAqB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,0BAA2B,SAAQ,iBAAiB;CAAG;AAExE,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;CAAG;AAEvE,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;CAAG;AAEzE,MAAM,WAAW,8BAA+B,SAAQ,gBAAgB;CAAG;AAE3E,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PopOverProps } from './types';
3
+ export default function PopOver(props: PopOverProps): React.ReactPortal;
4
+ //# sourceMappingURL=PopOver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopOver.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/PopOver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAAmC,YAAY,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,qBAiOlD"}
@@ -0,0 +1,3 @@
1
+ import { StyledPopOverContainerProps } from './types';
2
+ export declare const StyledPopOverContainer: import("styled-components").StyledComponent<string, any, StyledPopOverContainerProps, never>;
3
+ //# sourceMappingURL=PopOver.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopOver.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/PopOver.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,sBAAsB,8FAiBlC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=PopOver.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopOver.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/PopOver.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GAP_BETWEEN_TRIGGER_AND_POPOVER = 4;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './PopOver';
2
+ export type { PopOverProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/PopOver/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}