@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/cjs/index.js
CHANGED
|
@@ -507,7 +507,7 @@ function Tab(_a) {
|
|
|
507
507
|
var iconStateClasses = tab.current
|
|
508
508
|
? iconClasses$4.selected
|
|
509
509
|
: iconClasses$4.default;
|
|
510
|
-
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);
|
|
510
|
+
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);
|
|
511
511
|
var finalIconClasses = classNames("s-transition-colors s-duration-400", iconStateClasses.base, iconStateClasses.hover, iconStateClasses.dark.base, iconStateClasses.dark.hover, className);
|
|
512
512
|
var Link = tab.href
|
|
513
513
|
? components.link
|