@vertz/ui-primitives 0.2.38 → 0.2.41

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.
@@ -1,5 +1,8 @@
1
1
  // src/composed/with-styles.ts
2
2
  function withStyles(component, classes) {
3
+ if (!component) {
4
+ throw new Error("withStyles() received an undefined component. " + "This usually means a composed primitive failed to load in the client bundle. " + "Check that @vertz/ui-primitives is installed and its exports resolve correctly.");
5
+ }
3
6
  const styled = (props) => component({ ...props, classes });
4
7
  const subComponents = {};
5
8
  for (const key of Object.getOwnPropertyNames(component)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withStyles
3
- } from "../../shared/chunk-r3pffzss.js";
3
+ } from "../../shared/chunk-3sahbk4d.js";
4
4
  export {
5
5
  withStyles
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertz/ui-primitives",
3
- "version": "0.2.38",
3
+ "version": "0.2.41",
4
4
  "description": "Headless UI primitives for Vertz — Accordion, Dialog, Select, and more",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@floating-ui/dom": "^1.7.5",
40
- "@vertz/ui": "^0.2.35"
40
+ "@vertz/ui": "^0.2.39"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@happy-dom/global-registrator": "^20.7.0",
44
- "@vertz/ui-compiler": "^0.2.35",
44
+ "@vertz/ui-compiler": "^0.2.39",
45
45
  "bunup": "^0.16.31",
46
46
  "happy-dom": "^20.7.0",
47
47
  "typescript": "^5.7.0"