@turingpaper/ui 0.0.1-test.8 → 0.0.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/badge.mjs +7 -7
- package/dist/button.mjs +7 -7
- package/dist/checkbox.mjs +4 -4
- package/dist/components/mermaid-diagram.d.ts +8 -0
- package/dist/dialog.mjs +36 -36
- package/dist/map.mjs +2 -2
- package/dist/mermaid-diagram.mjs +144 -0
- package/dist/provider.mjs +24 -11
- package/dist/radio-group.mjs +6 -6
- package/dist/select.mjs +16 -16
- package/dist/sheet.mjs +14 -14
- package/dist/slider.mjs +7 -7
- package/dist/styles.css +1 -1
- package/dist/switch.mjs +4 -4
- package/dist/tabs.mjs +22 -22
- package/dist/toggle.mjs +9 -9
- package/package.json +7 -1
package/dist/switch.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { Switch as e } from "radix-ui";
|
|
4
4
|
import { cn as t } from "./utils.mjs";
|
|
5
|
-
const n = s.forwardRef(({ className: o, ...
|
|
5
|
+
const n = s.forwardRef(({ className: o, ...a }, i) => /* @__PURE__ */ r(
|
|
6
6
|
e.Root,
|
|
7
7
|
{
|
|
8
8
|
className: t(
|
|
9
|
-
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring
|
|
9
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
10
10
|
o
|
|
11
11
|
),
|
|
12
|
-
...
|
|
13
|
-
ref:
|
|
12
|
+
...a,
|
|
13
|
+
ref: i,
|
|
14
14
|
children: /* @__PURE__ */ r(
|
|
15
15
|
e.Thumb,
|
|
16
16
|
{
|
package/dist/tabs.mjs
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Tabs as e } from "radix-ui";
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
4
|
+
import { cn as r } from "./utils.mjs";
|
|
5
|
+
const b = e.Root, n = o.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ a(
|
|
6
6
|
e.List,
|
|
7
7
|
{
|
|
8
8
|
ref: t,
|
|
9
|
-
className:
|
|
9
|
+
className: r(
|
|
10
10
|
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
11
|
-
|
|
11
|
+
i
|
|
12
12
|
),
|
|
13
|
-
...
|
|
13
|
+
...s
|
|
14
14
|
}
|
|
15
15
|
));
|
|
16
|
-
|
|
17
|
-
const
|
|
16
|
+
n.displayName = e.List.displayName;
|
|
17
|
+
const d = o.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ a(
|
|
18
18
|
e.Trigger,
|
|
19
19
|
{
|
|
20
20
|
ref: t,
|
|
21
|
-
className:
|
|
22
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium
|
|
23
|
-
|
|
21
|
+
className: r(
|
|
22
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
|
|
23
|
+
i
|
|
24
24
|
),
|
|
25
|
-
...
|
|
25
|
+
...s
|
|
26
26
|
}
|
|
27
27
|
));
|
|
28
|
-
|
|
29
|
-
const
|
|
28
|
+
d.displayName = e.Trigger.displayName;
|
|
29
|
+
const m = o.forwardRef(({ className: i, ...s }, t) => /* @__PURE__ */ a(
|
|
30
30
|
e.Content,
|
|
31
31
|
{
|
|
32
32
|
ref: t,
|
|
33
|
-
className:
|
|
34
|
-
"mt-2
|
|
35
|
-
|
|
33
|
+
className: r(
|
|
34
|
+
"mt-2 focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50",
|
|
35
|
+
i
|
|
36
36
|
),
|
|
37
|
-
...
|
|
37
|
+
...s
|
|
38
38
|
}
|
|
39
39
|
));
|
|
40
|
-
|
|
40
|
+
m.displayName = e.Content.displayName;
|
|
41
41
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
b as Tabs,
|
|
43
|
+
m as TabsContent,
|
|
44
|
+
n as TabsList,
|
|
45
|
+
d as TabsTrigger
|
|
46
46
|
};
|
package/dist/toggle.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { Toggle as e } from "radix-ui";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
7
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium
|
|
4
|
+
import { cva as d } from "class-variance-authority";
|
|
5
|
+
import { cn as g } from "./utils.mjs";
|
|
6
|
+
const l = d(
|
|
7
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -22,16 +22,16 @@ const f = g(
|
|
|
22
22
|
size: "default"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), m = s.forwardRef(({ className: t, variant: o, size: n, ...r }, i) => /* @__PURE__ */ a(
|
|
26
26
|
e.Root,
|
|
27
27
|
{
|
|
28
28
|
ref: i,
|
|
29
|
-
className:
|
|
29
|
+
className: g(l({ variant: o, size: n, className: t })),
|
|
30
30
|
...r
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
|
|
33
|
+
m.displayName = e.Root.displayName;
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
m as Toggle,
|
|
36
|
+
l as toggleVariants
|
|
37
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turingpaper/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pre-built Shadcn/ui component library for Turingpaper TSX functions",
|
|
6
6
|
"license": "MIT",
|
|
@@ -161,6 +161,10 @@
|
|
|
161
161
|
"./map": {
|
|
162
162
|
"import": "./dist/map.mjs",
|
|
163
163
|
"types": "./dist/components/map.d.ts"
|
|
164
|
+
},
|
|
165
|
+
"./mermaid-diagram": {
|
|
166
|
+
"import": "./dist/mermaid-diagram.mjs",
|
|
167
|
+
"types": "./dist/components/mermaid-diagram.d.ts"
|
|
164
168
|
}
|
|
165
169
|
},
|
|
166
170
|
"files": [
|
|
@@ -181,7 +185,9 @@
|
|
|
181
185
|
"cmdk": "^1.1.1",
|
|
182
186
|
"input-otp": "^1.4.2",
|
|
183
187
|
"lucide-react": "^0.562.0",
|
|
188
|
+
"beautiful-mermaid": "^1.1.3",
|
|
184
189
|
"maplibre-gl": "^5.21.1",
|
|
190
|
+
"react-zoom-pan-pinch": "^3.7.0",
|
|
185
191
|
"radix-ui": "^1.4.3",
|
|
186
192
|
"recharts": "^3.8.0",
|
|
187
193
|
"tailwind-merge": "^3.4.0",
|