dce-reactkit 3.6.8 → 3.6.9
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.
- package/dist/cjs/index.js +346 -139
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/MultiSwitch.d.ts +24 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/esm/index.js +346 -140
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/MultiSwitch.d.ts +24 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/index.d.ts +66 -43
- package/package.json +1 -1
- package/src/components/MultiSwitch.tsx +347 -0
- package/src/index.ts +2 -0
|
@@ -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;
|
|
@@ -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';
|
|
@@ -84,4 +85,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
|
84
85
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
85
86
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
86
87
|
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, };
|
|
88
|
+
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, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, addDBEditorEndpoints, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, IntelliTableColumn, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };
|