@situaction/traq-ui-ste 1.2.23 → 1.2.25
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/README.md +2 -1
- 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/stepper/Stepper.d.ts +29 -0
- package/dist/components/stepper/Stepper.js +122 -0
- package/dist/components/switch/Switch.js +3 -2
- package/dist/components/theme/variables_dark.d.ts +6 -0
- package/dist/components/theme/variables_dark.js +7 -1
- package/dist/components/theme/variables_light.d.ts +6 -0
- package/dist/components/theme/variables_light.js +7 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +15 -13
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/Stepper.css +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type StepStatus = "active" | "completed" | "upcoming" | "disabled";
|
|
4
|
+
export interface StepITem {
|
|
5
|
+
/** Unique id of the step */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Optional explicit status (used if autoStatusFromActive=false) */
|
|
8
|
+
status?: StepStatus;
|
|
9
|
+
/** Right-side content (typically an AccordionItem) */
|
|
10
|
+
content: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface StepperProps {
|
|
13
|
+
/** Steps to render */
|
|
14
|
+
items: StepITem[];
|
|
15
|
+
/** Called when a dot is clicked */
|
|
16
|
+
onDotClick?: (id: string) => void;
|
|
17
|
+
/** Dot vertical offset inside each row (px) to align with accordion header */
|
|
18
|
+
dotOffsetPx?: number;
|
|
19
|
+
/** If true, dots are clickable */
|
|
20
|
+
dotsClickable?: boolean;
|
|
21
|
+
/** Active step id (drives progression when autoStatusFromActive=true) */
|
|
22
|
+
activeId?: string;
|
|
23
|
+
/** If true, compute statuses from activeId (completed/active/upcoming) */
|
|
24
|
+
autoStatusFromActive?: boolean;
|
|
25
|
+
/** Optional: force some steps disabled without setting status on each item */
|
|
26
|
+
disabledIds?: string[];
|
|
27
|
+
}
|
|
28
|
+
/** Stepper layout: dots + absolute connectors between each dot */
|
|
29
|
+
export declare const Stepper: FC<StepperProps>;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsx as _, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as h, useRef as M, useState as T, useLayoutEffect as U } from "react";
|
|
3
|
+
import '../../styles/Stepper.css';const V = "_wrapper_187j3_30", W = "_steps_187j3_35", X = "_row_187j3_42", Z = "_connectorAbs_187j3_50", tt = "_connectorProgress_187j3_60", et = "_connectorGradient_187j3_64", nt = "_connectorDefault_187j3_69", ot = "_dotButton_187j3_75", st = "_dotButtonDisabled_187j3_90", rt = "_dotOuter_187j3_96", ct = "_dotInner_187j3_103", o = {
|
|
4
|
+
wrapper: V,
|
|
5
|
+
steps: W,
|
|
6
|
+
row: X,
|
|
7
|
+
connectorAbs: Z,
|
|
8
|
+
connectorProgress: tt,
|
|
9
|
+
connectorGradient: et,
|
|
10
|
+
connectorDefault: nt,
|
|
11
|
+
dotButton: ot,
|
|
12
|
+
dotButtonDisabled: st,
|
|
13
|
+
dotOuter: rt,
|
|
14
|
+
dotInner: ct,
|
|
15
|
+
"dotButton--upcoming": "_dotButton--upcoming_187j3_108",
|
|
16
|
+
"dotButton--active": "_dotButton--active_187j3_120",
|
|
17
|
+
"dotButton--completed": "_dotButton--completed_187j3_142",
|
|
18
|
+
"dotButton--disabled": "_dotButton--disabled_187j3_153"
|
|
19
|
+
}, dt = (n, d) => {
|
|
20
|
+
if (n === d) return !0;
|
|
21
|
+
if (n.length !== d.length) return !1;
|
|
22
|
+
for (let u = 0; u < n.length; u++) {
|
|
23
|
+
const l = n[u], i = d[u];
|
|
24
|
+
if (l.key !== i.key || l.leftPx !== i.leftPx || l.topPx !== i.topPx || l.heightPx !== i.heightPx || l.variant !== i.variant)
|
|
25
|
+
return !1;
|
|
26
|
+
}
|
|
27
|
+
return !0;
|
|
28
|
+
}, ut = ({
|
|
29
|
+
items: n,
|
|
30
|
+
onDotClick: d,
|
|
31
|
+
dotOffsetPx: u = 18,
|
|
32
|
+
dotsClickable: l = !0,
|
|
33
|
+
activeId: i,
|
|
34
|
+
autoStatusFromActive: v = !0,
|
|
35
|
+
disabledIds: b = []
|
|
36
|
+
}) => {
|
|
37
|
+
const S = h(
|
|
38
|
+
() => ({ "--flowline-dot-offset": `${u}px` }),
|
|
39
|
+
[u]
|
|
40
|
+
), E = h(() => b.join("|"), [b]), B = h(() => {
|
|
41
|
+
var a, r;
|
|
42
|
+
const t = new Set(b), s = i ?? ((a = n.find((e) => e.status !== "disabled" && !t.has(e.id))) == null ? void 0 : a.id) ?? ((r = n[0]) == null ? void 0 : r.id), p = n.findIndex((e) => e.id === s);
|
|
43
|
+
return n.map((e, f) => e.status === "disabled" || t.has(e.id) ? "disabled" : v ? f < p ? "completed" : f === p ? "active" : "upcoming" : e.status ?? "upcoming");
|
|
44
|
+
}, [n, i, v, E]), G = h(() => B.join("|"), [B]), I = h(() => n.map((t) => t.id).join("|"), [n]), w = M(null), x = M(/* @__PURE__ */ new Map()), Y = h(() => (t) => (s) => {
|
|
45
|
+
x.current.set(t, s);
|
|
46
|
+
}, []), [z, K] = T([]);
|
|
47
|
+
return U(() => {
|
|
48
|
+
const t = w.current;
|
|
49
|
+
if (!t) return;
|
|
50
|
+
let s = null;
|
|
51
|
+
const p = () => {
|
|
52
|
+
const e = t.getBoundingClientRect(), f = [], j = n.map((c) => c.id);
|
|
53
|
+
for (let c = 0; c < j.length - 1; c++) {
|
|
54
|
+
const P = j[c], y = j[c + 1], A = x.current.get(P), N = x.current.get(y);
|
|
55
|
+
if (!A || !N) continue;
|
|
56
|
+
const g = A.getBoundingClientRect(), m = N.getBoundingClientRect(), L = Math.round(g.left + g.width / 2 - e.left), q = g.top + g.height / 2 - e.top, k = m.top + m.height / 2 - e.top, C = g.height / 2, F = m.height / 2, R = 2, O = Math.round(q + C + R), H = Math.round(k - F - R), J = Math.max(0, H - O), $ = B[c], Q = $ === "completed" ? "progress" : $ === "active" ? "gradient" : "default";
|
|
57
|
+
f.push({
|
|
58
|
+
key: `${P}__${y}`,
|
|
59
|
+
leftPx: L,
|
|
60
|
+
topPx: O,
|
|
61
|
+
heightPx: J,
|
|
62
|
+
variant: Q
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
K((c) => dt(c, f) ? c : f);
|
|
66
|
+
}, a = () => {
|
|
67
|
+
s == null && (s = requestAnimationFrame(() => {
|
|
68
|
+
s = null, p();
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
71
|
+
a();
|
|
72
|
+
const r = new ResizeObserver(a);
|
|
73
|
+
return r.observe(t), x.current.forEach((e) => {
|
|
74
|
+
e && r.observe(e);
|
|
75
|
+
}), window.addEventListener("resize", a), () => {
|
|
76
|
+
s != null && cancelAnimationFrame(s), r.disconnect(), window.removeEventListener("resize", a);
|
|
77
|
+
};
|
|
78
|
+
}, [I, G]), /* @__PURE__ */ _("div", { className: o.wrapper, style: S, children: /* @__PURE__ */ D("div", { ref: w, className: o.steps, children: [
|
|
79
|
+
z.map((t) => /* @__PURE__ */ _(
|
|
80
|
+
"span",
|
|
81
|
+
{
|
|
82
|
+
className: [
|
|
83
|
+
o.connectorAbs,
|
|
84
|
+
t.variant === "progress" ? o.connectorProgress : t.variant === "gradient" ? o.connectorGradient : o.connectorDefault
|
|
85
|
+
].join(" "),
|
|
86
|
+
style: {
|
|
87
|
+
left: `${t.leftPx}px`,
|
|
88
|
+
top: `${t.topPx}px`,
|
|
89
|
+
height: `${t.heightPx}px`
|
|
90
|
+
},
|
|
91
|
+
"aria-hidden": "true"
|
|
92
|
+
},
|
|
93
|
+
t.key
|
|
94
|
+
)),
|
|
95
|
+
n.map((t, s) => {
|
|
96
|
+
const p = B[s], r = l && !(p === "disabled") && !!d;
|
|
97
|
+
return /* @__PURE__ */ D("div", { className: o.row, children: [
|
|
98
|
+
/* @__PURE__ */ _(
|
|
99
|
+
"button",
|
|
100
|
+
{
|
|
101
|
+
type: "button",
|
|
102
|
+
className: [
|
|
103
|
+
o.dotButton,
|
|
104
|
+
o[`dotButton--${p}`],
|
|
105
|
+
r ? "" : o.dotButtonDisabled
|
|
106
|
+
].filter(Boolean).join(" "),
|
|
107
|
+
onClick: () => {
|
|
108
|
+
r && (d == null || d(t.id));
|
|
109
|
+
},
|
|
110
|
+
"aria-label": `Open step ${t.id}`,
|
|
111
|
+
disabled: !r,
|
|
112
|
+
children: /* @__PURE__ */ _("span", { ref: Y(t.id), className: o.dotOuter, children: /* @__PURE__ */ _("span", { className: o.dotInner }) })
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ _("div", { className: o.content, children: t.content })
|
|
116
|
+
] }, t.id);
|
|
117
|
+
})
|
|
118
|
+
] }) });
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
ut as Stepper
|
|
122
|
+
};
|
|
@@ -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
|
};
|
|
@@ -233,4 +233,10 @@ export declare const variables_dark: {
|
|
|
233
233
|
'--carrousel-0-gradient': string;
|
|
234
234
|
'--carrousel-100-gradient': string;
|
|
235
235
|
'--carrousel-card-img-title': string;
|
|
236
|
+
'--gradient-backgroundcard-100': string;
|
|
237
|
+
'--gradient-backgroundcard-0': string;
|
|
238
|
+
'--flow-point-line-active': string;
|
|
239
|
+
'--flow-point-line-inactive': string;
|
|
240
|
+
'--flow-gradient-light': string;
|
|
241
|
+
'--flow-gradient-dark': string;
|
|
236
242
|
};
|
|
@@ -232,7 +232,13 @@ const r = {
|
|
|
232
232
|
"--spinner-icons": "var(--general-text-icons)",
|
|
233
233
|
"--carrousel-0-gradient": "#2F2B37",
|
|
234
234
|
"--carrousel-100-gradient": "var(--background-primary)",
|
|
235
|
-
"--carrousel-card-img-title": "var(--color-gray-trans-100)"
|
|
235
|
+
"--carrousel-card-img-title": "var(--color-gray-trans-100)",
|
|
236
|
+
"--gradient-backgroundcard-100": "var(--color-light-10)",
|
|
237
|
+
"--gradient-backgroundcard-0": "var(--color-light-0)",
|
|
238
|
+
"--flow-point-line-active": "var(--color-light-100)",
|
|
239
|
+
"--flow-point-line-inactive": "var(--color-light-30)",
|
|
240
|
+
"--flow-gradient-light": "var(--color-light-20)",
|
|
241
|
+
"--flow-gradient-dark": "var(--color-light-100)"
|
|
236
242
|
};
|
|
237
243
|
export {
|
|
238
244
|
r as variables_dark
|
|
@@ -233,4 +233,10 @@ export declare const variables_light: {
|
|
|
233
233
|
'--carrousel-0-gradient': string;
|
|
234
234
|
'--carrousel-100-gradient': string;
|
|
235
235
|
'--carrousel-card-img-title': string;
|
|
236
|
+
'--gradient-backgroundcard-100': string;
|
|
237
|
+
'--gradient-backgroundcard-0': string;
|
|
238
|
+
'--flow-point-line-active': string;
|
|
239
|
+
'--flow-point-line-inactive': string;
|
|
240
|
+
'--flow-gradient-light': string;
|
|
241
|
+
'--flow-gradient-dark': string;
|
|
236
242
|
};
|
|
@@ -232,7 +232,13 @@ const r = {
|
|
|
232
232
|
"--spinner-icons": "var(--color-purple-dark-900)",
|
|
233
233
|
"--carrousel-0-gradient": "#FFFFFF",
|
|
234
234
|
"--carrousel-100-gradient": "var(--background-primary)",
|
|
235
|
-
"--carrousel-card-img-title": "var(--color-gray-trans-100)"
|
|
235
|
+
"--carrousel-card-img-title": "var(--color-gray-trans-100)",
|
|
236
|
+
"--gradient-backgroundcard-100": "var(--color-sable-trans-20)",
|
|
237
|
+
"--gradient-backgroundcard-0": "var(--color-sable-trans-0)",
|
|
238
|
+
"--flow-point-line-active": "var(--color-purple-dark-900)",
|
|
239
|
+
"--flow-point-line-inactive": "var(--color-gray-trans-70)",
|
|
240
|
+
"--flow-gradient-light": "var(--color-gray-trans-70)",
|
|
241
|
+
"--flow-gradient-dark": "var(--color-purple-dark-900)"
|
|
236
242
|
};
|
|
237
243
|
export {
|
|
238
244
|
r as variables_light
|
package/dist/main.d.ts
CHANGED
|
@@ -33,4 +33,5 @@ export { DragAndDrop } from './components/drag-and-drop/DragAndDrop';
|
|
|
33
33
|
export { Loading } from './components/loading/Loading';
|
|
34
34
|
export { Carousel } from './components/carousel/Carousel';
|
|
35
35
|
export { FadeCarousel } from './components/carousel/FadeCarousel';
|
|
36
|
+
export { Stepper } from './components/stepper/Stepper';
|
|
36
37
|
export { ThemeProvider, useTheme } from './components/theme/ThemeContext';
|
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Button as t } from "./components/button/Button.js";
|
|
2
|
-
import { ButtonControlledScroll as
|
|
2
|
+
import { ButtonControlledScroll as m } from "./components/buttonControledScroll/ButtonControlledScroll.js";
|
|
3
3
|
import { Input as f } from "./components/input/Input.js";
|
|
4
4
|
import { Tabs as a } from "./components/tabs/Tabs.js";
|
|
5
5
|
import { IconButton as d } from "./components/icon-button/IconButton.js";
|
|
6
6
|
import { Tag as c } from "./components/tag/Tag.js";
|
|
7
7
|
import { Title as u } from "./components/title/Title.js";
|
|
8
|
-
import { TagCounter as
|
|
9
|
-
import { Checkbox as
|
|
8
|
+
import { TagCounter as T } from "./components/tag-counter/TagCounter.js";
|
|
9
|
+
import { Checkbox as I } from "./components/checkbox/Checkbox.js";
|
|
10
10
|
import { Tooltip as g } from "./components/tooltip/Tooltip.js";
|
|
11
11
|
import { Select as h } from "./components/select/Select.js";
|
|
12
12
|
import { Calendar as B } from "./components/calendar/Calendar.js";
|
|
@@ -26,27 +26,28 @@ import { SidePanel as Z } from "./components/panel/side-panel/SidePanel.js";
|
|
|
26
26
|
import { SidePanelHeader as $ } from "./components/panel/side-panel-header/SidePanelHeader.js";
|
|
27
27
|
import { InputLabel as ro } from "./components/input-label/InputLabel.js";
|
|
28
28
|
import { EditableField as to } from "./components/editable-field/EditableField.js";
|
|
29
|
-
import { EditableSelect as
|
|
29
|
+
import { EditableSelect as mo } from "./components/editable-select/EditableSelect.js";
|
|
30
30
|
import { Toast as fo } from "./components/toast/Toast.js";
|
|
31
31
|
import { DragAndDrop as ao } from "./components/drag-and-drop/DragAndDrop.js";
|
|
32
32
|
import { Loading as io } from "./components/loading/Loading.js";
|
|
33
33
|
import { Carousel as so } from "./components/carousel/Carousel.js";
|
|
34
|
-
import { FadeCarousel as
|
|
35
|
-
import {
|
|
34
|
+
import { FadeCarousel as So } from "./components/carousel/FadeCarousel.js";
|
|
35
|
+
import { Stepper as Co } from "./components/stepper/Stepper.js";
|
|
36
|
+
import { ThemeProvider as bo, useTheme as go } from "./components/theme/ThemeContext.js";
|
|
36
37
|
import './styles/Size.css';/* empty css */
|
|
37
38
|
export {
|
|
38
39
|
M as Accordion,
|
|
39
40
|
D as AccordionItem,
|
|
40
41
|
t as Button,
|
|
41
|
-
|
|
42
|
+
m as ButtonControlledScroll,
|
|
42
43
|
B as Calendar,
|
|
43
44
|
N as Card,
|
|
44
45
|
so as Carousel,
|
|
45
|
-
|
|
46
|
+
I as Checkbox,
|
|
46
47
|
ao as DragAndDrop,
|
|
47
48
|
to as EditableField,
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
mo as EditableSelect,
|
|
50
|
+
So as FadeCarousel,
|
|
50
51
|
v as Icon,
|
|
51
52
|
d as IconButton,
|
|
52
53
|
f as Input,
|
|
@@ -62,13 +63,14 @@ export {
|
|
|
62
63
|
z as SelectMultiItems,
|
|
63
64
|
Z as SidePanel,
|
|
64
65
|
$ as SidePanelHeader,
|
|
66
|
+
Co as Stepper,
|
|
65
67
|
X as Switch,
|
|
66
68
|
a as Tabs,
|
|
67
69
|
c as Tag,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
T as TagCounter,
|
|
71
|
+
bo as ThemeProvider,
|
|
70
72
|
u as Title,
|
|
71
73
|
fo as Toast,
|
|
72
74
|
g as Tooltip,
|
|
73
|
-
|
|
75
|
+
go as useTheme
|
|
74
76
|
};
|
|
@@ -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)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._wrapper_187j3_30{--stepper-left-col: 20px;--stepper-dot-button: 24px}._steps_187j3_35{position:relative;display:flex;flex-direction:column;gap:var(--spacing-xs-3)}._row_187j3_42{display:grid;grid-template-columns:var(--stepper-left-col) 1fr;column-gap:var(--spacing-xs-3);align-items:start}._connectorAbs_187j3_50{position:absolute;width:1px;transform:translate(-50%);border-radius:999px;pointer-events:none;z-index:0}._connectorProgress_187j3_60{background:var(--flow-point-line-active)}._connectorGradient_187j3_64{background:linear-gradient(to bottom,var(--flow-point-line-active),var(--flow-point-line-inactive))}._connectorDefault_187j3_69{background-image:linear-gradient(to bottom,var(--flow-point-line-inactive) 50%,transparent 0);background-size:2px 8px;background-repeat:repeat-y}._dotButton_187j3_75{margin-top:.625rem;width:var(--stepper-dot-button);height:var(--stepper-dot-button);padding:0;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;z-index:1}._dotButtonDisabled_187j3_90{cursor:default;opacity:.5}._dotOuter_187j3_96{display:flex;align-items:center;justify-content:center;border-radius:999px}._dotInner_187j3_103{border-radius:999px}._dotButton--upcoming_187j3_108 ._dotOuter_187j3_96{width:10px;height:10px;border:none;background:var(--flow-point-line-inactive)}._dotButton--upcoming_187j3_108 ._dotInner_187j3_103{display:none}._dotButton--active_187j3_120 ._dotOuter_187j3_96{width:16px;height:16px;border-radius:999px;border:1px solid var(--flow-point-line-active);background:transparent;padding:1px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}._dotButton--active_187j3_120 ._dotInner_187j3_103{width:10px;height:10px;border-radius:999px;background:var(--flow-point-line-active);display:block}._dotButton--completed_187j3_142 ._dotOuter_187j3_96{width:10px;height:10px;background:var(--flow-point-line-active)}._dotButton--completed_187j3_142 ._dotInner_187j3_103{display:none}._dotButton--disabled_187j3_153 ._dotOuter_187j3_96{width:10px;height:10px;border:none;background:var(--general-border-window);opacity:.6}._dotButton--disabled_187j3_153 ._dotInner_187j3_103{display:none}
|