@situaction/traq-ui-ste 1.2.23 → 1.2.24
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 +27 -3
- package/dist/components/accordion/Accordion.js +56 -21
- package/dist/components/accordion/item/AccordionItem.d.ts +9 -1
- package/dist/components/accordion/item/AccordionItem.js +60 -54
- package/dist/components/list/list-controls/ListControls.js +3 -2
- package/dist/components/list/nested-list/NestedList.js +8 -7
- package/dist/components/list/nested-list/item/NestedListItem.js +3 -2
- package/dist/components/menu/Menu.js +19 -18
- package/dist/components/panel/side-panel-header/SidePanelHeader.js +3 -2
- package/dist/components/select/Select.js +3 -2
- package/dist/components/select-filter-input-tags/SelectFilterInputTags.js +7 -6
- package/dist/components/select-multi-items/SelectMultiItems.js +10 -9
- package/dist/components/switch/Switch.js +3 -2
- package/dist/styles/AccordionItem.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { Size } from '../interface';
|
|
3
3
|
|
|
4
|
+
export interface AccordionHandle {
|
|
5
|
+
/** Open a specific item by id */
|
|
6
|
+
open: (id: string) => void;
|
|
7
|
+
/** Close a specific item by id */
|
|
8
|
+
close: (id: string) => void;
|
|
9
|
+
/** Toggle a specific item by id */
|
|
10
|
+
toggle: (id: string) => void;
|
|
11
|
+
/** Close all items */
|
|
12
|
+
closeAll: () => void;
|
|
13
|
+
/** Open only one item (close others) */
|
|
14
|
+
openOnly: (id: string) => void;
|
|
15
|
+
/** Get currently open ids */
|
|
16
|
+
getOpenIds: () => string[];
|
|
17
|
+
}
|
|
4
18
|
export interface AccordionProps {
|
|
5
19
|
/** An array of accordion items, each containing a header, content, and optional settings. */
|
|
6
20
|
items: {
|
|
@@ -18,9 +32,19 @@ export interface AccordionProps {
|
|
|
18
32
|
onClickHeader?: (id: string) => void;
|
|
19
33
|
}[];
|
|
20
34
|
/** Accordion style if block type the header and the content are in the same block, if it is tile they are separated into 2 blocks */
|
|
21
|
-
type?:
|
|
35
|
+
type?: "block" | "tile";
|
|
22
36
|
/** Padding size inside the Accordion: small, medium, large */
|
|
23
37
|
paddingHeader?: Size;
|
|
38
|
+
/** If true, clicking anywhere on the header (excluding buttons) toggles the content */
|
|
39
|
+
toggleOnHeaderClick?: boolean;
|
|
40
|
+
/** Visual mode for all accordion items */
|
|
41
|
+
mode?: "primary" | "secondary";
|
|
42
|
+
/** If true, only one item can be open at a time */
|
|
43
|
+
singleOpen?: boolean;
|
|
44
|
+
/** Controlled open ids (optional) */
|
|
45
|
+
openItemIds?: string[];
|
|
46
|
+
/** Controlled change callback */
|
|
47
|
+
onOpenItemIdsChange?: (ids: string[]) => void;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
50
|
* Accordion component that displays a list of AccordionItem components.
|
|
@@ -30,4 +54,4 @@ export interface AccordionProps {
|
|
|
30
54
|
* @param {AccordionProps} props - The props for the Accordion component.
|
|
31
55
|
* @returns {JSX.Element} The rendered Accordion component.
|
|
32
56
|
*/
|
|
33
|
-
export declare const Accordion:
|
|
57
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<AccordionProps & import('react').RefAttributes<AccordionHandle>>;
|
|
@@ -1,23 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
))
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, useMemo as P, useState as j, useImperativeHandle as w } from "react";
|
|
3
|
+
import { AccordionItem as z } from "./item/AccordionItem.js";
|
|
4
|
+
import '../../styles/Accordion.css';const M = "_accordion_hz3a1_6", N = {
|
|
5
|
+
accordion: M
|
|
6
|
+
}, q = x(
|
|
7
|
+
({
|
|
8
|
+
items: s,
|
|
9
|
+
type: u = "block",
|
|
10
|
+
paddingHeader: O = "m",
|
|
11
|
+
toggleOnHeaderClick: g = !1,
|
|
12
|
+
mode: k = "primary",
|
|
13
|
+
singleOpen: y = !1,
|
|
14
|
+
openItemIds: t,
|
|
15
|
+
onOpenItemIdsChange: l
|
|
16
|
+
}, H) => {
|
|
17
|
+
const i = t !== void 0, v = P(() => s.filter((o) => o.defaultOpen).map((o) => o.id), [s]), [A, _] = j(v), r = i ? t ?? [] : A, c = (o) => {
|
|
18
|
+
i ? l == null || l(o) : _(o);
|
|
19
|
+
}, e = (o) => r.includes(o), a = (o) => {
|
|
20
|
+
if (e(o)) return;
|
|
21
|
+
const n = y ? [o] : [...r, o];
|
|
22
|
+
c(n);
|
|
23
|
+
}, d = (o) => {
|
|
24
|
+
e(o) && c(r.filter((n) => n !== o));
|
|
25
|
+
}, p = (o) => {
|
|
26
|
+
e(o) ? d(o) : a(o);
|
|
27
|
+
}, b = () => c([]), h = (o) => c([o]);
|
|
28
|
+
return w(H, () => ({
|
|
29
|
+
open: a,
|
|
30
|
+
close: d,
|
|
31
|
+
toggle: p,
|
|
32
|
+
closeAll: b,
|
|
33
|
+
openOnly: h,
|
|
34
|
+
getOpenIds: () => [...r]
|
|
35
|
+
})), /* @__PURE__ */ f("div", { className: N.accordion, children: s.map((o) => /* @__PURE__ */ f(
|
|
36
|
+
z,
|
|
37
|
+
{
|
|
38
|
+
header: o.header,
|
|
39
|
+
iconPosition: o.iconPosition ?? "right",
|
|
40
|
+
type: u ?? "block",
|
|
41
|
+
paddingHeader: O ?? "m",
|
|
42
|
+
toggleOnHeaderClick: g ?? !1,
|
|
43
|
+
mode: k ?? "primary",
|
|
44
|
+
open: e(o.id),
|
|
45
|
+
onToggle: () => p(o.id),
|
|
46
|
+
onClickHeader: () => {
|
|
47
|
+
var n;
|
|
48
|
+
return (n = o.onClickHeader) == null ? void 0 : n.call(o, o.id);
|
|
49
|
+
},
|
|
50
|
+
children: o.content
|
|
51
|
+
},
|
|
52
|
+
o.id
|
|
53
|
+
)) });
|
|
54
|
+
}
|
|
55
|
+
);
|
|
21
56
|
export {
|
|
22
|
-
|
|
57
|
+
q as Accordion
|
|
23
58
|
};
|
|
@@ -11,11 +11,19 @@ interface AccordionItemProps {
|
|
|
11
11
|
/** Determines whether the accordion should be open by default (true) or closed (false). */
|
|
12
12
|
defaultOpen?: boolean;
|
|
13
13
|
/** Accordion style if block type the header and the content are in the same block, if it is tile they are separated into 2 blocks */
|
|
14
|
-
type?:
|
|
14
|
+
type?: "block" | "tile";
|
|
15
15
|
/** Padding size inside the Accordion: small, medium, large */
|
|
16
16
|
paddingHeader?: Size;
|
|
17
17
|
/** Click handler on the padding header (outside of IconButtons) */
|
|
18
18
|
onClickHeader?: () => void;
|
|
19
|
+
/** If true, clicking anywhere on the header (excluding buttons) toggles the content */
|
|
20
|
+
toggleOnHeaderClick?: boolean;
|
|
21
|
+
/** Visual mode for the accordion item */
|
|
22
|
+
mode?: "primary" | "secondary";
|
|
23
|
+
/** Controlled open state (optional) */
|
|
24
|
+
open?: boolean;
|
|
25
|
+
/** Toggle callback used when open is controlled */
|
|
26
|
+
onToggle?: () => void;
|
|
19
27
|
}
|
|
20
28
|
/**
|
|
21
29
|
* AccordionItem component represents an individual item in an accordion.
|
|
@@ -1,61 +1,67 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import '../../../styles/AccordionItem.css';const
|
|
5
|
-
accordionHeader:
|
|
6
|
-
"padding-s": "_padding-
|
|
7
|
-
"padding-m": "_padding-
|
|
8
|
-
"padding-l": "_padding-
|
|
9
|
-
"padding-xl": "_padding-
|
|
10
|
-
title:
|
|
11
|
-
fullHeight:
|
|
12
|
-
block:
|
|
13
|
-
tile:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k, useEffect as y, useMemo as B } from "react";
|
|
3
|
+
import { IconButton as w } from "../../icon-button/IconButton.js";
|
|
4
|
+
import '../../../styles/AccordionItem.css';const O = "_accordionHeader_bor6q_7", A = "_title_bor6q_31", M = "_fullHeight_bor6q_36", H = "_block_bor6q_40", I = "_tile_bor6q_48", L = "_secondaryOpen_bor6q_56", e = {
|
|
5
|
+
accordionHeader: O,
|
|
6
|
+
"padding-s": "_padding-s_bor6q_15",
|
|
7
|
+
"padding-m": "_padding-m_bor6q_19",
|
|
8
|
+
"padding-l": "_padding-l_bor6q_23",
|
|
9
|
+
"padding-xl": "_padding-xl_bor6q_27",
|
|
10
|
+
title: A,
|
|
11
|
+
fullHeight: M,
|
|
12
|
+
block: H,
|
|
13
|
+
tile: I,
|
|
14
|
+
secondaryOpen: L
|
|
15
|
+
}, z = ({
|
|
16
|
+
header: m,
|
|
17
|
+
children: f,
|
|
18
|
+
iconPosition: a = "right",
|
|
19
|
+
defaultOpen: d = !1,
|
|
20
|
+
type: c = "block",
|
|
21
|
+
paddingHeader: b = "m",
|
|
22
|
+
onClickHeader: s,
|
|
23
|
+
toggleOnHeaderClick: v = !1,
|
|
24
|
+
mode: h = "primary",
|
|
25
|
+
open: g,
|
|
26
|
+
onToggle: r
|
|
22
27
|
}) => {
|
|
23
|
-
const [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
|
|
28
|
+
const l = g !== void 0, [u, _] = k(!1);
|
|
29
|
+
y(() => {
|
|
30
|
+
l || _(!!d);
|
|
31
|
+
}, [d, l]);
|
|
32
|
+
const i = l ? !!g : u, n = () => {
|
|
33
|
+
if (l) {
|
|
34
|
+
r == null || r();
|
|
30
35
|
return;
|
|
31
36
|
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
onClick: ()
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
_((o) => !o);
|
|
38
|
+
}, x = (o) => {
|
|
39
|
+
if (o.target.closest("button")) {
|
|
40
|
+
o.stopPropagation();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
v && n(), s == null || s();
|
|
44
|
+
}, q = B(() => [
|
|
45
|
+
c === "tile" ? e.tile : e.block,
|
|
46
|
+
h === "secondary" && i ? e.secondaryOpen : ""
|
|
47
|
+
].filter(Boolean).join(" "), [c, h, i]);
|
|
48
|
+
return /* @__PURE__ */ p("div", { className: q, children: [
|
|
49
|
+
/* @__PURE__ */ p(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: `${e.accordionHeader} ${e[`padding-${b}`]}`,
|
|
53
|
+
onClick: x,
|
|
54
|
+
"data-ignore-outside-click": !0,
|
|
55
|
+
children: [
|
|
56
|
+
a === "left" && /* @__PURE__ */ t(w, { mode: "ghost", size: "s", onClick: n, children: i ? /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }) }) : /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }) }) }),
|
|
57
|
+
/* @__PURE__ */ t("div", { className: e.title, children: m }),
|
|
58
|
+
a === "right" && /* @__PURE__ */ t(w, { mode: "ghost", size: "s", onClick: n, children: i ? /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }) }) : /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }) }) })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
i && f
|
|
57
63
|
] });
|
|
58
64
|
};
|
|
59
65
|
export {
|
|
60
|
-
|
|
66
|
+
z as AccordionItem
|
|
61
67
|
};
|
|
@@ -3,6 +3,7 @@ import { Button as p } from "../../button/Button.js";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../icon-button/IconButton.js";
|
|
5
5
|
import { Checkbox as _ } from "../../checkbox/Checkbox.js";
|
|
6
|
+
import "../../accordion/Accordion.js";
|
|
6
7
|
import { Icon as a } from "../../icon/Icon.js";
|
|
7
8
|
import "../../modal/Modal.js";
|
|
8
9
|
import "../../carousel/Carousel.js";
|
|
@@ -14,7 +15,7 @@ const u = "_list_1nihg_6", f = "_children_1nihg_29", g = "_selected_1nihg_43", k
|
|
|
14
15
|
children: f,
|
|
15
16
|
selected: g,
|
|
16
17
|
reset: k
|
|
17
|
-
},
|
|
18
|
+
}, S = ({ listChildren: l, handleItemClick: d, selectedItems: m, onReset: r, labelButtonReset: n }) => /* @__PURE__ */ o("div", { className: i.list, children: [
|
|
18
19
|
/* @__PURE__ */ e("div", { children: l.map((t, h) => {
|
|
19
20
|
if (t.key == null) return null;
|
|
20
21
|
const s = t.key, c = m.includes(s);
|
|
@@ -47,5 +48,5 @@ const u = "_list_1nihg_6", f = "_children_1nihg_29", g = "_selected_1nihg_43", k
|
|
|
47
48
|
) })
|
|
48
49
|
] });
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
S as ListControls
|
|
51
52
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { NestedListItem as
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { NestedListItem as l } from "./item/NestedListItem.js";
|
|
3
3
|
import { Button as c } from "../../button/Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../icon-button/IconButton.js";
|
|
6
|
+
import "../../accordion/Accordion.js";
|
|
6
7
|
import { Icon as a } from "../../icon/Icon.js";
|
|
7
8
|
import "../../modal/Modal.js";
|
|
8
9
|
import "../../carousel/Carousel.js";
|
|
9
10
|
import "../../carousel/FadeCarousel.js";
|
|
10
11
|
import "../../theme/ThemeContext.js";
|
|
11
12
|
import '../../../styles/Size.css';import '../../../styles/NestedList.css';/* empty css */
|
|
12
|
-
const h = "_nestedlist_7rnd3_6", _ = "_reset_7rnd3_18",
|
|
13
|
+
const h = "_nestedlist_7rnd3_6", _ = "_reset_7rnd3_18", i = {
|
|
13
14
|
nestedlist: h,
|
|
14
15
|
reset: _
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
r && e && /* @__PURE__ */ t("div", { className:
|
|
16
|
+
}, F = ({ items: s, align: o = "right", onReset: r, children: m, labelButtonReset: e }) => /* @__PURE__ */ p("div", { className: i.nestedlist, children: [
|
|
17
|
+
s.map((n, d) => /* @__PURE__ */ t(l, { ...n, align: o ?? "right", children: m }, d)),
|
|
18
|
+
r && e && /* @__PURE__ */ t("div", { className: i.reset, children: /* @__PURE__ */ t(c, { mode: "ghost", label: e, onClick: r, childrenLeft: /* @__PURE__ */ t(a, { icon: "FunnelX" }) }) })
|
|
18
19
|
] });
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
F as NestedList
|
|
21
22
|
};
|
|
@@ -3,6 +3,7 @@ import { useState as g, useRef as u, useLayoutEffect as z } from "react";
|
|
|
3
3
|
import "../../../button/Button.js";
|
|
4
4
|
import "../../../icon-button/IconButton.js";
|
|
5
5
|
import { TagCounter as B } from "../../../tag-counter/TagCounter.js";
|
|
6
|
+
import "../../../accordion/Accordion.js";
|
|
6
7
|
import { Icon as l } from "../../../icon/Icon.js";
|
|
7
8
|
import { Modal as L } from "../../../modal/Modal.js";
|
|
8
9
|
import "../../../carousel/Carousel.js";
|
|
@@ -14,7 +15,7 @@ const S = "_nestedlist_2r2ga_6", $ = "_items_2r2ga_21", j = "_textSmall_2r2ga_28
|
|
|
14
15
|
items: $,
|
|
15
16
|
textSmall: j,
|
|
16
17
|
modal: v
|
|
17
|
-
},
|
|
18
|
+
}, D = ({
|
|
18
19
|
icon: a,
|
|
19
20
|
title: h,
|
|
20
21
|
numberSelect: i,
|
|
@@ -70,5 +71,5 @@ const S = "_nestedlist_2r2ga_6", $ = "_items_2r2ga_21", j = "_textSmall_2r2ga_28
|
|
|
70
71
|
] });
|
|
71
72
|
};
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
D as NestedListItem
|
|
74
75
|
};
|
|
@@ -2,6 +2,7 @@ import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as c, useRef as M, useEffect as B } from "react";
|
|
3
3
|
import { Button as $ } from "../button/Button.js";
|
|
4
4
|
import { IconButton as f } from "../icon-button/IconButton.js";
|
|
5
|
+
import "../accordion/Accordion.js";
|
|
5
6
|
import { Icon as N } from "../icon/Icon.js";
|
|
6
7
|
import { Modal as W } from "../modal/Modal.js";
|
|
7
8
|
import "../carousel/Carousel.js";
|
|
@@ -26,40 +27,40 @@ const y = "_fullHeight_11eub_15", O = "_fullWidth_11eub_18", j = "_open_11eub_21
|
|
|
26
27
|
flexVerticalBetweenStart: Y,
|
|
27
28
|
flexHorizontalCenter: Z,
|
|
28
29
|
flexVerticalBetweenCenter: ee
|
|
29
|
-
},
|
|
30
|
-
const [
|
|
30
|
+
}, fe = ({ menuItems: s = [], menuParams: a = [], shortLogo: m, logo: p, isOpen: h, defaultOpen: I = !1, selectedId: u }) => {
|
|
31
|
+
const [l, g] = c(I ?? !1), [b, x] = c(u ?? (s.length > 0 ? s[0].id : null)), w = M(null), [H, _] = c(!1), [L, C] = c(!1), [k, E] = c(null), [z, R] = c({}), V = M(null);
|
|
31
32
|
B(() => {
|
|
32
33
|
u != null && x(u);
|
|
33
34
|
}, [u]);
|
|
34
35
|
const v = (o, i) => {
|
|
35
36
|
if (o.stopPropagation(), x(i), s) {
|
|
36
|
-
const
|
|
37
|
-
|
|
37
|
+
const t = s.find((r) => r.id === i);
|
|
38
|
+
t == null || t.onClick();
|
|
38
39
|
}
|
|
39
40
|
}, S = () => {
|
|
40
|
-
g(!
|
|
41
|
+
g(!l), _(!1);
|
|
41
42
|
}, P = (o) => {
|
|
42
43
|
var i;
|
|
43
44
|
if (a) {
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
46
|
-
if (
|
|
47
|
-
const r =
|
|
48
|
-
E(
|
|
45
|
+
const t = a.find((r) => r.id === o);
|
|
46
|
+
if (!t) return;
|
|
47
|
+
if (t.content) {
|
|
48
|
+
const r = l ? "200px" : "40px";
|
|
49
|
+
E(t.content), R({ ...t.position, left: r }), C(!0);
|
|
49
50
|
} else
|
|
50
|
-
(i =
|
|
51
|
+
(i = t.onClick) == null || i.call(t);
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
return B(() => {
|
|
54
|
-
h && h(
|
|
55
|
-
}, [
|
|
55
|
+
h && h(l);
|
|
56
|
+
}, [l]), /* @__PURE__ */ n("nav", { ref: w, children: /* @__PURE__ */ d("div", { className: `${e.flexVerticalBetweenStart} ${e.fullHeight} ${l ? e.open : e.close}`, children: [
|
|
56
57
|
/* @__PURE__ */ d("div", { className: e.fullWidth, children: [
|
|
57
58
|
/* @__PURE__ */ n(
|
|
58
59
|
"div",
|
|
59
60
|
{
|
|
60
61
|
className: `${e.flexHorizontalCenter} ${e.pointer} ${e.textEllipsis}`,
|
|
61
62
|
onClick: () => S(),
|
|
62
|
-
children:
|
|
63
|
+
children: l ? /* @__PURE__ */ d("div", { className: e.fullImg, children: [
|
|
63
64
|
p && /* @__PURE__ */ n("img", { className: e.longLogo, src: p, alt: "Logo situaction" }),
|
|
64
65
|
/* @__PURE__ */ n(f, { mode: "ghost", size: "menu", children: /* @__PURE__ */ n(N, { icon: "CaretDoubleLeft", size: 16, weight: "duotone" }) })
|
|
65
66
|
] }) : /* @__PURE__ */ n(
|
|
@@ -68,13 +69,13 @@ const y = "_fullHeight_11eub_15", O = "_fullWidth_11eub_18", j = "_open_11eub_21
|
|
|
68
69
|
className: e.closeIcon,
|
|
69
70
|
onMouseEnter: () => _(!0),
|
|
70
71
|
onMouseLeave: () => _(!1),
|
|
71
|
-
onClick: () => g(!
|
|
72
|
+
onClick: () => g(!l),
|
|
72
73
|
children: H || !m ? /* @__PURE__ */ n(f, { mode: "ghost", size: "menu", children: /* @__PURE__ */ n(N, { icon: "CaretDoubleRight", size: 22, weight: "duotone" }) }) : /* @__PURE__ */ n("img", { src: m, alt: "Logo situaction" })
|
|
73
74
|
}
|
|
74
75
|
)
|
|
75
76
|
}
|
|
76
77
|
),
|
|
77
|
-
/* @__PURE__ */ n("div", { className: e.menuItem, children: s && s.map((o) =>
|
|
78
|
+
/* @__PURE__ */ n("div", { className: e.menuItem, children: s && s.map((o) => l ? /* @__PURE__ */ n("div", { className: `${e.textEllipsis} ${e.menuButton}`, children: /* @__PURE__ */ n(
|
|
78
79
|
$,
|
|
79
80
|
{
|
|
80
81
|
mode: b === o.id ? "secondary" : "ghost",
|
|
@@ -98,7 +99,7 @@ const y = "_fullHeight_11eub_15", O = "_fullWidth_11eub_18", j = "_open_11eub_21
|
|
|
98
99
|
{
|
|
99
100
|
className: `${e.fullWidth} ${e.textEllipsis}`,
|
|
100
101
|
onClick: () => P(o.id),
|
|
101
|
-
children:
|
|
102
|
+
children: l ? /* @__PURE__ */ n("div", { className: e.menuButton, children: /* @__PURE__ */ n($, { mode: "ghost", label: o.label, childrenLeft: o.icon }, o.id) }) : /* @__PURE__ */ n(f, { mode: "ghost", children: o.icon })
|
|
102
103
|
},
|
|
103
104
|
`param-icon-${o.id}`
|
|
104
105
|
)),
|
|
@@ -117,5 +118,5 @@ const y = "_fullHeight_11eub_15", O = "_fullWidth_11eub_18", j = "_open_11eub_21
|
|
|
117
118
|
] }) });
|
|
118
119
|
};
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
+
fe as Menu
|
|
121
122
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as C, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../button/Button.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { IconButton as i } from "../../icon-button/IconButton.js";
|
|
5
|
+
import "../../accordion/Accordion.js";
|
|
5
6
|
import { Icon as t } from "../../icon/Icon.js";
|
|
6
7
|
import "../../modal/Modal.js";
|
|
7
8
|
import "../../carousel/Carousel.js";
|
|
@@ -12,7 +13,7 @@ const c = "_sidePanelHeader_72g7b_6", m = "_buttonArrow_72g7b_13", h = "_title_7
|
|
|
12
13
|
sidePanelHeader: c,
|
|
13
14
|
buttonArrow: m,
|
|
14
15
|
title: h
|
|
15
|
-
},
|
|
16
|
+
}, y = ({
|
|
16
17
|
title: s,
|
|
17
18
|
icon: o,
|
|
18
19
|
onClickBack: L,
|
|
@@ -74,5 +75,5 @@ const c = "_sidePanelHeader_72g7b_6", m = "_buttonArrow_72g7b_13", h = "_title_7
|
|
|
74
75
|
)
|
|
75
76
|
] });
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
y as SidePanelHeader
|
|
78
79
|
};
|
|
@@ -3,6 +3,7 @@ import { useState as y, useRef as v, useEffect as d } from "react";
|
|
|
3
3
|
import { Button as W } from "../button/Button.js";
|
|
4
4
|
import { Input as G } from "../input/Input.js";
|
|
5
5
|
import { IconButton as H } from "../icon-button/IconButton.js";
|
|
6
|
+
import "../accordion/Accordion.js";
|
|
6
7
|
import { Icon as _ } from "../icon/Icon.js";
|
|
7
8
|
import { Modal as J } from "../modal/Modal.js";
|
|
8
9
|
import "../carousel/Carousel.js";
|
|
@@ -18,7 +19,7 @@ const Q = "_selectContainer_133eb_54", X = "_children_133eb_61", Y = "_active_13
|
|
|
18
19
|
itemLabel: I,
|
|
19
20
|
searchWrapper: ee,
|
|
20
21
|
noResults: te
|
|
21
|
-
},
|
|
22
|
+
}, me = ({
|
|
22
23
|
selected: k,
|
|
23
24
|
size: g = "m",
|
|
24
25
|
listItem: h,
|
|
@@ -213,5 +214,5 @@ const Q = "_selectContainer_133eb_54", X = "_children_133eb_61", Y = "_active_13
|
|
|
213
214
|
] });
|
|
214
215
|
};
|
|
215
216
|
export {
|
|
216
|
-
|
|
217
|
+
me as Select
|
|
217
218
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "../button/Button.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Input as
|
|
4
|
+
import { Input as p } from "../input/Input.js";
|
|
5
5
|
import "../icon-button/IconButton.js";
|
|
6
|
+
import "../accordion/Accordion.js";
|
|
6
7
|
import "../modal/Modal.js";
|
|
7
8
|
import "../carousel/Carousel.js";
|
|
8
9
|
import "../carousel/FadeCarousel.js";
|
|
9
10
|
import "../theme/ThemeContext.js";
|
|
10
11
|
import '../../styles/Size.css';import '../../styles/SelectFilterInputTags.css';/* empty css */
|
|
11
|
-
const
|
|
12
|
-
listTagSelect:
|
|
13
|
-
},
|
|
12
|
+
const a = "_listTagSelect_2v3fb_6", c = {
|
|
13
|
+
listTagSelect: a
|
|
14
|
+
}, y = ({ children: o, inputValue: r, handleInputChange: s, handleKeyDown: i }) => /* @__PURE__ */ e("div", { className: c.listTagSelect, children: /* @__PURE__ */ l("div", { children: [
|
|
14
15
|
o,
|
|
15
16
|
/* @__PURE__ */ e("div", { className: "flexAutoSize", children: /* @__PURE__ */ e(
|
|
16
|
-
|
|
17
|
+
p,
|
|
17
18
|
{
|
|
18
19
|
type: "text",
|
|
19
20
|
value: r,
|
|
@@ -29,5 +30,5 @@ const c = "_listTagSelect_2v3fb_6", p = {
|
|
|
29
30
|
) })
|
|
30
31
|
] }) });
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
y as SelectFilterInputTags
|
|
33
34
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as _, useRef as h } from "react";
|
|
3
3
|
import { n as v, s as C, a as x } from "../../X.es-BEJ-zMPl.mjs";
|
|
4
4
|
import { Button as M } from "../button/Button.js";
|
|
5
5
|
import "../icon-button/IconButton.js";
|
|
6
6
|
import { TagCounter as w } from "../tag-counter/TagCounter.js";
|
|
7
|
+
import "../accordion/Accordion.js";
|
|
7
8
|
import { Modal as y } from "../modal/Modal.js";
|
|
8
9
|
import "../carousel/Carousel.js";
|
|
9
10
|
import "../carousel/FadeCarousel.js";
|
|
@@ -13,8 +14,8 @@ const N = "_relative_w7e9a_6", R = "_tagCounter_w7e9a_10", b = "_modal_w7e9a_18"
|
|
|
13
14
|
relative: N,
|
|
14
15
|
tagCounter: R,
|
|
15
16
|
modal: b
|
|
16
|
-
},
|
|
17
|
-
label:
|
|
17
|
+
}, D = ({
|
|
18
|
+
label: a,
|
|
18
19
|
iconButton: l,
|
|
19
20
|
selectedCount: t = 0,
|
|
20
21
|
onClearSelection: n,
|
|
@@ -22,25 +23,25 @@ const N = "_relative_w7e9a_6", R = "_tagCounter_w7e9a_10", b = "_modal_w7e9a_18"
|
|
|
22
23
|
size: c = "m",
|
|
23
24
|
align: p = "right"
|
|
24
25
|
}) => {
|
|
25
|
-
const [e,
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
const [e, i] = _(!1), d = h(null), f = () => i(!1), g = t > 0 ? /* @__PURE__ */ o(v, { onClick: n }) : e ? /* @__PURE__ */ o(C, {}) : /* @__PURE__ */ o(x, {}), u = t > 0 ? "secondary" : "tertiary";
|
|
27
|
+
return /* @__PURE__ */ s("div", { className: r.relative, children: [
|
|
27
28
|
/* @__PURE__ */ o(
|
|
28
29
|
M,
|
|
29
30
|
{
|
|
30
|
-
label:
|
|
31
|
+
label: a,
|
|
31
32
|
mode: u,
|
|
32
33
|
size: c,
|
|
33
34
|
childrenLeft: l,
|
|
34
|
-
childrenRight: /* @__PURE__ */
|
|
35
|
+
childrenRight: /* @__PURE__ */ s("div", { className: r.tagCounter, children: [
|
|
35
36
|
t > 0 && /* @__PURE__ */ o(w, { size: "s", label: t }),
|
|
36
37
|
g
|
|
37
38
|
] }),
|
|
38
|
-
onClick: () =>
|
|
39
|
+
onClick: () => i(!e)
|
|
39
40
|
}
|
|
40
41
|
),
|
|
41
42
|
/* @__PURE__ */ o(y, { ref: d, open: e, onClose: f, className: r.modal, position: { top: "calc(100% + 6px)", ...p === "right" ? { left: "0" } : { right: "0" } }, children: m })
|
|
42
43
|
] });
|
|
43
44
|
};
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
D as SelectMultiItems
|
|
46
47
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as n, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as $, useEffect as b } from "react";
|
|
3
3
|
import "../button/Button.js";
|
|
4
4
|
import { IconButton as k } from "../icon-button/IconButton.js";
|
|
5
|
+
import "../accordion/Accordion.js";
|
|
5
6
|
import { Icon as g } from "../icon/Icon.js";
|
|
6
7
|
import "../modal/Modal.js";
|
|
7
8
|
import "../carousel/Carousel.js";
|
|
@@ -19,7 +20,7 @@ const y = "_slider_1mxgk_21", I = "_s_1mxgk_6", N = "_m_1mxgk_58", S = "_l_1mxgk
|
|
|
19
20
|
wrapper: E,
|
|
20
21
|
button: R,
|
|
21
22
|
active: T
|
|
22
|
-
},
|
|
23
|
+
}, O = ({
|
|
23
24
|
size: i = "m",
|
|
24
25
|
variant: w = "classic",
|
|
25
26
|
checked: l,
|
|
@@ -91,5 +92,5 @@ const y = "_slider_1mxgk_21", I = "_s_1mxgk_6", N = "_m_1mxgk_58", S = "_l_1mxgk
|
|
|
91
92
|
] });
|
|
92
93
|
};
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
O as Switch
|
|
95
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.
|
|
1
|
+
@charset "UTF-8";._accordionHeader_bor6q_7{display:flex;align-items:center;justify-content:space-between;border-radius:.375rem;gap:.375rem}._padding-s_bor6q_15{padding:var(--spacing-xs-4)}._padding-m_bor6q_19{padding:var(--spacing-xs-2)}._padding-l_bor6q_23{padding:var(--spacing-xs)}._padding-xl_bor6q_27{padding:var(--spacing-s)}._title_bor6q_31{flex-grow:1;text-align:left}._fullHeight_bor6q_36{height:100%}._block_bor6q_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_bor6q_48 ._accordionHeader_bor6q_7{border-radius:.375rem;background:var(--background-primary);margin-bottom:.375rem;border:1px solid var(--general-border-window)}._secondaryOpen_bor6q_56{background:var(--skeleton-step-empty-background)}
|