@xsolla/xui-tag-label 0.227.0 → 0.229.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TagLabel
2
2
 
3
- A specialised cross-platform identification and categorisation tag composed of optional segments — entity, subentity, ID, label, rarity, status, and a custom slot.
3
+ A specialised cross-platform identification and categorisation tag composed of optional segments — entity, subentity, rarity, ID, label, status, and a custom slot.
4
4
 
5
5
  <!-- BEGIN:xui-mcp-instructions:tag-label -->
6
6
  A composite identification label that encodes the full semantic identity of an entity in the Xsolla Archive — its type, sub-type, unique ID, name, rarity, and status — as a horizontal sequence of joined chip modules. Each module contains either text or an icon displayed on a single line with no line breaks. The modules are joined together with no gaps between them, forming a continuous visual strip. Each slot is independently shown or hidden depending on context.
@@ -27,7 +27,7 @@ TagLabel is part of Xsolla's Functional Labels system — a branded language for
27
27
  - Entity and Subentity labels — use the canonical taxonomy names exactly as defined in the system. Do not create custom entity or subentity labels — they must match the platform's entity model.
28
28
  - ID chip — always show the full entity ID. Never abbreviate or truncate the ID value — it is the primary machine-readable identifier and must be copy-able.
29
29
  - Name chip — use the entity's display name as stored in the system. If the name is very long, truncate with an ellipsis and show the full name in a tooltip.
30
- - Rarity chip — the colour of the rarity icon is determined by the entity's rarity tier in the system. Do not override the colour manually.
30
+ - Rarity chip — the colour of the rarity chip is determined by the entity's rarity tier in the system (`common`, `uncommon`, `rare`, `epic`, `legendary`). Pass the tier, not a colour — do not override the colour manually.
31
31
  - Custom slot — keep custom slot content to a single short value (a number, a price, a version string). Do not place multi-word labels in the custom slot.
32
32
 
33
33
  ### Behaviour guidelines
@@ -75,8 +75,11 @@ npm install @xsolla/xui-tag-label
75
75
  ```tsx
76
76
  import {
77
77
  TagLabel,
78
+ RARITY_TYPES,
79
+ isRarityType,
78
80
  type EntityType,
79
81
  type SubentityType,
82
+ type RarityType,
80
83
  type StatusType,
81
84
  } from "@xsolla/xui-tag-label";
82
85
  ```
@@ -92,6 +95,7 @@ export default function QuickStart() {
92
95
  <TagLabel
93
96
  entityType="item"
94
97
  subentityType="skin"
98
+ rarity="rare"
95
99
  series="XLA"
96
100
  number="-001-001"
97
101
  label="Backpack"
@@ -117,10 +121,11 @@ export default function QuickStart() {
117
121
  | `showSubentityLabel` | `boolean` | `!compact` | Show the text label of the subentity module. An explicit value wins over `compact`. |
118
122
  | `subentityIcon` | `ReactNode` | — | Custom icon override for the subentity module. |
119
123
  | `icon` | `ReactNode` | — | **Deprecated** — alias for `entityIcon`, kept for backwards compatibility. |
124
+ | `rarity` | `RarityType \| ReactNode` | — | Rarity tier (`"common"` … `"legendary"`) — renders the tier colour and icon. Hidden when `compact`. A legacy `ReactNode` is still accepted and rendered as the icon on the `common` background. |
125
+ | `rarityIcon` | `ReactNode` | — | Custom icon override for the rarity module. |
120
126
  | `series` | `string` | — | ID series prefix (e.g. `"XLA"`). |
121
127
  | `number` | `string` | — | ID number suffix (e.g. `"-001-001"`). |
122
128
  | `label` | `string` | — | Item label/name. Hidden when `compact`. |
123
- | `rarity` | `ReactNode` | — | Rarity icon segment. Hidden when `compact`. |
124
129
  | `status` | `"sale" \| "maintenance" \| "inactive"` | — | Status indicator segment. Hidden when `compact`. |
125
130
  | `compact` | `boolean` | `false` | Render the icon-only / minimal version. Only seeds the defaults of the two `show*Label` flags. |
126
131
  | `children` | `ReactNode` | — | Custom trailing-slot content. Hidden when `compact`. |
@@ -128,6 +133,26 @@ export default function QuickStart() {
128
133
 
129
134
  Inherits `ThemeOverrideProps` (`themeMode`, `themeProductContext`).
130
135
 
136
+ ### Rarity
137
+
138
+ Mirrors the Figma `.tag-label-rarity` component set. Each tier renders a 24×24
139
+ chip with the tier's background token and its icon from
140
+ `@xsolla/xui-icons-tag-label`, drawn in `tag-label/rarity/content`:
141
+
142
+ | `rarity` | Background token | Icon |
143
+ | ------------- | --------------------------------------------- | ----------------- |
144
+ | `"common"` | `theme.colors.control.tagLabel.rarity.common` | `RarityCommon` |
145
+ | `"uncommon"` | `theme.colors.control.tagLabel.rarity.uncommon` | `RarityUncommon` |
146
+ | `"rare"` | `theme.colors.control.tagLabel.rarity.rare` | `RarityRare` |
147
+ | `"epic"` | `theme.colors.control.tagLabel.rarity.epic` | `RarityEpic` |
148
+ | `"legendary"` | `theme.colors.control.tagLabel.rarity.legendary` | `RarityLegendary` |
149
+
150
+ The icon colour for every tier is `theme.colors.control.tagLabel.rarity.content`.
151
+
152
+ > **Token rename:** `control.tagLabel.rarity.bg` / `control.tagLabel.rarity.text`
153
+ > were replaced by the per-tier `tag-label/rarity/*` tokens above. Read the tier
154
+ > key (e.g. `rarity.rare`) instead of `rarity.bg`.
155
+
131
156
  ### Module visibility rules
132
157
 
133
158
  The entity and subentity modules mirror the independent `Icon` / `Label` booleans
@@ -148,26 +173,30 @@ combination is possible per module:
148
173
  view; it now collapses to a 24×24 icon, matching the Figma
149
174
  "Compact view = True" variant.
150
175
 
151
- ### Exported types
176
+ ### Exported types and helpers
152
177
 
153
- | Type | Members |
178
+ | Export | Members |
154
179
  | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
155
180
  | `EntityType` | `"item" \| "product" \| "account"` |
181
+ | `RarityType` | `"common" \| "uncommon" \| "rare" \| "epic" \| "legendary"` |
156
182
  | `StatusType` | `"sale" \| "maintenance" \| "inactive"` |
157
183
  | `SubentityType` | `"skin" \| "in-game-item" \| "currency" \| "bundle" \| "lootbox" \| "game-key" \| "discount" \| "coupon" \| "game" \| "sdk" \| "plugin" \| "api" \| "service" \| "tool" \| "webshop" \| "app" \| "launcher" \| "library" \| "engine" \| "user" \| "developer" \| "influencer" \| "publisher" \| "settings"` |
184
+ | `RARITY_TYPES` | Every `RarityType`, in Figma order. |
185
+ | `isRarityType` | Type guard — `true` when a value is a `RarityType`. |
158
186
 
159
187
  ## Anatomy
160
188
 
161
- The tag is composed of optional segments rendered in this order:
189
+ The tag is composed of optional segments rendered in this order (matching the
190
+ Figma `TagLabel` component):
162
191
 
163
192
  1. **Entity** — coloured background, icon, label. Icon and label are controlled
164
193
  independently via `showEntityIcon` / `showEntityLabel`.
165
194
  2. **Subentity** — secondary categorisation. Icon and label are controlled
166
195
  independently via `showSubentityIcon` / `showSubentityLabel`; collapses to an
167
196
  icon when `compact`.
168
- 3. **ID** — series + number.
169
- 4. **Name** — descriptive text (omitted when `compact`).
170
- 5. **Rarity** — icon (omitted when `compact`).
197
+ 3. **Rarity** — tier colour + icon (omitted when `compact`).
198
+ 4. **ID** — series + number.
199
+ 5. **Name** — descriptive text (omitted when `compact`).
171
200
  6. **Status** — operational status icon (omitted when `compact`).
172
201
  7. **Custom slot** — children (omitted when `compact`).
173
202
 
@@ -192,6 +221,30 @@ export default function CompactTagLabel() {
192
221
  }
193
222
  ```
194
223
 
224
+ ### Rarity tiers
225
+
226
+ ```tsx
227
+ import * as React from "react";
228
+ import { TagLabel, RARITY_TYPES } from "@xsolla/xui-tag-label";
229
+
230
+ export default function TagLabelRarity() {
231
+ return (
232
+ <div style={{ display: "flex", flexDirection: "column", gap: 8 }}>
233
+ {RARITY_TYPES.map((tier) => (
234
+ <TagLabel
235
+ key={tier}
236
+ entityType="item"
237
+ rarity={tier}
238
+ series="XLA"
239
+ number="-001"
240
+ label={tier}
241
+ />
242
+ ))}
243
+ </div>
244
+ );
245
+ }
246
+ ```
247
+
195
248
  ### Per-module icon / label visibility
196
249
 
197
250
  ```tsx
@@ -3,6 +3,12 @@ import { ThemeOverrideProps } from '@xsolla/xui-core';
3
3
 
4
4
  type EntityType = "item" | "product" | "account";
5
5
  type StatusType = "sale" | "maintenance" | "inactive";
6
+ /**
7
+ * Rarity tiers, in the order of the Figma `.tag-label-rarity` component set.
8
+ * Each tier maps to a `tag-label/rarity/*` colour token and a rarity icon.
9
+ */
10
+ type RarityType = "common" | "uncommon" | "rare" | "epic" | "legendary";
11
+ declare const RARITY_TYPES: readonly RarityType[];
6
12
  type SubentityType = "skin" | "in-game-item" | "currency" | "bundle" | "lootbox" | "game-key" | "discount" | "coupon" | "game" | "sdk" | "plugin" | "api" | "service" | "tool" | "webshop" | "app" | "launcher" | "library" | "engine" | "user" | "developer" | "influencer" | "publisher" | "settings";
7
13
  interface TagLabelProps extends ThemeOverrideProps {
8
14
  /** Main entity type */
@@ -52,8 +58,16 @@ interface TagLabelProps extends ThemeOverrideProps {
52
58
  number?: string;
53
59
  /** Item label/name */
54
60
  label?: string;
55
- /** Rarity icon or indicator */
56
- rarity?: ReactNode;
61
+ /**
62
+ * Rarity tier. Pass a {@link RarityType} (`"common"` … `"legendary"`) to
63
+ * render the tier's background colour and icon from the design tokens.
64
+ *
65
+ * A custom `ReactNode` is still accepted for backwards compatibility; it is
66
+ * rendered as the icon on the `common` background.
67
+ */
68
+ rarity?: RarityType | ReactNode;
69
+ /** Custom icon override for the rarity module. */
70
+ rarityIcon?: ReactNode;
57
71
  /** Status indicator */
58
72
  status?: StatusType;
59
73
  /** Whether to show the compact version */
@@ -64,6 +78,11 @@ interface TagLabelProps extends ThemeOverrideProps {
64
78
  style?: any;
65
79
  testID?: string;
66
80
  }
81
+ declare const isRarityType: (value: unknown) => value is RarityType;
82
+ /**
83
+ * Segments render in the Figma `TagLabel` order:
84
+ * entity → subentity → rarity → ID → name → status → custom slot.
85
+ */
67
86
  declare const TagLabel: React.FC<TagLabelProps>;
68
87
 
69
- export { type EntityType, type StatusType, type SubentityType, TagLabel, type TagLabelProps };
88
+ export { type EntityType, RARITY_TYPES, type RarityType, type StatusType, type SubentityType, TagLabel, type TagLabelProps, isRarityType };
package/native/index.d.ts CHANGED
@@ -3,6 +3,12 @@ import { ThemeOverrideProps } from '@xsolla/xui-core';
3
3
 
4
4
  type EntityType = "item" | "product" | "account";
5
5
  type StatusType = "sale" | "maintenance" | "inactive";
6
+ /**
7
+ * Rarity tiers, in the order of the Figma `.tag-label-rarity` component set.
8
+ * Each tier maps to a `tag-label/rarity/*` colour token and a rarity icon.
9
+ */
10
+ type RarityType = "common" | "uncommon" | "rare" | "epic" | "legendary";
11
+ declare const RARITY_TYPES: readonly RarityType[];
6
12
  type SubentityType = "skin" | "in-game-item" | "currency" | "bundle" | "lootbox" | "game-key" | "discount" | "coupon" | "game" | "sdk" | "plugin" | "api" | "service" | "tool" | "webshop" | "app" | "launcher" | "library" | "engine" | "user" | "developer" | "influencer" | "publisher" | "settings";
7
13
  interface TagLabelProps extends ThemeOverrideProps {
8
14
  /** Main entity type */
@@ -52,8 +58,16 @@ interface TagLabelProps extends ThemeOverrideProps {
52
58
  number?: string;
53
59
  /** Item label/name */
54
60
  label?: string;
55
- /** Rarity icon or indicator */
56
- rarity?: ReactNode;
61
+ /**
62
+ * Rarity tier. Pass a {@link RarityType} (`"common"` … `"legendary"`) to
63
+ * render the tier's background colour and icon from the design tokens.
64
+ *
65
+ * A custom `ReactNode` is still accepted for backwards compatibility; it is
66
+ * rendered as the icon on the `common` background.
67
+ */
68
+ rarity?: RarityType | ReactNode;
69
+ /** Custom icon override for the rarity module. */
70
+ rarityIcon?: ReactNode;
57
71
  /** Status indicator */
58
72
  status?: StatusType;
59
73
  /** Whether to show the compact version */
@@ -64,6 +78,11 @@ interface TagLabelProps extends ThemeOverrideProps {
64
78
  style?: any;
65
79
  testID?: string;
66
80
  }
81
+ declare const isRarityType: (value: unknown) => value is RarityType;
82
+ /**
83
+ * Segments render in the Figma `TagLabel` order:
84
+ * entity → subentity → rarity → ID → name → status → custom slot.
85
+ */
67
86
  declare const TagLabel: React.FC<TagLabelProps>;
68
87
 
69
- export { type EntityType, type StatusType, type SubentityType, TagLabel, type TagLabelProps };
88
+ export { type EntityType, RARITY_TYPES, type RarityType, type StatusType, type SubentityType, TagLabel, type TagLabelProps, isRarityType };
package/native/index.js CHANGED
@@ -30,7 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.tsx
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
- TagLabel: () => TagLabel
33
+ RARITY_TYPES: () => RARITY_TYPES,
34
+ TagLabel: () => TagLabel,
35
+ isRarityType: () => isRarityType
34
36
  });
35
37
  module.exports = __toCommonJS(index_exports);
36
38
 
@@ -372,8 +374,24 @@ var Icon = ({
372
374
  // src/TagLabel.tsx
373
375
  var import_xui_core = require("@xsolla/xui-core");
374
376
  var import_xui_icons = require("@xsolla/xui-icons");
377
+ var import_xui_icons_tag_label = require("@xsolla/xui-icons-tag-label");
375
378
  var import_jsx_runtime4 = require("react/jsx-runtime");
379
+ var RARITY_TYPES = [
380
+ "common",
381
+ "uncommon",
382
+ "rare",
383
+ "epic",
384
+ "legendary"
385
+ ];
376
386
  var SEGMENT_HEIGHT = 24;
387
+ var RARITY_ICONS = {
388
+ common: import_xui_icons_tag_label.RarityCommon,
389
+ uncommon: import_xui_icons_tag_label.RarityUncommon,
390
+ rare: import_xui_icons_tag_label.RarityRare,
391
+ epic: import_xui_icons_tag_label.RarityEpic,
392
+ legendary: import_xui_icons_tag_label.RarityLegendary
393
+ };
394
+ var isRarityType = (value) => typeof value === "string" && RARITY_TYPES.includes(value);
377
395
  var TagLabelModuleChip = ({ showIcon, showLabel, icon, label, colors }) => {
378
396
  if (!showIcon && !showLabel) return null;
379
397
  if (showIcon && !showLabel) {
@@ -575,23 +593,24 @@ var TagLabelNameSegment = ({
575
593
  }
576
594
  );
577
595
  };
578
- var TagLabelRaritySegment = ({
579
- rarity,
580
- theme
581
- }) => {
582
- const tagLabel = theme?.colors?.control?.tagLabel;
583
- const colors = tagLabel?.rarity;
596
+ var TagLabelRaritySegment = ({ rarity, icon, theme }) => {
597
+ const colors = theme?.colors?.control?.tagLabel?.rarity;
584
598
  if (!colors) return null;
599
+ const tier = isRarityType(rarity) ? rarity : "common";
600
+ const TierIcon = RARITY_ICONS[tier];
601
+ const content = colors.content;
602
+ const customIcon = icon ?? (isRarityType(rarity) ? void 0 : rarity);
585
603
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
586
604
  Box,
587
605
  {
606
+ testID: `tag-label__rarity-${tier}`,
588
607
  height: SEGMENT_HEIGHT,
589
608
  width: SEGMENT_HEIGHT,
590
- backgroundColor: colors.bg,
591
- paddingHorizontal: 6,
609
+ backgroundColor: colors[tier],
610
+ paddingHorizontal: 3,
592
611
  alignItems: "center",
593
612
  justifyContent: "center",
594
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: 18, color: colors.text, children: rarity || /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_xui_icons.Info, { size: "100%" }) })
613
+ children: customIcon ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { size: 18, color: content, children: customIcon }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TierIcon, { size: 18, color: content })
595
614
  }
596
615
  );
597
616
  };
@@ -667,6 +686,7 @@ var TagLabel = ({
667
686
  number,
668
687
  label,
669
688
  rarity,
689
+ rarityIcon,
670
690
  status,
671
691
  compact = false,
672
692
  children,
@@ -713,6 +733,14 @@ var TagLabel = ({
713
733
  theme
714
734
  }
715
735
  ),
736
+ !compact && rarity && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
737
+ TagLabelRaritySegment,
738
+ {
739
+ rarity,
740
+ icon: rarityIcon,
741
+ theme
742
+ }
743
+ ),
716
744
  (series || number) && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
717
745
  TagLabelIdSegment,
718
746
  {
@@ -723,7 +751,6 @@ var TagLabel = ({
723
751
  }
724
752
  ),
725
753
  !compact && label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TagLabelNameSegment, { label, theme }),
726
- !compact && rarity && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TagLabelRaritySegment, { rarity, theme }),
727
754
  !compact && status && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TagLabelStatusSegment, { type: status, theme }),
728
755
  !compact && children && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TagLabelCustomSlot, { theme, children })
729
756
  ]
@@ -732,6 +759,8 @@ var TagLabel = ({
732
759
  };
733
760
  // Annotate the CommonJS export names for ESM import in node:
734
761
  0 && (module.exports = {
735
- TagLabel
762
+ RARITY_TYPES,
763
+ TagLabel,
764
+ isRarityType
736
765
  });
737
766
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.tsx","../../../../foundation/primitives-native/src/Box.tsx","../../../../foundation/primitives-native/src/Text.tsx","../../../../foundation/primitives-native/src/Icon.tsx","../../src/TagLabel.tsx"],"sourcesContent":["export * from \"./TagLabel\";\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\n/**\n * Yoga has no inline formatting context, so RN's ViewStyle.display only\n * accepts \"flex\" | \"none\". Every inline-ish web value collapses to a plain\n * flex container — the box already fills only its content on native, which is\n * what those callers wanted on web anyway. Returning undefined (rather than\n * \"flex\") leaves RN's own default in place.\n */\nconst toNativeDisplay = (\n display: BoxProps[\"display\"]\n): ViewStyle[\"display\"] => (display === \"none\" ? \"none\" : undefined);\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 display,\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 display: toNativeDisplay(display),\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 from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Icon: React.FC<IconProps> = ({\n children,\n color,\n size,\n testID,\n \"data-testid\": dataTestId,\n}) => {\n const style: ViewStyle = {\n width: typeof size === \"number\" ? size : undefined,\n height: typeof size === \"number\" ? size : undefined,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n // On native, we try to pass the color down to children (like Text primitives)\n // to mimic the CSS inheritance behavior of the web version.\n const childrenWithProps = React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child, {\n color: child.props.color || color,\n // Also pass size if child seems to be an icon that needs it\n size: child.props.size || size,\n });\n }\n return child;\n });\n\n return (\n <View style={style} testID={dataTestId || testID}>\n {childrenWithProps}\n </View>\n );\n};\n","import React, { type ReactNode } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text, Icon } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme, type ThemeOverrideProps } from \"@xsolla/xui-core\";\nimport { User, Settings, Info, X } from \"@xsolla/xui-icons\";\n\n// --- Types ---\n\nexport type EntityType = \"item\" | \"product\" | \"account\";\n\nexport type StatusType = \"sale\" | \"maintenance\" | \"inactive\";\n\nexport type SubentityType =\n | \"skin\"\n | \"in-game-item\"\n | \"currency\"\n | \"bundle\"\n | \"lootbox\"\n | \"game-key\"\n | \"discount\"\n | \"coupon\"\n | \"game\"\n | \"sdk\"\n | \"plugin\"\n | \"api\"\n | \"service\"\n | \"tool\"\n | \"webshop\"\n | \"app\"\n | \"launcher\"\n | \"library\"\n | \"engine\"\n | \"user\"\n | \"developer\"\n | \"influencer\"\n | \"publisher\"\n | \"settings\";\n\nexport interface TagLabelProps extends ThemeOverrideProps {\n /** Main entity type */\n entityType?: EntityType;\n /** Detailed sub-category */\n subentityType?: SubentityType;\n /**\n * Custom icon for the entity module.\n *\n * @deprecated Use {@link TagLabelProps.entityIcon} instead. `icon` is kept as\n * an alias for backwards compatibility and will be removed in a future major.\n */\n icon?: ReactNode;\n /**\n * Show the icon of the entity module.\n *\n * @default true\n */\n showEntityIcon?: boolean;\n /**\n * Show the text label of the entity module. Defaults to `!compact`, so\n * `compact` only seeds the default — an explicit value always wins.\n *\n * @default !compact\n */\n showEntityLabel?: boolean;\n /** Custom icon override for the entity module. Takes precedence over `icon`. */\n entityIcon?: ReactNode;\n /**\n * Show the icon of the subentity module.\n *\n * @default true\n */\n showSubentityIcon?: boolean;\n /**\n * Show the text label of the subentity module. Defaults to `!compact`, so\n * `compact` only seeds the default — an explicit value always wins.\n *\n * @default !compact\n */\n showSubentityLabel?: boolean;\n /** Custom icon override for the subentity module. */\n subentityIcon?: ReactNode;\n /** ID series (e.g. \"XLA\") */\n series?: string;\n /** ID number (e.g. \"-001-001\") */\n number?: string;\n /** Item label/name */\n label?: string;\n /** Rarity icon or indicator */\n rarity?: ReactNode;\n /** Status indicator */\n status?: StatusType;\n /** Whether to show the compact version */\n compact?: boolean;\n /** Custom content slot */\n children?: ReactNode;\n /** Custom styles */\n style?: any;\n testID?: string;\n}\n\n// --- Internal Segments ---\n\nconst SEGMENT_HEIGHT = 24;\n\ninterface ModuleColors {\n bg?: string;\n text?: string;\n textCompact?: string;\n}\n\n/**\n * Shared chip renderer for the entity and subentity modules.\n *\n * Rendering rules (see XUITSD-101):\n * - icon + label -> full chip: tinted background, icon, text.\n * - icon only -> 24x24 square, no chip background (the legacy compact\n * entity rendering).\n * - label only -> full chip minus the icon; background, padding and\n * typography are unchanged.\n * - neither -> nothing is rendered at all.\n */\nconst TagLabelModuleChip: React.FC<{\n showIcon: boolean;\n showLabel: boolean;\n icon: ReactNode;\n label: string;\n colors: ModuleColors;\n}> = ({ showIcon, showLabel, icon, label, colors }) => {\n if (!showIcon && !showLabel) return null;\n\n if (showIcon && !showLabel) {\n return (\n <Box\n height={SEGMENT_HEIGHT}\n width={SEGMENT_HEIGHT}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Icon size={16} color={colors.textCompact || colors.text}>\n {icon}\n </Icon>\n </Box>\n );\n }\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingLeft={2}\n paddingRight={4}\n flexDirection=\"row\"\n alignItems=\"center\"\n gap={2}\n >\n {showIcon && (\n <Icon size={20} color={colors.text}>\n {icon}\n </Icon>\n )}\n <Text\n color={colors.text}\n fontSize={14}\n fontWeight=\"500\"\n whiteSpace=\"nowrap\"\n >\n {label}\n </Text>\n </Box>\n );\n};\n\nconst TagLabelEntitySegment: React.FC<{\n type: EntityType;\n showIcon: boolean;\n showLabel: boolean;\n icon?: ReactNode;\n theme: any;\n}> = ({ type, showIcon, showLabel, icon, theme }) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors: ModuleColors | undefined = tagLabel?.[type];\n\n if (!colors) return null;\n\n // Generic icon placeholders for now based on Figma intent\n const renderIcon = () => {\n if (icon) return icon;\n switch (type) {\n case \"item\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Cube placeholder\n case \"product\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Chip placeholder\n case \"account\":\n return <User size=\"100%\" />;\n }\n };\n\n return (\n <TagLabelModuleChip\n showIcon={showIcon}\n showLabel={showLabel}\n icon={renderIcon()}\n label={type.charAt(0).toUpperCase() + type.slice(1)}\n colors={colors}\n />\n );\n};\n\nconst TagLabelSubentitySegment: React.FC<{\n type: SubentityType;\n showIcon: boolean;\n showLabel: boolean;\n icon?: ReactNode;\n theme: any;\n}> = ({ type, showIcon, showLabel, icon, theme }) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors: ModuleColors | undefined = tagLabel?.subentity;\n\n if (!colors || !type || typeof type !== \"string\") return null;\n\n // Icon mapping based on Figma\n const renderIcon = () => {\n if (icon) return icon;\n switch (type) {\n case \"skin\":\n case \"in-game-item\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Pencil placeholder\n case \"game\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Controller placeholder\n case \"user\":\n return <User size=\"100%\" />;\n case \"settings\":\n return <Settings size=\"100%\" />;\n // ... more icons as needed\n default:\n return <Info size=\"100%\" />;\n }\n };\n\n const label = type\n .split(\"-\")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\" \");\n\n return (\n <TagLabelModuleChip\n showIcon={showIcon}\n showLabel={showLabel}\n icon={renderIcon()}\n label={label}\n colors={colors}\n />\n );\n};\n\nconst TagLabelIdSegment: React.FC<{\n series?: string;\n number?: string;\n compact?: boolean;\n theme: any;\n}> = ({ series, number, compact, theme }) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors = tagLabel?.id;\n\n if (!colors) return null;\n\n if (compact) {\n return (\n <Box\n height={SEGMENT_HEIGHT}\n paddingLeft={4}\n paddingRight={6}\n flexDirection=\"row\"\n alignItems=\"center\"\n >\n {series && (\n <Text color={colors.textCompact} fontSize={14} fontWeight=\"400\">\n {series}\n </Text>\n )}\n {number && (\n <Text color={colors.textCompact} fontSize={14} fontWeight=\"400\">\n {number}\n </Text>\n )}\n </Box>\n );\n }\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingLeft={4}\n paddingRight={6}\n flexDirection=\"row\"\n alignItems=\"center\"\n gap={2}\n >\n {series && (\n <Box\n backgroundColor={colors.bgSeries}\n height={16}\n paddingHorizontal={2}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Text color={colors.textSeries} fontSize={14} fontWeight=\"500\">\n {series}\n </Text>\n </Box>\n )}\n {number && (\n <Text color={colors.textNumber} fontSize={14} fontWeight=\"500\">\n {number}\n </Text>\n )}\n </Box>\n );\n};\n\nconst TagLabelNameSegment: React.FC<{ label: string; theme: any }> = ({\n label,\n theme,\n}) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors = tagLabel?.name;\n\n if (!colors) return null;\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingHorizontal={4}\n justifyContent=\"center\"\n >\n <Text\n color={colors.text}\n fontSize={14}\n fontWeight=\"400\"\n whiteSpace=\"nowrap\"\n style={{\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n }}\n >\n {label}\n </Text>\n </Box>\n );\n};\n\nconst TagLabelRaritySegment: React.FC<{ rarity: ReactNode; theme: any }> = ({\n rarity,\n theme,\n}) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors = tagLabel?.rarity;\n\n if (!colors) return null;\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n width={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingHorizontal={6}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Icon size={18} color={colors.text}>\n {rarity || <Info size=\"100%\" />}\n </Icon>\n </Box>\n );\n};\n\nconst TagLabelStatusSegment: React.FC<{ type: StatusType; theme: any }> = ({\n type,\n theme,\n}) => {\n let bg;\n let icon;\n\n if (!theme?.colors?.background) return null;\n\n switch (type) {\n case \"sale\":\n bg = theme.colors.background.warning?.primary;\n icon = <Info size=\"100%\" />; // Info placeholder\n break;\n case \"maintenance\":\n bg = theme.colors.background.success?.primary;\n icon = <Settings size=\"100%\" />;\n break;\n case \"inactive\":\n bg = theme.colors.background.alert?.primary;\n icon = <X size=\"100%\" />;\n break;\n }\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n width={SEGMENT_HEIGHT}\n backgroundColor={bg}\n paddingHorizontal={2}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Icon size={20} color=\"black\">\n {icon}\n </Icon>\n </Box>\n );\n};\n\nconst TagLabelCustomSlot: React.FC<{ children: ReactNode; theme: any }> = ({\n children,\n theme,\n}) => {\n if (!theme?.colors?.background) return null;\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={theme.colors.background.secondary}\n paddingHorizontal={6}\n justifyContent=\"center\"\n >\n {typeof children === \"string\" ? (\n <Text\n color={theme?.colors?.content?.primary}\n fontSize={14}\n fontWeight=\"500\"\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </Box>\n );\n};\n\n// --- Main Component ---\n\nexport const TagLabel: React.FC<TagLabelProps> = ({\n entityType,\n subentityType,\n icon,\n entityIcon,\n showEntityIcon = true,\n showEntityLabel,\n subentityIcon,\n showSubentityIcon = true,\n showSubentityLabel,\n series,\n number,\n label,\n rarity,\n status,\n compact = false,\n children,\n style,\n testID,\n themeMode,\n themeProductContext,\n}) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n\n // `compact` only seeds the DEFAULT for the label flags — an explicit\n // show*Label always wins over it.\n const entityLabelVisible = showEntityLabel ?? !compact;\n const subentityLabelVisible = showSubentityLabel ?? !compact;\n\n // `entityIcon` is the canonical prop; `icon` is the deprecated alias.\n const resolvedEntityIcon = entityIcon ?? icon;\n\n const renderEntity =\n Boolean(entityType) && (showEntityIcon || entityLabelVisible);\n const renderSubentity =\n Boolean(subentityType) && (showSubentityIcon || subentityLabelVisible);\n\n return (\n <Box\n testID={testID}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{\n overflow: \"hidden\",\n borderRadius: theme.shape.tagLabel.borderRadius,\n ...style,\n }}\n >\n {renderEntity && (\n <TagLabelEntitySegment\n type={entityType as EntityType}\n showIcon={showEntityIcon}\n showLabel={entityLabelVisible}\n icon={resolvedEntityIcon}\n theme={theme}\n />\n )}\n\n {renderSubentity && (\n <TagLabelSubentitySegment\n type={subentityType as SubentityType}\n showIcon={showSubentityIcon}\n showLabel={subentityLabelVisible}\n icon={subentityIcon}\n theme={theme}\n />\n )}\n\n {(series || number) && (\n <TagLabelIdSegment\n series={series}\n number={number}\n compact={compact}\n theme={theme}\n />\n )}\n\n {!compact && label && <TagLabelNameSegment label={label} theme={theme} />}\n\n {!compact && rarity && (\n <TagLabelRaritySegment rarity={rarity} theme={theme} />\n )}\n\n {!compact && status && (\n <TagLabelStatusSegment type={status} theme={theme} />\n )}\n\n {!compact && children && (\n <TagLabelCustomSlot theme={theme}>{children}</TagLabelCustomSlot>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,0BASO;AAqND;AAlNN,IAAM,0BAA6D;AAAA,EACjE,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,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AsB,QAAgB,OAAc;AAAA,QAGtD,CAAC,WAAW,UACX,6CAAC,yBAAsB,MAAM,QAAQ,OAAc;AAAA,QAGpD,CAAC,WAAW,YACX,6CAAC,sBAAmB,OAAe,UAAS;AAAA;AAAA;AAAA,EAEhD;AAEJ;","names":["import_react_native","import_jsx_runtime","RNText","import_react_native","import_jsx_runtime","React","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/index.tsx","../../../../foundation/primitives-native/src/Box.tsx","../../../../foundation/primitives-native/src/Text.tsx","../../../../foundation/primitives-native/src/Icon.tsx","../../src/TagLabel.tsx"],"sourcesContent":["export * from \"./TagLabel\";\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\n/**\n * Yoga has no inline formatting context, so RN's ViewStyle.display only\n * accepts \"flex\" | \"none\". Every inline-ish web value collapses to a plain\n * flex container — the box already fills only its content on native, which is\n * what those callers wanted on web anyway. Returning undefined (rather than\n * \"flex\") leaves RN's own default in place.\n */\nconst toNativeDisplay = (\n display: BoxProps[\"display\"]\n): ViewStyle[\"display\"] => (display === \"none\" ? \"none\" : undefined);\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 display,\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 display: toNativeDisplay(display),\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 from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Icon: React.FC<IconProps> = ({\n children,\n color,\n size,\n testID,\n \"data-testid\": dataTestId,\n}) => {\n const style: ViewStyle = {\n width: typeof size === \"number\" ? size : undefined,\n height: typeof size === \"number\" ? size : undefined,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n // On native, we try to pass the color down to children (like Text primitives)\n // to mimic the CSS inheritance behavior of the web version.\n const childrenWithProps = React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child, {\n color: child.props.color || color,\n // Also pass size if child seems to be an icon that needs it\n size: child.props.size || size,\n });\n }\n return child;\n });\n\n return (\n <View style={style} testID={dataTestId || testID}>\n {childrenWithProps}\n </View>\n );\n};\n","import React, { type ReactNode } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box, Text, Icon } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme, type ThemeOverrideProps } from \"@xsolla/xui-core\";\nimport { User, Settings, Info, X } from \"@xsolla/xui-icons\";\nimport {\n RarityCommon,\n RarityUncommon,\n RarityRare,\n RarityEpic,\n RarityLegendary,\n} from \"@xsolla/xui-icons-tag-label\";\n\n// --- Types ---\n\nexport type EntityType = \"item\" | \"product\" | \"account\";\n\nexport type StatusType = \"sale\" | \"maintenance\" | \"inactive\";\n\n/**\n * Rarity tiers, in the order of the Figma `.tag-label-rarity` component set.\n * Each tier maps to a `tag-label/rarity/*` colour token and a rarity icon.\n */\nexport type RarityType = \"common\" | \"uncommon\" | \"rare\" | \"epic\" | \"legendary\";\n\nexport const RARITY_TYPES: readonly RarityType[] = [\n \"common\",\n \"uncommon\",\n \"rare\",\n \"epic\",\n \"legendary\",\n];\n\nexport type SubentityType =\n | \"skin\"\n | \"in-game-item\"\n | \"currency\"\n | \"bundle\"\n | \"lootbox\"\n | \"game-key\"\n | \"discount\"\n | \"coupon\"\n | \"game\"\n | \"sdk\"\n | \"plugin\"\n | \"api\"\n | \"service\"\n | \"tool\"\n | \"webshop\"\n | \"app\"\n | \"launcher\"\n | \"library\"\n | \"engine\"\n | \"user\"\n | \"developer\"\n | \"influencer\"\n | \"publisher\"\n | \"settings\";\n\nexport interface TagLabelProps extends ThemeOverrideProps {\n /** Main entity type */\n entityType?: EntityType;\n /** Detailed sub-category */\n subentityType?: SubentityType;\n /**\n * Custom icon for the entity module.\n *\n * @deprecated Use {@link TagLabelProps.entityIcon} instead. `icon` is kept as\n * an alias for backwards compatibility and will be removed in a future major.\n */\n icon?: ReactNode;\n /**\n * Show the icon of the entity module.\n *\n * @default true\n */\n showEntityIcon?: boolean;\n /**\n * Show the text label of the entity module. Defaults to `!compact`, so\n * `compact` only seeds the default — an explicit value always wins.\n *\n * @default !compact\n */\n showEntityLabel?: boolean;\n /** Custom icon override for the entity module. Takes precedence over `icon`. */\n entityIcon?: ReactNode;\n /**\n * Show the icon of the subentity module.\n *\n * @default true\n */\n showSubentityIcon?: boolean;\n /**\n * Show the text label of the subentity module. Defaults to `!compact`, so\n * `compact` only seeds the default — an explicit value always wins.\n *\n * @default !compact\n */\n showSubentityLabel?: boolean;\n /** Custom icon override for the subentity module. */\n subentityIcon?: ReactNode;\n /** ID series (e.g. \"XLA\") */\n series?: string;\n /** ID number (e.g. \"-001-001\") */\n number?: string;\n /** Item label/name */\n label?: string;\n /**\n * Rarity tier. Pass a {@link RarityType} (`\"common\"` … `\"legendary\"`) to\n * render the tier's background colour and icon from the design tokens.\n *\n * A custom `ReactNode` is still accepted for backwards compatibility; it is\n * rendered as the icon on the `common` background.\n */\n rarity?: RarityType | ReactNode;\n /** Custom icon override for the rarity module. */\n rarityIcon?: ReactNode;\n /** Status indicator */\n status?: StatusType;\n /** Whether to show the compact version */\n compact?: boolean;\n /** Custom content slot */\n children?: ReactNode;\n /** Custom styles */\n style?: any;\n testID?: string;\n}\n\n// --- Internal Segments ---\n\nconst SEGMENT_HEIGHT = 24;\n\ninterface ModuleColors {\n bg?: string;\n text?: string;\n textCompact?: string;\n}\n\ntype RarityColors = Partial<Record<RarityType | \"content\", string>>;\n\nconst RARITY_ICONS: Record<RarityType, React.ComponentType<any>> = {\n common: RarityCommon,\n uncommon: RarityUncommon,\n rare: RarityRare,\n epic: RarityEpic,\n legendary: RarityLegendary,\n};\n\nexport const isRarityType = (value: unknown): value is RarityType =>\n typeof value === \"string\" &&\n (RARITY_TYPES as readonly string[]).includes(value);\n\n/**\n * Shared chip renderer for the entity and subentity modules.\n *\n * Rendering rules (see XUITSD-101):\n * - icon + label -> full chip: tinted background, icon, text.\n * - icon only -> 24x24 square, no chip background (the legacy compact\n * entity rendering).\n * - label only -> full chip minus the icon; background, padding and\n * typography are unchanged.\n * - neither -> nothing is rendered at all.\n */\nconst TagLabelModuleChip: React.FC<{\n showIcon: boolean;\n showLabel: boolean;\n icon: ReactNode;\n label: string;\n colors: ModuleColors;\n}> = ({ showIcon, showLabel, icon, label, colors }) => {\n if (!showIcon && !showLabel) return null;\n\n if (showIcon && !showLabel) {\n return (\n <Box\n height={SEGMENT_HEIGHT}\n width={SEGMENT_HEIGHT}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Icon size={16} color={colors.textCompact || colors.text}>\n {icon}\n </Icon>\n </Box>\n );\n }\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingLeft={2}\n paddingRight={4}\n flexDirection=\"row\"\n alignItems=\"center\"\n gap={2}\n >\n {showIcon && (\n <Icon size={20} color={colors.text}>\n {icon}\n </Icon>\n )}\n <Text\n color={colors.text}\n fontSize={14}\n fontWeight=\"500\"\n whiteSpace=\"nowrap\"\n >\n {label}\n </Text>\n </Box>\n );\n};\n\nconst TagLabelEntitySegment: React.FC<{\n type: EntityType;\n showIcon: boolean;\n showLabel: boolean;\n icon?: ReactNode;\n theme: any;\n}> = ({ type, showIcon, showLabel, icon, theme }) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors: ModuleColors | undefined = tagLabel?.[type];\n\n if (!colors) return null;\n\n // Generic icon placeholders for now based on Figma intent\n const renderIcon = () => {\n if (icon) return icon;\n switch (type) {\n case \"item\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Cube placeholder\n case \"product\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Chip placeholder\n case \"account\":\n return <User size=\"100%\" />;\n }\n };\n\n return (\n <TagLabelModuleChip\n showIcon={showIcon}\n showLabel={showLabel}\n icon={renderIcon()}\n label={type.charAt(0).toUpperCase() + type.slice(1)}\n colors={colors}\n />\n );\n};\n\nconst TagLabelSubentitySegment: React.FC<{\n type: SubentityType;\n showIcon: boolean;\n showLabel: boolean;\n icon?: ReactNode;\n theme: any;\n}> = ({ type, showIcon, showLabel, icon, theme }) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors: ModuleColors | undefined = tagLabel?.subentity;\n\n if (!colors || !type || typeof type !== \"string\") return null;\n\n // Icon mapping based on Figma\n const renderIcon = () => {\n if (icon) return icon;\n switch (type) {\n case \"skin\":\n case \"in-game-item\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Pencil placeholder\n case \"game\":\n return (\n <Box\n style={{ width: 12, height: 12, backgroundColor: colors.text }}\n />\n ); // Controller placeholder\n case \"user\":\n return <User size=\"100%\" />;\n case \"settings\":\n return <Settings size=\"100%\" />;\n // ... more icons as needed\n default:\n return <Info size=\"100%\" />;\n }\n };\n\n const label = type\n .split(\"-\")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\" \");\n\n return (\n <TagLabelModuleChip\n showIcon={showIcon}\n showLabel={showLabel}\n icon={renderIcon()}\n label={label}\n colors={colors}\n />\n );\n};\n\nconst TagLabelIdSegment: React.FC<{\n series?: string;\n number?: string;\n compact?: boolean;\n theme: any;\n}> = ({ series, number, compact, theme }) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors = tagLabel?.id;\n\n if (!colors) return null;\n\n if (compact) {\n return (\n <Box\n height={SEGMENT_HEIGHT}\n paddingLeft={4}\n paddingRight={6}\n flexDirection=\"row\"\n alignItems=\"center\"\n >\n {series && (\n <Text color={colors.textCompact} fontSize={14} fontWeight=\"400\">\n {series}\n </Text>\n )}\n {number && (\n <Text color={colors.textCompact} fontSize={14} fontWeight=\"400\">\n {number}\n </Text>\n )}\n </Box>\n );\n }\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingLeft={4}\n paddingRight={6}\n flexDirection=\"row\"\n alignItems=\"center\"\n gap={2}\n >\n {series && (\n <Box\n backgroundColor={colors.bgSeries}\n height={16}\n paddingHorizontal={2}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Text color={colors.textSeries} fontSize={14} fontWeight=\"500\">\n {series}\n </Text>\n </Box>\n )}\n {number && (\n <Text color={colors.textNumber} fontSize={14} fontWeight=\"500\">\n {number}\n </Text>\n )}\n </Box>\n );\n};\n\nconst TagLabelNameSegment: React.FC<{ label: string; theme: any }> = ({\n label,\n theme,\n}) => {\n const tagLabel = theme?.colors?.control?.tagLabel;\n const colors = tagLabel?.name;\n\n if (!colors) return null;\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={colors.bg}\n paddingHorizontal={4}\n justifyContent=\"center\"\n >\n <Text\n color={colors.text}\n fontSize={14}\n fontWeight=\"400\"\n whiteSpace=\"nowrap\"\n style={{\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n }}\n >\n {label}\n </Text>\n </Box>\n );\n};\n\n/**\n * Rarity module — mirrors the Figma `.tag-label-rarity` component set: a\n * 24×24 chip whose background is the tier's `tag-label/rarity/<tier>` token,\n * with the tier's 18px icon drawn in the `tag-label/rarity/content` colour.\n */\nconst TagLabelRaritySegment: React.FC<{\n rarity: RarityType | ReactNode;\n icon?: ReactNode;\n theme: any;\n}> = ({ rarity, icon, theme }) => {\n const colors: RarityColors | undefined =\n theme?.colors?.control?.tagLabel?.rarity;\n\n if (!colors) return null;\n\n const tier: RarityType = isRarityType(rarity) ? rarity : \"common\";\n const TierIcon = RARITY_ICONS[tier];\n const content = colors.content;\n\n // A legacy ReactNode `rarity` is treated as a custom icon.\n const customIcon = icon ?? (isRarityType(rarity) ? undefined : rarity);\n\n return (\n <Box\n testID={`tag-label__rarity-${tier}`}\n height={SEGMENT_HEIGHT}\n width={SEGMENT_HEIGHT}\n backgroundColor={colors[tier]}\n paddingHorizontal={3}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {customIcon ? (\n <Icon size={18} color={content}>\n {customIcon}\n </Icon>\n ) : (\n <TierIcon size={18} color={content} />\n )}\n </Box>\n );\n};\n\nconst TagLabelStatusSegment: React.FC<{ type: StatusType; theme: any }> = ({\n type,\n theme,\n}) => {\n let bg;\n let icon;\n\n if (!theme?.colors?.background) return null;\n\n switch (type) {\n case \"sale\":\n bg = theme.colors.background.warning?.primary;\n icon = <Info size=\"100%\" />; // Info placeholder\n break;\n case \"maintenance\":\n bg = theme.colors.background.success?.primary;\n icon = <Settings size=\"100%\" />;\n break;\n case \"inactive\":\n bg = theme.colors.background.alert?.primary;\n icon = <X size=\"100%\" />;\n break;\n }\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n width={SEGMENT_HEIGHT}\n backgroundColor={bg}\n paddingHorizontal={2}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Icon size={20} color=\"black\">\n {icon}\n </Icon>\n </Box>\n );\n};\n\nconst TagLabelCustomSlot: React.FC<{ children: ReactNode; theme: any }> = ({\n children,\n theme,\n}) => {\n if (!theme?.colors?.background) return null;\n\n return (\n <Box\n height={SEGMENT_HEIGHT}\n backgroundColor={theme.colors.background.secondary}\n paddingHorizontal={6}\n justifyContent=\"center\"\n >\n {typeof children === \"string\" ? (\n <Text\n color={theme?.colors?.content?.primary}\n fontSize={14}\n fontWeight=\"500\"\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </Box>\n );\n};\n\n// --- Main Component ---\n\n/**\n * Segments render in the Figma `TagLabel` order:\n * entity → subentity → rarity → ID → name → status → custom slot.\n */\nexport const TagLabel: React.FC<TagLabelProps> = ({\n entityType,\n subentityType,\n icon,\n entityIcon,\n showEntityIcon = true,\n showEntityLabel,\n subentityIcon,\n showSubentityIcon = true,\n showSubentityLabel,\n series,\n number,\n label,\n rarity,\n rarityIcon,\n status,\n compact = false,\n children,\n style,\n testID,\n themeMode,\n themeProductContext,\n}) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n\n // `compact` only seeds the DEFAULT for the label flags — an explicit\n // show*Label always wins over it.\n const entityLabelVisible = showEntityLabel ?? !compact;\n const subentityLabelVisible = showSubentityLabel ?? !compact;\n\n // `entityIcon` is the canonical prop; `icon` is the deprecated alias.\n const resolvedEntityIcon = entityIcon ?? icon;\n\n const renderEntity =\n Boolean(entityType) && (showEntityIcon || entityLabelVisible);\n const renderSubentity =\n Boolean(subentityType) && (showSubentityIcon || subentityLabelVisible);\n\n return (\n <Box\n testID={testID}\n flexDirection=\"row\"\n alignItems=\"center\"\n style={{\n overflow: \"hidden\",\n borderRadius: theme.shape.tagLabel.borderRadius,\n ...style,\n }}\n >\n {renderEntity && (\n <TagLabelEntitySegment\n type={entityType as EntityType}\n showIcon={showEntityIcon}\n showLabel={entityLabelVisible}\n icon={resolvedEntityIcon}\n theme={theme}\n />\n )}\n\n {renderSubentity && (\n <TagLabelSubentitySegment\n type={subentityType as SubentityType}\n showIcon={showSubentityIcon}\n showLabel={subentityLabelVisible}\n icon={subentityIcon}\n theme={theme}\n />\n )}\n\n {!compact && rarity && (\n <TagLabelRaritySegment\n rarity={rarity}\n icon={rarityIcon}\n theme={theme}\n />\n )}\n\n {(series || number) && (\n <TagLabelIdSegment\n series={series}\n number={number}\n compact={compact}\n theme={theme}\n />\n )}\n\n {!compact && label && <TagLabelNameSegment label={label} theme={theme} />}\n\n {!compact && status && (\n <TagLabelStatusSegment type={status} theme={theme} />\n )}\n\n {!compact && children && (\n <TagLabelCustomSlot theme={theme}>{children}</TagLabelCustomSlot>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,0BASO;AAqND;AAlNN,IAAM,0BAA6D;AAAA,EACjE,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,KAAK;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AAA,MAEC;AAAA,wBACC;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,UAAU;AAAA,YACV,WAAW;AAAA,YACX,MAAM;AAAA,YACN;AAAA;AAAA,QACF;AAAA,QAGD,mBACC;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,UAAU;AAAA,YACV,WAAW;AAAA,YACX,MAAM;AAAA,YACN;AAAA;AAAA,QACF;AAAA,QAGD,CAAC,WAAW,UACX;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,MAAM;AAAA,YACN;AAAA;AAAA,QACF;AAAA,SAGA,UAAU,WACV;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA;AAAA,QACF;AAAA,QAGD,CAAC,WAAW,SAAS,6CAAC,uBAAoB,OAAc,OAAc;AAAA,QAEtE,CAAC,WAAW,UACX,6CAAC,yBAAsB,MAAM,QAAQ,OAAc;AAAA,QAGpD,CAAC,WAAW,YACX,6CAAC,sBAAmB,OAAe,UAAS;AAAA;AAAA;AAAA,EAEhD;AAEJ;","names":["import_react_native","import_jsx_runtime","RNText","import_react_native","import_jsx_runtime","React","import_jsx_runtime"]}