@xsolla/xui-b2b-chip-stepper 0.212.0 → 0.213.1

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.
@@ -109,6 +109,11 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
109
109
  * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from
110
110
  * prose. Read via the Figma API on 2026-07-30.
111
111
  *
112
+ * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on
113
+ * 2026-08-28 from the assembled stepper component `15728:39`
114
+ * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and
115
+ * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.
116
+ *
112
117
  * Kept local to the package rather than added to `theme.sizing` (where the
113
118
  * circle-based `stepperB2b()` lives) because these values are specific to the
114
119
  * pill layout and are not shared with any other component. If a second
@@ -118,8 +123,15 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
118
123
  * the component follows all theme modes.
119
124
  */
120
125
  type ChipStepperSizing = {
121
- /** Auto-layout gap between chip children, and between chip and separator. */
126
+ /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */
122
127
  itemGap: number;
128
+ /**
129
+ * Auto-layout gap of the stepper row itself — between a step item and the
130
+ * `ChevronRight` separator, and between separator and the next step item.
131
+ * Distinct from `itemGap`: Figma spaces the stepper more loosely than the
132
+ * chip's own contents.
133
+ */
134
+ stepGap: number;
123
135
  chipPaddingTop: number;
124
136
  chipPaddingBottom: number;
125
137
  /** Leading inset. Measured smaller than the trailing inset in both sizes. */
@@ -128,6 +140,7 @@ type ChipStepperSizing = {
128
140
  chipRadius: number;
129
141
  chipBorderWidth: number;
130
142
  chipIconSize: number;
143
+ /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */
131
144
  separatorIconSize: number;
132
145
  labelFontSize: number;
133
146
  labelLineHeight: number;
package/native/index.d.ts CHANGED
@@ -109,6 +109,11 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
109
109
  * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from
110
110
  * prose. Read via the Figma API on 2026-07-30.
111
111
  *
112
+ * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on
113
+ * 2026-08-28 from the assembled stepper component `15728:39`
114
+ * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and
115
+ * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.
116
+ *
112
117
  * Kept local to the package rather than added to `theme.sizing` (where the
113
118
  * circle-based `stepperB2b()` lives) because these values are specific to the
114
119
  * pill layout and are not shared with any other component. If a second
@@ -118,8 +123,15 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
118
123
  * the component follows all theme modes.
119
124
  */
120
125
  type ChipStepperSizing = {
121
- /** Auto-layout gap between chip children, and between chip and separator. */
126
+ /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */
122
127
  itemGap: number;
128
+ /**
129
+ * Auto-layout gap of the stepper row itself — between a step item and the
130
+ * `ChevronRight` separator, and between separator and the next step item.
131
+ * Distinct from `itemGap`: Figma spaces the stepper more loosely than the
132
+ * chip's own contents.
133
+ */
134
+ stepGap: number;
123
135
  chipPaddingTop: number;
124
136
  chipPaddingBottom: number;
125
137
  /** Leading inset. Measured smaller than the trailing inset in both sizes. */
@@ -128,6 +140,7 @@ type ChipStepperSizing = {
128
140
  chipRadius: number;
129
141
  chipBorderWidth: number;
130
142
  chipIconSize: number;
143
+ /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */
131
144
  separatorIconSize: number;
132
145
  labelFontSize: number;
133
146
  labelLineHeight: number;
package/native/index.js CHANGED
@@ -341,6 +341,7 @@ var import_xui_icons_base = require("@xsolla/xui-icons-base");
341
341
  // src/sizing.ts
342
342
  var SMALL = {
343
343
  itemGap: 4,
344
+ stepGap: 8,
344
345
  chipPaddingTop: 4,
345
346
  chipPaddingBottom: 4,
346
347
  chipPaddingLeft: 4,
@@ -348,12 +349,13 @@ var SMALL = {
348
349
  chipRadius: 4,
349
350
  chipBorderWidth: 1,
350
351
  chipIconSize: 12,
351
- separatorIconSize: 12,
352
+ separatorIconSize: 10,
352
353
  labelFontSize: 10,
353
354
  labelLineHeight: 14
354
355
  };
355
356
  var MEDIUM = {
356
357
  itemGap: 4,
358
+ stepGap: 8,
357
359
  chipPaddingTop: 6,
358
360
  chipPaddingBottom: 6,
359
361
  chipPaddingLeft: 6,
@@ -361,7 +363,7 @@ var MEDIUM = {
361
363
  chipRadius: 4,
362
364
  chipBorderWidth: 1,
363
365
  chipIconSize: 16,
364
- separatorIconSize: 16,
366
+ separatorIconSize: 12,
365
367
  labelFontSize: 12,
366
368
  labelLineHeight: 16
367
369
  };
@@ -507,7 +509,7 @@ var ChipStepper = (0, import_react2.forwardRef)(
507
509
  flexDirection: "row",
508
510
  alignItems: "center",
509
511
  flexWrap: "wrap",
510
- style: { gap: sizing.itemGap },
512
+ style: { gap: sizing.stepGap },
511
513
  ...rest,
512
514
  children: steps.map((step, i) => {
513
515
  const isLast = i === steps.length - 1;
@@ -516,7 +518,7 @@ var ChipStepper = (0, import_react2.forwardRef)(
516
518
  {
517
519
  flexDirection: "row",
518
520
  alignItems: "center",
519
- style: { gap: sizing.itemGap },
521
+ style: { gap: sizing.stepGap },
520
522
  children: [
521
523
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
522
524
  ChipStep,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.tsx","../../src/ChipStepper.tsx","../../../../foundation/primitives-native/src/Box.tsx","../../../../foundation/primitives-native/src/Text.tsx","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["export { ChipStepper } from \"./ChipStepper\";\nexport { chipStepperSizing } from \"./sizing\";\nexport type { ChipStepperSizing } from \"./sizing\";\nexport type {\n ChipStepClickType,\n ChipStepSize,\n ChipStepStatus,\n ChipStepType,\n ChipStepperProps,\n} from \"./types\";\n","import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n style={{ gap: sizing.itemGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.itemGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n AccessibilityRole,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleToAccessibilityRole: Record<string, AccessibilityRole> = {\n button: \"button\",\n link: \"link\",\n img: \"image\",\n image: \"image\",\n summary: \"summary\",\n switch: \"switch\",\n checkbox: \"checkbox\",\n radio: \"radio\",\n heading: \"header\",\n text: \"text\",\n search: \"search\",\n alert: \"alert\",\n none: \"none\",\n presentation: \"none\",\n progressbar: \"progressbar\",\n scrollbar: \"scrollbar\",\n adjustable: \"adjustable\",\n tab: \"tab\",\n menu: \"menu\",\n menuitem: \"menuitem\",\n list: \"list\",\n timer: \"timer\",\n};\n\n/** RN ViewStyle.gap is typed as number (Yoga gap), not DimensionValue. */\nconst toGapValue = (gap: number | string | undefined): number | undefined => {\n if (gap === undefined) return undefined;\n if (typeof gap === \"number\") return gap;\n const pxMatch = /^(\\d+(?:\\.\\d+)?)px$/.exec(gap);\n if (pxMatch) return Number(pxMatch[1]);\n const asNumber = Number(gap);\n return Number.isFinite(asNumber) ? asNumber : undefined;\n};\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position,\n top,\n bottom,\n left,\n right,\n width,\n minWidth,\n minHeight,\n maxWidth,\n maxHeight,\n flex,\n flexShrink,\n gap,\n overflow,\n opacity,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n disabled,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n opacity: opacity ?? (disabled ? 0.5 : undefined),\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n minWidth: minWidth as DimensionValue,\n minHeight: minHeight as DimensionValue,\n maxWidth: maxWidth as DimensionValue,\n maxHeight: maxHeight as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n flexShrink,\n gap: toGapValue(gap),\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Map web a11y props; drop the rest of the web-only attributes before\n // spreading onto RN hosts (unknown props warn at runtime).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\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 className,\n \"data-testid\": _dataTestId,\n cursor: _cursor,\n type: _type,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n const accessibilityRole =\n (typeof role === \"string\" && roleToAccessibilityRole[role]) ||\n (as === \"button\" ? \"button\" : undefined);\n const isDisabled = Boolean(disabled || ariaDisabled);\n const accessibilityState = {\n disabled: isDisabled || undefined,\n busy: Boolean(ariaBusy) || undefined,\n };\n const accessibilityLiveRegion =\n ariaLive === \"polite\" || ariaLive === \"assertive\" ? ariaLive : undefined;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : alt}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n // Prefer Pressable whenever the node is interactive or explicitly a button,\n // so disabled / aria-disabled controls stay in the a11y tree as buttons.\n if (onPress || as === \"button\") {\n return (\n <Pressable\n onPress={!isDisabled && onPress ? onPress : undefined}\n disabled={isDisabled}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={\n typeof ariaLabel === \"string\" ? ariaLabel : undefined\n }\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : undefined}\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport {\n Text as RNText,\n TextStyle,\n AccessibilityRole,\n StyleSheet,\n} from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nconst parseNumericValue = (\n value: string | number | undefined\n): number | undefined => {\n if (value === undefined) return undefined;\n if (typeof value === \"number\") return value;\n const parsed = parseFloat(value);\n return isNaN(parsed) ? undefined : parsed;\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n textAlign,\n lineHeight,\n numberOfLines,\n id,\n role,\n testID,\n \"data-testid\": dataTestId,\n style: styleProp,\n ...props\n}) => {\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n if (\n resolvedFontFamily === \"Pilat Wide\" ||\n resolvedFontFamily === \"Pilat Wide Bold\" ||\n resolvedFontFamily === \"Aktiv Grotesk\"\n ) {\n resolvedFontFamily = undefined;\n }\n\n const incomingStyle = StyleSheet.flatten(styleProp) as TextStyle | undefined;\n\n const baseStyle: TextStyle = {\n color: color ?? incomingStyle?.color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n textAlign: textAlign ?? incomingStyle?.textAlign,\n lineHeight: parseNumericValue(lineHeight ?? incomingStyle?.lineHeight),\n marginTop: parseNumericValue(\n incomingStyle?.marginTop as number | string | undefined\n ),\n marginBottom: parseNumericValue(\n incomingStyle?.marginBottom as number | string | undefined\n ),\n };\n\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText\n style={baseStyle}\n numberOfLines={numberOfLines}\n testID={dataTestId || testID || id}\n accessibilityRole={accessibilityRole}\n >\n {children}\n </RNText>\n );\n};\n","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between chip children, and between chip and separator. */\n itemGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 12,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 16,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one auto-layout gap (not a bespoke\n * padding value).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA2B;;;ACC3B,0BASO;AAwMD;AArMN,IAAM,0BAA6D;AAAA,EACjE,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,E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A,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["import_react","import_react_native","import_jsx_runtime","RNText","import_xui_icons_base","import_jsx_runtime","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/index.tsx","../../src/ChipStepper.tsx","../../../../foundation/primitives-native/src/Box.tsx","../../../../foundation/primitives-native/src/Text.tsx","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["export { ChipStepper } from \"./ChipStepper\";\nexport { chipStepperSizing } from \"./sizing\";\nexport type { ChipStepperSizing } from \"./sizing\";\nexport type {\n ChipStepClickType,\n ChipStepSize,\n ChipStepStatus,\n ChipStepType,\n ChipStepperProps,\n} from \"./types\";\n","import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n // Stepper-level spacing, not the chip's own `itemGap` — Figma spaces\n // the row more loosely than the chip contents.\n style={{ gap: sizing.stepGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.stepGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n AccessibilityRole,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleToAccessibilityRole: Record<string, AccessibilityRole> = {\n button: \"button\",\n link: \"link\",\n img: \"image\",\n image: \"image\",\n summary: \"summary\",\n switch: \"switch\",\n checkbox: \"checkbox\",\n radio: \"radio\",\n heading: \"header\",\n text: \"text\",\n search: \"search\",\n alert: \"alert\",\n none: \"none\",\n presentation: \"none\",\n progressbar: \"progressbar\",\n scrollbar: \"scrollbar\",\n adjustable: \"adjustable\",\n tab: \"tab\",\n menu: \"menu\",\n menuitem: \"menuitem\",\n list: \"list\",\n timer: \"timer\",\n};\n\n/** RN ViewStyle.gap is typed as number (Yoga gap), not DimensionValue. */\nconst toGapValue = (gap: number | string | undefined): number | undefined => {\n if (gap === undefined) return undefined;\n if (typeof gap === \"number\") return gap;\n const pxMatch = /^(\\d+(?:\\.\\d+)?)px$/.exec(gap);\n if (pxMatch) return Number(pxMatch[1]);\n const asNumber = Number(gap);\n return Number.isFinite(asNumber) ? asNumber : undefined;\n};\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position,\n top,\n bottom,\n left,\n right,\n width,\n minWidth,\n minHeight,\n maxWidth,\n maxHeight,\n flex,\n flexShrink,\n gap,\n overflow,\n opacity,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n disabled,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n opacity: opacity ?? (disabled ? 0.5 : undefined),\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n minWidth: minWidth as DimensionValue,\n minHeight: minHeight as DimensionValue,\n maxWidth: maxWidth as DimensionValue,\n maxHeight: maxHeight as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n flexShrink,\n gap: toGapValue(gap),\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Map web a11y props; drop the rest of the web-only attributes before\n // spreading onto RN hosts (unknown props warn at runtime).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\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 className,\n \"data-testid\": _dataTestId,\n cursor: _cursor,\n type: _type,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n const accessibilityRole =\n (typeof role === \"string\" && roleToAccessibilityRole[role]) ||\n (as === \"button\" ? \"button\" : undefined);\n const isDisabled = Boolean(disabled || ariaDisabled);\n const accessibilityState = {\n disabled: isDisabled || undefined,\n busy: Boolean(ariaBusy) || undefined,\n };\n const accessibilityLiveRegion =\n ariaLive === \"polite\" || ariaLive === \"assertive\" ? ariaLive : undefined;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : alt}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n // Prefer Pressable whenever the node is interactive or explicitly a button,\n // so disabled / aria-disabled controls stay in the a11y tree as buttons.\n if (onPress || as === \"button\") {\n return (\n <Pressable\n onPress={!isDisabled && onPress ? onPress : undefined}\n disabled={isDisabled}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={\n typeof ariaLabel === \"string\" ? ariaLabel : undefined\n }\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : undefined}\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport {\n Text as RNText,\n TextStyle,\n AccessibilityRole,\n StyleSheet,\n} from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nconst parseNumericValue = (\n value: string | number | undefined\n): number | undefined => {\n if (value === undefined) return undefined;\n if (typeof value === \"number\") return value;\n const parsed = parseFloat(value);\n return isNaN(parsed) ? undefined : parsed;\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n textAlign,\n lineHeight,\n numberOfLines,\n id,\n role,\n testID,\n \"data-testid\": dataTestId,\n style: styleProp,\n ...props\n}) => {\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n if (\n resolvedFontFamily === \"Pilat Wide\" ||\n resolvedFontFamily === \"Pilat Wide Bold\" ||\n resolvedFontFamily === \"Aktiv Grotesk\"\n ) {\n resolvedFontFamily = undefined;\n }\n\n const incomingStyle = StyleSheet.flatten(styleProp) as TextStyle | undefined;\n\n const baseStyle: TextStyle = {\n color: color ?? incomingStyle?.color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n textAlign: textAlign ?? incomingStyle?.textAlign,\n lineHeight: parseNumericValue(lineHeight ?? incomingStyle?.lineHeight),\n marginTop: parseNumericValue(\n incomingStyle?.marginTop as number | string | undefined\n ),\n marginBottom: parseNumericValue(\n incomingStyle?.marginBottom as number | string | undefined\n ),\n };\n\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText\n style={baseStyle}\n numberOfLines={numberOfLines}\n testID={dataTestId || testID || id}\n accessibilityRole={accessibilityRole}\n >\n {children}\n </RNText>\n );\n};\n","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on\n * 2026-08-28 from the assembled stepper component `15728:39`\n * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and\n * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */\n itemGap: number;\n /**\n * Auto-layout gap of the stepper row itself — between a step item and the\n * `ChevronRight` separator, and between separator and the next step item.\n * Distinct from `itemGap`: Figma spaces the stepper more loosely than the\n * chip's own contents.\n */\n stepGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 10,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 12,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one of the chip's own auto-layout gaps\n * (not a bespoke padding value, and not the wider stepper-level `stepGap`).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA2B;;;ACC3B,0BASO;AAwMD;AArMN,IAAM,0BAA6D;AAAA,EACjE,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,cAAc;AAAA,EACd,aAAa;AAAA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AAAA,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["import_react","import_react_native","import_jsx_runtime","RNText","import_xui_icons_base","import_jsx_runtime","import_jsx_runtime"]}
package/native/index.mjs CHANGED
@@ -321,6 +321,7 @@ import { Warning } from "@xsolla/xui-icons-base";
321
321
  // src/sizing.ts
322
322
  var SMALL = {
323
323
  itemGap: 4,
324
+ stepGap: 8,
324
325
  chipPaddingTop: 4,
325
326
  chipPaddingBottom: 4,
326
327
  chipPaddingLeft: 4,
@@ -328,12 +329,13 @@ var SMALL = {
328
329
  chipRadius: 4,
329
330
  chipBorderWidth: 1,
330
331
  chipIconSize: 12,
331
- separatorIconSize: 12,
332
+ separatorIconSize: 10,
332
333
  labelFontSize: 10,
333
334
  labelLineHeight: 14
334
335
  };
335
336
  var MEDIUM = {
336
337
  itemGap: 4,
338
+ stepGap: 8,
337
339
  chipPaddingTop: 6,
338
340
  chipPaddingBottom: 6,
339
341
  chipPaddingLeft: 6,
@@ -341,7 +343,7 @@ var MEDIUM = {
341
343
  chipRadius: 4,
342
344
  chipBorderWidth: 1,
343
345
  chipIconSize: 16,
344
- separatorIconSize: 16,
346
+ separatorIconSize: 12,
345
347
  labelFontSize: 12,
346
348
  labelLineHeight: 16
347
349
  };
@@ -487,7 +489,7 @@ var ChipStepper = forwardRef(
487
489
  flexDirection: "row",
488
490
  alignItems: "center",
489
491
  flexWrap: "wrap",
490
- style: { gap: sizing.itemGap },
492
+ style: { gap: sizing.stepGap },
491
493
  ...rest,
492
494
  children: steps.map((step, i) => {
493
495
  const isLast = i === steps.length - 1;
@@ -496,7 +498,7 @@ var ChipStepper = forwardRef(
496
498
  {
497
499
  flexDirection: "row",
498
500
  alignItems: "center",
499
- style: { gap: sizing.itemGap },
501
+ style: { gap: sizing.stepGap },
500
502
  children: [
501
503
  /* @__PURE__ */ jsx4(
502
504
  ChipStep,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ChipStepper.tsx","../../../../foundation/primitives-native/src/Box.tsx","../../../../foundation/primitives-native/src/Text.tsx","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n style={{ gap: sizing.itemGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.itemGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n AccessibilityRole,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleToAccessibilityRole: Record<string, AccessibilityRole> = {\n button: \"button\",\n link: \"link\",\n img: \"image\",\n image: \"image\",\n summary: \"summary\",\n switch: \"switch\",\n checkbox: \"checkbox\",\n radio: \"radio\",\n heading: \"header\",\n text: \"text\",\n search: \"search\",\n alert: \"alert\",\n none: \"none\",\n presentation: \"none\",\n progressbar: \"progressbar\",\n scrollbar: \"scrollbar\",\n adjustable: \"adjustable\",\n tab: \"tab\",\n menu: \"menu\",\n menuitem: \"menuitem\",\n list: \"list\",\n timer: \"timer\",\n};\n\n/** RN ViewStyle.gap is typed as number (Yoga gap), not DimensionValue. */\nconst toGapValue = (gap: number | string | undefined): number | undefined => {\n if (gap === undefined) return undefined;\n if (typeof gap === \"number\") return gap;\n const pxMatch = /^(\\d+(?:\\.\\d+)?)px$/.exec(gap);\n if (pxMatch) return Number(pxMatch[1]);\n const asNumber = Number(gap);\n return Number.isFinite(asNumber) ? asNumber : undefined;\n};\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position,\n top,\n bottom,\n left,\n right,\n width,\n minWidth,\n minHeight,\n maxWidth,\n maxHeight,\n flex,\n flexShrink,\n gap,\n overflow,\n opacity,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n disabled,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n opacity: opacity ?? (disabled ? 0.5 : undefined),\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n minWidth: minWidth as DimensionValue,\n minHeight: minHeight as DimensionValue,\n maxWidth: maxWidth as DimensionValue,\n maxHeight: maxHeight as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n flexShrink,\n gap: toGapValue(gap),\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Map web a11y props; drop the rest of the web-only attributes before\n // spreading onto RN hosts (unknown props warn at runtime).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\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 className,\n \"data-testid\": _dataTestId,\n cursor: _cursor,\n type: _type,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n const accessibilityRole =\n (typeof role === \"string\" && roleToAccessibilityRole[role]) ||\n (as === \"button\" ? \"button\" : undefined);\n const isDisabled = Boolean(disabled || ariaDisabled);\n const accessibilityState = {\n disabled: isDisabled || undefined,\n busy: Boolean(ariaBusy) || undefined,\n };\n const accessibilityLiveRegion =\n ariaLive === \"polite\" || ariaLive === \"assertive\" ? ariaLive : undefined;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : alt}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n // Prefer Pressable whenever the node is interactive or explicitly a button,\n // so disabled / aria-disabled controls stay in the a11y tree as buttons.\n if (onPress || as === \"button\") {\n return (\n <Pressable\n onPress={!isDisabled && onPress ? onPress : undefined}\n disabled={isDisabled}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={\n typeof ariaLabel === \"string\" ? ariaLabel : undefined\n }\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : undefined}\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport {\n Text as RNText,\n TextStyle,\n AccessibilityRole,\n StyleSheet,\n} from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nconst parseNumericValue = (\n value: string | number | undefined\n): number | undefined => {\n if (value === undefined) return undefined;\n if (typeof value === \"number\") return value;\n const parsed = parseFloat(value);\n return isNaN(parsed) ? undefined : parsed;\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n textAlign,\n lineHeight,\n numberOfLines,\n id,\n role,\n testID,\n \"data-testid\": dataTestId,\n style: styleProp,\n ...props\n}) => {\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n if (\n resolvedFontFamily === \"Pilat Wide\" ||\n resolvedFontFamily === \"Pilat Wide Bold\" ||\n resolvedFontFamily === \"Aktiv Grotesk\"\n ) {\n resolvedFontFamily = undefined;\n }\n\n const incomingStyle = StyleSheet.flatten(styleProp) as TextStyle | undefined;\n\n const baseStyle: TextStyle = {\n color: color ?? incomingStyle?.color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n textAlign: textAlign ?? incomingStyle?.textAlign,\n lineHeight: parseNumericValue(lineHeight ?? incomingStyle?.lineHeight),\n marginTop: parseNumericValue(\n incomingStyle?.marginTop as number | string | undefined\n ),\n marginBottom: parseNumericValue(\n incomingStyle?.marginBottom as number | string | undefined\n ),\n };\n\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText\n style={baseStyle}\n numberOfLines={numberOfLines}\n testID={dataTestId || testID || id}\n accessibilityRole={accessibilityRole}\n >\n {children}\n </RNText>\n );\n};\n","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between chip children, and between chip and separator. */\n itemGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 12,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 16,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one auto-layout gap (not a bespoke\n * padding value).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSiz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ACA;AAAA,QACA,0BAAwB;AAAA,QACxB,eAAc;AAAA,QACd,YAAW;AAAA,QACX,UAAS;AAAA,QACT,OAAO,EAAE,KAAK,OAAO,QAAQ;AAAA,QAC5B,GAAG;AAAA,QAEH,gBAAM,IAAI,CAAC,MAAM,MAAM;AACtB,gBAAM,SAAS,MAAM,MAAM,SAAS;AACpC,iBACE,gBAAAC;AAAA,YAAC;AAAA;AAAA,cAEC,eAAc;AAAA,cACd,YAAW;AAAA,cACX,OAAO,EAAE,KAAK,OAAO,QAAQ;AAAA,cAE7B;AAAA,gCAAAD;AAAA,kBAAC;AAAA;AAAA,oBACC;AAAA,oBACA,YAAY,IAAI;AAAA,oBAChB,gBAAgB;AAAA,oBAChB;AAAA,oBACA;AAAA,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV,gBAAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["jsx","jsx","jsx","jsxs"]}
1
+ {"version":3,"sources":["../../src/ChipStepper.tsx","../../../../foundation/primitives-native/src/Box.tsx","../../../../foundation/primitives-native/src/Text.tsx","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n // Stepper-level spacing, not the chip's own `itemGap` — Figma spaces\n // the row more loosely than the chip contents.\n style={{ gap: sizing.stepGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.stepGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n AccessibilityRole,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleToAccessibilityRole: Record<string, AccessibilityRole> = {\n button: \"button\",\n link: \"link\",\n img: \"image\",\n image: \"image\",\n summary: \"summary\",\n switch: \"switch\",\n checkbox: \"checkbox\",\n radio: \"radio\",\n heading: \"header\",\n text: \"text\",\n search: \"search\",\n alert: \"alert\",\n none: \"none\",\n presentation: \"none\",\n progressbar: \"progressbar\",\n scrollbar: \"scrollbar\",\n adjustable: \"adjustable\",\n tab: \"tab\",\n menu: \"menu\",\n menuitem: \"menuitem\",\n list: \"list\",\n timer: \"timer\",\n};\n\n/** RN ViewStyle.gap is typed as number (Yoga gap), not DimensionValue. */\nconst toGapValue = (gap: number | string | undefined): number | undefined => {\n if (gap === undefined) return undefined;\n if (typeof gap === \"number\") return gap;\n const pxMatch = /^(\\d+(?:\\.\\d+)?)px$/.exec(gap);\n if (pxMatch) return Number(pxMatch[1]);\n const asNumber = Number(gap);\n return Number.isFinite(asNumber) ? asNumber : undefined;\n};\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position,\n top,\n bottom,\n left,\n right,\n width,\n minWidth,\n minHeight,\n maxWidth,\n maxHeight,\n flex,\n flexShrink,\n gap,\n overflow,\n opacity,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n disabled,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n opacity: opacity ?? (disabled ? 0.5 : undefined),\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n minWidth: minWidth as DimensionValue,\n minHeight: minHeight as DimensionValue,\n maxWidth: maxWidth as DimensionValue,\n maxHeight: maxHeight as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n flexWrap,\n alignItems,\n justifyContent,\n alignSelf,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n flexShrink,\n gap: toGapValue(gap),\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Map web a11y props; drop the rest of the web-only attributes before\n // spreading onto RN hosts (unknown props warn at runtime).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\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 className,\n \"data-testid\": _dataTestId,\n cursor: _cursor,\n type: _type,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n const accessibilityRole =\n (typeof role === \"string\" && roleToAccessibilityRole[role]) ||\n (as === \"button\" ? \"button\" : undefined);\n const isDisabled = Boolean(disabled || ariaDisabled);\n const accessibilityState = {\n disabled: isDisabled || undefined,\n busy: Boolean(ariaBusy) || undefined,\n };\n const accessibilityLiveRegion =\n ariaLive === \"polite\" || ariaLive === \"assertive\" ? ariaLive : undefined;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : alt}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n // Prefer Pressable whenever the node is interactive or explicitly a button,\n // so disabled / aria-disabled controls stay in the a11y tree as buttons.\n if (onPress || as === \"button\") {\n return (\n <Pressable\n onPress={!isDisabled && onPress ? onPress : undefined}\n disabled={isDisabled}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={\n typeof ariaLabel === \"string\" ? ariaLabel : undefined\n }\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n accessibilityRole={accessibilityRole}\n accessibilityLabel={typeof ariaLabel === \"string\" ? ariaLabel : undefined}\n accessibilityState={accessibilityState}\n accessibilityLiveRegion={accessibilityLiveRegion}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport {\n Text as RNText,\n TextStyle,\n AccessibilityRole,\n StyleSheet,\n} from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nconst parseNumericValue = (\n value: string | number | undefined\n): number | undefined => {\n if (value === undefined) return undefined;\n if (typeof value === \"number\") return value;\n const parsed = parseFloat(value);\n return isNaN(parsed) ? undefined : parsed;\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n textAlign,\n lineHeight,\n numberOfLines,\n id,\n role,\n testID,\n \"data-testid\": dataTestId,\n style: styleProp,\n ...props\n}) => {\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n if (\n resolvedFontFamily === \"Pilat Wide\" ||\n resolvedFontFamily === \"Pilat Wide Bold\" ||\n resolvedFontFamily === \"Aktiv Grotesk\"\n ) {\n resolvedFontFamily = undefined;\n }\n\n const incomingStyle = StyleSheet.flatten(styleProp) as TextStyle | undefined;\n\n const baseStyle: TextStyle = {\n color: color ?? incomingStyle?.color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n textAlign: textAlign ?? incomingStyle?.textAlign,\n lineHeight: parseNumericValue(lineHeight ?? incomingStyle?.lineHeight),\n marginTop: parseNumericValue(\n incomingStyle?.marginTop as number | string | undefined\n ),\n marginBottom: parseNumericValue(\n incomingStyle?.marginBottom as number | string | undefined\n ),\n };\n\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText\n style={baseStyle}\n numberOfLines={numberOfLines}\n testID={dataTestId || testID || id}\n accessibilityRole={accessibilityRole}\n >\n {children}\n </RNText>\n );\n};\n","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on\n * 2026-08-28 from the assembled stepper component `15728:39`\n * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and\n * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */\n itemGap: number;\n /**\n * Auto-layout gap of the stepper row itself — between a step item and the\n * `ChevronRight` separator, and between separator and the next step item.\n * Distinct from `itemGap`: Figma spaces the stepper more loosely than the\n * chip's own contents.\n */\n stepGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 10,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 12,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one of the chip's own auto-layout gaps\n * (not a bespoke padding value, and not the wider stepper-level `stepGap`).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";AAAA,SAAS,kBAAkB;;;ACC3B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AAwMD;AArMN,IAAM,0BAA6D;AAAA,EACjE,QAAQ;AAAA,EACR,MAAM;A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AAAA,QAEH,gBAAM,IAAI,CAAC,MAAM,MAAM;AACtB,gBAAM,SAAS,MAAM,MAAM,SAAS;AACpC,iBACE,gBAAAC;AAAA,YAAC;AAAA;AAAA,cAEC,eAAc;AAAA,cACd,YAAW;AAAA,cACX,OAAO,EAAE,KAAK,OAAO,QAAQ;AAAA,cAE7B;AAAA,gCAAAD;AAAA,kBAAC;AAAA;AAAA,oBACC;AAAA,oBACA,YAAY,IAAI;AAAA,oBAChB,gBAAgB;AAAA,oBAChB;AAAA,oBACA;AAAA,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV,gBAAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["jsx","jsx","jsx","jsxs"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-b2b-chip-stepper",
3
- "version": "0.212.0",
3
+ "version": "0.213.1",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,9 +13,9 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.212.0",
17
- "@xsolla/xui-icons-base": "0.212.0",
18
- "@xsolla/xui-primitives-core": "0.212.0"
16
+ "@xsolla/xui-core": "0.213.1",
17
+ "@xsolla/xui-icons-base": "0.213.1",
18
+ "@xsolla/xui-primitives-core": "0.213.1"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": ">=16.8.0",
package/web/index.d.mts CHANGED
@@ -109,6 +109,11 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
109
109
  * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from
110
110
  * prose. Read via the Figma API on 2026-07-30.
111
111
  *
112
+ * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on
113
+ * 2026-08-28 from the assembled stepper component `15728:39`
114
+ * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and
115
+ * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.
116
+ *
112
117
  * Kept local to the package rather than added to `theme.sizing` (where the
113
118
  * circle-based `stepperB2b()` lives) because these values are specific to the
114
119
  * pill layout and are not shared with any other component. If a second
@@ -118,8 +123,15 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
118
123
  * the component follows all theme modes.
119
124
  */
120
125
  type ChipStepperSizing = {
121
- /** Auto-layout gap between chip children, and between chip and separator. */
126
+ /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */
122
127
  itemGap: number;
128
+ /**
129
+ * Auto-layout gap of the stepper row itself — between a step item and the
130
+ * `ChevronRight` separator, and between separator and the next step item.
131
+ * Distinct from `itemGap`: Figma spaces the stepper more loosely than the
132
+ * chip's own contents.
133
+ */
134
+ stepGap: number;
123
135
  chipPaddingTop: number;
124
136
  chipPaddingBottom: number;
125
137
  /** Leading inset. Measured smaller than the trailing inset in both sizes. */
@@ -128,6 +140,7 @@ type ChipStepperSizing = {
128
140
  chipRadius: number;
129
141
  chipBorderWidth: number;
130
142
  chipIconSize: number;
143
+ /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */
131
144
  separatorIconSize: number;
132
145
  labelFontSize: number;
133
146
  labelLineHeight: number;
package/web/index.d.ts CHANGED
@@ -109,6 +109,11 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
109
109
  * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from
110
110
  * prose. Read via the Figma API on 2026-07-30.
111
111
  *
112
+ * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on
113
+ * 2026-08-28 from the assembled stepper component `15728:39`
114
+ * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and
115
+ * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.
116
+ *
112
117
  * Kept local to the package rather than added to `theme.sizing` (where the
113
118
  * circle-based `stepperB2b()` lives) because these values are specific to the
114
119
  * pill layout and are not shared with any other component. If a second
@@ -118,8 +123,15 @@ declare const ChipStepper: react.ForwardRefExoticComponent<ChipStepperProps & re
118
123
  * the component follows all theme modes.
119
124
  */
120
125
  type ChipStepperSizing = {
121
- /** Auto-layout gap between chip children, and between chip and separator. */
126
+ /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */
122
127
  itemGap: number;
128
+ /**
129
+ * Auto-layout gap of the stepper row itself — between a step item and the
130
+ * `ChevronRight` separator, and between separator and the next step item.
131
+ * Distinct from `itemGap`: Figma spaces the stepper more loosely than the
132
+ * chip's own contents.
133
+ */
134
+ stepGap: number;
123
135
  chipPaddingTop: number;
124
136
  chipPaddingBottom: number;
125
137
  /** Leading inset. Measured smaller than the trailing inset in both sizes. */
@@ -128,6 +140,7 @@ type ChipStepperSizing = {
128
140
  chipRadius: number;
129
141
  chipBorderWidth: number;
130
142
  chipIconSize: number;
143
+ /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */
131
144
  separatorIconSize: number;
132
145
  labelFontSize: number;
133
146
  labelLineHeight: number;
package/web/index.js CHANGED
@@ -380,6 +380,7 @@ var import_xui_icons_base = require("@xsolla/xui-icons-base");
380
380
  // src/sizing.ts
381
381
  var SMALL = {
382
382
  itemGap: 4,
383
+ stepGap: 8,
383
384
  chipPaddingTop: 4,
384
385
  chipPaddingBottom: 4,
385
386
  chipPaddingLeft: 4,
@@ -387,12 +388,13 @@ var SMALL = {
387
388
  chipRadius: 4,
388
389
  chipBorderWidth: 1,
389
390
  chipIconSize: 12,
390
- separatorIconSize: 12,
391
+ separatorIconSize: 10,
391
392
  labelFontSize: 10,
392
393
  labelLineHeight: 14
393
394
  };
394
395
  var MEDIUM = {
395
396
  itemGap: 4,
397
+ stepGap: 8,
396
398
  chipPaddingTop: 6,
397
399
  chipPaddingBottom: 6,
398
400
  chipPaddingLeft: 6,
@@ -400,7 +402,7 @@ var MEDIUM = {
400
402
  chipRadius: 4,
401
403
  chipBorderWidth: 1,
402
404
  chipIconSize: 16,
403
- separatorIconSize: 16,
405
+ separatorIconSize: 12,
404
406
  labelFontSize: 12,
405
407
  labelLineHeight: 16
406
408
  };
@@ -546,7 +548,7 @@ var ChipStepper = (0, import_react4.forwardRef)(
546
548
  flexDirection: "row",
547
549
  alignItems: "center",
548
550
  flexWrap: "wrap",
549
- style: { gap: sizing.itemGap },
551
+ style: { gap: sizing.stepGap },
550
552
  ...rest,
551
553
  children: steps.map((step, i) => {
552
554
  const isLast = i === steps.length - 1;
@@ -555,7 +557,7 @@ var ChipStepper = (0, import_react4.forwardRef)(
555
557
  {
556
558
  flexDirection: "row",
557
559
  alignItems: "center",
558
- style: { gap: sizing.itemGap },
560
+ style: { gap: sizing.stepGap },
559
561
  children: [
560
562
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
561
563
  ChipStep,
package/web/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.tsx","../../src/ChipStepper.tsx","../../../../foundation/primitives-web/src/Box.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","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["export { ChipStepper } from \"./ChipStepper\";\nexport { chipStepperSizing } from \"./sizing\";\nexport type { ChipStepperSizing } from \"./sizing\";\nexport type {\n ChipStepClickType,\n ChipStepSize,\n ChipStepStatus,\n ChipStepType,\n ChipStepperProps,\n} from \"./types\";\n","import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n style={{ gap: sizing.itemGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.itemGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<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 max-width: ${(props) =>\n typeof props.maxWidth === \"number\"\n ? `${props.maxWidth}px`\n : props.maxWidth || \"none\"};\n max-height: ${(props) =>\n typeof props.maxHeight === \"number\"\n ? `${props.maxHeight}px`\n : props.maxHeight || \"none\"};\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 /* Only emit overflow-x/y when explicitly set. Defaulting them to\n visible after overflow would override the shorthand and break\n clipping (e.g. OtherCard bottom-right promo image). */\n overflow: ${(props) => props.overflow || \"visible\"};\n ${(props) =>\n props.overflowX != null ? `overflow-x: ${props.overflowX};` : \"\"}\n ${(props) =>\n props.overflowY != null ? `overflow-y: ${props.overflowY};` : \"\"}\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) =>\n props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n /* \\`background\\` is emitted before \\`background-color\\` so a caller passing\n both still gets backgroundColor as the winner. Use the shorthand for a\n layered fill (e.g. an overlay tint over a resting surface colour), which\n a single background-color cannot express. */\n &:hover {\n ${(props) =>\n props.hoverStyle?.background &&\n `background: ${props.hoverStyle.background};`}\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?.background &&\n `background: ${props.pressStyle.background};`}\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 onError,\n onLoad,\n type,\n disabled,\n id,\n testID,\n \"data-testid\": dataTestId,\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 onError={onError}\n onLoad={onLoad}\n data-testid={dataTestId || testID}\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 ...props.style,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n elementType={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 data-testid={dataTestId || testID}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\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","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between chip children, and between chip and separator. */\n itemGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 12,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 16,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one auto-layout gap (not a bespoke\n * padding value).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA2B;;;ACA3B,IAAAC,gBAAkB;AAClB,+BAAmB;;;ACDnB,mBAAkB;;;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,K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AS,kBAAkB,IAAI;AAErC,UAAM,mBAAmB,aAAa,MAAM,MAAM,QAChD,MAAM,WAAW,IAAI,KAAK,GAC5B;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,IAAG;AAAA,QAGH,MAAK;AAAA,QACL,cAAY,aAAa;AAAA,QACzB;AAAA,QACA;AAAA,QACA,0BAAwB;AAAA,QACxB,eAAc;AAAA,QACd,YAAW;AAAA,QACX,UAAS;AAAA,QACT,OAAO,EAAE,KAAK,OAAO,QAAQ;AAAA,QAC5B,GAAG;AAAA,QAEH,gBAAM,IAAI,CAAC,MAAM,MAAM;AACtB,gBAAM,SAAS,MAAM,MAAM,SAAS;AACpC,iBACE;AAAA,YAAC;AAAA;AAAA,cAEC,eAAc;AAAA,cACd,YAAW;AAAA,cACX,OAAO,EAAE,KAAK,OAAO,QAAQ;AAAA,cAE7B;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACC;AAAA,oBACA,YAAY,IAAI;AAAA,oBAChB,gBAAgB;AAAA,oBAChB;AAAA,oBACA;AAAA,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["import_react","import_react","React","styled","React","import_styled_components","import_jsx_runtime","styled","import_xui_icons_base","import_react","import_jsx_runtime","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/index.tsx","../../src/ChipStepper.tsx","../../../../foundation/primitives-web/src/Box.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","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["export { ChipStepper } from \"./ChipStepper\";\nexport { chipStepperSizing } from \"./sizing\";\nexport type { ChipStepperSizing } from \"./sizing\";\nexport type {\n ChipStepClickType,\n ChipStepSize,\n ChipStepStatus,\n ChipStepType,\n ChipStepperProps,\n} from \"./types\";\n","import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n // Stepper-level spacing, not the chip's own `itemGap` — Figma spaces\n // the row more loosely than the chip contents.\n style={{ gap: sizing.stepGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.stepGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<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 max-width: ${(props) =>\n typeof props.maxWidth === \"number\"\n ? `${props.maxWidth}px`\n : props.maxWidth || \"none\"};\n max-height: ${(props) =>\n typeof props.maxHeight === \"number\"\n ? `${props.maxHeight}px`\n : props.maxHeight || \"none\"};\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 /* Only emit overflow-x/y when explicitly set. Defaulting them to\n visible after overflow would override the shorthand and break\n clipping (e.g. OtherCard bottom-right promo image). */\n overflow: ${(props) => props.overflow || \"visible\"};\n ${(props) =>\n props.overflowX != null ? `overflow-x: ${props.overflowX};` : \"\"}\n ${(props) =>\n props.overflowY != null ? `overflow-y: ${props.overflowY};` : \"\"}\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) =>\n props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n /* \\`background\\` is emitted before \\`background-color\\` so a caller passing\n both still gets backgroundColor as the winner. Use the shorthand for a\n layered fill (e.g. an overlay tint over a resting surface colour), which\n a single background-color cannot express. */\n &:hover {\n ${(props) =>\n props.hoverStyle?.background &&\n `background: ${props.hoverStyle.background};`}\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?.background &&\n `background: ${props.pressStyle.background};`}\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 onError,\n onLoad,\n type,\n disabled,\n id,\n testID,\n \"data-testid\": dataTestId,\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 onError={onError}\n onLoad={onLoad}\n data-testid={dataTestId || testID}\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 ...props.style,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n elementType={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 data-testid={dataTestId || testID}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\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","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on\n * 2026-08-28 from the assembled stepper component `15728:39`\n * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and\n * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */\n itemGap: number;\n /**\n * Auto-layout gap of the stepper row itself — between a step item and the\n * `ChevronRight` separator, and between separator and the next step item.\n * Distinct from `itemGap`: Figma spaces the stepper more loosely than the\n * chip's own contents.\n */\n stepGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 10,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 12,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one of the chip's own auto-layout gaps\n * (not a bespoke padding value, and not the wider stepper-level `stepGap`).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA2B;;;ACA3B,IAAAC,gBAAkB;AAClB,+BAAmB;;;ACDnB,mBAAkB;;;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,S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,eAAc;AAAA,cACd,YAAW;AAAA,cACX,OAAO,EAAE,KAAK,OAAO,QAAQ;AAAA,cAE7B;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACC;AAAA,oBACA,YAAY,IAAI;AAAA,oBAChB,gBAAgB;AAAA,oBAChB;AAAA,oBACA;AAAA,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["import_react","import_react","React","styled","React","import_styled_components","import_jsx_runtime","styled","import_xui_icons_base","import_react","import_jsx_runtime","import_jsx_runtime"]}
package/web/index.mjs CHANGED
@@ -343,6 +343,7 @@ import { Warning } from "@xsolla/xui-icons-base";
343
343
  // src/sizing.ts
344
344
  var SMALL = {
345
345
  itemGap: 4,
346
+ stepGap: 8,
346
347
  chipPaddingTop: 4,
347
348
  chipPaddingBottom: 4,
348
349
  chipPaddingLeft: 4,
@@ -350,12 +351,13 @@ var SMALL = {
350
351
  chipRadius: 4,
351
352
  chipBorderWidth: 1,
352
353
  chipIconSize: 12,
353
- separatorIconSize: 12,
354
+ separatorIconSize: 10,
354
355
  labelFontSize: 10,
355
356
  labelLineHeight: 14
356
357
  };
357
358
  var MEDIUM = {
358
359
  itemGap: 4,
360
+ stepGap: 8,
359
361
  chipPaddingTop: 6,
360
362
  chipPaddingBottom: 6,
361
363
  chipPaddingLeft: 6,
@@ -363,7 +365,7 @@ var MEDIUM = {
363
365
  chipRadius: 4,
364
366
  chipBorderWidth: 1,
365
367
  chipIconSize: 16,
366
- separatorIconSize: 16,
368
+ separatorIconSize: 12,
367
369
  labelFontSize: 12,
368
370
  labelLineHeight: 16
369
371
  };
@@ -509,7 +511,7 @@ var ChipStepper = forwardRef(
509
511
  flexDirection: "row",
510
512
  alignItems: "center",
511
513
  flexWrap: "wrap",
512
- style: { gap: sizing.itemGap },
514
+ style: { gap: sizing.stepGap },
513
515
  ...rest,
514
516
  children: steps.map((step, i) => {
515
517
  const isLast = i === steps.length - 1;
@@ -518,7 +520,7 @@ var ChipStepper = forwardRef(
518
520
  {
519
521
  flexDirection: "row",
520
522
  alignItems: "center",
521
- style: { gap: sizing.itemGap },
523
+ style: { gap: sizing.stepGap },
522
524
  children: [
523
525
  /* @__PURE__ */ jsx4(
524
526
  ChipStep,
package/web/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ChipStepper.tsx","../../../../foundation/primitives-web/src/Box.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","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n style={{ gap: sizing.itemGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.itemGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<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 max-width: ${(props) =>\n typeof props.maxWidth === \"number\"\n ? `${props.maxWidth}px`\n : props.maxWidth || \"none\"};\n max-height: ${(props) =>\n typeof props.maxHeight === \"number\"\n ? `${props.maxHeight}px`\n : props.maxHeight || \"none\"};\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 /* Only emit overflow-x/y when explicitly set. Defaulting them to\n visible after overflow would override the shorthand and break\n clipping (e.g. OtherCard bottom-right promo image). */\n overflow: ${(props) => props.overflow || \"visible\"};\n ${(props) =>\n props.overflowX != null ? `overflow-x: ${props.overflowX};` : \"\"}\n ${(props) =>\n props.overflowY != null ? `overflow-y: ${props.overflowY};` : \"\"}\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) =>\n props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n /* \\`background\\` is emitted before \\`background-color\\` so a caller passing\n both still gets backgroundColor as the winner. Use the shorthand for a\n layered fill (e.g. an overlay tint over a resting surface colour), which\n a single background-color cannot express. */\n &:hover {\n ${(props) =>\n props.hoverStyle?.background &&\n `background: ${props.hoverStyle.background};`}\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?.background &&\n `background: ${props.pressStyle.background};`}\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 onError,\n onLoad,\n type,\n disabled,\n id,\n testID,\n \"data-testid\": dataTestId,\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 onError={onError}\n onLoad={onLoad}\n data-testid={dataTestId || testID}\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 ...props.style,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n elementType={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 data-testid={dataTestId || testID}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\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","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between chip children, and between chip and separator. */\n itemGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 12,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 16,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one auto-layout gap (not a bespoke\n * padding value).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";AAAA,SAAS,kBAAkB;;;ACA3B,OAAOA,YAAW;AAClB,OAAO,YAAY;;;ACDnB,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,SAAS,sBAAsB,YAAoB;AACxD,QAAM,YAAY,MAAM;AAAA,IACtB,CAAC,EAAE,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AAC;AAAA;AAAA,oBACC;AAAA,oBACA,YAAY,IAAI;AAAA,oBAChB,gBAAgB;AAAA,oBAChB;AAAA,oBACA;AAAA,oBACA,YACE,cACI,MAAM,YAAY,EAAE,QAAQ,IAAI,GAAG,KAAK,CAAC,IACzC;AAAA;AAAA,gBAER;AAAA,gBACC,CAAC,UAAU;AAAA,gBAEV,gBAAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,MAAM,OAAO;AAAA,oBACb,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,eAAW;AAAA;AAAA,gBACb;AAAA;AAAA;AAAA,YAvBG,KAAK,OAAO,aAAa,CAAC;AAAA,UAyBjC;AAAA,QAEJ,CAAC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;","names":["React","React","styled","jsx","styled","jsx","jsx","jsxs"]}
1
+ {"version":3,"sources":["../../src/ChipStepper.tsx","../../../../foundation/primitives-web/src/Box.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","../../src/ChipStep.tsx","../../src/sizing.ts"],"sourcesContent":["import { forwardRef } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { ChevronRight } from \"@xsolla/xui-icons-base\";\nimport { ChipStep, type ChipStepperTheme } from \"./ChipStep\";\nimport { chipStepperSizing } from \"./sizing\";\nimport type { ChipStepperProps } from \"./types\";\n\n/**\n * A horizontal, pill-per-step progress indicator for B2B surfaces.\n *\n * Each step renders as a small chip (`\"1. Label\"`, optionally with a leading\n * icon) and steps are separated by chevron glyphs. Step numbers are derived\n * from array position — callers pass labels only.\n *\n * Distinct from `@xsolla/xui-b2b-stepper`, which renders numbered circles with\n * title/description blocks and supports a vertical layout. Reach for this one\n * in tight horizontal spaces such as form and drawer headers.\n *\n * ```tsx\n * <ChipStepper\n * steps={[\n * { label: \"Details\", status: \"done\" },\n * { label: \"Billing\", status: \"active\" },\n * { label: \"Confirm\" },\n * ]}\n * onStepClick={({ number }) => goTo(number)}\n * />\n * ```\n */\nexport const ChipStepper = forwardRef<HTMLDivElement, ChipStepperProps>(\n (\n {\n steps,\n size = \"sm\",\n onStepClick,\n showStepNumbers = true,\n showSeparators = true,\n className,\n \"aria-label\": ariaLabel,\n testID,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = chipStepperSizing[size];\n\n const defaultAriaLabel = `Progress: ${steps.length} step${\n steps.length === 1 ? \"\" : \"s\"\n }`;\n\n return (\n <Box\n ref={ref}\n as=\"nav\"\n // `role` is redundant on a real <nav> but is the only semantic the\n // native Box can honour, where `as` is ignored.\n role=\"navigation\"\n aria-label={ariaLabel ?? defaultAriaLabel}\n className={className}\n testID={testID}\n data-chip-stepper-size={size}\n flexDirection=\"row\"\n alignItems=\"center\"\n flexWrap=\"wrap\"\n // Stepper-level spacing, not the chip's own `itemGap` — Figma spaces\n // the row more loosely than the chip contents.\n style={{ gap: sizing.stepGap }}\n {...rest}\n >\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n return (\n <Box\n key={step.key ?? `chip-step-${i}`}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{ gap: sizing.stepGap }}\n >\n <ChipStep\n step={step}\n stepNumber={i + 1}\n showStepNumber={showStepNumbers}\n sizing={sizing}\n theme={theme as ChipStepperTheme}\n onActivate={\n onStepClick\n ? () => onStepClick({ number: i + 1, step })\n : undefined\n }\n />\n {!isLast && showSeparators && (\n // Decorative: the ordered labels already convey sequence.\n <ChevronRight\n size={sizing.separatorIconSize}\n color={theme.colors.content.tertiary}\n aria-hidden\n />\n )}\n </Box>\n );\n })}\n </Box>\n );\n }\n);\n\nChipStepper.displayName = \"ChipStepper\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<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 max-width: ${(props) =>\n typeof props.maxWidth === \"number\"\n ? `${props.maxWidth}px`\n : props.maxWidth || \"none\"};\n max-height: ${(props) =>\n typeof props.maxHeight === \"number\"\n ? `${props.maxHeight}px`\n : props.maxHeight || \"none\"};\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 /* Only emit overflow-x/y when explicitly set. Defaulting them to\n visible after overflow would override the shorthand and break\n clipping (e.g. OtherCard bottom-right promo image). */\n overflow: ${(props) => props.overflow || \"visible\"};\n ${(props) =>\n props.overflowX != null ? `overflow-x: ${props.overflowX};` : \"\"}\n ${(props) =>\n props.overflowY != null ? `overflow-y: ${props.overflowY};` : \"\"}\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) =>\n props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n /* \\`background\\` is emitted before \\`background-color\\` so a caller passing\n both still gets backgroundColor as the winner. Use the shorthand for a\n layered fill (e.g. an overlay tint over a resting surface colour), which\n a single background-color cannot express. */\n &:hover {\n ${(props) =>\n props.hoverStyle?.background &&\n `background: ${props.hoverStyle.background};`}\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?.background &&\n `background: ${props.pressStyle.background};`}\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 onError,\n onLoad,\n type,\n disabled,\n id,\n testID,\n \"data-testid\": dataTestId,\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 onError={onError}\n onLoad={onLoad}\n data-testid={dataTestId || testID}\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 ...props.style,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n elementType={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 data-testid={dataTestId || testID}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\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","import React, { useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text } from \"@xsolla/xui-primitives\";\nimport { Warning } from \"@xsolla/xui-icons-base\";\nimport { getExtraLeftPadding, type ChipStepperSizing } from \"./sizing\";\nimport type { ChipStepStatus, ChipStepType } from \"./types\";\n\n/**\n * Relaxed theme shape — only the token paths this component reads. Mirrors the\n * pattern used by `@xsolla/xui-b2b-stepper`'s `StepperTheme`.\n */\nexport type ChipStepperTheme = {\n colors: {\n background: {\n primary: string;\n neutral: { secondary: string };\n };\n border: {\n brand: string;\n secondary: string;\n alert: string;\n };\n overlay: {\n brand: string;\n alert: string;\n };\n content: {\n primary: string;\n tertiary: string;\n alert: { primary: string };\n };\n control: {\n text: { disable: string };\n };\n };\n};\n\ntype ChipPalette = {\n background: string;\n border: string;\n text: string;\n};\n\n/**\n * Per-status colour resolution. Every value comes from the active theme, so\n * the chip follows whichever theme mode is in effect.\n */\nexport const getChipPalette = (\n status: ChipStepStatus,\n theme: ChipStepperTheme\n): ChipPalette => {\n switch (status) {\n case \"active\":\n return {\n background: theme.colors.overlay.brand,\n border: theme.colors.border.brand,\n text: theme.colors.content.primary,\n };\n case \"done\":\n // Same neutral chip as `next`; only the text colour differs, so a\n // completed step reads as \"settled\" rather than \"upcoming\".\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.primary,\n };\n case \"error\":\n return {\n background: theme.colors.overlay.alert,\n border: theme.colors.border.alert,\n text: theme.colors.content.alert.primary,\n };\n case \"disabled\":\n return {\n background: theme.colors.background.neutral.secondary,\n border: \"transparent\",\n text: theme.colors.control.text.disable,\n };\n case \"next\":\n default:\n return {\n background: theme.colors.background.primary,\n border: theme.colors.border.secondary,\n text: theme.colors.content.tertiary,\n };\n }\n};\n\nexport interface ChipStepProps {\n step: ChipStepType;\n /** 1-based position, computed by the container. */\n stepNumber: number;\n showStepNumber: boolean;\n sizing: ChipStepperSizing;\n theme: ChipStepperTheme;\n onActivate?: () => void;\n}\n\nexport const ChipStep: React.FC<ChipStepProps> = ({\n step,\n stepNumber,\n showStepNumber,\n sizing,\n theme,\n onActivate,\n}) => {\n const {\n label,\n status = \"next\",\n leftIcon,\n showLeftExtraPadding = false,\n onClick,\n } = step;\n\n const isDisabled = status === \"disabled\";\n const isActive = status === \"active\";\n const isInteractive = !isDisabled && (!!onClick || !!onActivate);\n const palette = getChipPalette(status, theme);\n\n const handlePress = useCallback(() => {\n if (isDisabled) return;\n onClick?.();\n onActivate?.();\n }, [isDisabled, onClick, onActivate]);\n\n // `error` always shows the warning glyph, overriding any caller icon — the\n // error state must not be colour-only (WCAG 1.4.1).\n const icon =\n status === \"error\" ? (\n <Warning size={sizing.chipIconSize} color={palette.text} />\n ) : (\n leftIcon\n );\n\n const paddingLeft =\n sizing.chipPaddingLeft +\n (showLeftExtraPadding ? getExtraLeftPadding(sizing) : 0);\n\n const textStyle = {\n color: palette.text,\n fontSize: sizing.labelFontSize,\n lineHeight: sizing.labelLineHeight,\n fontWeight: \"500\" as const,\n };\n\n return (\n <Box\n as={isInteractive ? \"button\" : undefined}\n onPress={isInteractive ? handlePress : undefined}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n backgroundColor={palette.background}\n borderColor={palette.border}\n borderWidth={sizing.chipBorderWidth}\n borderRadius={sizing.chipRadius}\n data-testid=\"chip-step\"\n data-step-status={status}\n aria-current={isActive ? \"step\" : undefined}\n aria-disabled={isDisabled ? true : undefined}\n style={{\n gap: sizing.itemGap,\n paddingTop: sizing.chipPaddingTop,\n paddingBottom: sizing.chipPaddingBottom,\n paddingLeft,\n paddingRight: sizing.chipPaddingRight,\n flexShrink: 0,\n cursor: isInteractive ? \"pointer\" : \"default\",\n }}\n >\n {icon}\n {/* Figma keeps the ordinal and the label as two separate TEXT nodes\n separated by the 4px auto-layout gap, not one concatenated string. */}\n {showStepNumber && <Text {...textStyle}>{`${stepNumber}.`}</Text>}\n {typeof label === \"string\" || typeof label === \"number\" ? (\n <Text {...textStyle}>{label}</Text>\n ) : (\n label\n )}\n </Box>\n );\n};\n\nChipStep.displayName = \"ChipStep\";\n","import type { ChipStepSize } from \"./types\";\n\n/**\n * Chip-stepper metrics, measured from the Figma `.Step-item` component set\n * (file `fGm4yji206wAW2ZU7hhRRV`, node `15643:9363`) rather than derived from\n * prose. Read via the Figma API on 2026-07-30.\n *\n * Separator metrics (`stepGap`, `separatorIconSize`) were re-measured on\n * 2026-08-28 from the assembled stepper component `15728:39`\n * (`Steps=2, Icon=True, Size=S`), whose auto-layout `itemSpacing` is 8 and\n * whose `icon_chevron-right--line` instance renders at 10x10 — see XUITSD-42.\n *\n * Kept local to the package rather than added to `theme.sizing` (where the\n * circle-based `stepperB2b()` lives) because these values are specific to the\n * pill layout and are not shared with any other component. If a second\n * consumer appears, promote this into `theme.sizing.chipStepperB2b()`.\n *\n * Colours are NOT defined here — every colour is read from the active theme so\n * the component follows all theme modes.\n */\nexport type ChipStepperSizing = {\n /** Auto-layout gap between the children *inside* a chip (icon, ordinal, label). */\n itemGap: number;\n /**\n * Auto-layout gap of the stepper row itself — between a step item and the\n * `ChevronRight` separator, and between separator and the next step item.\n * Distinct from `itemGap`: Figma spaces the stepper more loosely than the\n * chip's own contents.\n */\n stepGap: number;\n chipPaddingTop: number;\n chipPaddingBottom: number;\n /** Leading inset. Measured smaller than the trailing inset in both sizes. */\n chipPaddingLeft: number;\n chipPaddingRight: number;\n chipRadius: number;\n chipBorderWidth: number;\n chipIconSize: number;\n /** `ChevronRight` glyph between steps. Smaller than the in-chip icon. */\n separatorIconSize: number;\n labelFontSize: number;\n labelLineHeight: number;\n};\n\n/**\n * Figma Size=S — 22px tall chip. The design's default variant.\n */\nconst SMALL: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 4,\n chipPaddingBottom: 4,\n chipPaddingLeft: 4,\n chipPaddingRight: 6,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 12,\n separatorIconSize: 10,\n labelFontSize: 10,\n labelLineHeight: 14,\n};\n\n/**\n * Figma Size=M — 28px tall chip.\n */\nconst MEDIUM: ChipStepperSizing = {\n itemGap: 4,\n stepGap: 8,\n chipPaddingTop: 6,\n chipPaddingBottom: 6,\n chipPaddingLeft: 6,\n chipPaddingRight: 8,\n chipRadius: 4,\n chipBorderWidth: 1,\n chipIconSize: 16,\n separatorIconSize: 12,\n labelFontSize: 12,\n labelLineHeight: 16,\n};\n\nexport const chipStepperSizing: Record<ChipStepSize, ChipStepperSizing> = {\n sm: SMALL,\n md: MEDIUM,\n};\n\n/**\n * `showLeftExtraPadding` in Figma is a zero-width spacer frame toggled by a\n * boolean, so enabling it adds exactly one of the chip's own auto-layout gaps\n * (not a bespoke padding value, and not the wider stepper-level `stepGap`).\n */\nexport const getExtraLeftPadding = (sizing: ChipStepperSizing): number =>\n sizing.itemGap;\n"],"mappings":";AAAA,SAAS,kBAAkB;;;ACA3B,OAAOA,YAAW;AAClB,OAAO,YAAY;;;ACDnB,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;AA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