skuse-ui 0.1.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.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/SkuseDocumentation.d.ts +10 -0
  4. package/dist/components/Skeletons/EndpointSkeleton.d.ts +2 -0
  5. package/dist/components/Skeletons/HomeSkeleton.d.ts +2 -0
  6. package/dist/components/Skeletons/LayoutSkeleton.d.ts +2 -0
  7. package/dist/components/Skeletons/SidebarSkeleton.d.ts +1 -0
  8. package/dist/components/layouts/MinimifiedInfo.d.ts +6 -0
  9. package/dist/components/layouts/Sidebar.d.ts +3 -0
  10. package/dist/components/openapi/Auth/AuthButton.d.ts +11 -0
  11. package/dist/components/openapi/Auth/AuthCard.d.ts +7 -0
  12. package/dist/components/openapi/Auth/AuthDialog.d.ts +8 -0
  13. package/dist/components/openapi/Auth/AuthMethods.d.ts +14 -0
  14. package/dist/components/openapi/Endpoint/CallbackViewer.d.ts +6 -0
  15. package/dist/components/openapi/Endpoint/CodeExamples.d.ts +16 -0
  16. package/dist/components/openapi/Endpoint/EndpointDetails.d.ts +3 -0
  17. package/dist/components/openapi/Endpoint/ExternalDocsLink.d.ts +6 -0
  18. package/dist/components/openapi/Endpoint/ParametersViewer.d.ts +7 -0
  19. package/dist/components/openapi/Endpoint/PlaygroundForm.d.ts +23 -0
  20. package/dist/components/openapi/Endpoint/PlaygroundResponse.d.ts +13 -0
  21. package/dist/components/openapi/Endpoint/RequestBodyViewer.d.ts +8 -0
  22. package/dist/components/openapi/Endpoint/ResponseViewer.d.ts +9 -0
  23. package/dist/components/openapi/Endpoint/SchemaBadges.d.ts +8 -0
  24. package/dist/components/openapi/Endpoint/SchemaExpandContext.d.ts +6 -0
  25. package/dist/components/openapi/Endpoint/SchemaProperty.d.ts +11 -0
  26. package/dist/components/openapi/Endpoint/SchemaViewer.d.ts +13 -0
  27. package/dist/components/openapi/FormattedMarkdown.d.ts +12 -0
  28. package/dist/components/openapi/Information.d.ts +3 -0
  29. package/dist/components/openapi/Models.d.ts +3 -0
  30. package/dist/components/openapi/Servers.d.ts +7 -0
  31. package/dist/components/openapi/TagsOverview.d.ts +3 -0
  32. package/dist/components/openapi/WebhookDetails.d.ts +3 -0
  33. package/dist/components/theme-provider.d.ts +13 -0
  34. package/dist/components/ui/accordion.d.ts +7 -0
  35. package/dist/components/ui/alert.d.ts +8 -0
  36. package/dist/components/ui/badge.d.ts +9 -0
  37. package/dist/components/ui/button.d.ts +11 -0
  38. package/dist/components/ui/card.d.ts +8 -0
  39. package/dist/components/ui/carousel.d.ts +18 -0
  40. package/dist/components/ui/checkbox.d.ts +4 -0
  41. package/dist/components/ui/collapsible.d.ts +5 -0
  42. package/dist/components/ui/command.d.ts +80 -0
  43. package/dist/components/ui/dialog.d.ts +19 -0
  44. package/dist/components/ui/input.d.ts +3 -0
  45. package/dist/components/ui/label.d.ts +5 -0
  46. package/dist/components/ui/popover.d.ts +6 -0
  47. package/dist/components/ui/select.d.ts +13 -0
  48. package/dist/components/ui/sheet.d.ts +25 -0
  49. package/dist/components/ui/skeleton.d.ts +2 -0
  50. package/dist/components/ui/sonner.d.ts +4 -0
  51. package/dist/components/ui/switch.d.ts +4 -0
  52. package/dist/components/ui/tabs.d.ts +7 -0
  53. package/dist/components/ui/tooltip.d.ts +7 -0
  54. package/dist/hooks/OpenAPIContext.d.ts +24 -0
  55. package/dist/hooks/usePlayground.d.ts +40 -0
  56. package/dist/hooks/useSpec.d.ts +10 -0
  57. package/dist/index.d.ts +2 -0
  58. package/dist/lib/utils.d.ts +2 -0
  59. package/dist/main.d.ts +0 -0
  60. package/dist/router/routes.d.ts +2 -0
  61. package/dist/skuse-ui.cjs.js +459 -0
  62. package/dist/skuse-ui.es.js +61257 -0
  63. package/dist/style.css +1 -0
  64. package/dist/test-spec.json +779 -0
  65. package/dist/types/openapi.d.ts +2 -0
  66. package/dist/types/unified-openapi-types.d.ts +402 -0
  67. package/dist/utils/openapi.d.ts +18 -0
  68. package/dist/utils/pkce.d.ts +2 -0
  69. package/package.json +94 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Pierre Iaccarino
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Skuse UI
2
+
3
+ > Pronounced "skews" `/skjuːz/`
4
+
5
+ A modern, beautiful alternative to Swagger UI — fully compatible with the OpenAPI 3.0 and 3.1 specification.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install skuse-ui
11
+ # or
12
+ pnpm add skuse-ui
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```tsx
18
+ import { SkuseDocumentation } from 'skuse-ui';
19
+ import 'skuse-ui/style.css';
20
+
21
+ export default function App() {
22
+ return (
23
+ <SkuseDocumentation openApiUrl="https://your-api.com/openapi.json" />
24
+ );
25
+ }
26
+ ```
27
+
28
+ ### Props
29
+
30
+ | Prop | Type | Default | Description |
31
+ |------|------|---------|-------------|
32
+ | `openApiUrl` | `string` | — | URL of the OpenAPI JSON/YAML spec to load |
33
+ | `theme` | `'light' \| 'dark' \| 'system'` | `'system'` | Color theme |
34
+
35
+ ## Features
36
+
37
+ - **Reference** — browse endpoints grouped by tags, with parameters, request bodies, response schemas, example values and code snippets in 15 languages
38
+ - **Try It** — interactive playground to send real requests, with auth injection, live URL preview, copy cURL and a response viewer
39
+ - **Models** — standalone schema browser
40
+ - **Webhooks** — OAS 3.1 webhooks support
41
+ - **Light / dark mode**
42
+
43
+ ## Project Status
44
+
45
+ Under active development — no public release yet.
46
+
47
+ ## Acknowledgements
48
+
49
+ The API playground routes requests through [Scalar's open-source proxy](https://github.com/scalar/scalar/tree/main/projects/proxy-scalar-com) (`proxy.scalar.com`) to handle cross-origin requests from the browser. Thanks to the Scalar team for building and hosting it!
50
+
51
+ ## Why "Skuse"?
52
+
53
+ The name is inspired by [this iconic viral moment](https://www.instagram.com/p/C7rs1Bit36b/) from French comedy legend Laurent Baffie.
54
+
55
+ ## License
56
+
57
+ [MIT License](LICENSE)
58
+
59
+ ---
60
+
61
+ <div style="text-align: center">
62
+ Made with ❤️ by the Skuse team
63
+ </div>
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface SkuseDocumentationProps {
3
+ openApiUrl: string;
4
+ /** Default: 'system' */
5
+ theme?: 'light' | 'dark' | 'system';
6
+ }
7
+ export declare const DocumentationShell: React.FC<{
8
+ openApiUrl: string;
9
+ }>;
10
+ export declare const SkuseDocumentation: React.FC<SkuseDocumentationProps>;
@@ -0,0 +1,2 @@
1
+ declare const EndpointSkeleton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default EndpointSkeleton;
@@ -0,0 +1,2 @@
1
+ declare const HomeSkeleton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default HomeSkeleton;
@@ -0,0 +1,2 @@
1
+ declare const LayoutSkeleton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default LayoutSkeleton;
@@ -0,0 +1 @@
1
+ export declare const SidebarSkeleton: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface MinimifiedInfoProps {
3
+ onToggleSidebar?: () => void;
4
+ }
5
+ declare const MinimifiedInfo: React.FC<MinimifiedInfoProps>;
6
+ export default MinimifiedInfo;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Sidebar: React.FC;
3
+ export default Sidebar;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { SecuritySchemeObject } from '../../../types/unified-openapi-types';
3
+ interface AuthButtonProps {
4
+ securitySchemes?: Record<string, SecuritySchemeObject>;
5
+ }
6
+ export declare const AuthorizeButton: React.ForwardRefExoticComponent<{
7
+ onClick?: () => void;
8
+ isLoading?: boolean;
9
+ } & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const AuthButton: React.FC<AuthButtonProps>;
11
+ export default AuthButton;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { SecuritySchemeObject } from '../../../types/unified-openapi-types';
3
+ interface AuthCardProps {
4
+ securitySchemes?: Record<string, SecuritySchemeObject>;
5
+ }
6
+ declare const AuthCard: React.FC<AuthCardProps>;
7
+ export default AuthCard;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { SecuritySchemeObject } from '../../../types/unified-openapi-types';
3
+ interface AuthDialogProps {
4
+ securitySchemes: Record<string, SecuritySchemeObject>;
5
+ children: React.ReactNode;
6
+ }
7
+ declare const AuthDialog: React.FC<AuthDialogProps>;
8
+ export default AuthDialog;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { SecuritySchemeObject } from '../../../types/unified-openapi-types';
3
+ type AuthComponent = React.FC<{
4
+ scheme: SecuritySchemeObject;
5
+ schemeName: string;
6
+ }>;
7
+ export declare const BasicAuthMethod: AuthComponent;
8
+ export declare const BearerTokenMethod: AuthComponent;
9
+ export declare const ApiKeyMethod: AuthComponent;
10
+ export declare const OAuth2Method: AuthComponent;
11
+ export declare const OpenIDMethod: AuthComponent;
12
+ export declare const getAuthMethodComponent: (scheme: SecuritySchemeObject) => AuthComponent;
13
+ export declare const getSchemeIcon: (type: SecuritySchemeObject["type"]) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { CallbackObject } from '../../../types/unified-openapi-types';
3
+ declare const CallbackViewer: React.FC<{
4
+ callbacks: Record<string, CallbackObject>;
5
+ }>;
6
+ export default CallbackViewer;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ interface CodeExamplesProps {
3
+ method: string;
4
+ path: string;
5
+ requestBody?: string;
6
+ hasRequestBody?: boolean;
7
+ defaultContentType?: string;
8
+ security?: Array<Record<string, string[]>>;
9
+ exampleQueryParams?: Record<string, string>;
10
+ exampleHeaderParams?: Array<{
11
+ key: string;
12
+ value: string;
13
+ }>;
14
+ }
15
+ declare const CodeExamples: React.FC<CodeExamplesProps>;
16
+ export default CodeExamples;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const EndpointDetails: React.FC;
3
+ export default EndpointDetails;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ExternalDocsLinkProps {
3
+ url: string;
4
+ }
5
+ declare const ExternalDocsLink: React.FC<ExternalDocsLinkProps>;
6
+ export default ExternalDocsLink;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { ParameterObject } from '../../../types/unified-openapi-types';
3
+ interface ParametersViewerProps {
4
+ parameters: ParameterObject[];
5
+ }
6
+ declare const ParametersViewer: React.FC<ParametersViewerProps>;
7
+ export default ParametersViewer;
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { ParameterObject, RequestBodyObject } from '../../../types/unified-openapi-types';
3
+ type SetRecord = React.Dispatch<React.SetStateAction<Record<string, string>>>;
4
+ interface PlaygroundFormProps {
5
+ parameters: ParameterObject[];
6
+ requestBody?: RequestBodyObject;
7
+ pathValues: Record<string, string>;
8
+ setPathValues: SetRecord;
9
+ queryValues: Record<string, string>;
10
+ setQueryValues: SetRecord;
11
+ headerValues: Record<string, string>;
12
+ setHeaderValues: SetRecord;
13
+ body: string;
14
+ setBody: (v: string) => void;
15
+ contentType: string;
16
+ setContentType: (v: string) => void;
17
+ contentTypes: string[];
18
+ validationErrors: string[];
19
+ enabledParams: Record<string, boolean>;
20
+ setParamEnabled: (key: string, enabled: boolean) => void;
21
+ }
22
+ declare const PlaygroundForm: React.FC<PlaygroundFormProps>;
23
+ export default PlaygroundForm;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { PlaygroundResult } from '../../../hooks/usePlayground';
3
+ interface PlaygroundResponseProps {
4
+ result: PlaygroundResult | null;
5
+ loading: boolean;
6
+ error: string | null;
7
+ previewUrl: string;
8
+ method: string;
9
+ expectedStatusCodes: string[];
10
+ onSend: () => void;
11
+ }
12
+ declare const PlaygroundResponse: React.FC<PlaygroundResponseProps>;
13
+ export default PlaygroundResponse;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { RequestBodyObject } from '../../../types/unified-openapi-types';
3
+ interface RequestBodyViewerProps {
4
+ requestBody: RequestBodyObject;
5
+ hideExample?: boolean;
6
+ }
7
+ declare const RequestBodyViewer: React.FC<RequestBodyViewerProps>;
8
+ export default RequestBodyViewer;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { ResponseObject } from '../../../types/unified-openapi-types';
3
+ interface ResponseViewerProps {
4
+ responses: {
5
+ [code: string]: ResponseObject;
6
+ };
7
+ }
8
+ declare const ResponseViewer: React.FC<ResponseViewerProps>;
9
+ export default ResponseViewer;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { SchemaObject } from '../../../types/unified-openapi-types';
3
+ interface SchemaBadgesProps {
4
+ schema: SchemaObject;
5
+ }
6
+ export declare const getTypeColorClass: (typeStr: string) => string;
7
+ declare const SchemaBadges: React.FC<SchemaBadgesProps>;
8
+ export default SchemaBadges;
@@ -0,0 +1,6 @@
1
+ export interface SchemaExpandContextValue {
2
+ version: number;
3
+ allOpen: boolean;
4
+ dispatch?: (allOpen: boolean) => void;
5
+ }
6
+ export declare const SchemaExpandContext: import('react').Context<SchemaExpandContextValue | null>;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { SchemaObject } from '../../../types/unified-openapi-types';
3
+ interface SchemaPropertyProps {
4
+ name?: string;
5
+ schema: SchemaObject;
6
+ required?: boolean;
7
+ isRoot?: boolean;
8
+ depth?: number;
9
+ }
10
+ declare const SchemaProperty: React.FC<SchemaPropertyProps>;
11
+ export default SchemaProperty;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { ExampleObject, SchemaObject } from '../../../types/unified-openapi-types';
3
+ interface SchemaViewerProps {
4
+ schema: SchemaObject;
5
+ contentType: string;
6
+ description?: string;
7
+ examples?: {
8
+ [key: string]: ExampleObject;
9
+ };
10
+ example?: unknown;
11
+ }
12
+ declare const SchemaViewer: React.FC<SchemaViewerProps>;
13
+ export default SchemaViewer;
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'react';
2
+ interface MarkdownRendererProps {
3
+ markdown: string;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ maxLength?: number;
7
+ maxLines?: number;
8
+ languageCode?: string;
9
+ }
10
+ export declare const useHashLinkFix: () => void;
11
+ export default function FormattedMarkdown({ markdown, className, style, maxLength, maxLines, languageCode }: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Information: React.FC;
3
+ export default Information;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const Models: React.FC;
3
+ export default Models;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { ServerObject } from '../../types/unified-openapi-types';
3
+ interface ServerBlockProps {
4
+ servers: ServerObject[];
5
+ }
6
+ declare const Servers: React.FC<ServerBlockProps>;
7
+ export default Servers;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const TagsOverview: React.FC;
3
+ export default TagsOverview;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const WebhookDetails: React.FC;
3
+ export default WebhookDetails;
@@ -0,0 +1,13 @@
1
+ type Theme = "dark" | "light" | "system";
2
+ type ThemeProviderProps = {
3
+ children: React.ReactNode;
4
+ defaultTheme?: Theme;
5
+ storageKey?: string;
6
+ };
7
+ type ThemeProviderState = {
8
+ theme: Theme;
9
+ setTheme: (theme: Theme) => void;
10
+ };
11
+ export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare const useTheme: () => ThemeProviderState;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,8 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
4
+ variant?: "default" | "destructive" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
7
+ declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
8
+ export { Alert, AlertTitle, AlertDescription };
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
+ export { Badge, badgeVariants };
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,18 @@
1
+ import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
2
+ import * as React from "react";
3
+ type CarouselApi = UseEmblaCarouselType[1];
4
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
5
+ type CarouselOptions = UseCarouselParameters[0];
6
+ type CarouselPlugin = UseCarouselParameters[1];
7
+ type CarouselProps = {
8
+ opts?: CarouselOptions;
9
+ plugins?: CarouselPlugin;
10
+ orientation?: "horizontal" | "vertical";
11
+ setApi?: (api: CarouselApi) => void;
12
+ };
13
+ declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
14
+ declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import('./button').ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import('./button').ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ declare const Collapsible: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ declare const CollapsibleTrigger: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
4
+ declare const CollapsibleContent: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,80 @@
1
+ import { DialogProps } from '@radix-ui/react-dialog';
2
+ import * as React from "react";
3
+ declare const Command: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ } & {
8
+ asChild?: boolean;
9
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
+ label?: string;
11
+ shouldFilter?: boolean;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?: (value: string) => void;
16
+ loop?: boolean;
17
+ disablePointerSelection?: boolean;
18
+ vimBindings?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
21
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
22
+ ref?: React.Ref<HTMLInputElement>;
23
+ } & {
24
+ asChild?: boolean;
25
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
26
+ value?: string;
27
+ onValueChange?: (search: string) => void;
28
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
+ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
30
+ children?: React.ReactNode;
31
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
32
+ ref?: React.Ref<HTMLDivElement>;
33
+ } & {
34
+ asChild?: boolean;
35
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
36
+ label?: string;
37
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
+ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
39
+ children?: React.ReactNode;
40
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
41
+ ref?: React.Ref<HTMLDivElement>;
42
+ } & {
43
+ asChild?: boolean;
44
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
+ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
46
+ children?: React.ReactNode;
47
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
48
+ ref?: React.Ref<HTMLDivElement>;
49
+ } & {
50
+ asChild?: boolean;
51
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
52
+ heading?: React.ReactNode;
53
+ value?: string;
54
+ forceMount?: boolean;
55
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
57
+ ref?: React.Ref<HTMLDivElement>;
58
+ } & {
59
+ asChild?: boolean;
60
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
61
+ alwaysRender?: boolean;
62
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
+ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
64
+ children?: React.ReactNode;
65
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
66
+ ref?: React.Ref<HTMLDivElement>;
67
+ } & {
68
+ asChild?: boolean;
69
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "onSelect" | "disabled"> & {
70
+ disabled?: boolean;
71
+ onSelect?: (value: string) => void;
72
+ value?: string;
73
+ keywords?: string[];
74
+ forceMount?: boolean;
75
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
+ declare const CommandShortcut: {
77
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
78
+ displayName: string;
79
+ };
80
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
+ export { Input };
@@ -0,0 +1,5 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as LabelPrimitive from "@radix-ui/react-label";
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
+ export { Label };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };