dark-blue 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.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default tseslint.config({
18
+ languageOptions: {
19
+ // other options...
20
+ parserOptions: {
21
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
+ tsconfigRootDir: import.meta.dirname,
23
+ },
24
+ },
25
+ })
26
+ ```
27
+
28
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
+
32
+ ```js
33
+ // eslint.config.js
34
+ import react from 'eslint-plugin-react'
35
+
36
+ export default tseslint.config({
37
+ // Set the react version
38
+ settings: { react: { version: '18.3' } },
39
+ plugins: {
40
+ // Add the react plugin
41
+ react,
42
+ },
43
+ rules: {
44
+ // other rules...
45
+ // Enable its recommended rules
46
+ ...react.configs.recommended.rules,
47
+ ...react.configs['jsx-runtime'].rules,
48
+ },
49
+ })
50
+ ```
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ export interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ type?: 'single' | 'multiple';
4
+ value?: string[];
5
+ defaultValue?: string[];
6
+ onValueChange?: (value: string[]) => void;
7
+ }
8
+ declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
9
+ export interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ value: string;
11
+ }
12
+ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
14
+ declare const AccordionContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const cardVariants: (props?: ({
4
+ variant?: "default" | "outline" | "elevated" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
7
+ }
8
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
11
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
12
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants };
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ export interface DropdownProps {
3
+ children: React.ReactNode;
4
+ open?: boolean;
5
+ defaultOpen?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ }
8
+ declare function Dropdown({ children, open: controlledOpen, defaultOpen, onOpenChange }: DropdownProps): import("react/jsx-runtime").JSX.Element;
9
+ export interface DropdownTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
+ asChild?: boolean;
11
+ }
12
+ declare const DropdownTrigger: React.ForwardRefExoticComponent<DropdownTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ export interface DropdownContentProps extends React.HTMLAttributes<HTMLDivElement> {
14
+ align?: 'start' | 'center' | 'end';
15
+ }
16
+ declare const DropdownContent: React.ForwardRefExoticComponent<DropdownContentProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DropdownItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
18
+ declare const DropdownSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
19
+ export { Dropdown, DropdownTrigger, DropdownContent, DropdownItem, DropdownSeparator };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ export interface ModalProps {
3
+ children: React.ReactNode;
4
+ open?: boolean;
5
+ defaultOpen?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ }
8
+ declare function Modal({ children, open: controlledOpen, defaultOpen, onOpenChange }: ModalProps): import("react/jsx-runtime").JSX.Element;
9
+ export interface ModalTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
+ asChild?: boolean;
11
+ }
12
+ declare const ModalTrigger: React.ForwardRefExoticComponent<ModalTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ declare const ModalOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const ModalContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const ModalHeader: {
16
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const ModalFooter: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ declare const ModalTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
24
+ declare const ModalDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
25
+ declare const ModalClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
26
+ export { Modal, ModalTrigger, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalTitle, ModalDescription, ModalClose, };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ export interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ value?: string;
4
+ defaultValue?: string;
5
+ onValueChange?: (value: string) => void;
6
+ }
7
+ declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const TabsList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
+ export interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
+ value: string;
11
+ }
12
+ declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ export interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
14
+ value: string;
15
+ }
16
+ declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
17
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const toastVariants: (props?: ({
4
+ variant?: "error" | "default" | "success" | "warning" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof toastVariants> {
7
+ open?: boolean;
8
+ onClose?: () => void;
9
+ duration?: number;
10
+ }
11
+ declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
12
+ declare const ToastTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
13
+ declare const ToastDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
14
+ export interface ToastContainerProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
16
+ }
17
+ declare const ToastContainer: React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<HTMLDivElement>>;
18
+ interface ToastItem {
19
+ id: string;
20
+ variant?: ToastProps['variant'];
21
+ title?: React.ReactNode;
22
+ description?: React.ReactNode;
23
+ duration?: number;
24
+ }
25
+ export declare function useToast(): {
26
+ toasts: ToastItem[];
27
+ toast: (props: Omit<ToastItem, "id">) => string;
28
+ dismiss: (id: string) => void;
29
+ };
30
+ export { Toast, ToastTitle, ToastDescription, ToastContainer, toastVariants };
@@ -0,0 +1,6 @@
1
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants, type CardProps, } from './Card';
2
+ export { Tabs, TabsList, TabsTrigger, TabsContent, type TabsProps, type TabsTriggerProps, type TabsContentProps, } from './Tabs';
3
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, type AccordionProps, type AccordionItemProps, } from './Accordion';
4
+ export { Dropdown, DropdownTrigger, DropdownContent, DropdownItem, DropdownSeparator, type DropdownProps, type DropdownTriggerProps, type DropdownContentProps, } from './Dropdown';
5
+ export { Modal, ModalTrigger, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalTitle, ModalDescription, ModalClose, type ModalProps, type ModalTriggerProps, } from './Modal';
6
+ export { Toast, ToastTitle, ToastDescription, ToastContainer, toastVariants, useToast, type ToastProps, type ToastContainerProps, } from './Toast';
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const containerVariants: (props?: ({
4
+ size?: "sm" | "lg" | "md" | "xl" | "2xl" | "full" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
7
+ }
8
+ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
9
+ export { Container, containerVariants };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const gridVariants: (props?: ({
4
+ cols?: 1 | 4 | 2 | 3 | 5 | 6 | 12 | null | undefined;
5
+ gap?: 0 | 1 | 4 | 2 | 3 | 5 | 6 | 8 | 10 | 12 | null | undefined;
6
+ align?: "start" | "center" | "end" | "stretch" | null | undefined;
7
+ justify?: "start" | "center" | "end" | "stretch" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
10
+ }
11
+ declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
12
+ export { Grid, gridVariants };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const stackVariants: (props?: ({
4
+ direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
5
+ align?: "start" | "center" | "end" | "stretch" | "baseline" | null | undefined;
6
+ justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
7
+ gap?: 0 | 1 | 4 | 2 | 3 | 5 | 6 | 8 | 10 | 12 | null | undefined;
8
+ wrap?: boolean | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export interface StackProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
11
+ }
12
+ declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
13
+ export { Stack, stackVariants };
@@ -0,0 +1,3 @@
1
+ export { Container, containerVariants, type ContainerProps } from './Container';
2
+ export { Stack, stackVariants, type StackProps } from './Stack';
3
+ export { Grid, gridVariants, type GridProps } from './Grid';
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "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,9 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const checkboxVariants: (props?: ({
4
+ size?: "default" | "sm" | "lg" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'>, VariantProps<typeof checkboxVariants> {
7
+ }
8
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
9
+ export { Checkbox, checkboxVariants };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const inputVariants: (props?: ({
4
+ variant?: "error" | "default" | null | undefined;
5
+ inputSize?: "default" | "sm" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
8
+ }
9
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
10
+ export { Input, inputVariants };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const labelVariants: (props?: ({
4
+ error?: boolean | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
7
+ }
8
+ declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
9
+ export { Label, labelVariants };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const radioVariants: (props?: ({
4
+ size?: "default" | "sm" | "lg" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'>, VariantProps<typeof radioVariants> {
7
+ }
8
+ declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
9
+ export { Radio, radioVariants };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const selectVariants: (props?: ({
4
+ variant?: "error" | "default" | null | undefined;
5
+ selectSize?: "default" | "sm" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'>, VariantProps<typeof selectVariants> {
8
+ }
9
+ declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
10
+ export { Select, selectVariants };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const textareaVariants: (props?: ({
4
+ variant?: "error" | "default" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
7
+ }
8
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
9
+ export { Textarea, textareaVariants };
@@ -0,0 +1,7 @@
1
+ export { Label, labelVariants, type LabelProps } from './Label';
2
+ export { Button, buttonVariants, type ButtonProps } from './Button';
3
+ export { Input, inputVariants, type InputProps } from './Input';
4
+ export { Textarea, textareaVariants, type TextareaProps } from './Textarea';
5
+ export { Checkbox, checkboxVariants, type CheckboxProps } from './Checkbox';
6
+ export { Radio, radioVariants, type RadioProps } from './Radio';
7
+ export { Select, selectVariants, type SelectProps } from './Select';
@@ -0,0 +1,9 @@
1
+ type Theme = 'light' | 'dark' | 'system';
2
+ export declare function useTheme(): {
3
+ theme: Theme;
4
+ resolvedTheme: "light" | "dark";
5
+ setTheme: (newTheme: Theme) => void;
6
+ toggleTheme: () => void;
7
+ };
8
+ export declare const themeScript = "\n(function() {\n const theme = localStorage.getItem('dark-blue-theme') || 'system';\n const resolved = theme === 'system'\n ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')\n : theme;\n document.documentElement.classList.add(resolved);\n})();\n";
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import './styles/globals.css';
2
+ export * from './components/primitives';
3
+ export * from './components/layout';
4
+ export * from './components/composite';
5
+ export { useTheme, themeScript } from './hooks/useTheme';
6
+ export { cn } from './utils/cn';