@stll/ui 0.89.1 → 0.89.2

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.
@@ -35,16 +35,12 @@ const LandingLayout = ({ actions, placeholder = false, hero, children, footer })
35
35
  children: /* @__PURE__ */ jsxs("div", {
36
36
  className: "flex min-h-full w-full flex-col items-center px-4 @2xl:h-full",
37
37
  children: [
38
- /* @__PURE__ */ jsx(LandingScroll, {
39
- className: "min-h-72 w-full max-w-2xl shrink-0 basis-[22rem] @2xl:shrink",
40
- scrollFade: true,
41
- children: /* @__PURE__ */ jsx("div", {
42
- className: "flex min-h-full w-full flex-col items-center justify-center gap-8 px-1",
43
- children: hero
44
- })
38
+ /* @__PURE__ */ jsx("div", {
39
+ className: "flex w-full max-w-2xl shrink-0 basis-[22rem] flex-col items-center justify-center gap-8 px-1 @2xl:shrink",
40
+ children: hero
45
41
  }),
46
42
  /* @__PURE__ */ jsx("div", {
47
- className: "grid w-full shrink-0 gap-8 pb-6 @2xl:min-h-0 @2xl:flex-1 @2xl:auto-rows-fr @2xl:grid-cols-3",
43
+ className: "grid w-full shrink-0 gap-8 pb-6 @2xl:min-h-48 @2xl:flex-1 @2xl:auto-rows-fr @2xl:grid-cols-3",
48
44
  children
49
45
  }),
50
46
  footer !== void 0 && /* @__PURE__ */ jsx(LandingScroll, {
@@ -17,11 +17,7 @@ const visibleColumnIds = (schema, hiddenColumnIds) => {
17
17
  return schema.columns.filter((column) => !column.capabilities.hide || !hidden.has(column.id)).map((column) => column.id);
18
18
  };
19
19
  /** The starting width of every column, keyed by id. */
20
- const tableColumnSizing = (schema) => {
21
- const sizing = {};
22
- for (const column of schema.columns) sizing[column.id] = column.size;
23
- return sizing;
24
- };
20
+ const tableColumnSizing = (schema) => Object.fromEntries(schema.columns.map((column) => [column.id, column.size]));
25
21
  /**
26
22
  * A duplicate column id silently drops a column: the table keys by id, so the
27
23
  * second declaration wins and the first disappears with no error anywhere.
package/dist/lib/slot.js CHANGED
@@ -39,15 +39,19 @@ const Slot = ({ ref: parentRef, children, className, style, ...rest }) => {
39
39
  ...style,
40
40
  ...typeof childStyle === "object" && childStyle !== null ? childStyle : {}
41
41
  };
42
+ const mergedHandlers = /* @__PURE__ */ new Map();
42
43
  const restEntries = Object.entries(rest);
43
44
  for (const [key, parentValue] of restEntries) if (key.startsWith("on") && typeof parentValue === "function") {
44
45
  const childValue = childProps[key];
45
- if (typeof childValue === "function") mergedProps[key] = (...args) => {
46
+ if (typeof childValue === "function") mergedHandlers.set(key, (...args) => {
46
47
  Reflect.apply(childValue, void 0, args);
47
48
  Reflect.apply(parentValue, void 0, args);
48
- };
49
+ });
49
50
  }
50
- return cloneElement(child, mergedProps);
51
+ return cloneElement(child, {
52
+ ...mergedProps,
53
+ ...Object.fromEntries(mergedHandlers)
54
+ });
51
55
  };
52
56
  const composeSlotRefs = (parentRef, childRef) => (node) => {
53
57
  setSlotRef(parentRef, node);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/ui",
3
- "version": "0.89.1",
3
+ "version": "0.89.2",
4
4
  "description": "Stella's design system: bidi-aware React primitives built on Base UI, the dockable inspector pane, and the Tailwind v4 theme they are styled with.",
5
5
  "keywords": [
6
6
  "base-ui",