dce-reactkit 4.0.0-beta-date-and-time.1 → 4.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.vscode/settings.json +1 -3
  2. package/README.md +20 -0
  3. package/dist/cjs/index.js +167 -392
  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/Modal/ModalProps.d.ts +0 -2
  7. package/dist/cjs/types/components/SimpleDateChooser.d.ts +1 -3
  8. package/dist/cjs/types/components/TabBox.d.ts +0 -1
  9. package/dist/cjs/types/index.d.ts +1 -3
  10. package/dist/cjs/types/types/ReactKitErrorCode.d.ts +1 -3
  11. package/dist/esm/index.js +169 -392
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/types/components/ItemPicker/index.d.ts +0 -1
  14. package/dist/esm/types/components/Modal/ModalProps.d.ts +0 -2
  15. package/dist/esm/types/components/SimpleDateChooser.d.ts +1 -3
  16. package/dist/esm/types/components/TabBox.d.ts +0 -1
  17. package/dist/esm/types/index.d.ts +1 -3
  18. package/dist/esm/types/types/ReactKitErrorCode.d.ts +1 -3
  19. package/dist/index.d.ts +17 -55
  20. package/package.json +2 -2
  21. package/src/components/IntelliTable.tsx +1 -1
  22. package/src/components/ItemPicker/NestableItemList.tsx +0 -1
  23. package/src/components/ItemPicker/index.tsx +0 -96
  24. package/src/components/LogReviewer.tsx +2 -2
  25. package/src/components/Modal/ModalProps.ts +0 -4
  26. package/src/components/Modal/index.tsx +20 -59
  27. package/src/components/SimpleDateChooser.tsx +26 -62
  28. package/src/components/TabBox.tsx +9 -27
  29. package/src/index.ts +0 -4
  30. package/src/types/ReactKitErrorCode.tsx +1 -3
  31. package/dist/cjs/types/components/SimpleTimeChooser.d.ts +0 -20
  32. package/dist/cjs/types/helpers/getWordCount.d.ts +0 -10
  33. package/dist/esm/types/components/SimpleTimeChooser.d.ts +0 -20
  34. package/dist/esm/types/helpers/getWordCount.d.ts +0 -10
  35. package/src/components/SimpleTimeChooser.tsx +0 -195
  36. 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;
@@ -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
  };
@@ -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';
@@ -76,7 +75,6 @@ import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
76
75
  import someAsync from './helpers/asyncArrayFunctions/someAsync';
77
76
  import capitalize from './helpers/capitalize';
78
77
  import shuffleArray from './helpers/shuffleArray';
79
- import getWordCount from './helpers/getWordCount';
80
78
  import ParamType from './types/ParamType';
81
79
  import ModalButtonType from './types/ModalButtonType';
82
80
  import ModalSize from './types/ModalSize';
@@ -101,4 +99,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
101
99
  import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
102
100
  import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
103
101
  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, };
102
+ 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, 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, 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;