@deepnoid/ui 0.0.104 → 0.0.106

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.
@@ -20,7 +20,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
20
20
  right: targetRect.right + scrollX,
21
21
  bottom: targetRect.bottom + scrollY
22
22
  };
23
- const { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
23
+ let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
24
+ if (tooltipY < 0) {
25
+ tooltipY = adjustedTargetRect.bottom + offset;
26
+ } else if (tooltipY + height > window.innerHeight) {
27
+ tooltipY = adjustedTargetRect.top - height - offset;
28
+ }
29
+ if (tooltipX < 0) {
30
+ tooltipX = adjustedTargetRect.left;
31
+ } else if (tooltipX + width > window.innerWidth) {
32
+ tooltipX = adjustedTargetRect.right - width;
33
+ }
24
34
  setTooltipPosition({ x: tooltipX, y: tooltipY });
25
35
  }
26
36
  }, [placement, offset, targetRect]);
@@ -157,7 +157,8 @@ var table = tv({
157
157
  "text-white",
158
158
  "transition-opacity",
159
159
  "duration-200",
160
- "ease-in-out"
160
+ "ease-in-out",
161
+ "cursor-default"
161
162
  ]
162
163
  },
163
164
  variants: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useTooltip
4
- } from "./chunk-DSBSLSJW.mjs";
4
+ } from "./chunk-KCBBBRSF.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -4195,7 +4195,8 @@ var table = (0, import_tailwind_variants3.tv)({
4195
4195
  "text-white",
4196
4196
  "transition-opacity",
4197
4197
  "duration-200",
4198
- "ease-in-out"
4198
+ "ease-in-out",
4199
+ "cursor-default"
4199
4200
  ]
4200
4201
  },
4201
4202
  variants: {
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-2UUH2MBF.mjs";
3
3
  import {
4
4
  table_default
5
- } from "../../chunk-R2E7UZZO.mjs";
5
+ } from "../../chunk-QGZEHOKA.mjs";
6
6
  import "../../chunk-VWD26TIQ.mjs";
7
7
  import "../../chunk-PO3ADNA5.mjs";
8
8
  import "../../chunk-QZ3LVYJW.mjs";
@@ -4193,7 +4193,8 @@ var table = (0, import_tailwind_variants3.tv)({
4193
4193
  "text-white",
4194
4194
  "transition-opacity",
4195
4195
  "duration-200",
4196
- "ease-in-out"
4196
+ "ease-in-out",
4197
+ "cursor-default"
4197
4198
  ]
4198
4199
  },
4199
4200
  variants: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  table_default
4
- } from "../../chunk-R2E7UZZO.mjs";
4
+ } from "../../chunk-QGZEHOKA.mjs";
5
5
  import "../../chunk-VWD26TIQ.mjs";
6
6
  import "../../chunk-PO3ADNA5.mjs";
7
7
  import "../../chunk-QZ3LVYJW.mjs";
@@ -17030,7 +17030,8 @@ var table = (0, import_tailwind_variants3.tv)({
17030
17030
  "text-white",
17031
17031
  "transition-opacity",
17032
17032
  "duration-200",
17033
- "ease-in-out"
17033
+ "ease-in-out",
17034
+ "cursor-default"
17034
17035
  ]
17035
17036
  },
17036
17037
  variants: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  table_default
4
- } from "../../chunk-R2E7UZZO.mjs";
4
+ } from "../../chunk-QGZEHOKA.mjs";
5
5
  import "../../chunk-VWD26TIQ.mjs";
6
6
  import "../../chunk-PO3ADNA5.mjs";
7
7
  import "../../chunk-QZ3LVYJW.mjs";
@@ -143,7 +143,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
143
143
  right: targetRect.right + scrollX,
144
144
  bottom: targetRect.bottom + scrollY
145
145
  };
146
- const { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
146
+ let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
147
+ if (tooltipY < 0) {
148
+ tooltipY = adjustedTargetRect.bottom + offset;
149
+ } else if (tooltipY + height > window.innerHeight) {
150
+ tooltipY = adjustedTargetRect.top - height - offset;
151
+ }
152
+ if (tooltipX < 0) {
153
+ tooltipX = adjustedTargetRect.left;
154
+ } else if (tooltipX + width > window.innerWidth) {
155
+ tooltipX = adjustedTargetRect.right - width;
156
+ }
147
157
  setTooltipPosition({ x: tooltipX, y: tooltipY });
148
158
  }
149
159
  }, [placement, offset, targetRect]);
@@ -2,8 +2,8 @@
2
2
  import "../../chunk-HIE2YRGA.mjs";
3
3
  import {
4
4
  tooltip_default
5
- } from "../../chunk-YZTGM3A3.mjs";
6
- import "../../chunk-DSBSLSJW.mjs";
5
+ } from "../../chunk-U74WK5VI.mjs";
6
+ import "../../chunk-KCBBBRSF.mjs";
7
7
  import "../../chunk-ODMRJXLJ.mjs";
8
8
  import "../../chunk-E3G5QXSH.mjs";
9
9
  import "../../chunk-J725QONZ.mjs";
@@ -141,7 +141,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
141
141
  right: targetRect.right + scrollX,
142
142
  bottom: targetRect.bottom + scrollY
143
143
  };
144
- const { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
144
+ let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
145
+ if (tooltipY < 0) {
146
+ tooltipY = adjustedTargetRect.bottom + offset;
147
+ } else if (tooltipY + height > window.innerHeight) {
148
+ tooltipY = adjustedTargetRect.top - height - offset;
149
+ }
150
+ if (tooltipX < 0) {
151
+ tooltipX = adjustedTargetRect.left;
152
+ } else if (tooltipX + width > window.innerWidth) {
153
+ tooltipX = adjustedTargetRect.right - width;
154
+ }
145
155
  setTooltipPosition({ x: tooltipX, y: tooltipY });
146
156
  }
147
157
  }, [placement, offset, targetRect]);
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  tooltip_default
4
- } from "../../chunk-YZTGM3A3.mjs";
5
- import "../../chunk-DSBSLSJW.mjs";
4
+ } from "../../chunk-U74WK5VI.mjs";
5
+ import "../../chunk-KCBBBRSF.mjs";
6
6
  import "../../chunk-ODMRJXLJ.mjs";
7
7
  import "../../chunk-E3G5QXSH.mjs";
8
8
  import "../../chunk-J725QONZ.mjs";
@@ -12988,7 +12988,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
12988
12988
  right: targetRect.right + scrollX,
12989
12989
  bottom: targetRect.bottom + scrollY
12990
12990
  };
12991
- const { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
12991
+ let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
12992
+ if (tooltipY < 0) {
12993
+ tooltipY = adjustedTargetRect.bottom + offset;
12994
+ } else if (tooltipY + height > window.innerHeight) {
12995
+ tooltipY = adjustedTargetRect.top - height - offset;
12996
+ }
12997
+ if (tooltipX < 0) {
12998
+ tooltipX = adjustedTargetRect.left;
12999
+ } else if (tooltipX + width > window.innerWidth) {
13000
+ tooltipX = adjustedTargetRect.right - width;
13001
+ }
12992
13002
  setTooltipPosition({ x: tooltipX, y: tooltipY });
12993
13003
  }
12994
13004
  }, [placement, offset, targetRect]);
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  tooltip_default
4
- } from "../../chunk-YZTGM3A3.mjs";
5
- import "../../chunk-DSBSLSJW.mjs";
4
+ } from "../../chunk-U74WK5VI.mjs";
5
+ import "../../chunk-KCBBBRSF.mjs";
6
6
  import "../../chunk-ODMRJXLJ.mjs";
7
7
  import "../../chunk-VUYUQGLF.mjs";
8
8
  import "../../chunk-NGQ3MK2J.mjs";
@@ -98,7 +98,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
98
98
  right: targetRect.right + scrollX,
99
99
  bottom: targetRect.bottom + scrollY
100
100
  };
101
- const { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
101
+ let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
102
+ if (tooltipY < 0) {
103
+ tooltipY = adjustedTargetRect.bottom + offset;
104
+ } else if (tooltipY + height > window.innerHeight) {
105
+ tooltipY = adjustedTargetRect.top - height - offset;
106
+ }
107
+ if (tooltipX < 0) {
108
+ tooltipX = adjustedTargetRect.left;
109
+ } else if (tooltipX + width > window.innerWidth) {
110
+ tooltipX = adjustedTargetRect.right - width;
111
+ }
102
112
  setTooltipPosition({ x: tooltipX, y: tooltipY });
103
113
  }
104
114
  }, [placement, offset, targetRect]);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useTooltip
4
- } from "../../chunk-DSBSLSJW.mjs";
4
+ } from "../../chunk-KCBBBRSF.mjs";
5
5
  import "../../chunk-ODMRJXLJ.mjs";
6
6
  import "../../chunk-IZ6II3QA.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -5609,7 +5609,8 @@ var table = (0, import_tailwind_variants8.tv)({
5609
5609
  "text-white",
5610
5610
  "transition-opacity",
5611
5611
  "duration-200",
5612
- "ease-in-out"
5612
+ "ease-in-out",
5613
+ "cursor-default"
5613
5614
  ]
5614
5615
  },
5615
5616
  variants: {
@@ -7091,7 +7092,17 @@ var useTooltip = ({ placement, offset, targetRect }) => {
7091
7092
  right: targetRect.right + scrollX,
7092
7093
  bottom: targetRect.bottom + scrollY
7093
7094
  };
7094
- const { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
7095
+ let { tooltipX, tooltipY } = getTooltipPosition(placement, adjustedTargetRect, width, height, offset);
7096
+ if (tooltipY < 0) {
7097
+ tooltipY = adjustedTargetRect.bottom + offset;
7098
+ } else if (tooltipY + height > window.innerHeight) {
7099
+ tooltipY = adjustedTargetRect.top - height - offset;
7100
+ }
7101
+ if (tooltipX < 0) {
7102
+ tooltipX = adjustedTargetRect.left;
7103
+ } else if (tooltipX + width > window.innerWidth) {
7104
+ tooltipX = adjustedTargetRect.right - width;
7105
+ }
7095
7106
  setTooltipPosition({ x: tooltipX, y: tooltipY });
7096
7107
  }
7097
7108
  }, [placement, offset, targetRect]);
@@ -8975,7 +8986,7 @@ var getSemanticColors = (colorChip, role) => {
8975
8986
  light: `${colorChip[50]}, 0.1`,
8976
8987
  main: `${colorChip[50]}, 0.2`,
8977
8988
  dark: `${colorChip[50]}, 0.3`,
8978
- strong: `${colorChip[600]}, 1 `
8989
+ strong: `${colorChip[900]}, 1 `
8979
8990
  }
8980
8991
  };
8981
8992
  break;
package/dist/index.mjs CHANGED
@@ -1,16 +1,4 @@
1
1
  "use client";
2
- import "./chunk-HIE2YRGA.mjs";
3
- import {
4
- tooltip_default
5
- } from "./chunk-YZTGM3A3.mjs";
6
- import "./chunk-DSBSLSJW.mjs";
7
- import "./chunk-ODMRJXLJ.mjs";
8
- import "./chunk-QCEKPS7U.mjs";
9
- import {
10
- select_default
11
- } from "./chunk-JN7EGKJL.mjs";
12
- import "./chunk-RZZWHI6O.mjs";
13
- import "./chunk-S3QS5B7F.mjs";
14
2
  import "./chunk-LUWGOKLG.mjs";
15
3
  import {
16
4
  ToastProvider,
@@ -28,10 +16,12 @@ import "./chunk-RRAZM5D3.mjs";
28
16
  import {
29
17
  textarea_default
30
18
  } from "./chunk-OJ2OEI5B.mjs";
31
- import "./chunk-MV2WCFK7.mjs";
19
+ import "./chunk-HIE2YRGA.mjs";
32
20
  import {
33
- slider_default
34
- } from "./chunk-A3RWT3JJ.mjs";
21
+ tooltip_default
22
+ } from "./chunk-U74WK5VI.mjs";
23
+ import "./chunk-KCBBBRSF.mjs";
24
+ import "./chunk-ODMRJXLJ.mjs";
35
25
  import "./chunk-LVFI2NOH.mjs";
36
26
  import {
37
27
  switch_default
@@ -39,9 +29,19 @@ import {
39
29
  import "./chunk-2UUH2MBF.mjs";
40
30
  import {
41
31
  table_default
42
- } from "./chunk-R2E7UZZO.mjs";
32
+ } from "./chunk-QGZEHOKA.mjs";
43
33
  import "./chunk-VWD26TIQ.mjs";
44
34
  import "./chunk-PO3ADNA5.mjs";
35
+ import "./chunk-QCEKPS7U.mjs";
36
+ import {
37
+ select_default
38
+ } from "./chunk-JN7EGKJL.mjs";
39
+ import "./chunk-RZZWHI6O.mjs";
40
+ import "./chunk-S3QS5B7F.mjs";
41
+ import "./chunk-MV2WCFK7.mjs";
42
+ import {
43
+ slider_default
44
+ } from "./chunk-A3RWT3JJ.mjs";
45
45
  import "./chunk-7VOQKIIK.mjs";
46
46
  import {
47
47
  progress_default
@@ -63,11 +63,11 @@ import "./chunk-2GCSFWHD.mjs";
63
63
  import {
64
64
  input_default
65
65
  } from "./chunk-ZNEEYSIK.mjs";
66
- import "./chunk-QZ3LVYJW.mjs";
67
66
  import "./chunk-HAOK24MK.mjs";
67
+ import "./chunk-QZ3LVYJW.mjs";
68
68
  import {
69
- card_default
70
- } from "./chunk-2ALY3PH5.mjs";
69
+ checkbox_default
70
+ } from "./chunk-ANYPMQH4.mjs";
71
71
  import "./chunk-75HLCORR.mjs";
72
72
  import {
73
73
  dateTimePicker_default
@@ -92,8 +92,8 @@ import {
92
92
  button_default
93
93
  } from "./chunk-UR64ZUAU.mjs";
94
94
  import {
95
- checkbox_default
96
- } from "./chunk-ANYPMQH4.mjs";
95
+ card_default
96
+ } from "./chunk-2ALY3PH5.mjs";
97
97
  import "./chunk-27Y6K5NK.mjs";
98
98
  import {
99
99
  accordion_default
@@ -402,7 +402,7 @@ var getSemanticColors = (colorChip, role) => {
402
402
  light: `${colorChip[50]}, 0.1`,
403
403
  main: `${colorChip[50]}, 0.2`,
404
404
  dark: `${colorChip[50]}, 0.3`,
405
- strong: `${colorChip[600]}, 1 `
405
+ strong: `${colorChip[900]}, 1 `
406
406
  }
407
407
  };
408
408
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",