@monolith-forensics/monolith-ui 1.2.19-alpha.2 → 1.2.19-alpha.3

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 (265) hide show
  1. package/dist/Button/Button.d.ts +20 -0
  2. package/dist/Button/Button.js +331 -0
  3. package/dist/Button/index.d.ts +2 -0
  4. package/dist/Button/index.js +1 -0
  5. package/dist/Calendar/Calendar.d.ts +15 -0
  6. package/dist/Calendar/Calendar.js +204 -0
  7. package/dist/Calendar/CalendarStyles.d.ts +36 -0
  8. package/dist/Calendar/CalendarStyles.js +164 -0
  9. package/dist/Calendar/calendarHelpers.d.ts +53 -0
  10. package/dist/Calendar/calendarHelpers.js +169 -0
  11. package/dist/Calendar/index.d.ts +1 -0
  12. package/dist/Calendar/index.js +1 -0
  13. package/dist/CheckBox/CheckBox.d.ts +13 -0
  14. package/dist/CheckBox/CheckBox.js +41 -0
  15. package/dist/CheckBox/index.d.ts +1 -0
  16. package/dist/CheckBox/index.js +1 -0
  17. package/dist/DateInput/DateInput.d.ts +38 -0
  18. package/dist/DateInput/DateInput.js +499 -0
  19. package/dist/DateInput/index.d.ts +1 -0
  20. package/dist/DateInput/index.js +1 -0
  21. package/dist/DropDownMenu/DropDownMenu.d.ts +46 -0
  22. package/dist/DropDownMenu/DropDownMenu.js +341 -0
  23. package/dist/DropDownMenu/index.d.ts +2 -0
  24. package/dist/DropDownMenu/index.js +1 -0
  25. package/dist/DropDownMenu/types.d.ts +10 -0
  26. package/dist/DropDownMenu/types.js +1 -0
  27. package/dist/Error/Error.d.ts +4 -0
  28. package/dist/Error/Error.js +33 -0
  29. package/dist/Error/index.d.ts +1 -0
  30. package/dist/Error/index.js +1 -0
  31. package/dist/FieldLabel/FieldLabel.d.ts +19 -0
  32. package/dist/FieldLabel/FieldLabel.js +90 -0
  33. package/dist/FieldLabel/index.d.ts +1 -0
  34. package/dist/FieldLabel/index.js +1 -0
  35. package/dist/FileInputField/FileInputField.d.ts +19 -0
  36. package/dist/FileInputField/FileInputField.js +112 -0
  37. package/dist/FileInputField/index.d.ts +1 -0
  38. package/dist/FileInputField/index.js +1 -0
  39. package/dist/Flyout/Flyout.d.ts +11 -0
  40. package/dist/Flyout/Flyout.js +107 -0
  41. package/dist/Flyout/FlyoutHeader.d.ts +5 -0
  42. package/dist/Flyout/FlyoutHeader.js +7 -0
  43. package/dist/Flyout/FlyoutTitle.d.ts +2 -0
  44. package/dist/Flyout/FlyoutTitle.js +8 -0
  45. package/dist/Flyout/index.d.ts +3 -0
  46. package/dist/Flyout/index.js +3 -0
  47. package/dist/FormSection/FormSection.d.ts +15 -0
  48. package/dist/FormSection/FormSection.js +70 -0
  49. package/dist/FormSection/index.d.ts +1 -0
  50. package/dist/FormSection/index.js +1 -0
  51. package/dist/Grid/Grid.d.ts +8 -0
  52. package/dist/Grid/Grid.js +14 -0
  53. package/dist/Grid/index.d.ts +1 -0
  54. package/dist/Grid/index.js +1 -0
  55. package/dist/IconButton/IconButton.d.ts +5 -0
  56. package/dist/IconButton/IconButton.js +25 -0
  57. package/dist/IconButton/index.d.ts +1 -0
  58. package/dist/IconButton/index.js +1 -0
  59. package/dist/Input/Input.d.ts +10 -0
  60. package/dist/Input/Input.js +150 -0
  61. package/dist/Input/index.d.ts +1 -0
  62. package/dist/Input/index.js +1 -0
  63. package/dist/Loader/Loader.d.ts +3 -0
  64. package/dist/Loader/Loader.js +39 -0
  65. package/dist/Loader/index.d.ts +2 -0
  66. package/dist/Loader/index.js +1 -0
  67. package/dist/Loader/types.d.ts +7 -0
  68. package/dist/Loader/types.js +1 -0
  69. package/dist/Modal/Modal.d.ts +15 -0
  70. package/dist/Modal/Modal.js +121 -0
  71. package/dist/Modal/index.d.ts +1 -0
  72. package/dist/Modal/index.js +1 -0
  73. package/dist/MonolithUIProvider/GlobalStyle.d.ts +5 -0
  74. package/dist/MonolithUIProvider/GlobalStyle.js +88 -0
  75. package/dist/MonolithUIProvider/MonolithUIProvider.d.ts +144 -0
  76. package/dist/MonolithUIProvider/MonolithUIProvider.js +25 -0
  77. package/dist/MonolithUIProvider/index.d.ts +3 -0
  78. package/dist/MonolithUIProvider/index.js +3 -0
  79. package/dist/MonolithUIProvider/useMonolithUITheme.d.ts +3 -0
  80. package/dist/MonolithUIProvider/useMonolithUITheme.js +10 -0
  81. package/dist/Pill/Pill.d.ts +12 -0
  82. package/dist/Pill/Pill.js +147 -0
  83. package/dist/Pill/index.d.ts +1 -0
  84. package/dist/Pill/index.js +1 -0
  85. package/dist/QueryFilter/DefaultOperators.d.ts +77 -0
  86. package/dist/QueryFilter/DefaultOperators.js +22 -0
  87. package/dist/QueryFilter/QueryFilter.d.ts +5 -0
  88. package/dist/QueryFilter/QueryFilter.js +224 -0
  89. package/dist/QueryFilter/index.d.ts +3 -0
  90. package/dist/QueryFilter/index.js +3 -0
  91. package/dist/QueryFilter/types.d.ts +51 -0
  92. package/dist/QueryFilter/types.js +1 -0
  93. package/dist/QueryFilter/useQueryFilter.d.ts +3 -0
  94. package/dist/QueryFilter/useQueryFilter.js +36 -0
  95. package/dist/RichTextEditor/Components/BubbleMenu.d.ts +44 -0
  96. package/dist/RichTextEditor/Components/BubbleMenu.js +317 -0
  97. package/dist/RichTextEditor/Components/DefaultColorIcon.d.ts +4 -0
  98. package/dist/RichTextEditor/Components/DefaultColorIcon.js +7 -0
  99. package/dist/RichTextEditor/Components/SaveBadge.d.ts +6 -0
  100. package/dist/RichTextEditor/Components/SaveBadge.js +16 -0
  101. package/dist/RichTextEditor/Contexts/RichTextEditorContext.d.ts +5 -0
  102. package/dist/RichTextEditor/Contexts/RichTextEditorContext.js +7 -0
  103. package/dist/RichTextEditor/Enums/Controls.d.ts +21 -0
  104. package/dist/RichTextEditor/Enums/Controls.js +22 -0
  105. package/dist/RichTextEditor/Enums/Extensions.d.ts +28 -0
  106. package/dist/RichTextEditor/Enums/Extensions.js +29 -0
  107. package/dist/RichTextEditor/Enums/Fonts.d.ts +10 -0
  108. package/dist/RichTextEditor/Enums/Fonts.js +11 -0
  109. package/dist/RichTextEditor/Enums/SlashCommands.d.ts +13 -0
  110. package/dist/RichTextEditor/Enums/SlashCommands.js +14 -0
  111. package/dist/RichTextEditor/Enums/TextColors.d.ts +13 -0
  112. package/dist/RichTextEditor/Enums/TextColors.js +14 -0
  113. package/dist/RichTextEditor/Extensions/BubbleMenuExtension.d.ts +7 -0
  114. package/dist/RichTextEditor/Extensions/BubbleMenuExtension.js +157 -0
  115. package/dist/RichTextEditor/Extensions/SlashCommandList.d.ts +9 -0
  116. package/dist/RichTextEditor/Extensions/SlashCommandList.js +133 -0
  117. package/dist/RichTextEditor/Extensions/getSlashCommand.d.ts +10 -0
  118. package/dist/RichTextEditor/Extensions/getSlashCommand.js +296 -0
  119. package/dist/RichTextEditor/Extensions/getTiptapExtensions.d.ts +13 -0
  120. package/dist/RichTextEditor/Extensions/getTiptapExtensions.js +192 -0
  121. package/dist/RichTextEditor/Plugins/UploadImagesPlugin.d.ts +16 -0
  122. package/dist/RichTextEditor/Plugins/UploadImagesPlugin.js +114 -0
  123. package/dist/RichTextEditor/RichTextEditor.d.ts +27 -0
  124. package/dist/RichTextEditor/RichTextEditor.js +366 -0
  125. package/dist/RichTextEditor/Toolbar/Control.d.ts +14 -0
  126. package/dist/RichTextEditor/Toolbar/Control.js +33 -0
  127. package/dist/RichTextEditor/Toolbar/Controls.d.ts +21 -0
  128. package/dist/RichTextEditor/Toolbar/Controls.js +120 -0
  129. package/dist/RichTextEditor/Toolbar/ControlsGroup.d.ts +8 -0
  130. package/dist/RichTextEditor/Toolbar/ControlsGroup.js +29 -0
  131. package/dist/RichTextEditor/Toolbar/Labels.d.ts +41 -0
  132. package/dist/RichTextEditor/Toolbar/Labels.js +46 -0
  133. package/dist/RichTextEditor/Toolbar/Toolbar.d.ts +25 -0
  134. package/dist/RichTextEditor/Toolbar/Toolbar.js +78 -0
  135. package/dist/RichTextEditor/Toolbar/index.d.ts +1 -0
  136. package/dist/RichTextEditor/Toolbar/index.js +1 -0
  137. package/dist/RichTextEditor/index.d.ts +6 -0
  138. package/dist/RichTextEditor/index.js +4 -0
  139. package/dist/SelectBox/SelectBox.d.ts +6 -0
  140. package/dist/SelectBox/SelectBox.js +495 -0
  141. package/dist/SelectBox/index.d.ts +2 -0
  142. package/dist/SelectBox/index.js +1 -0
  143. package/dist/SelectBox/types.d.ts +42 -0
  144. package/dist/SelectBox/types.js +1 -0
  145. package/dist/Switch/Switch.d.ts +18 -0
  146. package/dist/Switch/Switch.js +130 -0
  147. package/dist/Switch/index.d.ts +1 -0
  148. package/dist/Switch/index.js +1 -0
  149. package/dist/Table/ActionButton.d.ts +4 -0
  150. package/dist/Table/ActionButton.js +11 -0
  151. package/dist/Table/ActionCell.d.ts +4 -0
  152. package/dist/Table/ActionCell.js +13 -0
  153. package/dist/Table/ColumnResizer.d.ts +14 -0
  154. package/dist/Table/ColumnResizer.js +45 -0
  155. package/dist/Table/LoadingIndicator.d.ts +4 -0
  156. package/dist/Table/LoadingIndicator.js +76 -0
  157. package/dist/Table/RenderSkeleton.d.ts +6 -0
  158. package/dist/Table/RenderSkeleton.js +25 -0
  159. package/dist/Table/SelectionCell.d.ts +4 -0
  160. package/dist/Table/SelectionCell.js +12 -0
  161. package/dist/Table/StateStorage.d.ts +27 -0
  162. package/dist/Table/StateStorage.js +98 -0
  163. package/dist/Table/StaticRows.d.ts +5 -0
  164. package/dist/Table/StaticRows.js +10 -0
  165. package/dist/Table/Table.d.ts +3 -0
  166. package/dist/Table/Table.js +115 -0
  167. package/dist/Table/TableComponents.d.ts +16 -0
  168. package/dist/Table/TableComponents.js +143 -0
  169. package/dist/Table/TableDefaults.d.ts +25 -0
  170. package/dist/Table/TableDefaults.js +25 -0
  171. package/dist/Table/TableHeader.d.ts +3 -0
  172. package/dist/Table/TableHeader.js +93 -0
  173. package/dist/Table/TableMenu/InfoBadge.d.ts +10 -0
  174. package/dist/Table/TableMenu/InfoBadge.js +23 -0
  175. package/dist/Table/TableMenu/TableMenu.d.ts +2 -0
  176. package/dist/Table/TableMenu/TableMenu.js +107 -0
  177. package/dist/Table/TableMenu/index.d.ts +2 -0
  178. package/dist/Table/TableMenu/index.js +2 -0
  179. package/dist/Table/TableProvider.d.ts +4 -0
  180. package/dist/Table/TableProvider.js +506 -0
  181. package/dist/Table/TableRow.d.ts +3 -0
  182. package/dist/Table/TableRow.js +27 -0
  183. package/dist/Table/Utils/index.d.ts +3 -0
  184. package/dist/Table/Utils/index.js +3 -0
  185. package/dist/Table/Utils/resizeHandler.d.ts +3 -0
  186. package/dist/Table/Utils/resizeHandler.js +84 -0
  187. package/dist/Table/Utils/resolveColumnReorder.d.ts +3 -0
  188. package/dist/Table/Utils/resolveColumnReorder.js +5 -0
  189. package/dist/Table/Utils/resolveColumnResize.d.ts +3 -0
  190. package/dist/Table/Utils/resolveColumnResize.js +5 -0
  191. package/dist/Table/Utils/syncColumnState.d.ts +3 -0
  192. package/dist/Table/Utils/syncColumnState.js +26 -0
  193. package/dist/Table/VirtualIzedRows.d.ts +11 -0
  194. package/dist/Table/VirtualIzedRows.js +26 -0
  195. package/dist/Table/enums.d.ts +10 -0
  196. package/dist/Table/enums.js +12 -0
  197. package/dist/Table/index.d.ts +3 -0
  198. package/dist/Table/index.js +3 -0
  199. package/dist/Table/types.d.ts +291 -0
  200. package/dist/Table/types.js +1 -0
  201. package/dist/Table/useTable.d.ts +3 -0
  202. package/dist/Table/useTable.js +10 -0
  203. package/dist/TagBox/TagBox.d.ts +3 -0
  204. package/dist/TagBox/TagBox.js +600 -0
  205. package/dist/TagBox/TagBoxStyles.d.ts +11 -0
  206. package/dist/TagBox/TagBoxStyles.js +107 -0
  207. package/dist/TagBox/index.d.ts +2 -0
  208. package/dist/TagBox/index.js +1 -0
  209. package/dist/TagBox/types.d.ts +41 -0
  210. package/dist/TagBox/types.js +1 -0
  211. package/dist/TextArea/TextArea.d.ts +11 -0
  212. package/dist/TextArea/TextArea.js +76 -0
  213. package/dist/TextArea/index.d.ts +1 -0
  214. package/dist/TextArea/index.js +1 -0
  215. package/dist/TextAreaInput/TextAreaInput.d.ts +18 -0
  216. package/dist/TextAreaInput/TextAreaInput.js +22 -0
  217. package/dist/TextAreaInput/index.d.ts +1 -0
  218. package/dist/TextAreaInput/index.js +1 -0
  219. package/dist/TextInput/TextInput.d.ts +15 -0
  220. package/dist/TextInput/TextInput.js +24 -0
  221. package/dist/TextInput/index.d.ts +1 -0
  222. package/dist/TextInput/index.js +1 -0
  223. package/dist/Tooltip/Tooltip.d.ts +12 -0
  224. package/dist/Tooltip/Tooltip.js +25 -0
  225. package/dist/Tooltip/index.d.ts +1 -0
  226. package/dist/Tooltip/index.js +1 -0
  227. package/dist/Typography/Typography.d.ts +20 -0
  228. package/dist/Typography/Typography.js +122 -0
  229. package/dist/Typography/index.d.ts +1 -0
  230. package/dist/Typography/index.js +1 -0
  231. package/dist/Utilities/calculateFileHash.d.ts +8 -0
  232. package/dist/Utilities/calculateFileHash.js +38 -0
  233. package/dist/Utilities/parseTimestamp.d.ts +2 -0
  234. package/dist/Utilities/parseTimestamp.js +66 -0
  235. package/dist/Utilities/readFileAsBuffer.d.ts +2 -0
  236. package/dist/Utilities/readFileAsBuffer.js +10 -0
  237. package/dist/core/ArrowButton.d.ts +6 -0
  238. package/dist/core/ArrowButton.js +43 -0
  239. package/dist/core/ClearButton.d.ts +6 -0
  240. package/dist/core/ClearButton.js +43 -0
  241. package/dist/core/StyledContent.d.ts +7 -0
  242. package/dist/core/StyledContent.js +38 -0
  243. package/dist/core/StyledFloatContainer.d.ts +2 -0
  244. package/dist/core/StyledFloatContainer.js +5 -0
  245. package/dist/core/Types/Size.d.ts +2 -0
  246. package/dist/core/Types/Size.js +1 -0
  247. package/dist/core/Types/Variant.d.ts +2 -0
  248. package/dist/core/Types/Variant.js +1 -0
  249. package/dist/core/index.d.ts +6 -0
  250. package/dist/core/index.js +4 -0
  251. package/dist/hooks/index.d.ts +1 -0
  252. package/dist/hooks/index.js +1 -0
  253. package/dist/hooks/useDelayedBoolean.d.ts +2 -0
  254. package/dist/hooks/useDelayedBoolean.js +17 -0
  255. package/dist/index.d.ts +37 -0
  256. package/dist/index.js +30 -0
  257. package/dist/theme/getTheme.d.ts +3 -0
  258. package/dist/theme/getTheme.js +13 -0
  259. package/dist/theme/index.d.ts +4 -0
  260. package/dist/theme/index.js +4 -0
  261. package/dist/theme/typography.d.ts +45 -0
  262. package/dist/theme/typography.js +57 -0
  263. package/dist/theme/variants.d.ts +8 -0
  264. package/dist/theme/variants.js +272 -0
  265. package/package.json +2 -2
@@ -0,0 +1,20 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from "react";
2
+ import { Size, Variant } from "../core";
3
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
+ children?: ReactNode | string;
5
+ className?: string;
6
+ loading?: boolean;
7
+ leftSection?: ReactNode;
8
+ rightSection?: ReactNode;
9
+ href?: string | null;
10
+ download?: string | null;
11
+ fullWidth?: boolean;
12
+ size?: Size;
13
+ variant?: Variant;
14
+ color?: string;
15
+ disabled?: boolean;
16
+ selected?: boolean;
17
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
18
+ }
19
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
20
+ export default Button;
@@ -0,0 +1,331 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import styled from "styled-components";
15
+ import { Loader2Icon } from "lucide-react";
16
+ const colors = {
17
+ gray: "#888888",
18
+ red: "#e03131",
19
+ pink: "#c2255c",
20
+ grape: "#9c36b5",
21
+ violet: "#6741d9",
22
+ indigo: "#3b5bdb",
23
+ cyan: "#0c8599",
24
+ teal: "#099268",
25
+ green: "#2f9e44",
26
+ lime: "#66a80f",
27
+ yellow: "#f08c00",
28
+ orange: "#e8590c",
29
+ };
30
+ const StyledButton = styled.button `
31
+ user-select: none;
32
+ display: flex;
33
+ outline: none;
34
+ white-space: nowrap;
35
+
36
+ width: ${({ fullWidth }) => (fullWidth ? "100%" : "fit-content")};
37
+ height: ${({ theme, size }) => {
38
+ switch (size) {
39
+ case "xxs":
40
+ return `24px`;
41
+ case "xs":
42
+ return `28px`;
43
+ case "sm":
44
+ return `34px`;
45
+ case "md":
46
+ return `40px`;
47
+ case "lg":
48
+ return `48px`;
49
+ case "xl":
50
+ return `58px`;
51
+ default:
52
+ return `34px`;
53
+ }
54
+ }};
55
+
56
+ font-weight: 525;
57
+ letter-spacing: 0.75px;
58
+ font-size: ${({ theme, size }) => {
59
+ switch (size) {
60
+ case "xxs":
61
+ return `11px`;
62
+ case "xs":
63
+ return `12px`;
64
+ case "sm":
65
+ return `14px`;
66
+ case "md":
67
+ return `16px`;
68
+ case "lg":
69
+ return `18px`;
70
+ case "xl":
71
+ return `20px`;
72
+ default:
73
+ return `14px`;
74
+ }
75
+ }};
76
+
77
+ padding: ${({ theme, size, variant }) => {
78
+ if (variant === "text")
79
+ return `0px 0px`;
80
+ switch (size) {
81
+ case "xxs":
82
+ return `0px 8px`;
83
+ case "xs":
84
+ return `0px 12px`;
85
+ case "sm":
86
+ return `0px 16px`;
87
+ case "md":
88
+ return `0px 20px`;
89
+ case "lg":
90
+ return `0px 24px`;
91
+ case "xl":
92
+ return `0px 30px`;
93
+ default:
94
+ return `0px 16px`;
95
+ }
96
+ }};
97
+
98
+ color: ${({ theme, variant, color }) => {
99
+ var _a, _b;
100
+ if (variant === "default")
101
+ return theme.palette.text.primary;
102
+ if (variant === "contained")
103
+ return "white";
104
+ if (variant === "filled")
105
+ return "white";
106
+ switch (color) {
107
+ case "primary":
108
+ return theme.palette.primary.main;
109
+ case undefined:
110
+ return theme.palette.text.primary;
111
+ default:
112
+ return color
113
+ ? ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a[color]) === null || _b === void 0 ? void 0 : _b.main) ||
114
+ colors[color] ||
115
+ theme.palette.text.primary
116
+ : theme.palette.text.primary;
117
+ }
118
+ }};
119
+
120
+ background-color: ${({ theme, variant, color, selected }) => {
121
+ var _a, _b, _c, _d, _e, _f;
122
+ if (variant === "default")
123
+ return "transparent";
124
+ switch (variant) {
125
+ case "contained":
126
+ return color
127
+ ? ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a[color]) === null || _b === void 0 ? void 0 : _b.main) ||
128
+ colors[color] ||
129
+ theme.palette.background.secondary
130
+ : theme.palette.background.secondary;
131
+ case "filled":
132
+ return color
133
+ ? ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c[color]) === null || _d === void 0 ? void 0 : _d.main) ||
134
+ colors[color] ||
135
+ theme.palette.background.secondary
136
+ : theme.palette.background.secondary;
137
+ case "light":
138
+ return ((color
139
+ ? ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _e === void 0 ? void 0 : _e[color]) === null || _f === void 0 ? void 0 : _f.main) ||
140
+ colors[color] ||
141
+ theme.palette.background.secondary
142
+ : theme.palette.background.secondary) + "30");
143
+ case "outlined":
144
+ return "transparent";
145
+ case "text":
146
+ return "transparent";
147
+ case "subtle":
148
+ return selected ? theme.palette.action.hover : "transparent";
149
+ default:
150
+ return "transparent";
151
+ }
152
+ }};
153
+
154
+ border-radius: 4px;
155
+ border: 1px solid
156
+ ${({ theme, variant, color }) => {
157
+ var _a, _b, _c, _d;
158
+ switch (variant) {
159
+ case "contained":
160
+ return "transparent";
161
+ case "filled":
162
+ return "transparent";
163
+ case "light":
164
+ return "transparent";
165
+ case "outlined":
166
+ return color
167
+ ? ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a[color]) === null || _b === void 0 ? void 0 : _b.main) ||
168
+ colors[color] ||
169
+ theme.palette.divider
170
+ : theme.palette.divider;
171
+ case "text":
172
+ return "transparent";
173
+ case "subtle":
174
+ return "transparent";
175
+ default:
176
+ return color
177
+ ? ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c[color]) === null || _d === void 0 ? void 0 : _d.main) ||
178
+ colors[color] ||
179
+ theme.palette.divider
180
+ : theme.palette.divider;
181
+ }
182
+ }};
183
+
184
+ cursor: pointer;
185
+
186
+ transition: background-color 0.2s, border 0.2s;
187
+
188
+ .inner-span {
189
+ display: flex;
190
+ align-items: center;
191
+ }
192
+
193
+ .button-label {
194
+ display: flex;
195
+ align-items: center;
196
+ }
197
+
198
+ [data-position="left"] {
199
+ margin-inline-end: 6px;
200
+ display: flex;
201
+ align-items: center;
202
+ }
203
+
204
+ [data-position="right"] {
205
+ margin-inline-start: 6px;
206
+ padding-inline-start: 6px;
207
+ margin-left: auto;
208
+ display: flex;
209
+ align-items: center;
210
+ }
211
+
212
+ &:hover {
213
+ background-color: ${({ theme, variant, color }) => {
214
+ var _a, _b, _c, _d, _e, _f, _g, _h;
215
+ if (variant === "default")
216
+ return "transparent";
217
+ switch (variant) {
218
+ case "contained":
219
+ return ((color
220
+ ? ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a[color]) === null || _b === void 0 ? void 0 : _b.main) ||
221
+ colors[color] ||
222
+ theme.palette.background.secondary
223
+ : theme.palette.background.secondary) + "90");
224
+ case "filled":
225
+ return ((color
226
+ ? ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c[color]) === null || _d === void 0 ? void 0 : _d.main) ||
227
+ colors[color] ||
228
+ theme.palette.background.secondary
229
+ : theme.palette.background.secondary) + "90");
230
+ case "light":
231
+ return ((color
232
+ ? ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _e === void 0 ? void 0 : _e[color]) === null || _f === void 0 ? void 0 : _f.main) ||
233
+ colors[color] ||
234
+ theme.palette.background.secondary
235
+ : theme.palette.background.secondary) + "70");
236
+ case "outlined":
237
+ return theme.palette.action.hover;
238
+ case "text":
239
+ return "transparent";
240
+ case "subtle":
241
+ return color
242
+ ? (((_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g[color]) === null || _h === void 0 ? void 0 : _h.main) ||
243
+ colors[color]) + "30" ||
244
+ theme.palette.action.hover
245
+ : theme.palette.action.hover;
246
+ default:
247
+ return theme.palette.action.hover;
248
+ }
249
+ }};
250
+
251
+ border: 1px solid
252
+ ${({ theme, variant, color }) => {
253
+ var _a, _b;
254
+ switch (variant) {
255
+ case "contained":
256
+ return "transparent";
257
+ case "filled":
258
+ return "transparent";
259
+ case "light":
260
+ return "transparent";
261
+ case "outlined":
262
+ return color
263
+ ? colors[color] || theme.palette.divider
264
+ : theme.palette.divider;
265
+ case "text":
266
+ return "transparent";
267
+ case "subtle":
268
+ return "transparent";
269
+ default:
270
+ return color
271
+ ? ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a[color]) === null || _b === void 0 ? void 0 : _b.main) ||
272
+ colors[color] ||
273
+ theme.palette.divider
274
+ : theme.palette.divider;
275
+ }
276
+ }};
277
+ opacity: ${({ variant }) => (variant === "text" ? 0.8 : 1)};
278
+ }
279
+
280
+ opacity: ${({ disabled }) => (disabled ? 0.5 : 1)};
281
+ pointer-events: ${({ disabled }) => (disabled ? "none" : "auto")};
282
+
283
+ &:focus {
284
+ text-decoration: underline;
285
+ }
286
+
287
+ &:active {
288
+ // simulate physical button press
289
+ translate: 0px 1px;
290
+ text-decoration: none;
291
+ }
292
+
293
+ // disabled styles
294
+ ${({ disabled }) => disabled &&
295
+ `
296
+ cursor: not-allowed;
297
+ opacity: 0.5;
298
+ pointer-events: none;
299
+ `}
300
+ `;
301
+ const StyledAnchor = styled.a `
302
+ text-decoration: none;
303
+ height: 100%;
304
+
305
+ &:hover {
306
+ text-decoration: none !important;
307
+ }
308
+ `;
309
+ const StyledLoader = styled.span `
310
+ svg {
311
+ width: 16px;
312
+ height: 16px;
313
+ color: ${({ theme, color }) => color
314
+ ? theme.palette[color] || colors[color]
315
+ : theme.palette.primary};
316
+
317
+ animation: spin 0.75s linear infinite;
318
+
319
+ @keyframes spin {
320
+ 100% {
321
+ transform: rotate(360deg);
322
+ }
323
+ }
324
+ }
325
+ `;
326
+ const Button = forwardRef((props, ref) => {
327
+ const { children, loading = false, leftSection = null, rightSection = null, href = null, download = null } = props, other = __rest(props, ["children", "loading", "leftSection", "rightSection", "href", "download"]);
328
+ const buttonContent = (_jsx("span", { className: "inner-span", style: { height: "100%", width: "100%" }, children: loading ? (_jsx(StyledLoader, { children: _jsx(Loader2Icon, {}) })) : (_jsxs(_Fragment, { children: [leftSection && _jsx("span", { "data-position": "left", children: leftSection }), _jsx("span", { className: "button-label", children: children }), rightSection && _jsx("span", { "data-position": "right", children: rightSection })] })) }));
329
+ return (_jsx(StyledButton, Object.assign({ ref: ref }, other, { children: href ? (_jsx(StyledAnchor, { href: href, download: download, children: buttonContent })) : (buttonContent) })));
330
+ });
331
+ export default Button;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Button";
2
+ export type { ButtonProps } from "./Button";
@@ -0,0 +1 @@
1
+ export { default } from "./Button";
@@ -0,0 +1,15 @@
1
+ interface CalendarProps {
2
+ defaultValue?: Date;
3
+ value?: Date | null;
4
+ onChange?: (date: Date | null) => void;
5
+ hourFormat?: "12" | "24";
6
+ includeTime?: boolean;
7
+ clearable?: boolean;
8
+ min?: Date;
9
+ max?: Date;
10
+ }
11
+ declare const Calendar: {
12
+ ({ defaultValue, value, onChange, hourFormat, includeTime, clearable, min, max, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export default Calendar;
@@ -0,0 +1,204 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment, useEffect, useState } from "react";
3
+ import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
4
+ import { CalendarContainer, CalendarHeader, CalendarGrid, CalendarMonth, CalendarDay, CalendarDate, HighlightedCalendarDate, TodayCalendarDate, TimeContainer, MainContainer, TimePickerContainer, TimeHourSelect, TimeHeader, TimeMinuteSelect, TimeItem, TimeItemActive, NoValueButton, } from "./CalendarStyles";
5
+ import calendar, { isDate, isSameDay, isSameMonth, getDateISO, getNextMonth, getPreviousMonth, WEEK_DAYS, CALENDAR_MONTHS, HOURS24, HOURS12, MINUTES, } from "./calendarHelpers";
6
+ import moment from "moment";
7
+ const checkValidRange = (value, min, max) => {
8
+ if (min && moment(value).startOf("day").isBefore(moment(min).startOf("day")))
9
+ return false;
10
+ if (max && moment(value).startOf("day").isAfter(moment(max).startOf("day")))
11
+ return false;
12
+ return true;
13
+ };
14
+ const Calendar = ({ defaultValue = new Date(), value, onChange = () => { }, hourFormat = "24", includeTime = true, clearable = true, min, max, }) => {
15
+ const [dateState, setDateState] = useState({
16
+ current: defaultValue,
17
+ month: defaultValue.getMonth() + 1,
18
+ year: defaultValue.getFullYear(),
19
+ hours: 0,
20
+ minutes: 0,
21
+ });
22
+ const [today, setToday] = useState(new Date());
23
+ let pressureTimer;
24
+ let pressureTimeout;
25
+ let dayTimeout;
26
+ const addDateToState = (date) => {
27
+ const isDateObject = isDate(date);
28
+ const _date = isDateObject ? date : new Date();
29
+ setDateState({
30
+ current: isDateObject ? date : null,
31
+ month: +_date.getMonth() + 1,
32
+ year: _date.getFullYear(),
33
+ hours: _date.getHours(),
34
+ minutes: _date.getMinutes(),
35
+ });
36
+ };
37
+ const getCalendarDates = () => {
38
+ const { current, month, year } = dateState;
39
+ const calendarMonth = month || +((current === null || current === void 0 ? void 0 : current.getMonth()) || 0) + 1;
40
+ const calendarYear = year || (current === null || current === void 0 ? void 0 : current.getFullYear());
41
+ return calendar(calendarMonth, calendarYear);
42
+ };
43
+ //new start
44
+ const renderMonthAndYear = () => {
45
+ const { month, year } = dateState;
46
+ // Resolve the month name from the CALENDAR_MONTHS object map
47
+ const monthname = Object.keys(CALENDAR_MONTHS)[Math.max(0, Math.min(month - 1, 11))];
48
+ return (_jsxs(CalendarHeader, { children: [_jsx(ChevronLeftIcon, { onMouseDown: handlePrevious, onMouseUp: clearPressureTimer }), _jsxs(CalendarMonth, { children: [monthname, " ", year] }), _jsx(ChevronRightIcon, { onMouseDown: handleNext, onMouseUp: clearPressureTimer })] }));
49
+ };
50
+ // Render the label for day of the week
51
+ // This method is used as a map callback as seen in render()
52
+ const renderDayLabel = (day, index) => {
53
+ // Resolve the day of the week label from the WEEK_DAYS object map
54
+ const daylabel = WEEK_DAYS[day];
55
+ return (_jsx(CalendarDay, { index: index, children: daylabel }, daylabel));
56
+ };
57
+ // Render a calendar date as returned from the calendar builder function
58
+ // This method is used as a map callback as seen in render()
59
+ const renderCalendarDate = (date, index) => {
60
+ const { current, month, year } = dateState;
61
+ const _date = new Date(date.join("-"));
62
+ // Check if calendar date is same day as today
63
+ const isToday = isSameDay(_date, today);
64
+ // Check if calendar date is same day as currently selected date
65
+ const isCurrent = current && isSameDay(_date, current);
66
+ // Check if calendar date is in the same month as the state month and year
67
+ const inMonth = month && year && isSameMonth(_date, new Date([year, month, 1].join("-")));
68
+ // The click handler
69
+ const props = {
70
+ "data-disabled": !checkValidRange(getDateISO(_date), min || null, max || null),
71
+ index,
72
+ key: getDateISO(_date),
73
+ onClick: gotoDate(_date),
74
+ title: _date.toDateString(),
75
+ inMonth,
76
+ };
77
+ // Conditionally render a styled date component
78
+ return isCurrent ? (_jsx(HighlightedCalendarDate, Object.assign({}, props, { children: _date.getDate() }))) : isToday ? (_jsx(TodayCalendarDate, Object.assign({}, props, { children: _date.getDate() }))) : (_jsx(CalendarDate, Object.assign({}, props, { children: _date.getDate() })));
79
+ };
80
+ const renderHours = () => {
81
+ const { hours } = dateState;
82
+ const hoursArray = hourFormat === "24" ? HOURS24 : HOURS12;
83
+ return hoursArray.map((hour, index) => {
84
+ const HourComponent = hour.value === hours ? TimeItemActive : TimeItem;
85
+ return (_jsx(HourComponent, {
86
+ // value={hour.value}
87
+ onClick: (e) => {
88
+ const newTime = moment(dateState.current)
89
+ .hours(hour.value)
90
+ .toDate();
91
+ setDateState(Object.assign(Object.assign({}, dateState), { hours: hour.value, current: newTime }));
92
+ onChange(newTime);
93
+ }, children: hour.label }, hour.value));
94
+ });
95
+ };
96
+ const renderMinutes = () => {
97
+ const { minutes } = dateState;
98
+ return MINUTES.map((minute) => {
99
+ const MinuteComponent = minute === minutes ? TimeItemActive : TimeItem;
100
+ return (_jsx(MinuteComponent, {
101
+ // value={minute}
102
+ onClick: (e) => {
103
+ const newTime = moment(dateState.current)
104
+ .minutes(Number(minute))
105
+ .toDate();
106
+ setDateState(Object.assign(Object.assign({}, dateState), { minutes: Number(minute), current: newTime }));
107
+ onChange(newTime);
108
+ }, children: minute }, minute));
109
+ });
110
+ };
111
+ // new 2
112
+ const gotoDate = (date) => (evt) => {
113
+ evt && evt.preventDefault();
114
+ const { current } = dateState;
115
+ // Set Hours and Minutes
116
+ const newTime = moment(date)
117
+ .hours(includeTime ? dateState.hours : 0)
118
+ .minutes(includeTime ? dateState.minutes : 0)
119
+ .toDate();
120
+ !(current && isSameDay(newTime, current)) && addDateToState(newTime);
121
+ onChange(newTime);
122
+ };
123
+ const gotoPreviousMonth = () => {
124
+ const { month, year } = dateState;
125
+ const previousMonth = getPreviousMonth(month, year);
126
+ setDateState({
127
+ month: previousMonth.month,
128
+ year: previousMonth.year,
129
+ current: dateState.current,
130
+ hours: dateState.hours,
131
+ minutes: dateState.minutes,
132
+ });
133
+ };
134
+ const gotoNextMonth = () => {
135
+ const { month, year } = dateState;
136
+ const nextMonth = getNextMonth(month, year);
137
+ setDateState({
138
+ month: nextMonth.month,
139
+ year: nextMonth.year,
140
+ current: dateState.current,
141
+ hours: dateState.hours,
142
+ minutes: dateState.minutes,
143
+ });
144
+ };
145
+ const gotoPreviousYear = () => {
146
+ const { year } = dateState;
147
+ setDateState({
148
+ month: dateState.month,
149
+ year: year - 1,
150
+ current: dateState.current,
151
+ hours: dateState.hours,
152
+ minutes: dateState.minutes,
153
+ });
154
+ };
155
+ const gotoNextYear = () => {
156
+ const { year } = dateState;
157
+ setDateState({
158
+ month: dateState.month,
159
+ year: year + 1,
160
+ current: dateState.current,
161
+ hours: dateState.hours,
162
+ minutes: dateState.minutes,
163
+ });
164
+ };
165
+ const clearPressureTimer = () => {
166
+ pressureTimer && clearInterval(pressureTimer);
167
+ pressureTimeout && clearTimeout(pressureTimeout);
168
+ };
169
+ const handlePrevious = (evt) => {
170
+ evt && evt.preventDefault();
171
+ const fn = evt.shiftKey ? gotoPreviousYear : gotoPreviousMonth;
172
+ fn();
173
+ };
174
+ const handleNext = (evt) => {
175
+ evt && evt.preventDefault();
176
+ const fn = evt.shiftKey ? gotoNextYear : gotoNextMonth;
177
+ fn();
178
+ };
179
+ useEffect(() => {
180
+ if (value) {
181
+ addDateToState(value);
182
+ }
183
+ }, [value]);
184
+ // lifecycle methods
185
+ useEffect(() => {
186
+ const now = new Date().valueOf();
187
+ const tomorrow = new Date().setHours(0, 0, 0, 0) + 24 * 60 * 60 * 1000;
188
+ const ms = tomorrow - now;
189
+ dayTimeout = setTimeout(() => {
190
+ setToday(new Date());
191
+ clearDayTimeout();
192
+ }, ms);
193
+ return () => {
194
+ clearPressureTimer();
195
+ clearDayTimeout();
196
+ };
197
+ }, []);
198
+ const clearDayTimeout = () => {
199
+ dayTimeout && clearTimeout(dayTimeout);
200
+ };
201
+ return (_jsxs(MainContainer, { children: [_jsxs(CalendarContainer, { children: [renderMonthAndYear(), _jsxs(CalendarGrid, { children: [_jsx(Fragment, { children: Object.keys(WEEK_DAYS).map(renderDayLabel) }), _jsx(Fragment, { children: getCalendarDates().map(renderCalendarDate) })] }), clearable && (_jsx("div", { style: { textAlign: "center", marginTop: 3 }, children: _jsx(NoValueButton, { onClick: () => onChange(null), children: "Clear Date" }) }))] }), includeTime && (_jsxs(TimeContainer, { children: [_jsx(TimeHeader, { children: "Select Time" }), _jsxs(TimePickerContainer, { children: [_jsx(TimeHourSelect, { children: renderHours() }), _jsx(TimeMinuteSelect, { children: renderMinutes() })] })] }))] }));
202
+ };
203
+ Calendar.displayName = "Calendar";
204
+ export default Calendar;
@@ -0,0 +1,36 @@
1
+ export declare const MainContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const CalendarContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const CalendarHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const CalendarGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const CalendarMonth: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ interface CalendarCellProps {
7
+ index?: number;
8
+ inMonth?: boolean | 0;
9
+ "data-disabled"?: boolean | 0;
10
+ key: string | null;
11
+ title?: string;
12
+ }
13
+ export declare const CalendarCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CalendarCellProps>> & string;
14
+ export declare const CalendarDay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
15
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
+ }, CalendarCellProps>> & string;
17
+ export declare const CalendarDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
18
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
+ }, CalendarCellProps>> & string;
20
+ export declare const HighlightedCalendarDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
21
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
+ }, keyof CalendarCellProps> & CalendarCellProps, CalendarCellProps>> & string;
23
+ export declare const TodayCalendarDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
24
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
25
+ }, keyof CalendarCellProps> & CalendarCellProps, keyof CalendarCellProps> & CalendarCellProps, CalendarCellProps>> & string;
26
+ export declare const TimeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
27
+ export declare const TimePickerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
+ export declare const TimeHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
29
+ export declare const TimeHourSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
30
+ export declare const TimeMinuteSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
31
+ export declare const TimeItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
32
+ export declare const TimeItemActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
33
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
34
+ }, never>> & string;
35
+ export declare const NoValueButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
36
+ export {};