@situaction/traq-ui-ste 1.2.36 → 1.2.40
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/accordion/Accordion.d.ts +1 -1
- package/dist/components/accordion/item/AccordionItem.d.ts +1 -1
- package/dist/components/accordion/item/AccordionItem.js +46 -45
- package/dist/components/list/list-controls/ListControls.js +1 -1
- package/dist/components/list/nested-list/NestedList.js +1 -1
- package/dist/components/list/nested-list/item/NestedListItem.js +1 -1
- package/dist/components/menu/Menu.js +1 -1
- package/dist/components/panel/side-panel-header/SidePanelHeader.js +1 -1
- package/dist/components/select/Select.d.ts +10 -1
- package/dist/components/select/Select.js +154 -126
- package/dist/components/select-filter-input-tags/SelectFilterInputTags.js +1 -1
- package/dist/components/select-multi-items/SelectMultiItems.js +1 -1
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/tooltip/Tooltip.js +21 -21
- package/dist/styles/AccordionItem.css +1 -1
- package/package.json +1 -1
- package/dist/index-CxdrhfJv.mjs +0 -19066
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as S, jsx as
|
|
2
|
-
import { useState as w, useRef as x, useCallback as
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as S, jsx as L } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useRef as x, useCallback as T, useLayoutEffect as c } from "react";
|
|
3
|
+
import { createPortal as j } from "react-dom";
|
|
4
4
|
import '../../styles/Tooltip.css';const I = "_tooltip_ymexm_30", y = {
|
|
5
5
|
"tooltip-container": "_tooltip-container_ymexm_30",
|
|
6
6
|
tooltip: I
|
|
@@ -9,11 +9,11 @@ import '../../styles/Tooltip.css';const I = "_tooltip_ymexm_30", y = {
|
|
|
9
9
|
"xs-3": 10,
|
|
10
10
|
xs: 14,
|
|
11
11
|
"m-1": 18
|
|
12
|
-
},
|
|
13
|
-
const [
|
|
14
|
-
const a = window.innerWidth,
|
|
12
|
+
}, l = 8, N = ({ children: v, content: k, position: g = "top", gap: M = "xs-5", padding: _ = "xs-5" }) => {
|
|
13
|
+
const [r, m] = w(!1), [C, h] = w({ visibility: "hidden" }), n = x(null), d = x(null), o = W[M] ?? 6, f = T((t, e) => {
|
|
14
|
+
const a = window.innerWidth, u = window.innerHeight;
|
|
15
15
|
let s, i;
|
|
16
|
-
switch (
|
|
16
|
+
switch (g) {
|
|
17
17
|
case "top":
|
|
18
18
|
s = t.top - e.height - o, i = t.left + t.width / 2 - e.width / 2;
|
|
19
19
|
break;
|
|
@@ -41,42 +41,42 @@ import '../../styles/Tooltip.css';const I = "_tooltip_ymexm_30", y = {
|
|
|
41
41
|
default:
|
|
42
42
|
s = t.top - e.height - o, i = t.left + t.width / 2 - e.width / 2;
|
|
43
43
|
}
|
|
44
|
-
return i = Math.max(
|
|
45
|
-
}, [
|
|
46
|
-
|
|
44
|
+
return i = Math.max(l, Math.min(i, a - e.width - l)), s = Math.max(l, Math.min(s, u - e.height - l)), { position: "fixed", top: s, left: i, visibility: "visible" };
|
|
45
|
+
}, [g, o]);
|
|
46
|
+
c(() => {
|
|
47
47
|
const t = [
|
|
48
48
|
"--background-tooltip",
|
|
49
49
|
"--general-border-window",
|
|
50
50
|
"--general-text-icons",
|
|
51
51
|
"--shadow-color-minimal"
|
|
52
52
|
];
|
|
53
|
-
if (
|
|
53
|
+
if (r && n.current && d.current) {
|
|
54
54
|
const e = getComputedStyle(n.current), a = t.reduce((i, b) => {
|
|
55
55
|
const p = e.getPropertyValue(b).trim();
|
|
56
56
|
return p && (i[b] = p), i;
|
|
57
|
-
}, {}),
|
|
58
|
-
h({ ...f(
|
|
57
|
+
}, {}), u = n.current.getBoundingClientRect(), s = d.current.getBoundingClientRect();
|
|
58
|
+
h({ ...f(u, s), ...a });
|
|
59
59
|
}
|
|
60
|
-
}, [
|
|
61
|
-
const
|
|
62
|
-
h({ visibility: "hidden" }),
|
|
60
|
+
}, [r, f]);
|
|
61
|
+
const E = () => {
|
|
62
|
+
h({ visibility: "hidden" }), m(!0);
|
|
63
63
|
}, V = [y.tooltip, "labelMedium", "fontWeight-600"].join(" "), P = { "--dynamic-padding": `var(--spacing-${_})` };
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
65
|
"div",
|
|
66
66
|
{
|
|
67
67
|
ref: n,
|
|
68
68
|
className: y["tooltip-container"],
|
|
69
|
-
onMouseEnter:
|
|
70
|
-
onMouseLeave: () =>
|
|
69
|
+
onMouseEnter: E,
|
|
70
|
+
onMouseLeave: () => m(!1),
|
|
71
71
|
children: [
|
|
72
72
|
v,
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */
|
|
73
|
+
r && j(
|
|
74
|
+
/* @__PURE__ */ L(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
ref: d,
|
|
78
78
|
className: V,
|
|
79
|
-
style: { ...P, ...
|
|
79
|
+
style: { ...P, ...C },
|
|
80
80
|
children: k
|
|
81
81
|
}
|
|
82
82
|
),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.
|
|
1
|
+
@charset "UTF-8";._accordionHeader_10lt2_7{display:flex;align-items:center;justify-content:space-between;border-radius:.375rem;gap:.375rem}._padding-s_10lt2_15{padding:var(--spacing-xs-4)}._padding-m_10lt2_19{padding:var(--spacing-xs-2)}._padding-l_10lt2_23{padding:var(--spacing-xs)}._padding-xl_10lt2_27{padding:var(--spacing-s)}._title_10lt2_31{flex-grow:1;text-align:left}._fullHeight_10lt2_36{height:100%}._block_10lt2_40{border:1px solid var(--general-border-window);box-shadow:0 4px 5px 0 var(--shadow-color-minimal);background:var(--background-primary);border-radius:.375rem}._tile_10lt2_48 ._accordionHeader_10lt2_7{border-radius:.375rem;background:var(--background-primary);margin-bottom:.375rem;border:1px solid var(--general-border-window)}._secondaryOpen_10lt2_56{background:var(--skeleton-step-empty-background)}._ghost_10lt2_61 ._accordionHeader_10lt2_7{padding-left:0;padding-right:0}
|