@want-foundation/allure-react 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +30 -2
- package/THIRD_PARTY_NOTICES.md +5 -0
- package/dist/animated-text.d.ts +6 -0
- package/dist/brand.d.ts +12 -0
- package/dist/carousel-scroll.d.ts +6 -0
- package/dist/combobox.d.ts +20 -0
- package/dist/comment-feed.d.ts +32 -0
- package/dist/contact-card.d.ts +15 -0
- package/dist/date-field.d.ts +28 -0
- package/dist/direction-provider.d.ts +5 -0
- package/dist/file-upload.d.ts +22 -0
- package/dist/glow.d.ts +5 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +2167 -0
- package/dist/loader.d.ts +8 -0
- package/dist/media-card.d.ts +14 -0
- package/dist/pagination.d.ts +18 -0
- package/dist/shimmer.d.ts +7 -0
- package/dist/snackbar.d.ts +18 -0
- package/dist/theme-toggle.d.ts +8 -0
- package/dist/typography.d.ts +299 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/alert.d.ts +9 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/button.d.ts +10 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/checkbox.d.ts +3 -0
- package/dist/ui/dialog.d.ts +18 -0
- package/dist/ui/dropdown-menu.d.ts +8 -0
- package/dist/ui/field.d.ts +24 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/label.d.ts +4 -0
- package/dist/ui/navigation-menu.d.ts +14 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/progress.d.ts +6 -0
- package/dist/ui/radio-group.d.ts +5 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/sheet.d.ts +15 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/table.d.ts +9 -0
- package/dist/ui/tabs.d.ts +11 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/toast.d.ts +9 -0
- package/dist/ui/tooltip.d.ts +6 -0
- package/dist/url-field.d.ts +22 -0
- package/dist/utils.d.ts +2 -0
- package/dist/window.d.ts +9 -0
- package/package.json +39 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
3
|
+
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: "sm" | "default";
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export declare function Table({ className, ...props }: ComponentProps<'table'>): import("react").JSX.Element;
|
|
3
|
+
export declare function TableCaption({ className, ...props }: ComponentProps<'caption'>): import("react").JSX.Element;
|
|
4
|
+
export declare function TableHeader(props: ComponentProps<'thead'>): import("react").JSX.Element;
|
|
5
|
+
export declare function TableBody(props: ComponentProps<'tbody'>): import("react").JSX.Element;
|
|
6
|
+
export declare function TableFooter(props: ComponentProps<'tfoot'>): import("react").JSX.Element;
|
|
7
|
+
export declare function TableRow({ className, ...props }: ComponentProps<'tr'>): import("react").JSX.Element;
|
|
8
|
+
export declare function TableHead({ className, scope, ...props }: ComponentProps<'th'>): import("react").JSX.Element;
|
|
9
|
+
export declare function TableCell({ className, ...props }: ComponentProps<'td'>): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
4
|
+
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare const tabsListVariants: (props?: ({
|
|
6
|
+
variant?: "line" | "default" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
9
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Toast as ToastPrimitive } from 'radix-ui';
|
|
3
|
+
export declare const ToastProvider: import("react").FC<ToastPrimitive.ToastProviderProps>;
|
|
4
|
+
export declare function ToastTitle({ className, ...props }: ComponentProps<typeof ToastPrimitive.Title>): import("react").JSX.Element;
|
|
5
|
+
export declare function ToastDescription({ className, ...props }: ComponentProps<typeof ToastPrimitive.Description>): import("react").JSX.Element;
|
|
6
|
+
export declare const ToastAction: import("react").ForwardRefExoticComponent<ToastPrimitive.ToastActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export declare function Toast({ className, ...props }: ComponentProps<typeof ToastPrimitive.Root>): import("react").JSX.Element;
|
|
8
|
+
export declare function ToastClose({ className, ...props }: ComponentProps<typeof ToastPrimitive.Close>): import("react").JSX.Element;
|
|
9
|
+
export declare function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitive.Viewport>): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
3
|
+
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
export declare const Tooltip: import("react").FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
+
export declare const TooltipTrigger: import("react").ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare function TooltipContent({ className, sideOffset, ...props }: ComponentProps<typeof TooltipPrimitive.Content>): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare function isHttpUrl(raw: string): boolean;
|
|
3
|
+
export type OpenUrlProps = {
|
|
4
|
+
href: string;
|
|
5
|
+
label: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function OpenUrl({ href, label, className }: OpenUrlProps): import("react").JSX.Element | null;
|
|
9
|
+
export type UrlFieldProps = {
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
onBlur?: (value: string) => void;
|
|
14
|
+
openLabel: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function UrlField({ label, value, onChange, onBlur, openLabel, placeholder, id, name, disabled, required, className }: UrlFieldProps): import("react").JSX.Element;
|
package/dist/utils.d.ts
ADDED
package/dist/window.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export type WindowProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
kicker?: ReactNode;
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function Window({ title, kicker, actions, children, className }: WindowProps): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/andrey-krasheninnikov/want-allure.git"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"THIRD_PARTY_NOTICES.md"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"**/*.css"
|
|
20
|
+
],
|
|
2
21
|
"name": "@want-foundation/allure-react",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
22
|
+
"description": "Accessible React components and shared product compositions for Want Allure.",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^19.0.0",
|
|
31
|
+
"react-dom": "^19.0.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@want-foundation/allure": "1.0.0",
|
|
35
|
+
"class-variance-authority": "0.7.1",
|
|
36
|
+
"clsx": "2.1.1",
|
|
37
|
+
"tailwind-merge": "3.7.0",
|
|
38
|
+
"radix-ui": "1.6.7",
|
|
39
|
+
"lucide-react": "1.50.0"
|
|
40
|
+
}
|
|
41
|
+
}
|