dce-reactkit 3.6.8 → 3.6.10

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A switch with multiple options for selection
3
+ * @author Alessandra De Lucas
4
+ * @author Gabe Abrams
5
+ */
6
+ import React from 'react';
7
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
8
+ type Props = {
9
+ options: Option[];
10
+ selectedOptionId: string;
11
+ /**
12
+ * A handler to call when the switch is changed
13
+ * @param selectedOptionId Updated option when switch is changed
14
+ */
15
+ onChange: (selectedOptionId: string) => void;
16
+ heightRem?: number;
17
+ };
18
+ type Option = {
19
+ label: string;
20
+ icon: IconProp;
21
+ id: string;
22
+ };
23
+ declare const MultiSwitch: React.FC<Props>;
24
+ export default MultiSwitch;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Merges a list of class names into a class name, intelligently handling spaces
3
+ * @author Gabe Abrams
4
+ * @param classNames the list of class names to merge
5
+ * @returns the merged class name
6
+ */
7
+ declare const combineClassNames: (classNames: string[]) => string;
8
+ export default combineClassNames;
@@ -20,6 +20,7 @@ import DBEntryManagerPanel from './components/DBEntryManagerPanel';
20
20
  import Tooltip from './components/Tooltip';
21
21
  import ToggleSwitch from './components/ToggleSwitch';
22
22
  import AutoscrollToBottomContainer from './components/AutoscrollToBottomContainer';
23
+ import MultiSwitch from './components/MultiSwitch';
23
24
  import ErrorWithCode from './errors/ErrorWithCode';
24
25
  import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
25
26
  import HOUR_IN_MS from './constants/HOUR_IN_MS';
@@ -66,6 +67,7 @@ import validatePhoneNumber from './helpers/validators/validatePhoneNumber';
66
67
  import validateString from './helpers/validators/validateString';
67
68
  import idify from './helpers/idify';
68
69
  import makeLinksClickable from './helpers/makeLinksClickable';
70
+ import combineClassNames from './helpers/combineClassNames';
69
71
  import ModalButtonType from './types/ModalButtonType';
70
72
  import ModalSize from './types/ModalSize';
71
73
  import ModalType from './types/ModalType';
@@ -84,4 +86,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
84
86
  import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
85
87
  import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
86
88
  import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
87
- export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, alert, 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, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, addDBEditorEndpoints, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, IntelliTableColumn, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };
89
+ export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, alert, 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, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, addDBEditorEndpoints, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, IntelliTableColumn, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };