{"version":3,"sources":["../../src/Typography.tsx","../../../../foundation/primitives-web/src/filterDOMProps.ts","../../../../../node_modules/@emotion/memoize/dist/memoize.esm.js","../../../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js","../../../../foundation/primitives-web/src/Text.tsx","../../../../foundation/primitives-web/src/textTruncation.ts","../../../../foundation/primitives-web/src/index.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Text, isWeb, isNative } from \"@xsolla/xui-primitives\";\nimport {\n  useResolvedTheme,\n  getTypographyTokens,\n  getFonts,\n  cssVar,\n} from \"@xsolla/xui-core\";\nimport type { ColorType, TypographyProps, VariantType } from \"./types\";\n\nconst getColor = (\n  color: ColorType | string,\n  theme: any\n): string | undefined => {\n  if (color === \"inherit\") {\n    return isNative ? theme?.colors?.content?.primary : undefined;\n  }\n\n  const colorMap: Record<string, string> = {\n    primary: theme?.colors?.content?.primary,\n    secondary: theme?.colors?.content?.secondary,\n    tertiary: theme?.colors?.content?.tertiary,\n    brand: theme?.colors?.content?.brand?.primary,\n    brandSecondary: theme?.colors?.content?.brand?.secondary,\n    success: theme?.colors?.content?.success?.primary,\n    warning: theme?.colors?.content?.warning?.primary,\n    alert: theme?.colors?.content?.alert?.primary,\n    neutral: theme?.colors?.content?.neutral?.primary,\n  };\n\n  return colorMap[color] || color;\n};\n\nconst isHeadingVariant = (variant: VariantType): boolean =>\n  variant === \"h1\" ||\n  variant === \"h2\" ||\n  variant === \"h3\" ||\n  variant === \"h4\" ||\n  variant === \"h5\" ||\n  variant === \"display\";\n\n// Paragraph variants (bodyLgParagraph, …) use the Figma `text` role font,\n// which differs from the `body`/compact font for the corpsite context.\nconst isParagraphVariant = (variant: VariantType): boolean =>\n  variant.endsWith(\"Paragraph\");\n\nconst getDefaultElement = (variant: VariantType): string | undefined => {\n  const elementMap: Record<string, string> = {\n    h1: \"h1\",\n    h2: \"h2\",\n    h3: \"h3\",\n    h4: \"h4\",\n    h5: \"h5\",\n  };\n  return elementMap[variant];\n};\n\nconst bodyMap: Record<string, string> = {\n  bodyLg: \"body-lg\",\n  bodyLgAccent: \"body-lg\",\n  bodyLgParagraph: \"body-lg\",\n  bodyMd: \"body-md\",\n  bodyMdAccent: \"body-md\",\n  bodyMdParagraph: \"body-md\",\n  bodySm: \"body-sm\",\n  bodySmAccent: \"body-sm\",\n  bodySmParagraph: \"body-sm\",\n  bodyXs: \"body-xs\",\n  bodyXsAccent: \"body-xs\",\n  bodyXsParagraph: \"body-xs\",\n  bodyXxs: \"body-xxs\",\n  bodyXxsAccent: \"body-xxs\",\n  bodyXxsParagraph: \"body-xxs\",\n};\n\nconst headingMap: Record<string, string> = {\n  h1: \"h1\",\n  h2: \"h2\",\n  h3: \"h3\",\n  h4: \"h4\",\n  h5: \"h5\",\n};\n\nconst getVariantStyles = (variant: VariantType, typographyTokens?: any) => {\n  if (typographyTokens) {\n    if (headingMap[variant]) {\n      const token = typographyTokens.heading[headingMap[variant]];\n      if (token) {\n        return {\n          fontSize: token.fontSize,\n          fontWeight: String(token.fontWeight),\n          lineHeight: token.lineHeight,\n          scaleStep: token.scaleStep,\n          lineHeightCategory: token.lineHeightCategory,\n        };\n      }\n    }\n\n    if (variant === \"display\" && typographyTokens.basic?.display) {\n      const token = typographyTokens.basic.display;\n      return {\n        fontSize: token.fontSize,\n        fontWeight: String(token.fontWeight),\n        lineHeight: token.lineHeight,\n        scaleStep: token.scaleStep,\n        lineHeightCategory: token.lineHeightCategory,\n      };\n    }\n\n    const bodyKey = bodyMap[variant];\n    if (bodyKey && typographyTokens.basic?.[bodyKey]) {\n      const token = typographyTokens.basic[bodyKey];\n      let fontWeight = token.fontWeight;\n      let lineHeight = token.lineHeight;\n      let lineHeightCategory = token.lineHeightCategory;\n      let lineHeightScaleStep: string | undefined;\n\n      if (variant.includes(\"Accent\") && token.accent) {\n        fontWeight = token.accent.fontWeight;\n      }\n\n      if (variant.includes(\"Paragraph\") && token.paragraph) {\n        lineHeight = token.paragraph.lineHeight;\n        lineHeightCategory = \"text\";\n        lineHeightScaleStep = token.paragraph.lineHeightScaleStep;\n      }\n\n      return {\n        fontSize: token.fontSize,\n        fontWeight: String(fontWeight),\n        lineHeight,\n        scaleStep: token.scaleStep,\n        lineHeightCategory,\n        lineHeightScaleStep,\n      };\n    }\n  }\n\n  switch (variant) {\n    case \"h1\":\n      return {\n        fontSize: 56,\n        fontWeight: \"400\",\n        lineHeight: \"56px\",\n        scaleStep: \"650\",\n        lineHeightCategory: \"display\" as const,\n      };\n    case \"h2\":\n      return {\n        fontSize: 48,\n        fontWeight: \"400\",\n        lineHeight: \"48px\",\n        scaleStep: \"550\",\n        lineHeightCategory: \"display\" as const,\n      };\n    case \"h3\":\n      return {\n        fontSize: 32,\n        fontWeight: \"400\",\n        lineHeight: \"32px\",\n        scaleStep: \"350\",\n        lineHeightCategory: \"display\" as const,\n      };\n    case \"h4\":\n      return {\n        fontSize: 24,\n        fontWeight: \"400\",\n        lineHeight: \"24px\",\n        scaleStep: \"250\",\n        lineHeightCategory: \"display\" as const,\n      };\n    case \"h5\":\n      return {\n        fontSize: 20,\n        fontWeight: \"600\",\n        lineHeight: \"20px\",\n        scaleStep: \"200\",\n        lineHeightCategory: \"display\" as const,\n      };\n    case \"display\":\n      return {\n        fontSize: 64,\n        fontWeight: \"400\",\n        lineHeight: \"64px\",\n        scaleStep: \"750\",\n        lineHeightCategory: \"display\" as const,\n      };\n    case \"bodyLg\":\n      return {\n        fontSize: 18,\n        fontWeight: \"400\",\n        lineHeight: \"24px\",\n        scaleStep: \"175\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyLgAccent\":\n      return {\n        fontSize: 18,\n        fontWeight: \"500\",\n        lineHeight: \"24px\",\n        scaleStep: \"175\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyLgParagraph\":\n      return {\n        fontSize: 18,\n        fontWeight: \"400\",\n        lineHeight: \"26px\",\n        scaleStep: \"175\",\n        lineHeightCategory: \"text\" as const,\n      };\n    case \"bodyMd\":\n      return {\n        fontSize: 16,\n        fontWeight: \"400\",\n        lineHeight: \"20px\",\n        scaleStep: \"150\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyMdAccent\":\n      return {\n        fontSize: 16,\n        fontWeight: \"500\",\n        lineHeight: \"20px\",\n        scaleStep: \"150\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyMdParagraph\":\n      return {\n        fontSize: 16,\n        fontWeight: \"400\",\n        lineHeight: \"22px\",\n        scaleStep: \"150\",\n        lineHeightCategory: \"text\" as const,\n      };\n    case \"bodySm\":\n      return {\n        fontSize: 14,\n        fontWeight: \"400\",\n        lineHeight: \"18px\",\n        scaleStep: \"125\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodySmAccent\":\n      return {\n        fontSize: 14,\n        fontWeight: \"500\",\n        lineHeight: \"18px\",\n        scaleStep: \"125\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodySmParagraph\":\n      return {\n        fontSize: 14,\n        fontWeight: \"400\",\n        lineHeight: \"20px\",\n        scaleStep: \"125\",\n        lineHeightCategory: \"text\" as const,\n      };\n    case \"bodyXs\":\n      return {\n        fontSize: 12,\n        fontWeight: \"400\",\n        lineHeight: \"16px\",\n        scaleStep: \"100\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyXsAccent\":\n      return {\n        fontSize: 12,\n        fontWeight: \"500\",\n        lineHeight: \"16px\",\n        scaleStep: \"100\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyXsParagraph\":\n      return {\n        fontSize: 12,\n        fontWeight: \"400\",\n        lineHeight: \"18px\",\n        scaleStep: \"100\",\n        lineHeightCategory: \"text\" as const,\n      };\n    case \"bodyXxs\":\n      return {\n        fontSize: 10,\n        fontWeight: \"400\",\n        lineHeight: \"14px\",\n        scaleStep: \"75\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyXxsAccent\":\n      return {\n        fontSize: 10,\n        fontWeight: \"500\",\n        lineHeight: \"14px\",\n        scaleStep: \"75\",\n        lineHeightCategory: \"compact\" as const,\n      };\n    case \"bodyXxsParagraph\":\n      return {\n        fontSize: 10,\n        fontWeight: \"400\",\n        lineHeight: \"14px\",\n        scaleStep: \"75\",\n        lineHeightCategory: \"text\" as const,\n      };\n    default:\n      return {\n        fontSize: 16,\n        fontWeight: \"400\",\n        lineHeight: \"20px\",\n        scaleStep: \"150\",\n        lineHeightCategory: \"compact\" as const,\n      };\n  }\n};\n\nfunction getResponsiveLineHeight(\n  styles: ReturnType<typeof getVariantStyles>\n): string | undefined {\n  const step = styles.lineHeightScaleStep || styles.scaleStep;\n  if (!step) return undefined;\n\n  const cat = styles.lineHeightCategory;\n  if (cat === \"display\") return cssVar.lhDisplay(step);\n  if (cat === \"text\") return cssVar.lhText(step);\n  return cssVar.lhCompact(step);\n}\n\nexport const Typography = forwardRef<any, TypographyProps>(\n  (\n    {\n      children,\n      align = \"inherit\",\n      noWrap = false,\n      variant = \"bodyMd\",\n      color = \"inherit\",\n      marginBottom = 0,\n      marginTop = 0,\n      as,\n      productContext,\n      testID,\n      themeMode,\n      themeProductContext,\n      ...rest\n    },\n    ref\n  ) => {\n    const resolvedTheme = useResolvedTheme({ themeMode, themeProductContext });\n    const { theme } = resolvedTheme;\n    // `responsive` was added to DesignSystemContext; cast for installed-package type compat\n    const responsive: boolean =\n      (resolvedTheme as { responsive?: boolean }).responsive ?? true;\n    const typographyTokens = productContext\n      ? getTypographyTokens(productContext)\n      : (theme as any).typographyTokens;\n    const variantStyles = getVariantStyles(variant, typographyTokens);\n    const colorValue = getColor(color, theme);\n    const contextFonts = productContext\n      ? getFonts(productContext)\n      : (theme.fonts as Record<string, string>);\n    const fontFamily = isHeadingVariant(variant)\n      ? contextFonts?.heading\n      : isParagraphVariant(variant)\n        ? contextFonts?.text\n        : contextFonts?.body;\n\n    const useResponsiveCSS = isWeb && responsive && variantStyles.scaleStep;\n\n    const responsiveFontSize = useResponsiveCSS\n      ? cssVar.fontSize(variantStyles.scaleStep!)\n      : undefined;\n    const responsiveLineHeight = useResponsiveCSS\n      ? getResponsiveLineHeight(variantStyles)\n      : undefined;\n\n    const resolvedAs = isWeb ? as || getDefaultElement(variant) : as;\n\n    return (\n      <Text\n        {...rest}\n        ref={ref}\n        testID={testID}\n        as={resolvedAs}\n        color={colorValue}\n        fontSize={useResponsiveCSS ? undefined : variantStyles.fontSize}\n        fontWeight={variantStyles.fontWeight}\n        fontFamily={fontFamily}\n        numberOfLines={noWrap ? 1 : undefined}\n        style={{\n          marginTop,\n          marginBottom,\n          textAlign: align === \"inherit\" ? undefined : align,\n          ...(useResponsiveCSS\n            ? { fontSize: responsiveFontSize, lineHeight: responsiveLineHeight }\n            : { lineHeight: variantStyles.lineHeight }),\n          ...(noWrap && {\n            overflow: \"hidden\",\n            textOverflow: \"ellipsis\",\n            whiteSpace: \"nowrap\",\n          }),\n          ...rest.style,\n        }}\n      >\n        {children}\n      </Text>\n    );\n  }\n);\n\nTypography.displayName = \"Typography\";\n","import React from \"react\";\nimport isPropValid from \"@emotion/is-prop-valid\";\n\n// Props that @emotion/is-prop-valid incorrectly treats as valid HTML.\n// These are React Native or component-specific props that match\n// valid HTML patterns (on* event handlers, SVG attributes).\nexport const ADDITIONAL_BLOCKED_PROPS = new Set([\n  // RN-only event handlers (pass isPropValid's on* pattern)\n  \"onPress\",\n  \"onChangeText\",\n  \"onLayout\",\n  \"onMoveShouldSetResponder\",\n  \"onResponderGrant\",\n  \"onResponderMove\",\n  \"onResponderRelease\",\n  \"onResponderTerminate\",\n  // SVG attributes that pass isPropValid\n  \"strokeWidth\",\n  // CSS properties that pass isPropValid but are used as component props\n  \"overflow\",\n  \"opacity\",\n  \"cursor\",\n  \"fontSize\",\n  \"fontWeight\",\n  \"fontFamily\",\n  \"textDecoration\",\n  // Cross-platform layout prop that Text consumes as CSS, never as an\n  // attribute. Pinned explicitly because it is now spread into the styled\n  // component rather than destructured away before it can reach the DOM.\n  \"numberOfLines\",\n]);\n\nfunction shouldForwardProp(key: string): boolean {\n  if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;\n  return isPropValid(key);\n}\n\n/**\n * Creates a React component that renders the given HTML tag\n * but filters out non-HTML props before they reach the DOM.\n *\n * Uses @emotion/is-prop-valid (same library styled-components v4\n * uses internally) to automatically block invalid HTML attributes,\n * plus a small blocklist for false positives (RN on* handlers, SVG attrs).\n *\n * Usage: `const FilteredDiv = createFilteredElement(\"div\");`\n * Then:  `const StyledBox = styled(FilteredDiv)<BoxProps>\\`...\\`;`\n *\n * styled-components can still read ALL props for CSS interpolation,\n * but only valid HTML attributes are forwarded to the DOM element.\n */\nexport function createFilteredElement(defaultTag: string) {\n  const Component = React.forwardRef<HTMLElement, Record<string, unknown>>(\n    ({ children, elementType, ...props }, ref) => {\n      const Tag = (elementType as string) || defaultTag;\n      const htmlProps: Record<string, unknown> = {};\n      for (const key of Object.keys(props)) {\n        if (shouldForwardProp(key)) {\n          htmlProps[key] = props[key];\n        }\n      }\n      return React.createElement(\n        Tag,\n        { ref, ...htmlProps },\n        children as React.ReactNode\n      );\n    }\n  );\n  Component.displayName = `Filtered(${defaultTag})`;\n  return Component;\n}\n","function memoize(fn) {\n  var cache = {};\n  return function (arg) {\n    if (cache[arg] === undefined) cache[arg] = fn(arg);\n    return cache[arg];\n  };\n}\n\nexport default memoize;\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n  /* o */\n  && prop.charCodeAt(1) === 110\n  /* n */\n  && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\nimport { truncationStyles } from \"./textTruncation\";\n\nconst FilteredSpan = createFilteredElement(\"span\");\n\nconst StyledText = styled(FilteredSpan)<TextProps>`\n  color: ${(props) => props.color || \"inherit\"};\n  font-size: ${(props) =>\n    typeof props.fontSize === \"number\"\n      ? `${props.fontSize}px`\n      : props.fontSize || \"inherit\"};\n  font-weight: ${(props) => props.fontWeight || \"normal\"};\n  font-family: ${(props) =>\n    props.fontFamily ||\n    '\"Aktiv Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif'};\n  line-height: ${(props) =>\n    typeof props.lineHeight === \"number\"\n      ? `${props.lineHeight}px`\n      : props.lineHeight || \"inherit\"};\n  white-space: ${(props) => props.whiteSpace || \"normal\"};\n  text-align: ${(props) => props.textAlign || \"inherit\"};\n  text-decoration: ${(props) => props.textDecoration || \"none\"};\n\n  /* Keep last: single-line truncation has to win over white-space above. */\n  ${(props) => truncationStyles(props.numberOfLines)}\n`;\n\nexport const Text: React.FC<TextProps> = ({\n  style,\n  className,\n  id,\n  role,\n  testID,\n  \"data-testid\": dataTestId,\n  ...props\n}) => {\n  return (\n    <StyledText\n      {...props}\n      style={style}\n      className={className}\n      id={id}\n      role={role}\n      data-testid={dataTestId || testID}\n    />\n  );\n};\n","/**\n * Web implementation of the cross-platform `numberOfLines` text prop.\n *\n * Native maps `numberOfLines` straight onto `RNText`. A web `<span>` has no\n * equivalent, so emit the CSS that produces the same result.\n *\n * Two details matter for the single-line case:\n * - `text-overflow` only takes effect on a block container, so the inline\n *   `<span>` is promoted to `display: block` and capped at `max-width: 100%`.\n * - `min-width: 0` lets the text shrink below its own content width when it\n *   sits in a flex row. Without it a `nowrap` label keeps its full intrinsic\n *   width and pushes its siblings (icons, chevrons) out of a fixed-width field.\n *\n * Returns an empty string when there is nothing to clamp, so the declaration\n * block stays untouched for the majority of callers.\n */\nexport const truncationStyles = (numberOfLines?: number): string => {\n  if (!numberOfLines || numberOfLines < 1) return \"\";\n\n  if (numberOfLines === 1) {\n    return `\n      display: block;\n      max-width: 100%;\n      min-width: 0;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n    `;\n  }\n\n  return `\n    display: -webkit-box;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp: ${numberOfLines};\n    line-clamp: ${numberOfLines};\n    max-width: 100%;\n    min-width: 0;\n    overflow: hidden;\n  `;\n};\n","export * from \"./Box\";\nexport * from \"./Text\";\nexport * from \"./Spinner\";\nexport * from \"./Icon\";\nexport * from \"./Divider\";\nexport * from \"./Input\";\nexport * from \"./TextArea\";\nexport * from \"./LinearGradient\";\n\nexport const isWeb = true;\nexport const isNative = false;\n"],"mappings":";AAAA,SAAS,kBAAkB;;;ACA3B,OAAO,WAAW;;;ACAlB,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,CAAC;AACb,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,GAAG,MAAM,OAAW,OAAM,GAAG,IAAI,GAAG,GAAG;AACjD,WAAO,MAAM,GAAG;AAAA,EAClB;AACF;AAEA,IAAO,sBAAQ;;;ACNf,IAAI,kBAAkB;AAEtB,IAAI,QAAQ;AAAA,EAAQ,SAAU,MAAM;AAClC,WAAO,gBAAgB,KAAK,IAAI,KAAK,KAAK,WAAW,CAAC,MAAM,OAEzD,KAAK,WAAW,CAAC,MAAM,OAEvB,KAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;AAEA,IAAO,4BAAQ;;;AFRR,IAAM,2BAA2B,oBAAI,IAAI;AAAA;AAAA,EAE9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAIA;AACF,CAAC;AAED,SAAS,kBAAkB,KAAsB;AAC/C,MAAI,yBAAyB,IAAI,GAAG,EAAG,QAAO;AAC9C,SAAO,0BAAY,GAAG;AACxB;AAgBO,SAA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