@worldresources/wri-design-systems 2.126.3 → 2.128.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/dist/index.d.ts CHANGED
@@ -452,11 +452,11 @@ type PaginationProps = {
452
452
  currentPage: number;
453
453
  totalItems: number;
454
454
  pageSize: number;
455
- compact?: boolean;
455
+ variant?: 'default' | 'compact' | 'compact-with-buttons';
456
456
  onPageChange?: (page: number) => void;
457
457
  };
458
458
 
459
- declare const Pagination: ({ totalItems, pageSize, currentPage, compact, onPageChange, }: PaginationProps) => _emotion_react_jsx_runtime.JSX.Element;
459
+ declare const Pagination: ({ totalItems, pageSize, currentPage, variant, onPageChange, }: PaginationProps) => _emotion_react_jsx_runtime.JSX.Element;
460
460
 
461
461
  type TableProps = {
462
462
  columns: {
@@ -477,12 +477,12 @@ type TableProps = {
477
477
  showItemCount?: boolean;
478
478
  showItemCountText?: boolean;
479
479
  };
480
- onSortColumn: (sortColumn: {
480
+ onSortColumn?: (sortColumn: {
481
481
  key: string;
482
482
  order: string;
483
483
  }) => void;
484
- onPageSizeChange: (pageSize: number) => void;
485
- onPageChange: (page: number) => void;
484
+ onPageSizeChange?: (pageSize: number) => void;
485
+ onPageChange?: (page: number) => void;
486
486
  onAllItemsSelected?: (checked: boolean) => void;
487
487
  };
488
488
 
@@ -514,6 +514,54 @@ type FooterProps = {
514
514
 
515
515
  declare const Footer: ({ children, label, fixed, filled, maxWidth, }: FooterProps) => _emotion_react_jsx_runtime.JSX.Element;
516
516
 
517
+ type MenuItemProps = {
518
+ label?: string;
519
+ caption?: string;
520
+ startIcon?: React.ReactNode;
521
+ endIcon?: React.ReactNode;
522
+ command?: string;
523
+ children?: React.ReactNode;
524
+ value?: string;
525
+ disabled?: boolean;
526
+ submenu?: MenuItemProps[];
527
+ onClick?: () => void;
528
+ link?: string;
529
+ };
530
+ type MenuProps = {
531
+ label: string;
532
+ items?: MenuItemProps[];
533
+ groups?: {
534
+ title: string;
535
+ items: MenuItemProps[];
536
+ }[];
537
+ onSelect?: (value: string) => void;
538
+ customTrigger?: React.ReactNode;
539
+ };
540
+
541
+ type NavbarNavigationItemsProps = {
542
+ label: string;
543
+ link?: string;
544
+ onClick?: () => void;
545
+ leftIcon?: React.ReactNode;
546
+ rightIcon?: React.ReactNode;
547
+ items?: MenuItemProps[];
548
+ };
549
+ type NavbarProps = {
550
+ logo?: React.ReactNode;
551
+ linkRouter: any;
552
+ navigationSection?: NavbarNavigationItemsProps[];
553
+ utilitySection?: React.ReactNode[];
554
+ actionsSection?: {
555
+ label: string;
556
+ onClick?: () => void;
557
+ }[];
558
+ maxWidth?: number;
559
+ fixed?: boolean;
560
+ onNavbarHeightChange?: (height: number) => void;
561
+ };
562
+
563
+ declare const Navbar: ({ logo, linkRouter, navigationSection, utilitySection, actionsSection, maxWidth, fixed, onNavbarHeightChange, }: NavbarProps) => _emotion_react_jsx_runtime.JSX.Element;
564
+
517
565
  type NavigationRailTabProps = Omit<Tabs.TriggerProps, 'asChild'> & {
518
566
  label: string;
519
567
  value: string;
@@ -526,10 +574,11 @@ type NavigationRailProps = {
526
574
  onTabClick?: (selectedValue: string) => void;
527
575
  children?: React.ReactNode;
528
576
  onOpenChange?: (open: boolean) => void;
529
- customHeight?: string;
577
+ navbarHeight?: string;
578
+ footerHeight?: string;
530
579
  };
531
580
 
532
- declare const NavigationRail: ({ tabs, defaultValue, onTabClick, children, onOpenChange, customHeight, }: NavigationRailProps) => _emotion_react_jsx_runtime.JSX.Element;
581
+ declare const NavigationRail: ({ tabs, defaultValue, onTabClick, children, onOpenChange, navbarHeight, footerHeight, }: NavigationRailProps) => _emotion_react_jsx_runtime.JSX.Element;
533
582
 
534
583
  type StepBarProps = {
535
584
  steps: {
@@ -543,28 +592,7 @@ declare const StepBar: ({ steps, currentStep }: StepBarProps) => _emotion_react_
543
592
 
544
593
  declare const TabBar: ({ variant, defaultValue, tabs, onTabClick, }: TabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
545
594
 
546
- type MenuItemProps = {
547
- label?: string;
548
- caption?: string;
549
- startIcon?: React.ReactNode;
550
- endIcon?: React.ReactNode;
551
- command?: string;
552
- children?: React.ReactNode;
553
- value: string;
554
- disabled?: boolean;
555
- submenu?: MenuItemProps[];
556
- };
557
- type MenuProps = {
558
- label: string;
559
- items?: MenuItemProps[];
560
- groups?: {
561
- title: string;
562
- items: MenuItemProps[];
563
- }[];
564
- onSelect?: (value: string) => void;
565
- };
566
-
567
- declare const Menu: ({ label, items, groups, onSelect }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
595
+ declare const Menu: ({ label, items, groups, onSelect, customTrigger }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
568
596
 
569
597
  type ModalProps = {
570
598
  title: string;
@@ -663,4 +691,4 @@ declare const SSOButtons: {
663
691
  Microsoft: ({ ariaLabel, size, onClick, }: GenericSSOButtonsProps) => react_jsx_runtime.JSX.Element;
664
692
  };
665
693
 
666
- export { Badge, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerPanel, LayerParameters, LegendItem, LegendPanel, MapControl, MapControls, Menu, Modal, MultiActionButton, NavigationRail, OptionCard, Pagination, Password, QualitativeAttribute, Radio, RadioGroup, RadioList, SSOButtons, ScaleBar, Select, Slider, SliderInput, StepBar, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, designSystemStyles, getThemedColor, showToast };
694
+ export { Badge, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerPanel, LayerParameters, LegendItem, LegendPanel, MapControl, MapControls, Menu, Modal, MultiActionButton, Navbar, NavigationRail, OptionCard, Pagination, Password, QualitativeAttribute, Radio, RadioGroup, RadioList, SSOButtons, ScaleBar, Select, Slider, SliderInput, StepBar, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, designSystemStyles, getThemedColor, showToast };