@woven-planet/lakefront 5.5.3 → 6.0.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.
package/README.md CHANGED
@@ -27,7 +27,7 @@ import { theme } from '@woven-planet/lakefront';
27
27
  ```
28
28
 
29
29
  ## Usage
30
- ### ⚠️ <b>LakeFront requires the client application to use React 18 as well as Node 18.x. ⚠️ </b>
30
+ ### ⚠️ <b>LakeFront requires the client application to use React 18 and the Node version in the [package.json](./package.json) ⚠️ </b>
31
31
 
32
32
 
33
33
  Here is a quick example to get you started, **it's all you need**:
@@ -84,4 +84,4 @@ Please do not add information below this table, the 'npm run update-readme' will
84
84
  | [StepFunctionRenderer](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-stepfunctionrenderer--step-function-renderer) | <details><summary>Screenshot</summary><img src="src/screenshots/StepFunctionRenderer.png"></details> | [Table](https://woven-planet.github.io/lakefront?path=/docs/lakefront-table--table) | <details><summary>Screenshot</summary><img src="src/screenshots/Table.png"></details> |
85
85
  | [Tabs](https://woven-planet.github.io/lakefront?path=/docs/lakefront-tabs--tabs) | <details><summary>Screenshot</summary><img src="src/screenshots/Tabs.png"></details> | [TextArea](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-textarea--placeholder) | <details><summary>Screenshot</summary><img src="src/screenshots/TextArea.png"></details> |
86
86
  | [Toggle](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-toggle--toggle) | <details><summary>Screenshot</summary><img src="src/screenshots/Toggle.png"></details> | [TypeaheadSearch](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-typeaheadsearch--search-bottom-start) |<details><summary>Screenshot</summary><img src="src/screenshots/TypeaheadSearch.png"></details> |
87
- | [ModeSelector](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-modeselector--simple-mode-selector) | <details><summary>Screenshot</summary><img src="src/screenshots/ModeSelector.png"></details> |
87
+ | [ModeSelector](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-modeselector--simple-mode-selector) | <details><summary>Screenshot</summary><img src="src/screenshots/ModeSelector.png"></details> | [Colors](https://woven-planet.github.io/lakefront/?path=/docs/lakefront-theme-colors--docs) | <details><summary>Screenshot</summary><img src="src/screenshots/Colors.png"></details> |
@@ -4,6 +4,7 @@ import { ComponentPropsWithoutRef, FC, RefAttributes, ReactNode, ElementType, Re
4
4
  import { LinkProps } from "react-router-dom";
5
5
  import { GetStyles, GroupBase } from "react-select/dist/declarations/src/types";
6
6
  import { ParsedQuery } from "query-string";
7
+ import { Theme } from "@emotion/react";
7
8
  import { Column } from "react-table";
8
9
  interface AnchorCopyProps {
9
10
  /**
@@ -458,6 +459,59 @@ interface DrawerProps {
458
459
  * Usage: Place this next to a flex container that has flex: 1
459
460
  */
460
461
  declare const Drawer: FC<DrawerProps>;
462
+ declare const LAKEFRONT_COLORS: {
463
+ white: string;
464
+ akoya: string;
465
+ selago: string;
466
+ mercury: string;
467
+ alto: string;
468
+ bombay: string;
469
+ pavement: string;
470
+ dolphin: string;
471
+ gunpowder: string;
472
+ arsenic: string;
473
+ doveGrey: string;
474
+ grey30: string;
475
+ storm: string;
476
+ cinder: string;
477
+ black: string;
478
+ orange: string;
479
+ saturatedOrange: string;
480
+ gold: string;
481
+ yellow: string;
482
+ saturatedYellow: string;
483
+ red: string;
484
+ watermelon: string;
485
+ saturatedRed: string;
486
+ cranberry: string;
487
+ mediumPurple: string;
488
+ lavender: string;
489
+ saturatedLavender: string;
490
+ green: string;
491
+ pastelGreen: string;
492
+ saturatedGreen: string;
493
+ emerald: string;
494
+ saturatedTeal: string;
495
+ teal: string;
496
+ sinbad: string;
497
+ viking: string;
498
+ vista: string;
499
+ calmingBlue: string;
500
+ blue: string;
501
+ havelockBlue: string;
502
+ saturatedBlue: string;
503
+ };
504
+ declare const colors: typeof LAKEFRONT_COLORS;
505
+ declare const _default: {
506
+ primary: string;
507
+ popover: string;
508
+ };
509
+ declare const borders: typeof _default;
510
+ declare const zIndex: {
511
+ modal: number;
512
+ popover: number;
513
+ snackbar: number;
514
+ };
461
515
  /**
462
516
  * JSONObject is a wrapper for a generic JSON object structure.
463
517
  */
@@ -478,6 +532,105 @@ interface TabDef {
478
532
  key: string;
479
533
  caption: string;
480
534
  }
535
+ type ColorsType = typeof colors;
536
+ type BordersType = typeof borders;
537
+ type ZIndexType = typeof zIndex;
538
+ interface LakefrontTheme {
539
+ colors: ColorsType;
540
+ borders: BordersType;
541
+ zIndex: ZIndexType;
542
+ DARKEN_MOST: number;
543
+ DARKEN_LEAST: number;
544
+ textColors: {
545
+ primary: string;
546
+ secondary: string;
547
+ h2: string;
548
+ h4: string;
549
+ error: string;
550
+ disabled: string;
551
+ };
552
+ backgroundColors: {
553
+ primary: string;
554
+ secondary: string;
555
+ third: string;
556
+ fourth: string;
557
+ fifth: string;
558
+ primaryWidget: string;
559
+ disabled: string;
560
+ };
561
+ borderColors: {
562
+ primary: string;
563
+ secondary: string;
564
+ disabled: string;
565
+ inverted: string;
566
+ };
567
+ buttonColors: {
568
+ primary: string;
569
+ secondary: string;
570
+ };
571
+ shadowColors: {
572
+ boxShadow: string;
573
+ };
574
+ backgrounds: {
575
+ primary: string;
576
+ secondary: string;
577
+ tertiary: string;
578
+ widget: string;
579
+ disabled: string;
580
+ inverted: string;
581
+ };
582
+ foregrounds: {
583
+ primary: string;
584
+ secondary: string;
585
+ error: string;
586
+ disabled: string;
587
+ info: string;
588
+ warning: string;
589
+ inverted: string;
590
+ };
591
+ lettering: {
592
+ primary: {
593
+ fontSize: number;
594
+ fontFamily: string;
595
+ fontWeight: number;
596
+ };
597
+ secondary: {
598
+ fontSize: number;
599
+ fontFamily: string;
600
+ fontWeight: number;
601
+ };
602
+ h1: {
603
+ fontSize: number;
604
+ fontFamily: string;
605
+ fontWeight: number;
606
+ };
607
+ h2: {
608
+ fontSize: number;
609
+ fontFamily: string;
610
+ fontWeight: number;
611
+ };
612
+ h3: {
613
+ fontSize: number;
614
+ fontFamily: string;
615
+ fontWeight: number;
616
+ };
617
+ h4: {
618
+ fontSize: number;
619
+ fontFamily: string;
620
+ fontWeight: number;
621
+ };
622
+ h5: {
623
+ fontSize: number;
624
+ fontFamily: string;
625
+ fontWeight: number;
626
+ };
627
+ h6: {
628
+ fontSize: number;
629
+ fontFamily: string;
630
+ fontWeight: number;
631
+ };
632
+ };
633
+ }
481
634
  type MultiSelectOption = SelectOption<string>;
482
635
  interface SelectOption$0 {
483
636
  value: string | number | undefined;
@@ -2675,101 +2828,6 @@ interface TypeaheadSearchProps {
2675
2828
  * **result from the list, you'll need to spread in the props (as shown above).**
2676
2829
  */
2677
2830
  declare const TypeaheadSearch: FC<TypeaheadSearchProps & ComponentPropsWithoutRef<"input">>;
2678
- declare const LAKEFRONT_COLORS: {
2679
- white: string;
2680
- akoya: string;
2681
- selago: string;
2682
- mercury: string;
2683
- pavement: string;
2684
- dolphin: string;
2685
- gunpowder: string;
2686
- storm: string;
2687
- cinder: string;
2688
- black: string;
2689
- grey30: string;
2690
- doveGrey: string;
2691
- bombay: string;
2692
- alto: string;
2693
- red: string;
2694
- watermelon: string;
2695
- orange: string;
2696
- yellow: string;
2697
- gold: string;
2698
- green: string;
2699
- pastelGreen: string;
2700
- emerald: string;
2701
- teal: string;
2702
- blue: string;
2703
- lavender: string;
2704
- havelockBlue: string;
2705
- calmingBlue: string;
2706
- sinbad: string;
2707
- cranberry: string;
2708
- viking: string;
2709
- mediumPurple: string;
2710
- vista: string;
2711
- saturatedRed: string;
2712
- saturatedOrange: string;
2713
- saturatedYellow: string;
2714
- saturatedBlue: string;
2715
- saturatedGreen: string;
2716
- saturatedLavender: string;
2717
- saturatedTeal: string;
2718
- arsenic: string;
2719
- };
2720
- declare const THEME: {
2721
- colors: {
2722
- white: string;
2723
- akoya: string;
2724
- selago: string;
2725
- mercury: string;
2726
- pavement: string;
2727
- dolphin: string;
2728
- gunpowder: string;
2729
- storm: string;
2730
- cinder: string;
2731
- black: string;
2732
- grey30: string;
2733
- doveGrey: string;
2734
- bombay: string;
2735
- alto: string;
2736
- red: string;
2737
- watermelon: string;
2738
- orange: string;
2739
- yellow: string;
2740
- gold: string;
2741
- green: string;
2742
- pastelGreen: string;
2743
- emerald: string;
2744
- teal: string;
2745
- blue: string;
2746
- lavender: string;
2747
- havelockBlue: string;
2748
- calmingBlue: string;
2749
- sinbad: string;
2750
- cranberry: string;
2751
- viking: string;
2752
- mediumPurple: string;
2753
- vista: string;
2754
- saturatedRed: string;
2755
- saturatedOrange: string;
2756
- saturatedYellow: string;
2757
- saturatedBlue: string;
2758
- saturatedGreen: string;
2759
- saturatedLavender: string;
2760
- saturatedTeal: string;
2761
- arsenic: string;
2762
- };
2763
- borders: {
2764
- primary: string;
2765
- popover: string;
2766
- };
2767
- zIndex: {
2768
- modal: number;
2769
- popover: number;
2770
- snackbar: number;
2771
- };
2772
- DARKEN_MOST: number;
2773
- DARKEN_LEAST: number;
2774
- };
2775
- export { AnchorCopy, AnchorCopyProps, BoundingBoxes, BoundingBoxesProps, BoundingBoxItemProp, BreadcrumbHeader, BreadcrumbProps, RouteProp, Breadcrumb, BreadcrumbHeaderProps, Button, ButtonProps$0 as ButtonProps, Card, CardProps, Checkbox, CheckboxProps, CheckboxGroup, CheckboxGroupProps, CheckboxGroupOption, Collapsible, CollapsibleProps, CopyButton, CopyButtonProps, Drawer, DrawerProps, Filter, getApiQueryUrl, getApiPostBody, parseInitialFilterValues, getCurrentBrowserQueryParams, getFilterBrowserQueryParams, FILTER_MODE_OPTIONS, USER_JSON_QUERY_PARAM, getDefaultValue, getDefaultJsonViewValue, getFilterAppliedCount, getUrlFromList, areSetsEqual, convertToFilterDropdownOptions, useFilter, FilterRenderProps, FilterPostBody, FilterModule, FilterSet, FilterValues, FilterHooks, FilterMap, FilterSectionHeaderProps, FilterMode, Location, UrlParameters, UpdateHistory, ContextSwitchMenuValue, ContextSwitchMenuProps, FilterBarProps, FilterJSONConfirmationModalProps, FilterJSONInputProps, FilterComponentProps, FilterContainerProps, AdditionalJSONFilterOptions, DoubleMultiSelectData, DoubleMultiSelectOptions, DoubleMultiSelectValues, DoubleMultiSelectFilterProps, DoubleMultiSelectFilterOptions, ListFilterOverrides, MultiSelectFilterProps, MultiSelectFilterOptions, RadioFilterProps, RadioFilterOptions, SingleSelectFilterProps, SingleSelectFilterOptions, TextFilterOverrides, AdditionalJSONFilter, DoubleMultiSelectFilter, ListFilter, MultiSelectFilter, RadioFilter, SingleSelectFilter, TextFilter, DurationFilter, MinMaxFilter, MinMaxInput, Header, IconButton, Input, InputProps, ItemGrid, ItemGridProps, ItemResults, ItemResultsProps, Loading, LoadingProps, MaskableImage, MaskableImageProps, ImageTagProps, Modal, ConfirmationModal, ConfirmationModalProps, ModalProps, ModeSelector, ModeSelectorProps, ModeSelectorLegendRowProps, Page, PageProps, PlaybackBar, PlaybackBarProps, HighlightsProp, usePopover, UsePopoverProps, PortalStyles, PopoverContent, ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps, DeviceProgressBar, DeviceProgressProps, DeviceProgressBarThreshold, PropertyList, Property, PropertyListProps, PropertyListVariable, RadioGroup, RadioGroupProps, RefreshToolbar, RefreshToolbarProps, Select, SelectProps, SELECT_OVERLAY_STYLES, SelectOverlayStyles, SelectPopover, SelectPopoverProps, SelectPopoverOption, Snackbar, SnackbarProps, MESSAGE_TYPES as SNACKBAR_MESSAGE_TYPES, SpeedInput, SpeedInputProps, SpeedInputVehicleSpeed, SpeedInputVehicleSpeedMode, StackBanner, StackBannerProps, StackBannerRow, StackBannerRowProps, StatusTable, StatusCard, StatusCardProps, StatusCellBadge, StatusCellBadgeProps, StatusRow, StatusRowProps, Status, StatusTableProps, StatusTableHeader, useStatusTable, StatusTableHooks, StatusTableOptions, filterData, getCompareFormat, mapTableFilters, sortData, SortOptions, sortByField, StepFunctionGraph, StepFunctionGraphProps, Table, TableProps, TableSortByOptions, Tabs, TabProps, TextArea, TextAreaProps, Toggle, ToggleProps, TransferList, ListItem, TransferListProps, TypeaheadSearch, TypeaheadSearchResultProps, TypeaheadSearchProps, TypeaheadResultItem, LAKEFRONT_COLORS as colors, THEME as theme, SelectOption, TabDef };
2831
+ declare const THEME: Theme;
2832
+ declare const DARK_THEME: Theme;
2833
+ export { AnchorCopy, AnchorCopyProps, BoundingBoxes, BoundingBoxesProps, BoundingBoxItemProp, BreadcrumbHeader, BreadcrumbProps, RouteProp, Breadcrumb, BreadcrumbHeaderProps, Button, ButtonProps$0 as ButtonProps, Card, CardProps, Checkbox, CheckboxProps, CheckboxGroup, CheckboxGroupProps, CheckboxGroupOption, Collapsible, CollapsibleProps, CopyButton, CopyButtonProps, Drawer, DrawerProps, Filter, getApiQueryUrl, getApiPostBody, parseInitialFilterValues, getCurrentBrowserQueryParams, getFilterBrowserQueryParams, FILTER_MODE_OPTIONS, USER_JSON_QUERY_PARAM, getDefaultValue, getDefaultJsonViewValue, getFilterAppliedCount, getUrlFromList, areSetsEqual, convertToFilterDropdownOptions, useFilter, FilterRenderProps, FilterPostBody, FilterModule, FilterSet, FilterValues, FilterHooks, FilterMap, FilterSectionHeaderProps, FilterMode, Location, UrlParameters, UpdateHistory, ContextSwitchMenuValue, ContextSwitchMenuProps, FilterBarProps, FilterJSONConfirmationModalProps, FilterJSONInputProps, FilterComponentProps, FilterContainerProps, AdditionalJSONFilterOptions, DoubleMultiSelectData, DoubleMultiSelectOptions, DoubleMultiSelectValues, DoubleMultiSelectFilterProps, DoubleMultiSelectFilterOptions, ListFilterOverrides, MultiSelectFilterProps, MultiSelectFilterOptions, RadioFilterProps, RadioFilterOptions, SingleSelectFilterProps, SingleSelectFilterOptions, TextFilterOverrides, AdditionalJSONFilter, DoubleMultiSelectFilter, ListFilter, MultiSelectFilter, RadioFilter, SingleSelectFilter, TextFilter, DurationFilter, MinMaxFilter, MinMaxInput, Header, IconButton, Input, InputProps, ItemGrid, ItemGridProps, ItemResults, ItemResultsProps, Loading, LoadingProps, MaskableImage, MaskableImageProps, ImageTagProps, Modal, ConfirmationModal, ConfirmationModalProps, ModalProps, ModeSelector, ModeSelectorProps, ModeSelectorLegendRowProps, Page, PageProps, PlaybackBar, PlaybackBarProps, HighlightsProp, usePopover, UsePopoverProps, PortalStyles, PopoverContent, ProgressBar, ProgressBarProps, CircularProgress, CircularProgressProps, DeviceProgressBar, DeviceProgressProps, DeviceProgressBarThreshold, PropertyList, Property, PropertyListProps, PropertyListVariable, RadioGroup, RadioGroupProps, RefreshToolbar, RefreshToolbarProps, Select, SelectProps, SELECT_OVERLAY_STYLES, SelectOverlayStyles, SelectPopover, SelectPopoverProps, SelectPopoverOption, Snackbar, SnackbarProps, MESSAGE_TYPES as SNACKBAR_MESSAGE_TYPES, SpeedInput, SpeedInputProps, SpeedInputVehicleSpeed, SpeedInputVehicleSpeedMode, StackBanner, StackBannerProps, StackBannerRow, StackBannerRowProps, StatusTable, StatusCard, StatusCardProps, StatusCellBadge, StatusCellBadgeProps, StatusRow, StatusRowProps, Status, StatusTableProps, StatusTableHeader, useStatusTable, StatusTableHooks, StatusTableOptions, filterData, getCompareFormat, mapTableFilters, sortData, SortOptions, sortByField, StepFunctionGraph, StepFunctionGraphProps, Table, TableProps, TableSortByOptions, Tabs, TabProps, TextArea, TextAreaProps, Toggle, ToggleProps, TransferList, ListItem, TransferListProps, TypeaheadSearch, TypeaheadSearchResultProps, TypeaheadSearchProps, TypeaheadResultItem, LAKEFRONT_COLORS as colors, THEME as theme, DARK_THEME as darkTheme, SelectOption, TabDef, LakefrontTheme };