@worldresources/wri-design-systems 2.128.2 → 2.130.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 +5 -0
- package/dist/index.cjs.js +465 -404
- package/dist/index.d.ts +39 -35
- package/dist/index.esm.js +469 -408
- 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,30 @@ 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
|
+
|
471
|
+
type SheetProps = {
|
472
|
+
header?: React.ReactNode;
|
473
|
+
content: React.ReactNode;
|
474
|
+
footer?: React.ReactNode;
|
475
|
+
open: boolean;
|
476
|
+
onClose?: () => void;
|
477
|
+
minimizedHeight?: number;
|
478
|
+
midHeight?: number;
|
479
|
+
maxFullHeight?: number;
|
480
|
+
defaultSnap?: 'closed' | 'minimized' | 'mid' | 'full';
|
481
|
+
};
|
482
|
+
|
483
|
+
declare const Sheet: ({ header, content, footer, open, onClose, minimizedHeight, midHeight, maxFullHeight, defaultSnap, }: SheetProps) => _emotion_react_jsx_runtime.JSX.Element;
|
484
|
+
|
494
485
|
type BreadcrumbProps = {
|
495
486
|
links: {
|
496
487
|
label: string;
|
@@ -590,6 +581,19 @@ type StepBarProps = {
|
|
590
581
|
|
591
582
|
declare const StepBar: ({ steps, currentStep }: StepBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
592
583
|
|
584
|
+
type TabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
|
585
|
+
label: string;
|
586
|
+
value: string;
|
587
|
+
icon?: React.ReactNode;
|
588
|
+
disabled?: boolean;
|
589
|
+
};
|
590
|
+
type TabBarProps = {
|
591
|
+
variant?: 'panel' | 'view';
|
592
|
+
defaultValue?: string;
|
593
|
+
tabs: TabBarItemProps[];
|
594
|
+
onTabClick?: (tabLabel: string) => void;
|
595
|
+
};
|
596
|
+
|
593
597
|
declare const TabBar: ({ variant, defaultValue, tabs, onTabClick, }: TabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
594
598
|
|
595
599
|
declare const Menu: ({ label, items, groups, onSelect, customTrigger }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
@@ -692,4 +696,4 @@ declare const SSOButtons: {
|
|
692
696
|
Microsoft: ({ ariaLabel, size, onClick, }: GenericSSOButtonsProps) => react_jsx_runtime.JSX.Element;
|
693
697
|
};
|
694
698
|
|
695
|
-
export { Badge, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem,
|
699
|
+
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, Sheet, Slider, SliderInput, StepBar, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, designSystemStyles, getThemedColor, showToast };
|