@gusarov-studio/rubik-ui 22.0.0 → 24.0.0
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/Badge/Badge.d.ts +1 -1
- package/dist/Tabs/TabsContent.d.ts +4 -3
- package/dist/Tabs/TabsList.d.ts +5 -4
- package/dist/Tabs/TabsRoot.d.ts +6 -0
- package/dist/Tabs/TabsTrigger.d.ts +2 -2
- package/dist/Tabs/constants/index.d.ts +2 -0
- package/dist/Tabs/hooks/index.d.ts +2 -0
- package/dist/Tabs/hooks/useFocusScrolling.d.ts +9 -0
- package/dist/Tabs/index.d.ts +11 -5
- package/dist/Tabs/utils/index.d.ts +2 -0
- package/dist/Tabs/utils/sizeMapper.d.ts +13 -0
- package/dist/TreeView/TreeViewItem.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Tabs/Tabs.d.ts +0 -5
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { Content } from "@radix-ui/react-tabs";
|
|
3
|
+
type TabsContentProps = React.ComponentPropsWithoutRef<typeof Content>;
|
|
4
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { TabsContent, type TabsContentProps };
|
package/dist/Tabs/TabsList.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { List } from "@radix-ui/react-tabs";
|
|
3
|
+
type TabsSize = 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56;
|
|
4
|
+
interface TabsListProps extends React.ComponentPropsWithoutRef<typeof List> {
|
|
5
|
+
appearance?: "underline" | "underline-filled";
|
|
6
|
+
size?: TabsSize | `${TabsSize}`;
|
|
6
7
|
stretch?: boolean;
|
|
7
8
|
paddingLeft?: number;
|
|
8
9
|
paddingRight?: number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Root } from "@radix-ui/react-tabs";
|
|
3
|
+
import "./Tabs.scss";
|
|
4
|
+
type TabsRootProps = React.ComponentPropsWithoutRef<typeof Root>;
|
|
5
|
+
declare const TabsRoot: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { TabsRoot, type TabsRootProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { Trigger } from "@radix-ui/react-tabs";
|
|
3
3
|
interface TabState {
|
|
4
4
|
hover: boolean;
|
|
5
5
|
active: boolean;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
}
|
|
8
|
-
interface TabsTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
8
|
+
interface TabsTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Trigger>, "prefix"> {
|
|
9
9
|
prefix?: (status: TabState) => React.ReactNode;
|
|
10
10
|
suffix?: (status: TabState) => React.ReactNode;
|
|
11
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
interface UseFocusScrollingParams {
|
|
3
|
+
tabsListRef: RefObject<HTMLDivElement>;
|
|
4
|
+
sizeNum: number;
|
|
5
|
+
paddingLeft: number;
|
|
6
|
+
paddingRight: number;
|
|
7
|
+
}
|
|
8
|
+
declare const useFocusScrolling: ({ tabsListRef, sizeNum, paddingLeft, paddingRight, }: UseFocusScrollingParams) => boolean[];
|
|
9
|
+
export { useFocusScrolling };
|
package/dist/Tabs/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type TabsRootProps } from "./TabsRoot";
|
|
2
|
+
import { type TabsListProps } from "./TabsList";
|
|
3
|
+
import { type TabsTriggerProps, type TabState } from "./TabsTrigger";
|
|
4
|
+
import { type TabsContentProps } from "./TabsContent";
|
|
5
|
+
declare const Tabs: {
|
|
6
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
List: import("react").ForwardRefExoticComponent<TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Trigger: import("react").ForwardRefExoticComponent<TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
};
|
|
11
|
+
export { Tabs, type TabsRootProps, type TabsListProps, type TabsTriggerProps, type TabState, type TabsContentProps, };
|
|
@@ -15,7 +15,6 @@ interface TreeViewItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "
|
|
|
15
15
|
withBorder?: boolean;
|
|
16
16
|
isDropTarget?: boolean;
|
|
17
17
|
active?: boolean;
|
|
18
|
-
asChild?: boolean;
|
|
19
18
|
children: React.ReactNode;
|
|
20
19
|
}
|
|
21
20
|
declare const MemorizedTreeViewItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<TreeViewItemProps & React.RefAttributes<HTMLDivElement>>>;
|