@lolmath/ui 2.6.0 → 2.7.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/dist/index.cjs +63 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +60 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 } from 'react-aria-components';
|
|
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';
|
|
4
|
+
export { TooltipTrigger } from 'react-aria-components';
|
|
4
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
interface ButtonProps extends ButtonProps$1 {
|
|
@@ -103,4 +104,6 @@ declare function TextArea({ textAreaProps, ...props }: TextFieldProps & {
|
|
|
103
104
|
textAreaProps?: TextAreaProps;
|
|
104
105
|
}): react_jsx_runtime.JSX.Element;
|
|
105
106
|
|
|
106
|
-
|
|
107
|
+
declare function Tooltip({ children, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
108
|
+
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 } from 'react-aria-components';
|
|
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';
|
|
4
|
+
export { TooltipTrigger } from 'react-aria-components';
|
|
4
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
interface ButtonProps extends ButtonProps$1 {
|
|
@@ -103,4 +104,6 @@ declare function TextArea({ textAreaProps, ...props }: TextFieldProps & {
|
|
|
103
104
|
textAreaProps?: TextAreaProps;
|
|
104
105
|
}): react_jsx_runtime.JSX.Element;
|
|
105
106
|
|
|
106
|
-
|
|
107
|
+
declare function Tooltip({ children, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
108
|
+
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1017,6 +1017,63 @@ function TextArea({
|
|
|
1017
1017
|
}
|
|
1018
1018
|
);
|
|
1019
1019
|
}
|
|
1020
|
+
|
|
1021
|
+
// src/components/tooltip.tsx
|
|
1022
|
+
import { Tooltip as AriaTooltip, OverlayArrow } from "react-aria-components";
|
|
1023
|
+
import { twMerge as twMerge17 } from "tailwind-merge";
|
|
1024
|
+
import { TooltipTrigger } from "react-aria-components";
|
|
1025
|
+
import { Fragment as Fragment8, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1026
|
+
function Tooltip({ children, ...props }) {
|
|
1027
|
+
return /* @__PURE__ */ jsx17(
|
|
1028
|
+
AriaTooltip,
|
|
1029
|
+
{
|
|
1030
|
+
...props,
|
|
1031
|
+
className: (values) => twMerge17(
|
|
1032
|
+
`p-0.5 drop-shadow-lg bg-black`,
|
|
1033
|
+
borderClassName,
|
|
1034
|
+
"w-[280px]",
|
|
1035
|
+
values.isEntering && "animate-in fade-in data-[placement=bottom]:slide-in-from-top-1 data-[placement=top]:slide-in-from-bottom-1 ease-out duration-200 fill-mode-forwards",
|
|
1036
|
+
values.isExiting && "animate-out fade-out data-[placement=bottom]:slide-out-to-top-1 data-[placement=top]:slide-out-to-bottom-1 ease-in duration-150 fill-mode-forwards",
|
|
1037
|
+
values.placement === "bottom" && "mt-2",
|
|
1038
|
+
values.placement === "top" && "mb-2",
|
|
1039
|
+
resolveClassname(props.className, values)
|
|
1040
|
+
),
|
|
1041
|
+
children: (values) => /* @__PURE__ */ jsxs11(Fragment8, { children: [
|
|
1042
|
+
/* @__PURE__ */ jsx17(OverlayArrow, { className: "transform translate-y-1", children: (values2) => /* @__PURE__ */ jsxs11(Fragment8, { children: [
|
|
1043
|
+
/* @__PURE__ */ jsx17(
|
|
1044
|
+
"svg",
|
|
1045
|
+
{
|
|
1046
|
+
viewBox: "0 0 12 12",
|
|
1047
|
+
className: twMerge17(
|
|
1048
|
+
"block fill-lol-gold-600 w-5 h-5 absolute",
|
|
1049
|
+
values2.placement === "top" && "-translate-y-[1px] -left-0.5 ",
|
|
1050
|
+
values2.placement === "bottom" && "-translate-y-[3px] rotate-180 -left-0.5 fill-lol-gold-400",
|
|
1051
|
+
values2.placement === "left" && "-translate-x-px -rotate-90 -top-0.5 fill-lol-gold-500",
|
|
1052
|
+
values2.placement === "right" && "-translate-x-[3px] rotate-90 -top-0.5 fill-lol-gold-500"
|
|
1053
|
+
),
|
|
1054
|
+
children: /* @__PURE__ */ jsx17("path", { d: "M0 0,L6 6,L12 0" })
|
|
1055
|
+
}
|
|
1056
|
+
),
|
|
1057
|
+
/* @__PURE__ */ jsx17(
|
|
1058
|
+
"svg",
|
|
1059
|
+
{
|
|
1060
|
+
viewBox: "0 0 12 12",
|
|
1061
|
+
className: twMerge17(
|
|
1062
|
+
"block fill-lol-gray-900 w-4 h-4",
|
|
1063
|
+
values2.placement === "top" && "-translate-y-0.5",
|
|
1064
|
+
values2.placement === "bottom" && "translate-y-0.5 rotate-180",
|
|
1065
|
+
values2.placement === "left" && "-translate-x-0.5 -rotate-90",
|
|
1066
|
+
values2.placement === "right" && "translate-x-0.5 rotate-90"
|
|
1067
|
+
),
|
|
1068
|
+
children: /* @__PURE__ */ jsx17("path", { d: "M0 0,L6 6,L12 0" })
|
|
1069
|
+
}
|
|
1070
|
+
)
|
|
1071
|
+
] }) }),
|
|
1072
|
+
/* @__PURE__ */ jsx17("div", { className: "bg-lol-gray-900", children: typeof children === "function" ? children(values) : children })
|
|
1073
|
+
] })
|
|
1074
|
+
}
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1020
1077
|
export {
|
|
1021
1078
|
Accordion,
|
|
1022
1079
|
AccordionContent,
|
|
@@ -1045,6 +1102,8 @@ export {
|
|
|
1045
1102
|
TabPanel,
|
|
1046
1103
|
Tabs,
|
|
1047
1104
|
TextArea,
|
|
1048
|
-
TextField
|
|
1105
|
+
TextField,
|
|
1106
|
+
Tooltip,
|
|
1107
|
+
TooltipTrigger
|
|
1049
1108
|
};
|
|
1050
1109
|
//# sourceMappingURL=index.js.map
|