dce-reactkit 4.0.0-beta-date-and-time.1 → 4.0.0-beta.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 (43) hide show
  1. package/.vscode/settings.json +1 -3
  2. package/README.md +20 -0
  3. package/dist/cjs/index.js +1408 -2867
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/ItemPicker/index.d.ts +0 -1
  6. package/dist/cjs/types/components/ItemPicker/index.test.d.ts +1 -0
  7. package/dist/cjs/types/components/LoadingSpinner.d.ts +2 -2
  8. package/dist/cjs/types/components/Modal/ModalProps.d.ts +0 -2
  9. package/dist/cjs/types/components/SimpleDateChooser.d.ts +1 -3
  10. package/dist/cjs/types/components/TabBox.d.ts +0 -1
  11. package/dist/cjs/types/components/Tooltip.d.ts +1 -1
  12. package/dist/cjs/types/index.d.ts +1 -6
  13. package/dist/cjs/types/types/ReactKitErrorCode.d.ts +1 -3
  14. package/dist/esm/index.js +1423 -2878
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/components/ItemPicker/index.d.ts +0 -1
  17. package/dist/esm/types/components/ItemPicker/index.test.d.ts +1 -0
  18. package/dist/esm/types/components/LoadingSpinner.d.ts +2 -2
  19. package/dist/esm/types/components/Modal/ModalProps.d.ts +0 -2
  20. package/dist/esm/types/components/SimpleDateChooser.d.ts +1 -3
  21. package/dist/esm/types/components/TabBox.d.ts +0 -1
  22. package/dist/esm/types/components/Tooltip.d.ts +1 -1
  23. package/dist/esm/types/index.d.ts +1 -6
  24. package/dist/esm/types/types/ReactKitErrorCode.d.ts +1 -3
  25. package/dist/index.d.ts +19 -77
  26. package/package.json +10 -6
  27. package/src/components/IntelliTable.tsx +1 -1
  28. package/src/components/ItemPicker/NestableItemList.tsx +0 -1
  29. package/src/components/ItemPicker/index.tsx +0 -96
  30. package/src/components/LogReviewer.tsx +2 -2
  31. package/src/components/Modal/ModalProps.ts +0 -4
  32. package/src/components/Modal/index.tsx +20 -59
  33. package/src/components/SimpleDateChooser.tsx +26 -62
  34. package/src/components/TabBox.tsx +9 -27
  35. package/src/components/Tooltip.tsx +1 -1
  36. package/src/index.ts +0 -10
  37. package/src/types/ReactKitErrorCode.tsx +1 -3
  38. package/dist/cjs/types/components/SimpleTimeChooser.d.ts +0 -20
  39. package/dist/cjs/types/helpers/getWordCount.d.ts +0 -10
  40. package/dist/esm/types/components/SimpleTimeChooser.d.ts +0 -20
  41. package/dist/esm/types/helpers/getWordCount.d.ts +0 -10
  42. package/src/components/SimpleTimeChooser.tsx +0 -195
  43. package/src/helpers/getWordCount.ts +0 -26
@@ -14,7 +14,6 @@ type Props = {
14
14
  */
15
15
  onChanged: (updatedItems: PickableItem[]) => void;
16
16
  noBottomMargin?: boolean;
17
- hideSelectAllOrNoneButtons?: boolean;
18
17
  };
19
18
  declare const ItemPicker: React.FC<Props>;
20
19
  export default ItemPicker;
@@ -2,6 +2,6 @@
2
2
  * Loading spinner/indicator
3
3
  * @author Gabe Abrams
4
4
  */
5
- import React from 'react';
6
- declare const LoadingSpinner: () => React.JSX.Element;
5
+ /// <reference types="react" />
6
+ declare const LoadingSpinner: () => JSX.Element;
7
7
  export default LoadingSpinner;
@@ -38,7 +38,5 @@ type ModalProps = {
38
38
  confirmLabel?: string;
39
39
  confirmVariant?: Variant;
40
40
  onTopOfOtherModals?: boolean;
41
- isLoading?: boolean;
42
- isLoadingCancelable?: boolean;
43
41
  };
44
42
  export default ModalProps;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * A very simple, lightweight date chooser
3
3
  * @author Gabe Abrams
4
- * @author Gardeniu Liu
5
4
  */
6
5
  import React from 'react';
7
6
  type Props = {
@@ -18,8 +17,7 @@ type Props = {
18
17
  */
19
18
  onChange: (month: number, day: number, year: number) => void;
20
19
  numMonthsToShow?: number;
21
- dontAllowPast?: boolean;
22
- dontAllowFuture?: boolean;
20
+ chooseFromPast?: boolean;
23
21
  };
24
22
  declare const SimpleDateChooser: React.FC<Props>;
25
23
  export default SimpleDateChooser;
@@ -6,7 +6,6 @@ import React from 'react';
6
6
  type Props = {
7
7
  title: React.ReactNode;
8
8
  children: React.ReactNode;
9
- topRightChildren?: React.ReactNode;
10
9
  noBottomMargin?: boolean;
11
10
  noBottomPadding?: boolean;
12
11
  };
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  type Props = {
7
7
  text: string;
8
- children: any;
8
+ children: JSX.Element;
9
9
  };
10
10
  declare const Tooltip: React.FC<Props>;
11
11
  export default Tooltip;
@@ -7,7 +7,6 @@ import RadioButton from './components/RadioButton';
7
7
  import CheckboxButton from './components/CheckboxButton';
8
8
  import ButtonInputGroup from './components/ButtonInputGroup';
9
9
  import SimpleDateChooser from './components/SimpleDateChooser';
10
- import SimpleTimeChooser from './components/SimpleTimeChooser';
11
10
  import Drawer from './components/Drawer';
12
11
  import PopSuccessMark from './components/PopSuccessMark';
13
12
  import PopFailureMark from './components/PopFailureMark';
@@ -27,9 +26,6 @@ import ErrorWithCode from './errors/ErrorWithCode';
27
26
  import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
28
27
  import HOUR_IN_MS from './constants/HOUR_IN_MS';
29
28
  import DAY_IN_MS from './constants/DAY_IN_MS';
30
- import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREFIX';
31
- import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
32
- import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
33
29
  import DynamicWord from './dynamicConstants/DynamicWord';
34
30
  import initClient from './helpers/initClient';
35
31
  import abbreviate from './helpers/abbreviate';
@@ -76,7 +72,6 @@ import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
76
72
  import someAsync from './helpers/asyncArrayFunctions/someAsync';
77
73
  import capitalize from './helpers/capitalize';
78
74
  import shuffleArray from './helpers/shuffleArray';
79
- import getWordCount from './helpers/getWordCount';
80
75
  import ParamType from './types/ParamType';
81
76
  import ModalButtonType from './types/ModalButtonType';
82
77
  import ModalSize from './types/ModalSize';
@@ -101,4 +96,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
101
96
  import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
102
97
  import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
103
98
  import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
104
- export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
99
+ export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
@@ -6,8 +6,6 @@ declare enum ReactKitErrorCode {
6
6
  NoResponse = "DRK1",
7
7
  NoCode = "DRK2",
8
8
  SessionExpired = "DRK3",
9
- NoCACCLSendRequestFunction = "DRK7",
10
- SimpleDateChooserInvalidDateRange = "DRK35",
11
- SimpleDateChooserInvalidNumMonths = "DRK36"
9
+ NoCACCLSendRequestFunction = "DRK7"
12
10
  }
13
11
  export default ReactKitErrorCode;