@dust-tt/sparkle 0.1.56 → 0.1.58-henry
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ComponentType, MouseEvent } from "react";
|
|
2
2
|
type TabProps = {
|
|
3
3
|
tabs: Array<{
|
|
4
|
-
label
|
|
4
|
+
label: string;
|
|
5
5
|
hideLabel?: boolean;
|
|
6
|
-
current
|
|
6
|
+
current: boolean;
|
|
7
7
|
sizing?: "hug" | "expand";
|
|
8
8
|
icon?: ComponentType<{
|
|
9
9
|
className?: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -487,7 +487,7 @@ function Tab(_a) {
|
|
|
487
487
|
var iconStateClasses = tab.current
|
|
488
488
|
? iconClasses$4.selected
|
|
489
489
|
: iconClasses$4.default;
|
|
490
|
-
var finalTabClasses = classNames("s-group s-justify-center s-flex s-text-sm s-font-semibold s-py-3 s-transition-all ease-out s-duration-400 s-whitespace-nowrap s-select-none s-border-b-2", tab.icon ? " s-pr-5 s-pl-4" : " s-px-5", tabStateClasses.base, tabStateClasses.hover, tabStateClasses.dark.base, tabStateClasses.dark.hover, tabSizingClasses[(_a = tab.sizing) !== null && _a !== void 0 ? _a : "hug"], className);
|
|
490
|
+
var finalTabClasses = classNames("s-group s-justify-center s-flex s-text-sm s-font-semibold s-px-4 s-py-3 s-transition-all ease-out s-duration-400 s-whitespace-nowrap s-select-none s-border-b-2", "s-group s-justify-center s-flex s-text-sm s-font-semibold s-py-3 s-transition-all ease-out s-duration-400 s-whitespace-nowrap s-select-none s-border-b-2", tab.icon ? " s-pr-5 s-pl-4" : " s-px-5", tabStateClasses.base, tabStateClasses.hover, tabStateClasses.dark.base, tabStateClasses.dark.hover, tabSizingClasses[(_a = tab.sizing) !== null && _a !== void 0 ? _a : "hug"], className);
|
|
491
491
|
var finalIconClasses = classNames("s-transition-colors s-duration-400", iconStateClasses.base, iconStateClasses.hover, iconStateClasses.dark.base, iconStateClasses.dark.hover, className);
|
|
492
492
|
var Link = tab.href
|
|
493
493
|
? components.link
|