dce-reactkit 5.0.1 → 5.0.3

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,27 @@
1
+ /**
2
+ * Fake progress bar that approaches completion but never fully finishes.
3
+ * Built on top of the existing ProgressBar component.
4
+ *
5
+ * Two phases:
6
+ * 1. Fast phase (0–90%): random jumps of 1–5% at randomized intervals,
7
+ * paced to reach ~90% in roughly estimatedTimeSec seconds.
8
+ * 2. Slow phase (90–99%): crawls 1% at a time with longer random delays,
9
+ * never reaching 100% on its own.
10
+ *
11
+ * When isFinished becomes true, the bar immediately jumps to 100%.
12
+ * @author Yuen Ler Chow
13
+ */
14
+ import React from 'react';
15
+ import Variant from '../types/Variant';
16
+ import ProgressBarSize from '../types/ProgressBarSize';
17
+ type Props = {
18
+ isFinished?: boolean;
19
+ estimatedTimeSec?: number;
20
+ striped?: boolean;
21
+ variant?: Variant;
22
+ bgVariant?: Variant;
23
+ showOutline?: boolean;
24
+ size?: ProgressBarSize;
25
+ };
26
+ declare const FakeProgressBar: React.FC<Props>;
27
+ export default FakeProgressBar;
@@ -21,6 +21,7 @@ type Props = {
21
21
  dontAllowPast?: boolean;
22
22
  dontAllowFuture?: boolean;
23
23
  isDisabled?: boolean;
24
+ hideDay?: boolean;
24
25
  };
25
26
  declare const SimpleDateChooser: React.FC<Props>;
26
27
  export default SimpleDateChooser;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * A very simple, lightweight month chooser
3
+ * @author Gabe Abrams
4
+ */
5
+ import React from 'react';
6
+ type Props = {
7
+ ariaLabel: string;
8
+ name: string;
9
+ month: number;
10
+ year: number;
11
+ /**
12
+ * Handler for when month changes
13
+ * @param month new 1-indexed month number
14
+ * @param year new full year number
15
+ */
16
+ onChange: (month: number, year: number) => void;
17
+ numMonthsToShow?: number;
18
+ dontAllowPast?: boolean;
19
+ dontAllowFuture?: boolean;
20
+ isDisabled?: boolean;
21
+ };
22
+ declare const SimpleMonthChooser: React.FC<Props>;
23
+ export default SimpleMonthChooser;
@@ -8,6 +8,7 @@ import RadioButton from './components/RadioButton';
8
8
  import CheckboxButton from './components/CheckboxButton';
9
9
  import ButtonInputGroup from './components/ButtonInputGroup';
10
10
  import SimpleDateChooser from './components/SimpleDateChooser';
11
+ import SimpleMonthChooser from './components/SimpleMonthChooser';
11
12
  import SimpleTimeChooser from './components/SimpleTimeChooser';
12
13
  import Drawer from './components/Drawer';
13
14
  import PopSuccessMark from './components/PopSuccessMark';
@@ -25,6 +26,7 @@ import AutoscrollToBottomContainer from './components/AutoscrollToBottomContaine
25
26
  import MultiSwitch from './components/MultiSwitch';
26
27
  import Dropdown from './components/Dropdown';
27
28
  import ProgressBar from './components/ProgressBar';
29
+ import FakeProgressBar from './components/FakeProgressBar';
28
30
  import DynamicWord from './dynamicConstants/DynamicWord';
29
31
  import initClient from './helpers/initClient';
30
32
  import visitServerEndpoint from './helpers/visitServerEndpoint';
@@ -47,4 +49,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
47
49
  import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
48
50
  import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
49
51
  import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
50
- 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, ProgressBar, alert, prompt, confirm, showFatalError, DynamicWord, stubServerEndpoint, canReviewLogs, isMobileOrTablet, makeLinksClickable, isSelectAdmin, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ModalButtonType, ModalSize, ModalType, Variant, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, ProgressBarSize, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, SELECT_ADMIN_CHECK_ROUTE, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, extractProp, compareArraysByProp, getLocalTimeInfo, genCommaList, validateEmail, validatePhoneNumber, validateString, idify, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, cloneDeep, getTimestampFromTimeInfoInET, ParamType, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, CommonKitErrorCode, };
52
+ export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleMonthChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, ProgressBar, FakeProgressBar, alert, prompt, confirm, showFatalError, DynamicWord, stubServerEndpoint, canReviewLogs, isMobileOrTablet, makeLinksClickable, isSelectAdmin, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ModalButtonType, ModalSize, ModalType, Variant, IntelliTableColumn, DropdownItemType, LogReviewerFilterState, ProgressBarSize, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, LOG_REVIEW_GET_LOGS_ROUTE, SELECT_ADMIN_CHECK_ROUTE, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, extractProp, compareArraysByProp, getLocalTimeInfo, genCommaList, validateEmail, validatePhoneNumber, validateString, idify, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, cloneDeep, getTimestampFromTimeInfoInET, ParamType, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, CommonKitErrorCode, };
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ declare enum Variant {
25
25
  * @author Gabe Abrams
26
26
  */
27
27
 
28
- type Props$n = {
28
+ type Props$p = {
29
29
  children: React$1.ReactNode;
30
30
  };
31
31
  /**
@@ -108,7 +108,7 @@ declare const showFatalError: (error: any, errorTitle?: string) => Promise<void>
108
108
  * @author Gabe Abrams
109
109
  */
110
110
  declare const addFatalErrorHandler: (handler: () => void) => void;
111
- declare const AppWrapper: React$1.FC<Props$n>;
111
+ declare const AppWrapper: React$1.FC<Props$p>;
112
112
 
113
113
  /**
114
114
  * Loading spinner/indicator
@@ -122,14 +122,14 @@ declare const LoadingSpinner: () => React$1.JSX.Element;
122
122
  * @author Gabe Abrams
123
123
  */
124
124
 
125
- type Props$m = {
125
+ type Props$o = {
126
126
  error: any;
127
127
  title?: string;
128
128
  onClose?: () => void;
129
129
  variant?: Variant;
130
130
  icon?: IconProp;
131
131
  };
132
- declare const ErrorBox: React$1.FC<Props$m>;
132
+ declare const ErrorBox: React$1.FC<Props$o>;
133
133
 
134
134
  /**
135
135
  * Types of buttons in the modal
@@ -228,7 +228,7 @@ declare const Modal: React$1.FC<ModalProps>;
228
228
  * @author Gabe Abrams
229
229
  */
230
230
 
231
- type Props$l = {
231
+ type Props$n = {
232
232
  title: React$1.ReactNode;
233
233
  children: React$1.ReactNode;
234
234
  topRightChildren?: React$1.ReactNode;
@@ -236,14 +236,14 @@ type Props$l = {
236
236
  noBottomPadding?: boolean;
237
237
  minTitleWidth?: string;
238
238
  };
239
- declare const TabBox: React$1.FC<Props$l>;
239
+ declare const TabBox: React$1.FC<Props$n>;
240
240
 
241
241
  /**
242
242
  * A radio selection button
243
243
  * @author Gabe Abrams
244
244
  */
245
245
 
246
- type Props$k = {
246
+ type Props$m = {
247
247
  text: React$1.ReactNode;
248
248
  onSelected: () => void;
249
249
  ariaLabel: string;
@@ -257,14 +257,14 @@ type Props$k = {
257
257
  small?: boolean;
258
258
  useComplexFormatting?: boolean;
259
259
  };
260
- declare const RadioButton: React$1.FC<Props$k>;
260
+ declare const RadioButton: React$1.FC<Props$m>;
261
261
 
262
262
  /**
263
263
  * A checkbox button
264
264
  * @author Gabe Abrams
265
265
  */
266
266
 
267
- type Props$j = {
267
+ type Props$l = {
268
268
  text: React$1.ReactNode;
269
269
  onChanged: (checked: boolean) => void;
270
270
  ariaLabel: string;
@@ -279,14 +279,14 @@ type Props$j = {
279
279
  dashed?: boolean;
280
280
  useComplexFormatting?: boolean;
281
281
  };
282
- declare const CheckboxButton: React$1.FC<Props$j>;
282
+ declare const CheckboxButton: React$1.FC<Props$l>;
283
283
 
284
284
  /**
285
285
  * Input group with a title and space for buttons
286
286
  * @author Gabe Abrams
287
287
  */
288
288
 
289
- type Props$i = {
289
+ type Props$k = {
290
290
  label: React$1.ReactNode;
291
291
  minLabelWidth?: string;
292
292
  children: React$1.ReactNode;
@@ -295,7 +295,7 @@ type Props$i = {
295
295
  isAdminFeature?: boolean;
296
296
  noMarginOnBottom?: boolean;
297
297
  };
298
- declare const ButtonInputGroup: React$1.FC<Props$i>;
298
+ declare const ButtonInputGroup: React$1.FC<Props$k>;
299
299
 
300
300
  /**
301
301
  * A very simple, lightweight date chooser
@@ -303,7 +303,7 @@ declare const ButtonInputGroup: React$1.FC<Props$i>;
303
303
  * @author Gardenia Liu
304
304
  */
305
305
 
306
- type Props$h = {
306
+ type Props$j = {
307
307
  ariaLabel: string;
308
308
  name: string;
309
309
  month: number;
@@ -320,15 +320,39 @@ type Props$h = {
320
320
  dontAllowPast?: boolean;
321
321
  dontAllowFuture?: boolean;
322
322
  isDisabled?: boolean;
323
+ hideDay?: boolean;
324
+ };
325
+ declare const SimpleDateChooser: React$1.FC<Props$j>;
326
+
327
+ /**
328
+ * A very simple, lightweight month chooser
329
+ * @author Gabe Abrams
330
+ */
331
+
332
+ type Props$i = {
333
+ ariaLabel: string;
334
+ name: string;
335
+ month: number;
336
+ year: number;
337
+ /**
338
+ * Handler for when month changes
339
+ * @param month new 1-indexed month number
340
+ * @param year new full year number
341
+ */
342
+ onChange: (month: number, year: number) => void;
343
+ numMonthsToShow?: number;
344
+ dontAllowPast?: boolean;
345
+ dontAllowFuture?: boolean;
346
+ isDisabled?: boolean;
323
347
  };
324
- declare const SimpleDateChooser: React$1.FC<Props$h>;
348
+ declare const SimpleMonthChooser: React$1.FC<Props$i>;
325
349
 
326
350
  /**
327
351
  * A very simple, lightweight time chooser
328
352
  * @author Gardenia Liu
329
353
  */
330
354
 
331
- type Props$g = {
355
+ type Props$h = {
332
356
  ariaLabel: string;
333
357
  name: string;
334
358
  hour: number;
@@ -342,62 +366,62 @@ type Props$g = {
342
366
  intervalMin?: number;
343
367
  isDisabled?: boolean;
344
368
  };
345
- declare const SimpleTimeChooser: React$1.FC<Props$g>;
369
+ declare const SimpleTimeChooser: React$1.FC<Props$h>;
346
370
 
347
371
  /**
348
372
  * Drawer container
349
373
  * @author Gabe Abrams
350
374
  */
351
375
 
352
- type Props$f = {
376
+ type Props$g = {
353
377
  grayBackground?: boolean;
354
378
  customBackgroundColor?: string;
355
379
  children: React$1.ReactNode;
356
380
  };
357
- declare const Drawer: React$1.FC<Props$f>;
381
+ declare const Drawer: React$1.FC<Props$g>;
358
382
 
359
383
  /**
360
384
  * Success checkmark that pops into view
361
385
  * @author Gabe Abrams
362
386
  */
363
387
 
364
- type Props$e = {
388
+ type Props$f = {
365
389
  sizeRem?: number;
366
390
  circleVariant?: string;
367
391
  checkVariant?: string;
368
392
  };
369
- declare const PopSuccessMark: React$1.FC<Props$e>;
393
+ declare const PopSuccessMark: React$1.FC<Props$f>;
370
394
 
371
395
  /**
372
396
  * Failure x mark that pops into view
373
397
  * @author Gabe Abrams
374
398
  */
375
399
 
376
- type Props$d = {
400
+ type Props$e = {
377
401
  sizeRem?: number;
378
402
  circleVariant?: string;
379
403
  xVariant?: string;
380
404
  };
381
- declare const PopFailureMark: React$1.FC<Props$d>;
405
+ declare const PopFailureMark: React$1.FC<Props$e>;
382
406
 
383
407
  /**
384
408
  * Failure pending that pops into view
385
409
  * @author Gabe Abrams
386
410
  */
387
411
 
388
- type Props$c = {
412
+ type Props$d = {
389
413
  sizeRem?: number;
390
414
  circleVariant?: string;
391
415
  hourglassVariant?: string;
392
416
  };
393
- declare const PopPendingMark: React$1.FC<Props$c>;
417
+ declare const PopPendingMark: React$1.FC<Props$d>;
394
418
 
395
419
  /**
396
420
  * Copiable text box
397
421
  * @author Gabe Abrams
398
422
  */
399
423
 
400
- type Props$b = {
424
+ type Props$c = {
401
425
  text: string;
402
426
  maxTextWidthRem?: number;
403
427
  label?: string;
@@ -409,7 +433,7 @@ type Props$b = {
409
433
  textAreaId?: string;
410
434
  copyButtonId?: string;
411
435
  };
412
- declare const CopiableBox: React$1.FC<Props$b>;
436
+ declare const CopiableBox: React$1.FC<Props$c>;
413
437
 
414
438
  /**
415
439
  * An item that can be chosen (for use within ItemPicker)
@@ -432,7 +456,7 @@ type PickableItem = ({
432
456
  * @author Yuen Ler Chow
433
457
  */
434
458
 
435
- type Props$a = {
459
+ type Props$b = {
436
460
  title: string;
437
461
  items: PickableItem[];
438
462
  /**
@@ -444,7 +468,7 @@ type Props$a = {
444
468
  noBottomMargin?: boolean;
445
469
  hideSelectAllOrNoneButtons?: boolean;
446
470
  };
447
- declare const ItemPicker: React$1.FC<Props$a>;
471
+ declare const ItemPicker: React$1.FC<Props$b>;
448
472
 
449
473
  /**
450
474
  * Log reviewer panel that allows users (must be approved admins) to
@@ -452,11 +476,11 @@ declare const ItemPicker: React$1.FC<Props$a>;
452
476
  * @author Gabe Abrams
453
477
  */
454
478
 
455
- type Props$9 = {
479
+ type Props$a = {
456
480
  LogMetadata: LogMetadataType;
457
481
  onClose: () => void;
458
482
  };
459
- declare const LogReviewer: React$1.FC<Props$9>;
483
+ declare const LogReviewer: React$1.FC<Props$a>;
460
484
 
461
485
  /**
462
486
  * Column description for a column in the IntelliTable
@@ -474,7 +498,7 @@ type IntelliTableColumn = {
474
498
  * @author Gabe Abrams
475
499
  */
476
500
 
477
- type Props$8 = {
501
+ type Props$9 = {
478
502
  title: string;
479
503
  id: string;
480
504
  data: {
@@ -484,14 +508,14 @@ type Props$8 = {
484
508
  columns: IntelliTableColumn[];
485
509
  csvName?: string;
486
510
  };
487
- declare const IntelliTable: React$1.FC<Props$8>;
511
+ declare const IntelliTable: React$1.FC<Props$9>;
488
512
 
489
513
  /**
490
514
  * Button for downloading a csv file
491
515
  * @author Gabe Abrams
492
516
  */
493
517
 
494
- type Props$7 = {
518
+ type Props$8 = {
495
519
  filename: string;
496
520
  csv: string;
497
521
  label?: string;
@@ -504,7 +528,7 @@ type Props$7 = {
504
528
  onClick?: () => void;
505
529
  children?: React$1.ReactNode;
506
530
  };
507
- declare const CSVDownloadButton: React$1.FC<Props$7>;
531
+ declare const CSVDownloadButton: React$1.FC<Props$8>;
508
532
 
509
533
  /**
510
534
  * Generic type for an object
@@ -580,7 +604,7 @@ type DBEntryField = ({
580
604
  * @author Gabe Abrams
581
605
  */
582
606
 
583
- type Props$6 = {
607
+ type Props$7 = {
584
608
  entryFields: DBEntryField[];
585
609
  idPropName: string;
586
610
  titlePropName: string;
@@ -606,18 +630,18 @@ type Props$6 = {
606
630
  [k: string]: any;
607
631
  };
608
632
  };
609
- declare const DBEntryManagerPanel: React$1.FC<Props$6>;
633
+ declare const DBEntryManagerPanel: React$1.FC<Props$7>;
610
634
 
611
635
  /**
612
636
  * Simple tooltip component
613
637
  * @author Gabe Abrams
614
638
  */
615
639
 
616
- type Props$5 = {
640
+ type Props$6 = {
617
641
  text: string;
618
642
  children: any;
619
643
  };
620
- declare const Tooltip: React$1.FC<Props$5>;
644
+ declare const Tooltip: React$1.FC<Props$6>;
621
645
 
622
646
  /**
623
647
  * A toggle switch that toggles on or off
@@ -625,7 +649,7 @@ declare const Tooltip: React$1.FC<Props$5>;
625
649
  * @author Gabe Abrams
626
650
  */
627
651
 
628
- type Props$4 = {
652
+ type Props$5 = {
629
653
  isOn: boolean;
630
654
  /**
631
655
  * A handler to call when the switch is toggled
@@ -637,7 +661,7 @@ type Props$4 = {
637
661
  description: string;
638
662
  backgroundVariantWhenOn?: Variant;
639
663
  };
640
- declare const ToggleSwitch: React$1.FC<Props$4>;
664
+ declare const ToggleSwitch: React$1.FC<Props$5>;
641
665
 
642
666
  /**
643
667
  * Container that automatically scrolls when new items are added,
@@ -648,7 +672,7 @@ declare const ToggleSwitch: React$1.FC<Props$4>;
648
672
  * @author Gabe Abrams
649
673
  */
650
674
 
651
- type Props$3 = {
675
+ type Props$4 = {
652
676
  itemsName?: string;
653
677
  items: AutoScrollItem[];
654
678
  jumpToBottomButtonVariant?: Variant;
@@ -659,7 +683,7 @@ type AutoScrollItem = {
659
683
  id: string | number;
660
684
  item: React$1.ReactNode;
661
685
  };
662
- declare const AutoscrollToBottomContainer: React$1.FC<Props$3>;
686
+ declare const AutoscrollToBottomContainer: React$1.FC<Props$4>;
663
687
 
664
688
  /**
665
689
  * A switch with multiple options for selection
@@ -668,7 +692,7 @@ declare const AutoscrollToBottomContainer: React$1.FC<Props$3>;
668
692
  * @author Austen Money
669
693
  */
670
694
 
671
- type Props$2 = {
695
+ type Props$3 = {
672
696
  options: Option[];
673
697
  selectedOptionId: string;
674
698
  /**
@@ -683,7 +707,7 @@ type Option = {
683
707
  icon: IconProp;
684
708
  id: string;
685
709
  };
686
- declare const MultiSwitch: React$1.FC<Props$2>;
710
+ declare const MultiSwitch: React$1.FC<Props$3>;
687
711
 
688
712
  declare enum DropdownItemType {
689
713
  Header = "Header",
@@ -698,7 +722,7 @@ declare enum DropdownItemType {
698
722
  * @author Gabe Abrams
699
723
  */
700
724
 
701
- type Props$1 = {
725
+ type Props$2 = {
702
726
  items: DropdownItem[];
703
727
  dropdownButton: {
704
728
  ariaLabel: string;
@@ -719,7 +743,7 @@ type DropdownItem = ({
719
743
  id: string;
720
744
  onClick: () => void;
721
745
  });
722
- declare const Dropdown: React$1.FC<Props$1>;
746
+ declare const Dropdown: React$1.FC<Props$2>;
723
747
 
724
748
  /**
725
749
  * Progress bar sizes
@@ -735,7 +759,7 @@ declare enum ProgressBarSize {
735
759
  * @author Allison Zhang
736
760
  */
737
761
 
738
- type Props = (({
762
+ type Props$1 = (({
739
763
  percentProgress: number;
740
764
  numDecimalPlaces?: number;
741
765
  } | {
@@ -748,7 +772,32 @@ type Props = (({
748
772
  showOutline?: boolean;
749
773
  size?: ProgressBarSize;
750
774
  });
751
- declare const ProgressBar: React$1.FC<Props>;
775
+ declare const ProgressBar: React$1.FC<Props$1>;
776
+
777
+ /**
778
+ * Fake progress bar that approaches completion but never fully finishes.
779
+ * Built on top of the existing ProgressBar component.
780
+ *
781
+ * Two phases:
782
+ * 1. Fast phase (0–90%): random jumps of 1–5% at randomized intervals,
783
+ * paced to reach ~90% in roughly estimatedTimeSec seconds.
784
+ * 2. Slow phase (90–99%): crawls 1% at a time with longer random delays,
785
+ * never reaching 100% on its own.
786
+ *
787
+ * When isFinished becomes true, the bar immediately jumps to 100%.
788
+ * @author Yuen Ler Chow
789
+ */
790
+
791
+ type Props = {
792
+ isFinished?: boolean;
793
+ estimatedTimeSec?: number;
794
+ striped?: boolean;
795
+ variant?: Variant;
796
+ bgVariant?: Variant;
797
+ showOutline?: boolean;
798
+ size?: ProgressBarSize;
799
+ };
800
+ declare const FakeProgressBar: React$1.FC<Props>;
752
801
 
753
802
  /**
754
803
  * Dynamic words determined by the user's platform
@@ -916,4 +965,4 @@ declare const useForceRender: (useReducer: any) => () => void;
916
965
  */
917
966
  declare const isSelectAdmin: () => Promise<boolean>;
918
967
 
919
- export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, IntelliTable, IntelliTableColumn, ItemPicker, LoadingSpinner, LogReviewer, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, ProgressBar, ProgressBarSize, RadioButton, SimpleDateChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, addFatalErrorHandler, alert, canReviewLogs, combineClassNames, confirm, initClient, isMobileOrTablet, isSelectAdmin, leaveToURL, logClientEvent, makeLinksClickable, prompt, setClientEventMetadataPopulator, showFatalError, stubServerEndpoint, useForceRender, visitServerEndpoint };
968
+ export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, FakeProgressBar, IntelliTable, IntelliTableColumn, ItemPicker, LoadingSpinner, LogReviewer, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, ProgressBar, ProgressBarSize, RadioButton, SimpleDateChooser, SimpleMonthChooser, SimpleTimeChooser, TabBox, ToggleSwitch, Tooltip, Variant, addFatalErrorHandler, alert, canReviewLogs, combineClassNames, confirm, initClient, isMobileOrTablet, isSelectAdmin, leaveToURL, logClientEvent, makeLinksClickable, prompt, setClientEventMetadataPopulator, showFatalError, stubServerEndpoint, useForceRender, visitServerEndpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",