@woven-planet/lakefront 6.3.0 → 6.13.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 +29 -29
- package/dist/index.cjs.d.ts +44 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.d.ts +44 -3
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ComponentPropsWithoutRef, FC, RefAttributes, ReactNode, ElementType, ReactElement, ChangeEvent, Dispatch, MouseEventHandler, SetStateAction,
|
|
3
|
+
import { ComponentPropsWithoutRef, FC, RefAttributes, ReactNode, ElementType, ReactElement, ComponentPropsWithRef, ChangeEvent, Dispatch, MouseEventHandler, SetStateAction, MouseEvent } from "react";
|
|
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";
|
|
@@ -213,6 +213,40 @@ type ButtonComponentProps = ButtonProps & IconComponentProps & ComponentPropsWit
|
|
|
213
213
|
*/
|
|
214
214
|
declare const Button: FC<ButtonComponentProps>;
|
|
215
215
|
type ButtonProps$0 = ButtonComponentProps;
|
|
216
|
+
type ButtonConfig = (ButtonProps$0 & {
|
|
217
|
+
id: string;
|
|
218
|
+
label: ReactNode;
|
|
219
|
+
});
|
|
220
|
+
interface ButtonGroupProps {
|
|
221
|
+
/**
|
|
222
|
+
* Optional Button component slot.
|
|
223
|
+
*/
|
|
224
|
+
Button?: FC<ButtonProps$0>;
|
|
225
|
+
/**
|
|
226
|
+
* Whether to style buttons as a connected toggle group and maintain toggle state.
|
|
227
|
+
*/
|
|
228
|
+
mode: "toggle" | "group";
|
|
229
|
+
/**
|
|
230
|
+
* Which button (id) should be selected/active.
|
|
231
|
+
*/
|
|
232
|
+
selectedId?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Props for each button.
|
|
235
|
+
*/
|
|
236
|
+
buttonConfigs: ButtonConfig[];
|
|
237
|
+
/**
|
|
238
|
+
* The classes to pass to the component.
|
|
239
|
+
*/
|
|
240
|
+
className?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* ButtonGroup Component
|
|
244
|
+
*
|
|
245
|
+
* The ButtonGroup component is a convenience wrapper for grouping multiple lakefront Buttons
|
|
246
|
+
* to closely connect actions and/or create toggle/mode like behavior.
|
|
247
|
+
*
|
|
248
|
+
*/
|
|
249
|
+
declare const ButtonGroup: FC<ButtonGroupProps & ComponentPropsWithRef<"div">>;
|
|
216
250
|
interface CardProps {
|
|
217
251
|
/**
|
|
218
252
|
* This will set the cards h1 heading.
|
|
@@ -715,7 +749,14 @@ interface SelectProps {
|
|
|
715
749
|
* This is the default text before an option is selected.
|
|
716
750
|
*/
|
|
717
751
|
placeholder?: string;
|
|
718
|
-
|
|
752
|
+
/**
|
|
753
|
+
* The value of the select component (if you want to control externally).
|
|
754
|
+
*/
|
|
755
|
+
value?: any[] | string | number;
|
|
756
|
+
/**
|
|
757
|
+
* A value to initially set the multi-select component to.
|
|
758
|
+
*/
|
|
759
|
+
multiDefaultValue?: SelectOption$0[];
|
|
719
760
|
}
|
|
720
761
|
/**
|
|
721
762
|
* The select component is used to render a dropdown with options. The user can set a selected option by default.
|
|
@@ -2877,4 +2918,4 @@ interface TypeaheadSearchProps {
|
|
|
2877
2918
|
declare const TypeaheadSearch: FC<TypeaheadSearchProps & ComponentPropsWithoutRef<"input">>;
|
|
2878
2919
|
declare const THEME: Theme;
|
|
2879
2920
|
declare const DARK_THEME: Theme;
|
|
2880
|
-
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, ContextMenu, MenuItem, 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, MoreActionsButton, 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, Column as TableColumn, 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 };
|
|
2921
|
+
export { AnchorCopy, AnchorCopyProps, BoundingBoxes, BoundingBoxesProps, BoundingBoxItemProp, BreadcrumbHeader, BreadcrumbProps, RouteProp, Breadcrumb, BreadcrumbHeaderProps, Button, ButtonProps$0 as ButtonProps, ButtonGroup, ButtonGroupProps, Card, CardProps, Checkbox, CheckboxProps, CheckboxGroup, CheckboxGroupProps, CheckboxGroupOption, Collapsible, CollapsibleProps, ContextMenu, MenuItem, 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, MoreActionsButton, 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, Column as TableColumn, 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 };
|