@worldresources/wri-design-systems 2.176.0 → 2.177.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/dist/index.cjs.js +132 -128
- package/dist/index.d.ts +7 -14
- package/dist/index.esm.js +929 -925
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
2
|
-
import { ButtonProps as ButtonProps$1, Checkbox as Checkbox$1, RadioCardRootProps, RadioGroup as RadioGroup$1, Slider as Slider$1, Switch as Switch$1, SelectRootProps, SliderRootProps, TextareaProps as TextareaProps$1, InputProps, Tag as Tag$1, Accordion, Table as Table$1,
|
|
2
|
+
import { ButtonProps as ButtonProps$1, Checkbox as Checkbox$1, RadioCardRootProps, RadioGroup as RadioGroup$1, Slider as Slider$1, Switch as Switch$1, SelectRootProps, SliderRootProps, TextareaProps as TextareaProps$1, InputProps, Tag as Tag$1, Accordion, Table as Table$1, Tabs } from '@chakra-ui/react';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactElement, Ref } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -97,6 +97,7 @@ type MenuItemProps = {
|
|
|
97
97
|
link?: string;
|
|
98
98
|
};
|
|
99
99
|
type MenuProps = {
|
|
100
|
+
theme?: 'light' | 'dark';
|
|
100
101
|
label: string;
|
|
101
102
|
items?: MenuItemProps[];
|
|
102
103
|
groups?: {
|
|
@@ -107,7 +108,7 @@ type MenuProps = {
|
|
|
107
108
|
customTrigger?: React.ReactNode;
|
|
108
109
|
};
|
|
109
110
|
|
|
110
|
-
declare const Menu: ({ label, items, groups, onSelect, customTrigger }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare const Menu: ({ theme, label, items, groups, onSelect, customTrigger, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
111
112
|
|
|
112
113
|
type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
|
113
114
|
variant?: 'primary' | 'secondary';
|
|
@@ -657,16 +658,6 @@ interface AnalysisWidgetActionsProps {
|
|
|
657
658
|
|
|
658
659
|
declare const AnalysisWidget: ({ children, header, footer, expanded, collapsible, actions, showFooterOnCollapsed, }: AnalysisWidgetProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
659
660
|
|
|
660
|
-
interface ChartContainerProps extends BoxProps {
|
|
661
|
-
isLoading?: boolean;
|
|
662
|
-
isError?: boolean;
|
|
663
|
-
isEmpty?: boolean;
|
|
664
|
-
errorMessage?: string;
|
|
665
|
-
children: React.ReactNode;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
declare const ChartContainer: (props: ChartContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
669
|
-
|
|
670
661
|
type ModalProps = {
|
|
671
662
|
header: React.ReactNode;
|
|
672
663
|
content: React.ReactNode;
|
|
@@ -769,6 +760,8 @@ type NavbarNavigationItemsProps = {
|
|
|
769
760
|
items?: MenuItemProps[];
|
|
770
761
|
};
|
|
771
762
|
type NavbarProps = {
|
|
763
|
+
variant?: 'default' | 'condensed';
|
|
764
|
+
theme?: 'light' | 'dark';
|
|
772
765
|
logo?: React.ReactNode;
|
|
773
766
|
linkRouter: any;
|
|
774
767
|
pathname: string;
|
|
@@ -787,7 +780,7 @@ type NavbarProps = {
|
|
|
787
780
|
backgroundColor?: string;
|
|
788
781
|
};
|
|
789
782
|
|
|
790
|
-
declare const Navbar: ({ logo, linkRouter, pathname, navigationSection, utilitySection, actionsSection, maxWidth, fixed, onNavbarHeightChange, backgroundColor, }: NavbarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
783
|
+
declare const Navbar: ({ variant, theme, logo, linkRouter, pathname, navigationSection, utilitySection, actionsSection, maxWidth, fixed, onNavbarHeightChange, backgroundColor, }: NavbarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
791
784
|
|
|
792
785
|
type NavigationRailTabProps = Omit<Tabs.TriggerProps, 'asChild'> & {
|
|
793
786
|
label: string;
|
|
@@ -926,4 +919,4 @@ type ToastProps = {
|
|
|
926
919
|
|
|
927
920
|
declare const showToast: (props: ToastProps) => void;
|
|
928
921
|
|
|
929
|
-
export { AnalysisWidget, Avatar, Badge, BaseMap, Breadcrumb, Button,
|
|
922
|
+
export { AnalysisWidget, Avatar, Badge, BaseMap, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, ClusterPoint, ExtendableCard, Footer, IconButton, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerParameters, LegendItem, List, MapControlsToolbar, MapMarker, MapMarkers, MapPopUp, Menu, MobileTabBar, Modal, MultiActionButton, Navbar, NavigationRail, OptionCard, Pagination, Panel, Password, ProgressBar, QualitativeAttribute, Radio, RadioGroup, RadioList, SSOButtons, ScaleBar, Search, Select, Sheet, SimpleMapPin, Slider, SliderInput, StepProgressIndicator, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, Toolbar, Tooltip, designSystemStyles, designSystemStylesForTailwind, getThemedColor, showToast };
|