@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
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.
|
|
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-
|
|
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-
|
|
72
|
-
"py-
|
|
73
|
-
"py-2 px-
|
|
74
|
-
"py-
|
|
75
|
-
"py-
|
|
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-
|
|
23
|
-
small: "w-
|
|
24
|
-
smallest: "w-
|
|
25
|
-
large: "w-
|
|
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",
|
package/src/components/Tabs.tsx
CHANGED
|
@@ -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-
|
|
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
|
|
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",
|