@snap-rail/ui 0.2.0 → 0.4.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/lib/charts.js CHANGED
@@ -11,7 +11,13 @@ import { createContext, useContext, useSyncExternalStore } from "react";
11
11
  function cn(...values) {
12
12
  return values.filter((value) => typeof value === "string" && value.length > 0).join(" ");
13
13
  }
14
- /** The anatomy attributes every semantic component renders. */
14
+ /**
15
+ * The anatomy attributes every semantic component renders. The identity is
16
+ * component-owned: components spread these AFTER caller props so a composite
17
+ * can never mask a host part (a masked `button.root` loses every skin rule
18
+ * and falls back to the UA default look). Composites tag their own wrappers
19
+ * instead of pushing `part()` into a child component's props.
20
+ */
15
21
  function part(component, name) {
16
22
  return {
17
23
  "data-snap-component": component,