@dudousxd/nestjs-catalog-react 0.7.1 → 0.7.2
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/ui/tabs.d.ts +11 -1
- package/dist/ui/tabs.js +2 -2
- package/package.json +1 -1
package/dist/ui/tabs.d.ts
CHANGED
|
@@ -24,11 +24,21 @@ export declare function TabsList({ children, className, ref, }: {
|
|
|
24
24
|
*/
|
|
25
25
|
ref?: Ref<HTMLDivElement>;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare function TabsTab({ value, children, className, }: {
|
|
27
|
+
export declare function TabsTab({ value, children, className, ref, }: {
|
|
28
28
|
value: string;
|
|
29
29
|
children: ReactNode;
|
|
30
30
|
/** For a caller whose strip has its own metrics — the console nav is taller. */
|
|
31
31
|
className?: string;
|
|
32
|
+
/**
|
|
33
|
+
* For a caller that has to bring the selected tab into view.
|
|
34
|
+
*
|
|
35
|
+
* Worth the prop rather than letting the caller render a marker element
|
|
36
|
+
* inside the tab: a zero-size `sr-only` marker is `position: absolute`, which
|
|
37
|
+
* escapes the strip's `overflow-x` clipping and reports the strip's full
|
|
38
|
+
* scroll extent as the DOCUMENT's width. The page then scrolls sideways —
|
|
39
|
+
* which is the bug this scrolling was introduced to fix.
|
|
40
|
+
*/
|
|
41
|
+
ref?: Ref<HTMLButtonElement>;
|
|
32
42
|
}): import("react/jsx-runtime").JSX.Element;
|
|
33
43
|
export declare function TabsPanel({ value, children, className, }: {
|
|
34
44
|
value: string;
|
package/dist/ui/tabs.js
CHANGED
|
@@ -24,8 +24,8 @@ export function Tabs({ value, onValueChange, children, className, }) {
|
|
|
24
24
|
export function TabsList({ children, className, ref, }) {
|
|
25
25
|
return (_jsx(BaseTabs.List, { ref: ref, className: cn('flex gap-1 border-b border-zinc-200 dark:border-zinc-800', className), children: children }));
|
|
26
26
|
}
|
|
27
|
-
export function TabsTab({ value, children, className, }) {
|
|
28
|
-
return (_jsx(BaseTabs.Tab, { value: value, className: cn('flex items-center gap-1.5 border-b-2 px-3 py-2 text-sm transition-colors outline-none', 'border-transparent text-zinc-500', 'hover:text-zinc-950 dark:hover:text-zinc-50', 'focus-visible:ring-2 focus-visible:ring-sky-500/30', 'data-[selected]:border-sky-600 data-[selected]:text-zinc-950', 'dark:data-[selected]:text-zinc-50', className), children: children }));
|
|
27
|
+
export function TabsTab({ value, children, className, ref, }) {
|
|
28
|
+
return (_jsx(BaseTabs.Tab, { ref: ref, value: value, className: cn('flex items-center gap-1.5 border-b-2 px-3 py-2 text-sm transition-colors outline-none', 'border-transparent text-zinc-500', 'hover:text-zinc-950 dark:hover:text-zinc-50', 'focus-visible:ring-2 focus-visible:ring-sky-500/30', 'data-[selected]:border-sky-600 data-[selected]:text-zinc-950', 'dark:data-[selected]:text-zinc-50', className), children: children }));
|
|
29
29
|
}
|
|
30
30
|
export function TabsPanel({ value, children, className, }) {
|
|
31
31
|
// Not `keepMounted`: a panel holding a half-typed connector form should keep
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-catalog-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Ready-made React screens for @dudousxd/nestjs-catalog — a model manager and a generic object explorer you can drop into your own app shell.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Davide Carvalho",
|