@ledgerhq/react-ui 0.47.0 → 0.48.0-nightly.20260306030049

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.
Files changed (113) hide show
  1. package/lib/cjs/components/index.js +11 -34
  2. package/lib/cjs/components/index.js.map +1 -1
  3. package/lib/cjs/components/layout/Drawer/Drawer.stories.js +1 -1
  4. package/lib/cjs/components/layout/Drawer/Drawer.stories.js.map +1 -1
  5. package/lib/cjs/components/layout/Drawer/index.js +1 -1
  6. package/lib/cjs/components/layout/Drawer/index.js.map +1 -1
  7. package/lib/cjs/components/layout/Side/Side.stories.js +1 -1
  8. package/lib/cjs/components/layout/Side/Side.stories.js.map +1 -1
  9. package/lib/cjs/components/layout/Side/index.js +1 -1
  10. package/lib/cjs/components/layout/Side/index.js.map +1 -1
  11. package/lib/cjs/components/layout/index.js +1 -1
  12. package/lib/cjs/components/layout/index.js.map +1 -1
  13. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js +10 -33
  14. package/lib/cjs/components/message/Tooltip/Tooltip.stories.js.map +1 -1
  15. package/lib/cjs/components/message/Tooltip/index.js +8 -31
  16. package/lib/cjs/components/message/Tooltip/index.js.map +1 -1
  17. package/lib/cjs/components/message/index.js +10 -33
  18. package/lib/cjs/components/message/index.js.map +1 -1
  19. package/lib/cjs/index.js +11 -34
  20. package/lib/cjs/index.js.map +1 -1
  21. package/lib/components/Table/index.d.ts +6 -6
  22. package/lib/components/Table/index.d.ts.map +1 -1
  23. package/lib/components/asorted/Icon/BoxedIcon.d.ts.map +1 -1
  24. package/lib/components/asorted/Icon/Icon.d.ts.map +1 -1
  25. package/lib/components/cta/Button/index.d.ts +2 -1
  26. package/lib/components/cta/Button/index.d.ts.map +1 -1
  27. package/lib/components/cta/Link/index.d.ts.map +1 -1
  28. package/lib/components/cta/Toggle/index.d.ts.map +1 -1
  29. package/lib/components/form/BaseInput/index.d.ts +7 -7
  30. package/lib/components/form/BaseInput/index.d.ts.map +1 -1
  31. package/lib/components/form/Checkbox/Checkbox.d.ts.map +1 -1
  32. package/lib/components/form/LegendInput/index.d.ts +4 -4
  33. package/lib/components/form/LegendInput/index.d.ts.map +1 -1
  34. package/lib/components/form/NumberInput/index.d.ts +4 -4
  35. package/lib/components/form/NumberInput/index.d.ts.map +1 -1
  36. package/lib/components/form/QrCodeInput/index.d.ts +5 -5
  37. package/lib/components/form/QrCodeInput/index.d.ts.map +1 -1
  38. package/lib/components/form/QuantityInput/index.d.ts +6 -6
  39. package/lib/components/form/QuantityInput/index.d.ts.map +1 -1
  40. package/lib/components/form/Radio/RadioElement.d.ts.map +1 -1
  41. package/lib/components/form/Radio/RadioListElement.d.ts.map +1 -1
  42. package/lib/components/form/Radio/index.d.ts.map +1 -1
  43. package/lib/components/form/SearchInput/index.d.ts +4 -4
  44. package/lib/components/form/SelectInput/index.d.ts.map +1 -1
  45. package/lib/components/form/Switch/Switch.d.ts.map +1 -1
  46. package/lib/components/layout/Carousel/Footer/Pagination/bullets.d.ts.map +1 -1
  47. package/lib/components/layout/Carousel/Footer/Pagination/index.d.ts.map +1 -1
  48. package/lib/components/layout/Carousel/Footer/Pagination/utils.d.ts.map +1 -1
  49. package/lib/components/layout/Carousel/Footer/index.d.ts.map +1 -1
  50. package/lib/components/layout/Carousel/Footer/variantContentCard.d.ts.map +1 -1
  51. package/lib/components/layout/Carousel/Footer/variantDefault.d.ts.map +1 -1
  52. package/lib/components/layout/Carousel/index.d.ts.map +1 -1
  53. package/lib/components/layout/Drawer/index.d.ts.map +1 -1
  54. package/lib/components/layout/Drawer/index.js +1 -1
  55. package/lib/components/layout/Drawer/index.js.map +1 -1
  56. package/lib/components/layout/Flex/index.d.ts +4 -5
  57. package/lib/components/layout/Flex/index.d.ts.map +1 -1
  58. package/lib/components/layout/Popin/index.d.ts +6 -6
  59. package/lib/components/layout/Popin/index.d.ts.map +1 -1
  60. package/lib/components/layout/Side/Provider.d.ts.map +1 -1
  61. package/lib/components/layout/Side/index.d.ts.map +1 -1
  62. package/lib/components/message/Log/Brackets.d.ts.map +1 -1
  63. package/lib/components/message/Notification/index.d.ts.map +1 -1
  64. package/lib/components/message/Tooltip/index.d.ts.map +1 -1
  65. package/lib/components/message/Tooltip/index.js +5 -25
  66. package/lib/components/message/Tooltip/index.js.map +1 -1
  67. package/lib/components/navigation/Aside/index.d.ts +3 -3
  68. package/lib/components/navigation/FlowStepper/index.d.ts.map +1 -1
  69. package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts.map +1 -1
  70. package/lib/components/navigation/progress/Stepper/index.d.ts.map +1 -1
  71. package/lib/components/navigation/sideBar/Item/Item.d.ts.map +1 -1
  72. package/lib/components/navigation/sideBar/Logo/Logo.d.ts.map +1 -1
  73. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts.map +1 -1
  74. package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts.map +1 -1
  75. package/lib/components/navigation/sideBar/index.d.ts +0 -1
  76. package/lib/components/navigation/sideBar/index.d.ts.map +1 -1
  77. package/lib/components/styled.d.ts.map +1 -1
  78. package/lib/components/transitions/TransitionInOut.d.ts.map +1 -1
  79. package/lib/components/transitions/TransitionScale.d.ts.map +1 -1
  80. package/lib/components/transitions/TransitionSlide.d.ts.map +1 -1
  81. package/lib/helpers.d.ts +1 -1
  82. package/lib/helpers.d.ts.map +1 -1
  83. package/lib/pre-ldls/components/AccountItem/AccountItem.d.ts.map +1 -1
  84. package/lib/pre-ldls/components/AccountList/AccountList.d.ts.map +1 -1
  85. package/lib/pre-ldls/components/Address/Address.d.ts +4 -4
  86. package/lib/pre-ldls/components/Address/Address.d.ts.map +1 -1
  87. package/lib/pre-ldls/components/Address/formatAddress.d.ts.map +1 -1
  88. package/lib/pre-ldls/components/ApyIndicator/ApyIndicator.d.ts.map +1 -1
  89. package/lib/pre-ldls/components/AssetItem/AssetItem.d.ts.map +1 -1
  90. package/lib/pre-ldls/components/AssetList/AssetList.d.ts +4 -4
  91. package/lib/pre-ldls/components/AssetList/AssetList.d.ts.map +1 -1
  92. package/lib/pre-ldls/components/CardButton/CardButton.d.ts +2 -2
  93. package/lib/pre-ldls/components/CardButton/CardButton.d.ts.map +1 -1
  94. package/lib/pre-ldls/components/Checkbox/Checkbox.d.ts.map +1 -1
  95. package/lib/pre-ldls/components/Input/Input.d.ts.map +1 -1
  96. package/lib/pre-ldls/components/MarketPercentIndicator/MarketPercentIndicator.d.ts.map +1 -1
  97. package/lib/pre-ldls/components/MarketPriceIndicator/MarketPriceIndicator.d.ts.map +1 -1
  98. package/lib/pre-ldls/components/NetworkItem/NetworkItem.d.ts.map +1 -1
  99. package/lib/pre-ldls/components/NetworkList/NetworkList.d.ts.map +1 -1
  100. package/lib/pre-ldls/components/Tag/Tag.d.ts +2 -2
  101. package/lib/pre-ldls/components/Tag/Tag.d.ts.map +1 -1
  102. package/lib/pre-ldls/components/TextInput/TextInput.d.ts +4 -4
  103. package/lib/pre-ldls/components/TextInput/TextInput.d.ts.map +1 -1
  104. package/lib/pre-ldls/components/VirtualList/VirtualList.d.ts.map +1 -1
  105. package/lib/pre-ldls/components/sharedStoryBook.d.ts.map +1 -1
  106. package/lib/pre-ldls/libs/index.d.ts.map +1 -1
  107. package/lib/styles/InvertTheme.d.ts.map +1 -1
  108. package/lib/styles/StyleProvider.d.ts.map +1 -1
  109. package/lib/styles/helpers.d.ts.map +1 -1
  110. package/lib/styles/styled/fontFamily.d.ts +0 -1
  111. package/lib/styles/styled/fontFamily.d.ts.map +1 -1
  112. package/lib/styles/theme.d.ts.map +1 -1
  113. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components/message/index.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Divider/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/cta/Link/getLinkStyle.ts","webpack://@ledgerhq/react-ui/./src/components/cta/Link/index.tsx","webpack://@ledgerhq/react-ui/./src/components/cta/getCtaStyle.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/message/Alert/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/ContinueOnDevice/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Log/Brackets.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Log/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Notification/Badge.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Notification/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/StatusNotification/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Tip/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Tooltip/index.tsx","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/message/index.ts"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport Flex, { FlexBoxProps } from \"../../layout/Flex\";\nimport Text from \"../../asorted/Text\";\n\nexport type Props = FlexBoxProps & { text?: string };\nconst DividerBase = styled(Flex).attrs<FlexBoxProps>((p: FlexBoxProps) => ({\n my: p.my || 0,\n height: 1,\n backgroundColor: p.color || \"neutral.c40\",\n}))`\n &[data-variant=\"light\"] {\n background: ${p => p.theme.colors.neutral.c30};\n }\n`;\n\nconst Divider: React.FC<Props> = props => {\n if (!props.text) return <DividerBase {...props} />;\n return (\n <Flex {...props} flexDirection=\"row\" alignItems=\"center\">\n <DividerBase my={6} flex={1} />\n <Text variant=\"bodyLineHeight\" color=\"neutral.c60\" mx={6}>\n {props.text}\n </Text>\n <DividerBase my={6} flex={1} />\n </Flex>\n );\n};\n\nexport default Divider;\n","import React from \"react\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n children?: React.ReactNode;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import { Theme } from \"../../../styles/theme\";\n\nexport function getLinkColors(\n colors: Theme[\"colors\"],\n): Record<\"disabled\" | \"main\" | \"color\" | \"shade\", Record<\"default\" | \"pressed\", string>> {\n return {\n disabled: {\n default: colors.neutral.c50,\n pressed: colors.neutral.c50,\n },\n main: {\n default: colors.neutral.c100,\n pressed: colors.neutral.c80,\n },\n color: {\n default: colors.primary.c80,\n pressed: colors.primary.c70,\n },\n shade: {\n default: colors.neutral.c70,\n pressed: colors.neutral.c80,\n },\n };\n}\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { getLinkColors } from \"./getLinkStyle\";\nimport { ctaIconSize, ctaTextType } from \"../getCtaStyle\";\nimport { Text } from \"../../asorted\";\nimport { TextProps } from \"../../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> &\n BaseStyledProps & {\n /**\n * Component that takes `{size: number; color?: string}` as props\n */\n Icon?: React.ComponentType<{ size: number; color?: string }>;\n /**\n * Affects the colors of the text, icon & underline, can be overriden by the `color` prop\n */\n type?: \"main\" | \"shade\" | \"color\";\n /**\n * Affect the font variant & icon size\n */\n size?: \"small\" | \"medium\" | \"large\";\n /**\n * Color of the link, overrides colors defined by the `type` prop\n */\n color?: string;\n /**\n * Props passed to the rendered text\n */\n textProps?: TextProps;\n /**\n * If true text will always be underlined, else it will be underlined only on hover\n */\n alwaysUnderline?: boolean;\n /**\n * Position of the icon relative to the text\n */\n iconPosition?: \"right\" | \"left\";\n disabled?: boolean;\n children?: React.ReactNode;\n };\n\nexport const DEFAULT_ICON_POSITION = \"right\";\nexport const DEFAULT_SIZE = \"medium\";\nexport const DEFAULT_TYPE = \"main\";\n\nconst IconContainer = styled.div<{\n iconPosition: \"right\" | \"left\";\n iconLink?: boolean;\n}>`\n ${p => (p.iconLink ? \"\" : p.iconPosition === \"left\" ? `margin-right: 6px;` : `margin-left: 6px;`)}\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const Base = baseStyled.a<LinkProps>`\n color: ${({ color, theme, disabled, type = \"main\" }) =>\n color || getLinkColors(theme.colors)[disabled ? \"disabled\" : type][\"default\"]};\n cursor: pointer;\n display: inline-flex;\n flex-direction: row;\n text-align: center;\n align-items: center;\n justify-content: center;\n\n &:hover {\n text-decoration: underline;\n }\n &:active {\n color: ${({ color, theme, type = \"main\" }) =>\n color || getLinkColors(theme.colors)[type][\"pressed\"]};\n text-decoration: underline;\n }\n\n text-decoration: ${p => (p.alwaysUnderline ? \"underline\" : \"none\")};\n\n`;\n\nconst LinkContainer = ({\n Icon,\n iconPosition = DEFAULT_ICON_POSITION,\n children,\n color,\n size = DEFAULT_SIZE,\n textProps,\n}: LinkProps): React.ReactElement => {\n const text = (\n <Text\n variant={ctaTextType[size]}\n fontWeight=\"semiBold\"\n color={color || \"inherit\"}\n {...textProps}\n >\n {children}\n </Text>\n );\n\n return (\n <>\n {iconPosition === \"right\" && children ? text : null}\n {Icon ? (\n <IconContainer iconLink={!children} iconPosition={iconPosition}>\n <Icon size={ctaIconSize[size]} color={color || \"currentcolor\"} />\n </IconContainer>\n ) : null}\n {iconPosition === \"left\" && children ? text : null}\n </>\n );\n};\n\nconst Link = (props: LinkProps): React.ReactElement => {\n const { type = DEFAULT_TYPE, size = DEFAULT_SIZE, color } = props;\n return (\n <Base color={color} {...props}>\n <LinkContainer {...props} type={type} size={size} />\n </Base>\n );\n};\n\nexport default Link;\n","import { TextVariants } from \"../../styles/theme\";\n\nexport const ctaTextType: { [index: string]: TextVariants } = {\n small: \"small\",\n medium: \"paragraph\",\n large: \"body\",\n};\n\nexport const ctaIconSize: { [index: string]: number } = {\n small: 16,\n medium: 18,\n large: 20,\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React from \"react\";\nimport styled, { useTheme, DefaultTheme } from \"styled-components\";\nimport Text from \"../../asorted/Text\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport Flex from \"../../layout/Flex\";\nimport WarningFill from \"@ledgerhq/icons-ui/react/WarningFill\";\nimport InformationFill from \"@ledgerhq/icons-ui/react/InformationFill\";\nimport CheckmarkCircleFill from \"@ledgerhq/icons-ui/react/CheckmarkCircleFill\";\nimport DeleteCircleFill from \"@ledgerhq/icons-ui/react/DeleteCircleFill\";\n\ntype AlertType = \"info\" | \"secondary\" | \"success\" | \"warning\" | \"error\";\n\ntype RenderProps = (props: {\n textProps: { variant?: TextVariants; fontWeight?: string };\n}) => React.JSX.Element;\n\nexport interface AlertProps {\n /**\n * Affects the colors of the background & text and what icon can be displayed.\n */\n type?: AlertType;\n /**\n * Title of the Alert.\n */\n title?: string;\n /**\n * Method for rendering additional content under the title. `{ color: string; textProps: { variant?: TextVariants; fontWeight?: string } }` is passed as props to easily style text elements.\n */\n renderContent?: RenderProps;\n\n /**\n * Method for rendering additional content to the right. `{ color: string; textProps: { variant?: TextVariants; fontWeight?: string } }` is passed as props to easily style text elements.\n */\n renderRight?: RenderProps;\n\n /**\n * Additional props to be passed to the top level container (containing icon + content).\n */\n containerProps?: Record<string, unknown>;\n\n /**\n * Whether or not to display an icon\n */\n showIcon?: boolean;\n}\n\nconst StyledIconContainer = styled.div`\n margin-right: 8px;\n display: flex;\n align-items: center;\n`;\n\nconst icons = {\n info: <InformationFill size=\"M\" />,\n secondary: <InformationFill size=\"M\" />,\n success: <CheckmarkCircleFill size=\"M\" />,\n warning: <WarningFill size=\"M\" />,\n error: <DeleteCircleFill size=\"M\" />,\n};\n\nconst getColors = ({ theme, type }: { theme: DefaultTheme; type?: AlertType }) => {\n switch (type) {\n case \"secondary\":\n return {\n background: theme.colors.opacityDefault.c05,\n iconColor: theme.colors.neutral.c80,\n };\n case \"success\":\n return {\n background: theme.colors.success.c10,\n iconColor: theme.colors.success.c50,\n };\n case \"warning\":\n return {\n background: theme.colors.warning.c10,\n iconColor: theme.colors.warning.c70,\n };\n case \"error\":\n return {\n background: theme.colors.error.c10,\n iconColor: theme.colors.error.c50,\n };\n case \"info\":\n default:\n return {\n background: theme.colors.primary.c10,\n iconColor: theme.colors.primary.c80,\n };\n }\n};\n\nconst StyledAlertContainer = styled(Flex)<{ background?: string; color?: string }>`\n border-radius: ${p => `${p.theme.radii[2]}px`};\n align-items: start;\n`;\n\nconst AlertBodyText = styled(Text).attrs({\n flexShrink: 1,\n variant: \"bodyLineHeight\",\n fontWeight: \"semiBold\",\n})``;\n\nconst AlertUnderlinedText = styled(AlertBodyText)`\n text-decoration-line: underline;\n`;\n\nfunction Alert({\n type = \"info\",\n title,\n showIcon = true,\n renderContent,\n renderRight,\n containerProps,\n}: Readonly<AlertProps>): React.JSX.Element {\n const theme = useTheme();\n const { iconColor, background } = getColors({ theme, type });\n const textProps: { variant?: TextVariants; fontWeight?: string } = {\n variant: \"bodyLineHeight\",\n fontWeight: \"semiBold\",\n };\n const textColor = \"neutral.c100\";\n return (\n <StyledAlertContainer\n color={textColor}\n backgroundColor={background}\n padding={6}\n {...containerProps}\n >\n {showIcon && !!icons[type] && (\n <Flex color={iconColor}>\n <StyledIconContainer>{icons[type]}</StyledIconContainer>\n </Flex>\n )}\n <Flex flexDirection=\"column\" flex={1} alignItems=\"flex-start\" rowGap=\"6px\">\n {title && (\n <Text {...textProps} color={textColor}>\n {title}\n </Text>\n )}\n {renderContent && renderContent({ textProps })}\n </Flex>\n <Flex alignSelf=\"center\">{renderRight && renderRight({ textProps })}</Flex>\n </StyledAlertContainer>\n );\n}\n\nAlert.BodyText = AlertBodyText;\nAlert.UnderlinedText = AlertUnderlinedText;\n\nexport default Alert;\n","import React from \"react\";\n\nimport { Divider, Text } from \"../../asorted\";\nimport Flex from \"../../layout/Flex\";\n\ntype Props = {\n Icon: React.ComponentType<{ size: number; color?: string }>;\n text: string;\n withTopDivider?: boolean;\n};\n\nconst ContinueOnDevice: React.FC<Props> = ({ Icon, text, withTopDivider = true }) => {\n return (\n <Flex flexDirection=\"column\">\n {withTopDivider ? <Divider my={6} /> : null}\n <Flex flexDirection=\"row\" alignItems=\"center\" flexShrink={1}>\n <Icon size={48} />\n <Text\n flex={1}\n pl={4}\n flexWrap=\"wrap\"\n variant=\"body\"\n fontWeight=\"medium\"\n color=\"neutral.c100\"\n >\n {text}\n </Text>\n </Flex>\n </Flex>\n );\n};\n\nexport default ContinueOnDevice;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport FlexBox from \"../../layout/Flex\";\n\nconst SvgTop = styled.svg`\n position: absolute;\n top: 0;\n left: 0;\n`;\n\nconst SvgBottom = styled.svg`\n position: absolute;\n bottom: 0;\n left: 0;\n`;\n\nexport const BracketLeft = (): React.ReactElement => (\n <FlexBox\n flex=\"0 0 1.2em\"\n flexDirection=\"column\"\n position=\"relative\"\n justifyContent=\"space-between\"\n alignItems=\"flex-start\"\n >\n <SvgTop viewBox=\"0 0 64 64\" fill=\"currentColor\">\n <g>\n <path d=\"M 0,0 V 36.3452 H 8.05844 V 8.05844 H 55.3076 V 0 Z\" />\n </g>\n </SvgTop>\n <SvgBottom viewBox=\"0 0 64 128\" fill=\"currentColor\">\n <g>\n <path d=\"M 0,91.6548 V 128 h 55.3076 v -8.06 H 8.05844 V 91.6548 Z\" />\n </g>\n </SvgBottom>\n </FlexBox>\n);\n\nexport const BracketRight = (): React.ReactElement => (\n <FlexBox\n flex=\"0 0 1.2em\"\n flexDirection=\"column\"\n position=\"relative\"\n justifyContent=\"space-between\"\n alignItems=\"flex-end\"\n >\n <SvgTop viewBox=\"0 0 64 64\" fill=\"currentColor\">\n <g>\n <path d=\"M 8.692,0 V 8.05844 H 55.941 V 36.3452 H 64 V 0 Z\" />\n </g>\n </SvgTop>\n <SvgBottom viewBox=\"0 0 64 128\" fill=\"currentColor\">\n <g>\n <path d=\"m 8.692,119.94 v 8.058 H 64 V 91.6548 H 55.941 V 119.94 Z\" />\n </g>\n </SvgBottom>\n </FlexBox>\n);\n","import React, { memo } from \"react\";\nimport styled from \"styled-components\";\n\nimport Text, { TextProps } from \"../../asorted/Text\";\nimport FlexBox, { FlexBoxProps } from \"../../layout/Flex\";\nimport { BracketRight, BracketLeft } from \"./Brackets\";\n\nexport type Props = React.PropsWithChildren<\n FlexBoxProps & {\n extraTextProps?: TextProps;\n }\n>;\n\nconst Container = styled(FlexBox)`\n justify-content: center;\n flex-wrap: wrap;\n align-items: stretch;\n min-height: ${p => p.theme.space[12]}px;\n`;\n\nconst TextContainer = styled(FlexBox).attrs(() => ({\n flex: \"1\",\n justifyContent: \"center\",\n alignItems: \"center\",\n}))`\n ${Text} {\n flex: 1;\n }\n`;\n\nfunction Log({ children, extraTextProps, ...props }: Props): React.JSX.Element {\n return (\n <Container color=\"neutral.c100\" {...props}>\n <BracketLeft />\n <TextContainer flex=\"1\" alignItems=\"center\" justifyContent=\"center\">\n <Text\n variant=\"h3\"\n textTransform=\"uppercase\"\n textAlign=\"center\"\n color=\"inherit\"\n {...extraTextProps}\n >\n {children}\n </Text>\n </TextContainer>\n <BracketRight />\n </Container>\n );\n}\n\nexport default memo(Log);\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { color, position, shadow, border, background, layout } from \"styled-system\";\n\nconst ActiveCircle = styled.div`\n position: absolute;\n top: 0;\n right: 0;\n height: 10px;\n width: 10px;\n border-radius: 9999px;\n box-sizing: content-box;\n background-color: ${p => p.theme.colors.error.c50};\n\n border: 2px solid\n var(\n --notification-badge-border,\n ${p => {\n /* The CSS variable is dynamically set by the Notification component */\n return p.theme.colors.background.main;\n }}\n );\n`;\n\nconst Wrapper = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 9999px;\n ${color}\n ${position}\n ${shadow}\n ${border}\n ${background}\n ${layout}\n`;\n\nexport type Props = {\n /* If true a notification bubble will be displayed in the top right corner of the badge. */\n active?: boolean;\n /* JSX filling up the space inside the badge, usually an <Icon />. */\n icon: React.JSX.Element;\n} & React.ComponentProps<typeof Wrapper>;\nexport default function Badge({ active, icon, ...props }: Props): React.JSX.Element {\n return (\n <Wrapper {...props}>\n {icon}\n {active && <ActiveCircle />}\n </Wrapper>\n );\n}\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport FlexBox, { FlexBoxProps } from \"../../layout/Flex\";\nimport Text from \"../../asorted/Text\";\nimport Badge from \"./Badge\";\nimport Link, { LinkProps } from \"../../cta/Link\";\nimport { ExternalLinkMedium } from \"@ledgerhq/icons-ui/reactLegacy\";\n\ninterface ContainerProps extends FlexBoxProps {\n /* Add the pre-selected background. */\n hasBackground?: boolean;\n}\n\nexport interface Props extends ContainerProps {\n /* The title to be displayed. */\n title: string;\n /* JSX that should be rendered by a call to the <Notification.Badge /> component.*/\n badge: React.ReactNode;\n /* An optional description. */\n description?: string;\n /* An optional link. */\n link?: string;\n /* A callback to perform when clicking on the link. */\n onLinkClick?: LinkProps[\"onClick\"];\n}\n\nconst Container = styled(FlexBox).attrs<ContainerProps>({\n p: 6,\n columnGap: 8,\n alignItems: \"center\",\n})<ContainerProps>`\n --notification-badge-border: ${p => {\n /* Set a CSS variable that will be consumed by the Badge component */\n return p.hasBackground ? p.theme.colors.neutral.c30 : p.theme.colors.background.main;\n }};\n background-color: ${p => (p.hasBackground ? p.theme.colors.neutral.c30 : \"transparent\")};\n\n border-radius: 8px;\n`;\n\nfunction Notification({\n title,\n description,\n badge,\n link,\n onLinkClick,\n hasBackground = false,\n ...containerProps\n}: Readonly<Props>): React.JSX.Element {\n return (\n <Container hasBackground={hasBackground} {...containerProps}>\n {badge}\n <FlexBox flexDirection=\"column\" rowGap={3} flex=\"auto\">\n <Text variant={\"large\"} fontWeight=\"medium\" color=\"neutral.c100\">\n {title}\n </Text>\n {description && (\n <Text variant={\"paragraph\"} fontWeight=\"medium\" color=\"neutral.c80\" whiteSpace=\"pre-wrap\">\n {description}\n </Text>\n )}\n {link && (\n <FlexBox justifyContent={\"flex-start\"}>\n <Link onClick={event => onLinkClick && onLinkClick(event)} Icon={ExternalLinkMedium}>\n {link}\n </Link>\n </FlexBox>\n )}\n </FlexBox>\n </Container>\n );\n}\nNotification.Badge = Badge;\n\nexport type NotificationType = { (p: Props): React.JSX.Element; Badge: typeof Badge };\nexport default Notification as NotificationType;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport FlexBox, { FlexBoxProps } from \"../../layout/Flex\";\nimport Log from \"../Log/\";\n\ninterface ContainerProps extends FlexBoxProps {\n /* Add the pre-selected border. */\n hasBorder?: boolean;\n}\n\nexport interface Props extends ContainerProps {\n /* The text to be displayed. */\n text: string;\n /* JSX that should be rendered on top of the Notification.*/\n badge: React.ReactNode;\n}\n\nconst Container = styled(FlexBox).attrs<ContainerProps>({\n p: 8,\n rowGap: 9,\n alignItems: \"center\",\n flexDirection: \"column\",\n})<ContainerProps>`\n border-width: 1px;\n border-style: ${p => (p.hasBorder ? \"solid\" : \"none\")};\n border-radius: 8px;\n border-color: ${p => p.theme.colors.neutral.c40};\n`;\n\nfunction StatusNotification({\n text,\n badge,\n hasBorder = false,\n ...containerProps\n}: Readonly<Props>): React.JSX.Element {\n return (\n <Container hasBorder={hasBorder} {...containerProps}>\n {badge}\n <Log>{text}</Log>\n </Container>\n );\n}\n\nexport default StatusNotification;\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\nimport Text from \"../../asorted/Text\";\nimport { CheckAloneMedium, CloseMedium, CircledAlertMedium } from \"@ledgerhq/icons-ui/reactLegacy\";\nimport { Flex } from \"../../layout\";\n\ntype TipType = \"success\" | \"warning\" | \"error\";\n\nexport interface TipProps {\n type?: TipType;\n label: string;\n}\n\nconst icons = {\n success: <CheckAloneMedium size={16} />,\n warning: <CircledAlertMedium size={16} />,\n error: <CloseMedium size={16} />,\n};\n\nconst StyledIconContainer = styled.div<{ type?: TipType }>`\n ${p => {\n switch (p.type) {\n case \"warning\":\n return css`\n background: ${p.theme.colors.warning.c10};\n color: ${p.theme.colors.warning.c50};\n `;\n case \"error\":\n return css`\n background: ${p.theme.colors.error.c10};\n color: ${p.theme.colors.error.c50};\n `;\n case \"success\":\n default:\n return css`\n background: ${p.theme.colors.success.c30};\n color: ${p.theme.colors.success.c50};\n `;\n }\n }}\n\n border-radius: ${p => `${p.theme.radii[1]}px`};\n margin-right: ${p => `${p.theme.space[6]}px`};\n padding: 6px;\n display: flex;\n align-items: center;\n`;\n\nexport default function Tip({ type, label }: Readonly<TipProps>): React.JSX.Element {\n return (\n <Flex alignItems={\"center\"}>\n {type && <StyledIconContainer type={type}>{icons[type]}</StyledIconContainer>}\n <Text variant={\"paragraph\"} fontWeight={\"medium\"} color={\"neutral.c100\"} flexShrink={1}>\n {label}\n </Text>\n </Flex>\n );\n}\n","import React, { forwardRef } from \"react\";\nimport { isForwardRef } from \"react-is\";\nimport Tippy, { TippyProps } from \"@tippyjs/react\";\nimport Text from \"../../asorted/Text\";\n\ntype Placement =\n | \"top\"\n | \"top-start\"\n | \"top-end\"\n | \"right\"\n | \"right-start\"\n | \"right-end\"\n | \"bottom\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"left\"\n | \"left-start\"\n | \"left-end\"\n | \"auto\"\n | \"auto-start\"\n | \"auto-end\";\n\n// Add more props later on if needed.\n// See https://atomiks.github.io/tippyjs/v6/all-props for the full list.\nexport interface Props extends TippyProps {\n /** The preferred placement of the tippy. */\n placement?: Placement;\n}\n\n// Tippyjs need the ref to be forwarded to the DOM element wrapping the children.\n// This component has been created to add a wrapping span and use its ref when needed.\n// See: https://github.com/atomiks/tippyjs-react#component-children\nconst Wrapper: React.ComponentType<React.PropsWithChildren<unknown>> = forwardRef(\n (props, ref: React.LegacyRef<HTMLElement>) => {\n const childrenCount = React.Children.count(props.children);\n\n try {\n const child = React.Children.only(props.children);\n const isValidElement = React.isValidElement(child);\n const isForwardingRef = isForwardRef(child);\n const isDomElement = isValidElement && typeof child.type === \"string\";\n\n if (isForwardingRef || isDomElement) {\n return React.cloneElement(child, { ref } as React.Attributes & {\n ref?: React.Ref<HTMLElement>;\n });\n } else {\n return <span ref={ref}>{props.children}</span>;\n }\n } catch {\n return childrenCount < 1 ? null : <span ref={ref}>{props.children}</span>;\n }\n },\n);\n\nexport default function Tooltip(props: Readonly<Props>): React.JSX.Element | null {\n const { content, placement = \"auto\", children, ...rest } = props;\n return (\n <Tippy\n {...rest}\n placement={placement}\n content={\n <Text fontWeight=\"medium\" variant={\"paragraph\"} color=\"neutral.c00\">\n {content}\n </Text>\n }\n >\n <Wrapper children={children} />\n </Tippy>\n );\n}\n","import React from \"react\";\nimport gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n children?: React.ReactNode;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export { default as Alert } from \"./Alert\";\nexport { default as ContinueOnDevice } from \"./ContinueOnDevice\";\nexport { default as Log } from \"./Log\";\nexport { default as Notification } from \"./Notification\";\nexport { default as Badge } from \"./Notification/Badge\";\nexport { default as Tooltip } from \"./Tooltip\";\nexport { default as Tip } from \"./Tip\";\nexport { default as StatusNotification } from \"./StatusNotification\";\n"],"names":["React","styled","Flex","Text","DividerBase","p","Divider","props","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","variant","color","css","getFontSource","name","fontsPath","fontName","fontStyles","getLinkColors","colors","ctaIconSize","ctaTextType","DEFAULT_ICON_POSITION","DEFAULT_SIZE","DEFAULT_TYPE","IconContainer","Base","theme","disabled","type","LinkContainer","Icon","iconPosition","children","size","textProps","text","Link","FlexBox","useTheme","WarningFill","InformationFill","CheckmarkCircleFill","DeleteCircleFill","StyledIconContainer","icons","getColors","StyledAlertContainer","AlertBodyText","AlertUnderlinedText","Alert","title","showIcon","renderContent","renderRight","containerProps","iconColor","background","textColor","ContinueOnDevice","withTopDivider","SvgTop","SvgBottom","BracketLeft","BracketRight","memo","Container","TextContainer","Log","extraTextProps","position","shadow","border","layout","ActiveCircle","Wrapper","Badge","active","icon","ExternalLinkMedium","Notification","description","badge","link","onLinkClick","hasBackground","event","StatusNotification","hasBorder","CheckAloneMedium","CloseMedium","CircledAlertMedium","Tip","label","forwardRef","isForwardRef","Tippy","ref","childrenCount","child","isValidElement","isForwardingRef","isDomElement","Tooltip","content","placement","rest","gaps","flexbox","space","overflow","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","style","weight","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","default"],"mappings":";;;;;;;;;;;;;AAA0B;AACa;AACgB;AACjB;AAGtC,MAAMI,cAAcH,4CAAMA,CAACC,4CAAIA,EAAE,KAAK,CAAe,CAACG,IAAqB;QACzE,IAAIA,EAAE,EAAE,IAAI;QACZ,QAAQ;QACR,iBAAiBA,EAA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;AACT;AACR;AAC8B"}
1
+ {"version":3,"file":"components/message/index.js","sources":["webpack://@ledgerhq/react-ui/./src/components/asorted/Divider/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/index.tsx","webpack://@ledgerhq/react-ui/./src/components/asorted/Text/styles.ts","webpack://@ledgerhq/react-ui/./src/components/cta/Link/getLinkStyle.ts","webpack://@ledgerhq/react-ui/./src/components/cta/Link/index.tsx","webpack://@ledgerhq/react-ui/./src/components/cta/getCtaStyle.ts","webpack://@ledgerhq/react-ui/./src/components/layout/Flex/index.ts","webpack://@ledgerhq/react-ui/./src/components/message/Alert/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/ContinueOnDevice/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Log/Brackets.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Log/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Notification/Badge.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Notification/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/StatusNotification/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Tip/index.tsx","webpack://@ledgerhq/react-ui/./src/components/message/Tooltip/index.tsx","webpack://@ledgerhq/react-ui/./src/components/styled.ts","webpack://@ledgerhq/react-ui/./src/styles/helpers.ts","webpack://@ledgerhq/react-ui/./src/styles/styled/fontFamily.ts","webpack://@ledgerhq/react-ui/./src/styles/system/gaps.ts","webpack://@ledgerhq/react-ui/./src/styles/theme.ts","webpack://@ledgerhq/react-ui/webpack/runtime/compat_get_default_export","webpack://@ledgerhq/react-ui/webpack/runtime/define_property_getters","webpack://@ledgerhq/react-ui/webpack/runtime/has_own_property","webpack://@ledgerhq/react-ui/webpack/runtime/make_namespace_object","webpack://@ledgerhq/react-ui/./src/components/message/index.ts"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport Flex, { FlexBoxProps } from \"../../layout/Flex\";\nimport Text from \"../../asorted/Text\";\n\nexport type Props = FlexBoxProps & { text?: string };\nconst DividerBase = styled(Flex).attrs<FlexBoxProps>((p: FlexBoxProps) => ({\n my: p.my || 0,\n height: 1,\n backgroundColor: p.color || \"neutral.c40\",\n}))`\n &[data-variant=\"light\"] {\n background: ${p => p.theme.colors.neutral.c30};\n }\n`;\n\nconst Divider: React.FC<Props> = props => {\n if (!props.text) return <DividerBase {...props} />;\n return (\n <Flex {...props} flexDirection=\"row\" alignItems=\"center\">\n <DividerBase my={6} flex={1} />\n <Text variant=\"bodyLineHeight\" color=\"neutral.c60\" mx={6}>\n {props.text}\n </Text>\n <DividerBase my={6} flex={1} />\n </Flex>\n );\n};\n\nexport default Divider;\n","import React from \"react\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\nimport {\n compose,\n fontSize,\n fontWeight,\n textAlign,\n lineHeight,\n letterSpacing,\n system,\n} from \"styled-system\";\nimport fontFamily from \"../../../styles/styled/fontFamily\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport { textVariantStyle } from \"./styles\";\n\nconst uppercase = system({\n uppercase: {\n property: \"textTransform\",\n transform: value => (value ? \"uppercase\" : \"none\"),\n },\n});\n\ntype FontFamilies =\n | \"Inter|ExtraLight\"\n | \"Inter|Light\"\n | \"Inter|Regular\"\n | \"Inter|Medium\"\n | \"Inter|SemiBold\"\n | \"Inter|Bold\"\n | \"Inter|ExtraBold\"\n | \"Alpha|Medium\";\n\ntype WhiteSpace = \"normal\" | \"nowrap\" | \"pre\" | \"pre-line\" | \"pre-wrap\";\n\nexport interface TextProps extends BaseStyledProps {\n fontFamily?: string;\n ff?: FontFamilies;\n fontSize?: number | string | TextVariants;\n variant?: TextVariants;\n textAlign?: string;\n fontWeight?: string;\n lineHeight?: string;\n textTransform?: string;\n textOverflow?: string;\n uppercase?: boolean;\n whiteSpace?: WhiteSpace;\n children?: React.ReactNode;\n}\n\nconst Text = baseStyled.span.attrs<TextProps, TextProps>(\n ({ variant = \"body\", fontSize, color }) => ({\n fontSize: fontSize ? fontSize : variant,\n color: color || \"neutral.c100\",\n }),\n)`\n font-weight: 500;\n white-space: ${props => props.whiteSpace ?? \"normal\"};\n ${(p: TextProps) => textVariantStyle[p.variant || \"body\"]}\n ${compose(\n uppercase,\n lineHeight,\n fontFamily,\n fontSize,\n textAlign,\n fontWeight,\n letterSpacing,\n system({\n textOverflow: true,\n }),\n )}\n ${p => (p.textTransform ? `text-transform: ${p.textTransform};` : \"\")}\n`;\n\nexport default Text;\n","import { GlobalStyleProps } from \"../../../styles/global\";\nimport { css } from \"styled-components\";\nimport { TextVariants } from \"../../../styles/theme\";\n\nconst getFontSource = (name: string) => (props: GlobalStyleProps) => {\n const fontsPath = props.fontsPath ?? \"assets/fonts\";\n const fontName = (props.fontMappings && props.fontMappings(name)) || `${name}.woff2`;\n return `url(\"${fontsPath}/${fontName}\") format(\"woff2\")`;\n};\n\nexport const fontStyles = css`\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraLight-BETA\")};\n font-weight: 100;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Light-BETA\")};\n font-weight: 300;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Regular\")};\n font-weight: 400;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-SemiBold\")};\n font-weight: 600;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Inter\";\n src: ${getFontSource(\"Inter-ExtraBold\")};\n font-weight: 900;\n font-style: normal;\n }\n\n @font-face {\n font-family: \"Alpha\";\n src: ${getFontSource(\"HMAlphaMono-Medium\")};\n font-weight: 500;\n font-style: normal;\n }\n`;\n\nexport const textVariantStyle: Record<\n TextVariants,\n {\n fontFamily: string;\n lineHeight?: string | number;\n fontWeight?: number;\n \"text-transform\"?: string;\n }\n> = {\n h1: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h1Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h2Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h3Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n h4: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h4Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n },\n h5: {\n fontFamily: \"Alpha, Inter, Sans\",\n fontWeight: 500,\n \"text-transform\": \"uppercase\",\n },\n h5Inter: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 500,\n },\n large: {\n fontFamily: \"Inter, Sans\",\n },\n largeLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n body: {\n fontFamily: \"Inter, Sans\",\n },\n bodyLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n paragraph: {\n fontFamily: \"Inter, Sans\",\n },\n paragraphLineHeight: {\n fontFamily: \"Inter, Sans\",\n lineHeight: 1.7,\n },\n small: {\n fontFamily: \"Inter, Sans\",\n },\n extraSmall: {\n fontFamily: \"Inter, Sans\",\n },\n tiny: {\n fontFamily: \"Inter, Sans\",\n },\n micro: {\n fontFamily: \"Inter, Sans\",\n },\n subtitle: {\n fontFamily: \"Inter, Sans\",\n fontWeight: 600,\n \"text-transform\": \"uppercase\",\n },\n};\n","import { Theme } from \"../../../styles/theme\";\n\nexport function getLinkColors(\n colors: Theme[\"colors\"],\n): Record<\"disabled\" | \"main\" | \"color\" | \"shade\", Record<\"default\" | \"pressed\", string>> {\n return {\n disabled: {\n default: colors.neutral.c50,\n pressed: colors.neutral.c50,\n },\n main: {\n default: colors.neutral.c100,\n pressed: colors.neutral.c80,\n },\n color: {\n default: colors.primary.c80,\n pressed: colors.primary.c70,\n },\n shade: {\n default: colors.neutral.c70,\n pressed: colors.neutral.c80,\n },\n };\n}\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { getLinkColors } from \"./getLinkStyle\";\nimport { ctaIconSize, ctaTextType } from \"../getCtaStyle\";\nimport { Text } from \"../../asorted\";\nimport { TextProps } from \"../../asorted/Text\";\nimport baseStyled, { BaseStyledProps } from \"../../styled\";\n\nexport type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> &\n BaseStyledProps & {\n /**\n * Component that takes `{size: number; color?: string}` as props\n */\n Icon?: React.ComponentType<{ size: number; color?: string }>;\n /**\n * Affects the colors of the text, icon & underline, can be overriden by the `color` prop\n */\n type?: \"main\" | \"shade\" | \"color\";\n /**\n * Affect the font variant & icon size\n */\n size?: \"small\" | \"medium\" | \"large\";\n /**\n * Color of the link, overrides colors defined by the `type` prop\n */\n color?: string;\n /**\n * Props passed to the rendered text\n */\n textProps?: TextProps;\n /**\n * If true text will always be underlined, else it will be underlined only on hover\n */\n alwaysUnderline?: boolean;\n /**\n * Position of the icon relative to the text\n */\n iconPosition?: \"right\" | \"left\";\n disabled?: boolean;\n children?: React.ReactNode;\n };\n\nexport const DEFAULT_ICON_POSITION = \"right\";\nexport const DEFAULT_SIZE = \"medium\";\nexport const DEFAULT_TYPE = \"main\";\n\nconst IconContainer = styled.div<{\n iconPosition: \"right\" | \"left\";\n iconLink?: boolean;\n}>`\n ${p => (p.iconLink ? \"\" : p.iconPosition === \"left\" ? `margin-right: 6px;` : `margin-left: 6px;`)}\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const Base = baseStyled.a<LinkProps>`\n color: ${({ color, theme, disabled, type = \"main\" }) =>\n color || getLinkColors(theme.colors)[disabled ? \"disabled\" : type][\"default\"]};\n cursor: pointer;\n display: inline-flex;\n flex-direction: row;\n text-align: center;\n align-items: center;\n justify-content: center;\n\n &:hover {\n text-decoration: underline;\n }\n &:active {\n color: ${({ color, theme, type = \"main\" }) =>\n color || getLinkColors(theme.colors)[type][\"pressed\"]};\n text-decoration: underline;\n }\n\n text-decoration: ${p => (p.alwaysUnderline ? \"underline\" : \"none\")};\n\n`;\n\nconst LinkContainer = ({\n Icon,\n iconPosition = DEFAULT_ICON_POSITION,\n children,\n color,\n size = DEFAULT_SIZE,\n textProps,\n}: LinkProps): React.ReactElement => {\n const text = (\n <Text\n variant={ctaTextType[size]}\n fontWeight=\"semiBold\"\n color={color || \"inherit\"}\n {...textProps}\n >\n {children}\n </Text>\n );\n\n return (\n <>\n {iconPosition === \"right\" && children ? text : null}\n {Icon ? (\n <IconContainer iconLink={!children} iconPosition={iconPosition}>\n <Icon size={ctaIconSize[size]} color={color || \"currentcolor\"} />\n </IconContainer>\n ) : null}\n {iconPosition === \"left\" && children ? text : null}\n </>\n );\n};\n\nconst Link = (props: LinkProps): React.ReactElement => {\n const { type = DEFAULT_TYPE, size = DEFAULT_SIZE, color } = props;\n return (\n <Base color={color} {...props}>\n <LinkContainer {...props} type={type} size={size} />\n </Base>\n );\n};\n\nexport default Link;\n","import { TextVariants } from \"../../styles/theme\";\n\nexport const ctaTextType: { [index: string]: TextVariants } = {\n small: \"small\",\n medium: \"paragraph\",\n large: \"body\",\n};\n\nexport const ctaIconSize: { [index: string]: number } = {\n small: 16,\n medium: 18,\n large: 20,\n};\n","import baseStyled, { BaseStyledProps } from \"../../styled\";\n\nconst FlexBox = baseStyled.div.attrs<BaseStyledProps, BaseStyledProps>({ display: \"flex\" })``;\nexport type FlexBoxProps = BaseStyledProps & React.HTMLAttributes<HTMLDivElement>;\n\nexport default FlexBox;\n","import React from \"react\";\nimport styled, { useTheme, DefaultTheme } from \"styled-components\";\nimport Text from \"../../asorted/Text\";\nimport { TextVariants } from \"../../../styles/theme\";\nimport Flex from \"../../layout/Flex\";\nimport WarningFill from \"@ledgerhq/icons-ui/react/WarningFill\";\nimport InformationFill from \"@ledgerhq/icons-ui/react/InformationFill\";\nimport CheckmarkCircleFill from \"@ledgerhq/icons-ui/react/CheckmarkCircleFill\";\nimport DeleteCircleFill from \"@ledgerhq/icons-ui/react/DeleteCircleFill\";\n\ntype AlertType = \"info\" | \"secondary\" | \"success\" | \"warning\" | \"error\";\n\ntype RenderProps = (props: {\n textProps: { variant?: TextVariants; fontWeight?: string };\n}) => React.JSX.Element;\n\nexport interface AlertProps {\n /**\n * Affects the colors of the background & text and what icon can be displayed.\n */\n type?: AlertType;\n /**\n * Title of the Alert.\n */\n title?: string;\n /**\n * Method for rendering additional content under the title. `{ color: string; textProps: { variant?: TextVariants; fontWeight?: string } }` is passed as props to easily style text elements.\n */\n renderContent?: RenderProps;\n\n /**\n * Method for rendering additional content to the right. `{ color: string; textProps: { variant?: TextVariants; fontWeight?: string } }` is passed as props to easily style text elements.\n */\n renderRight?: RenderProps;\n\n /**\n * Additional props to be passed to the top level container (containing icon + content).\n */\n containerProps?: Record<string, unknown>;\n\n /**\n * Whether or not to display an icon\n */\n showIcon?: boolean;\n}\n\nconst StyledIconContainer = styled.div`\n margin-right: 8px;\n display: flex;\n align-items: center;\n`;\n\nconst icons = {\n info: <InformationFill size=\"M\" />,\n secondary: <InformationFill size=\"M\" />,\n success: <CheckmarkCircleFill size=\"M\" />,\n warning: <WarningFill size=\"M\" />,\n error: <DeleteCircleFill size=\"M\" />,\n};\n\nconst getColors = ({ theme, type }: { theme: DefaultTheme; type?: AlertType }) => {\n switch (type) {\n case \"secondary\":\n return {\n background: theme.colors.opacityDefault.c05,\n iconColor: theme.colors.neutral.c80,\n };\n case \"success\":\n return {\n background: theme.colors.success.c10,\n iconColor: theme.colors.success.c50,\n };\n case \"warning\":\n return {\n background: theme.colors.warning.c10,\n iconColor: theme.colors.warning.c70,\n };\n case \"error\":\n return {\n background: theme.colors.error.c10,\n iconColor: theme.colors.error.c50,\n };\n case \"info\":\n default:\n return {\n background: theme.colors.primary.c10,\n iconColor: theme.colors.primary.c80,\n };\n }\n};\n\nconst StyledAlertContainer = styled(Flex)<{ background?: string; color?: string }>`\n border-radius: ${p => `${p.theme.radii[2]}px`};\n align-items: start;\n`;\n\nconst AlertBodyText = styled(Text).attrs({\n flexShrink: 1,\n variant: \"bodyLineHeight\",\n fontWeight: \"semiBold\",\n})``;\n\nconst AlertUnderlinedText = styled(AlertBodyText)`\n text-decoration-line: underline;\n`;\n\nfunction Alert({\n type = \"info\",\n title,\n showIcon = true,\n renderContent,\n renderRight,\n containerProps,\n}: Readonly<AlertProps>): React.JSX.Element {\n const theme = useTheme();\n const { iconColor, background } = getColors({ theme, type });\n const textProps: { variant?: TextVariants; fontWeight?: string } = {\n variant: \"bodyLineHeight\",\n fontWeight: \"semiBold\",\n };\n const textColor = \"neutral.c100\";\n return (\n <StyledAlertContainer\n color={textColor}\n backgroundColor={background}\n padding={6}\n {...containerProps}\n >\n {showIcon && !!icons[type] && (\n <Flex color={iconColor}>\n <StyledIconContainer>{icons[type]}</StyledIconContainer>\n </Flex>\n )}\n <Flex flexDirection=\"column\" flex={1} alignItems=\"flex-start\" rowGap=\"6px\">\n {title && (\n <Text {...textProps} color={textColor}>\n {title}\n </Text>\n )}\n {renderContent && renderContent({ textProps })}\n </Flex>\n <Flex alignSelf=\"center\">{renderRight && renderRight({ textProps })}</Flex>\n </StyledAlertContainer>\n );\n}\n\nAlert.BodyText = AlertBodyText;\nAlert.UnderlinedText = AlertUnderlinedText;\n\nexport default Alert;\n","import React from \"react\";\n\nimport { Divider, Text } from \"../../asorted\";\nimport Flex from \"../../layout/Flex\";\n\ntype Props = {\n Icon: React.ComponentType<{ size: number; color?: string }>;\n text: string;\n withTopDivider?: boolean;\n};\n\nconst ContinueOnDevice: React.FC<Props> = ({ Icon, text, withTopDivider = true }) => {\n return (\n <Flex flexDirection=\"column\">\n {withTopDivider ? <Divider my={6} /> : null}\n <Flex flexDirection=\"row\" alignItems=\"center\" flexShrink={1}>\n <Icon size={48} />\n <Text\n flex={1}\n pl={4}\n flexWrap=\"wrap\"\n variant=\"body\"\n fontWeight=\"medium\"\n color=\"neutral.c100\"\n >\n {text}\n </Text>\n </Flex>\n </Flex>\n );\n};\n\nexport default ContinueOnDevice;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport FlexBox from \"../../layout/Flex\";\n\nconst SvgTop = styled.svg`\n position: absolute;\n top: 0;\n left: 0;\n`;\n\nconst SvgBottom = styled.svg`\n position: absolute;\n bottom: 0;\n left: 0;\n`;\n\nexport const BracketLeft = (): React.ReactElement => (\n <FlexBox\n flex=\"0 0 1.2em\"\n flexDirection=\"column\"\n position=\"relative\"\n justifyContent=\"space-between\"\n alignItems=\"flex-start\"\n >\n <SvgTop viewBox=\"0 0 64 64\" fill=\"currentColor\">\n <g>\n <path d=\"M 0,0 V 36.3452 H 8.05844 V 8.05844 H 55.3076 V 0 Z\" />\n </g>\n </SvgTop>\n <SvgBottom viewBox=\"0 0 64 128\" fill=\"currentColor\">\n <g>\n <path d=\"M 0,91.6548 V 128 h 55.3076 v -8.06 H 8.05844 V 91.6548 Z\" />\n </g>\n </SvgBottom>\n </FlexBox>\n);\n\nexport const BracketRight = (): React.ReactElement => (\n <FlexBox\n flex=\"0 0 1.2em\"\n flexDirection=\"column\"\n position=\"relative\"\n justifyContent=\"space-between\"\n alignItems=\"flex-end\"\n >\n <SvgTop viewBox=\"0 0 64 64\" fill=\"currentColor\">\n <g>\n <path d=\"M 8.692,0 V 8.05844 H 55.941 V 36.3452 H 64 V 0 Z\" />\n </g>\n </SvgTop>\n <SvgBottom viewBox=\"0 0 64 128\" fill=\"currentColor\">\n <g>\n <path d=\"m 8.692,119.94 v 8.058 H 64 V 91.6548 H 55.941 V 119.94 Z\" />\n </g>\n </SvgBottom>\n </FlexBox>\n);\n","import React, { memo } from \"react\";\nimport styled from \"styled-components\";\n\nimport Text, { TextProps } from \"../../asorted/Text\";\nimport FlexBox, { FlexBoxProps } from \"../../layout/Flex\";\nimport { BracketRight, BracketLeft } from \"./Brackets\";\n\nexport type Props = React.PropsWithChildren<\n FlexBoxProps & {\n extraTextProps?: TextProps;\n }\n>;\n\nconst Container = styled(FlexBox)`\n justify-content: center;\n flex-wrap: wrap;\n align-items: stretch;\n min-height: ${p => p.theme.space[12]}px;\n`;\n\nconst TextContainer = styled(FlexBox).attrs(() => ({\n flex: \"1\",\n justifyContent: \"center\",\n alignItems: \"center\",\n}))`\n ${Text} {\n flex: 1;\n }\n`;\n\nfunction Log({ children, extraTextProps, ...props }: Props): React.JSX.Element {\n return (\n <Container color=\"neutral.c100\" {...props}>\n <BracketLeft />\n <TextContainer flex=\"1\" alignItems=\"center\" justifyContent=\"center\">\n <Text\n variant=\"h3\"\n textTransform=\"uppercase\"\n textAlign=\"center\"\n color=\"inherit\"\n {...extraTextProps}\n >\n {children}\n </Text>\n </TextContainer>\n <BracketRight />\n </Container>\n );\n}\n\nexport default memo(Log);\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { color, position, shadow, border, background, layout } from \"styled-system\";\n\nconst ActiveCircle = styled.div`\n position: absolute;\n top: 0;\n right: 0;\n height: 10px;\n width: 10px;\n border-radius: 9999px;\n box-sizing: content-box;\n background-color: ${p => p.theme.colors.error.c50};\n\n border: 2px solid\n var(\n --notification-badge-border,\n ${p => {\n /* The CSS variable is dynamically set by the Notification component */\n return p.theme.colors.background.main;\n }}\n );\n`;\n\nconst Wrapper = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 9999px;\n ${color}\n ${position}\n ${shadow}\n ${border}\n ${background}\n ${layout}\n`;\n\nexport type Props = {\n /* If true a notification bubble will be displayed in the top right corner of the badge. */\n active?: boolean;\n /* JSX filling up the space inside the badge, usually an <Icon />. */\n icon: React.JSX.Element;\n} & React.ComponentProps<typeof Wrapper>;\nexport default function Badge({ active, icon, ...props }: Props): React.JSX.Element {\n return (\n <Wrapper {...props}>\n {icon}\n {active && <ActiveCircle />}\n </Wrapper>\n );\n}\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport FlexBox, { FlexBoxProps } from \"../../layout/Flex\";\nimport Text from \"../../asorted/Text\";\nimport Badge from \"./Badge\";\nimport Link, { LinkProps } from \"../../cta/Link\";\nimport { ExternalLinkMedium } from \"@ledgerhq/icons-ui/reactLegacy\";\n\ninterface ContainerProps extends FlexBoxProps {\n /* Add the pre-selected background. */\n hasBackground?: boolean;\n}\n\nexport interface Props extends ContainerProps {\n /* The title to be displayed. */\n title: string;\n /* JSX that should be rendered by a call to the <Notification.Badge /> component.*/\n badge: React.ReactNode;\n /* An optional description. */\n description?: string;\n /* An optional link. */\n link?: string;\n /* A callback to perform when clicking on the link. */\n onLinkClick?: LinkProps[\"onClick\"];\n}\n\nconst Container = styled(FlexBox).attrs<ContainerProps>({\n p: 6,\n columnGap: 8,\n alignItems: \"center\",\n})<ContainerProps>`\n --notification-badge-border: ${p => {\n /* Set a CSS variable that will be consumed by the Badge component */\n return p.hasBackground ? p.theme.colors.neutral.c30 : p.theme.colors.background.main;\n }};\n background-color: ${p => (p.hasBackground ? p.theme.colors.neutral.c30 : \"transparent\")};\n\n border-radius: 8px;\n`;\n\nfunction Notification({\n title,\n description,\n badge,\n link,\n onLinkClick,\n hasBackground = false,\n ...containerProps\n}: Readonly<Props>): React.JSX.Element {\n return (\n <Container hasBackground={hasBackground} {...containerProps}>\n {badge}\n <FlexBox flexDirection=\"column\" rowGap={3} flex=\"auto\">\n <Text variant={\"large\"} fontWeight=\"medium\" color=\"neutral.c100\">\n {title}\n </Text>\n {description && (\n <Text variant={\"paragraph\"} fontWeight=\"medium\" color=\"neutral.c80\" whiteSpace=\"pre-wrap\">\n {description}\n </Text>\n )}\n {link && (\n <FlexBox justifyContent={\"flex-start\"}>\n <Link onClick={event => onLinkClick && onLinkClick(event)} Icon={ExternalLinkMedium}>\n {link}\n </Link>\n </FlexBox>\n )}\n </FlexBox>\n </Container>\n );\n}\nNotification.Badge = Badge;\n\nexport type NotificationType = { (p: Props): React.JSX.Element; Badge: typeof Badge };\nexport default Notification as NotificationType;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport FlexBox, { FlexBoxProps } from \"../../layout/Flex\";\nimport Log from \"../Log/\";\n\ninterface ContainerProps extends FlexBoxProps {\n /* Add the pre-selected border. */\n hasBorder?: boolean;\n}\n\nexport interface Props extends ContainerProps {\n /* The text to be displayed. */\n text: string;\n /* JSX that should be rendered on top of the Notification.*/\n badge: React.ReactNode;\n}\n\nconst Container = styled(FlexBox).attrs<ContainerProps>({\n p: 8,\n rowGap: 9,\n alignItems: \"center\",\n flexDirection: \"column\",\n})<ContainerProps>`\n border-width: 1px;\n border-style: ${p => (p.hasBorder ? \"solid\" : \"none\")};\n border-radius: 8px;\n border-color: ${p => p.theme.colors.neutral.c40};\n`;\n\nfunction StatusNotification({\n text,\n badge,\n hasBorder = false,\n ...containerProps\n}: Readonly<Props>): React.JSX.Element {\n return (\n <Container hasBorder={hasBorder} {...containerProps}>\n {badge}\n <Log>{text}</Log>\n </Container>\n );\n}\n\nexport default StatusNotification;\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\nimport Text from \"../../asorted/Text\";\nimport { CheckAloneMedium, CloseMedium, CircledAlertMedium } from \"@ledgerhq/icons-ui/reactLegacy\";\nimport { Flex } from \"../../layout\";\n\ntype TipType = \"success\" | \"warning\" | \"error\";\n\nexport interface TipProps {\n type?: TipType;\n label: string;\n}\n\nconst icons = {\n success: <CheckAloneMedium size={16} />,\n warning: <CircledAlertMedium size={16} />,\n error: <CloseMedium size={16} />,\n};\n\nconst StyledIconContainer = styled.div<{ type?: TipType }>`\n ${p => {\n switch (p.type) {\n case \"warning\":\n return css`\n background: ${p.theme.colors.warning.c10};\n color: ${p.theme.colors.warning.c50};\n `;\n case \"error\":\n return css`\n background: ${p.theme.colors.error.c10};\n color: ${p.theme.colors.error.c50};\n `;\n case \"success\":\n default:\n return css`\n background: ${p.theme.colors.success.c30};\n color: ${p.theme.colors.success.c50};\n `;\n }\n }}\n\n border-radius: ${p => `${p.theme.radii[1]}px`};\n margin-right: ${p => `${p.theme.space[6]}px`};\n padding: 6px;\n display: flex;\n align-items: center;\n`;\n\nexport default function Tip({ type, label }: Readonly<TipProps>): React.JSX.Element {\n return (\n <Flex alignItems={\"center\"}>\n {type && <StyledIconContainer type={type}>{icons[type]}</StyledIconContainer>}\n <Text variant={\"paragraph\"} fontWeight={\"medium\"} color={\"neutral.c100\"} flexShrink={1}>\n {label}\n </Text>\n </Flex>\n );\n}\n","import React, { useRef } from \"react\";\nimport Tippy, { TippyProps } from \"@tippyjs/react\";\nimport Text from \"../../asorted/Text\";\n\ntype Placement =\n | \"top\"\n | \"top-start\"\n | \"top-end\"\n | \"right\"\n | \"right-start\"\n | \"right-end\"\n | \"bottom\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"left\"\n | \"left-start\"\n | \"left-end\"\n | \"auto\"\n | \"auto-start\"\n | \"auto-end\";\n\n// Add more props later on if needed.\n// See https://atomiks.github.io/tippyjs/v6/all-props for the full list.\nexport interface Props extends TippyProps {\n /** The preferred placement of the tippy. */\n placement?: Placement;\n}\n\nexport default function Tooltip(props: Readonly<Props>): React.JSX.Element | null {\n const { content, placement = \"auto\", children, ...rest } = props;\n const triggerRef = useRef<HTMLSpanElement>(null);\n return (\n <>\n <span ref={triggerRef} style={{ display: \"inline-flex\" }}>\n {children}\n </span>\n <Tippy\n {...rest}\n reference={triggerRef as React.RefObject<Element>}\n placement={placement}\n content={\n <Text fontWeight=\"medium\" variant={\"paragraph\"} color=\"neutral.c00\">\n {content}\n </Text>\n }\n />\n </>\n );\n}\n","import React from \"react\";\nimport gaps from \"../styles/system/gaps\";\nimport styled, { StyledInterface, InterpolationFunction } from \"styled-components\";\nimport {\n compose,\n flexbox,\n FlexboxProps,\n space,\n SpaceProps,\n position,\n PositionProps,\n color,\n ColorProps,\n layout,\n LayoutProps,\n overflow,\n OverflowProps,\n border,\n BorderProps,\n} from \"styled-system\";\n\nexport type BaseStyledProps = SpaceProps &\n FlexboxProps &\n PositionProps &\n ColorProps &\n LayoutProps &\n BorderProps &\n OverflowProps & {\n /**\n * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.\n */\n columnGap?: string | number;\n /**\n * The rowGap CSS property sets the size of the gap (gutter) between an element's grid rows.\n */\n rowGap?: string | number;\n color?: string;\n children?: React.ReactNode;\n };\n\nexport const baseStyles: InterpolationFunction<unknown> = compose(\n flexbox,\n space,\n position,\n color,\n layout,\n overflow,\n gaps,\n border,\n);\n\nconst proxyStyled = new Proxy(styled, {\n apply(target: typeof styled, thisArg, argumentsList: Parameters<typeof styled>) {\n return styled(target.apply(thisArg, argumentsList)(baseStyles));\n },\n get(target, property: keyof typeof styled) {\n if (typeof target[property] === \"function\") {\n return styled(target[property].apply(styled, [baseStyles]));\n }\n return target[property];\n },\n});\n\nexport default <StyledInterface>proxyStyled;\n","import Color from \"color\";\n\nimport { fontFamilies } from \"./theme\";\n\nexport const rgba = (c: string, a: number): string => Color(c).alpha(a).rgb().toString();\n\nexport const darken = (c: string, a: number): string => Color(c).darken(a).toString();\n\nexport const lighten = (c: string, a: number): string => Color(c).lighten(a).toString();\n\nexport const mix = (c: string, b: string, a: number): string =>\n Color(c).mix(Color(b), a).toString();\n\nexport const ff = (v: string) => {\n const [font, type = \"Regular\"] = v.split(\"|\");\n // @ts-expect-error FIXME\n const { style, weight } = fontFamilies[font][type];\n // @ts-expect-error FIXME\n const fallback: string = fontFamilies[font].fallback ?? \"Arial\";\n\n return {\n fontFamily: `${font}, ${fallback}`,\n fontWeight: weight,\n fontStyle: style,\n };\n};\n\nexport const ensureContrast = (color1: string, color2: string) => {\n const colorL1 = Color(color1).luminosity() + 0.05;\n const colorL2 = Color(color2).luminosity() + 0.05;\n\n const lRatio = colorL1 > colorL2 ? colorL1 / colorL2 : colorL2 / colorL1;\n\n if (lRatio < 1.5) {\n return Color(color1).rotate(180).negate().string();\n }\n return color1;\n};\n","import { ff } from \"../helpers\";\n\nexport default (props: { ff?: string }) => {\n const prop = props.ff;\n\n if (prop == null) {\n return null;\n }\n\n return ff(prop);\n};\n","import { system } from \"styled-system\";\n\nconst gaps = system({\n rowGap: { property: \"rowGap\", scale: \"space\" },\n columnGap: { property: \"columnGap\", scale: \"space\" },\n});\n\nexport default gaps;\n","import { keyframes, css, Font } from \"styled-components\";\nimport { palettes, ColorPalette } from \"@ledgerhq/ui-shared\";\n\nexport type screensBreakpoints = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"xxl\";\n\nexport const breakpoints = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n xxl: \"1536px\",\n} as Record<screensBreakpoints, string>;\n\nexport const space = [\n /* space indexes:\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 */\n 0, 2, 4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76,\n];\n\nexport type TextVariants =\n | \"h1\"\n | \"h1Inter\"\n | \"h2\"\n | \"h2Inter\"\n | \"h3\"\n | \"h3Inter\"\n | \"h4\"\n | \"h4Inter\"\n | \"h5\"\n | \"h5Inter\"\n | \"large\"\n | \"largeLineHeight\"\n | \"body\"\n | \"bodyLineHeight\"\n | \"paragraph\"\n | \"paragraphLineHeight\"\n | \"small\"\n | \"extraSmall\"\n | \"tiny\"\n | \"micro\"\n | \"subtitle\";\n\nexport type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;\n\nexport const fontSizes = [8, 10, 11, 12, 13, 14, 16, 20, 24, 28, 32, 36] as ThemeScale<\n number,\n TextVariants\n>;\n\n[\n fontSizes.micro,\n fontSizes.tiny,\n fontSizes.extraSmall,\n fontSizes.small,\n fontSizes.paragraph,\n fontSizes.body,\n fontSizes.large,\n fontSizes.h5,\n fontSizes.h4,\n fontSizes.h3,\n fontSizes.h2,\n fontSizes.h1,\n] = fontSizes;\nfontSizes.largeLineHeight = fontSizes.large;\nfontSizes.bodyLineHeight = fontSizes.body;\nfontSizes.paragraphLineHeight = fontSizes.paragraph;\nfontSizes.subtitle = fontSizes.extraSmall;\nfontSizes.h1Inter = fontSizes.h1;\nfontSizes.h2Inter = fontSizes.h2;\nfontSizes.h3Inter = fontSizes.h3;\nfontSizes.h4Inter = fontSizes.h4;\nfontSizes.h5Inter = fontSizes.h5;\n\nconst fontWeights = {\n extraLight: \"100\",\n light: \"300\",\n regular: \"400\",\n medium: \"500\",\n semiBold: \"600\",\n bold: \"700\",\n extraBold: \"800\",\n};\n\nexport const radii = [0, 4, 8, 12, 16, 20];\nexport const shadows = [\"0 4px 8px 0 rgba(0, 0, 0, 0.03)\"];\nexport const zIndexes = [-1, 0, 1, 9, 10, 90, 100, 900, 1000];\n\n// Those fonts are now defined in global.css, this is just a mapping for styled-system\nexport const fontFamilies = {\n Inter: {\n ExtraLight: {\n weight: 100,\n style: \"normal\",\n },\n Light: {\n weight: 300,\n style: \"normal\",\n },\n Regular: {\n weight: 400,\n style: \"normal\",\n },\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n SemiBold: {\n weight: 600,\n style: \"normal\",\n },\n Bold: {\n weight: 700,\n style: \"normal\",\n },\n ExtraBold: {\n weight: 800,\n style: \"normal\",\n },\n },\n Alpha: {\n Medium: {\n weight: 500,\n style: \"normal\",\n },\n },\n};\n\nconst animationDuration = \"0.33s\";\nconst easings = {\n outQuadratic: \"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",\n};\n\nconst transition = (\n properties = [\"all\"],\n duration = animationDuration,\n easing = easings.outQuadratic,\n) => css`\n transition-property: ${properties.join(\",\")};\n transition-duration: ${duration};\n transition-timing-function: ${easing};\n`;\n\nconst fadeIn = keyframes`\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n `;\nconst fadeOut = keyframes`\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n `;\nconst fadeInGrowX = keyframes`\n 0% {\n opacity: 0;\n transform: scaleX(0);\n }\n 100% {\n opacity: 1;\n transform: scaleX(1);\n }\n`;\nconst fadeInUp = keyframes`\n 0% {\n opacity: 0;\n transform: translateY(66%);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n `;\nconst animations = {\n fadeIn: () => css`\n ${fadeIn} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeOut: () => css`\n ${fadeOut} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n fadeInGrowX: () => css`\n ${fadeInGrowX} 0.6s ${easings.outQuadratic} forwards\n `,\n fadeInUp: () => css`\n ${fadeInUp} ${animationDuration} ${easings.outQuadratic} forwards\n `,\n};\nconst overflow = {\n x: css`\n overflow-y: hidden;\n overflow-x: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n y: css`\n overflow-x: hidden;\n overflow-y: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n yAuto: css`\n overflow-x: hidden;\n overflow-y: auto;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n xy: css`\n overflow: scroll;\n will-change: transform;\n &:hover {\n --track-color: ${p => p.theme.colors.neutral.c30};\n }\n `,\n trackSize: 12,\n};\n\ninterface DefaultTheme {\n theme: \"dark\" | \"light\";\n animations: typeof animations;\n transition: typeof transition;\n overflow: typeof overflow;\n sizes: {\n topBarHeight: number;\n sideBarWidth: number;\n drawer: {\n side: {\n big: {\n width: number;\n };\n small: {\n width: number;\n };\n };\n popin: {\n min: {\n height: number;\n width: number;\n };\n max: {\n height: number;\n width: number;\n };\n };\n };\n };\n radii: number[];\n fontFamilies: Record<string, Record<string, Font>>;\n fontSizes: number[];\n space: number[];\n shadows: string[];\n colors: ColorPalette;\n fontWeights: Record<string, string>;\n breakpoints: Record<screensBreakpoints, string>;\n zIndexes: number[];\n}\n\nconst theme: DefaultTheme = {\n theme: \"light\",\n sizes: {\n drawer: {\n side: {\n big: {\n width: 580,\n },\n small: {\n width: 420,\n },\n },\n popin: {\n min: {\n height: 158,\n width: 462,\n },\n max: {\n height: 522,\n width: 622,\n },\n },\n },\n topBarHeight: 58,\n sideBarWidth: 230,\n },\n radii,\n fontFamilies,\n fontSizes,\n fontWeights,\n space,\n shadows,\n colors: palettes.light,\n animations,\n overflow,\n transition,\n zIndexes,\n breakpoints,\n};\n\nexport default theme;\nexport type Theme = DefaultTheme;\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export { default as Alert } from \"./Alert\";\nexport { default as ContinueOnDevice } from \"./ContinueOnDevice\";\nexport { default as Log } from \"./Log\";\nexport { default as Notification } from \"./Notification\";\nexport { default as Badge } from \"./Notification/Badge\";\nexport { default as Tooltip } from \"./Tooltip\";\nexport { default as Tip } from \"./Tip\";\nexport { default as StatusNotification } from \"./StatusNotification\";\n"],"names":["React","styled","Flex","Text","DividerBase","p","Divider","props","baseStyled","compose","fontSize","fontWeight","textAlign","lineHeight","letterSpacing","system","fontFamily","textVariantStyle","uppercase","value","variant","color","css","getFontSource","name","fontsPath","fontName","fontStyles","getLinkColors","colors","ctaIconSize","ctaTextType","DEFAULT_ICON_POSITION","DEFAULT_SIZE","DEFAULT_TYPE","IconContainer","Base","theme","disabled","type","LinkContainer","Icon","iconPosition","children","size","textProps","text","Link","FlexBox","useTheme","WarningFill","InformationFill","CheckmarkCircleFill","DeleteCircleFill","StyledIconContainer","icons","getColors","StyledAlertContainer","AlertBodyText","AlertUnderlinedText","Alert","title","showIcon","renderContent","renderRight","containerProps","iconColor","background","textColor","ContinueOnDevice","withTopDivider","SvgTop","SvgBottom","BracketLeft","BracketRight","memo","Container","TextContainer","Log","extraTextProps","position","shadow","border","layout","ActiveCircle","Wrapper","Badge","active","icon","ExternalLinkMedium","Notification","description","badge","link","onLinkClick","hasBackground","event","StatusNotification","hasBorder","CheckAloneMedium","CloseMedium","CircledAlertMedium","Tip","label","useRef","Tippy","Tooltip","content","placement","rest","triggerRef","gaps","flexbox","space","overflow","baseStyles","proxyStyled","Proxy","target","thisArg","argumentsList","property","Color","fontFamilies","rgba","c","a","darken","lighten","mix","b","ff","v","font","style","weight","fallback","ensureContrast","color1","color2","colorL1","colorL2","lRatio","prop","keyframes","palettes","breakpoints","fontSizes","fontWeights","radii","shadows","zIndexes","animationDuration","easings","transition","properties","duration","easing","fadeIn","fadeOut","fadeInGrowX","fadeInUp","animations","default"],"mappings":";;;;;;;;;;;;;AAA0B;AACa;AACgB;AACjB;AAGtC,MAAMI,cAAcH,4CAAMA,CAACC,4CAAIA,EAAE,KAAK,CAAe,CAACG,IAAqB;QACzE,IAAIA,EAAE,EAAE,IAAI;QACZ,QAAQ;QACR,iBAAiBA,EAAE,KAAK,IAAI;IAC9B,GAAG,CAAC;;gBAEY,EAAEA,CAAAA,IAAKA,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;;AAElD,CAAC;AAED,MAAMC,UAA2BC,CAAAA;IAC/B,IAAI,CAACA,MAAM,IAAI,EAAE,qBAAO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,cAAc;QACd,cAAc;IAChB;IACAgH;IACA1B;IACAwB;IACAC;IACAnC;IACAqC;IACA,QAAQL,mDAAc;IACtBiB;IACAhD;IACAwC;IACAH;IACAL;AACF;AAEA,2DAAe7G,gDAAAA,KAAKA,EAAAA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnTrB;AACA;AACA;AACA;AACA;AACA,iCAAiC,WAAW;AAC5C;AACA;;;;;ACPA;AACA;AACA;AACA,kDAAkD,wCAAwC;AAC1F;AACA;AACA,E;;;;ACNA,wF;;;;ACAA;AACA;AACA;AACA,uDAAuD,iBAAiB;AACxE;AACA,gDAAgD,aAAa;AAC7D,E;;;;;;;;;;;;;;;;;;;;;;;;ACN2C;AACsB;AAC1B;AACkB;AACD;AACT;AACR;AAC8B"}
package/lib/cjs/index.js CHANGED
@@ -3992,7 +3992,7 @@ const DrawerContent = /*#__PURE__*/ react__rspack_import_0_default().forwardRef(
3992
3992
  variant: "h3",
3993
3993
  flex: 1,
3994
3994
  textAlign: "center"
3995
- }, title) || /*#__PURE__*/ react__rspack_import_0_default().createElement("div", null), /*#__PURE__*/ react__rspack_import_0_default().createElement(_Flex__rspack_import_5["default"], {
3995
+ }, title), /*#__PURE__*/ react__rspack_import_0_default().createElement(_Flex__rspack_import_5["default"], {
3996
3996
  alignSelf: "flex-start"
3997
3997
  }, /*#__PURE__*/ react__rspack_import_0_default().createElement(_cta_Button__rspack_import_8["default"], {
3998
3998
  variant: "neutral",
@@ -5379,7 +5379,7 @@ function Tip({ type, label }) {
5379
5379
 
5380
5380
 
5381
5381
  },
5382
- 7441(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5382
+ 5845(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
5383
5383
 
5384
5384
  // EXPORTS
5385
5385
  __webpack_require__.d(__webpack_exports__, {
@@ -5389,8 +5389,6 @@ __webpack_require__.d(__webpack_exports__, {
5389
5389
  // EXTERNAL MODULE: external "react"
5390
5390
  var external_react_ = __webpack_require__(2015);
5391
5391
  var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
5392
- ;// CONCATENATED MODULE: external "react-is"
5393
- const external_react_is_namespaceObject = require("react-is");
5394
5392
  ;// CONCATENATED MODULE: external "@tippyjs/react"
5395
5393
  const react_namespaceObject = require("@tippyjs/react");
5396
5394
  var react_default = /*#__PURE__*/__webpack_require__.n(react_namespaceObject);
@@ -5400,44 +5398,23 @@ var Text = __webpack_require__(348);
5400
5398
 
5401
5399
 
5402
5400
 
5403
-
5404
- // Tippyjs need the ref to be forwarded to the DOM element wrapping the children.
5405
- // This component has been created to add a wrapping span and use its ref when needed.
5406
- // See: https://github.com/atomiks/tippyjs-react#component-children
5407
- const Wrapper = /*#__PURE__*/ (0,external_react_.forwardRef)((props, ref)=>{
5408
- const childrenCount = external_react_default().Children.count(props.children);
5409
- try {
5410
- const child = external_react_default().Children.only(props.children);
5411
- const isValidElement = /*#__PURE__*/ external_react_default().isValidElement(child);
5412
- const isForwardingRef = (0,external_react_is_namespaceObject.isForwardRef)(child);
5413
- const isDomElement = isValidElement && typeof child.type === "string";
5414
- if (isForwardingRef || isDomElement) {
5415
- return /*#__PURE__*/ external_react_default().cloneElement(child, {
5416
- ref
5417
- });
5418
- } else {
5419
- return /*#__PURE__*/ external_react_default().createElement("span", {
5420
- ref: ref
5421
- }, props.children);
5422
- }
5423
- } catch {
5424
- return childrenCount < 1 ? null : /*#__PURE__*/ external_react_default().createElement("span", {
5425
- ref: ref
5426
- }, props.children);
5427
- }
5428
- });
5429
5401
  function Tooltip(props) {
5430
5402
  const { content, placement = "auto", children, ...rest } = props;
5431
- return /*#__PURE__*/ external_react_default().createElement((react_default()), {
5403
+ const triggerRef = (0,external_react_.useRef)(null);
5404
+ return /*#__PURE__*/ external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/ external_react_default().createElement("span", {
5405
+ ref: triggerRef,
5406
+ style: {
5407
+ display: "inline-flex"
5408
+ }
5409
+ }, children), /*#__PURE__*/ external_react_default().createElement((react_default()), {
5432
5410
  ...rest,
5411
+ reference: triggerRef,
5433
5412
  placement: placement,
5434
5413
  content: /*#__PURE__*/ external_react_default().createElement(Text["default"], {
5435
5414
  fontWeight: "medium",
5436
5415
  variant: "paragraph",
5437
5416
  color: "neutral.c00"
5438
5417
  }, content)
5439
- }, /*#__PURE__*/ external_react_default().createElement(Wrapper, {
5440
- children: children
5441
5418
  }));
5442
5419
  }
5443
5420
 
@@ -5558,7 +5535,7 @@ __webpack_require__.d(__webpack_exports__, {
5558
5535
  /* import */ var _Log__rspack_import_2 = __webpack_require__(7518);
5559
5536
  /* import */ var _Notification__rspack_import_3 = __webpack_require__(3341);
5560
5537
  /* import */ var _Notification_Badge__rspack_import_4 = __webpack_require__(3424);
5561
- /* import */ var _Tooltip__rspack_import_5 = __webpack_require__(7441);
5538
+ /* import */ var _Tooltip__rspack_import_5 = __webpack_require__(5845);
5562
5539
  /* import */ var _Tip__rspack_import_6 = __webpack_require__(5083);
5563
5540
  /* import */ var _StatusNotification__rspack_import_7 = __webpack_require__(1931);
5564
5541