@deriv-web-design/ui 0.0.5 → 0.0.7

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.mts CHANGED
@@ -331,6 +331,8 @@ interface FooterDerivGoProps {
331
331
  appStoreBadge?: FooterAppBadge;
332
332
  /** Huawei AppGallery badge */
333
333
  huaweiBadge?: FooterAppBadge;
334
+ /** Label next to the QR code image. Defaults to "Scan to download". */
335
+ scanToDownloadLabel?: string;
334
336
  /** Footnote text (e.g. "*Availability varies by country.") */
335
337
  availabilityNote?: string;
336
338
  }
@@ -592,6 +594,82 @@ interface CTABannerProps extends HTMLAttributes<HTMLElement> {
592
594
  declare const AVATAR_DATA: AvatarItem[];
593
595
  declare const CTABanner: ({ headline, ctaLabel, ctaHref, avatars, variant, className, ...props }: CTABannerProps) => react_jsx_runtime.JSX.Element;
594
596
 
597
+ interface NavDropdownItem {
598
+ /** Link text */
599
+ label: string;
600
+ /** Link destination */
601
+ href: string;
602
+ /** Opens in a new tab with ↗ indicator */
603
+ external?: boolean;
604
+ }
605
+ interface NavDropdownSection {
606
+ /** Section heading rendered above the link list */
607
+ title: string;
608
+ items: NavDropdownItem[];
609
+ }
610
+ interface NavDropdownColumn {
611
+ /** One or more titled groups stacked within this column */
612
+ sections: NavDropdownSection[];
613
+ }
614
+ interface NavDropdownFeature {
615
+ /** Bold heading inside the dark feature card */
616
+ title: string;
617
+ /** Body copy below the heading */
618
+ description: string;
619
+ /** Label for the "Learn more" style CTA */
620
+ ctaLabel: string;
621
+ /** Destination for the CTA */
622
+ ctaHref: string;
623
+ /** Optional background image URL — overlaid with dark tint */
624
+ backgroundImageUrl?: string;
625
+ }
626
+ interface NavItem {
627
+ /** Text rendered in the nav pill / mobile list */
628
+ label: string;
629
+ /** Simple href — used when there is no dropdown */
630
+ href?: string;
631
+ /** Render as an external link with ↗ icon (no dropdown) */
632
+ external?: boolean;
633
+ /** When provided the item triggers a mega-dropdown on desktop
634
+ * and an accordion panel on mobile */
635
+ dropdown?: {
636
+ /** 1–4 link columns shown on the left side of the desktop dropdown */
637
+ columns: NavDropdownColumn[];
638
+ /** Optional dark feature card on the right side */
639
+ feature?: NavDropdownFeature;
640
+ };
641
+ }
642
+ interface NavbarProps extends HTMLAttributes<HTMLElement> {
643
+ /**
644
+ * `dark` — hero beneath has a dark / image background; pill uses white/24 tint, text is white.
645
+ * `light` — hero beneath has a white background; pill uses white/88 tint, text is slate.
646
+ */
647
+ theme?: "dark" | "light";
648
+ /** Logo image URL used when `theme="dark"` (light-coloured logo) */
649
+ logoSrc: string;
650
+ /** Logo image URL used when `theme="light"` (dark-coloured logo).
651
+ * Falls back to `logoSrc` when omitted. */
652
+ logoSrcDark?: string;
653
+ /** Wraps the logo in an anchor tag */
654
+ logoHref?: string;
655
+ /** Navigation items — each may be a plain link, external link, or dropdown trigger */
656
+ navItems?: NavItem[];
657
+ /** Label for the "Log in" outlined button */
658
+ loginLabel?: string;
659
+ /** Destination for the Log in button */
660
+ loginHref?: string;
661
+ /** Label for the primary "Open account" button */
662
+ ctaLabel?: string;
663
+ /** Destination for the CTA button */
664
+ ctaHref?: string;
665
+ /** Language label rendered next to the globe icon, e.g. "EN" */
666
+ languageLabel?: string;
667
+ /** Called when the language button is clicked */
668
+ onLanguageClick?: () => void;
669
+ }
670
+
671
+ declare const Navbar: ({ theme, logoSrc, logoSrcDark, logoHref, navItems, loginLabel, loginHref, ctaLabel, ctaHref, languageLabel, onLanguageClick, className, ...props }: NavbarProps) => react_jsx_runtime.JSX.Element;
672
+
595
673
  interface DayNightTransitionProps extends HTMLAttributes<HTMLDivElement> {
596
674
  /** URL for the daytime background image */
597
675
  dayImageUrl: string;
@@ -638,4 +716,4 @@ declare const TEXT_CONTENT: {
638
716
  };
639
717
  declare const PaymentMethods: ({ headline, body, disclaimer, ctaLabel, ctaHref, col1Logos, col2Logos, className, ...props }: PaymentMethodsProps) => react_jsx_runtime.JSX.Element;
640
718
 
641
- export { AVATAR_DATA, Accordion, type AccordionProps, type AvatarItem, type AvatarPosition, type AwardItem, BottomSheet, type BottomSheetAction, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, Button, type ButtonColorScheme, type ButtonIconPosition, type ButtonProps, type ButtonVariant, COL_ONE_LOGOS, COL_TWO_LOGOS, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, DayNightTransition, type DayNightTransitionProps, type FeatureCardItem, FeatureCards, type FeatureCardsProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, Link, type LinkColorScheme, type LinkProps, type LogoItem, Pagination, type PaginationProps, PaymentMethods, type PaymentMethodsProps, SCROLLYTELLING_DATA, STEPS_DATA, Scrollytelling, type ScrollytellingItem, type ScrollytellingProps, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsProps, type StickyCardItem, type StickyCardTheme, StickyStackedCards, type StickyStackedCardsProps, TEXT_CONTENT, Tag, type TagFontWeight, type TagProps, type TagSize, type TagVariant, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant };
719
+ export { AVATAR_DATA, Accordion, type AccordionProps, type AvatarItem, type AvatarPosition, type AwardItem, BottomSheet, type BottomSheetAction, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, Button, type ButtonColorScheme, type ButtonIconPosition, type ButtonProps, type ButtonVariant, COL_ONE_LOGOS, COL_TWO_LOGOS, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, DayNightTransition, type DayNightTransitionProps, type FeatureCardItem, FeatureCards, type FeatureCardsProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, Link, type LinkColorScheme, type LinkProps, type LogoItem, type NavDropdownColumn, type NavDropdownFeature, type NavDropdownItem, type NavItem, Navbar, type NavbarProps, Pagination, type PaginationProps, PaymentMethods, type PaymentMethodsProps, SCROLLYTELLING_DATA, STEPS_DATA, Scrollytelling, type ScrollytellingItem, type ScrollytellingProps, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsProps, type StickyCardItem, type StickyCardTheme, StickyStackedCards, type StickyStackedCardsProps, TEXT_CONTENT, Tag, type TagFontWeight, type TagProps, type TagSize, type TagVariant, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant };
package/dist/index.d.ts CHANGED
@@ -331,6 +331,8 @@ interface FooterDerivGoProps {
331
331
  appStoreBadge?: FooterAppBadge;
332
332
  /** Huawei AppGallery badge */
333
333
  huaweiBadge?: FooterAppBadge;
334
+ /** Label next to the QR code image. Defaults to "Scan to download". */
335
+ scanToDownloadLabel?: string;
334
336
  /** Footnote text (e.g. "*Availability varies by country.") */
335
337
  availabilityNote?: string;
336
338
  }
@@ -592,6 +594,82 @@ interface CTABannerProps extends HTMLAttributes<HTMLElement> {
592
594
  declare const AVATAR_DATA: AvatarItem[];
593
595
  declare const CTABanner: ({ headline, ctaLabel, ctaHref, avatars, variant, className, ...props }: CTABannerProps) => react_jsx_runtime.JSX.Element;
594
596
 
597
+ interface NavDropdownItem {
598
+ /** Link text */
599
+ label: string;
600
+ /** Link destination */
601
+ href: string;
602
+ /** Opens in a new tab with ↗ indicator */
603
+ external?: boolean;
604
+ }
605
+ interface NavDropdownSection {
606
+ /** Section heading rendered above the link list */
607
+ title: string;
608
+ items: NavDropdownItem[];
609
+ }
610
+ interface NavDropdownColumn {
611
+ /** One or more titled groups stacked within this column */
612
+ sections: NavDropdownSection[];
613
+ }
614
+ interface NavDropdownFeature {
615
+ /** Bold heading inside the dark feature card */
616
+ title: string;
617
+ /** Body copy below the heading */
618
+ description: string;
619
+ /** Label for the "Learn more" style CTA */
620
+ ctaLabel: string;
621
+ /** Destination for the CTA */
622
+ ctaHref: string;
623
+ /** Optional background image URL — overlaid with dark tint */
624
+ backgroundImageUrl?: string;
625
+ }
626
+ interface NavItem {
627
+ /** Text rendered in the nav pill / mobile list */
628
+ label: string;
629
+ /** Simple href — used when there is no dropdown */
630
+ href?: string;
631
+ /** Render as an external link with ↗ icon (no dropdown) */
632
+ external?: boolean;
633
+ /** When provided the item triggers a mega-dropdown on desktop
634
+ * and an accordion panel on mobile */
635
+ dropdown?: {
636
+ /** 1–4 link columns shown on the left side of the desktop dropdown */
637
+ columns: NavDropdownColumn[];
638
+ /** Optional dark feature card on the right side */
639
+ feature?: NavDropdownFeature;
640
+ };
641
+ }
642
+ interface NavbarProps extends HTMLAttributes<HTMLElement> {
643
+ /**
644
+ * `dark` — hero beneath has a dark / image background; pill uses white/24 tint, text is white.
645
+ * `light` — hero beneath has a white background; pill uses white/88 tint, text is slate.
646
+ */
647
+ theme?: "dark" | "light";
648
+ /** Logo image URL used when `theme="dark"` (light-coloured logo) */
649
+ logoSrc: string;
650
+ /** Logo image URL used when `theme="light"` (dark-coloured logo).
651
+ * Falls back to `logoSrc` when omitted. */
652
+ logoSrcDark?: string;
653
+ /** Wraps the logo in an anchor tag */
654
+ logoHref?: string;
655
+ /** Navigation items — each may be a plain link, external link, or dropdown trigger */
656
+ navItems?: NavItem[];
657
+ /** Label for the "Log in" outlined button */
658
+ loginLabel?: string;
659
+ /** Destination for the Log in button */
660
+ loginHref?: string;
661
+ /** Label for the primary "Open account" button */
662
+ ctaLabel?: string;
663
+ /** Destination for the CTA button */
664
+ ctaHref?: string;
665
+ /** Language label rendered next to the globe icon, e.g. "EN" */
666
+ languageLabel?: string;
667
+ /** Called when the language button is clicked */
668
+ onLanguageClick?: () => void;
669
+ }
670
+
671
+ declare const Navbar: ({ theme, logoSrc, logoSrcDark, logoHref, navItems, loginLabel, loginHref, ctaLabel, ctaHref, languageLabel, onLanguageClick, className, ...props }: NavbarProps) => react_jsx_runtime.JSX.Element;
672
+
595
673
  interface DayNightTransitionProps extends HTMLAttributes<HTMLDivElement> {
596
674
  /** URL for the daytime background image */
597
675
  dayImageUrl: string;
@@ -638,4 +716,4 @@ declare const TEXT_CONTENT: {
638
716
  };
639
717
  declare const PaymentMethods: ({ headline, body, disclaimer, ctaLabel, ctaHref, col1Logos, col2Logos, className, ...props }: PaymentMethodsProps) => react_jsx_runtime.JSX.Element;
640
718
 
641
- export { AVATAR_DATA, Accordion, type AccordionProps, type AvatarItem, type AvatarPosition, type AwardItem, BottomSheet, type BottomSheetAction, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, Button, type ButtonColorScheme, type ButtonIconPosition, type ButtonProps, type ButtonVariant, COL_ONE_LOGOS, COL_TWO_LOGOS, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, DayNightTransition, type DayNightTransitionProps, type FeatureCardItem, FeatureCards, type FeatureCardsProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, Link, type LinkColorScheme, type LinkProps, type LogoItem, Pagination, type PaginationProps, PaymentMethods, type PaymentMethodsProps, SCROLLYTELLING_DATA, STEPS_DATA, Scrollytelling, type ScrollytellingItem, type ScrollytellingProps, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsProps, type StickyCardItem, type StickyCardTheme, StickyStackedCards, type StickyStackedCardsProps, TEXT_CONTENT, Tag, type TagFontWeight, type TagProps, type TagSize, type TagVariant, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant };
719
+ export { AVATAR_DATA, Accordion, type AccordionProps, type AvatarItem, type AvatarPosition, type AwardItem, BottomSheet, type BottomSheetAction, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, Button, type ButtonColorScheme, type ButtonIconPosition, type ButtonProps, type ButtonVariant, COL_ONE_LOGOS, COL_TWO_LOGOS, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, DayNightTransition, type DayNightTransitionProps, type FeatureCardItem, FeatureCards, type FeatureCardsProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, Link, type LinkColorScheme, type LinkProps, type LogoItem, type NavDropdownColumn, type NavDropdownFeature, type NavDropdownItem, type NavItem, Navbar, type NavbarProps, Pagination, type PaginationProps, PaymentMethods, type PaymentMethodsProps, SCROLLYTELLING_DATA, STEPS_DATA, Scrollytelling, type ScrollytellingItem, type ScrollytellingProps, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsProps, type StickyCardItem, type StickyCardTheme, StickyStackedCards, type StickyStackedCardsProps, TEXT_CONTENT, Tag, type TagFontWeight, type TagProps, type TagSize, type TagVariant, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant };