@monolith-forensics/monolith-ui 1.2.18 → 1.2.19-alpha.1

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/package.json +3 -2
  2. package/dist/Button/Button.d.ts +0 -20
  3. package/dist/Button/Button.js +0 -331
  4. package/dist/Button/index.d.ts +0 -2
  5. package/dist/Button/index.js +0 -1
  6. package/dist/Calendar/Calendar.d.ts +0 -15
  7. package/dist/Calendar/Calendar.js +0 -204
  8. package/dist/Calendar/CalendarStyles.d.ts +0 -36
  9. package/dist/Calendar/CalendarStyles.js +0 -164
  10. package/dist/Calendar/calendarHelpers.d.ts +0 -53
  11. package/dist/Calendar/calendarHelpers.js +0 -169
  12. package/dist/Calendar/index.d.ts +0 -1
  13. package/dist/Calendar/index.js +0 -1
  14. package/dist/CheckBox/CheckBox.d.ts +0 -13
  15. package/dist/CheckBox/CheckBox.js +0 -41
  16. package/dist/CheckBox/index.d.ts +0 -1
  17. package/dist/CheckBox/index.js +0 -1
  18. package/dist/DateInput/DateInput.d.ts +0 -38
  19. package/dist/DateInput/DateInput.js +0 -499
  20. package/dist/DateInput/index.d.ts +0 -1
  21. package/dist/DateInput/index.js +0 -1
  22. package/dist/DropDownMenu/DropDownMenu.d.ts +0 -46
  23. package/dist/DropDownMenu/DropDownMenu.js +0 -341
  24. package/dist/DropDownMenu/index.d.ts +0 -2
  25. package/dist/DropDownMenu/index.js +0 -1
  26. package/dist/DropDownMenu/types.d.ts +0 -10
  27. package/dist/DropDownMenu/types.js +0 -1
  28. package/dist/Error/Error.d.ts +0 -4
  29. package/dist/Error/Error.js +0 -33
  30. package/dist/Error/index.d.ts +0 -1
  31. package/dist/Error/index.js +0 -1
  32. package/dist/FieldLabel/FieldLabel.d.ts +0 -19
  33. package/dist/FieldLabel/FieldLabel.js +0 -90
  34. package/dist/FieldLabel/index.d.ts +0 -1
  35. package/dist/FieldLabel/index.js +0 -1
  36. package/dist/FileInputField/FileInputField.d.ts +0 -19
  37. package/dist/FileInputField/FileInputField.js +0 -112
  38. package/dist/FileInputField/index.d.ts +0 -1
  39. package/dist/FileInputField/index.js +0 -1
  40. package/dist/Flyout/Flyout.d.ts +0 -11
  41. package/dist/Flyout/Flyout.js +0 -107
  42. package/dist/Flyout/FlyoutHeader.d.ts +0 -5
  43. package/dist/Flyout/FlyoutHeader.js +0 -7
  44. package/dist/Flyout/FlyoutTitle.d.ts +0 -2
  45. package/dist/Flyout/FlyoutTitle.js +0 -8
  46. package/dist/Flyout/index.d.ts +0 -3
  47. package/dist/Flyout/index.js +0 -3
  48. package/dist/FormSection/FormSection.d.ts +0 -15
  49. package/dist/FormSection/FormSection.js +0 -70
  50. package/dist/FormSection/index.d.ts +0 -1
  51. package/dist/FormSection/index.js +0 -1
  52. package/dist/Grid/Grid.d.ts +0 -8
  53. package/dist/Grid/Grid.js +0 -14
  54. package/dist/Grid/index.d.ts +0 -1
  55. package/dist/Grid/index.js +0 -1
  56. package/dist/IconButton/IconButton.d.ts +0 -5
  57. package/dist/IconButton/IconButton.js +0 -25
  58. package/dist/IconButton/index.d.ts +0 -1
  59. package/dist/IconButton/index.js +0 -1
  60. package/dist/Input/Input.d.ts +0 -10
  61. package/dist/Input/Input.js +0 -150
  62. package/dist/Input/index.d.ts +0 -1
  63. package/dist/Input/index.js +0 -1
  64. package/dist/Loader/Loader.d.ts +0 -3
  65. package/dist/Loader/Loader.js +0 -39
  66. package/dist/Loader/index.d.ts +0 -2
  67. package/dist/Loader/index.js +0 -1
  68. package/dist/Loader/types.d.ts +0 -7
  69. package/dist/Loader/types.js +0 -1
  70. package/dist/Modal/Modal.d.ts +0 -15
  71. package/dist/Modal/Modal.js +0 -121
  72. package/dist/Modal/index.d.ts +0 -1
  73. package/dist/Modal/index.js +0 -1
  74. package/dist/MonolithUIProvider/GlobalStyle.d.ts +0 -5
  75. package/dist/MonolithUIProvider/GlobalStyle.js +0 -88
  76. package/dist/MonolithUIProvider/MonolithUIProvider.d.ts +0 -144
  77. package/dist/MonolithUIProvider/MonolithUIProvider.js +0 -25
  78. package/dist/MonolithUIProvider/index.d.ts +0 -3
  79. package/dist/MonolithUIProvider/index.js +0 -3
  80. package/dist/MonolithUIProvider/useMonolithUITheme.d.ts +0 -3
  81. package/dist/MonolithUIProvider/useMonolithUITheme.js +0 -10
  82. package/dist/Pill/Pill.d.ts +0 -12
  83. package/dist/Pill/Pill.js +0 -147
  84. package/dist/Pill/index.d.ts +0 -1
  85. package/dist/Pill/index.js +0 -1
  86. package/dist/QueryFilter/DefaultOperators.d.ts +0 -77
  87. package/dist/QueryFilter/DefaultOperators.js +0 -22
  88. package/dist/QueryFilter/QueryFilter.d.ts +0 -5
  89. package/dist/QueryFilter/QueryFilter.js +0 -224
  90. package/dist/QueryFilter/index.d.ts +0 -3
  91. package/dist/QueryFilter/index.js +0 -3
  92. package/dist/QueryFilter/types.d.ts +0 -51
  93. package/dist/QueryFilter/types.js +0 -1
  94. package/dist/QueryFilter/useQueryFilter.d.ts +0 -3
  95. package/dist/QueryFilter/useQueryFilter.js +0 -36
  96. package/dist/RichTextEditor/Components/BubbleMenu.d.ts +0 -44
  97. package/dist/RichTextEditor/Components/BubbleMenu.js +0 -317
  98. package/dist/RichTextEditor/Components/DefaultColorIcon.d.ts +0 -4
  99. package/dist/RichTextEditor/Components/DefaultColorIcon.js +0 -7
  100. package/dist/RichTextEditor/Components/SaveBadge.d.ts +0 -6
  101. package/dist/RichTextEditor/Components/SaveBadge.js +0 -16
  102. package/dist/RichTextEditor/Contexts/RichTextEditorContext.d.ts +0 -5
  103. package/dist/RichTextEditor/Contexts/RichTextEditorContext.js +0 -7
  104. package/dist/RichTextEditor/Enums/Controls.d.ts +0 -21
  105. package/dist/RichTextEditor/Enums/Controls.js +0 -22
  106. package/dist/RichTextEditor/Enums/Extensions.d.ts +0 -28
  107. package/dist/RichTextEditor/Enums/Extensions.js +0 -29
  108. package/dist/RichTextEditor/Enums/Fonts.d.ts +0 -10
  109. package/dist/RichTextEditor/Enums/Fonts.js +0 -11
  110. package/dist/RichTextEditor/Enums/SlashCommands.d.ts +0 -13
  111. package/dist/RichTextEditor/Enums/SlashCommands.js +0 -14
  112. package/dist/RichTextEditor/Enums/TextColors.d.ts +0 -13
  113. package/dist/RichTextEditor/Enums/TextColors.js +0 -14
  114. package/dist/RichTextEditor/Extensions/BubbleMenuExtension.d.ts +0 -7
  115. package/dist/RichTextEditor/Extensions/BubbleMenuExtension.js +0 -157
  116. package/dist/RichTextEditor/Extensions/SlashCommandList.d.ts +0 -9
  117. package/dist/RichTextEditor/Extensions/SlashCommandList.js +0 -133
  118. package/dist/RichTextEditor/Extensions/getSlashCommand.d.ts +0 -10
  119. package/dist/RichTextEditor/Extensions/getSlashCommand.js +0 -296
  120. package/dist/RichTextEditor/Extensions/getTiptapExtensions.d.ts +0 -13
  121. package/dist/RichTextEditor/Extensions/getTiptapExtensions.js +0 -192
  122. package/dist/RichTextEditor/Plugins/UploadImagesPlugin.d.ts +0 -16
  123. package/dist/RichTextEditor/Plugins/UploadImagesPlugin.js +0 -114
  124. package/dist/RichTextEditor/RichTextEditor.d.ts +0 -27
  125. package/dist/RichTextEditor/RichTextEditor.js +0 -366
  126. package/dist/RichTextEditor/Toolbar/Control.d.ts +0 -14
  127. package/dist/RichTextEditor/Toolbar/Control.js +0 -33
  128. package/dist/RichTextEditor/Toolbar/Controls.d.ts +0 -21
  129. package/dist/RichTextEditor/Toolbar/Controls.js +0 -120
  130. package/dist/RichTextEditor/Toolbar/ControlsGroup.d.ts +0 -8
  131. package/dist/RichTextEditor/Toolbar/ControlsGroup.js +0 -29
  132. package/dist/RichTextEditor/Toolbar/Labels.d.ts +0 -41
  133. package/dist/RichTextEditor/Toolbar/Labels.js +0 -46
  134. package/dist/RichTextEditor/Toolbar/Toolbar.d.ts +0 -25
  135. package/dist/RichTextEditor/Toolbar/Toolbar.js +0 -78
  136. package/dist/RichTextEditor/Toolbar/index.d.ts +0 -1
  137. package/dist/RichTextEditor/Toolbar/index.js +0 -1
  138. package/dist/RichTextEditor/index.d.ts +0 -6
  139. package/dist/RichTextEditor/index.js +0 -4
  140. package/dist/SelectBox/SelectBox.d.ts +0 -6
  141. package/dist/SelectBox/SelectBox.js +0 -495
  142. package/dist/SelectBox/index.d.ts +0 -2
  143. package/dist/SelectBox/index.js +0 -1
  144. package/dist/SelectBox/types.d.ts +0 -42
  145. package/dist/SelectBox/types.js +0 -1
  146. package/dist/Switch/Switch.d.ts +0 -18
  147. package/dist/Switch/Switch.js +0 -130
  148. package/dist/Switch/index.d.ts +0 -1
  149. package/dist/Switch/index.js +0 -1
  150. package/dist/Table/ActionButton.d.ts +0 -4
  151. package/dist/Table/ActionButton.js +0 -11
  152. package/dist/Table/ActionCell.d.ts +0 -4
  153. package/dist/Table/ActionCell.js +0 -13
  154. package/dist/Table/ColumnResizer.d.ts +0 -14
  155. package/dist/Table/ColumnResizer.js +0 -45
  156. package/dist/Table/LoadingIndicator.d.ts +0 -4
  157. package/dist/Table/LoadingIndicator.js +0 -76
  158. package/dist/Table/RenderSkeleton.d.ts +0 -6
  159. package/dist/Table/RenderSkeleton.js +0 -25
  160. package/dist/Table/SelectionCell.d.ts +0 -4
  161. package/dist/Table/SelectionCell.js +0 -12
  162. package/dist/Table/StateStorage.d.ts +0 -27
  163. package/dist/Table/StateStorage.js +0 -98
  164. package/dist/Table/StaticRows.d.ts +0 -5
  165. package/dist/Table/StaticRows.js +0 -10
  166. package/dist/Table/Table.d.ts +0 -3
  167. package/dist/Table/Table.js +0 -115
  168. package/dist/Table/TableComponents.d.ts +0 -16
  169. package/dist/Table/TableComponents.js +0 -143
  170. package/dist/Table/TableDefaults.d.ts +0 -25
  171. package/dist/Table/TableDefaults.js +0 -25
  172. package/dist/Table/TableHeader.d.ts +0 -3
  173. package/dist/Table/TableHeader.js +0 -93
  174. package/dist/Table/TableMenu/InfoBadge.d.ts +0 -10
  175. package/dist/Table/TableMenu/InfoBadge.js +0 -23
  176. package/dist/Table/TableMenu/TableMenu.d.ts +0 -2
  177. package/dist/Table/TableMenu/TableMenu.js +0 -107
  178. package/dist/Table/TableMenu/index.d.ts +0 -2
  179. package/dist/Table/TableMenu/index.js +0 -2
  180. package/dist/Table/TableProvider.d.ts +0 -4
  181. package/dist/Table/TableProvider.js +0 -506
  182. package/dist/Table/TableRow.d.ts +0 -3
  183. package/dist/Table/TableRow.js +0 -27
  184. package/dist/Table/Utils/index.d.ts +0 -3
  185. package/dist/Table/Utils/index.js +0 -3
  186. package/dist/Table/Utils/resizeHandler.d.ts +0 -3
  187. package/dist/Table/Utils/resizeHandler.js +0 -84
  188. package/dist/Table/Utils/resolveColumnReorder.d.ts +0 -3
  189. package/dist/Table/Utils/resolveColumnReorder.js +0 -5
  190. package/dist/Table/Utils/resolveColumnResize.d.ts +0 -3
  191. package/dist/Table/Utils/resolveColumnResize.js +0 -5
  192. package/dist/Table/Utils/syncColumnState.d.ts +0 -3
  193. package/dist/Table/Utils/syncColumnState.js +0 -26
  194. package/dist/Table/VirtualIzedRows.d.ts +0 -11
  195. package/dist/Table/VirtualIzedRows.js +0 -26
  196. package/dist/Table/enums.d.ts +0 -10
  197. package/dist/Table/enums.js +0 -12
  198. package/dist/Table/index.d.ts +0 -3
  199. package/dist/Table/index.js +0 -3
  200. package/dist/Table/types.d.ts +0 -291
  201. package/dist/Table/types.js +0 -1
  202. package/dist/Table/useTable.d.ts +0 -3
  203. package/dist/Table/useTable.js +0 -10
  204. package/dist/TagBox/TagBox.d.ts +0 -3
  205. package/dist/TagBox/TagBox.js +0 -600
  206. package/dist/TagBox/TagBoxStyles.d.ts +0 -11
  207. package/dist/TagBox/TagBoxStyles.js +0 -107
  208. package/dist/TagBox/index.d.ts +0 -2
  209. package/dist/TagBox/index.js +0 -1
  210. package/dist/TagBox/types.d.ts +0 -41
  211. package/dist/TagBox/types.js +0 -1
  212. package/dist/TextArea/TextArea.d.ts +0 -11
  213. package/dist/TextArea/TextArea.js +0 -76
  214. package/dist/TextArea/index.d.ts +0 -1
  215. package/dist/TextArea/index.js +0 -1
  216. package/dist/TextAreaInput/TextAreaInput.d.ts +0 -18
  217. package/dist/TextAreaInput/TextAreaInput.js +0 -22
  218. package/dist/TextAreaInput/index.d.ts +0 -1
  219. package/dist/TextAreaInput/index.js +0 -1
  220. package/dist/TextInput/TextInput.d.ts +0 -15
  221. package/dist/TextInput/TextInput.js +0 -24
  222. package/dist/TextInput/index.d.ts +0 -1
  223. package/dist/TextInput/index.js +0 -1
  224. package/dist/Tooltip/Tooltip.d.ts +0 -12
  225. package/dist/Tooltip/Tooltip.js +0 -25
  226. package/dist/Tooltip/index.d.ts +0 -1
  227. package/dist/Tooltip/index.js +0 -1
  228. package/dist/Typography/Typography.d.ts +0 -20
  229. package/dist/Typography/Typography.js +0 -122
  230. package/dist/Typography/index.d.ts +0 -1
  231. package/dist/Typography/index.js +0 -1
  232. package/dist/Utilities/calculateFileHash.d.ts +0 -8
  233. package/dist/Utilities/calculateFileHash.js +0 -38
  234. package/dist/Utilities/parseTimestamp.d.ts +0 -2
  235. package/dist/Utilities/parseTimestamp.js +0 -66
  236. package/dist/Utilities/readFileAsBuffer.d.ts +0 -2
  237. package/dist/Utilities/readFileAsBuffer.js +0 -10
  238. package/dist/core/ArrowButton.d.ts +0 -6
  239. package/dist/core/ArrowButton.js +0 -43
  240. package/dist/core/ClearButton.d.ts +0 -6
  241. package/dist/core/ClearButton.js +0 -43
  242. package/dist/core/StyledContent.d.ts +0 -7
  243. package/dist/core/StyledContent.js +0 -38
  244. package/dist/core/StyledFloatContainer.d.ts +0 -2
  245. package/dist/core/StyledFloatContainer.js +0 -5
  246. package/dist/core/Types/Size.d.ts +0 -2
  247. package/dist/core/Types/Size.js +0 -1
  248. package/dist/core/Types/Variant.d.ts +0 -2
  249. package/dist/core/Types/Variant.js +0 -1
  250. package/dist/core/index.d.ts +0 -6
  251. package/dist/core/index.js +0 -4
  252. package/dist/hooks/index.d.ts +0 -1
  253. package/dist/hooks/index.js +0 -1
  254. package/dist/hooks/useDelayedBoolean.d.ts +0 -2
  255. package/dist/hooks/useDelayedBoolean.js +0 -17
  256. package/dist/index.d.ts +0 -37
  257. package/dist/index.js +0 -30
  258. package/dist/theme/getTheme.d.ts +0 -3
  259. package/dist/theme/getTheme.js +0 -13
  260. package/dist/theme/index.d.ts +0 -4
  261. package/dist/theme/index.js +0 -4
  262. package/dist/theme/typography.d.ts +0 -45
  263. package/dist/theme/typography.js +0 -57
  264. package/dist/theme/variants.d.ts +0 -8
  265. package/dist/theme/variants.js +0 -272
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.18",
3
+ "version": "1.2.19-alpha.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",
@@ -71,5 +71,6 @@
71
71
  "@types/react-window": "^1.8.8",
72
72
  "@types/spark-md5": "^3.0.4",
73
73
  "typescript": "^5.5.4"
74
- }
74
+ },
75
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
75
76
  }
@@ -1,20 +0,0 @@
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;
@@ -1,331 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- export { default } from "./Button";
2
- export type { ButtonProps } from "./Button";
@@ -1 +0,0 @@
1
- export { default } from "./Button";
@@ -1,15 +0,0 @@
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;
@@ -1,204 +0,0 @@
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;
@@ -1,36 +0,0 @@
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 {};