@imfusion/web-ui 0.10.1-dev.59.gdb86c93c → 0.10.1-dev.60.g7891a716
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 +1 -0
- package/dist/components/separator/separator.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/integrations/frame-selection.js +1 -1
- package/dist/{separator-lzz4A3x_.js → separator-BV2TR8U0.js} +16 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -65,6 +65,7 @@ never changes the character width, so columns stay aligned. CoFo Sans Mono still
|
|
|
65
65
|
- `imf-web-ui-update` proposes and `imf-web-ui-audit` reports aligning the core runtime packages (React, Base UI, Vite+) with the versions Web UI builds with. — Nikolaus Brunner <brunner@imfusion.com>
|
|
66
66
|
- `localWebUILink()` and a `paths` block in `tsconfig.json` let an app run against a symlinked web-ui checkout with one React and one set of types. `imf-web-ui-setup` proposes both and `imf-web-ui-audit` reports a missing one. — Nikolaus Brunner <brunner@imfusion.com>
|
|
67
67
|
- The shell's navigation toggle sets `aria-controls` from the navbar, and reads the `id` the navbar generates. A consumer `id` on the Navbar is what it points at. — Nikolaus Brunner <brunner@imfusion.com>
|
|
68
|
+
- `Separator` takes `tone="minor"` for a neutral line, a quiet break inside a page; the default stays primary. — Nikolaus Brunner <brunner@imfusion.com>
|
|
68
69
|
- `Select.ItemDescription` sets a muted second line under an item's text, such as what a role allows; the trigger shows only the item text, and the list keeps the trigger's width so descriptions wrap. — Nikolaus Brunner <brunner@imfusion.com>
|
|
69
70
|
- `Table.Root` takes `density` (`compact`, `comfortable`, `spacious`) for the cell padding. — Nikolaus Brunner <brunner@imfusion.com>
|
|
70
71
|
- `Table.HeaderCell` and `Table.Cell` take `action` for a column of buttons: it shrinks to its content, so the data columns keep the width. — Nikolaus Brunner <brunner@imfusion.com>
|
|
@@ -2,14 +2,16 @@ import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const separator: (props?: ({
|
|
4
4
|
variant?: "solid" | "dashed" | "dotted" | null | undefined;
|
|
5
|
+
tone?: "minor" | "primary" | null | undefined;
|
|
5
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
7
|
interface Props extends React.ComponentProps<typeof SeparatorPrimitive>, VariantProps<typeof separator> {
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
|
-
* Separator — visual divider between content sections.
|
|
10
|
+
* Separator — visual divider between content sections. `tone="minor"` draws a neutral line for a quiet break inside a
|
|
11
|
+
* page; the default primary line marks a stronger division.
|
|
10
12
|
*
|
|
11
13
|
* @see https://base-ui.com/react/components/separator
|
|
12
14
|
* @llm https://base-ui.com/react/components/separator.md
|
|
13
15
|
*/
|
|
14
|
-
export declare function Separator({ orientation, variant, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function Separator({ orientation, variant, tone, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { _ as le, c as ue, f as de, g as fe, h as pe, l as me, m as he, p as ge,
|
|
|
5
5
|
import { a as ve, o as ye, r as be, t as xe } from "./code-NTcddiYk.js";
|
|
6
6
|
import { c as Se } from "./slider-Bf274cMe.js";
|
|
7
7
|
import { a as Ce, c as we, i as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae } from "./scroll-area-z9Lf9uIk.js";
|
|
8
|
-
import { t as je } from "./separator-
|
|
8
|
+
import { t as je } from "./separator-BV2TR8U0.js";
|
|
9
9
|
import { Button as Me } from "@base-ui/react/button";
|
|
10
10
|
import { cva as Ne, cva as g, cx as Pe, cx as _ } from "class-variance-authority";
|
|
11
11
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../meta-V_KyLeGn.js";
|
|
2
2
|
import { a as t, i as n, o as r, t as i } from "../slider-Bf274cMe.js";
|
|
3
|
-
import { t as a } from "../separator-
|
|
3
|
+
import { t as a } from "../separator-BV2TR8U0.js";
|
|
4
4
|
import { cva as o } from "class-variance-authority";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { useEffect as u, useMemo as d, useState as f } from "react";
|
|
@@ -3,22 +3,30 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
3
3
|
import { Separator as n } from "@base-ui/react/separator";
|
|
4
4
|
var r = {
|
|
5
5
|
root: "imf-ui-separator-module-root",
|
|
6
|
+
toneMinor: "imf-ui-separator-module-toneMinor",
|
|
6
7
|
variantDashed: "imf-ui-separator-module-variantDashed",
|
|
7
8
|
variantDotted: "imf-ui-separator-module-variantDotted",
|
|
8
9
|
variantSolid: "imf-ui-separator-module-variantSolid"
|
|
9
|
-
}, i = e(r.root, { variants: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
}, i = e(r.root, { variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
solid: r.variantSolid,
|
|
13
|
+
dashed: r.variantDashed,
|
|
14
|
+
dotted: r.variantDotted
|
|
15
|
+
},
|
|
16
|
+
tone: {
|
|
17
|
+
primary: null,
|
|
18
|
+
minor: r.toneMinor
|
|
19
|
+
}
|
|
20
|
+
} });
|
|
21
|
+
function a({ orientation: e = "horizontal", variant: r = "solid", tone: a = "primary", ...o }) {
|
|
15
22
|
return /* @__PURE__ */ t(n, {
|
|
16
|
-
...
|
|
23
|
+
...o,
|
|
17
24
|
orientation: e,
|
|
18
25
|
"data-imf-ui-component": "Separator",
|
|
19
26
|
className: i({
|
|
20
27
|
variant: r,
|
|
21
|
-
|
|
28
|
+
tone: a,
|
|
29
|
+
className: o.className
|
|
22
30
|
})
|
|
23
31
|
});
|
|
24
32
|
}
|