@gusarov-studio/rubik-ui 2.0.1 → 2.1.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/README.md +8 -1
- package/dist/Tabs/Tabs.d.ts +5 -0
- package/dist/Tabs/TabsContent.d.ts +4 -0
- package/dist/Tabs/TabsContext.d.ts +6 -0
- package/dist/Tabs/TabsList.d.ts +10 -0
- package/dist/Tabs/TabsTrigger.d.ts +13 -0
- package/dist/Tabs/constants/scrollDirections.d.ts +5 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/types.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/dist/utils/cn.spec.d.ts +1 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# rubik-ui
|
|
2
2
|
|
|
3
|
+
https://rubikui.web.app/
|
|
3
4
|
|
|
4
5
|
## Getting started
|
|
5
6
|
|
|
@@ -11,7 +12,7 @@ Install project dependencies
|
|
|
11
12
|
npm install
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
Run local development
|
|
15
|
+
Run local development
|
|
15
16
|
|
|
16
17
|
```shell
|
|
17
18
|
npm run storybook
|
|
@@ -22,3 +23,9 @@ To build library for publishing on npm
|
|
|
22
23
|
```shell
|
|
23
24
|
npm run build
|
|
24
25
|
```
|
|
26
|
+
|
|
27
|
+
To run tests
|
|
28
|
+
|
|
29
|
+
```shell
|
|
30
|
+
npm test
|
|
31
|
+
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
import "./Tabs.scss";
|
|
4
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { Tabs };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { TabsContent };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface TabsContextValue {
|
|
2
|
+
activeTab: string | undefined;
|
|
3
|
+
}
|
|
4
|
+
declare const TabsContext: import("react").Context<TabsContextValue | undefined>;
|
|
5
|
+
declare const useTabsContext: () => TabsContextValue;
|
|
6
|
+
export { TabsContext, type TabsContextValue, useTabsContext };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
4
|
+
variant?: "underline" | "underline-filled";
|
|
5
|
+
size?: "32" | "36" | "40";
|
|
6
|
+
stretch?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { TabsList, type TabsListProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
interface TabState {
|
|
4
|
+
hover: boolean;
|
|
5
|
+
active: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface TabsTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, "prefix"> {
|
|
9
|
+
prefix?: (status: TabState) => React.ReactNode;
|
|
10
|
+
suffix?: (status: TabState) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export { TabsTrigger, type TabsTriggerProps, type TabState };
|
package/dist/index.d.ts
CHANGED