@worldresources/wri-design-systems 2.128.1 → 2.129.0
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 +4 -0
- package/dist/index.cjs.js +418 -392
- package/dist/index.d.ts +27 -36
- package/dist/index.esm.js +867 -841
- 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,
|
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 _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
4
4
|
import React$1 from 'react';
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
@@ -362,31 +362,6 @@ declare const LayerGroupContainer: ({ children, defaultValue, ...rest }: LayerGr
|
|
362
362
|
|
363
363
|
declare const LayerItem: ({ name, label, caption, showInfoButton, infoButtonLabel, variant, disabled, onInfoClick, isDefaultSelected, onChange, }: LayerItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
364
364
|
|
365
|
-
type TabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
|
366
|
-
label: string;
|
367
|
-
value: string;
|
368
|
-
icon?: React.ReactNode;
|
369
|
-
disabled?: boolean;
|
370
|
-
};
|
371
|
-
type TabBarProps = {
|
372
|
-
variant?: 'panel' | 'view';
|
373
|
-
defaultValue?: string;
|
374
|
-
tabs: TabBarItemProps[];
|
375
|
-
onTabClick?: (tabLabel: string) => void;
|
376
|
-
};
|
377
|
-
|
378
|
-
type LayerPanelProps = {
|
379
|
-
title: string;
|
380
|
-
description: string;
|
381
|
-
tabBarVariant?: 'panel' | 'view';
|
382
|
-
buttonTabs?: TabBarItemProps[];
|
383
|
-
defaultValue?: string;
|
384
|
-
onTabClick?: (tabLabel: string) => void;
|
385
|
-
children: React.ReactNode;
|
386
|
-
};
|
387
|
-
|
388
|
-
declare const LayerPanel: ({ title, description, tabBarVariant, buttonTabs, defaultValue, onTabClick, children, }: LayerPanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
389
|
-
|
390
365
|
type LayerParametersProps = {
|
391
366
|
label: string;
|
392
367
|
children: React.ReactNode;
|
@@ -409,14 +384,6 @@ type LegendItemProps = {
|
|
409
384
|
|
410
385
|
declare const LegendItem: ({ layerName, dataUnit, onDrag, onUpClick, onDownClick, onRemoveClick, children, onInfoClick, onOpacityChanged, }: LegendItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
411
386
|
|
412
|
-
type LegendPanelProps = {
|
413
|
-
legendContent: React$1.ReactElement[];
|
414
|
-
analysisContent: React$1.ReactNode;
|
415
|
-
onTabClick?: (tabValue: string) => void;
|
416
|
-
};
|
417
|
-
|
418
|
-
declare const LegendPanel: ({ legendContent, analysisContent, onTabClick, }: LegendPanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
419
|
-
|
420
387
|
type QualitativeAttributeProps = {
|
421
388
|
type: 'raster' | 'line' | 'point';
|
422
389
|
label: string;
|
@@ -491,6 +458,16 @@ declare const Table: ({ columns, data, renderRow, striped, stickyHeader, paginat
|
|
491
458
|
declare const TableRow: React$1.ForwardRefExoticComponent<Table$1.RowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
492
459
|
declare const TableCell: React$1.ForwardRefExoticComponent<Table$1.CellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
493
460
|
|
461
|
+
type PanelProps = {
|
462
|
+
header?: React.ReactNode;
|
463
|
+
content: React.ReactNode;
|
464
|
+
footer?: React.ReactNode;
|
465
|
+
width?: string;
|
466
|
+
variant?: 'fixed' | 'floating';
|
467
|
+
};
|
468
|
+
|
469
|
+
declare const Panel: ({ header, content, footer, variant, width, }: PanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
470
|
+
|
494
471
|
type BreadcrumbProps = {
|
495
472
|
links: {
|
496
473
|
label: string;
|
@@ -590,6 +567,19 @@ type StepBarProps = {
|
|
590
567
|
|
591
568
|
declare const StepBar: ({ steps, currentStep }: StepBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
592
569
|
|
570
|
+
type TabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
|
571
|
+
label: string;
|
572
|
+
value: string;
|
573
|
+
icon?: React.ReactNode;
|
574
|
+
disabled?: boolean;
|
575
|
+
};
|
576
|
+
type TabBarProps = {
|
577
|
+
variant?: 'panel' | 'view';
|
578
|
+
defaultValue?: string;
|
579
|
+
tabs: TabBarItemProps[];
|
580
|
+
onTabClick?: (tabLabel: string) => void;
|
581
|
+
};
|
582
|
+
|
593
583
|
declare const TabBar: ({ variant, defaultValue, tabs, onTabClick, }: TabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
594
584
|
|
595
585
|
declare const Menu: ({ label, items, groups, onSelect, customTrigger }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
@@ -614,9 +604,10 @@ declare const Modal: ({ title, content, size, draggable, blocking, open, onClose
|
|
614
604
|
type BadgeProps = {
|
615
605
|
hasNotification?: boolean;
|
616
606
|
notificationCount?: number;
|
607
|
+
label?: string;
|
617
608
|
};
|
618
609
|
|
619
|
-
declare const Badge: ({ hasNotification, notificationCount }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
610
|
+
declare const Badge: ({ hasNotification, notificationCount, label }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
620
611
|
|
621
612
|
type InlineMessageProps = {
|
622
613
|
label: string;
|
@@ -691,4 +682,4 @@ declare const SSOButtons: {
|
|
691
682
|
Microsoft: ({ ariaLabel, size, onClick, }: GenericSSOButtonsProps) => react_jsx_runtime.JSX.Element;
|
692
683
|
};
|
693
684
|
|
694
|
-
export { Badge, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem,
|
685
|
+
export { Badge, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerParameters, LegendItem, MapControl, MapControls, Menu, Modal, MultiActionButton, Navbar, NavigationRail, OptionCard, Pagination, Panel, Password, QualitativeAttribute, Radio, RadioGroup, RadioList, SSOButtons, ScaleBar, Select, Slider, SliderInput, StepBar, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, designSystemStyles, getThemedColor, showToast };
|