@softure-ai/theme-notion 0.16.0 → 0.16.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ Newest first. Each version lists what changed for an app that uses the theme. Wh
4
4
  production, the version gets a line `verified in: <app>@<commit>` ([docs/05](../../docs/05-adoption-playbook.md),
5
5
  "Definition of done").
6
6
 
7
+ ## 0.16.1
8
+
9
+ - `FoldRow actions` sit inside the row's bar: the summary's background now runs under them when the row is open or
10
+ hovered (hovering the actions lights the bar too), with the controls at its right end, instead of a separate
11
+ column beside a shorter bar. They stay outside the `<summary>`, so a click still never folds the row. Same API.
12
+
7
13
  ## 0.16.0
8
14
 
9
15
  - `FoldRow isOpenInitially`: renders the row open (`<details open>`), so a page can open the row its address points at (a
package/README.md CHANGED
@@ -185,8 +185,9 @@ drawn after the chevron in place of `title`, `facts` and `badges`; `details` and
185
185
  so the content can be several tables or a list. `size="touch"` makes the summary at least the `touch-target` height
186
186
  (44 px) instead of the row height, for a phone list. `actions` puts controls on the row's right (a delete button,
187
187
  a menu), beside the `<details>` rather than inside its `<summary>`, so clicking one never folds the row; they show
188
- whether the row is open or closed, centred on the summary's first line, and the row's bottom border moves to the
189
- wrapper (`data-slot="fold-row-with-actions"`). `isOpenInitially` renders the row open (`<details open>`), for the row the
188
+ whether the row is open or closed, centred on the summary's first line. They sit at the right end of the row's bar:
189
+ the summary's background runs under them when the row is open or hovered, so the bar reads as one. The row's bottom
190
+ border moves to the wrapper (`data-slot="fold-row-with-actions"`). `isOpenInitially` renders the row open (`<details open>`), for the row the
190
191
  address points at; only the first render reads it, and the reader can still fold the row.
191
192
 
192
193
  ```tsx
@@ -44,8 +44,9 @@ export type FoldRowProps = FoldRowSummaryProps & FoldRowDetailsProps & {
44
44
  */
45
45
  readonly isOpenInitially?: boolean;
46
46
  /**
47
- * Controls on the row's right, outside the summary, so clicking them never folds the row (a delete button, a
48
- * menu). Shown whether the row is open or closed, centred on the summary's first line.
47
+ * Controls at the right end of the row's bar (a delete button, a menu). They sit beside the `<summary>`, not in
48
+ * it, so clicking them never folds the row, but they share its background: the bar runs under them when the row
49
+ * is open or hovered. Shown whether the row is open or closed, centred on the summary's first line.
49
50
  */
50
51
  readonly actions?: ReactNode;
51
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FoldRow.d.ts","sourceRoot":"","sources":["../../src/notion/FoldRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAe,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,YAAY;IAC3B,gEAAgE;IAChE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;CACtB;AAED,wFAAwF;AACxF,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IACtC,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC;CAC1B,GACD;IACE,0FAA0F;IAC1F,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;CACzB,CAAC;AAEN,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,GAC3B;IACE,2CAA2C;IA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24
24
  }
25
25
  // The actions sit beside the `<details>`, not in its `<summary>`: a control inside the summary would fold the row.
26
- return (_jsxs("div", { "data-slot": "fold-row-with-actions", className: "flex items-start gap-1 border-b border-border", children: [_jsx(FoldRowDetails, { ...props, className: "min-w-0 flex-1" }), _jsx("div", { "data-slot": "fold-row-actions", className: cn("flex shrink-0 items-center gap-1", size === "touch" ? "min-h-touch-target" : "min-h-row-height"), children: actions })] }));
26
+ // They carry the summary's background (the details is their peer: open; the wrapper is the hover group), so the
27
+ // summary and the actions read as one bar with the controls at its right end.
28
+ return (_jsxs("div", { "data-slot": "fold-row-with-actions", className: "group/fold-row-with-actions flex items-start border-b border-border", children: [_jsx(FoldRowDetails, { ...props, className: "peer/fold-row min-w-0 flex-1", hasActions: true }), _jsx("div", { "data-slot": "fold-row-actions", className: cn("flex shrink-0 items-center gap-1 rounded-r-md pr-1 transition-colors duration-120 group-hover/fold-row-with-actions:bg-accent peer-open/fold-row:bg-accent", size === "touch" ? "min-h-touch-target" : "min-h-row-height"), children: actions })] }));
27
29
  }
28
30
  function FoldRowDetails(props) {
29
- const { isInset = false, isOpenInitially = false, size = "default", children, className } = props;
30
- return (_jsxs("details", { "data-slot": "fold-row", open: isOpenInitially || undefined, className: cn("group/fold-row", className), children: [_jsx("summary", { "data-slot": "fold-row-summary", className: cn("flex cursor-pointer list-none flex-wrap items-center gap-x-2 gap-y-1 rounded-md px-1 py-1 transition-colors duration-120 group-open/fold-row:bg-accent hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none [&::-webkit-details-marker]:hidden", size === "touch" ? "min-h-touch-target" : "min-h-row-height"), children: props.summary === undefined ? (_jsx(FoldRowFixedSummary, { title: props.title, facts: props.facts, badges: props.badges ?? [] })) : (_jsxs(_Fragment, { children: [_jsx(FoldRowChevron, {}), _jsx("span", { "data-slot": "fold-row-summary-slot", className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1", children: props.summary })] })) }), _jsxs("div", { "data-slot": "fold-row-content", "data-inset": isInset, className: isInset ? INSET_CONTENT_CLASS : CONTENT_CLASS, children: [props.details === undefined ? null : _jsx(DetailTable, { label: props.detailsLabel, rows: props.details }), children] })] }));
31
+ const { isInset = false, isOpenInitially = false, size = "default", children, className, hasActions = false } = props;
32
+ return (_jsxs("details", { "data-slot": "fold-row", open: isOpenInitially || undefined, className: cn("group/fold-row", className), children: [_jsx("summary", { "data-slot": "fold-row-summary", className: cn("flex cursor-pointer list-none flex-wrap items-center gap-x-2 gap-y-1 rounded-md px-1 py-1 transition-colors duration-120 group-open/fold-row:bg-accent hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none [&::-webkit-details-marker]:hidden", size === "touch" ? "min-h-touch-target" : "min-h-row-height",
33
+ // With actions the bar continues under them: no rounding on the right, and hovering them lights it too.
34
+ hasActions && "rounded-r-none group-hover/fold-row-with-actions:bg-accent"), children: props.summary === undefined ? (_jsx(FoldRowFixedSummary, { title: props.title, facts: props.facts, badges: props.badges ?? [] })) : (_jsxs(_Fragment, { children: [_jsx(FoldRowChevron, {}), _jsx("span", { "data-slot": "fold-row-summary-slot", className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-2 gap-y-1", children: props.summary })] })) }), _jsxs("div", { "data-slot": "fold-row-content", "data-inset": isInset, className: isInset ? INSET_CONTENT_CLASS : CONTENT_CLASS, children: [props.details === undefined ? null : _jsx(DetailTable, { label: props.detailsLabel, rows: props.details }), children] })] }));
31
35
  }
32
36
  //# sourceMappingURL=FoldRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FoldRow.js","sourceRoot":"","sources":["../../src/notion/FoldRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAkB,MAAM,kBAA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,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,GAAI,EACpG,QAAQ,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softure-ai/theme-notion",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "SOFTURE AI Notion theme: shadcn/ui components (new-york v4, Radix, Tailwind CSS v4, lucide) with the Notion design system's tokens and deltas, ready to import.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -59,8 +59,9 @@ export type FoldRowProps = FoldRowSummaryProps &
59
59
  */
60
60
  readonly isOpenInitially?: boolean;
61
61
  /**
62
- * Controls on the row's right, outside the summary, so clicking them never folds the row (a delete button, a
63
- * menu). Shown whether the row is open or closed, centred on the summary's first line.
62
+ * Controls at the right end of the row's bar (a delete button, a menu). They sit beside the `<summary>`, not in
63
+ * it, so clicking them never folds the row, but they share its background: the bar runs under them when the row
64
+ * is open or hovered. Shown whether the row is open or closed, centred on the summary's first line.
64
65
  */
65
66
  readonly actions?: ReactNode;
66
67
  };
@@ -129,12 +130,17 @@ export function FoldRow(props: FoldRowProps) {
129
130
  return <FoldRowDetails {...props} className="border-b border-border" />;
130
131
  }
131
132
  // The actions sit beside the `<details>`, not in its `<summary>`: a control inside the summary would fold the row.
133
+ // They carry the summary's background (the details is their peer: open; the wrapper is the hover group), so the
134
+ // summary and the actions read as one bar with the controls at its right end.
132
135
  return (
133
- <div data-slot="fold-row-with-actions" className="flex items-start gap-1 border-b border-border">
134
- <FoldRowDetails {...props} className="min-w-0 flex-1" />
136
+ <div data-slot="fold-row-with-actions" className="group/fold-row-with-actions flex items-start border-b border-border">
137
+ <FoldRowDetails {...props} className="peer/fold-row min-w-0 flex-1" hasActions />
135
138
  <div
136
139
  data-slot="fold-row-actions"
137
- className={cn("flex shrink-0 items-center gap-1", size === "touch" ? "min-h-touch-target" : "min-h-row-height")}
140
+ className={cn(
141
+ "flex shrink-0 items-center gap-1 rounded-r-md pr-1 transition-colors duration-120 group-hover/fold-row-with-actions:bg-accent peer-open/fold-row:bg-accent",
142
+ size === "touch" ? "min-h-touch-target" : "min-h-row-height",
143
+ )}
138
144
  >
139
145
  {actions}
140
146
  </div>
@@ -142,8 +148,8 @@ export function FoldRow(props: FoldRowProps) {
142
148
  );
143
149
  }
144
150
 
145
- function FoldRowDetails(props: FoldRowProps & { readonly className: string }) {
146
- const { isInset = false, isOpenInitially = false, size = "default", children, className } = props;
151
+ function FoldRowDetails(props: FoldRowProps & { readonly className: string; readonly hasActions?: boolean }) {
152
+ const { isInset = false, isOpenInitially = false, size = "default", children, className, hasActions = false } = props;
147
153
  return (
148
154
  <details data-slot="fold-row" open={isOpenInitially || undefined} className={cn("group/fold-row", className)}>
149
155
  <summary
@@ -151,6 +157,8 @@ function FoldRowDetails(props: FoldRowProps & { readonly className: string }) {
151
157
  className={cn(
152
158
  "flex cursor-pointer list-none flex-wrap items-center gap-x-2 gap-y-1 rounded-md px-1 py-1 transition-colors duration-120 group-open/fold-row:bg-accent hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none [&::-webkit-details-marker]:hidden",
153
159
  size === "touch" ? "min-h-touch-target" : "min-h-row-height",
160
+ // With actions the bar continues under them: no rounding on the right, and hovering them lights it too.
161
+ hasActions && "rounded-r-none group-hover/fold-row-with-actions:bg-accent",
154
162
  )}
155
163
  >
156
164
  {props.summary === undefined ? (