Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@xsolla/xui-input-color

Latest version: v0.234.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: admins-xsolla
46 Versions
6.0K Downloads

Scan summary

@xsolla/xui-input-color was last scanned on 23 Nov 2026 at version 0.234.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 46 versions; the latest 4 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 0.234.0.
  • Downloads: 6,001 downloads.

Versions

46 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.234.0 LATEST 23 Nov 2026 No rules fired
0.233.0 20 Nov 2026 No rules fired
0.232.1 20 Nov 2026 No rules fired
0.232.0 18 Nov 2026 Not shown
0.231.0 16 Nov 2026 Not shown

No rules fired in 0.234.0

Findings

Findings for v0.234.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.234.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Input Color

A compact inline control for previewing and editing a colour value — a colour swatch alongside an editable hex or RGB field, with optional transparency (alpha). Use it on its own, or as the inline trigger that opens a ColorPicker. Works on web and React Native via XUIProvider themed contexts.

Installation

npm install @xsolla/xui-input-color

Imports

import { InputColor } from '@xsolla/xui-input-color';
import type {
  InputColorProps,
  InputColorType,
  InputColorSize,
} from '@xsolla/xui-input-color';

Quick start

const [color, setColor] = useState('#22A8C3');

<InputColor value={color} onChange={setColor} />;

API Reference

<InputColor>
Prop Type Default Description
value string — Controlled colour as a hex string (e.g. #22A8C3; #RRGGBBAA when transparency is on).
defaultValue string '#000000' Initial value for uncontrolled usage.
onChange (value: string) => void — Change handler; always receives a hex string (8-digit when transparency is on).
onSwatchClick () => void — Fired when the swatch is activated. The swatch is interactive only when type="color" — use it to open a parent ColorPicker. Never called for other types.
type 'color' \| 'color-hex' \| 'color-rgb' \| 'hex' \| 'rgb' 'color-hex' Which controls render (see Types).
transparency boolean false Add an alpha (%) field and a transparency-aware swatch.
size 'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs' 'md' Control size.
label string — Visible label shown above the control.
id string auto HTML id used for accessibility linking.
aria-label string — Accessible name when no visible label is present.
testID string — Test identifier.

Inherits ThemeOverrideProps (themeMode, themeProductContext).

The canonical value is always a hex string, regardless of type. The hex and RGB fields are alternate editable representations of the same colour; editing either emits an updated hex through onChange.

Types

type Shows
color Swatch only — acts as a trigger (onSwatchClick).
color-hex Swatch + hex field.
color-rgb Swatch + R / G / B fields.
hex Hex field only.
rgb R / G / B fields only.

When transparency is on, an alpha (%) field is appended to every type and color gains it too.

Examples

Hex field (default)
const [color, setColor] = useState('#22A8C3');

<InputColor value={color} onChange={setColor} />;
RGB channels
const [color, setColor] = useState('#22A8C3');

<InputColor type="color-rgb" value={color} onChange={setColor} />;
Transparency (alpha)
const [color, setColor] = useState('#22A8C380');

<InputColor type="color-rgb" transparency value={color} onChange={setColor} />;
Sizes
<InputColor size="xl" defaultValue="#22A8C3" />
<InputColor size="md" defaultValue="#22A8C3" />
<InputColor size="xs" defaultValue="#22A8C3" />
Swatch as a ColorPicker trigger

type="color" renders the swatch alone; wire onSwatchClick to open a parent ColorPicker.

const [color, setColor] = useState('#22A8C3');
const [open, setOpen] = useState(false);

<InputColor
  type="color"
  value={color}
  onChange={setColor}
  onSwatchClick={() => setOpen(true)}
/>;
With a label
const [color, setColor] = useState('#22A8C3');

<InputColor value={color} onChange={setColor} label="Brand color" />;

Accessibility

  • The control is a role="group"; label it with label, aria-label, or an external aria-labelledby target.
  • Each editable field has an aria-label — "Hex color value", "Red channel", "Green channel", "Blue channel", "Opacity percentage".
  • For type="color" the swatch is a <button aria-label="Open color picker">; for every other type it is a decorative preview marked aria-hidden (not focusable, not clickable).
  • Numeric fields (R / G / B, alpha) step by ±1 with the ArrowUp / ArrowDown keys, clamped to their range (0–255, or 0–100 for alpha).
  • A visually hidden role="status" / aria-live="polite" region announces colour changes to screen readers (e.g. "Color updated to #FF0000").
  • Editing updates the swatch live as you type; the value commits (and normalizes — shorthand expand, uppercase, clamp) on blur, Enter, or Tab.
  • The transparency checkerboard behind a translucent colour is rendered with CSS and is web only; the solid swatch and alpha split render on native.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @xsolla/xui-input-color

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229