@konstructio/ui 0.1.0-alpha.11 → 0.1.0-alpha.12
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/components/Tabs/Tabs.js +9 -9
- package/dist/components/Tabs/components/Content.js +3 -3
- package/dist/components/Tabs/components/List.js +4 -4
- package/dist/components/Tabs/components/Trigger.js +10 -10
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { R as s } from "../../index-CvfCCTEO.js";
|
|
3
|
-
import {
|
|
4
|
-
import f from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { cn as n } from "../../utils/index.js";
|
|
4
|
+
import { rootVariants as f } from "./Tabs.variants.js";
|
|
5
|
+
import { List as p } from "./components/List.js";
|
|
6
|
+
import { Trigger as g } from "./components/Trigger.js";
|
|
7
|
+
import { Content as c } from "./components/Content.js";
|
|
8
8
|
const t = ({ children: o, theme: a, className: m, orientation: r, ...i }) => /* @__PURE__ */ e(
|
|
9
9
|
s,
|
|
10
10
|
{
|
|
@@ -12,13 +12,13 @@ const t = ({ children: o, theme: a, className: m, orientation: r, ...i }) => /*
|
|
|
12
12
|
"data-theme": a,
|
|
13
13
|
"data-orientation": r,
|
|
14
14
|
"aria-orientation": r,
|
|
15
|
-
className:
|
|
15
|
+
className: n(f({ variant: r, className: m })),
|
|
16
16
|
children: o
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
|
-
t.List =
|
|
20
|
-
t.Trigger =
|
|
21
|
-
t.Content =
|
|
19
|
+
t.List = p;
|
|
20
|
+
t.Trigger = g;
|
|
21
|
+
t.Content = c;
|
|
22
22
|
export {
|
|
23
23
|
t as default
|
|
24
24
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { C as m } from "../../../index-CvfCCTEO.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a } from "../../../utils/index.js";
|
|
4
|
+
import { contentVariants as e } from "../Tabs.variants.js";
|
|
5
5
|
const c = ({
|
|
6
6
|
children: t,
|
|
7
7
|
className: o,
|
|
@@ -10,7 +10,7 @@ const c = ({
|
|
|
10
10
|
m,
|
|
11
11
|
{
|
|
12
12
|
...r,
|
|
13
|
-
className: e(
|
|
13
|
+
className: a(e({ variant: "default", className: o })),
|
|
14
14
|
children: t
|
|
15
15
|
}
|
|
16
16
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { L as n } from "../../../index-CvfCCTEO.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as t } from "../../../utils/index.js";
|
|
4
|
+
import { listVariants as a } from "../Tabs.variants.js";
|
|
5
5
|
const p = ({
|
|
6
6
|
children: i,
|
|
7
7
|
className: s,
|
|
8
8
|
orientation: m,
|
|
9
9
|
...o
|
|
10
|
-
}) => /* @__PURE__ */ r("div", { className: a(
|
|
10
|
+
}) => /* @__PURE__ */ r("div", { className: t(a({ variant: "default" })), children: /* @__PURE__ */ r(
|
|
11
11
|
n,
|
|
12
12
|
{
|
|
13
|
-
className: a(
|
|
13
|
+
className: t(a({ variant: m, className: s })),
|
|
14
14
|
...o,
|
|
15
15
|
children: i
|
|
16
16
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { T as e } from "../../../index-CvfCCTEO.js";
|
|
3
|
+
import { Typography as m } from "../../Typography/Typography.js";
|
|
4
4
|
import { cn as n } from "../../../utils/index.js";
|
|
5
5
|
import { triggerVariants as p } from "../Tabs.variants.js";
|
|
6
|
-
const
|
|
6
|
+
const l = ({
|
|
7
7
|
tab: i,
|
|
8
|
-
label:
|
|
8
|
+
label: o,
|
|
9
9
|
isActive: t,
|
|
10
|
-
className:
|
|
11
|
-
}) => /* @__PURE__ */ r(
|
|
12
|
-
|
|
10
|
+
className: a
|
|
11
|
+
}) => /* @__PURE__ */ r(e, { value: i, children: /* @__PURE__ */ r(
|
|
12
|
+
m,
|
|
13
13
|
{
|
|
14
14
|
variant: "body2",
|
|
15
15
|
className: n(
|
|
16
16
|
p({
|
|
17
17
|
variant: t ? "active" : "inactive",
|
|
18
|
-
className:
|
|
18
|
+
className: a
|
|
19
19
|
})
|
|
20
20
|
),
|
|
21
|
-
children:
|
|
21
|
+
children: o
|
|
22
22
|
}
|
|
23
23
|
) });
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
l as Trigger
|
|
26
26
|
};
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.0-alpha.
|
|
5
|
+
"version": "0.1.0-alpha.11",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.0-alpha.
|
|
5
|
+
"version": "0.1.0-alpha.12",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|