strata-ui-react 0.1.12 → 0.1.13
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.cjs +21 -82
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +13477 -41
- package/dist/index.js.map +1 -0
- package/package.json +27 -32
- package/dist/avatar-fallback.cjs +0 -42
- package/dist/avatar-fallback.js +0 -42
- package/dist/avatar-image.cjs +0 -42
- package/dist/avatar-image.js +0 -42
- package/dist/avatar.cjs +0 -47
- package/dist/avatar.js +0 -47
- package/dist/badge.cjs +0 -63
- package/dist/badge.js +0 -63
- package/dist/badge.types.cjs +0 -100
- package/dist/badge.types.js +0 -100
- package/dist/button.cjs +0 -58
- package/dist/button.js +0 -58
- package/dist/button.types.cjs +0 -519
- package/dist/button.types.js +0 -519
- package/dist/checkbox-indicator.cjs +0 -36
- package/dist/checkbox-indicator.js +0 -36
- package/dist/checkbox.cjs +0 -84
- package/dist/checkbox.js +0 -84
- package/dist/cn.cjs +0 -6
- package/dist/cn.js +0 -6
- package/dist/dialog-close.cjs +0 -57
- package/dist/dialog-close.js +0 -57
- package/dist/dialog-description.cjs +0 -46
- package/dist/dialog-description.js +0 -46
- package/dist/dialog-popup.cjs +0 -72
- package/dist/dialog-popup.js +0 -72
- package/dist/dialog-title.cjs +0 -46
- package/dist/dialog-title.js +0 -46
- package/dist/dialog-trigger.cjs +0 -46
- package/dist/dialog-trigger.js +0 -46
- package/dist/dialog.cjs +0 -20
- package/dist/dialog.js +0 -20
- package/dist/field-errors.cjs +0 -63
- package/dist/field-errors.js +0 -63
- package/dist/field-input.cjs +0 -80
- package/dist/field-input.js +0 -80
- package/dist/form-errors.cjs +0 -73
- package/dist/form-errors.js +0 -73
- package/dist/form-submit.cjs +0 -65
- package/dist/form-submit.js +0 -65
- package/dist/form.cjs +0 -19
- package/dist/form.js +0 -19
- package/dist/form.types.cjs +0 -6
- package/dist/form.types.js +0 -3
- package/dist/input.cjs +0 -83
- package/dist/input.js +0 -83
- package/dist/label.cjs +0 -46
- package/dist/label.js +0 -46
- package/dist/profile.cjs +0 -127
- package/dist/profile.js +0 -127
- package/dist/scroll-area.cjs +0 -97
- package/dist/scroll-area.js +0 -97
- package/dist/separator.cjs +0 -45
- package/dist/separator.js +0 -45
- package/dist/slider-handle.cjs +0 -34
- package/dist/slider-handle.js +0 -34
- package/dist/slider-segment.cjs +0 -17
- package/dist/slider-segment.js +0 -17
- package/dist/slider-tick-label.cjs +0 -12
- package/dist/slider-tick-label.js +0 -12
- package/dist/slider-tick.cjs +0 -13
- package/dist/slider-tick.js +0 -13
- package/dist/slider-track.cjs +0 -12
- package/dist/slider-track.js +0 -12
- package/dist/slider.cjs +0 -69
- package/dist/slider.js +0 -69
- package/dist/switch.cjs +0 -71
- package/dist/switch.js +0 -71
- package/dist/tabs-indicator.cjs +0 -57
- package/dist/tabs-indicator.js +0 -57
- package/dist/tabs-list.cjs +0 -57
- package/dist/tabs-list.js +0 -57
- package/dist/tabs-panel.cjs +0 -40
- package/dist/tabs-panel.js +0 -40
- package/dist/tabs-tab.cjs +0 -36
- package/dist/tabs-tab.js +0 -36
- package/dist/tabs.cjs +0 -73
- package/dist/tabs.js +0 -73
- package/dist/tabs.types.cjs +0 -4
- package/dist/tabs.types.js +0 -4
- package/dist/toast-provider.cjs +0 -86
- package/dist/toast-provider.js +0 -86
- package/dist/toast.cjs +0 -40
- package/dist/toast.js +0 -40
- package/dist/tooltip-context.cjs +0 -56
- package/dist/tooltip-context.js +0 -56
- package/dist/tooltip-trigger.cjs +0 -29
- package/dist/tooltip-trigger.js +0 -29
- package/dist/tooltip.cjs +0 -29
- package/dist/tooltip.js +0 -29
package/dist/input.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { cn } from "./cn.js";
|
|
2
|
-
import { Separator } from "./separator.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Input } from "@base-ui/react/input";
|
|
6
|
-
import { createElement } from "react";
|
|
7
|
-
const Input$1 = (t0) => {
|
|
8
|
-
const $ = c(20);
|
|
9
|
-
let className;
|
|
10
|
-
let leadingIcon;
|
|
11
|
-
let props;
|
|
12
|
-
let ref;
|
|
13
|
-
let t1;
|
|
14
|
-
if ($[0] !== t0) {
|
|
15
|
-
({leadingIcon, showSeparator: t1, className, ref, ...props} = t0);
|
|
16
|
-
$[0] = t0;
|
|
17
|
-
$[1] = className;
|
|
18
|
-
$[2] = leadingIcon;
|
|
19
|
-
$[3] = props;
|
|
20
|
-
$[4] = ref;
|
|
21
|
-
$[5] = t1;
|
|
22
|
-
} else {
|
|
23
|
-
className = $[1];
|
|
24
|
-
leadingIcon = $[2];
|
|
25
|
-
props = $[3];
|
|
26
|
-
ref = $[4];
|
|
27
|
-
t1 = $[5];
|
|
28
|
-
}
|
|
29
|
-
const showSeparator = t1 === void 0 ? true : t1;
|
|
30
|
-
const t2 = props.disabled;
|
|
31
|
-
const t3 = props.disabled;
|
|
32
|
-
let t4;
|
|
33
|
-
if ($[6] !== className) {
|
|
34
|
-
t4 = cn("flex items-center gap-xs px-md w-full py-sm group h-xl inset-shadow-2-shadow inset-shadow-sm bg-surface-dim rounded-xl data-[disabled=true]:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:hover:outline-transparent outline-2 outline-transparent hover:not-focus-within:outline-outline focus-within:outline-primary focus-within:caret-primary transition-all", className);
|
|
35
|
-
$[6] = className;
|
|
36
|
-
$[7] = t4;
|
|
37
|
-
} else t4 = $[7];
|
|
38
|
-
let t5;
|
|
39
|
-
if ($[8] !== leadingIcon || $[9] !== showSeparator) {
|
|
40
|
-
t5 = leadingIcon && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
41
|
-
className: cn("flex items-center text-on-surface-variant justify-center [&>svg]:size-s group-focus-within:text-primary transition-all"),
|
|
42
|
-
children: createElement(leadingIcon, { weight: "bold" })
|
|
43
|
-
}), showSeparator && /* @__PURE__ */ jsx(Separator, {
|
|
44
|
-
orientation: "vertical",
|
|
45
|
-
className: "group-focus-within:bg-primary"
|
|
46
|
-
})] });
|
|
47
|
-
$[8] = leadingIcon;
|
|
48
|
-
$[9] = showSeparator;
|
|
49
|
-
$[10] = t5;
|
|
50
|
-
} else t5 = $[10];
|
|
51
|
-
let t6;
|
|
52
|
-
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
53
|
-
t6 = cn("outline-none w-full", "placeholder:opacity-60", "disabled:text-text-neutral-primary-disabled disabled:cursor-not-allowed", "overflow-ellipsis");
|
|
54
|
-
$[11] = t6;
|
|
55
|
-
} else t6 = $[11];
|
|
56
|
-
let t7;
|
|
57
|
-
if ($[12] !== props || $[13] !== ref) {
|
|
58
|
-
t7 = /* @__PURE__ */ jsx(Input, {
|
|
59
|
-
className: t6,
|
|
60
|
-
ref,
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
$[12] = props;
|
|
64
|
-
$[13] = ref;
|
|
65
|
-
$[14] = t7;
|
|
66
|
-
} else t7 = $[14];
|
|
67
|
-
let t8;
|
|
68
|
-
if ($[15] !== props.disabled || $[16] !== t4 || $[17] !== t5 || $[18] !== t7) {
|
|
69
|
-
t8 = /* @__PURE__ */ jsxs("div", {
|
|
70
|
-
"aria-disabled": t2,
|
|
71
|
-
"data-disabled": t3,
|
|
72
|
-
className: t4,
|
|
73
|
-
children: [t5, t7]
|
|
74
|
-
});
|
|
75
|
-
$[15] = props.disabled;
|
|
76
|
-
$[16] = t4;
|
|
77
|
-
$[17] = t5;
|
|
78
|
-
$[18] = t7;
|
|
79
|
-
$[19] = t8;
|
|
80
|
-
} else t8 = $[19];
|
|
81
|
-
return t8;
|
|
82
|
-
};
|
|
83
|
-
export { Input$1 as Input };
|
package/dist/label.cjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const require_cn = require("./cn.cjs");
|
|
2
|
-
let react_compiler_runtime = require("react/compiler-runtime");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
const Label = (t0) => {
|
|
5
|
-
const $ = (0, react_compiler_runtime.c)(12);
|
|
6
|
-
let children;
|
|
7
|
-
let className;
|
|
8
|
-
let props;
|
|
9
|
-
let ref;
|
|
10
|
-
if ($[0] !== t0) {
|
|
11
|
-
({className, children, ref, ...props} = t0);
|
|
12
|
-
$[0] = t0;
|
|
13
|
-
$[1] = children;
|
|
14
|
-
$[2] = className;
|
|
15
|
-
$[3] = props;
|
|
16
|
-
$[4] = ref;
|
|
17
|
-
} else {
|
|
18
|
-
children = $[1];
|
|
19
|
-
className = $[2];
|
|
20
|
-
props = $[3];
|
|
21
|
-
ref = $[4];
|
|
22
|
-
}
|
|
23
|
-
let t1;
|
|
24
|
-
if ($[5] !== className) {
|
|
25
|
-
t1 = require_cn.cn("hover:cursor-pointer", className);
|
|
26
|
-
$[5] = className;
|
|
27
|
-
$[6] = t1;
|
|
28
|
-
} else t1 = $[6];
|
|
29
|
-
let t2;
|
|
30
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
31
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
32
|
-
"data-slot": "label",
|
|
33
|
-
className: t1,
|
|
34
|
-
ref,
|
|
35
|
-
...props,
|
|
36
|
-
children
|
|
37
|
-
});
|
|
38
|
-
$[7] = children;
|
|
39
|
-
$[8] = props;
|
|
40
|
-
$[9] = ref;
|
|
41
|
-
$[10] = t1;
|
|
42
|
-
$[11] = t2;
|
|
43
|
-
} else t2 = $[11];
|
|
44
|
-
return t2;
|
|
45
|
-
};
|
|
46
|
-
exports.Label = Label;
|
package/dist/label.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { cn } from "./cn.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
const Label = (t0) => {
|
|
5
|
-
const $ = c(12);
|
|
6
|
-
let children;
|
|
7
|
-
let className;
|
|
8
|
-
let props;
|
|
9
|
-
let ref;
|
|
10
|
-
if ($[0] !== t0) {
|
|
11
|
-
({className, children, ref, ...props} = t0);
|
|
12
|
-
$[0] = t0;
|
|
13
|
-
$[1] = children;
|
|
14
|
-
$[2] = className;
|
|
15
|
-
$[3] = props;
|
|
16
|
-
$[4] = ref;
|
|
17
|
-
} else {
|
|
18
|
-
children = $[1];
|
|
19
|
-
className = $[2];
|
|
20
|
-
props = $[3];
|
|
21
|
-
ref = $[4];
|
|
22
|
-
}
|
|
23
|
-
let t1;
|
|
24
|
-
if ($[5] !== className) {
|
|
25
|
-
t1 = cn("hover:cursor-pointer", className);
|
|
26
|
-
$[5] = className;
|
|
27
|
-
$[6] = t1;
|
|
28
|
-
} else t1 = $[6];
|
|
29
|
-
let t2;
|
|
30
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
31
|
-
t2 = /* @__PURE__ */ jsx("label", {
|
|
32
|
-
"data-slot": "label",
|
|
33
|
-
className: t1,
|
|
34
|
-
ref,
|
|
35
|
-
...props,
|
|
36
|
-
children
|
|
37
|
-
});
|
|
38
|
-
$[7] = children;
|
|
39
|
-
$[8] = props;
|
|
40
|
-
$[9] = ref;
|
|
41
|
-
$[10] = t1;
|
|
42
|
-
$[11] = t2;
|
|
43
|
-
} else t2 = $[11];
|
|
44
|
-
return t2;
|
|
45
|
-
};
|
|
46
|
-
export { Label };
|
package/dist/profile.cjs
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
const require_cn = require("./cn.cjs");
|
|
2
|
-
const require_avatar = require("./avatar.cjs");
|
|
3
|
-
const require_avatar_image = require("./avatar-image.cjs");
|
|
4
|
-
const require_avatar_fallback = require("./avatar-fallback.cjs");
|
|
5
|
-
let react_compiler_runtime = require("react/compiler-runtime");
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
const Profile = (t0) => {
|
|
8
|
-
const $ = (0, react_compiler_runtime.c)(36);
|
|
9
|
-
let children;
|
|
10
|
-
let className;
|
|
11
|
-
let fallbackText;
|
|
12
|
-
let imageUrl;
|
|
13
|
-
let props;
|
|
14
|
-
let ref;
|
|
15
|
-
let t1;
|
|
16
|
-
let t2;
|
|
17
|
-
let t3;
|
|
18
|
-
if ($[0] !== t0) {
|
|
19
|
-
({className, imageUrl, fallbackText, profileName: t1, profileEmail: t2, compact: t3, children, ref, ...props} = t0);
|
|
20
|
-
$[0] = t0;
|
|
21
|
-
$[1] = children;
|
|
22
|
-
$[2] = className;
|
|
23
|
-
$[3] = fallbackText;
|
|
24
|
-
$[4] = imageUrl;
|
|
25
|
-
$[5] = props;
|
|
26
|
-
$[6] = ref;
|
|
27
|
-
$[7] = t1;
|
|
28
|
-
$[8] = t2;
|
|
29
|
-
$[9] = t3;
|
|
30
|
-
} else {
|
|
31
|
-
children = $[1];
|
|
32
|
-
className = $[2];
|
|
33
|
-
fallbackText = $[3];
|
|
34
|
-
imageUrl = $[4];
|
|
35
|
-
props = $[5];
|
|
36
|
-
ref = $[6];
|
|
37
|
-
t1 = $[7];
|
|
38
|
-
t2 = $[8];
|
|
39
|
-
t3 = $[9];
|
|
40
|
-
}
|
|
41
|
-
const profileName = t1 === void 0 ? "" : t1;
|
|
42
|
-
const profileEmail = t2 === void 0 ? "" : t2;
|
|
43
|
-
const compact = t3 === void 0 ? false : t3;
|
|
44
|
-
let t4;
|
|
45
|
-
if ($[10] !== className) {
|
|
46
|
-
t4 = require_cn.cn("flex items-center gap-xs transition-colors", className);
|
|
47
|
-
$[10] = className;
|
|
48
|
-
$[11] = t4;
|
|
49
|
-
} else t4 = $[11];
|
|
50
|
-
let t5;
|
|
51
|
-
if ($[12] !== imageUrl) {
|
|
52
|
-
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_avatar_image.AvatarImage, { src: imageUrl });
|
|
53
|
-
$[12] = imageUrl;
|
|
54
|
-
$[13] = t5;
|
|
55
|
-
} else t5 = $[13];
|
|
56
|
-
let t6;
|
|
57
|
-
if ($[14] !== fallbackText) {
|
|
58
|
-
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_avatar_fallback.AvatarFallback, { children: fallbackText });
|
|
59
|
-
$[14] = fallbackText;
|
|
60
|
-
$[15] = t6;
|
|
61
|
-
} else t6 = $[15];
|
|
62
|
-
let t7;
|
|
63
|
-
if ($[16] !== children || $[17] !== t5 || $[18] !== t6) {
|
|
64
|
-
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_avatar.Avatar, { children: [
|
|
65
|
-
t5,
|
|
66
|
-
t6,
|
|
67
|
-
children
|
|
68
|
-
] });
|
|
69
|
-
$[16] = children;
|
|
70
|
-
$[17] = t5;
|
|
71
|
-
$[18] = t6;
|
|
72
|
-
$[19] = t7;
|
|
73
|
-
} else t7 = $[19];
|
|
74
|
-
const t8 = compact && "hidden";
|
|
75
|
-
let t9;
|
|
76
|
-
if ($[20] !== t8) {
|
|
77
|
-
t9 = require_cn.cn("flex flex-col justify-start items-start", t8);
|
|
78
|
-
$[20] = t8;
|
|
79
|
-
$[21] = t9;
|
|
80
|
-
} else t9 = $[21];
|
|
81
|
-
let t10;
|
|
82
|
-
if ($[22] !== profileName) {
|
|
83
|
-
t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
84
|
-
className: "text-prose-0",
|
|
85
|
-
children: profileName
|
|
86
|
-
});
|
|
87
|
-
$[22] = profileName;
|
|
88
|
-
$[23] = t10;
|
|
89
|
-
} else t10 = $[23];
|
|
90
|
-
let t11;
|
|
91
|
-
if ($[24] !== profileEmail) {
|
|
92
|
-
t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
93
|
-
className: "text-on-surface-variant text-prose--1",
|
|
94
|
-
children: profileEmail
|
|
95
|
-
});
|
|
96
|
-
$[24] = profileEmail;
|
|
97
|
-
$[25] = t11;
|
|
98
|
-
} else t11 = $[25];
|
|
99
|
-
let t12;
|
|
100
|
-
if ($[26] !== t10 || $[27] !== t11 || $[28] !== t9) {
|
|
101
|
-
t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
102
|
-
className: t9,
|
|
103
|
-
children: [t10, t11]
|
|
104
|
-
});
|
|
105
|
-
$[26] = t10;
|
|
106
|
-
$[27] = t11;
|
|
107
|
-
$[28] = t9;
|
|
108
|
-
$[29] = t12;
|
|
109
|
-
} else t12 = $[29];
|
|
110
|
-
let t13;
|
|
111
|
-
if ($[30] !== props || $[31] !== ref || $[32] !== t12 || $[33] !== t4 || $[34] !== t7) {
|
|
112
|
-
t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
113
|
-
className: t4,
|
|
114
|
-
ref,
|
|
115
|
-
...props,
|
|
116
|
-
children: [t7, t12]
|
|
117
|
-
});
|
|
118
|
-
$[30] = props;
|
|
119
|
-
$[31] = ref;
|
|
120
|
-
$[32] = t12;
|
|
121
|
-
$[33] = t4;
|
|
122
|
-
$[34] = t7;
|
|
123
|
-
$[35] = t13;
|
|
124
|
-
} else t13 = $[35];
|
|
125
|
-
return t13;
|
|
126
|
-
};
|
|
127
|
-
exports.Profile = Profile;
|
package/dist/profile.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { cn } from "./cn.js";
|
|
2
|
-
import { Avatar } from "./avatar.js";
|
|
3
|
-
import { AvatarImage } from "./avatar-image.js";
|
|
4
|
-
import { AvatarFallback } from "./avatar-fallback.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
const Profile = (t0) => {
|
|
8
|
-
const $ = c(36);
|
|
9
|
-
let children;
|
|
10
|
-
let className;
|
|
11
|
-
let fallbackText;
|
|
12
|
-
let imageUrl;
|
|
13
|
-
let props;
|
|
14
|
-
let ref;
|
|
15
|
-
let t1;
|
|
16
|
-
let t2;
|
|
17
|
-
let t3;
|
|
18
|
-
if ($[0] !== t0) {
|
|
19
|
-
({className, imageUrl, fallbackText, profileName: t1, profileEmail: t2, compact: t3, children, ref, ...props} = t0);
|
|
20
|
-
$[0] = t0;
|
|
21
|
-
$[1] = children;
|
|
22
|
-
$[2] = className;
|
|
23
|
-
$[3] = fallbackText;
|
|
24
|
-
$[4] = imageUrl;
|
|
25
|
-
$[5] = props;
|
|
26
|
-
$[6] = ref;
|
|
27
|
-
$[7] = t1;
|
|
28
|
-
$[8] = t2;
|
|
29
|
-
$[9] = t3;
|
|
30
|
-
} else {
|
|
31
|
-
children = $[1];
|
|
32
|
-
className = $[2];
|
|
33
|
-
fallbackText = $[3];
|
|
34
|
-
imageUrl = $[4];
|
|
35
|
-
props = $[5];
|
|
36
|
-
ref = $[6];
|
|
37
|
-
t1 = $[7];
|
|
38
|
-
t2 = $[8];
|
|
39
|
-
t3 = $[9];
|
|
40
|
-
}
|
|
41
|
-
const profileName = t1 === void 0 ? "" : t1;
|
|
42
|
-
const profileEmail = t2 === void 0 ? "" : t2;
|
|
43
|
-
const compact = t3 === void 0 ? false : t3;
|
|
44
|
-
let t4;
|
|
45
|
-
if ($[10] !== className) {
|
|
46
|
-
t4 = cn("flex items-center gap-xs transition-colors", className);
|
|
47
|
-
$[10] = className;
|
|
48
|
-
$[11] = t4;
|
|
49
|
-
} else t4 = $[11];
|
|
50
|
-
let t5;
|
|
51
|
-
if ($[12] !== imageUrl) {
|
|
52
|
-
t5 = /* @__PURE__ */ jsx(AvatarImage, { src: imageUrl });
|
|
53
|
-
$[12] = imageUrl;
|
|
54
|
-
$[13] = t5;
|
|
55
|
-
} else t5 = $[13];
|
|
56
|
-
let t6;
|
|
57
|
-
if ($[14] !== fallbackText) {
|
|
58
|
-
t6 = /* @__PURE__ */ jsx(AvatarFallback, { children: fallbackText });
|
|
59
|
-
$[14] = fallbackText;
|
|
60
|
-
$[15] = t6;
|
|
61
|
-
} else t6 = $[15];
|
|
62
|
-
let t7;
|
|
63
|
-
if ($[16] !== children || $[17] !== t5 || $[18] !== t6) {
|
|
64
|
-
t7 = /* @__PURE__ */ jsxs(Avatar, { children: [
|
|
65
|
-
t5,
|
|
66
|
-
t6,
|
|
67
|
-
children
|
|
68
|
-
] });
|
|
69
|
-
$[16] = children;
|
|
70
|
-
$[17] = t5;
|
|
71
|
-
$[18] = t6;
|
|
72
|
-
$[19] = t7;
|
|
73
|
-
} else t7 = $[19];
|
|
74
|
-
const t8 = compact && "hidden";
|
|
75
|
-
let t9;
|
|
76
|
-
if ($[20] !== t8) {
|
|
77
|
-
t9 = cn("flex flex-col justify-start items-start", t8);
|
|
78
|
-
$[20] = t8;
|
|
79
|
-
$[21] = t9;
|
|
80
|
-
} else t9 = $[21];
|
|
81
|
-
let t10;
|
|
82
|
-
if ($[22] !== profileName) {
|
|
83
|
-
t10 = /* @__PURE__ */ jsx("span", {
|
|
84
|
-
className: "text-prose-0",
|
|
85
|
-
children: profileName
|
|
86
|
-
});
|
|
87
|
-
$[22] = profileName;
|
|
88
|
-
$[23] = t10;
|
|
89
|
-
} else t10 = $[23];
|
|
90
|
-
let t11;
|
|
91
|
-
if ($[24] !== profileEmail) {
|
|
92
|
-
t11 = /* @__PURE__ */ jsx("span", {
|
|
93
|
-
className: "text-on-surface-variant text-prose--1",
|
|
94
|
-
children: profileEmail
|
|
95
|
-
});
|
|
96
|
-
$[24] = profileEmail;
|
|
97
|
-
$[25] = t11;
|
|
98
|
-
} else t11 = $[25];
|
|
99
|
-
let t12;
|
|
100
|
-
if ($[26] !== t10 || $[27] !== t11 || $[28] !== t9) {
|
|
101
|
-
t12 = /* @__PURE__ */ jsxs("div", {
|
|
102
|
-
className: t9,
|
|
103
|
-
children: [t10, t11]
|
|
104
|
-
});
|
|
105
|
-
$[26] = t10;
|
|
106
|
-
$[27] = t11;
|
|
107
|
-
$[28] = t9;
|
|
108
|
-
$[29] = t12;
|
|
109
|
-
} else t12 = $[29];
|
|
110
|
-
let t13;
|
|
111
|
-
if ($[30] !== props || $[31] !== ref || $[32] !== t12 || $[33] !== t4 || $[34] !== t7) {
|
|
112
|
-
t13 = /* @__PURE__ */ jsxs("button", {
|
|
113
|
-
className: t4,
|
|
114
|
-
ref,
|
|
115
|
-
...props,
|
|
116
|
-
children: [t7, t12]
|
|
117
|
-
});
|
|
118
|
-
$[30] = props;
|
|
119
|
-
$[31] = ref;
|
|
120
|
-
$[32] = t12;
|
|
121
|
-
$[33] = t4;
|
|
122
|
-
$[34] = t7;
|
|
123
|
-
$[35] = t13;
|
|
124
|
-
} else t13 = $[35];
|
|
125
|
-
return t13;
|
|
126
|
-
};
|
|
127
|
-
export { Profile };
|
package/dist/scroll-area.cjs
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const require_cn = require("./cn.cjs");
|
|
2
|
-
let react_compiler_runtime = require("react/compiler-runtime");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let __base_ui_react_scroll_area = require("@base-ui/react/scroll-area");
|
|
5
|
-
const ScrollArea = (t0) => {
|
|
6
|
-
const $ = (0, react_compiler_runtime.c)(26);
|
|
7
|
-
let children;
|
|
8
|
-
let className;
|
|
9
|
-
let props;
|
|
10
|
-
let ref;
|
|
11
|
-
let t1;
|
|
12
|
-
if ($[0] !== t0) {
|
|
13
|
-
({orientation: t1, className, children, ref, ...props} = t0);
|
|
14
|
-
$[0] = t0;
|
|
15
|
-
$[1] = children;
|
|
16
|
-
$[2] = className;
|
|
17
|
-
$[3] = props;
|
|
18
|
-
$[4] = ref;
|
|
19
|
-
$[5] = t1;
|
|
20
|
-
} else {
|
|
21
|
-
children = $[1];
|
|
22
|
-
className = $[2];
|
|
23
|
-
props = $[3];
|
|
24
|
-
ref = $[4];
|
|
25
|
-
t1 = $[5];
|
|
26
|
-
}
|
|
27
|
-
const orientation = t1 === void 0 ? "vertical" : t1;
|
|
28
|
-
const t2 = orientation === "horizontal" && "h-full";
|
|
29
|
-
let t3;
|
|
30
|
-
if ($[6] !== className || $[7] !== t2) {
|
|
31
|
-
t3 = require_cn.cn("h-[200px] rounded-lg bg-surface-container", t2, className);
|
|
32
|
-
$[6] = className;
|
|
33
|
-
$[7] = t2;
|
|
34
|
-
$[8] = t3;
|
|
35
|
-
} else t3 = $[8];
|
|
36
|
-
let t4;
|
|
37
|
-
if ($[9] !== children) {
|
|
38
|
-
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__base_ui_react_scroll_area.ScrollArea.Viewport, {
|
|
39
|
-
className: "h-full overscroll-contain flex flex-col gap-xs py-2xs pr-sm pl-sm prose-step-0",
|
|
40
|
-
children
|
|
41
|
-
});
|
|
42
|
-
$[9] = children;
|
|
43
|
-
$[10] = t4;
|
|
44
|
-
} else t4 = $[10];
|
|
45
|
-
const t5 = orientation === "vertical" && "w-2xs mr-2xs my-2xs";
|
|
46
|
-
const t6 = orientation === "horizontal" && "h-2xs flex-col mb-2xs mx-xs";
|
|
47
|
-
let t7;
|
|
48
|
-
if ($[11] !== className || $[12] !== t5 || $[13] !== t6) {
|
|
49
|
-
t7 = require_cn.cn("inset-shadow-1-shadow flex justify-center rounded p-[2px] bg-surface-dim opacity-0 transition-opacity delay-300 data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75 hover:cursor-pointer", t5, t6, className);
|
|
50
|
-
$[11] = className;
|
|
51
|
-
$[12] = t5;
|
|
52
|
-
$[13] = t6;
|
|
53
|
-
$[14] = t7;
|
|
54
|
-
} else t7 = $[14];
|
|
55
|
-
let t8;
|
|
56
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
57
|
-
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__base_ui_react_scroll_area.ScrollArea.Thumb, { className: "w-full h-full rounded-full bg-accent rounded-1" });
|
|
58
|
-
$[15] = t8;
|
|
59
|
-
} else t8 = $[15];
|
|
60
|
-
let t9;
|
|
61
|
-
if ($[16] !== orientation || $[17] !== t7) {
|
|
62
|
-
t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__base_ui_react_scroll_area.ScrollArea.Scrollbar, {
|
|
63
|
-
orientation,
|
|
64
|
-
className: t7,
|
|
65
|
-
children: t8
|
|
66
|
-
});
|
|
67
|
-
$[16] = orientation;
|
|
68
|
-
$[17] = t7;
|
|
69
|
-
$[18] = t9;
|
|
70
|
-
} else t9 = $[18];
|
|
71
|
-
let t10;
|
|
72
|
-
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
-
t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__base_ui_react_scroll_area.ScrollArea.Corner, {});
|
|
74
|
-
$[19] = t10;
|
|
75
|
-
} else t10 = $[19];
|
|
76
|
-
let t11;
|
|
77
|
-
if ($[20] !== props || $[21] !== ref || $[22] !== t3 || $[23] !== t4 || $[24] !== t9) {
|
|
78
|
-
t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__base_ui_react_scroll_area.ScrollArea.Root, {
|
|
79
|
-
className: t3,
|
|
80
|
-
ref,
|
|
81
|
-
...props,
|
|
82
|
-
children: [
|
|
83
|
-
t4,
|
|
84
|
-
t9,
|
|
85
|
-
t10
|
|
86
|
-
]
|
|
87
|
-
});
|
|
88
|
-
$[20] = props;
|
|
89
|
-
$[21] = ref;
|
|
90
|
-
$[22] = t3;
|
|
91
|
-
$[23] = t4;
|
|
92
|
-
$[24] = t9;
|
|
93
|
-
$[25] = t11;
|
|
94
|
-
} else t11 = $[25];
|
|
95
|
-
return t11;
|
|
96
|
-
};
|
|
97
|
-
exports.ScrollArea = ScrollArea;
|
package/dist/scroll-area.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { cn } from "./cn.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
5
|
-
const ScrollArea$1 = (t0) => {
|
|
6
|
-
const $ = c(26);
|
|
7
|
-
let children;
|
|
8
|
-
let className;
|
|
9
|
-
let props;
|
|
10
|
-
let ref;
|
|
11
|
-
let t1;
|
|
12
|
-
if ($[0] !== t0) {
|
|
13
|
-
({orientation: t1, className, children, ref, ...props} = t0);
|
|
14
|
-
$[0] = t0;
|
|
15
|
-
$[1] = children;
|
|
16
|
-
$[2] = className;
|
|
17
|
-
$[3] = props;
|
|
18
|
-
$[4] = ref;
|
|
19
|
-
$[5] = t1;
|
|
20
|
-
} else {
|
|
21
|
-
children = $[1];
|
|
22
|
-
className = $[2];
|
|
23
|
-
props = $[3];
|
|
24
|
-
ref = $[4];
|
|
25
|
-
t1 = $[5];
|
|
26
|
-
}
|
|
27
|
-
const orientation = t1 === void 0 ? "vertical" : t1;
|
|
28
|
-
const t2 = orientation === "horizontal" && "h-full";
|
|
29
|
-
let t3;
|
|
30
|
-
if ($[6] !== className || $[7] !== t2) {
|
|
31
|
-
t3 = cn("h-[200px] rounded-lg bg-surface-container", t2, className);
|
|
32
|
-
$[6] = className;
|
|
33
|
-
$[7] = t2;
|
|
34
|
-
$[8] = t3;
|
|
35
|
-
} else t3 = $[8];
|
|
36
|
-
let t4;
|
|
37
|
-
if ($[9] !== children) {
|
|
38
|
-
t4 = /* @__PURE__ */ jsx(ScrollArea.Viewport, {
|
|
39
|
-
className: "h-full overscroll-contain flex flex-col gap-xs py-2xs pr-sm pl-sm prose-step-0",
|
|
40
|
-
children
|
|
41
|
-
});
|
|
42
|
-
$[9] = children;
|
|
43
|
-
$[10] = t4;
|
|
44
|
-
} else t4 = $[10];
|
|
45
|
-
const t5 = orientation === "vertical" && "w-2xs mr-2xs my-2xs";
|
|
46
|
-
const t6 = orientation === "horizontal" && "h-2xs flex-col mb-2xs mx-xs";
|
|
47
|
-
let t7;
|
|
48
|
-
if ($[11] !== className || $[12] !== t5 || $[13] !== t6) {
|
|
49
|
-
t7 = cn("inset-shadow-1-shadow flex justify-center rounded p-[2px] bg-surface-dim opacity-0 transition-opacity delay-300 data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75 hover:cursor-pointer", t5, t6, className);
|
|
50
|
-
$[11] = className;
|
|
51
|
-
$[12] = t5;
|
|
52
|
-
$[13] = t6;
|
|
53
|
-
$[14] = t7;
|
|
54
|
-
} else t7 = $[14];
|
|
55
|
-
let t8;
|
|
56
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
57
|
-
t8 = /* @__PURE__ */ jsx(ScrollArea.Thumb, { className: "w-full h-full rounded-full bg-accent rounded-1" });
|
|
58
|
-
$[15] = t8;
|
|
59
|
-
} else t8 = $[15];
|
|
60
|
-
let t9;
|
|
61
|
-
if ($[16] !== orientation || $[17] !== t7) {
|
|
62
|
-
t9 = /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
63
|
-
orientation,
|
|
64
|
-
className: t7,
|
|
65
|
-
children: t8
|
|
66
|
-
});
|
|
67
|
-
$[16] = orientation;
|
|
68
|
-
$[17] = t7;
|
|
69
|
-
$[18] = t9;
|
|
70
|
-
} else t9 = $[18];
|
|
71
|
-
let t10;
|
|
72
|
-
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
-
t10 = /* @__PURE__ */ jsx(ScrollArea.Corner, {});
|
|
74
|
-
$[19] = t10;
|
|
75
|
-
} else t10 = $[19];
|
|
76
|
-
let t11;
|
|
77
|
-
if ($[20] !== props || $[21] !== ref || $[22] !== t3 || $[23] !== t4 || $[24] !== t9) {
|
|
78
|
-
t11 = /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
79
|
-
className: t3,
|
|
80
|
-
ref,
|
|
81
|
-
...props,
|
|
82
|
-
children: [
|
|
83
|
-
t4,
|
|
84
|
-
t9,
|
|
85
|
-
t10
|
|
86
|
-
]
|
|
87
|
-
});
|
|
88
|
-
$[20] = props;
|
|
89
|
-
$[21] = ref;
|
|
90
|
-
$[22] = t3;
|
|
91
|
-
$[23] = t4;
|
|
92
|
-
$[24] = t9;
|
|
93
|
-
$[25] = t11;
|
|
94
|
-
} else t11 = $[25];
|
|
95
|
-
return t11;
|
|
96
|
-
};
|
|
97
|
-
export { ScrollArea$1 as ScrollArea };
|
package/dist/separator.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const require_cn = require("./cn.cjs");
|
|
2
|
-
let react_compiler_runtime = require("react/compiler-runtime");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
const Separator = (t0) => {
|
|
5
|
-
const $ = (0, react_compiler_runtime.c)(12);
|
|
6
|
-
let children;
|
|
7
|
-
let className;
|
|
8
|
-
let props;
|
|
9
|
-
let ref;
|
|
10
|
-
if ($[0] !== t0) {
|
|
11
|
-
({className, children, ref, ...props} = t0);
|
|
12
|
-
$[0] = t0;
|
|
13
|
-
$[1] = children;
|
|
14
|
-
$[2] = className;
|
|
15
|
-
$[3] = props;
|
|
16
|
-
$[4] = ref;
|
|
17
|
-
} else {
|
|
18
|
-
children = $[1];
|
|
19
|
-
className = $[2];
|
|
20
|
-
props = $[3];
|
|
21
|
-
ref = $[4];
|
|
22
|
-
}
|
|
23
|
-
let t1;
|
|
24
|
-
if ($[5] !== className) {
|
|
25
|
-
t1 = require_cn.cn("", className);
|
|
26
|
-
$[5] = className;
|
|
27
|
-
$[6] = t1;
|
|
28
|
-
} else t1 = $[6];
|
|
29
|
-
let t2;
|
|
30
|
-
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
31
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
32
|
-
className: t1,
|
|
33
|
-
ref,
|
|
34
|
-
...props,
|
|
35
|
-
children
|
|
36
|
-
});
|
|
37
|
-
$[7] = children;
|
|
38
|
-
$[8] = props;
|
|
39
|
-
$[9] = ref;
|
|
40
|
-
$[10] = t1;
|
|
41
|
-
$[11] = t2;
|
|
42
|
-
} else t2 = $[11];
|
|
43
|
-
return t2;
|
|
44
|
-
};
|
|
45
|
-
exports.Separator = Separator;
|