@yselimcan/ui 0.0.7 → 0.0.9
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/index.js +15277 -100
- package/dist/styles.css +1 -1
- package/package.json +9 -12
- package/dist/index10.js +0 -137
- package/dist/index100.js +0 -7
- package/dist/index101.js +0 -69
- package/dist/index102.js +0 -11
- package/dist/index103.js +0 -16
- package/dist/index104.js +0 -6
- package/dist/index105.js +0 -6
- package/dist/index106.js +0 -8
- package/dist/index107.js +0 -32
- package/dist/index108.js +0 -14
- package/dist/index109.js +0 -69
- package/dist/index11.js +0 -21
- package/dist/index110.js +0 -56
- package/dist/index111.js +0 -15
- package/dist/index112.js +0 -8
- package/dist/index113.js +0 -15
- package/dist/index114.js +0 -15
- package/dist/index115.js +0 -35
- package/dist/index116.js +0 -21
- package/dist/index117.js +0 -43
- package/dist/index118.js +0 -21
- package/dist/index119.js +0 -14
- package/dist/index12.js +0 -20
- package/dist/index120.js +0 -40
- package/dist/index121.js +0 -16
- package/dist/index122.js +0 -11
- package/dist/index123.js +0 -15
- package/dist/index124.js +0 -8
- package/dist/index125.js +0 -90
- package/dist/index126.js +0 -299
- package/dist/index127.js +0 -14
- package/dist/index128.js +0 -128
- package/dist/index129.js +0 -7
- package/dist/index13.js +0 -206
- package/dist/index130.js +0 -266
- package/dist/index131.js +0 -82
- package/dist/index132.js +0 -41
- package/dist/index133.js +0 -23
- package/dist/index134.js +0 -14
- package/dist/index135.js +0 -59
- package/dist/index136.js +0 -14
- package/dist/index137.js +0 -14
- package/dist/index138.js +0 -33
- package/dist/index139.js +0 -21
- package/dist/index14.js +0 -24
- package/dist/index140.js +0 -69
- package/dist/index141.js +0 -107
- package/dist/index142.js +0 -11
- package/dist/index143.js +0 -11
- package/dist/index144.js +0 -25
- package/dist/index145.js +0 -106
- package/dist/index146.js +0 -10
- package/dist/index147.js +0 -35
- package/dist/index148.js +0 -233
- package/dist/index149.js +0 -77
- package/dist/index15.js +0 -19
- package/dist/index150.js +0 -286
- package/dist/index151.js +0 -56
- package/dist/index152.js +0 -48
- package/dist/index153.js +0 -79
- package/dist/index154.js +0 -6
- package/dist/index155.js +0 -17
- package/dist/index156.js +0 -18
- package/dist/index157.js +0 -31
- package/dist/index158.js +0 -10
- package/dist/index159.js +0 -25
- package/dist/index16.js +0 -8
- package/dist/index160.js +0 -27
- package/dist/index161.js +0 -163
- package/dist/index162.js +0 -116
- package/dist/index163.js +0 -67
- package/dist/index164.js +0 -78
- package/dist/index165.js +0 -67
- package/dist/index166.js +0 -72
- package/dist/index167.js +0 -16
- package/dist/index168.js +0 -10
- package/dist/index169.js +0 -8
- package/dist/index17.js +0 -46
- package/dist/index170.js +0 -20
- package/dist/index171.js +0 -24
- package/dist/index172.js +0 -61
- package/dist/index173.js +0 -20
- package/dist/index174.js +0 -30
- package/dist/index175.js +0 -45
- package/dist/index176.js +0 -24
- package/dist/index177.js +0 -51
- package/dist/index178.js +0 -54
- package/dist/index179.js +0 -20
- package/dist/index18.js +0 -41
- package/dist/index180.js +0 -14
- package/dist/index181.js +0 -38
- package/dist/index182.js +0 -18
- package/dist/index183.js +0 -82
- package/dist/index184.js +0 -26
- package/dist/index185.js +0 -6
- package/dist/index186.js +0 -14
- package/dist/index187.js +0 -13
- package/dist/index188.js +0 -43
- package/dist/index189.js +0 -7
- package/dist/index19.js +0 -80
- package/dist/index190.js +0 -12
- package/dist/index191.js +0 -14
- package/dist/index192.js +0 -120
- package/dist/index193.js +0 -14
- package/dist/index194.js +0 -90
- package/dist/index195.js +0 -15
- package/dist/index196.js +0 -65
- package/dist/index197.js +0 -6
- package/dist/index198.js +0 -7
- package/dist/index199.js +0 -14
- package/dist/index20.js +0 -25
- package/dist/index200.js +0 -8
- package/dist/index201.js +0 -24
- package/dist/index202.js +0 -6
- package/dist/index203.js +0 -29
- package/dist/index204.js +0 -130
- package/dist/index205.js +0 -47
- package/dist/index206.js +0 -20
- package/dist/index207.js +0 -7
- package/dist/index208.js +0 -183
- package/dist/index209.js +0 -78
- package/dist/index21.js +0 -40
- package/dist/index210.js +0 -401
- package/dist/index211.js +0 -202
- package/dist/index212.js +0 -50
- package/dist/index213.js +0 -22
- package/dist/index214.js +0 -50
- package/dist/index215.js +0 -9
- package/dist/index216.js +0 -7
- package/dist/index217.js +0 -19
- package/dist/index218.js +0 -17
- package/dist/index219.js +0 -35
- package/dist/index22.js +0 -31
- package/dist/index220.js +0 -6
- package/dist/index221.js +0 -14
- package/dist/index222.js +0 -12
- package/dist/index223.js +0 -41
- package/dist/index224.js +0 -59
- package/dist/index225.js +0 -30
- package/dist/index226.js +0 -10
- package/dist/index227.js +0 -15
- package/dist/index228.js +0 -14
- package/dist/index229.js +0 -14
- package/dist/index23.js +0 -25
- package/dist/index230.js +0 -24
- package/dist/index231.js +0 -14
- package/dist/index232.js +0 -10
- package/dist/index233.js +0 -45
- package/dist/index234.js +0 -599
- package/dist/index235.js +0 -14
- package/dist/index236.js +0 -6
- package/dist/index237.js +0 -211
- package/dist/index238.js +0 -6
- package/dist/index239.js +0 -16
- package/dist/index24.js +0 -56
- package/dist/index240.js +0 -50
- package/dist/index241.js +0 -15
- package/dist/index242.js +0 -60
- package/dist/index243.js +0 -32
- package/dist/index244.js +0 -16
- package/dist/index245.js +0 -11
- package/dist/index246.js +0 -209
- package/dist/index247.js +0 -17
- package/dist/index248.js +0 -324
- package/dist/index249.js +0 -5
- package/dist/index25.js +0 -35
- package/dist/index250.js +0 -5
- package/dist/index251.js +0 -23
- package/dist/index252.js +0 -8
- package/dist/index253.js +0 -489
- package/dist/index254.js +0 -10
- package/dist/index255.js +0 -4
- package/dist/index256.js +0 -46
- package/dist/index257.js +0 -58
- package/dist/index258.js +0 -10
- package/dist/index259.js +0 -4
- package/dist/index26.js +0 -7
- package/dist/index260.js +0 -57
- package/dist/index261.js +0 -58
- package/dist/index262.js +0 -4
- package/dist/index263.js +0 -4
- package/dist/index264.js +0 -4
- package/dist/index265.js +0 -4
- package/dist/index27.js +0 -82
- package/dist/index28.js +0 -32
- package/dist/index29.js +0 -6
- package/dist/index3.js +0 -181
- package/dist/index30.js +0 -9
- package/dist/index31.js +0 -6
- package/dist/index32.js +0 -23
- package/dist/index33.js +0 -207
- package/dist/index34.js +0 -25
- package/dist/index35.js +0 -102
- package/dist/index36.js +0 -69
- package/dist/index37.js +0 -66
- package/dist/index38.js +0 -113
- package/dist/index39.js +0 -53
- package/dist/index4.js +0 -47
- package/dist/index40.js +0 -35
- package/dist/index41.js +0 -28
- package/dist/index42.js +0 -18
- package/dist/index43.js +0 -27
- package/dist/index44.js +0 -25
- package/dist/index45.js +0 -36
- package/dist/index46.js +0 -78
- package/dist/index47.js +0 -65
- package/dist/index48.js +0 -128
- package/dist/index49.js +0 -19
- package/dist/index5.js +0 -52
- package/dist/index50.js +0 -86
- package/dist/index51.js +0 -6
- package/dist/index52.js +0 -268
- package/dist/index53.js +0 -25
- package/dist/index54.js +0 -207
- package/dist/index55.js +0 -146
- package/dist/index56.js +0 -88
- package/dist/index57.js +0 -29
- package/dist/index58.js +0 -30
- package/dist/index59.js +0 -48
- package/dist/index6.js +0 -93
- package/dist/index60.js +0 -79
- package/dist/index61.js +0 -45
- package/dist/index62.js +0 -46
- package/dist/index63.js +0 -76
- package/dist/index64.js +0 -45
- package/dist/index65.js +0 -22
- package/dist/index66.js +0 -101
- package/dist/index67.js +0 -14
- package/dist/index68.js +0 -6
- package/dist/index69.js +0 -321
- package/dist/index7.js +0 -294
- package/dist/index70.js +0 -24
- package/dist/index71.js +0 -143
- package/dist/index72.js +0 -200
- package/dist/index73.js +0 -43
- package/dist/index74.js +0 -29
- package/dist/index75.js +0 -148
- package/dist/index76.js +0 -32
- package/dist/index77.js +0 -53
- package/dist/index78.js +0 -28
- package/dist/index79.js +0 -15
- package/dist/index8.js +0 -264
- package/dist/index80.js +0 -15
- package/dist/index81.js +0 -135
- package/dist/index82.js +0 -31
- package/dist/index83.js +0 -35
- package/dist/index84.js +0 -17
- package/dist/index85.js +0 -2765
- package/dist/index86.js +0 -92
- package/dist/index87.js +0 -57
- package/dist/index88.js +0 -14
- package/dist/index89.js +0 -98
- package/dist/index9.js +0 -197
- package/dist/index90.js +0 -21
- package/dist/index91.js +0 -18
- package/dist/index92.js +0 -35
- package/dist/index93.js +0 -14
- package/dist/index94.js +0 -136
- package/dist/index95.js +0 -30
- package/dist/index96.js +0 -11
- package/dist/index97.js +0 -7
- package/dist/index98.js +0 -15
- package/dist/index99.js +0 -25
package/package.json
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yselimcan/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./styles.css":
|
|
14
|
-
"style": "./dist/styles.css",
|
|
15
|
-
"default": "./dist/styles.css"
|
|
16
|
-
}
|
|
13
|
+
"./styles.css": "./dist/styles.css"
|
|
17
14
|
},
|
|
18
15
|
"files": [
|
|
19
16
|
"dist"
|
|
@@ -31,20 +28,21 @@
|
|
|
31
28
|
"peerDependencies": {
|
|
32
29
|
"react": "^18.0.0 || ^19.0.0",
|
|
33
30
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
34
|
-
"tailwindcss": "^4.0.0"
|
|
31
|
+
"tailwindcss": "^4.0.0",
|
|
32
|
+
"lucide-react": ">=0.460.0"
|
|
35
33
|
},
|
|
36
34
|
"dependencies": {
|
|
37
35
|
"@base-ui/react": "^1.0.0",
|
|
38
|
-
"@fontsource-variable/inter": "^5.2.8",
|
|
39
|
-
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
40
36
|
"class-variance-authority": "^0.7.1",
|
|
41
37
|
"clsx": "^2.1.1",
|
|
42
|
-
"lucide-react": "^0.562.0",
|
|
43
38
|
"tailwind-merge": "^3.4.0",
|
|
44
39
|
"tw-animate-css": "^1.4.0"
|
|
45
40
|
},
|
|
46
41
|
"devDependencies": {
|
|
47
42
|
"@eslint/js": "^9.39.1",
|
|
43
|
+
"@fontsource-variable/inter": "^5.2.8",
|
|
44
|
+
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
45
|
+
"lucide-react": "^0.562.0",
|
|
48
46
|
"@tailwindcss/vite": "^4.1.18",
|
|
49
47
|
"@types/node": "^24.10.1",
|
|
50
48
|
"@types/react": "^19.2.5",
|
|
@@ -56,7 +54,6 @@
|
|
|
56
54
|
"globals": "^16.5.0",
|
|
57
55
|
"react": "^19.2.0",
|
|
58
56
|
"react-dom": "^19.2.0",
|
|
59
|
-
"rollup-preserve-directives": "^1.1.3",
|
|
60
57
|
"tailwindcss": "^4.1.18",
|
|
61
58
|
"typescript": "~5.9.3",
|
|
62
59
|
"typescript-eslint": "^8.46.4",
|
package/dist/index10.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import "react";
|
|
4
|
-
import { cva as i } from "./index25.js";
|
|
5
|
-
import { cn as n } from "./index16.js";
|
|
6
|
-
import { Button as u } from "./index5.js";
|
|
7
|
-
import { Input as d } from "./index11.js";
|
|
8
|
-
import { Textarea as l } from "./index15.js";
|
|
9
|
-
function k({ className: a, ...t }) {
|
|
10
|
-
return /* @__PURE__ */ r(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
"data-slot": "input-group",
|
|
14
|
-
role: "group",
|
|
15
|
-
className: n(
|
|
16
|
-
"border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-input/50 dark:has-disabled:bg-input/80 h-8 rounded-lg border transition-colors has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto",
|
|
17
|
-
a
|
|
18
|
-
),
|
|
19
|
-
...t
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
const p = i(
|
|
24
|
-
"text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none",
|
|
25
|
-
{
|
|
26
|
-
variants: {
|
|
27
|
-
align: {
|
|
28
|
-
"inline-start": "pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem] order-first",
|
|
29
|
-
"inline-end": "pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem] order-last",
|
|
30
|
-
"block-start": "px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start",
|
|
31
|
-
"block-end": "px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
align: "inline-start"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
function z({
|
|
40
|
-
className: a,
|
|
41
|
-
align: t = "inline-start",
|
|
42
|
-
...o
|
|
43
|
-
}) {
|
|
44
|
-
return /* @__PURE__ */ r(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
role: "group",
|
|
48
|
-
"data-slot": "input-group-addon",
|
|
49
|
-
"data-align": t,
|
|
50
|
-
className: n(p({ align: t }), a),
|
|
51
|
-
onClick: (e) => {
|
|
52
|
-
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
53
|
-
},
|
|
54
|
-
...o
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
const c = i(
|
|
59
|
-
"gap-2 text-sm shadow-none flex items-center",
|
|
60
|
-
{
|
|
61
|
-
variants: {
|
|
62
|
-
size: {
|
|
63
|
-
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
|
|
64
|
-
sm: "",
|
|
65
|
-
"icon-xs": "size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
|
66
|
-
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
defaultVariants: {
|
|
70
|
-
size: "xs"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
function w({
|
|
75
|
-
className: a,
|
|
76
|
-
type: t = "button",
|
|
77
|
-
variant: o = "ghost",
|
|
78
|
-
size: e = "xs",
|
|
79
|
-
...s
|
|
80
|
-
}) {
|
|
81
|
-
return /* @__PURE__ */ r(
|
|
82
|
-
u,
|
|
83
|
-
{
|
|
84
|
-
type: t,
|
|
85
|
-
"data-size": e,
|
|
86
|
-
variant: o,
|
|
87
|
-
className: n(c({ size: e }), a),
|
|
88
|
-
...s
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
function y({ className: a, ...t }) {
|
|
93
|
-
return /* @__PURE__ */ r(
|
|
94
|
-
"span",
|
|
95
|
-
{
|
|
96
|
-
className: n(
|
|
97
|
-
"text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
98
|
-
a
|
|
99
|
-
),
|
|
100
|
-
...t
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
function G({
|
|
105
|
-
className: a,
|
|
106
|
-
...t
|
|
107
|
-
}) {
|
|
108
|
-
return /* @__PURE__ */ r(
|
|
109
|
-
d,
|
|
110
|
-
{
|
|
111
|
-
"data-slot": "input-group-control",
|
|
112
|
-
className: n("rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1", a),
|
|
113
|
-
...t
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
function I({
|
|
118
|
-
className: a,
|
|
119
|
-
...t
|
|
120
|
-
}) {
|
|
121
|
-
return /* @__PURE__ */ r(
|
|
122
|
-
l,
|
|
123
|
-
{
|
|
124
|
-
"data-slot": "input-group-control",
|
|
125
|
-
className: n("rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent flex-1 resize-none", a),
|
|
126
|
-
...t
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
export {
|
|
131
|
-
k as InputGroup,
|
|
132
|
-
z as InputGroupAddon,
|
|
133
|
-
w as InputGroupButton,
|
|
134
|
-
G as InputGroupInput,
|
|
135
|
-
y as InputGroupText,
|
|
136
|
-
I as InputGroupTextarea
|
|
137
|
-
};
|
package/dist/index100.js
DELETED
package/dist/index101.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { useRefWithInit as r } from "./index168.js";
|
|
2
|
-
function b(n, e, c, t) {
|
|
3
|
-
const l = r(i).current;
|
|
4
|
-
return s(l, n, e, c, t) && o(l, [n, e, c, t]), l.callback;
|
|
5
|
-
}
|
|
6
|
-
function h(n) {
|
|
7
|
-
const e = r(i).current;
|
|
8
|
-
return f(e, n) && o(e, n), e.callback;
|
|
9
|
-
}
|
|
10
|
-
function i() {
|
|
11
|
-
return {
|
|
12
|
-
callback: null,
|
|
13
|
-
cleanup: null,
|
|
14
|
-
refs: []
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function s(n, e, c, t, l) {
|
|
18
|
-
return n.refs[0] !== e || n.refs[1] !== c || n.refs[2] !== t || n.refs[3] !== l;
|
|
19
|
-
}
|
|
20
|
-
function f(n, e) {
|
|
21
|
-
return n.refs.length !== e.length || n.refs.some((c, t) => c !== e[t]);
|
|
22
|
-
}
|
|
23
|
-
function o(n, e) {
|
|
24
|
-
if (n.refs = e, e.every((c) => c == null)) {
|
|
25
|
-
n.callback = null;
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
n.callback = (c) => {
|
|
29
|
-
if (n.cleanup && (n.cleanup(), n.cleanup = null), c != null) {
|
|
30
|
-
const t = Array(e.length).fill(null);
|
|
31
|
-
for (let l = 0; l < e.length; l += 1) {
|
|
32
|
-
const u = e[l];
|
|
33
|
-
if (u != null)
|
|
34
|
-
switch (typeof u) {
|
|
35
|
-
case "function": {
|
|
36
|
-
const a = u(c);
|
|
37
|
-
typeof a == "function" && (t[l] = a);
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
case "object": {
|
|
41
|
-
u.current = c;
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
n.cleanup = () => {
|
|
47
|
-
for (let l = 0; l < e.length; l += 1) {
|
|
48
|
-
const u = e[l];
|
|
49
|
-
if (u != null)
|
|
50
|
-
switch (typeof u) {
|
|
51
|
-
case "function": {
|
|
52
|
-
const a = t[l];
|
|
53
|
-
typeof a == "function" ? a() : u(null);
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
case "object": {
|
|
57
|
-
u.current = null;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
b as useMergedRefs,
|
|
68
|
-
h as useMergedRefsN
|
|
69
|
-
};
|
package/dist/index102.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as n from "react";
|
|
2
|
-
import { isReactVersionAtLeast as o } from "./index200.js";
|
|
3
|
-
function s(t) {
|
|
4
|
-
if (!/* @__PURE__ */ n.isValidElement(t))
|
|
5
|
-
return null;
|
|
6
|
-
const e = t, r = e.props;
|
|
7
|
-
return (o(19) ? r?.ref : e.ref) ?? null;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
s as getReactElementRef
|
|
11
|
-
};
|
package/dist/index103.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function i(r, n) {
|
|
2
|
-
const o = {};
|
|
3
|
-
for (const t in r) {
|
|
4
|
-
const e = r[t];
|
|
5
|
-
if (n?.hasOwnProperty(t)) {
|
|
6
|
-
const s = n[t](e);
|
|
7
|
-
s != null && Object.assign(o, s);
|
|
8
|
-
continue;
|
|
9
|
-
}
|
|
10
|
-
e === !0 ? o[`data-${t.toLowerCase()}`] = "" : e && (o[`data-${t.toLowerCase()}`] = e.toString());
|
|
11
|
-
}
|
|
12
|
-
return o;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
i as getStateAttributesProps
|
|
16
|
-
};
|
package/dist/index104.js
DELETED
package/dist/index105.js
DELETED
package/dist/index106.js
DELETED
package/dist/index107.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
function d({
|
|
4
|
-
controlled: o,
|
|
5
|
-
default: s,
|
|
6
|
-
name: t,
|
|
7
|
-
state: i = "value"
|
|
8
|
-
}) {
|
|
9
|
-
const {
|
|
10
|
-
current: e
|
|
11
|
-
} = n.useRef(o !== void 0), [l, c] = n.useState(s), u = e ? o : l;
|
|
12
|
-
if (process.env.NODE_ENV !== "production") {
|
|
13
|
-
n.useEffect(() => {
|
|
14
|
-
e !== (o !== void 0) && console.error([`Base UI: A component is changing the ${e ? "" : "un"}controlled ${i} state of ${t} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
15
|
-
`));
|
|
16
|
-
}, [i, t, o]);
|
|
17
|
-
const {
|
|
18
|
-
current: r
|
|
19
|
-
} = n.useRef(s);
|
|
20
|
-
n.useEffect(() => {
|
|
21
|
-
!e && JSON.stringify(r) !== JSON.stringify(s) && console.error([`Base UI: A component is changing the default ${i} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
22
|
-
`));
|
|
23
|
-
}, [JSON.stringify(s)]);
|
|
24
|
-
}
|
|
25
|
-
const f = n.useCallback((r) => {
|
|
26
|
-
e || c(r);
|
|
27
|
-
}, []);
|
|
28
|
-
return [u, f];
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
d as useControlled
|
|
32
|
-
};
|
package/dist/index108.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import n from "./index100.js";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
const o = /* @__PURE__ */ t.createContext(void 0);
|
|
4
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "MenuCheckboxItemContext");
|
|
5
|
-
function s() {
|
|
6
|
-
const e = t.useContext(o);
|
|
7
|
-
if (e === void 0)
|
|
8
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>." : n(30));
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
o as MenuCheckboxItemContext,
|
|
13
|
-
s as useMenuCheckboxItemContext
|
|
14
|
-
};
|
package/dist/index109.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as a from "react";
|
|
3
|
-
import { useMergedRefs as h } from "./index101.js";
|
|
4
|
-
import { useContextMenuRootContext as y } from "./index134.js";
|
|
5
|
-
import { useButton as P } from "./index86.js";
|
|
6
|
-
import { mergeProps as v } from "./index27.js";
|
|
7
|
-
import { itemPress as I } from "./index116.js";
|
|
8
|
-
const A = {
|
|
9
|
-
type: "regular-item"
|
|
10
|
-
};
|
|
11
|
-
function w(M) {
|
|
12
|
-
const {
|
|
13
|
-
closeOnClick: m,
|
|
14
|
-
disabled: R = !1,
|
|
15
|
-
highlighted: f,
|
|
16
|
-
id: l,
|
|
17
|
-
store: n,
|
|
18
|
-
nativeButton: b,
|
|
19
|
-
itemMetadata: o,
|
|
20
|
-
nodeId: r
|
|
21
|
-
} = M, i = a.useRef(null), t = y(!0), u = t !== void 0, {
|
|
22
|
-
events: s
|
|
23
|
-
} = n.useState("floatingTreeRoot"), {
|
|
24
|
-
getButtonProps: p,
|
|
25
|
-
buttonRef: x
|
|
26
|
-
} = P({
|
|
27
|
-
disabled: R,
|
|
28
|
-
focusableWhenDisabled: !0,
|
|
29
|
-
native: b
|
|
30
|
-
}), g = a.useCallback((C) => v({
|
|
31
|
-
id: l,
|
|
32
|
-
role: "menuitem",
|
|
33
|
-
tabIndex: f ? 0 : -1,
|
|
34
|
-
onMouseMove(e) {
|
|
35
|
-
r && s.emit("itemhover", {
|
|
36
|
-
nodeId: r,
|
|
37
|
-
target: e.currentTarget
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
onMouseEnter() {
|
|
41
|
-
o.type === "submenu-trigger" && o.setActive();
|
|
42
|
-
},
|
|
43
|
-
onKeyUp(e) {
|
|
44
|
-
e.key === " " && n.context.typingRef.current && e.preventBaseUIHandler();
|
|
45
|
-
},
|
|
46
|
-
onClick(e) {
|
|
47
|
-
m && s.emit("close", {
|
|
48
|
-
domEvent: e,
|
|
49
|
-
reason: I
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
onMouseUp(e) {
|
|
53
|
-
if (t) {
|
|
54
|
-
const c = t.initialCursorPointRef.current;
|
|
55
|
-
if (t.initialCursorPointRef.current = null, u && c && Math.abs(e.clientX - c.x) <= 1 && Math.abs(e.clientY - c.y) <= 1)
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
i.current && n.context.allowMouseUpTriggerRef.current && (!u || e.button === 2) && o.type === "regular-item" && i.current.click();
|
|
59
|
-
}
|
|
60
|
-
}, C, p), [l, f, p, m, s, n, u, t, o, r]), d = h(i, x);
|
|
61
|
-
return a.useMemo(() => ({
|
|
62
|
-
getItemProps: g,
|
|
63
|
-
itemRef: d
|
|
64
|
-
}), [g, d]);
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
A as REGULAR_ITEM,
|
|
68
|
-
w as useMenuItem
|
|
69
|
-
};
|
package/dist/index11.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { cn as n } from "./index16.js";
|
|
4
|
-
import { Input as d } from "./index67.js";
|
|
5
|
-
function u({ className: i, type: r, ...e }) {
|
|
6
|
-
return /* @__PURE__ */ t(
|
|
7
|
-
d,
|
|
8
|
-
{
|
|
9
|
-
type: r,
|
|
10
|
-
"data-slot": "input",
|
|
11
|
-
className: n(
|
|
12
|
-
"dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
13
|
-
i
|
|
14
|
-
),
|
|
15
|
-
...e
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
u as Input
|
|
21
|
-
};
|
package/dist/index110.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as u from "react";
|
|
3
|
-
import { useIsoLayoutEffect as g } from "./index97.js";
|
|
4
|
-
import { useCompositeListContext as F } from "./index201.js";
|
|
5
|
-
let I = /* @__PURE__ */ (function(t) {
|
|
6
|
-
return t[t.None = 0] = "None", t[t.GuessFromOrder = 1] = "GuessFromOrder", t;
|
|
7
|
-
})({});
|
|
8
|
-
function N(t = {}) {
|
|
9
|
-
const {
|
|
10
|
-
label: c,
|
|
11
|
-
metadata: l,
|
|
12
|
-
textRef: d,
|
|
13
|
-
indexGuessBehavior: L,
|
|
14
|
-
index: r
|
|
15
|
-
} = t, {
|
|
16
|
-
register: m,
|
|
17
|
-
unregister: a,
|
|
18
|
-
subscribeMapChange: x,
|
|
19
|
-
elementsRef: R,
|
|
20
|
-
labelsRef: i,
|
|
21
|
-
nextIndexRef: p
|
|
22
|
-
} = F(), f = u.useRef(-1), [n, C] = u.useState(r ?? (L === I.GuessFromOrder ? () => {
|
|
23
|
-
if (f.current === -1) {
|
|
24
|
-
const e = p.current;
|
|
25
|
-
p.current += 1, f.current = e;
|
|
26
|
-
}
|
|
27
|
-
return f.current;
|
|
28
|
-
} : -1)), s = u.useRef(null), b = u.useCallback((e) => {
|
|
29
|
-
if (s.current = e, n !== -1 && e !== null && (R.current[n] = e, i)) {
|
|
30
|
-
const o = c !== void 0;
|
|
31
|
-
i.current[n] = o ? c : d?.current?.textContent ?? e.textContent;
|
|
32
|
-
}
|
|
33
|
-
}, [n, R, i, c, d]);
|
|
34
|
-
return g(() => {
|
|
35
|
-
if (r != null)
|
|
36
|
-
return;
|
|
37
|
-
const e = s.current;
|
|
38
|
-
if (e)
|
|
39
|
-
return m(e, l), () => {
|
|
40
|
-
a(e);
|
|
41
|
-
};
|
|
42
|
-
}, [r, m, a, l]), g(() => {
|
|
43
|
-
if (r == null)
|
|
44
|
-
return x((e) => {
|
|
45
|
-
const o = s.current ? e.get(s.current)?.index : null;
|
|
46
|
-
o != null && C(o);
|
|
47
|
-
});
|
|
48
|
-
}, [r, x, C]), u.useMemo(() => ({
|
|
49
|
-
ref: b,
|
|
50
|
-
index: n
|
|
51
|
-
}), [n, b]);
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
I as IndexGuessBehavior,
|
|
55
|
-
N as useCompositeListItem
|
|
56
|
-
};
|
package/dist/index111.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import r from "./index100.js";
|
|
3
|
-
import * as t from "react";
|
|
4
|
-
const o = /* @__PURE__ */ t.createContext(void 0);
|
|
5
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "MenuRootContext");
|
|
6
|
-
function i(n) {
|
|
7
|
-
const e = t.useContext(o);
|
|
8
|
-
if (e === void 0 && !n)
|
|
9
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>." : r(36));
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
o as MenuRootContext,
|
|
14
|
-
i as useMenuRootContext
|
|
15
|
-
};
|
package/dist/index112.js
DELETED
package/dist/index113.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { transitionStatusMapping as r } from "./index121.js";
|
|
2
|
-
import { MenuCheckboxItemDataAttributes as t } from "./index202.js";
|
|
3
|
-
const c = {
|
|
4
|
-
checked(e) {
|
|
5
|
-
return e ? {
|
|
6
|
-
[t.checked]: ""
|
|
7
|
-
} : {
|
|
8
|
-
[t.unchecked]: ""
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
...r
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
c as itemMapping
|
|
15
|
-
};
|
package/dist/index114.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import i from "./index100.js";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
const t = /* @__PURE__ */ o.createContext(void 0);
|
|
5
|
-
process.env.NODE_ENV !== "production" && (t.displayName = "MenuPositionerContext");
|
|
6
|
-
function s(n) {
|
|
7
|
-
const e = o.useContext(t);
|
|
8
|
-
if (e === void 0 && !n)
|
|
9
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>." : i(33));
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
t as MenuPositionerContext,
|
|
14
|
-
s as useMenuPositionerContext
|
|
15
|
-
};
|
package/dist/index115.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EMPTY_OBJECT as s } from "./index106.js";
|
|
2
|
-
function u(e, t, n, o) {
|
|
3
|
-
let a = !1, r = !1;
|
|
4
|
-
const l = s;
|
|
5
|
-
return {
|
|
6
|
-
reason: e,
|
|
7
|
-
event: t ?? new Event("base-ui"),
|
|
8
|
-
cancel() {
|
|
9
|
-
a = !0;
|
|
10
|
-
},
|
|
11
|
-
allowPropagation() {
|
|
12
|
-
r = !0;
|
|
13
|
-
},
|
|
14
|
-
get isCanceled() {
|
|
15
|
-
return a;
|
|
16
|
-
},
|
|
17
|
-
get isPropagationAllowed() {
|
|
18
|
-
return r;
|
|
19
|
-
},
|
|
20
|
-
trigger: n,
|
|
21
|
-
...l
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function d(e, t, n) {
|
|
25
|
-
const o = n ?? s;
|
|
26
|
-
return {
|
|
27
|
-
reason: e,
|
|
28
|
-
event: t ?? new Event("base-ui"),
|
|
29
|
-
...o
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
u as createChangeEventDetails,
|
|
34
|
-
d as createGenericEventDetails
|
|
35
|
-
};
|
package/dist/index116.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const e = "none", s = "trigger-press", n = "trigger-hover", t = "trigger-focus", o = "outside-press", c = "item-press", i = "close-press", r = "clear-press", p = "chip-remove-press", g = "input-change", a = "input-clear", l = "focus-out", u = "escape-key", v = "list-navigation", m = "cancel-open", P = "sibling-open", h = "imperative-action", d = "window-resize";
|
|
2
|
-
export {
|
|
3
|
-
m as cancelOpen,
|
|
4
|
-
p as chipRemovePress,
|
|
5
|
-
r as clearPress,
|
|
6
|
-
i as closePress,
|
|
7
|
-
u as escapeKey,
|
|
8
|
-
l as focusOut,
|
|
9
|
-
h as imperativeAction,
|
|
10
|
-
g as inputChange,
|
|
11
|
-
a as inputClear,
|
|
12
|
-
c as itemPress,
|
|
13
|
-
v as listNavigation,
|
|
14
|
-
e as none,
|
|
15
|
-
o as outsidePress,
|
|
16
|
-
P as siblingOpen,
|
|
17
|
-
t as triggerFocus,
|
|
18
|
-
n as triggerHover,
|
|
19
|
-
s as triggerPress,
|
|
20
|
-
d as windowResize
|
|
21
|
-
};
|