sunpeak 0.5.10 → 0.5.12
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/index.cjs +27 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -8
- package/dist/index.js.map +1 -1
- package/dist/style.css +12 -4
- package/package.json +1 -1
- package/template/src/components/album/album-card.tsx +3 -1
- package/template/src/components/album/albums.test.tsx +47 -0
- package/template/src/components/album/albums.tsx +15 -2
- package/template/src/components/album/fullscreen-viewer.test.tsx +30 -1
- package/template/src/components/album/fullscreen-viewer.tsx +17 -3
- package/template/src/components/card/card.tsx +3 -0
- package/template/src/components/resources/albums-resource.test.tsx +81 -0
- package/template/src/components/resources/albums-resource.tsx +18 -1
- package/template/src/components/resources/carousel-resource.test.tsx +156 -0
- package/template/src/components/resources/carousel-resource.tsx +17 -2
- package/template/src/components/resources/counter-resource.test.tsx +116 -0
- package/template/src/components/resources/counter-resource.tsx +30 -5
package/dist/index.cjs
CHANGED
|
@@ -7379,7 +7379,7 @@ SegmentedControl.Option = Segment;
|
|
|
7379
7379
|
function SimpleSidebar({ children, controls }) {
|
|
7380
7380
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-screen w-full overflow-hidden", children: [
|
|
7381
7381
|
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: "hidden md:flex w-56 flex-col border-r border-subtle bg-background h-screen overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
7382
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xs font-semibold
|
|
7382
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xs font-semibold sticky top-0 bg-background z-10", children: "Controls" }),
|
|
7383
7383
|
controls
|
|
7384
7384
|
] }) }) }) }),
|
|
7385
7385
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 overflow-auto h-screen", children })
|
|
@@ -11070,11 +11070,30 @@ function ChatGPTSimulator({
|
|
|
11070
11070
|
SidebarSelect,
|
|
11071
11071
|
{
|
|
11072
11072
|
value: (userAgent == null ? void 0 : userAgent.device.type) ?? "desktop",
|
|
11073
|
-
onChange: (value) =>
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11073
|
+
onChange: (value) => {
|
|
11074
|
+
const deviceType = value;
|
|
11075
|
+
let capabilities;
|
|
11076
|
+
switch (deviceType) {
|
|
11077
|
+
case "mobile":
|
|
11078
|
+
capabilities = { hover: false, touch: true };
|
|
11079
|
+
break;
|
|
11080
|
+
case "tablet":
|
|
11081
|
+
capabilities = { hover: false, touch: true };
|
|
11082
|
+
break;
|
|
11083
|
+
case "desktop":
|
|
11084
|
+
capabilities = { hover: true, touch: false };
|
|
11085
|
+
break;
|
|
11086
|
+
case "unknown":
|
|
11087
|
+
default:
|
|
11088
|
+
capabilities = { hover: true, touch: false };
|
|
11089
|
+
break;
|
|
11090
|
+
}
|
|
11091
|
+
mock.setUserAgent({
|
|
11092
|
+
...userAgent,
|
|
11093
|
+
device: { type: deviceType },
|
|
11094
|
+
capabilities
|
|
11095
|
+
});
|
|
11096
|
+
},
|
|
11078
11097
|
options: [
|
|
11079
11098
|
{ value: "mobile", label: "Mobile" },
|
|
11080
11099
|
{ value: "tablet", label: "Tablet" },
|
|
@@ -11083,7 +11102,7 @@ function ChatGPTSimulator({
|
|
|
11083
11102
|
]
|
|
11084
11103
|
}
|
|
11085
11104
|
) }),
|
|
11086
|
-
/* @__PURE__ */ jsxRuntime.jsx(SidebarControl, { label: "Capabilities", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
11105
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pl-4", children: /* @__PURE__ */ jsxRuntime.jsx(SidebarControl, { label: "Capabilities", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
11087
11106
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11088
11107
|
SidebarCheckbox,
|
|
11089
11108
|
{
|
|
@@ -11114,7 +11133,7 @@ function ChatGPTSimulator({
|
|
|
11114
11133
|
label: "Touch"
|
|
11115
11134
|
}
|
|
11116
11135
|
)
|
|
11117
|
-
] }) }),
|
|
11136
|
+
] }) }) }),
|
|
11118
11137
|
/* @__PURE__ */ jsxRuntime.jsx(SidebarControl, { label: "Safe Area Insets", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-1", children: [
|
|
11119
11138
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-0.5", children: [
|
|
11120
11139
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[9px] text-secondary", children: "Top" }),
|