@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.css
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -985,15 +985,15 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
985
985
|
"border border-transparent bg-surface-300 dark:bg-surface-500 opacity-40 bg-surface-300/40 dark:bg-surface-500/40": t25
|
|
986
986
|
});
|
|
987
987
|
const sizeClasses2 = cls({
|
|
988
|
-
"py-
|
|
989
|
-
"py-
|
|
990
|
-
"py-2 px-
|
|
991
|
-
"py-
|
|
992
|
-
"py-
|
|
988
|
+
"py-1 px-2": size === "small",
|
|
989
|
+
"py-2 px-4": size === "medium",
|
|
990
|
+
"py-2.5 px-5": size === "large",
|
|
991
|
+
"py-3 px-6": size === "xl",
|
|
992
|
+
"py-4 px-10": size === "2xl"
|
|
993
993
|
});
|
|
994
994
|
const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
|
|
995
995
|
if (Component) {
|
|
996
|
-
t30 = /* @__PURE__ */ 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-
|
|
996
|
+
t30 = /* @__PURE__ */ 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: [
|
|
997
997
|
startIcon,
|
|
998
998
|
children
|
|
999
999
|
] });
|
|
@@ -1002,7 +1002,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
1002
1002
|
t26 = ref;
|
|
1003
1003
|
t27 = props.type ?? "button";
|
|
1004
1004
|
t28 = props.onClick;
|
|
1005
|
-
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-
|
|
1005
|
+
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);
|
|
1006
1006
|
}
|
|
1007
1007
|
$[11] = Component;
|
|
1008
1008
|
$[12] = children;
|
|
@@ -2147,10 +2147,10 @@ const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-
|
|
|
2147
2147
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
|
2148
2148
|
const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
|
2149
2149
|
const sizeClasses$1 = {
|
|
2150
|
-
medium: "w-
|
|
2151
|
-
small: "w-
|
|
2152
|
-
smallest: "w-
|
|
2153
|
-
large: "w-
|
|
2150
|
+
medium: "w-10 !h-10 min-w-10 min-h-10",
|
|
2151
|
+
small: "w-8 !h-8 min-w-8 min-h-8",
|
|
2152
|
+
smallest: "w-6 !h-6 min-w-6 min-h-6",
|
|
2153
|
+
large: "w-12 !h-12 min-w-12 min-h-12"
|
|
2154
2154
|
};
|
|
2155
2155
|
const shapeClasses = {
|
|
2156
2156
|
circular: "rounded-full",
|
|
@@ -7001,7 +7001,7 @@ function Tabs(t0) {
|
|
|
7001
7001
|
} else {
|
|
7002
7002
|
t10 = $[12];
|
|
7003
7003
|
}
|
|
7004
|
-
const t11 = variant === "standard" && "inline-flex h-
|
|
7004
|
+
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";
|
|
7005
7005
|
const t12 = variant === "standard" && defaultBorderMixin;
|
|
7006
7006
|
const t13 = variant === "boxy" && "flex items-center h-full";
|
|
7007
7007
|
const t14 = variant === "pill" && "flex items-center gap-0.5";
|
|
@@ -7075,7 +7075,7 @@ function Tab(t0) {
|
|
|
7075
7075
|
const {
|
|
7076
7076
|
variant
|
|
7077
7077
|
} = useContext(TabsContext);
|
|
7078
|
-
const t1 = variant === "standard" && "rounded-sm px-3 py-1
|
|
7078
|
+
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";
|
|
7079
7079
|
let t2;
|
|
7080
7080
|
if ($[0] !== className || $[1] !== innerClassName || $[2] !== t1 || $[3] !== variant) {
|
|
7081
7081
|
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);
|