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

@cdx-ui/utils

Latest version: v0.3.16

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: af185178_dfh, candescent-dev
68 Versions
3.5K Downloads

Scan summary

@cdx-ui/utils was last scanned on 24 Nov 2026 at version 0.3.16. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 68 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 0.3.16.
  • Downloads: 3,462 downloads.

Versions

68 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.16 LATEST 24 Nov 2026 No rules fired
0.3.14 11 Nov 2026 No rules fired
0.3.13 11 Nov 2026 No rules fired
0.3.12 4 Nov 2026 Not shown
0.3.11 30 Oct 2026 Not shown

No rules fired in 0.3.16

Findings

Findings for v0.3.16. 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.3.16; other versions have their own rules, not their own score.

README

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

@cdx-ui/utils

Shared utilities used across FDS packages.

Provides common helpers for styling, event handling, state management, and context propagation used by @cdx-ui/primitives and @cdx-ui/components.

Installation

pnpm add @cdx-ui/utils

Exports

Common helpers
Export Description
cn(...inputs) Merges class names with clsx + tailwind-merge — conditionals and conflict resolution in one call.
composeEventHandlers(...handlers) Chains multiple event callbacks into a single handler; skips null/undefined entries.
useControllableState(params) Hook that supports both controlled and uncontrolled modes for a single value. Derives isControlled from whether the prop is undefined.
mergeRefs(...refs) Combines multiple refs (callback or object) into one ref callback.
flattenChildren(children) Recursively flattens React children (including Fragments) into a flat array with re-keyed elements.
ariaAttr(condition) Returns true (boolean) or undefined — shorthand for boolean ARIA attribute values.
cva(base, config) Class Variance Authority helper for authoring variant-driven className builders. VariantProps<typeof fn> derives the prop type.
Context
Export Description
createContext(displayName) Wrapper around React's createContext that returns a [Provider, useHook] tuple. The hook throws a descriptive error if called outside the provider — eliminates silent undefined bugs.
Style context

Used internally by @cdx-ui/components to propagate variant props (size, color, etc.) from a compound root to its sub-components.

Export Description
ParentContext React context for propagating variant props from a compound root to sub-components. Wrap children in <ParentContext.Provider value={...}>.
useStyleContext(scope?) Reads the style context set by the nearest ParentContext.Provider.
useParentContext() Reads the full StyleContextMap from the nearest provider.
Form control

Low-level form-field state used by the Field and Input primitives.

Export Description
useFormControlRoot(props) Creates the root state object for a form field (id generation, tracks hasFeedbackText/hasHelpText for describedby assembly).
useFormControl(props) Merges component-level props with inherited form-control context. Assembles aria-describedby from feedback/help text ids.
useFormControlContext() Reads form-control state from the nearest provider.
useReportFormControlLabelFocus(isActive) Reports focus/active state to the parent FormControlContext — used by Input/Select.Trigger to trigger isFocused styling on the associated label.
useReportFormControlValidation(isInvalid, errorMessage) Reports a self-validating control's invalid state and message to the parent Field — used by DatePicker so Field.Error / Field.Helper anywhere in the field reflect it.
FormControlContext The React context object for form-control state propagation.

Exported types

Type Source
UseControllableStateParams common
VariantProps common
Focusable form-control
FormControlContextValue form-control
FormControlFieldProps form-control
FormControlRootProps form-control
FormControlRootReturn form-control
FormControlState form-control
FormControlValidation form-control
StyleContextMap style

Testing

Tests are colocated next to source files (*.test.{ts,tsx}). Run via the utils Jest project:

pnpm nx run @cdx-ui/utils:test

All runtime exports have test coverage using @testing-library/react-native (renderHook, act).

Further reading

The Forge UI docs site covers setup and usage. The repository's internal authoring guides cover the patterns behind these helpers — useControllableState and composeEventHandlers in the state guide, and cn() and CVA variant authoring in the styling guide.

License

License: MIT

MIT © 2026 Digital First Holdings LLC. The full license text ships in the package as LICENSE.

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 @cdx-ui/utils

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

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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