@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/ui",
3
3
  "type": "module",
4
- "version": "0.2.4",
4
+ "version": "0.2.5",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -72,7 +72,7 @@
72
72
  "react-use-measure": "^2.1.7",
73
73
  "react-window": "^1.8.11",
74
74
  "tailwind-merge": "^2.6.1",
75
- "@rebasepro/types": "0.2.4"
75
+ "@rebasepro/types": "0.2.5"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": ">=19.0.0",
@@ -32,7 +32,7 @@ const ButtonInner = React.memo(React.forwardRef<
32
32
  }: ButtonProps<React.ElementType>, ref) => {
33
33
 
34
34
  const baseClasses =
35
- "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-1.5 px-3 focus:outline-none transition-all ease-in-out duration-150 gap-1.5 active:scale-[0.98]";
35
+ "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]";
36
36
 
37
37
  const buttonClasses = cls({
38
38
  "w-full": fullWidth,
@@ -68,11 +68,11 @@ const ButtonInner = React.memo(React.forwardRef<
68
68
 
69
69
  const sizeClasses = cls(
70
70
  {
71
- "py-0.5 px-1.5": size === "small",
72
- "py-1.5 px-3": size === "medium",
73
- "py-2 px-4": size === "large",
74
- "py-2.5 px-5": size === "xl",
75
- "py-3 px-6": size === "2xl"
71
+ "py-1 px-2": size === "small",
72
+ "py-2 px-4": size === "medium",
73
+ "py-2.5 px-5": size === "large",
74
+ "py-3 px-6": size === "xl",
75
+ "py-4 px-10": size === "2xl"
76
76
  }
77
77
  );
78
78
 
@@ -19,10 +19,10 @@ const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-
19
19
  const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
20
20
  const colorClasses = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
21
21
  const sizeClasses = {
22
- medium: "w-9 !h-9 min-w-9 min-h-9",
23
- small: "w-7 !h-7 min-w-7 min-h-7",
24
- smallest: "w-5 !h-5 min-w-5 min-h-5",
25
- large: "w-10 !h-10 min-w-10 min-h-10"
22
+ medium: "w-10 !h-10 min-w-10 min-h-10",
23
+ small: "w-8 !h-8 min-w-8 min-h-8",
24
+ smallest: "w-6 !h-6 min-w-6 min-h-6",
25
+ large: "w-12 !h-12 min-w-12 min-h-12"
26
26
  }
27
27
  const shapeClasses = {
28
28
  circular: "rounded-full",
@@ -107,7 +107,7 @@ export function Tabs({
107
107
  msOverflowStyle: "none" }}
108
108
  >
109
109
  <TabsPrimitive.List className={cls(
110
- variant === "standard" && "inline-flex h-10 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",
110
+ 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",
111
111
  variant === "standard" && defaultBorderMixin,
112
112
  variant === "boxy" && "flex items-center h-full",
113
113
  variant === "pill" && "flex items-center gap-0.5",
@@ -161,7 +161,7 @@ export function Tab({
161
161
  "inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-white transition-all",
162
162
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2",
163
163
  "disabled:pointer-events-none disabled:opacity-50",
164
- variant === "standard" && "rounded-sm px-3 py-1.5 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",
164
+ 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",
165
165
  variant === "boxy" && cls(
166
166
  "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",
167
167
  "border-b-2 border-b-transparent",
package/src/index.css CHANGED
@@ -117,7 +117,7 @@
117
117
  }
118
118
 
119
119
  .typography-button {
120
- @apply text-[13px] font-semibold;
120
+ @apply text-sm font-semibold;
121
121
  }
122
122
 
123
123
  :focus-visible {