@cdx-ui/primitives 0.0.1-beta.116 → 0.0.1-beta.117

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.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -37,6 +37,7 @@ Concrete behavioral components with built-in interaction state tracking, accessi
37
37
  | `ProgressBarRoot`, `ProgressBarIndicator` | Concrete progress primitives (Root owns percent context; Indicator maps percent to width) |
38
38
  | `RadioRoot`, `RadioGroup` | Concrete radio primitives (Root owns interaction + checked state + `.web` split; Group owns selection contract + group context. Indicator/Label live in `@cdx-ui/components`) |
39
39
  | `SelectRoot`, `SelectTrigger`, `SelectContent`, `SelectItem` | Concrete select primitives (Root owns controlled value/open state; Trigger is platform-split; Content owns FocusScope + keyboard nav; Item owns selection state. Value/Icon/ItemLabel live in `@cdx-ui/components`) |
40
+ | `SliderRoot`, `SliderRail`, `SliderThumb` | Concrete slider primitives (Root owns clamped/snapped value + orientation + keyboard/drag state + context; Rail owns rail-tap-to-seek + track layout; Thumb owns drag gesture + focus. Track/Popup/Marker/MarkerGroup live in `@cdx-ui/components`) |
40
41
  | `useSwitch` | Headless hook for `Switch` (controlled state + ARIA + interaction tracking; styled layer renders the host element) |
41
42
  | `TileRoot`, `TileGroup` | Concrete tile primitives (Root owns interaction + selection state + per-tile context; Group owns selection contract + group context. LeadingSlot/Content/Title/Description/Indicator/TrailingSlot live in `@cdx-ui/components`) |
42
43
 
@@ -49,6 +50,9 @@ Concrete behavioral components with built-in interaction state tracking, accessi
49
50
  | `domDataAttributes` | Web-specific variant that converts data attributes to DOM-compatible format. |
50
51
  | `mergeDomDataAttributes` | Web-specific merge variant for combining DOM data attribute sources. |
51
52
  | `Slot` | Primitives-layer `asChild` implementation — merges props/ref onto the consumer's child element. |
53
+ | `assignRef` | Assigns a value to a callback or object ref (`ForwardedRef<T>`), handling both forms. |
54
+ | `createPortalFn` | Reference to `ReactDOM.createPortal` on web, `undefined` on native (lazy-loaded so native bundles never reference `react-dom`). |
55
+ | `useAnchorPosition` | Measures an anchor element's on-screen layout (`AnchorLayout`), with optional remeasure key and per-frame tracking; powers overlay/popup positioning (e.g. `Slider.Popup`). |
52
56
  | `FormControlContext` | Re-exported from `@cdx-ui/utils`; shared context for field/form control state. |
53
57
  | `useFormControlContext` | Re-exported from `@cdx-ui/utils`; reads `FormControlContext` in descendant components. |
54
58
  | `OverlayInsetsProvider` | Context provider for safe-area insets used by overlay/dialog positioning. |
@@ -86,4 +90,5 @@ Several modules export context providers and hooks for reading component state f
86
90
  | progress | — | `useProgressContext` | `ProgressContextValue` |
87
91
  | radio | `RadioProvider` | `useRadioContext` | `IRadioContextValue` |
88
92
  | select | — | `useSelectContext`, `useSelectItemContext` | `ISelectContextValue`, `ISelectItemContextValue` |
93
+ | slider | — | `useSliderContext` | `SliderContextValue` |
89
94
  | tile | `TileProvider` | `useTileContext` | `ITileContextValue`, `ITileGroupContextValue` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/primitives",
3
- "version": "0.0.1-beta.116",
3
+ "version": "0.0.1-beta.117",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",
@@ -60,7 +60,7 @@
60
60
  "@react-stately/checkbox": "3.7.4",
61
61
  "@react-stately/radio": "3.12.0",
62
62
  "@react-stately/toggle": "3.9.4",
63
- "@cdx-ui/utils": "0.0.1-beta.116"
63
+ "@cdx-ui/utils": "0.0.1-beta.117"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/react": "19.1.17",