@xsolla/xui-notification-web 0.64.0-pr56.1768348754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.tsx","../../../primitives-web/src/Box.tsx","../../../primitives-web/src/Text.tsx","../../../primitives-web/src/Spinner.tsx","../../../primitives-web/src/Icon.tsx","../../../primitives-web/src/Divider.tsx","../../../primitives-web/src/Input.tsx","../../../primitives-web/src/TextArea.tsx","../../src/Notification.tsx"],"sourcesContent":["export * from \"./Notification\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledBox = styled.div<BoxProps>`\n display: flex;\n box-sizing: border-box;\n background-color: ${(props) => props.backgroundColor || \"transparent\"};\n border-color: ${(props) => props.borderColor || \"transparent\"};\n border-width: ${(props) =>\n typeof props.borderWidth === \"number\"\n ? `${props.borderWidth}px`\n : props.borderWidth || 0};\n\n ${(props) =>\n props.borderBottomWidth !== undefined &&\n `\n border-bottom-width: ${typeof props.borderBottomWidth === \"number\" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};\n border-bottom-color: ${props.borderBottomColor || props.borderColor || \"transparent\"};\n border-bottom-style: solid;\n `}\n ${(props) =>\n props.borderTopWidth !== undefined &&\n `\n border-top-width: ${typeof props.borderTopWidth === \"number\" ? `${props.borderTopWidth}px` : props.borderTopWidth};\n border-top-color: ${props.borderTopColor || props.borderColor || \"transparent\"};\n border-top-style: solid;\n `}\n ${(props) =>\n props.borderLeftWidth !== undefined &&\n `\n border-left-width: ${typeof props.borderLeftWidth === \"number\" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};\n border-left-color: ${props.borderLeftColor || props.borderColor || \"transparent\"};\n border-left-style: solid;\n `}\n ${(props) =>\n props.borderRightWidth !== undefined &&\n `\n border-right-width: ${typeof props.borderRightWidth === \"number\" ? `${props.borderRightWidth}px` : props.borderRightWidth};\n border-right-color: ${props.borderRightColor || props.borderColor || \"transparent\"};\n border-right-style: solid;\n `}\n\n border-style: ${(props) =>\n props.borderStyle ||\n (props.borderWidth ||\n props.borderBottomWidth ||\n props.borderTopWidth ||\n props.borderLeftWidth ||\n props.borderRightWidth\n ? \"solid\"\n : \"none\")};\n border-radius: ${(props) =>\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius || 0};\n height: ${(props) =>\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"auto\"};\n width: ${(props) =>\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"auto\"};\n min-width: ${(props) =>\n typeof props.minWidth === \"number\"\n ? `${props.minWidth}px`\n : props.minWidth || \"auto\"};\n min-height: ${(props) =>\n typeof props.minHeight === \"number\"\n ? `${props.minHeight}px`\n : props.minHeight || \"auto\"};\n\n padding: ${(props) =>\n typeof props.padding === \"number\"\n ? `${props.padding}px`\n : props.padding || 0};\n ${(props) =>\n props.paddingHorizontal &&\n `\n padding-left: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n padding-right: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n `}\n ${(props) =>\n props.paddingVertical &&\n `\n padding-top: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n padding-bottom: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n `}\n ${(props) =>\n props.paddingTop !== undefined &&\n `padding-top: ${typeof props.paddingTop === \"number\" ? `${props.paddingTop}px` : props.paddingTop};`}\n ${(props) =>\n props.paddingBottom !== undefined &&\n `padding-bottom: ${typeof props.paddingBottom === \"number\" ? `${props.paddingBottom}px` : props.paddingBottom};`}\n ${(props) =>\n props.paddingLeft !== undefined &&\n `padding-left: ${typeof props.paddingLeft === \"number\" ? `${props.paddingLeft}px` : props.paddingLeft};`}\n ${(props) =>\n props.paddingRight !== undefined &&\n `padding-right: ${typeof props.paddingRight === \"number\" ? `${props.paddingRight}px` : props.paddingRight};`}\n\n margin: ${(props) =>\n typeof props.margin === \"number\" ? `${props.margin}px` : props.margin || 0};\n ${(props) =>\n props.marginTop !== undefined &&\n `margin-top: ${typeof props.marginTop === \"number\" ? `${props.marginTop}px` : props.marginTop};`}\n ${(props) =>\n props.marginBottom !== undefined &&\n `margin-bottom: ${typeof props.marginBottom === \"number\" ? `${props.marginBottom}px` : props.marginBottom};`}\n ${(props) =>\n props.marginLeft !== undefined &&\n `margin-left: ${typeof props.marginLeft === \"number\" ? `${props.marginLeft}px` : props.marginLeft};`}\n ${(props) =>\n props.marginRight !== undefined &&\n `margin-right: ${typeof props.marginRight === \"number\" ? `${props.marginRight}px` : props.marginRight};`}\n\n flex-direction: ${(props) => props.flexDirection || \"column\"};\n flex-wrap: ${(props) => props.flexWrap || \"nowrap\"};\n align-items: ${(props) => props.alignItems || \"stretch\"};\n justify-content: ${(props) => props.justifyContent || \"flex-start\"};\n cursor: ${(props) =>\n props.cursor\n ? props.cursor\n : props.onClick || props.onPress\n ? \"pointer\"\n : \"inherit\"};\n position: ${(props) => props.position || \"static\"};\n top: ${(props) =>\n typeof props.top === \"number\" ? `${props.top}px` : props.top};\n bottom: ${(props) =>\n typeof props.bottom === \"number\" ? `${props.bottom}px` : props.bottom};\n left: ${(props) =>\n typeof props.left === \"number\" ? `${props.left}px` : props.left};\n right: ${(props) =>\n typeof props.right === \"number\" ? `${props.right}px` : props.right};\n flex: ${(props) => props.flex};\n flex-shrink: ${(props) => props.flexShrink ?? 1};\n gap: ${(props) =>\n typeof props.gap === \"number\" ? `${props.gap}px` : props.gap || 0};\n align-self: ${(props) => props.alignSelf || \"auto\"};\n overflow: ${(props) => props.overflow || \"visible\"};\n overflow-x: ${(props) => props.overflowX || \"visible\"};\n overflow-y: ${(props) => props.overflowY || \"visible\"};\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) => (props.disabled ? 0.5 : 1)};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n &:hover {\n ${(props) =>\n props.hoverStyle?.backgroundColor &&\n `background-color: ${props.hoverStyle.backgroundColor};`}\n ${(props) =>\n props.hoverStyle?.borderColor &&\n `border-color: ${props.hoverStyle.borderColor};`}\n }\n\n &:active {\n ${(props) =>\n props.pressStyle?.backgroundColor &&\n `background-color: ${props.pressStyle.backgroundColor};`}\n }\n`;\n\nexport const Box = React.forwardRef<\n HTMLDivElement | HTMLButtonElement,\n BoxProps\n>(\n (\n {\n children,\n onPress,\n onKeyDown,\n onKeyUp,\n role,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-current\": ariaCurrent,\n \"aria-disabled\": ariaDisabled,\n \"aria-live\": ariaLive,\n \"aria-busy\": ariaBusy,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-expanded\": ariaExpanded,\n \"aria-haspopup\": ariaHasPopup,\n \"aria-pressed\": ariaPressed,\n \"aria-controls\": ariaControls,\n tabIndex,\n as,\n src,\n alt,\n type,\n disabled,\n id,\n ...props\n },\n ref\n ) => {\n // Handle as=\"img\" for rendering images with proper border-radius\n if (as === \"img\" && src) {\n return (\n <img\n src={src}\n alt={alt || \"\"}\n style={{\n display: \"block\",\n objectFit: \"cover\",\n width:\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width,\n height:\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height,\n borderRadius:\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius,\n position: props.position,\n top: typeof props.top === \"number\" ? `${props.top}px` : props.top,\n left:\n typeof props.left === \"number\" ? `${props.left}px` : props.left,\n right:\n typeof props.right === \"number\"\n ? `${props.right}px`\n : props.right,\n bottom:\n typeof props.bottom === \"number\"\n ? `${props.bottom}px`\n : props.bottom,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n as={as}\n id={id}\n type={as === \"button\" ? type || \"button\" : undefined}\n disabled={as === \"button\" ? disabled : undefined}\n onClick={onPress}\n onKeyDown={onKeyDown}\n onKeyUp={onKeyUp}\n role={role}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-current={ariaCurrent}\n aria-disabled={ariaDisabled}\n aria-busy={ariaBusy}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-pressed={ariaPressed}\n aria-controls={ariaControls}\n aria-live={ariaLive}\n tabIndex={tabIndex !== undefined ? tabIndex : undefined}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledText = styled.span<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 '\"Pilat Wide Bold\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif !important'};\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\nexport const Text: React.FC<TextProps> = ({\n style,\n className,\n id,\n role,\n ...props\n}) => {\n return (\n <StyledText\n {...props}\n style={style}\n className={className}\n id={id}\n role={role}\n />\n );\n};\n","import React from \"react\";\nimport styled, { keyframes } from \"styled-components\";\nimport type { SpinnerProps } from \"@xsolla/xui-primitives-core\";\n\nconst rotate = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`;\n\nconst StyledSpinner = styled.div<SpinnerProps>`\n width: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n height: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n border: ${(props) => props.strokeWidth || 2}px solid\n ${(props) => props.color || \"currentColor\"};\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: ${rotate} 1s linear infinite;\n`;\n\nexport const Spinner: React.FC<SpinnerProps> = ({\n role = \"status\",\n \"aria-label\": ariaLabel,\n \"aria-live\": ariaLive = \"polite\",\n \"aria-describedby\": ariaDescribedBy,\n testID,\n ...props\n}) => {\n return (\n <StyledSpinner\n role={role}\n aria-label={ariaLabel}\n aria-live={ariaLive}\n aria-describedby={ariaDescribedBy}\n data-testid={testID}\n {...props}\n />\n );\n};\n\nSpinner.displayName = \"Spinner\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledIcon = styled.div<IconProps>`\n display: flex;\n align-items: center;\n justify-content: center;\n width: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n height: ${(props) =>\n typeof props.size === \"number\" ? `${props.size}px` : props.size || \"24px\"};\n color: ${(props) => props.color || \"currentColor\"};\n\n svg {\n width: 100%;\n height: 100%;\n fill: none;\n stroke: currentColor;\n }\n`;\n\nexport const Icon: React.FC<IconProps> = ({ children, ...props }) => {\n return <StyledIcon {...props}>{children}</StyledIcon>;\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport { DividerProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledDivider = styled.div<DividerProps>`\n background-color: ${(props) =>\n props.dashStroke\n ? \"transparent\"\n : props.color || \"rgba(255, 255, 255, 0.15)\"};\n width: ${(props) =>\n props.vertical\n ? typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"1px\"\n : \"100%\"};\n height: ${(props) =>\n props.vertical\n ? \"100%\"\n : typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"1px\"};\n\n ${(props) =>\n props.dashStroke &&\n `\n border-style: dashed;\n border-color: ${props.color || \"rgba(255, 255, 255, 0.15)\"};\n border-width: 0;\n ${\n props.vertical\n ? `\n border-left-width: ${typeof props.width === \"number\" ? `${props.width}px` : props.width || \"1px\"};\n height: 100%;\n `\n : `\n border-top-width: ${typeof props.height === \"number\" ? `${props.height}px` : props.height || \"1px\"};\n width: 100%;\n `\n }\n `}\n`;\n\nexport const Divider: React.FC<DividerProps> = (props) => {\n return <StyledDivider {...props} />;\n};\n","import React, { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { InputPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledInput = styled.input<InputPrimitiveProps>`\n background: transparent;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\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-family: inherit;\n text-align: inherit;\n\n &::placeholder {\n color: ${(props) =>\n props.placeholderTextColor || \"rgba(255, 255, 255, 0.5)\"};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const InputPrimitive = forwardRef<HTMLInputElement, InputPrimitiveProps>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n secureTextEntry,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n name,\n type,\n inputMode,\n autoComplete,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n ...rest\n },\n ref\n ) => {\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (onChange) {\n onChange(e);\n }\n if (onChangeText) {\n onChangeText(e.target.value);\n }\n };\n\n // Always pass value to make it a controlled input\n const inputValue = value !== undefined ? value : \"\";\n\n return (\n <StyledInput\n ref={ref}\n id={id}\n value={inputValue}\n name={name}\n placeholder={placeholder}\n onChange={handleChange}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n disabled={disabled}\n type={secureTextEntry ? \"password\" : type || \"text\"}\n inputMode={inputMode}\n autoComplete={autoComplete}\n style={style}\n color={color}\n fontSize={fontSize}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n aria-invalid={ariaInvalid}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n aria-disabled={ariaDisabled}\n data-testid={dataTestId}\n {...rest}\n />\n );\n }\n);\n\nInputPrimitive.displayName = \"InputPrimitive\";\n","import React, { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { TextAreaPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nconst StyledTextArea = styled.textarea<TextAreaPrimitiveProps>`\n background: transparent;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\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-family: inherit;\n text-align: inherit;\n resize: none;\n\n &::placeholder {\n color: ${(props) =>\n props.placeholderTextColor || \"rgba(255, 255, 255, 0.5)\"};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n`;\n\nexport const TextAreaPrimitive = forwardRef<\n HTMLTextAreaElement,\n TextAreaPrimitiveProps\n>(\n (\n {\n value,\n placeholder,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n rows,\n },\n ref\n ) => {\n return (\n <StyledTextArea\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChange={(e) => onChangeText?.(e.target.value)}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyDown={onKeyDown}\n disabled={disabled}\n style={style}\n color={color}\n fontSize={fontSize}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n rows={rows}\n />\n );\n }\n);\n\nTextAreaPrimitive.displayName = \"TextAreaPrimitive\";\n","import React from \"react\";\n// @ts-ignore\nimport { Box, Text, Icon } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\nimport { X, AlertCircle, Check } from \"@xsolla/xui-icons\";\n\nexport interface NotificationProps {\n tone?: \"neutral\" | \"success\" | \"warning\" | \"alert\";\n type?: \"toast\" | \"inline\";\n title?: string;\n message?: string;\n actionLabel?: string;\n onAction?: () => void;\n onClose?: () => void;\n showClose?: boolean;\n}\n\nexport const Notification: React.FC<NotificationProps> = ({\n tone = \"neutral\",\n type = \"toast\",\n title,\n message,\n actionLabel,\n onAction,\n onClose,\n showClose = true,\n}) => {\n const { theme } = useDesignSystem();\n const config = theme.sizing.notification(type);\n\n const toneConfig = {\n neutral: {\n bg: theme.colors.background.neutral.secondary,\n content: theme.colors.content.neutral.primary,\n icon: theme.colors.content.neutral.primary,\n },\n success: {\n bg: theme.colors.background.success.secondary,\n content: theme.colors.content.success.primary,\n icon: theme.colors.content.success.primary,\n },\n warning: {\n bg: theme.colors.background.warning.secondary,\n content: theme.colors.content.warning.primary,\n icon: theme.colors.content.warning.primary,\n },\n alert: {\n bg: theme.colors.background.alert.secondary,\n content: theme.colors.content.alert.primary,\n icon: theme.colors.content.alert.primary,\n },\n }[tone];\n\n const renderIcon = () => {\n switch (tone) {\n case \"success\":\n return <Check size={config.iconSize} color={toneConfig.icon} />;\n case \"warning\":\n case \"alert\":\n return <AlertCircle size={config.iconSize} color={toneConfig.icon} />;\n default:\n return <AlertCircle size={config.iconSize} color={toneConfig.icon} />;\n }\n };\n\n return (\n <Box\n backgroundColor={toneConfig.bg}\n borderRadius={config.radius}\n paddingHorizontal={config.paddingHorizontal}\n paddingVertical={config.paddingVertical}\n width={config.width}\n flexDirection=\"row\"\n alignItems={type === \"inline\" ? \"center\" : \"flex-start\"}\n gap={16}\n >\n <Box\n width={config.iconWrapperSize}\n height={config.iconWrapperSize}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {renderIcon()}\n </Box>\n\n <Box\n flex={1}\n flexDirection={type === \"inline\" ? \"row\" : \"column\"}\n gap={type === \"inline\" ? 28 : config.gap}\n alignItems={type === \"inline\" ? \"center\" : \"flex-start\"}\n >\n <Box flex={1} gap={4}>\n {title && (\n <Text\n color={theme.colors.content.primary}\n fontSize={config.titleSize}\n fontWeight=\"500\"\n >\n {title}\n </Text>\n )}\n {message && (\n <Text\n color={theme.colors.content.secondary}\n fontSize={config.messageSize}\n >\n {message}\n </Text>\n )}\n </Box>\n\n {actionLabel && (\n <Box onPress={onAction} paddingVertical={type === \"inline\" ? 0 : 8}>\n <Text\n color={theme.colors.content.primary}\n fontSize={16}\n fontWeight=\"500\"\n letterSpacing={0.4}\n whiteSpace=\"nowrap\"\n >\n {actionLabel}\n </Text>\n </Box>\n )}\n </Box>\n\n {showClose && (\n <Box onPress={onClose} marginTop={type === \"inline\" ? 0 : 2}>\n <Box\n width={24}\n height={24}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <X size={18} color={theme.colors.content.primary} />\n </Box>\n </Box>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAClB,+BAAmB;AAuMX;AApMR,IAAM,YAAY,yBAAAA,QAAO;AAAA;AAAA;AAAA,sBAGH,CAAC,UAAU,MAAM,mBAAmB,aAAa;AAAA,kBACrD,CAAC,UAAU,MAAM,eAAe,aAAa;AAAA,kBAC7C,CAAC,UACf,OAAO,MAAM,gBAAgB,WACzB,GAAG,MAAM,WAAW,OACpB,MAAM,eAAe,CAAC;AAAA;AAAA,IAE1B,CAAC,UACD,MAAM,sBAAs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AAO;AAAA,YACf,YAAW;AAAA,YACX,gBAAe;AAAA,YAEd,qBAAW;AAAA;AAAA,QACd;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,eAAe,SAAS,WAAW,QAAQ;AAAA,YAC3C,KAAK,SAAS,WAAW,KAAK,OAAO;AAAA,YACrC,YAAY,SAAS,WAAW,WAAW;AAAA,YAE3C;AAAA,4DAAC,OAAI,MAAM,GAAG,KAAK,GAChB;AAAA,yBACC;AAAA,kBAAC;AAAA;AAAA,oBACC,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,UAAU,OAAO;AAAA,oBACjB,YAAW;AAAA,oBAEV;AAAA;AAAA,gBACH;AAAA,gBAED,WACC;AAAA,kBAAC;AAAA;AAAA,oBACC,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,UAAU,OAAO;AAAA,oBAEhB;AAAA;AAAA,gBACH;AAAA,iBAEJ;AAAA,cAEC,eACC,6CAAC,OAAI,SAAS,UAAU,iBAAiB,SAAS,WAAW,IAAI,GAC/D;AAAA,gBAAC;AAAA;AAAA,kBACC,OAAO,MAAM,OAAO,QAAQ;AAAA,kBAC5B,UAAU;AAAA,kBACV,YAAW;AAAA,kBACX,eAAe;AAAA,kBACf,YAAW;AAAA,kBAEV;AAAA;AAAA,cACH,GACF;AAAA;AAAA;AAAA,QAEJ;AAAA,QAEC,aACC,6CAAC,OAAI,SAAS,SAAS,WAAW,SAAS,WAAW,IAAI,GACxD;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,YAAW;AAAA,YACX,gBAAe;AAAA,YAEf,uDAAC,sBAAE,MAAM,IAAI,OAAO,MAAM,OAAO,QAAQ,SAAS;AAAA;AAAA,QACpD,GACF;AAAA;AAAA;AAAA,EAEJ;AAEJ;","names":["styled","React","import_styled_components","import_jsx_runtime","styled","import_styled_components","import_jsx_runtime","styled","import_styled_components","import_jsx_runtime","styled","import_styled_components","import_jsx_runtime","styled","import_react","import_styled_components","import_jsx_runtime","styled","import_react","import_styled_components","import_jsx_runtime","styled","import_jsx_runtime"]}
package/index.mjs ADDED
@@ -0,0 +1,578 @@
1
+ // ../primitives-web/src/Box.tsx
2
+ import React from "react";
3
+ import styled from "styled-components";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var StyledBox = styled.div`
6
+ display: flex;
7
+ box-sizing: border-box;
8
+ background-color: ${(props) => props.backgroundColor || "transparent"};
9
+ border-color: ${(props) => props.borderColor || "transparent"};
10
+ border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
11
+
12
+ ${(props) => props.borderBottomWidth !== void 0 && `
13
+ border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
14
+ border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
15
+ border-bottom-style: solid;
16
+ `}
17
+ ${(props) => props.borderTopWidth !== void 0 && `
18
+ border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
19
+ border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
20
+ border-top-style: solid;
21
+ `}
22
+ ${(props) => props.borderLeftWidth !== void 0 && `
23
+ border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
24
+ border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
25
+ border-left-style: solid;
26
+ `}
27
+ ${(props) => props.borderRightWidth !== void 0 && `
28
+ border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
29
+ border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
30
+ border-right-style: solid;
31
+ `}
32
+
33
+ border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
34
+ border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
35
+ height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
36
+ width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
37
+ min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
38
+ min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
39
+
40
+ padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
41
+ ${(props) => props.paddingHorizontal && `
42
+ padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
43
+ padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
44
+ `}
45
+ ${(props) => props.paddingVertical && `
46
+ padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
47
+ padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
48
+ `}
49
+ ${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
50
+ ${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
51
+ ${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
52
+ ${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
53
+
54
+ margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
55
+ ${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
56
+ ${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
57
+ ${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
58
+ ${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
59
+
60
+ flex-direction: ${(props) => props.flexDirection || "column"};
61
+ flex-wrap: ${(props) => props.flexWrap || "nowrap"};
62
+ align-items: ${(props) => props.alignItems || "stretch"};
63
+ justify-content: ${(props) => props.justifyContent || "flex-start"};
64
+ cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
65
+ position: ${(props) => props.position || "static"};
66
+ top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
67
+ bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
68
+ left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
69
+ right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
70
+ flex: ${(props) => props.flex};
71
+ flex-shrink: ${(props) => props.flexShrink ?? 1};
72
+ gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
73
+ align-self: ${(props) => props.alignSelf || "auto"};
74
+ overflow: ${(props) => props.overflow || "visible"};
75
+ overflow-x: ${(props) => props.overflowX || "visible"};
76
+ overflow-y: ${(props) => props.overflowY || "visible"};
77
+ z-index: ${(props) => props.zIndex};
78
+ opacity: ${(props) => props.disabled ? 0.5 : 1};
79
+ pointer-events: ${(props) => props.disabled ? "none" : "auto"};
80
+
81
+ &:hover {
82
+ ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
83
+ ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
84
+ }
85
+
86
+ &:active {
87
+ ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
88
+ }
89
+ `;
90
+ var Box = React.forwardRef(
91
+ ({
92
+ children,
93
+ onPress,
94
+ onKeyDown,
95
+ onKeyUp,
96
+ role,
97
+ "aria-label": ariaLabel,
98
+ "aria-labelledby": ariaLabelledBy,
99
+ "aria-current": ariaCurrent,
100
+ "aria-disabled": ariaDisabled,
101
+ "aria-live": ariaLive,
102
+ "aria-busy": ariaBusy,
103
+ "aria-describedby": ariaDescribedBy,
104
+ "aria-expanded": ariaExpanded,
105
+ "aria-haspopup": ariaHasPopup,
106
+ "aria-pressed": ariaPressed,
107
+ "aria-controls": ariaControls,
108
+ tabIndex,
109
+ as,
110
+ src,
111
+ alt,
112
+ type,
113
+ disabled,
114
+ id,
115
+ ...props
116
+ }, ref) => {
117
+ if (as === "img" && src) {
118
+ return /* @__PURE__ */ jsx(
119
+ "img",
120
+ {
121
+ src,
122
+ alt: alt || "",
123
+ style: {
124
+ display: "block",
125
+ objectFit: "cover",
126
+ width: typeof props.width === "number" ? `${props.width}px` : props.width,
127
+ height: typeof props.height === "number" ? `${props.height}px` : props.height,
128
+ borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
129
+ position: props.position,
130
+ top: typeof props.top === "number" ? `${props.top}px` : props.top,
131
+ left: typeof props.left === "number" ? `${props.left}px` : props.left,
132
+ right: typeof props.right === "number" ? `${props.right}px` : props.right,
133
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
134
+ }
135
+ }
136
+ );
137
+ }
138
+ return /* @__PURE__ */ jsx(
139
+ StyledBox,
140
+ {
141
+ ref,
142
+ as,
143
+ id,
144
+ type: as === "button" ? type || "button" : void 0,
145
+ disabled: as === "button" ? disabled : void 0,
146
+ onClick: onPress,
147
+ onKeyDown,
148
+ onKeyUp,
149
+ role,
150
+ "aria-label": ariaLabel,
151
+ "aria-labelledby": ariaLabelledBy,
152
+ "aria-current": ariaCurrent,
153
+ "aria-disabled": ariaDisabled,
154
+ "aria-busy": ariaBusy,
155
+ "aria-describedby": ariaDescribedBy,
156
+ "aria-expanded": ariaExpanded,
157
+ "aria-haspopup": ariaHasPopup,
158
+ "aria-pressed": ariaPressed,
159
+ "aria-controls": ariaControls,
160
+ "aria-live": ariaLive,
161
+ tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
162
+ ...props,
163
+ children
164
+ }
165
+ );
166
+ }
167
+ );
168
+ Box.displayName = "Box";
169
+
170
+ // ../primitives-web/src/Text.tsx
171
+ import styled2 from "styled-components";
172
+ import { jsx as jsx2 } from "react/jsx-runtime";
173
+ var StyledText = styled2.span`
174
+ color: ${(props) => props.color || "inherit"};
175
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
176
+ font-weight: ${(props) => props.fontWeight || "normal"};
177
+ font-family: ${(props) => props.fontFamily || '"Pilat Wide Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important'};
178
+ line-height: ${(props) => typeof props.lineHeight === "number" ? `${props.lineHeight}px` : props.lineHeight || "inherit"};
179
+ white-space: ${(props) => props.whiteSpace || "normal"};
180
+ text-align: ${(props) => props.textAlign || "inherit"};
181
+ text-decoration: ${(props) => props.textDecoration || "none"};
182
+ `;
183
+ var Text = ({
184
+ style,
185
+ className,
186
+ id,
187
+ role,
188
+ ...props
189
+ }) => {
190
+ return /* @__PURE__ */ jsx2(
191
+ StyledText,
192
+ {
193
+ ...props,
194
+ style,
195
+ className,
196
+ id,
197
+ role
198
+ }
199
+ );
200
+ };
201
+
202
+ // ../primitives-web/src/Spinner.tsx
203
+ import styled3, { keyframes } from "styled-components";
204
+ import { jsx as jsx3 } from "react/jsx-runtime";
205
+ var rotate = keyframes`
206
+ from {
207
+ transform: rotate(0deg);
208
+ }
209
+ to {
210
+ transform: rotate(360deg);
211
+ }
212
+ `;
213
+ var StyledSpinner = styled3.div`
214
+ width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
215
+ height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
216
+ border: ${(props) => props.strokeWidth || 2}px solid
217
+ ${(props) => props.color || "currentColor"};
218
+ border-bottom-color: transparent;
219
+ border-radius: 50%;
220
+ display: inline-block;
221
+ box-sizing: border-box;
222
+ animation: ${rotate} 1s linear infinite;
223
+ `;
224
+ var Spinner = ({
225
+ role = "status",
226
+ "aria-label": ariaLabel,
227
+ "aria-live": ariaLive = "polite",
228
+ "aria-describedby": ariaDescribedBy,
229
+ testID,
230
+ ...props
231
+ }) => {
232
+ return /* @__PURE__ */ jsx3(
233
+ StyledSpinner,
234
+ {
235
+ role,
236
+ "aria-label": ariaLabel,
237
+ "aria-live": ariaLive,
238
+ "aria-describedby": ariaDescribedBy,
239
+ "data-testid": testID,
240
+ ...props
241
+ }
242
+ );
243
+ };
244
+ Spinner.displayName = "Spinner";
245
+
246
+ // ../primitives-web/src/Icon.tsx
247
+ import styled4 from "styled-components";
248
+ import { jsx as jsx4 } from "react/jsx-runtime";
249
+ var StyledIcon = styled4.div`
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
254
+ height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
255
+ color: ${(props) => props.color || "currentColor"};
256
+
257
+ svg {
258
+ width: 100%;
259
+ height: 100%;
260
+ fill: none;
261
+ stroke: currentColor;
262
+ }
263
+ `;
264
+
265
+ // ../primitives-web/src/Divider.tsx
266
+ import styled5 from "styled-components";
267
+ import { jsx as jsx5 } from "react/jsx-runtime";
268
+ var StyledDivider = styled5.div`
269
+ background-color: ${(props) => props.dashStroke ? "transparent" : props.color || "rgba(255, 255, 255, 0.15)"};
270
+ width: ${(props) => props.vertical ? typeof props.width === "number" ? `${props.width}px` : props.width || "1px" : "100%"};
271
+ height: ${(props) => props.vertical ? "100%" : typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
272
+
273
+ ${(props) => props.dashStroke && `
274
+ border-style: dashed;
275
+ border-color: ${props.color || "rgba(255, 255, 255, 0.15)"};
276
+ border-width: 0;
277
+ ${props.vertical ? `
278
+ border-left-width: ${typeof props.width === "number" ? `${props.width}px` : props.width || "1px"};
279
+ height: 100%;
280
+ ` : `
281
+ border-top-width: ${typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
282
+ width: 100%;
283
+ `}
284
+ `}
285
+ `;
286
+
287
+ // ../primitives-web/src/Input.tsx
288
+ import { forwardRef } from "react";
289
+ import styled6 from "styled-components";
290
+ import { jsx as jsx6 } from "react/jsx-runtime";
291
+ var StyledInput = styled6.input`
292
+ background: transparent;
293
+ border: none;
294
+ outline: none;
295
+ width: 100%;
296
+ height: 100%;
297
+ padding: 0;
298
+ margin: 0;
299
+ color: ${(props) => props.color || "inherit"};
300
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
301
+ font-family: inherit;
302
+ text-align: inherit;
303
+
304
+ &::placeholder {
305
+ color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
306
+ }
307
+
308
+ &:disabled {
309
+ cursor: not-allowed;
310
+ }
311
+ `;
312
+ var InputPrimitive = forwardRef(
313
+ ({
314
+ value,
315
+ placeholder,
316
+ onChange,
317
+ onChangeText,
318
+ onFocus,
319
+ onBlur,
320
+ onKeyDown,
321
+ disabled,
322
+ secureTextEntry,
323
+ style,
324
+ color,
325
+ fontSize,
326
+ placeholderTextColor,
327
+ maxLength,
328
+ name,
329
+ type,
330
+ inputMode,
331
+ autoComplete,
332
+ id,
333
+ "aria-invalid": ariaInvalid,
334
+ "aria-describedby": ariaDescribedBy,
335
+ "aria-labelledby": ariaLabelledBy,
336
+ "aria-label": ariaLabel,
337
+ "aria-disabled": ariaDisabled,
338
+ "data-testid": dataTestId,
339
+ ...rest
340
+ }, ref) => {
341
+ const handleChange = (e) => {
342
+ if (onChange) {
343
+ onChange(e);
344
+ }
345
+ if (onChangeText) {
346
+ onChangeText(e.target.value);
347
+ }
348
+ };
349
+ const inputValue = value !== void 0 ? value : "";
350
+ return /* @__PURE__ */ jsx6(
351
+ StyledInput,
352
+ {
353
+ ref,
354
+ id,
355
+ value: inputValue,
356
+ name,
357
+ placeholder,
358
+ onChange: handleChange,
359
+ onFocus,
360
+ onBlur,
361
+ onKeyDown,
362
+ disabled,
363
+ type: secureTextEntry ? "password" : type || "text",
364
+ inputMode,
365
+ autoComplete,
366
+ style,
367
+ color,
368
+ fontSize,
369
+ placeholderTextColor,
370
+ maxLength,
371
+ "aria-invalid": ariaInvalid,
372
+ "aria-describedby": ariaDescribedBy,
373
+ "aria-labelledby": ariaLabelledBy,
374
+ "aria-label": ariaLabel,
375
+ "aria-disabled": ariaDisabled,
376
+ "data-testid": dataTestId,
377
+ ...rest
378
+ }
379
+ );
380
+ }
381
+ );
382
+ InputPrimitive.displayName = "InputPrimitive";
383
+
384
+ // ../primitives-web/src/TextArea.tsx
385
+ import { forwardRef as forwardRef2 } from "react";
386
+ import styled7 from "styled-components";
387
+ import { jsx as jsx7 } from "react/jsx-runtime";
388
+ var StyledTextArea = styled7.textarea`
389
+ background: transparent;
390
+ border: none;
391
+ outline: none;
392
+ width: 100%;
393
+ height: 100%;
394
+ padding: 0;
395
+ margin: 0;
396
+ color: ${(props) => props.color || "inherit"};
397
+ font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
398
+ font-family: inherit;
399
+ text-align: inherit;
400
+ resize: none;
401
+
402
+ &::placeholder {
403
+ color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
404
+ }
405
+
406
+ &:disabled {
407
+ cursor: not-allowed;
408
+ }
409
+ `;
410
+ var TextAreaPrimitive = forwardRef2(
411
+ ({
412
+ value,
413
+ placeholder,
414
+ onChangeText,
415
+ onFocus,
416
+ onBlur,
417
+ onKeyDown,
418
+ disabled,
419
+ style,
420
+ color,
421
+ fontSize,
422
+ placeholderTextColor,
423
+ maxLength,
424
+ rows
425
+ }, ref) => {
426
+ return /* @__PURE__ */ jsx7(
427
+ StyledTextArea,
428
+ {
429
+ ref,
430
+ value,
431
+ placeholder,
432
+ onChange: (e) => onChangeText?.(e.target.value),
433
+ onFocus,
434
+ onBlur,
435
+ onKeyDown,
436
+ disabled,
437
+ style,
438
+ color,
439
+ fontSize,
440
+ placeholderTextColor,
441
+ maxLength,
442
+ rows
443
+ }
444
+ );
445
+ }
446
+ );
447
+ TextAreaPrimitive.displayName = "TextAreaPrimitive";
448
+
449
+ // src/Notification.tsx
450
+ import { useDesignSystem } from "@xsolla/xui-core";
451
+ import { X, AlertCircle, Check } from "@xsolla/xui-icons";
452
+ import { jsx as jsx8, jsxs } from "react/jsx-runtime";
453
+ var Notification = ({
454
+ tone = "neutral",
455
+ type = "toast",
456
+ title,
457
+ message,
458
+ actionLabel,
459
+ onAction,
460
+ onClose,
461
+ showClose = true
462
+ }) => {
463
+ const { theme } = useDesignSystem();
464
+ const config = theme.sizing.notification(type);
465
+ const toneConfig = {
466
+ neutral: {
467
+ bg: theme.colors.background.neutral.secondary,
468
+ content: theme.colors.content.neutral.primary,
469
+ icon: theme.colors.content.neutral.primary
470
+ },
471
+ success: {
472
+ bg: theme.colors.background.success.secondary,
473
+ content: theme.colors.content.success.primary,
474
+ icon: theme.colors.content.success.primary
475
+ },
476
+ warning: {
477
+ bg: theme.colors.background.warning.secondary,
478
+ content: theme.colors.content.warning.primary,
479
+ icon: theme.colors.content.warning.primary
480
+ },
481
+ alert: {
482
+ bg: theme.colors.background.alert.secondary,
483
+ content: theme.colors.content.alert.primary,
484
+ icon: theme.colors.content.alert.primary
485
+ }
486
+ }[tone];
487
+ const renderIcon = () => {
488
+ switch (tone) {
489
+ case "success":
490
+ return /* @__PURE__ */ jsx8(Check, { size: config.iconSize, color: toneConfig.icon });
491
+ case "warning":
492
+ case "alert":
493
+ return /* @__PURE__ */ jsx8(AlertCircle, { size: config.iconSize, color: toneConfig.icon });
494
+ default:
495
+ return /* @__PURE__ */ jsx8(AlertCircle, { size: config.iconSize, color: toneConfig.icon });
496
+ }
497
+ };
498
+ return /* @__PURE__ */ jsxs(
499
+ Box,
500
+ {
501
+ backgroundColor: toneConfig.bg,
502
+ borderRadius: config.radius,
503
+ paddingHorizontal: config.paddingHorizontal,
504
+ paddingVertical: config.paddingVertical,
505
+ width: config.width,
506
+ flexDirection: "row",
507
+ alignItems: type === "inline" ? "center" : "flex-start",
508
+ gap: 16,
509
+ children: [
510
+ /* @__PURE__ */ jsx8(
511
+ Box,
512
+ {
513
+ width: config.iconWrapperSize,
514
+ height: config.iconWrapperSize,
515
+ alignItems: "center",
516
+ justifyContent: "center",
517
+ children: renderIcon()
518
+ }
519
+ ),
520
+ /* @__PURE__ */ jsxs(
521
+ Box,
522
+ {
523
+ flex: 1,
524
+ flexDirection: type === "inline" ? "row" : "column",
525
+ gap: type === "inline" ? 28 : config.gap,
526
+ alignItems: type === "inline" ? "center" : "flex-start",
527
+ children: [
528
+ /* @__PURE__ */ jsxs(Box, { flex: 1, gap: 4, children: [
529
+ title && /* @__PURE__ */ jsx8(
530
+ Text,
531
+ {
532
+ color: theme.colors.content.primary,
533
+ fontSize: config.titleSize,
534
+ fontWeight: "500",
535
+ children: title
536
+ }
537
+ ),
538
+ message && /* @__PURE__ */ jsx8(
539
+ Text,
540
+ {
541
+ color: theme.colors.content.secondary,
542
+ fontSize: config.messageSize,
543
+ children: message
544
+ }
545
+ )
546
+ ] }),
547
+ actionLabel && /* @__PURE__ */ jsx8(Box, { onPress: onAction, paddingVertical: type === "inline" ? 0 : 8, children: /* @__PURE__ */ jsx8(
548
+ Text,
549
+ {
550
+ color: theme.colors.content.primary,
551
+ fontSize: 16,
552
+ fontWeight: "500",
553
+ letterSpacing: 0.4,
554
+ whiteSpace: "nowrap",
555
+ children: actionLabel
556
+ }
557
+ ) })
558
+ ]
559
+ }
560
+ ),
561
+ showClose && /* @__PURE__ */ jsx8(Box, { onPress: onClose, marginTop: type === "inline" ? 0 : 2, children: /* @__PURE__ */ jsx8(
562
+ Box,
563
+ {
564
+ width: 24,
565
+ height: 24,
566
+ alignItems: "center",
567
+ justifyContent: "center",
568
+ children: /* @__PURE__ */ jsx8(X, { size: 18, color: theme.colors.content.primary })
569
+ }
570
+ ) })
571
+ ]
572
+ }
573
+ );
574
+ };
575
+ export {
576
+ Notification
577
+ };
578
+ //# sourceMappingURL=index.mjs.map