haze-ui 0.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/README.md +44 -0
- package/dist/components/Accordion/Accordion.js +13 -0
- package/dist/components/Accordion/AccordionItem.js +20 -0
- package/dist/components/Alert/Alert.js +34 -0
- package/dist/components/Badge/Badge.js +27 -0
- package/dist/components/Button/Button.js +27 -0
- package/dist/components/Card/Card.js +21 -0
- package/dist/components/Checkbox/Checkbox.js +20 -0
- package/dist/components/Dialog/Dialog.js +26 -0
- package/dist/components/Input/Input.js +27 -0
- package/dist/components/Popover/Popover.js +29 -0
- package/dist/components/Radio/Radio.js +23 -0
- package/dist/components/Radio/RadioContext.js +8 -0
- package/dist/components/Radio/RadioGroup.js +24 -0
- package/dist/components/Select/Option.js +11 -0
- package/dist/components/Select/Select.js +28 -0
- package/dist/components/Slider/Slider.js +20 -0
- package/dist/components/Switch/Switch.js +43 -0
- package/dist/components/Tabs/Tab.js +24 -0
- package/dist/components/Tabs/TabList.js +14 -0
- package/dist/components/Tabs/TabPanel.js +21 -0
- package/dist/components/Tabs/Tabs.js +22 -0
- package/dist/components/Tabs/TabsContext.js +10 -0
- package/dist/components/Textarea/Textarea.js +27 -0
- package/dist/components/Tooltip/Tooltip.js +32 -0
- package/dist/haze-ui.css +2 -0
- package/dist/index.js +27 -0
- package/dist/tokens/colors.js +5 -0
- package/dist/tokens/spacing.js +5 -0
- package/dist/tokens/typography.js +5 -0
- package/dist/types/components/Accordion/Accordion.d.ts +8 -0
- package/dist/types/components/Accordion/AccordionItem.d.ts +8 -0
- package/dist/types/components/Accordion/index.d.ts +4 -0
- package/dist/types/components/Alert/Alert.d.ts +9 -0
- package/dist/types/components/Alert/index.d.ts +2 -0
- package/dist/types/components/Badge/Badge.d.ts +9 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +7 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +8 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/types/components/Checkbox/index.d.ts +2 -0
- package/dist/types/components/Dialog/Dialog.d.ts +10 -0
- package/dist/types/components/Dialog/index.d.ts +2 -0
- package/dist/types/components/Input/Input.d.ts +8 -0
- package/dist/types/components/Input/index.d.ts +2 -0
- package/dist/types/components/Popover/Popover.d.ts +10 -0
- package/dist/types/components/Popover/index.d.ts +2 -0
- package/dist/types/components/Radio/Radio.d.ts +8 -0
- package/dist/types/components/Radio/RadioContext.d.ts +9 -0
- package/dist/types/components/Radio/RadioGroup.d.ts +10 -0
- package/dist/types/components/Radio/index.d.ts +4 -0
- package/dist/types/components/Select/Option.d.ts +7 -0
- package/dist/types/components/Select/Select.d.ts +9 -0
- package/dist/types/components/Select/index.d.ts +4 -0
- package/dist/types/components/Slider/Slider.d.ts +7 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +8 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/Tabs/Tab.d.ts +8 -0
- package/dist/types/components/Tabs/TabList.d.ts +7 -0
- package/dist/types/components/Tabs/TabPanel.d.ts +8 -0
- package/dist/types/components/Tabs/Tabs.d.ts +9 -0
- package/dist/types/components/Tabs/TabsContext.d.ts +8 -0
- package/dist/types/components/Tabs/index.d.ts +8 -0
- package/dist/types/components/Textarea/Textarea.d.ts +8 -0
- package/dist/types/components/Textarea/index.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/types/components/Tooltip/index.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/tokens/colors.d.ts +2 -0
- package/dist/types/tokens/index.d.ts +3 -0
- package/dist/types/tokens/spacing.d.ts +1 -0
- package/dist/types/tokens/typography.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +93 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { darkTheme as e, lightTheme as t } from "./tokens/colors.js";
|
|
2
|
+
import { spacing as n } from "./tokens/spacing.js";
|
|
3
|
+
import { typography as r } from "./tokens/typography.js";
|
|
4
|
+
import i from "./components/Button/Button.js";
|
|
5
|
+
import a from "./components/Input/Input.js";
|
|
6
|
+
import o from "./components/Select/Select.js";
|
|
7
|
+
import s from "./components/Select/Option.js";
|
|
8
|
+
import c from "./components/Checkbox/Checkbox.js";
|
|
9
|
+
import l from "./components/Switch/Switch.js";
|
|
10
|
+
import u from "./components/Badge/Badge.js";
|
|
11
|
+
import d from "./components/Dialog/Dialog.js";
|
|
12
|
+
import f from "./components/Tooltip/Tooltip.js";
|
|
13
|
+
import p from "./components/Popover/Popover.js";
|
|
14
|
+
import m from "./components/Card/Card.js";
|
|
15
|
+
import h from "./components/Radio/Radio.js";
|
|
16
|
+
import g from "./components/Radio/RadioGroup.js";
|
|
17
|
+
import _ from "./components/Textarea/Textarea.js";
|
|
18
|
+
import v from "./components/Slider/Slider.js";
|
|
19
|
+
import y from "./components/Tabs/Tabs.js";
|
|
20
|
+
import b from "./components/Tabs/TabList.js";
|
|
21
|
+
import x from "./components/Tabs/Tab.js";
|
|
22
|
+
import S from "./components/Tabs/TabPanel.js";
|
|
23
|
+
import C from "./components/Accordion/Accordion.js";
|
|
24
|
+
import w from "./components/Accordion/AccordionItem.js";
|
|
25
|
+
import T from "./components/Alert/Alert.js";
|
|
26
|
+
import { controlEqual as E, useControl as D } from "react-use-control";
|
|
27
|
+
export { C as Accordion, w as AccordionItem, T as Alert, u as Badge, i as Button, m as Card, c as Checkbox, d as Dialog, a as Input, s as Option, p as Popover, h as Radio, g as RadioGroup, o as Select, v as Slider, l as Switch, x as Tab, b as TabList, S as TabPanel, y as Tabs, _ as Textarea, f as Tooltip, E as controlEqual, e as darkTheme, t as lightTheme, n as spacing, r as typography, D as useControl };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type AccordionProps = {
|
|
3
|
+
exclusive?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function Accordion({ className, children, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { AccordionProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type AccordionItemProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function AccordionItem({ title, className, children, }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { AccordionItemProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type AlertProps = {
|
|
3
|
+
variant?: 'info' | 'success' | 'warning' | 'danger';
|
|
4
|
+
closable?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function Alert({ variant, closable, className, children, }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export type { AlertProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type BadgeProps = {
|
|
3
|
+
variant?: 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
size?: 'sm' | 'md';
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function Badge({ variant, size, className, children, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { BadgeProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
type ButtonProps = {
|
|
3
|
+
variant?: 'solid' | 'outline' | 'ghost';
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
} & Omit<ComponentPropsWithoutRef<'button'>, 'type'>;
|
|
6
|
+
export default function Button({ variant, size, className, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { ButtonProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type CardProps = {
|
|
3
|
+
variant?: 'elevated' | 'outlined' | 'filled';
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function Card({ variant, className, children, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { CardProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type CheckboxProps = {
|
|
4
|
+
checked?: Control<boolean> | boolean;
|
|
5
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'checked' | 'type'>;
|
|
6
|
+
export default function Checkbox({ checked: checkedControl, className, onChange, ...rest }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { CheckboxProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type DialogProps = {
|
|
4
|
+
open?: Control<boolean> | boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function Dialog({ open: openControl, onClose, className, children, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { DialogProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type InputProps = {
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'size'>;
|
|
7
|
+
export default function Input({ value: valueControl, size, className, onChange, ...rest }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { InputProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type PopoverProps = {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
open?: Control<boolean> | boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function Popover({ content, open: openControl, className, children, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { PopoverProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
type RadioProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'value' | 'name' | 'checked' | 'onChange'>;
|
|
5
|
+
export default function Radio({ value, className, children, ...rest }: RadioProps & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { RadioProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type RadioContextValue = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
setValue: Dispatch<SetStateAction<string>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const RadioProvider: import("react").Provider<RadioContextValue | undefined>;
|
|
8
|
+
export declare function useRadioContext(): RadioContextValue | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type RadioGroupProps = {
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
name?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function RadioGroup({ value: valueControl, name, className, children, }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { RadioGroupProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type OptionProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
} & Omit<ComponentPropsWithoutRef<'option'>, 'value'>;
|
|
6
|
+
export default function Option({ value, children, ...rest }: OptionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { OptionProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type SelectProps = {
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
} & Omit<ComponentPropsWithoutRef<'select'>, 'value' | 'size'>;
|
|
8
|
+
export default function Select({ value: valueControl, size, className, children, onChange, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { SelectProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type SliderProps = {
|
|
4
|
+
value?: Control<number> | number;
|
|
5
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'value'>;
|
|
6
|
+
export default function Slider({ value: valueControl, className, onChange, ...rest }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { SliderProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type SwitchProps = {
|
|
4
|
+
checked?: Control<boolean> | boolean;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
} & Omit<ComponentPropsWithoutRef<'button'>, 'type' | 'checked'>;
|
|
7
|
+
export default function Switch({ checked: checkedControl, size, className, onClick, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { SwitchProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TabProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function Tab({ value, className, children }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { TabProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TabPanelProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export default function TabPanel({ value, className, children }: TabPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { TabPanelProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type TabsProps = {
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function Tabs({ value: valueControl, className, children, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { TabsProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
type TabsContextValue = {
|
|
3
|
+
value: string;
|
|
4
|
+
setValue: Dispatch<SetStateAction<string>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const TabsProvider: import("react").Provider<TabsContextValue | undefined>;
|
|
7
|
+
export declare function useTabsContext(): TabsContextValue;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Tabs } from './Tabs';
|
|
2
|
+
export type { TabsProps } from './Tabs';
|
|
3
|
+
export { default as TabList } from './TabList';
|
|
4
|
+
export type { TabListProps } from './TabList';
|
|
5
|
+
export { default as Tab } from './Tab';
|
|
6
|
+
export type { TabProps } from './Tab';
|
|
7
|
+
export { default as TabPanel } from './TabPanel';
|
|
8
|
+
export type { TabPanelProps } from './TabPanel';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Control } from 'react-use-control';
|
|
3
|
+
type TextareaProps = {
|
|
4
|
+
value?: Control<string> | string;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
} & Omit<ComponentPropsWithoutRef<'textarea'>, 'value'>;
|
|
7
|
+
export default function Textarea({ value: valueControl, size, className, onChange, ...rest }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type { TextareaProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type TooltipProps = {
|
|
3
|
+
content: ReactNode;
|
|
4
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
+
className?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function Tooltip({ content, position, className, children, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type { TooltipProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { lightTheme, darkTheme } from './tokens/colors';
|
|
2
|
+
export { spacing } from './tokens/spacing';
|
|
3
|
+
export { typography } from './tokens/typography';
|
|
4
|
+
export { Button } from './components/Button';
|
|
5
|
+
export type { ButtonProps } from './components/Button';
|
|
6
|
+
export { Input } from './components/Input';
|
|
7
|
+
export type { InputProps } from './components/Input';
|
|
8
|
+
export { Select, Option } from './components/Select';
|
|
9
|
+
export type { SelectProps, OptionProps } from './components/Select';
|
|
10
|
+
export { Checkbox } from './components/Checkbox';
|
|
11
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
12
|
+
export { Switch } from './components/Switch';
|
|
13
|
+
export type { SwitchProps } from './components/Switch';
|
|
14
|
+
export { Badge } from './components/Badge';
|
|
15
|
+
export type { BadgeProps } from './components/Badge';
|
|
16
|
+
export { Dialog } from './components/Dialog';
|
|
17
|
+
export type { DialogProps } from './components/Dialog';
|
|
18
|
+
export { Tooltip } from './components/Tooltip';
|
|
19
|
+
export type { TooltipProps } from './components/Tooltip';
|
|
20
|
+
export { Popover } from './components/Popover';
|
|
21
|
+
export type { PopoverProps } from './components/Popover';
|
|
22
|
+
export { Card } from './components/Card';
|
|
23
|
+
export type { CardProps } from './components/Card';
|
|
24
|
+
export { Radio, RadioGroup } from './components/Radio';
|
|
25
|
+
export type { RadioProps, RadioGroupProps } from './components/Radio';
|
|
26
|
+
export { Textarea } from './components/Textarea';
|
|
27
|
+
export type { TextareaProps } from './components/Textarea';
|
|
28
|
+
export { Slider } from './components/Slider';
|
|
29
|
+
export type { SliderProps } from './components/Slider';
|
|
30
|
+
export { Tabs, TabList, Tab, TabPanel } from './components/Tabs';
|
|
31
|
+
export type { TabsProps, TabListProps, TabProps, TabPanelProps } from './components/Tabs';
|
|
32
|
+
export { Accordion, AccordionItem } from './components/Accordion';
|
|
33
|
+
export type { AccordionProps, AccordionItemProps } from './components/Accordion';
|
|
34
|
+
export { Alert } from './components/Alert';
|
|
35
|
+
export type { AlertProps } from './components/Alert';
|
|
36
|
+
export { useControl, controlEqual } from 'react-use-control';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const spacing: import("@linaria/core").LinariaClassName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const typography: import("@linaria/core").LinariaClassName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "haze-ui",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A React UI component library powered by react-use-control and Linaria",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./styles.css": "./dist/ripple-ui.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"*.css"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"start": "vite",
|
|
24
|
+
"build": "BUILD_LIB=true vite build && tsc -p tsconfig.lib.json && tsc-alias -p tsconfig.lib.json",
|
|
25
|
+
"build:demo": "BABEL_ENV=development BUILD_DEMO=true vite build",
|
|
26
|
+
"commit": "lint-staged && git-cz -n",
|
|
27
|
+
"coverage": "vitest run --coverage",
|
|
28
|
+
"lint": "eslint --fix src *.js",
|
|
29
|
+
"deploy": "npm run build:demo && gh-pages -d dist",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"prepublishOnly": "npm run build",
|
|
33
|
+
"postpublish": "git push --follow-tags && npm run deploy",
|
|
34
|
+
"serve": "vite preview"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [],
|
|
37
|
+
"author": "wmzy",
|
|
38
|
+
"license": "ISC",
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@linaria/core": "^7.0.0",
|
|
41
|
+
"react": "^19.0.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"babel-runtime-jsx-plus": "^0.1.5",
|
|
45
|
+
"react-toolroom": "^0.4.0",
|
|
46
|
+
"react-use-control": "^1.3.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@babel/core": "^7.29.0",
|
|
50
|
+
"@babel/preset-env": "^7.29.2",
|
|
51
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
52
|
+
"@faker-js/faker": "^10.3.0",
|
|
53
|
+
"@for-fun/event-emitter": "^1.0.0",
|
|
54
|
+
"@linaria/core": "^7.0.0",
|
|
55
|
+
"@native-router/core": "^1.1.0",
|
|
56
|
+
"@native-router/react": "^1.1.2",
|
|
57
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
58
|
+
"@testing-library/react": "^16.3.2",
|
|
59
|
+
"@types/node": "^25.5.0",
|
|
60
|
+
"@types/ramda": "^0.31.1",
|
|
61
|
+
"@types/react": "^19.2.14",
|
|
62
|
+
"@types/react-dom": "^19.2.3",
|
|
63
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
64
|
+
"@wyw-in-js/babel-preset": "^1.0.6",
|
|
65
|
+
"@wyw-in-js/vite": "^1.0.6",
|
|
66
|
+
"babel-plugin-transform-jsx-class": "^0.1.3",
|
|
67
|
+
"babel-plugin-transform-jsx-condition": "^0.1.3",
|
|
68
|
+
"babel-runtime-jsx-plus": "^0.1.5",
|
|
69
|
+
"commitizen": "^4.3.1",
|
|
70
|
+
"core-js": "^3.49.0",
|
|
71
|
+
"date-fns": "^4.1.0",
|
|
72
|
+
"eslint": "^10.0.3",
|
|
73
|
+
"eslint-plugin-compat": "^7.0.1",
|
|
74
|
+
"gh-pages": "^6.3.0",
|
|
75
|
+
"husky": "^9.1.7",
|
|
76
|
+
"jsdom": "^29.0.0",
|
|
77
|
+
"json-schema-faker": "^0.6.0",
|
|
78
|
+
"lint-staged": "^16.4.0",
|
|
79
|
+
"prettier": "^3.8.1",
|
|
80
|
+
"qss": "^3.0.0",
|
|
81
|
+
"ramda": "^0.32.0",
|
|
82
|
+
"react": "^19.2.4",
|
|
83
|
+
"react-dom": "^19.2.4",
|
|
84
|
+
"react-icons": "^5.6.0",
|
|
85
|
+
"rollup-plugin-type-as-json-schema": "^0.2.6",
|
|
86
|
+
"terser": "^5.46.1",
|
|
87
|
+
"tools-config": "^0.2.5",
|
|
88
|
+
"tsc-alias": "^1.8.16",
|
|
89
|
+
"typescript": "^5.9.3",
|
|
90
|
+
"vite": "^8.0.0",
|
|
91
|
+
"vitest": "^4.1.0"
|
|
92
|
+
}
|
|
93
|
+
}
|