@rebasepro/ui 0.2.4 → 0.2.5
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.css +1 -1
- package/dist/index.es.js +13 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +6 -6
- package/src/components/IconButton.tsx +4 -4
- package/src/components/Tabs.tsx +2 -2
- package/src/index.css +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -989,15 +989,15 @@
|
|
|
989
989
|
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
|
|
990
990
|
});
|
|
991
991
|
const sizeClasses2 = cls({
|
|
992
|
-
"py-
|
|
993
|
-
"py-
|
|
994
|
-
"py-2 px-
|
|
995
|
-
"py-
|
|
996
|
-
"py-
|
|
992
|
+
"py-1 px-2": size === "small",
|
|
993
|
+
"py-2 px-4": size === "medium",
|
|
994
|
+
"py-2.5 px-5": size === "large",
|
|
995
|
+
"py-3 px-6": size === "xl",
|
|
996
|
+
"py-4 px-10": size === "2xl"
|
|
997
997
|
});
|
|
998
998
|
const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
|
|
999
999
|
if (Component) {
|
|
1000
|
-
t30 = /* @__PURE__ */ jsxRuntime.jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-
|
|
1000
|
+
t30 = /* @__PURE__ */ jsxRuntime.jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-all ease-in-out duration-150 gap-2 active:scale-[0.98]", buttonClasses2, sizeClasses2, iconColorClass, className), ...props, children: [
|
|
1001
1001
|
startIcon,
|
|
1002
1002
|
children
|
|
1003
1003
|
] });
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
t26 = ref;
|
|
1007
1007
|
t27 = props.type ?? "button";
|
|
1008
1008
|
t28 = props.onClick;
|
|
1009
|
-
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-
|
|
1009
|
+
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-all ease-in-out duration-150 gap-2 active:scale-[0.98]", buttonClasses2, sizeClasses2, iconColorClass, className);
|
|
1010
1010
|
}
|
|
1011
1011
|
$[11] = Component;
|
|
1012
1012
|
$[12] = children;
|
|
@@ -2151,10 +2151,10 @@
|
|
|
2151
2151
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
|
2152
2152
|
const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
|
2153
2153
|
const sizeClasses$1 = {
|
|
2154
|
-
medium: "w-
|
|
2155
|
-
small: "w-
|
|
2156
|
-
smallest: "w-
|
|
2157
|
-
large: "w-
|
|
2154
|
+
medium: "w-10 !h-10 min-w-10 min-h-10",
|
|
2155
|
+
small: "w-8 !h-8 min-w-8 min-h-8",
|
|
2156
|
+
smallest: "w-6 !h-6 min-w-6 min-h-6",
|
|
2157
|
+
large: "w-12 !h-12 min-w-12 min-h-12"
|
|
2158
2158
|
};
|
|
2159
2159
|
const shapeClasses = {
|
|
2160
2160
|
circular: "rounded-full",
|
|
@@ -7005,7 +7005,7 @@
|
|
|
7005
7005
|
} else {
|
|
7006
7006
|
t10 = $[12];
|
|
7007
7007
|
}
|
|
7008
|
-
const t11 = variant === "standard" && "inline-flex h-
|
|
7008
|
+
const t11 = variant === "standard" && "inline-flex h-9 items-center justify-start rounded-md bg-surface-50 p-1 text-surface-600 dark:bg-surface-900 dark:text-surface-400 gap-2 border";
|
|
7009
7009
|
const t12 = variant === "standard" && defaultBorderMixin;
|
|
7010
7010
|
const t13 = variant === "boxy" && "flex items-center h-full";
|
|
7011
7011
|
const t14 = variant === "pill" && "flex items-center gap-0.5";
|
|
@@ -7079,7 +7079,7 @@
|
|
|
7079
7079
|
const {
|
|
7080
7080
|
variant
|
|
7081
7081
|
} = React.useContext(TabsContext);
|
|
7082
|
-
const t1 = variant === "standard" && "rounded-sm px-3 py-1
|
|
7082
|
+
const t1 = variant === "standard" && "rounded-sm px-3 py-1 data-[state=active]:bg-white data-[state=active]:text-surface-900 data-[state=active]:shadow-sm dark:data-[state=active]:bg-surface-900 dark:data-[state=active]:text-surface-50";
|
|
7083
7083
|
let t2;
|
|
7084
7084
|
if ($[0] !== className || $[1] !== innerClassName || $[2] !== t1 || $[3] !== variant) {
|
|
7085
7085
|
t2 = cls("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-white transition-all", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", t1, variant === "boxy" && cls("flex-shrink-0 flex items-center gap-1.5 px-3.5 h-9 border-r border-surface-200 dark:border-surface-800 cursor-pointer text-[12px] font-medium transition-colors group relative box-border overflow-hidden", "border-b-2 border-b-transparent", "data-[state=active]:bg-surface-50 dark:data-[state=active]:bg-surface-900", "data-[state=active]:text-text-primary dark:data-[state=active]:text-text-primary-dark", "data-[state=active]:border-b-primary", "text-text-secondary dark:text-text-secondary-dark hover:bg-surface-100 dark:hover:bg-surface-800"), variant === "pill" && cls("px-2 py-0.5 rounded text-[10px] font-medium transition-colors", "data-[state=active]:bg-primary/10 data-[state=active]:text-primary dark:data-[state=active]:bg-primary/20 dark:data-[state=active]:text-blue-400", "text-text-disabled dark:text-text-disabled-dark hover:text-text-secondary dark:hover:text-text-secondary-dark"), className, variant === "standard" && innerClassName);
|