@lolmath/ui 2.4.0 → 2.4.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.cjs +14 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -93,8 +93,8 @@ declare function DialogButtons({ children }: {
|
|
|
93
93
|
declare function DialogTrigger(props: DialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
95
95
|
declare function Tabs({ onSelectionChange, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
96
|
-
declare function TabList<T extends object>({ ...rest }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
97
|
-
declare function Tab({ children, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
|
|
96
|
+
declare function TabList<T extends object>({ className, ...rest }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
97
|
+
declare function Tab({ children, className, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
|
|
98
98
|
declare function TabPanel({ ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
99
99
|
|
|
100
100
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, DialogButtons, DialogTrigger, Heading, Item, Label, Modal, NumberField, ProgressBar, Radio, RadioGroup, SearchField, Select, Slider, SliderLabel, Spinner, Switch, Tab, TabList, TabPanel, Tabs, TextField };
|
package/dist/index.d.ts
CHANGED
|
@@ -93,8 +93,8 @@ declare function DialogButtons({ children }: {
|
|
|
93
93
|
declare function DialogTrigger(props: DialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
95
95
|
declare function Tabs({ onSelectionChange, ...rest }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
96
|
-
declare function TabList<T extends object>({ ...rest }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
97
|
-
declare function Tab({ children, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
|
|
96
|
+
declare function TabList<T extends object>({ className, ...rest }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
97
|
+
declare function Tab({ children, className, ...rest }: TabProps): react_jsx_runtime.JSX.Element;
|
|
98
98
|
declare function TabPanel({ ...rest }: TabPanelProps): react_jsx_runtime.JSX.Element;
|
|
99
99
|
|
|
100
100
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, DialogButtons, DialogTrigger, Heading, Item, Label, Modal, NumberField, ProgressBar, Radio, RadioGroup, SearchField, Select, Slider, SliderLabel, Spinner, Switch, Tab, TabList, TabPanel, Tabs, TextField };
|
package/dist/index.js
CHANGED
|
@@ -872,10 +872,19 @@ function Tabs({ onSelectionChange, ...rest }) {
|
|
|
872
872
|
}
|
|
873
873
|
) });
|
|
874
874
|
}
|
|
875
|
-
function TabList({
|
|
876
|
-
|
|
875
|
+
function TabList({
|
|
876
|
+
className,
|
|
877
|
+
...rest
|
|
878
|
+
}) {
|
|
879
|
+
return /* @__PURE__ */ jsx14(
|
|
880
|
+
AriaTabList,
|
|
881
|
+
{
|
|
882
|
+
...rest,
|
|
883
|
+
className: (values) => twMerge14("flex gap-0 -ml-4", resolveClassname(className, values))
|
|
884
|
+
}
|
|
885
|
+
);
|
|
877
886
|
}
|
|
878
|
-
function Tab({ children, ...rest }) {
|
|
887
|
+
function Tab({ children, className, ...rest }) {
|
|
879
888
|
const { id } = useTabsContext();
|
|
880
889
|
return /* @__PURE__ */ jsx14(
|
|
881
890
|
AriaTab,
|
|
@@ -885,7 +894,8 @@ function Tab({ children, ...rest }) {
|
|
|
885
894
|
"font-beaufort text-lol-gold-300 uppercase font-medium text-xs tracking-widest px-4 relative py-1 cursor-pointer select-none",
|
|
886
895
|
(values.isSelected || values.isHovered) && "text-lol-gold-50",
|
|
887
896
|
values.isPressed && "text-lol-gold-500",
|
|
888
|
-
values.isDisabled && "text-lol-gray-500 cursor-default"
|
|
897
|
+
values.isDisabled && "text-lol-gray-500 cursor-default",
|
|
898
|
+
resolveClassname(className, values)
|
|
889
899
|
),
|
|
890
900
|
children: (values) => /* @__PURE__ */ jsxs9(Fragment6, { children: [
|
|
891
901
|
typeof children === "function" ? children(values) : children,
|