@worldresources/wri-design-systems 2.127.1 → 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
@@ -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 };