@noemaru1011/ui 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.
Files changed (77) hide show
  1. package/README.md +256 -2
  2. package/dist/components/elements/Accordion/Accordion.d.ts +21 -0
  3. package/dist/components/elements/Blockquote/Blockquote.d.ts +6 -0
  4. package/dist/components/elements/Checkbox/Checkbox.d.ts +18 -0
  5. package/dist/components/elements/Combobox/Combobox.d.ts +20 -0
  6. package/dist/components/elements/ComboboxMultiple/ComboboxMultiple.d.ts +20 -0
  7. package/dist/components/elements/DatePicker/DatePicker.d.ts +16 -0
  8. package/dist/components/elements/DateRange/DateRange.d.ts +18 -0
  9. package/dist/components/elements/DescriptionList/DescriptionList.d.ts +13 -0
  10. package/dist/components/elements/Disclosure/Disclosure.d.ts +10 -0
  11. package/dist/components/elements/FileUpload/FileUpload.d.ts +24 -0
  12. package/dist/components/elements/FileUploadButton/FileUploadButton.d.ts +33 -0
  13. package/dist/components/elements/HamburgerMenu/HamburgerMenu.d.ts +7 -0
  14. package/dist/components/elements/Heading/Heading.d.ts +8 -0
  15. package/dist/components/elements/Image/Image.d.ts +10 -0
  16. package/dist/components/elements/Input/Input.d.ts +18 -0
  17. package/dist/components/elements/Input/PasswordInput.d.ts +18 -0
  18. package/dist/components/elements/Link/Link.d.ts +10 -0
  19. package/dist/components/elements/List/List.d.ts +15 -0
  20. package/dist/components/elements/Loading/Loading.d.ts +6 -0
  21. package/dist/components/elements/Radio/Radio.d.ts +18 -0
  22. package/dist/components/elements/Select/LanguageSelect.d.ts +9 -0
  23. package/dist/components/elements/Select/Select.d.ts +21 -0
  24. package/dist/components/elements/Switch/Switch.d.ts +15 -0
  25. package/dist/components/elements/Switch/ThemeSwitch.d.ts +1 -0
  26. package/dist/components/elements/Text/Text.d.ts +14 -0
  27. package/dist/components/elements/Textarea/Textarea.d.ts +16 -0
  28. package/dist/components/elements/index.d.ts +26 -0
  29. package/dist/components/layouts/AppLayout/AppLayout.d.ts +9 -0
  30. package/dist/components/layouts/Center/Center.d.ts +8 -0
  31. package/dist/components/layouts/Cluster/Cluster.d.ts +21 -0
  32. package/dist/components/layouts/Container/Container.d.ts +8 -0
  33. package/dist/components/layouts/Error/Forbidden.d.ts +5 -0
  34. package/dist/components/layouts/Error/InternalServerError.d.ts +5 -0
  35. package/dist/components/layouts/Error/NotFound.d.ts +5 -0
  36. package/dist/components/layouts/Stack/Stack.d.ts +8 -0
  37. package/dist/components/layouts/index.d.ts +8 -0
  38. package/dist/components/providers/theme-provider.d.ts +15 -0
  39. package/dist/components/types/Option.d.ts +5 -0
  40. package/dist/components/types/WithoutExternalStyle.d.ts +8 -0
  41. package/dist/components/ui/accordion.d.ts +6 -0
  42. package/dist/components/ui/alert-dialog.d.ts +18 -0
  43. package/dist/components/ui/alert.d.ts +10 -0
  44. package/dist/components/ui/badge.d.ts +7 -0
  45. package/dist/components/ui/breadcrumb.d.ts +10 -0
  46. package/dist/components/ui/button.d.ts +10 -0
  47. package/dist/components/ui/calendar.d.ts +10 -0
  48. package/dist/components/ui/card.d.ts +11 -0
  49. package/dist/components/ui/carousel.d.ts +28 -0
  50. package/dist/components/ui/checkbox.d.ts +3 -0
  51. package/dist/components/ui/combobox.d.ts +24 -0
  52. package/dist/components/ui/dialog.d.ts +17 -0
  53. package/dist/components/ui/drawer.d.ts +16 -0
  54. package/dist/components/ui/field.d.ts +24 -0
  55. package/dist/components/ui/index.d.ts +29 -0
  56. package/dist/components/ui/input-group.d.ts +18 -0
  57. package/dist/components/ui/input.d.ts +3 -0
  58. package/dist/components/ui/label.d.ts +3 -0
  59. package/dist/components/ui/pagination.d.ts +17 -0
  60. package/dist/components/ui/popover.d.ts +9 -0
  61. package/dist/components/ui/radio-group.d.ts +5 -0
  62. package/dist/components/ui/select.d.ts +15 -0
  63. package/dist/components/ui/separator.d.ts +3 -0
  64. package/dist/components/ui/spinner.d.ts +2 -0
  65. package/dist/components/ui/switch.d.ts +5 -0
  66. package/dist/components/ui/table.d.ts +10 -0
  67. package/dist/components/ui/tabs.d.ts +10 -0
  68. package/dist/components/ui/textarea.d.ts +3 -0
  69. package/dist/components/ui/toast.d.ts +16 -0
  70. package/dist/components/ui/tooltip.d.ts +6 -0
  71. package/dist/i18n/index.d.ts +2 -0
  72. package/dist/index.d.ts +7 -0
  73. package/dist/index.js +25451 -0
  74. package/dist/lib/data-table-features.d.ts +16 -0
  75. package/dist/lib/utils.d.ts +1 -0
  76. package/dist/style.css +3 -0
  77. package/package.json +117 -5
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ type TextTag = 'p' | 'span' | 'strong' | 'em' | 'b' | 'i' | 'code' | 'small' | 'mark' | 'time';
3
+ type TextProps = {
4
+ children: ReactNode;
5
+ as?: TextTag;
6
+ size?: 'md' | 'lg';
7
+ weight?: 'normal' | 'bold';
8
+ color?: 'default' | 'muted';
9
+ };
10
+ /** デザインの一貫性の観点からテキストもコンポーネントにする。 */
11
+ export declare function Text({ children, as, size, weight, color, }: TextProps): import('react').DetailedReactHTMLElement<{
12
+ className: string;
13
+ }, HTMLElement>;
14
+ export {};
@@ -0,0 +1,16 @@
1
+ import { ComponentProps } from 'react';
2
+ import { WithoutExternalStyle } from '../../types/WithoutExternalStyle';
3
+ import { Textarea as BaseTextarea } from '../../ui/textarea';
4
+ type TextareaProps = WithoutExternalStyle<ComponentProps<typeof BaseTextarea>, 'disabled'> & {
5
+ /** idは指定しなかったら場合、自動採番。 */
6
+ id?: string;
7
+ label: string;
8
+ /** 編集不可の理由や文字数制限などを記載。 */
9
+ description?: string;
10
+ error?: string;
11
+ required?: boolean;
12
+ /** disabledはアクセシビリティの観点で使わない、readonlyも極力使用せず、表示できるか検討する。 */
13
+ readOnly?: boolean;
14
+ };
15
+ export declare function Textarea({ id, label, description, error, required, readOnly, ...rawProps }: TextareaProps): import('react').JSX.Element;
16
+ export {};
@@ -0,0 +1,26 @@
1
+ export * from './Accordion/Accordion';
2
+ export * from './Blockquote/Blockquote';
3
+ export * from './Checkbox/Checkbox';
4
+ export * from './Combobox/Combobox';
5
+ export * from './ComboboxMultiple/ComboboxMultiple';
6
+ export * from './DatePicker/DatePicker';
7
+ export * from './DateRange/DateRange';
8
+ export * from './DescriptionList/DescriptionList';
9
+ export * from './Disclosure/Disclosure';
10
+ export * from './FileUpload/FileUpload';
11
+ export * from './FileUploadButton/FileUploadButton';
12
+ export * from './HamburgerMenu/HamburgerMenu';
13
+ export * from './Heading/Heading';
14
+ export * from './Image/Image';
15
+ export * from './Input/Input';
16
+ export * from './Input/PasswordInput';
17
+ export * from './Link/Link';
18
+ export * from './List/List';
19
+ export * from './Loading/Loading';
20
+ export * from './Radio/Radio';
21
+ export * from './Select/LanguageSelect';
22
+ export * from './Select/Select';
23
+ export * from './Switch/Switch';
24
+ export * from './Switch/ThemeSwitch';
25
+ export * from './Text/Text';
26
+ export * from './Textarea/Textarea';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ type AppLayoutProps = {
3
+ /** ヘッダー領域:画面上部に表示するコンテンツ。スクロール時も上部に固定される */
4
+ header: ReactNode;
5
+ /** メイン領域:画面の主要コンテンツ。中央寄せで最大幅を制限して表示する */
6
+ main: ReactNode;
7
+ };
8
+ export declare function AppLayout({ header, main }: AppLayoutProps): import('react').JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type CenterProps = {
3
+ children: ReactNode;
4
+ maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
5
+ };
6
+ /** コンテンツを水平方向の中央に配置するコンポーネントです。用途はコンテンツの最大幅と中央寄せ */
7
+ export declare function Center({ children, maxWidth }: CenterProps): import('react').JSX.Element;
8
+ export {};
@@ -0,0 +1,21 @@
1
+ import { PropsWithChildren } from 'react';
2
+ type ClusterProps = PropsWithChildren<{
3
+ /**
4
+ * 子要素間の間隔
5
+ * @default 'md'
6
+ */
7
+ space?: 'sm' | 'md' | 'lg';
8
+ /**
9
+ * 水平方向の配置
10
+ * @default 'start'
11
+ */
12
+ justify?: 'start' | 'center' | 'end' | 'between';
13
+ /**
14
+ * 垂直方向の配置
15
+ * @default 'center'
16
+ */
17
+ align?: 'start' | 'center' | 'end' | 'stretch';
18
+ }>;
19
+ /** 子要素を横方向に並べるレイアウトコンポーネントです。space は要素間の間隔、justify は水平方向の配置、align は垂直方向の配置を制御します。子要素が収まらない場合は自動的に折り返します。 */
20
+ export declare function Cluster({ space, justify, align, children, }: ClusterProps): import('react').JSX.Element;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type ContainerProps = {
3
+ children?: ReactNode;
4
+ width?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
5
+ };
6
+ /** コンテンツの幅を制限するレイアウトコンポーネントです。用途はページの外枠、余白、全体のレイアウトコンテンツの幅を制限するレイアウトコンポーネントです。用途はページの外枠、余白、全体のレイアウト */
7
+ export declare function Container({ children, width }: ContainerProps): import('react').JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ type ForbiddenProps = {
2
+ homeUrl: string;
3
+ };
4
+ export declare function Forbidden({ homeUrl }: ForbiddenProps): import('react').JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ type InternalServerErrorProps = {
2
+ homeUrl: string;
3
+ };
4
+ export declare function InternalServerError({ homeUrl }: InternalServerErrorProps): import('react').JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ type NotFoundProps = {
2
+ homeUrl: string;
3
+ };
4
+ export declare function NotFound({ homeUrl }: NotFoundProps): import('react').JSX.Element;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ComponentProps, ElementType } from 'react';
2
+ type StackProps<T extends ElementType = 'div'> = {
3
+ as?: T;
4
+ space?: 'none' | 'sm' | 'md' | 'lg';
5
+ } & Omit<ComponentProps<T>, 'space' | 'as' | 'className' | 'style'>;
6
+ /** 要素を縦方向に並べるコンポーネントです。`space` プロパティで子要素間の間隔を指定できます。`as` プロパティで HTML タグを変更できます。 */
7
+ export declare function Stack<T extends ElementType = 'div'>({ as, space, ...props }: StackProps<T>): import('react').JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ export * from './AppLayout/AppLayout';
2
+ export * from './Center/Center';
3
+ export * from './Cluster/Cluster';
4
+ export * from './Container/Container';
5
+ export * from './Error/Forbidden';
6
+ export * from './Error/InternalServerError';
7
+ export * from './Error/NotFound';
8
+ export * from './Stack/Stack';
@@ -0,0 +1,15 @@
1
+ type Theme = 'dark' | 'light' | 'system';
2
+ type ResolvedTheme = 'dark' | 'light';
3
+ type ThemeProviderProps = {
4
+ children: React.ReactNode;
5
+ defaultTheme?: Theme;
6
+ storageKey?: string;
7
+ };
8
+ type ThemeProviderState = {
9
+ theme: Theme;
10
+ resolvedTheme: ResolvedTheme;
11
+ setTheme: (theme: Theme) => void;
12
+ };
13
+ export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): import('react').JSX.Element;
14
+ export declare function useTheme(): ThemeProviderState;
15
+ export {};
@@ -0,0 +1,5 @@
1
+ export type Option = {
2
+ value: string;
3
+ label: string;
4
+ disabled?: boolean;
5
+ };
@@ -0,0 +1,8 @@
1
+ export type WithoutExternalStyle<T, K extends PropertyKey = never> = Omit<T, K | 'className' | 'style'> & {
2
+ className?: never;
3
+ style?: never;
4
+ };
5
+ export declare function withoutExternalStyle<T extends {
6
+ className?: never;
7
+ style?: never;
8
+ }>(props: T): Omit<T, "className" | "style">;
@@ -0,0 +1,6 @@
1
+ import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
2
+ declare function Accordion({ className, ...props }: AccordionPrimitive.Root.Props): import('react').JSX.Element;
3
+ declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): import('react').JSX.Element;
4
+ declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.Trigger.Props): import('react').JSX.Element;
5
+ declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): import('react').JSX.Element;
6
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,18 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
2
+ import { Button } from './button';
3
+ import * as React from "react";
4
+ declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): React.JSX.Element;
5
+ declare function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props): React.JSX.Element;
6
+ declare function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props): React.JSX.Element;
7
+ declare function AlertDialogOverlay({ className, ...props }: AlertDialogPrimitive.Backdrop.Props): React.JSX.Element;
8
+ declare function AlertDialogContent({ className, size, ...props }: AlertDialogPrimitive.Popup.Props & {
9
+ size?: "default" | "sm";
10
+ }): React.JSX.Element;
11
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
15
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
16
+ declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
17
+ declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialogPrimitive.Close.Props & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
18
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "default" | "destructive" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
+ declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ export { Alert, AlertTitle, AlertDescription, AlertAction };
@@ -0,0 +1,7 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<'span'> & VariantProps<typeof badgeVariants>): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
7
+ export { Badge, badgeVariants };
@@ -0,0 +1,10 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import * as React from "react";
3
+ declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
4
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
5
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
6
+ declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
7
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
8
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
9
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
10
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -0,0 +1,10 @@
1
+ import { Button as ButtonPrimitive } from '@base-ui/react/button';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, loading, disabled, children, ...props }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants> & {
8
+ loading?: boolean;
9
+ }): import('react').JSX.Element;
10
+ export { Button, buttonVariants };
@@ -0,0 +1,10 @@
1
+ import { DayButton, DayPicker, Locale } from 'react-day-picker';
2
+ import { Button } from './button';
3
+ import * as React from 'react';
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];
6
+ }): React.JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, locale, children, 'aria-label': ariaLabel, ...props }: React.ComponentProps<typeof DayButton> & {
8
+ locale?: Partial<Locale>;
9
+ }): React.JSX.Element;
10
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
3
+ size?: "default" | "sm";
4
+ }): React.JSX.Element;
5
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
7
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -0,0 +1,28 @@
1
+ import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
2
+ import { Button } from './button';
3
+ import * as React from "react";
4
+ type CarouselApi = UseEmblaCarouselType[1];
5
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
+ type CarouselOptions = UseCarouselParameters[0];
7
+ type CarouselPlugin = UseCarouselParameters[1];
8
+ type CarouselProps = {
9
+ opts?: CarouselOptions;
10
+ plugins?: CarouselPlugin;
11
+ orientation?: "horizontal" | "vertical";
12
+ setApi?: (api: CarouselApi) => void;
13
+ };
14
+ type CarouselContextProps = {
15
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
16
+ api: ReturnType<typeof useEmblaCarousel>[1];
17
+ scrollPrev: () => void;
18
+ scrollNext: () => void;
19
+ canScrollPrev: boolean;
20
+ canScrollNext: boolean;
21
+ } & CarouselProps;
22
+ declare function useCarousel(): CarouselContextProps;
23
+ declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): React.JSX.Element;
24
+ declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
25
+ declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
26
+ declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
27
+ declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
28
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, useCarousel, };
@@ -0,0 +1,3 @@
1
+ import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
2
+ declare function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props): import('react').JSX.Element;
3
+ export { Checkbox };
@@ -0,0 +1,24 @@
1
+ import { Combobox as ComboboxPrimitive } from '@base-ui/react';
2
+ import * as React from 'react';
3
+ declare const Combobox: typeof ComboboxPrimitive.Root;
4
+ declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): React.JSX.Element;
5
+ declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): React.JSX.Element;
6
+ declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
7
+ showTrigger?: boolean;
8
+ showClear?: boolean;
9
+ }): React.JSX.Element;
10
+ declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor'>): React.JSX.Element;
11
+ declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): React.JSX.Element;
12
+ declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): React.JSX.Element;
13
+ declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): React.JSX.Element;
14
+ declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): React.JSX.Element;
15
+ declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): React.JSX.Element;
16
+ declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): React.JSX.Element;
17
+ declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): React.JSX.Element;
18
+ declare function ComboboxChips({ className, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props): React.JSX.Element;
19
+ declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
20
+ showRemove?: boolean;
21
+ }): React.JSX.Element;
22
+ declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): React.JSX.Element;
23
+ declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
24
+ export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
@@ -0,0 +1,17 @@
1
+ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
+ import * as React from "react";
3
+ declare function Dialog({ ...props }: DialogPrimitive.Root.Props): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: DialogPrimitive.Close.Props): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): React.JSX.Element;
8
+ declare function DialogContent({ className, children, showCloseButton, ...props }: DialogPrimitive.Popup.Props & {
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
13
+ showCloseButton?: boolean;
14
+ }): React.JSX.Element;
15
+ declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props): React.JSX.Element;
16
+ declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): React.JSX.Element;
17
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,16 @@
1
+ import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
2
+ import * as React from "react";
3
+ declare function Drawer({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: DrawerPrimitive.Root.Props & {
4
+ showSwipeHandle?: boolean;
5
+ }): React.JSX.Element;
6
+ declare function DrawerTrigger({ ...props }: DrawerPrimitive.Trigger.Props): React.JSX.Element;
7
+ declare function DrawerPortal({ ...props }: DrawerPrimitive.Portal.Props): React.JSX.Element;
8
+ declare function DrawerClose({ ...props }: DrawerPrimitive.Close.Props): React.JSX.Element;
9
+ declare function DrawerOverlay({ className, ...props }: DrawerPrimitive.Backdrop.Props): React.JSX.Element;
10
+ declare function DrawerSwipeHandle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function DrawerContent({ className, children, ...props }: DrawerPrimitive.Popup.Props): React.JSX.Element;
12
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
+ declare function DrawerTitle({ className, ...props }: DrawerPrimitive.Title.Props): React.JSX.Element;
15
+ declare function DrawerDescription({ className, ...props }: DrawerPrimitive.Description.Props): React.JSX.Element;
16
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerSwipeHandle, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -0,0 +1,24 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Label } from './label';
3
+ declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): import('react').JSX.Element;
4
+ declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
5
+ variant?: 'legend' | 'label';
6
+ }): import('react').JSX.Element;
7
+ declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): import('react').JSX.Element;
8
+ declare const FIELD_VARIANTS: (props?: ({
9
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof FIELD_VARIANTS>): import('react').JSX.Element;
12
+ declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): import('react').JSX.Element;
13
+ declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import('react').JSX.Element;
14
+ declare function FieldTitle({ className, ...props }: React.ComponentProps<'div'>): import('react').JSX.Element;
15
+ declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): import('react').JSX.Element;
16
+ declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
17
+ children?: React.ReactNode;
18
+ }): import('react').JSX.Element;
19
+ declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
20
+ errors?: Array<{
21
+ message?: string;
22
+ } | undefined>;
23
+ }): import('react').JSX.Element | null;
24
+ export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, };
@@ -0,0 +1,29 @@
1
+ export * from './accordion';
2
+ export * from './alert';
3
+ export * from './alert-dialog';
4
+ export * from './badge';
5
+ export * from './breadcrumb';
6
+ export * from './button';
7
+ export * from './calendar';
8
+ export * from './card';
9
+ export * from './carousel';
10
+ export * from './checkbox';
11
+ export * from './combobox';
12
+ export * from './dialog';
13
+ export * from './drawer';
14
+ export * from './field';
15
+ export * from './input-group';
16
+ export * from './input';
17
+ export * from './label';
18
+ export * from './pagination';
19
+ export * from './popover';
20
+ export * from './radio-group';
21
+ export * from './select';
22
+ export * from './separator';
23
+ export * from './spinner';
24
+ export * from './switch';
25
+ export * from './table';
26
+ export * from './tabs';
27
+ export * from './textarea';
28
+ export * from './toast';
29
+ export * from './tooltip';
@@ -0,0 +1,18 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Button } from './button';
3
+ import type * as React from 'react';
4
+ declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
+ declare const INPUT_GROUP_ADDON_VARIANTS: (props?: ({
6
+ align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof INPUT_GROUP_ADDON_VARIANTS>): React.JSX.Element;
9
+ declare const INPUT_GROUP_BUTTON_VARIANTS: (props?: ({
10
+ size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size' | 'type'> & VariantProps<typeof INPUT_GROUP_BUTTON_VARIANTS> & {
13
+ type?: 'button' | 'submit' | 'reset';
14
+ }): React.JSX.Element;
15
+ declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
16
+ declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
17
+ declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
18
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, };
@@ -0,0 +1,3 @@
1
+ import type * as React from 'react';
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
3
+ export { Input };
@@ -0,0 +1,3 @@
1
+ import type * as React from 'react';
2
+ declare function Label({ className, ...props }: React.ComponentProps<'label'>): React.JSX.Element;
3
+ export { Label };
@@ -0,0 +1,17 @@
1
+ import { Button } from './button';
2
+ import * as React from "react";
3
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
4
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
5
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): React.JSX.Element;
6
+ type PaginationLinkProps = {
7
+ isActive?: boolean;
8
+ } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
9
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
10
+ declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
11
+ text?: string;
12
+ }): React.JSX.Element;
13
+ declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
14
+ text?: string;
15
+ }): React.JSX.Element;
16
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
17
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -0,0 +1,9 @@
1
+ import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
2
+ import type * as React from 'react';
3
+ declare function Popover({ ...props }: PopoverPrimitive.Root.Props): React.JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props): React.JSX.Element;
5
+ declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): React.JSX.Element;
6
+ declare function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
7
+ declare function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props): React.JSX.Element;
8
+ declare function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props): React.JSX.Element;
9
+ export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
@@ -0,0 +1,5 @@
1
+ import { Radio as RadioPrimitive } from '@base-ui/react/radio';
2
+ import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
3
+ declare function RadioGroup({ className, ...props }: RadioGroupPrimitive.Props): import('react').JSX.Element;
4
+ declare function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props): import('react').JSX.Element;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,15 @@
1
+ import { Select as SelectPrimitive } from '@base-ui/react/select';
2
+ import type * as React from 'react';
3
+ declare const Select: typeof SelectPrimitive.Root;
4
+ declare function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props): React.JSX.Element;
5
+ declare function SelectValue({ className, ...props }: SelectPrimitive.Value.Props): React.JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: SelectPrimitive.Trigger.Props & {
7
+ size?: 'sm' | 'default' | 'lg';
8
+ }): React.JSX.Element;
9
+ declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): React.JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props): React.JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props): React.JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props): React.JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpArrow>): React.JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownArrow>): React.JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,3 @@
1
+ import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
2
+ declare function Separator({ className, orientation, ...props }: SeparatorPrimitive.Props): import('react').JSX.Element;
3
+ export { Separator };
@@ -0,0 +1,2 @@
1
+ declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): import('react').JSX.Element;
2
+ export { Spinner };
@@ -0,0 +1,5 @@
1
+ import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
2
+ declare function Switch({ className, size, ...props }: SwitchPrimitive.Root.Props & {
3
+ size?: "sm" | "default";
4
+ }): import('react').JSX.Element;
5
+ export { Switch };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
3
+ declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
4
+ declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
5
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;
6
+ declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
7
+ declare function TableHead({ className, ...props }: React.ComponentProps<"th">): React.JSX.Element;
8
+ declare function TableCell({ className, ...props }: React.ComponentProps<"td">): React.JSX.Element;
9
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): React.JSX.Element;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,10 @@
1
+ import { Tabs as TabsPrimitive } from '@base-ui/react/tabs';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import('react').JSX.Element;
4
+ declare const tabsListVariants: (props?: ({
5
+ variant?: "line" | "default" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import('react').JSX.Element;
8
+ declare function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props): import('react').JSX.Element;
9
+ declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import('react').JSX.Element;
10
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
@@ -0,0 +1,3 @@
1
+ import type * as React from 'react';
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
3
+ export { Textarea };
@@ -0,0 +1,16 @@
1
+ import { Toast as ToastPrimitive } from '@base-ui/react/toast';
2
+ import * as React from "react";
3
+ declare const toast: import('@base-ui/react').ToastManager<any>;
4
+ declare function ToastProvider({ ...props }: ToastPrimitive.Provider.Props): React.JSX.Element;
5
+ declare function ToastPortal({ ...props }: ToastPrimitive.Portal.Props): React.JSX.Element;
6
+ declare function ToastViewport({ className, ...props }: ToastPrimitive.Viewport.Props): React.JSX.Element;
7
+ declare function Toast({ className, ...props }: ToastPrimitive.Root.Props): React.JSX.Element;
8
+ declare function ToastContent({ className, ...props }: ToastPrimitive.Content.Props): React.JSX.Element;
9
+ declare function ToastTitle({ className, ...props }: ToastPrimitive.Title.Props): React.JSX.Element;
10
+ declare function ToastDescription({ className, ...props }: ToastPrimitive.Description.Props): React.JSX.Element;
11
+ declare function ToastAction({ className, render, ...props }: ToastPrimitive.Action.Props): React.JSX.Element;
12
+ declare function ToastClose({ className, children, render, ...props }: ToastPrimitive.Close.Props): React.JSX.Element;
13
+ declare function Toaster({ children, toastManager, ...props }: ToastPrimitive.Provider.Props): React.JSX.Element;
14
+ declare const createToastManager: typeof ToastPrimitive.createToastManager;
15
+ declare const useToastManager: typeof ToastPrimitive.useToastManager;
16
+ export { Toaster, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, createToastManager, toast, useToastManager, };
@@ -0,0 +1,6 @@
1
+ import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
2
+ declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import('react').JSX.Element;
3
+ declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import('react').JSX.Element;
4
+ declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import('react').JSX.Element;
5
+ declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import('react').JSX.Element;
6
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,2 @@
1
+ import { default as i18n } from 'i18next';
2
+ export default i18n;