@lolmath/ui 2.7.0 → 2.8.1

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/dist/index.d.cts CHANGED
@@ -1,11 +1,13 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ComponentProps } from 'react';
3
- import { ButtonProps as ButtonProps$1, ItemProps, SelectProps as SelectProps$1, SearchFieldProps, Input, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SwitchProps, ProgressBarProps as ProgressBarProps$1, TextFieldProps, InputProps, RadioGroupProps, RadioProps, LabelProps, NumberFieldProps, Group, HeadingProps, DialogTriggerProps, ModalOverlayProps, DialogProps, TabsProps, TabListProps, TabProps, TabPanelProps, CheckboxProps, TextAreaProps, TooltipProps } from 'react-aria-components';
3
+ import { ButtonProps as ButtonProps$1, ItemProps, SelectProps as SelectProps$1, SearchFieldProps, Input, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, ProgressBarProps as ProgressBarProps$1, TextFieldProps, InputProps, RadioGroupProps, RadioProps, LabelProps, NumberFieldProps, Group, HeadingProps, DialogTriggerProps, ModalOverlayProps, DialogProps, TabsProps, TabListProps, TabProps, TabPanelProps, CheckboxProps, TextAreaProps, TooltipProps } from 'react-aria-components';
4
4
  export { TooltipTrigger } from 'react-aria-components';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
 
7
7
  interface ButtonProps extends ButtonProps$1 {
8
- priority?: "primary" | "secondary";
8
+ priority?: "primary" | "secondary" | "tertiary";
9
+ isRounded?: boolean;
10
+ isSquared?: boolean;
9
11
  }
10
12
  declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
11
13
 
@@ -18,8 +20,9 @@ interface SelectProps<T extends object> extends Omit<SelectProps$1<T>, "children
18
20
  declare function Select<T extends object>({ description, errorMessage, children, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
19
21
  declare function Item({ className, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
20
22
 
21
- declare function SearchField({ inputProps, ...props }: SearchFieldProps & {
23
+ declare function SearchField({ inputProps, borderProps, children, ...props }: SearchFieldProps & {
22
24
  inputProps?: ComponentProps<typeof Input>;
25
+ borderProps?: ComponentProps<"div">;
23
26
  }): react_jsx_runtime.JSX.Element;
24
27
 
25
28
  declare function Slider<T extends number | number[]>({ children, sliderThumbProps, sliderTrackProps, sliderTrackBackgroundClassName, sliderTrackForegroundClassName, ...props }: SliderProps<T> & {
@@ -28,10 +31,7 @@ declare function Slider<T extends number | number[]>({ children, sliderThumbProp
28
31
  sliderTrackBackgroundClassName?: string | ((values: SliderTrackRenderProps) => string);
29
32
  sliderTrackForegroundClassName?: string | ((values: SliderTrackRenderProps) => string);
30
33
  }): react_jsx_runtime.JSX.Element;
31
- interface SliderLabelProps {
32
- children?: React.ReactNode;
33
- }
34
- declare function SliderLabel({ children }: SliderLabelProps): react_jsx_runtime.JSX.Element;
34
+ declare function SliderOutput(props: SliderOutputProps): react_jsx_runtime.JSX.Element;
35
35
 
36
36
  declare function Switch({ className, placeholder, children, ...props }: SwitchProps & {
37
37
  placeholder?: string;
@@ -62,8 +62,9 @@ interface AccordionContentProps {
62
62
  }
63
63
  declare function AccordionContent({ children }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
64
64
 
65
- declare function TextField({ inputProps, ...props }: TextFieldProps & {
65
+ declare function TextField({ inputProps, borderProps, children, ...props }: TextFieldProps & {
66
66
  inputProps?: InputProps;
67
+ borderProps?: ComponentProps<"div">;
67
68
  }): react_jsx_runtime.JSX.Element;
68
69
 
69
70
  declare function RadioGroup({ ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
@@ -71,7 +72,7 @@ declare function Radio({ ...props }: RadioProps): react_jsx_runtime.JSX.Element;
71
72
 
72
73
  declare function Label({ ...props }: LabelProps): react_jsx_runtime.JSX.Element;
73
74
 
74
- declare function NumberField({ inputProps, groupProps, ...props }: NumberFieldProps & {
75
+ declare function NumberField({ inputProps, groupProps, children, ...props }: NumberFieldProps & {
75
76
  inputProps?: ComponentProps<typeof Input>;
76
77
  groupProps?: ComponentProps<typeof Group>;
77
78
  }): react_jsx_runtime.JSX.Element;
@@ -100,10 +101,17 @@ declare function TabPanel({ ...rest }: TabPanelProps): react_jsx_runtime.JSX.Ele
100
101
 
101
102
  declare function Checkbox({ children, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
102
103
 
103
- declare function TextArea({ textAreaProps, ...props }: TextFieldProps & {
104
+ declare function TextArea({ textAreaProps, borderProps, children, ...props }: TextFieldProps & {
104
105
  textAreaProps?: TextAreaProps;
106
+ borderProps?: ComponentProps<"div">;
105
107
  }): react_jsx_runtime.JSX.Element;
106
108
 
107
109
  declare function Tooltip({ children, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
108
110
 
109
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, Checkbox, DialogButtons, DialogTrigger, Heading, Item, Label, Modal, NumberField, ProgressBar, Radio, RadioGroup, SearchField, Select, Slider, SliderLabel, Spinner, Switch, Tab, TabList, TabPanel, Tabs, TextArea, TextField, Tooltip };
111
+ interface CardProps extends ComponentProps<"div"> {
112
+ borderProps?: ComponentProps<"div">;
113
+ }
114
+ declare function Card({ children, className, style, borderProps }: CardProps): react_jsx_runtime.JSX.Element;
115
+ declare function borderInverted(r: string): string;
116
+
117
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, Card, CardProps, Checkbox, DialogButtons, DialogTrigger, Heading, Item, Label, Modal, NumberField, ProgressBar, Radio, RadioGroup, SearchField, Select, Slider, SliderOutput, Spinner, Switch, Tab, TabList, TabPanel, Tabs, TextArea, TextField, Tooltip, borderInverted };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, ComponentProps } from 'react';
3
- import { ButtonProps as ButtonProps$1, ItemProps, SelectProps as SelectProps$1, SearchFieldProps, Input, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SwitchProps, ProgressBarProps as ProgressBarProps$1, TextFieldProps, InputProps, RadioGroupProps, RadioProps, LabelProps, NumberFieldProps, Group, HeadingProps, DialogTriggerProps, ModalOverlayProps, DialogProps, TabsProps, TabListProps, TabProps, TabPanelProps, CheckboxProps, TextAreaProps, TooltipProps } from 'react-aria-components';
3
+ import { ButtonProps as ButtonProps$1, ItemProps, SelectProps as SelectProps$1, SearchFieldProps, Input, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, ProgressBarProps as ProgressBarProps$1, TextFieldProps, InputProps, RadioGroupProps, RadioProps, LabelProps, NumberFieldProps, Group, HeadingProps, DialogTriggerProps, ModalOverlayProps, DialogProps, TabsProps, TabListProps, TabProps, TabPanelProps, CheckboxProps, TextAreaProps, TooltipProps } from 'react-aria-components';
4
4
  export { TooltipTrigger } from 'react-aria-components';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
 
7
7
  interface ButtonProps extends ButtonProps$1 {
8
- priority?: "primary" | "secondary";
8
+ priority?: "primary" | "secondary" | "tertiary";
9
+ isRounded?: boolean;
10
+ isSquared?: boolean;
9
11
  }
10
12
  declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
11
13
 
@@ -18,8 +20,9 @@ interface SelectProps<T extends object> extends Omit<SelectProps$1<T>, "children
18
20
  declare function Select<T extends object>({ description, errorMessage, children, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
19
21
  declare function Item({ className, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
20
22
 
21
- declare function SearchField({ inputProps, ...props }: SearchFieldProps & {
23
+ declare function SearchField({ inputProps, borderProps, children, ...props }: SearchFieldProps & {
22
24
  inputProps?: ComponentProps<typeof Input>;
25
+ borderProps?: ComponentProps<"div">;
23
26
  }): react_jsx_runtime.JSX.Element;
24
27
 
25
28
  declare function Slider<T extends number | number[]>({ children, sliderThumbProps, sliderTrackProps, sliderTrackBackgroundClassName, sliderTrackForegroundClassName, ...props }: SliderProps<T> & {
@@ -28,10 +31,7 @@ declare function Slider<T extends number | number[]>({ children, sliderThumbProp
28
31
  sliderTrackBackgroundClassName?: string | ((values: SliderTrackRenderProps) => string);
29
32
  sliderTrackForegroundClassName?: string | ((values: SliderTrackRenderProps) => string);
30
33
  }): react_jsx_runtime.JSX.Element;
31
- interface SliderLabelProps {
32
- children?: React.ReactNode;
33
- }
34
- declare function SliderLabel({ children }: SliderLabelProps): react_jsx_runtime.JSX.Element;
34
+ declare function SliderOutput(props: SliderOutputProps): react_jsx_runtime.JSX.Element;
35
35
 
36
36
  declare function Switch({ className, placeholder, children, ...props }: SwitchProps & {
37
37
  placeholder?: string;
@@ -62,8 +62,9 @@ interface AccordionContentProps {
62
62
  }
63
63
  declare function AccordionContent({ children }: AccordionContentProps): react_jsx_runtime.JSX.Element | null;
64
64
 
65
- declare function TextField({ inputProps, ...props }: TextFieldProps & {
65
+ declare function TextField({ inputProps, borderProps, children, ...props }: TextFieldProps & {
66
66
  inputProps?: InputProps;
67
+ borderProps?: ComponentProps<"div">;
67
68
  }): react_jsx_runtime.JSX.Element;
68
69
 
69
70
  declare function RadioGroup({ ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
@@ -71,7 +72,7 @@ declare function Radio({ ...props }: RadioProps): react_jsx_runtime.JSX.Element;
71
72
 
72
73
  declare function Label({ ...props }: LabelProps): react_jsx_runtime.JSX.Element;
73
74
 
74
- declare function NumberField({ inputProps, groupProps, ...props }: NumberFieldProps & {
75
+ declare function NumberField({ inputProps, groupProps, children, ...props }: NumberFieldProps & {
75
76
  inputProps?: ComponentProps<typeof Input>;
76
77
  groupProps?: ComponentProps<typeof Group>;
77
78
  }): react_jsx_runtime.JSX.Element;
@@ -100,10 +101,17 @@ declare function TabPanel({ ...rest }: TabPanelProps): react_jsx_runtime.JSX.Ele
100
101
 
101
102
  declare function Checkbox({ children, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
102
103
 
103
- declare function TextArea({ textAreaProps, ...props }: TextFieldProps & {
104
+ declare function TextArea({ textAreaProps, borderProps, children, ...props }: TextFieldProps & {
104
105
  textAreaProps?: TextAreaProps;
106
+ borderProps?: ComponentProps<"div">;
105
107
  }): react_jsx_runtime.JSX.Element;
106
108
 
107
109
  declare function Tooltip({ children, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
108
110
 
109
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, Checkbox, DialogButtons, DialogTrigger, Heading, Item, Label, Modal, NumberField, ProgressBar, Radio, RadioGroup, SearchField, Select, Slider, SliderLabel, Spinner, Switch, Tab, TabList, TabPanel, Tabs, TextArea, TextField, Tooltip };
111
+ interface CardProps extends ComponentProps<"div"> {
112
+ borderProps?: ComponentProps<"div">;
113
+ }
114
+ declare function Card({ children, className, style, borderProps }: CardProps): react_jsx_runtime.JSX.Element;
115
+ declare function borderInverted(r: string): string;
116
+
117
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, Card, CardProps, Checkbox, DialogButtons, DialogTrigger, Heading, Item, Label, Modal, NumberField, ProgressBar, Radio, RadioGroup, SearchField, Select, Slider, SliderOutput, Spinner, Switch, Tab, TabList, TabPanel, Tabs, TextArea, TextField, Tooltip, borderInverted };