@speakeasy-api/moonshine 1.15.0 → 1.16.0
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/components/AppLayout/context.d.ts +16 -0
- package/dist/components/AppLayout/index.d.ts +65 -0
- package/dist/components/AppLayout/keys.d.ts +1 -0
- package/dist/components/AppLayout/provider.d.ts +8 -0
- package/dist/components/Tooltip/index.d.ts +2 -1
- package/dist/{createCustomLucideIcon-YlrRX5h9.mjs → createCustomLucideIcon-CsaZ2N8b.mjs} +2 -2
- package/dist/{createCustomLucideIcon-YlrRX5h9.mjs.map → createCustomLucideIcon-CsaZ2N8b.mjs.map} +1 -1
- package/dist/{gems-BcsO9cXq.mjs → gems-C0vg8d9o.mjs} +2 -2
- package/dist/{gems-BcsO9cXq.mjs.map → gems-C0vg8d9o.mjs.map} +1 -1
- package/dist/{go-CiWl_aXI.mjs → go-CDtvsCZN.mjs} +2 -2
- package/dist/{go-CiWl_aXI.mjs.map → go-CDtvsCZN.mjs.map} +1 -1
- package/dist/hooks/useAppLayout.d.ts +1 -0
- package/dist/{index-COXZ9O-g.mjs → index-CDwy3rNJ.mjs} +13 -9
- package/dist/index-CDwy3rNJ.mjs.map +1 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/{maven-DhmnGXoB.mjs → maven-BOmqaGzB.mjs} +2 -2
- package/dist/{maven-DhmnGXoB.mjs.map → maven-BOmqaGzB.mjs.map} +1 -1
- package/dist/moonshine.es.js +1 -1
- package/dist/{npm-CvQ4GKW4.mjs → npm-CPGpUeqY.mjs} +2 -2
- package/dist/{npm-CvQ4GKW4.mjs.map → npm-CPGpUeqY.mjs.map} +1 -1
- package/dist/{nuget-5a2icRS2.mjs → nuget-CdhA9y5m.mjs} +2 -2
- package/dist/{nuget-5a2icRS2.mjs.map → nuget-CdhA9y5m.mjs.map} +1 -1
- package/dist/{packagist-CET6q9hi.mjs → packagist-C8hXdX7P.mjs} +2 -2
- package/dist/{packagist-CET6q9hi.mjs.map → packagist-C8hXdX7P.mjs.map} +1 -1
- package/dist/{pypi-DsuRYjdK.mjs → pypi-Bf-brPZ2.mjs} +2 -2
- package/dist/{pypi-DsuRYjdK.mjs.map → pypi-Bf-brPZ2.mjs.map} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/utilities.css +4 -0
- package/types/utilities.d.ts +1 -1
- package/dist/index-COXZ9O-g.mjs.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface KeybindConfig {
|
|
2
|
+
/**
|
|
3
|
+
* The keybind to trigger the action
|
|
4
|
+
* Will be CMDOrCTRL + key
|
|
5
|
+
*/
|
|
6
|
+
key: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AppLayoutContextType {
|
|
10
|
+
collapsed: boolean;
|
|
11
|
+
setCollapsed: (collapsed: boolean) => void;
|
|
12
|
+
keybinds: {
|
|
13
|
+
toggle: KeybindConfig;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const AppLayoutContext: import('react').Context<AppLayoutContextType>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
interface AppLayoutProps extends PropsWithChildren {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
interface AppLayoutSurfaceProps extends PropsWithChildren {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
interface AppLayoutSidebarProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode | ((collapsed: boolean) => React.ReactNode);
|
|
11
|
+
}
|
|
12
|
+
interface AppLayoutBreadcrumbProps extends PropsWithChildren {
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
interface AppLayoutBreadcrumbItemProps extends PropsWithChildren {
|
|
16
|
+
className?: string;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface AppLayoutCollapseButtonProps extends PropsWithChildren {
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
interface AppLayoutSurfaceHeaderProps extends PropsWithChildren {
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
interface AppLayoutHeaderProps extends PropsWithChildren {
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const AppLayout: {
|
|
29
|
+
({ children }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
} & {
|
|
32
|
+
Surface: {
|
|
33
|
+
({ children, className }: AppLayoutSurfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
SurfaceHeader: {
|
|
37
|
+
({ children, className, }: AppLayoutSurfaceHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
};
|
|
40
|
+
Sidebar: {
|
|
41
|
+
({ children, className }: AppLayoutSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
Breadcrumb: {
|
|
45
|
+
({ children, className, }: AppLayoutBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
BreadcrumbItem: {
|
|
49
|
+
({ children, className, active, }: AppLayoutBreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
displayName: string;
|
|
51
|
+
};
|
|
52
|
+
CollapseButton: {
|
|
53
|
+
({ className, }: AppLayoutCollapseButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
HeaderDivider: {
|
|
57
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
};
|
|
60
|
+
Header: {
|
|
61
|
+
({ children, className }: AppLayoutHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
displayName: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useAppLayoutKeys(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { AppLayoutContextType } from './context';
|
|
3
|
+
interface AppLayoutProviderProps extends PropsWithChildren {
|
|
4
|
+
defaultCollapsed?: boolean;
|
|
5
|
+
keybinds?: AppLayoutContextType['keybinds'];
|
|
6
|
+
}
|
|
7
|
+
export declare const AppLayoutProvider: ({ children, defaultCollapsed, keybinds, }: AppLayoutProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -4,5 +4,6 @@ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
|
4
4
|
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
5
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
7
|
+
declare const TooltipPortal: React.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
7
8
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow, };
|
|
9
|
+
export { Tooltip, TooltipPortal, TooltipTrigger, TooltipContent, TooltipProvider, TooltipArrow, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as m, t as n } from "./index-
|
|
1
|
+
import { c as m, t as n } from "./index-CDwy3rNJ.mjs";
|
|
2
2
|
import { forwardRef as p, createElement as f } from "react";
|
|
3
3
|
import { I as i } from "./lucide-icons-BDw0imyx.mjs";
|
|
4
4
|
const C = (e, t, r) => {
|
|
@@ -16,4 +16,4 @@ const C = (e, t, r) => {
|
|
|
16
16
|
export {
|
|
17
17
|
C as c
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=createCustomLucideIcon-
|
|
19
|
+
//# sourceMappingURL=createCustomLucideIcon-CsaZ2N8b.mjs.map
|
package/dist/{createCustomLucideIcon-YlrRX5h9.mjs.map → createCustomLucideIcon-CsaZ2N8b.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCustomLucideIcon-
|
|
1
|
+
{"version":3,"file":"createCustomLucideIcon-CsaZ2N8b.mjs","sources":["../src/components/Icon/customIcons/createCustomLucideIcon.ts"],"sourcesContent":["import { cn, toKebabCase } from '@/lib/utils'\nimport { Icon, IconNode, LucideProps } from 'lucide-react'\nimport { createElement, forwardRef } from 'react'\n\nconst createCustomLucideIcon = (\n iconName: string,\n iconNode: IconNode,\n lucideProps?: Partial<LucideProps>\n) => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(\n ({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n iconNode,\n className: cn(`lucide-${toKebabCase(iconName)}`, className),\n ...{ ...(lucideProps ?? {}), ...props },\n })\n )\n\n Component.displayName = `${iconName}`\n\n return Component\n}\n\nexport default createCustomLucideIcon\n"],"names":["createCustomLucideIcon","iconName","iconNode","lucideProps","Component","forwardRef","className","props","ref","createElement","Icon","cn","toKebabCase"],"mappings":";;;AAIA,MAAMA,IAAyB,CAC7BC,GACAC,GACAC,MACG;AACH,QAAMC,IAAYC;AAAA,IAChB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,MACxBC,EAAcC,GAAM;AAAA,MAClB,KAAAF;AAAA,MACA,UAAAN;AAAA,MACA,WAAWS,EAAG,UAAUC,EAAYX,CAAQ,CAAC,IAAIK,CAAS;AAAA,MACrD,GAAIH,KAAe,CAAC;AAAA,MAAI,GAAGI;AAAA,IACjC,CAAA;AAAA,EACL;AAEU,SAAAH,EAAA,cAAc,GAAGH,CAAQ,IAE5BG;AACT;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as L } from "./createCustomLucideIcon-
|
|
1
|
+
import { c as L } from "./createCustomLucideIcon-CsaZ2N8b.mjs";
|
|
2
2
|
const o = [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
@@ -21,4 +21,4 @@ const o = [
|
|
|
21
21
|
export {
|
|
22
22
|
e as default
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=gems-
|
|
24
|
+
//# sourceMappingURL=gems-C0vg8d9o.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gems-
|
|
1
|
+
{"version":3,"file":"gems-C0vg8d9o.mjs","sources":["../src/components/Icon/customIcons/gems.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M156.139 157.469L196.307 117.301L168.177 89.1397V89.0126H88.2885L88.4113 89.2582L88.2885 89.1354L60.6496 117.296L128.5 184.929',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M128.5 14L29 71.0835V185.25L128.5 242.333L228 185.25V71.0829L128.5 14ZM208.96 174.341L128.5 220.767L48.0401 174.34V81.7386L128.5 35.3114L208.96 81.3762',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('gems', iconNode, {\n viewBox: '0 0 256 256',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,QAAQF,GAAU;AAAA,EACpD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c } from "./createCustomLucideIcon-
|
|
1
|
+
import { c } from "./createCustomLucideIcon-CsaZ2N8b.mjs";
|
|
2
2
|
const o = [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
@@ -21,4 +21,4 @@ const o = [
|
|
|
21
21
|
export {
|
|
22
22
|
e as default
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=go-
|
|
24
|
+
//# sourceMappingURL=go-CDtvsCZN.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-
|
|
1
|
+
{"version":3,"file":"go-CDtvsCZN.mjs","sources":["../src/components/Icon/customIcons/go.ts"],"sourcesContent":["import { IconNode } from 'lucide-react'\nimport createCustomLucideIcon from './createCustomLucideIcon'\n\nconst iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M11.156 54.829c-.243 0-.303-.122-.182-.303l1.273-1.637c.12-.182.424-.303.666-.303H34.55c.243 0 .303.182.182.364l-1.03 1.576c-.121.181-.424.363-.606.363zM2.004 60.404c-.242 0-.303-.12-.182-.303l1.273-1.636c.121-.182.424-.303.667-.303h27.636c.242 0 .364.182.303.364l-.485 1.454c-.06.243-.303.364-.545.364zM16.67 65.98c-.242 0-.302-.182-.181-.364l.848-1.515c.122-.182.364-.363.607-.363h12.12c.243 0 .364.181.364.424l-.12 1.454c0 .243-.243.425-.425.425zM79.58 53.738c-3.819.97-6.425 1.697-10.182 2.666-.91.243-.97.303-1.758-.606-.909-1.03-1.576-1.697-2.848-2.303-3.819-1.878-7.516-1.333-10.97.91-4.121 2.666-6.242 6.605-6.182 11.514.06 4.849 3.394 8.849 8.182 9.516 4.121.545 7.576-.91 10.303-4 .545-.667 1.03-1.394 1.636-2.243H56.064c-1.272 0-1.575-.788-1.151-1.818.788-1.879 2.242-5.03 3.09-6.606.183-.364.607-.97 1.516-.97h22.06c-.12 1.637-.12 3.273-.363 4.91-.667 4.363-2.303 8.363-4.97 11.878-4.364 5.758-10.06 9.333-17.273 10.303-5.939.788-11.454-.364-16.302-4-4.485-3.394-7.03-7.879-7.697-13.454-.788-6.606 1.151-12.546 5.151-17.758 4.303-5.636 10-9.212 16.97-10.485 5.697-1.03 11.151-.363 16.06 2.97 3.212 2.121 5.515 5.03 7.03 8.545.364.546.122.849-.606 1.03z',\n key: 'path-1',\n },\n ],\n [\n 'path',\n {\n d: 'M99.64 87.253c-5.515-.122-10.546-1.697-14.788-5.334-3.576-3.09-5.818-7.03-6.545-11.697-1.091-6.848.787-12.909 4.909-18.302 4.424-5.819 9.757-8.849 16.97-10.122 6.181-1.09 12-.484 17.272 3.091 4.788 3.273 7.757 7.697 8.545 13.515 1.03 8.182-1.333 14.849-6.97 20.546-4 4.06-8.909 6.606-14.545 7.757-1.636.303-3.273.364-4.848.546zm14.424-24.485c-.06-.788-.06-1.394-.182-2-1.09-6-6.606-9.394-12.363-8.06-5.637 1.272-9.273 4.848-10.606 10.545-1.091 4.727 1.212 9.515 5.575 11.454 3.334 1.455 6.667 1.273 9.879-.363 4.788-2.485 7.394-6.364 7.697-11.576z',\n key: 'path-2',\n },\n ],\n]\n\nconst icon = createCustomLucideIcon('go', iconNode, {\n viewBox: '0 0 128 128',\n fill: 'currentColor',\n})\n\nexport { icon as default }\n"],"names":["iconNode","icon","createCustomLucideIcon"],"mappings":";AAGA,MAAMA,IAAqB;AAAA,EACzB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EAET;AAAA,EACA;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IAAA;AAAA,EACP;AAEJ,GAEMC,IAAOC,EAAuB,MAAMF,GAAU;AAAA,EAClD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAppLayout: () => import('../components/AppLayout/context').AppLayoutContextType;
|
|
@@ -4461,13 +4461,13 @@ const IP = {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
return t;
|
|
4463
4463
|
}, gu = {
|
|
4464
|
-
npm: () => import("./npm-
|
|
4465
|
-
pypi: () => import("./pypi-
|
|
4466
|
-
nuget: () => import("./nuget-
|
|
4467
|
-
go: () => import("./go-
|
|
4468
|
-
gems: () => import("./gems-
|
|
4469
|
-
maven: () => import("./maven-
|
|
4470
|
-
packagist: () => import("./packagist-
|
|
4464
|
+
npm: () => import("./npm-CPGpUeqY.mjs"),
|
|
4465
|
+
pypi: () => import("./pypi-Bf-brPZ2.mjs"),
|
|
4466
|
+
nuget: () => import("./nuget-CdhA9y5m.mjs"),
|
|
4467
|
+
go: () => import("./go-CDtvsCZN.mjs"),
|
|
4468
|
+
gems: () => import("./gems-C0vg8d9o.mjs"),
|
|
4469
|
+
maven: () => import("./maven-BOmqaGzB.mjs"),
|
|
4470
|
+
packagist: () => import("./packagist-C8hXdX7P.mjs")
|
|
4471
4471
|
};
|
|
4472
4472
|
function hP() {
|
|
4473
4473
|
return /* @__PURE__ */ E("div", {});
|
|
@@ -4832,7 +4832,9 @@ function YP({ className: A, muted: e, ...t }) {
|
|
|
4832
4832
|
{
|
|
4833
4833
|
"aria-label": "Speakeasy Logo",
|
|
4834
4834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4835
|
-
|
|
4835
|
+
shapeRendering: "geometricPrecision",
|
|
4836
|
+
textRendering: "optimizeLegibility",
|
|
4837
|
+
viewBox: "0 0 140 24",
|
|
4836
4838
|
preserveAspectRatio: "xMidYMid meet",
|
|
4837
4839
|
className: oA(
|
|
4838
4840
|
e ? "text-foreground/80" : "text-foreground dark:text-primary",
|
|
@@ -4943,6 +4945,8 @@ function TP({ className: A, muted: e, ...t }) {
|
|
|
4943
4945
|
{
|
|
4944
4946
|
width: 24,
|
|
4945
4947
|
height: 24,
|
|
4948
|
+
shapeRendering: "geometricPrecision",
|
|
4949
|
+
textRendering: "optimizeLegibility",
|
|
4946
4950
|
viewBox: "0 0 24 24",
|
|
4947
4951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4948
4952
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -50879,4 +50883,4 @@ export {
|
|
|
50879
50883
|
aL as y,
|
|
50880
50884
|
yoA as z
|
|
50881
50885
|
};
|
|
50882
|
-
//# sourceMappingURL=index-
|
|
50886
|
+
//# sourceMappingURL=index-CDwy3rNJ.mjs.map
|