zudoku 0.16.2 → 0.16.3
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/app/entry.server.js +4 -5
- package/dist/app/entry.server.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +4 -2
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +1 -4
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +9 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +2 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
- package/dist/lib/ui/ActionButton.d.ts +2 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/lib/{OperationList-35iw_Gil.js → OperationList-BjppA5yM.js} +116 -113
- package/lib/OperationList-BjppA5yM.js.map +1 -0
- package/lib/{Route-BsEZmkNl.js → Route-D_djzMv3.js} +2 -2
- package/lib/{Route-BsEZmkNl.js.map → Route-D_djzMv3.js.map} +1 -1
- package/lib/{Spinner-C6zroowC.js → SidebarBadge-Bbt92M5K.js} +16 -18
- package/lib/SidebarBadge-Bbt92M5K.js.map +1 -0
- package/lib/Spinner-ChOGyPls.js +51 -0
- package/lib/Spinner-ChOGyPls.js.map +1 -0
- package/lib/{index-BdD8UbS-.js → index-_gtpPhlu.js} +342 -380
- package/lib/index-_gtpPhlu.js.map +1 -0
- package/lib/ui/ActionButton.js +24 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/urql-core-35Qt_U4i.js +1511 -0
- package/lib/{urql-core-KJnLL26g.js.map → urql-core-35Qt_U4i.js.map} +1 -1
- package/lib/zudoku.components.js +159 -158
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +737 -729
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +2 -2
- package/src/app/entry.server.tsx +9 -5
- package/src/lib/components/Header.tsx +5 -5
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -8
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +17 -3
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +5 -1
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/lib/OperationList-35iw_Gil.js.map +0 -1
- package/lib/Spinner-C6zroowC.js.map +0 -1
- package/lib/index-BdD8UbS-.js.map +0 -1
- package/lib/urql-core-KJnLL26g.js +0 -1455
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as s } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { B as c, S as n } from "../Spinner-ChOGyPls.js";
|
|
4
|
+
import { c as r } from "../cn-BmFQLtkS.js";
|
|
5
|
+
const l = m(
|
|
6
|
+
({ isPending: t, children: e, className: o, ...a }, i) => /* @__PURE__ */ s.jsxs(
|
|
7
|
+
c,
|
|
8
|
+
{
|
|
9
|
+
ref: i,
|
|
10
|
+
disabled: t,
|
|
11
|
+
...a,
|
|
12
|
+
className: r("relative", o),
|
|
13
|
+
children: [
|
|
14
|
+
t && /* @__PURE__ */ s.jsx("div", { className: "absolute inset-0 grid place-items-center", children: /* @__PURE__ */ s.jsx(n, {}) }),
|
|
15
|
+
/* @__PURE__ */ s.jsx("div", { className: r(t && "invisible"), children: e })
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
l.displayName = "ActionButton";
|
|
21
|
+
export {
|
|
22
|
+
l as ActionButton
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ActionButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButton.js","sources":["../../src/lib/ui/ActionButton.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { Button, type ButtonProps } from \"zudoku/ui/Button.js\";\nimport { Spinner } from \"../components/Spinner.js\";\nimport { cn } from \"../util/cn.js\";\n\ntype ActionButtonProps = ButtonProps & { isPending?: boolean };\n\nexport const ActionButton = forwardRef<HTMLButtonElement, ButtonProps>(\n ({ isPending, children, className, ...props }: ActionButtonProps, ref) => {\n return (\n <Button\n ref={ref}\n disabled={isPending}\n {...props}\n className={cn(\"relative\", className)}\n >\n {isPending && (\n <div className=\"absolute inset-0 grid place-items-center\">\n <Spinner />\n </div>\n )}\n <div className={cn(isPending && \"invisible\")}>{children}</div>\n </Button>\n );\n },\n);\n\nActionButton.displayName = \"ActionButton\";\n"],"names":["ActionButton","forwardRef","isPending","children","className","props","ref","jsxs","Button","cn","jsx","Spinner"],"mappings":";;;;AAOO,MAAMA,IAAeC;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,WAAAC,GAAW,GAAGC,KAA4BC,MAE9DC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,UAAUJ;AAAA,MACT,GAAGG;AAAA,MACJ,WAAWI,EAAG,YAAYL,CAAS;AAAA,MAElC,UAAA;AAAA,QAAAF,2BACE,OAAI,EAAA,WAAU,4CACb,UAAAQ,gBAAAA,MAACC,IAAQ,CAAA,GACX;AAAA,8BAED,OAAI,EAAA,WAAWF,EAAGP,KAAa,WAAW,GAAI,UAAAC,GAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIhE;AAEAH,EAAa,cAAc;"}
|