@designa8/vibedesign-v6 1.12.16 → 1.12.17
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/README.md +1 -1
- package/dist/index.cjs +0 -5
- package/dist/index.js +0 -5
- package/package.json +1 -1
- package/src/atoms/PreviewToolbar/PreviewToolbar.tsx +2 -10
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4486,10 +4486,6 @@ var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", {
|
|
|
4486
4486
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
|
|
4487
4487
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M8 21h8M12 17v4" })
|
|
4488
4488
|
] });
|
|
4489
|
-
var SidebarIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4490
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
|
|
4491
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M9 3v18" })
|
|
4492
|
-
] });
|
|
4493
4489
|
var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4494
4490
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
|
|
4495
4491
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
|
|
@@ -4514,7 +4510,6 @@ var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { wid
|
|
|
4514
4510
|
] });
|
|
4515
4511
|
var VIEWPORT_OPTIONS = [
|
|
4516
4512
|
{ id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
|
|
4517
|
-
{ id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
|
|
4518
4513
|
{ id: "mobile", Icon: MobileIcon, label: "Mobile view" }
|
|
4519
4514
|
];
|
|
4520
4515
|
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
package/dist/index.js
CHANGED
|
@@ -4433,10 +4433,6 @@ var DesktopIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16
|
|
|
4433
4433
|
/* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
|
|
4434
4434
|
/* @__PURE__ */ jsx20("path", { d: "M8 21h8M12 17v4" })
|
|
4435
4435
|
] });
|
|
4436
|
-
var SidebarIcon2 = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4437
|
-
/* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
|
|
4438
|
-
/* @__PURE__ */ jsx20("path", { d: "M9 3v18" })
|
|
4439
|
-
] });
|
|
4440
4436
|
var MobileIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4441
4437
|
/* @__PURE__ */ jsx20("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
|
|
4442
4438
|
/* @__PURE__ */ jsx20("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
|
|
@@ -4461,7 +4457,6 @@ var DotsIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16",
|
|
|
4461
4457
|
] });
|
|
4462
4458
|
var VIEWPORT_OPTIONS = [
|
|
4463
4459
|
{ id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
|
|
4464
|
-
{ id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
|
|
4465
4460
|
{ id: "mobile", Icon: MobileIcon, label: "Mobile view" }
|
|
4466
4461
|
];
|
|
4467
4462
|
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx20(
|
package/package.json
CHANGED
|
@@ -11,13 +11,6 @@ const DesktopIcon = () => (
|
|
|
11
11
|
</svg>
|
|
12
12
|
);
|
|
13
13
|
|
|
14
|
-
const SidebarIcon = () => (
|
|
15
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
|
16
|
-
<rect x="2" y="3" width="20" height="18" rx="2" />
|
|
17
|
-
<path d="M9 3v18" />
|
|
18
|
-
</svg>
|
|
19
|
-
);
|
|
20
|
-
|
|
21
14
|
const MobileIcon = () => (
|
|
22
15
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
|
23
16
|
<rect x="5" y="2" width="14" height="20" rx="2" />
|
|
@@ -65,7 +58,7 @@ const DotsIcon = () => (
|
|
|
65
58
|
|
|
66
59
|
// ─── Types ─────────────────────────────────────────────────────────────────────
|
|
67
60
|
|
|
68
|
-
export type Viewport = "desktop" | "
|
|
61
|
+
export type Viewport = "desktop" | "mobile";
|
|
69
62
|
|
|
70
63
|
interface ViewportOption {
|
|
71
64
|
id: Viewport;
|
|
@@ -75,7 +68,6 @@ interface ViewportOption {
|
|
|
75
68
|
|
|
76
69
|
const VIEWPORT_OPTIONS: ViewportOption[] = [
|
|
77
70
|
{ id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
|
|
78
|
-
{ id: "sidebar", Icon: SidebarIcon, label: "Sidebar view" },
|
|
79
71
|
{ id: "mobile", Icon: MobileIcon, label: "Mobile view" },
|
|
80
72
|
];
|
|
81
73
|
|
|
@@ -99,7 +91,7 @@ export interface PreviewToolbarProps {
|
|
|
99
91
|
onExpand?: () => void;
|
|
100
92
|
/**
|
|
101
93
|
* When true, the expand/arrows button renders with variant=primary and
|
|
102
|
-
* aria-pressed=true. None of the
|
|
94
|
+
* aria-pressed=true. None of the viewport buttons appear active while
|
|
103
95
|
* expanded is true — only one selection indicator is shown at a time.
|
|
104
96
|
*/
|
|
105
97
|
expanded?: boolean;
|