@ucdjs-internal/shared-ui 0.1.7 → 0.2.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/dist/components/shiki-code.d.mts +2 -2
- package/dist/components/theme-toggle.d.mts +3 -3
- package/dist/components/ucd-logo.d.mts +2 -2
- package/dist/components.d.mts +30 -0
- package/dist/components.mjs +30 -0
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/ui/alert-dialog.d.mts +17 -17
- package/dist/ui/alert-dialog.mjs +11 -11
- package/dist/ui/avatar.d.mts +11 -11
- package/dist/ui/avatar.mjs +6 -6
- package/dist/ui/badge.d.mts +4 -4
- package/dist/ui/breadcrumb.d.mts +7 -7
- package/dist/ui/button.d.mts +7 -7
- package/dist/ui/button.mjs +4 -4
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/checkbox.d.mts +5 -5
- package/dist/ui/checkbox.mjs +5 -5
- package/dist/ui/collapsible.d.mts +7 -7
- package/dist/ui/collapsible.mjs +6 -6
- package/dist/ui/combobox.d.mts +20 -20
- package/dist/ui/combobox.mjs +21 -21
- package/dist/ui/command.d.mts +17 -17
- package/dist/ui/command.mjs +14 -14
- package/dist/ui/context-menu.d.mts +24 -24
- package/dist/ui/context-menu.mjs +19 -19
- package/dist/ui/dialog.d.mts +15 -15
- package/dist/ui/dialog.mjs +13 -13
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/field.d.mts +13 -13
- package/dist/ui/input-group.d.mts +10 -10
- package/dist/ui/input.d.mts +2 -2
- package/dist/ui/input.mjs +4 -4
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/scroll-area.d.mts +6 -6
- package/dist/ui/scroll-area.mjs +8 -8
- package/dist/ui/select.d.mts +14 -14
- package/dist/ui/select.mjs +17 -17
- package/dist/ui/separator.d.mts +5 -5
- package/dist/ui/separator.mjs +4 -4
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sidebar.d.mts +22 -22
- package/dist/ui/sidebar.mjs +1 -1
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/table.d.mts +9 -9
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/tooltip.d.mts +8 -8
- package/dist/ui/tooltip.mjs +9 -9
- package/package.json +9 -31
- package/dist/components/index.d.mts +0 -4
- package/dist/components/index.mjs +0 -4
package/dist/ui/tooltip.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { Tooltip
|
|
4
|
+
import { Tooltip } from "@base-ui/react/tooltip";
|
|
5
5
|
//#region src/ui/tooltip.tsx
|
|
6
6
|
function TooltipProvider(t0) {
|
|
7
7
|
const $ = c(6);
|
|
@@ -19,7 +19,7 @@ function TooltipProvider(t0) {
|
|
|
19
19
|
const delay = t1 === void 0 ? 0 : t1;
|
|
20
20
|
let t2;
|
|
21
21
|
if ($[3] !== delay || $[4] !== props) {
|
|
22
|
-
t2 = /* @__PURE__ */ jsx(Tooltip
|
|
22
|
+
t2 = /* @__PURE__ */ jsx(Tooltip.Provider, {
|
|
23
23
|
"data-slot": "tooltip-provider",
|
|
24
24
|
delay,
|
|
25
25
|
...props
|
|
@@ -30,7 +30,7 @@ function TooltipProvider(t0) {
|
|
|
30
30
|
} else t2 = $[5];
|
|
31
31
|
return t2;
|
|
32
32
|
}
|
|
33
|
-
function Tooltip(t0) {
|
|
33
|
+
function Tooltip$1(t0) {
|
|
34
34
|
const $ = c(4);
|
|
35
35
|
let props;
|
|
36
36
|
if ($[0] !== t0) {
|
|
@@ -40,7 +40,7 @@ function Tooltip(t0) {
|
|
|
40
40
|
} else props = $[1];
|
|
41
41
|
let t1;
|
|
42
42
|
if ($[2] !== props) {
|
|
43
|
-
t1 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(Tooltip
|
|
43
|
+
t1 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(Tooltip.Root, {
|
|
44
44
|
"data-slot": "tooltip",
|
|
45
45
|
...props
|
|
46
46
|
}) });
|
|
@@ -59,7 +59,7 @@ function TooltipTrigger(t0) {
|
|
|
59
59
|
} else props = $[1];
|
|
60
60
|
let t1;
|
|
61
61
|
if ($[2] !== props) {
|
|
62
|
-
t1 = /* @__PURE__ */ jsx(Tooltip
|
|
62
|
+
t1 = /* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
63
63
|
"data-slot": "tooltip-trigger",
|
|
64
64
|
...props
|
|
65
65
|
});
|
|
@@ -108,12 +108,12 @@ function TooltipContent(t0) {
|
|
|
108
108
|
} else t5 = $[9];
|
|
109
109
|
let t6;
|
|
110
110
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
111
|
-
t6 = /* @__PURE__ */ jsx(Tooltip
|
|
111
|
+
t6 = /* @__PURE__ */ jsx(Tooltip.Arrow, { className: "size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" });
|
|
112
112
|
$[10] = t6;
|
|
113
113
|
} else t6 = $[10];
|
|
114
114
|
let t7;
|
|
115
115
|
if ($[11] !== children || $[12] !== props || $[13] !== t5) {
|
|
116
|
-
t7 = /* @__PURE__ */ jsxs(Tooltip
|
|
116
|
+
t7 = /* @__PURE__ */ jsxs(Tooltip.Popup, {
|
|
117
117
|
"data-slot": "tooltip-content",
|
|
118
118
|
className: t5,
|
|
119
119
|
...props,
|
|
@@ -126,7 +126,7 @@ function TooltipContent(t0) {
|
|
|
126
126
|
} else t7 = $[14];
|
|
127
127
|
let t8;
|
|
128
128
|
if ($[15] !== align || $[16] !== alignOffset || $[17] !== side || $[18] !== sideOffset || $[19] !== t7) {
|
|
129
|
-
t8 = /* @__PURE__ */ jsx(Tooltip
|
|
129
|
+
t8 = /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
130
130
|
align,
|
|
131
131
|
alignOffset,
|
|
132
132
|
side,
|
|
@@ -144,4 +144,4 @@ function TooltipContent(t0) {
|
|
|
144
144
|
return t8;
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
147
|
-
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
147
|
+
export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucdjs-internal/shared-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lucas Nørgård",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/ucdjs/ucd/issues"
|
|
19
19
|
},
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"*.css",
|
|
22
|
+
"dist/styles/**"
|
|
23
|
+
],
|
|
20
24
|
"imports": {
|
|
21
25
|
"#components/*": "./src/components/*.tsx",
|
|
22
26
|
"#ui/*": "./src/ui/*.tsx",
|
|
@@ -25,36 +29,10 @@
|
|
|
25
29
|
},
|
|
26
30
|
"exports": {
|
|
27
31
|
".": "./dist/index.mjs",
|
|
28
|
-
"./components": "./dist/components
|
|
32
|
+
"./components": "./dist/components.mjs",
|
|
29
33
|
"./hooks": "./dist/hooks/index.mjs",
|
|
30
34
|
"./lib/theme-script": "./dist/lib/theme-script.mjs",
|
|
31
35
|
"./lib/utils": "./dist/lib/utils.mjs",
|
|
32
|
-
"./ui/alert-dialog": "./dist/ui/alert-dialog.mjs",
|
|
33
|
-
"./ui/avatar": "./dist/ui/avatar.mjs",
|
|
34
|
-
"./ui/badge": "./dist/ui/badge.mjs",
|
|
35
|
-
"./ui/breadcrumb": "./dist/ui/breadcrumb.mjs",
|
|
36
|
-
"./ui/button": "./dist/ui/button.mjs",
|
|
37
|
-
"./ui/card": "./dist/ui/card.mjs",
|
|
38
|
-
"./ui/checkbox": "./dist/ui/checkbox.mjs",
|
|
39
|
-
"./ui/collapsible": "./dist/ui/collapsible.mjs",
|
|
40
|
-
"./ui/combobox": "./dist/ui/combobox.mjs",
|
|
41
|
-
"./ui/command": "./dist/ui/command.mjs",
|
|
42
|
-
"./ui/context-menu": "./dist/ui/context-menu.mjs",
|
|
43
|
-
"./ui/dialog": "./dist/ui/dialog.mjs",
|
|
44
|
-
"./ui/dropdown-menu": "./dist/ui/dropdown-menu.mjs",
|
|
45
|
-
"./ui/field": "./dist/ui/field.mjs",
|
|
46
|
-
"./ui/input": "./dist/ui/input.mjs",
|
|
47
|
-
"./ui/input-group": "./dist/ui/input-group.mjs",
|
|
48
|
-
"./ui/label": "./dist/ui/label.mjs",
|
|
49
|
-
"./ui/scroll-area": "./dist/ui/scroll-area.mjs",
|
|
50
|
-
"./ui/select": "./dist/ui/select.mjs",
|
|
51
|
-
"./ui/separator": "./dist/ui/separator.mjs",
|
|
52
|
-
"./ui/sheet": "./dist/ui/sheet.mjs",
|
|
53
|
-
"./ui/sidebar": "./dist/ui/sidebar.mjs",
|
|
54
|
-
"./ui/skeleton": "./dist/ui/skeleton.mjs",
|
|
55
|
-
"./ui/table": "./dist/ui/table.mjs",
|
|
56
|
-
"./ui/textarea": "./dist/ui/textarea.mjs",
|
|
57
|
-
"./ui/tooltip": "./dist/ui/tooltip.mjs",
|
|
58
36
|
"./styles.css": "./dist/styles/globals.css",
|
|
59
37
|
"./package.json": "./package.json"
|
|
60
38
|
},
|
|
@@ -72,7 +50,7 @@
|
|
|
72
50
|
"@fontsource-variable/inter": "5.2.8",
|
|
73
51
|
"class-variance-authority": "0.7.1",
|
|
74
52
|
"clsx": "2.1.1",
|
|
75
|
-
"lucide-react": "1.
|
|
53
|
+
"lucide-react": "1.7.0",
|
|
76
54
|
"react": "19.2.4",
|
|
77
55
|
"react-dom": "19.2.4",
|
|
78
56
|
"shiki": "4.0.2",
|
|
@@ -83,7 +61,7 @@
|
|
|
83
61
|
},
|
|
84
62
|
"devDependencies": {
|
|
85
63
|
"@eslint-react/eslint-plugin": "3.0.0",
|
|
86
|
-
"@luxass/eslint-config": "7.4.
|
|
64
|
+
"@luxass/eslint-config": "7.4.2",
|
|
87
65
|
"@rollup/plugin-babel": "7.0.0",
|
|
88
66
|
"@types/react": "19.2.14",
|
|
89
67
|
"@types/react-dom": "19.2.3",
|
|
@@ -93,7 +71,7 @@
|
|
|
93
71
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
94
72
|
"eslint-plugin-react-refresh": "0.5.2",
|
|
95
73
|
"publint": "0.3.18",
|
|
96
|
-
"tsdown": "0.21.
|
|
74
|
+
"tsdown": "0.21.7",
|
|
97
75
|
"typescript": "6.0.2",
|
|
98
76
|
"@ucdjs-tooling/tsconfig": "1.0.0",
|
|
99
77
|
"@ucdjs-tooling/tsdown-config": "1.0.0"
|