@momoi-labs/kiso-react 0.29.0 → 0.30.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/dist/header.d.ts +1 -1
- package/dist/header.js +4 -3
- package/dist/pane-grid.js +2 -1
- package/dist/panel-shadow.js +4 -3
- package/package.json +2 -2
package/dist/header.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare function Header({ className, variant, size, ...props }: React.ComponentProps<"header"> & {
|
|
2
|
+
declare function Header({ className, variant, size, children, ...props }: React.ComponentProps<"header"> & {
|
|
3
3
|
variant?: "default" | "plain" | "floating";
|
|
4
4
|
size?: "compact" | "default" | "editorial";
|
|
5
5
|
}): React.JSX.Element;
|
package/dist/header.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as cn } from "clsx";
|
|
3
|
+
import { PanelShadow } from "./panel-shadow.js";
|
|
3
4
|
// Shared product chrome: brand, Navigation, and global status or actions.
|
|
4
5
|
// Location within the product is Breadcrumb, not Header.
|
|
5
|
-
function Header({ className, variant, size, ...props }) {
|
|
6
|
-
return (
|
|
6
|
+
function Header({ className, variant, size, children, ...props }) {
|
|
7
|
+
return (_jsxs("header", { "data-slot": "header", "data-variant": variant, "data-size": size, className: cn("topbar", className), ...props, children: [_jsx(PanelShadow, {}), children] }));
|
|
7
8
|
}
|
|
8
9
|
export { Header };
|
package/dist/pane-grid.js
CHANGED
|
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { clsx as cn } from "clsx";
|
|
5
5
|
import { GripVertical } from "lucide-react";
|
|
6
|
+
import { PanelShadow } from "./panel-shadow.js";
|
|
6
7
|
import { useIsomorphicLayoutEffect } from "./use-isomorphic-layout-effect.js";
|
|
7
8
|
const COLUMNS = 12;
|
|
8
9
|
/* A drag ends on release, on cancellation, or when capture is lost. */
|
|
@@ -466,7 +467,7 @@ export function GridPane({ id, title, min: _min, size: _size, newRow: _newRow, a
|
|
|
466
467
|
if (!context)
|
|
467
468
|
throw new Error("GridPane must be a child of PaneGrid.");
|
|
468
469
|
const { placement, api } = context;
|
|
469
|
-
return (_jsxs("article", { "data-slot": "grid-pane", "data-pane-id": id, className: cn("grid-pane card", className), style: { "--r": placement.row, "--c": placement.col, "--s": placement.span, ...style }, ...props, children: [_jsxs("div", { "data-slot": "grid-pane-head", className: "grid-pane-head", ...(!placement.static && {
|
|
470
|
+
return (_jsxs("article", { "data-slot": "grid-pane", "data-pane-id": id, className: cn("grid-pane card", className), style: { "--r": placement.row, "--c": placement.col, "--s": placement.span, ...style }, ...props, children: [_jsx(PanelShadow, {}), _jsxs("div", { "data-slot": "grid-pane-head", className: "grid-pane-head", ...(!placement.static && {
|
|
470
471
|
role: "button",
|
|
471
472
|
tabIndex: 0,
|
|
472
473
|
"aria-label": `Move ${title}`,
|
package/dist/panel-shadow.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Non-box contours need a separate paint layer. Filtering this empty layer
|
|
3
|
-
leaves panel content, controls and translucent fills unchanged.
|
|
3
|
+
leaves panel content, controls and translucent fills unchanged. The second
|
|
4
|
+
span paints the Pixel fill as one polygon. */
|
|
4
5
|
export function PanelShadow() {
|
|
5
|
-
return
|
|
6
|
+
return _jsxs("span", { className: "panel-shadow", "aria-hidden": "true", children: [_jsx("span", { children: _jsx("span", {}) }), _jsx("span", {})] });
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momoi-labs/kiso-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Kiso React components built with shadcn/ui and Radix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepack": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@momoi-labs/kiso": "^1.
|
|
35
|
+
"@momoi-labs/kiso": "^1.8.1",
|
|
36
36
|
"class-variance-authority": "0.7.1",
|
|
37
37
|
"clsx": "2.1.1",
|
|
38
38
|
"radix-ui": "1.6.7",
|