@reportportal/ui-kit 0.0.1-alpha.168 → 0.0.1-alpha.169
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/actionMenu-77a63b96.js +155 -0
- package/dist/actionMenu.js +30 -0
- package/dist/{breadcrumbs-8e5ca8d7.js → breadcrumbs-9b38b89c.js} +15 -14
- package/dist/breadcrumbs.js +3 -2
- package/dist/components/actionMenu/actionMenu.d.ts +33 -0
- package/dist/components/actionMenu/constants.d.ts +3 -0
- package/dist/components/actionMenu/index.d.ts +18 -0
- package/dist/components/datePicker/datePicker.d.ts +14 -7
- package/dist/components/fieldText/index.d.ts +2 -1
- package/dist/components/filterItem/filterItem.d.ts +18 -0
- package/dist/components/filterItem/index.d.ts +17 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/segmentedControl/index.d.ts +17 -0
- package/dist/components/segmentedControl/segmentedControl.d.ts +4 -0
- package/dist/components/segmentedControl/types.d.ts +18 -0
- package/dist/datePicker-ad4a758c.js +208 -0
- package/dist/datePicker.js +2 -2
- package/dist/filterItem.js +96 -0
- package/dist/icons.js +18 -17
- package/dist/index.js +164 -154
- package/dist/meatballMenu-535635a9.js +5 -0
- package/dist/segmentedControl.js +62 -0
- package/dist/style.css +15 -1
- package/dist/tree-e7a0ef42.js +5 -0
- package/package.json +3 -2
- package/dist/datePicker-9d52ba44.js +0 -194
- package/dist/tree-c3dd3d45.js +0 -6
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as P, useRef as A, useCallback as V, useEffect as C, isValidElement as F, Fragment as K } from "react";
|
|
3
|
+
import { S as R } from "./meatballMenu-535635a9.js";
|
|
4
|
+
import { B as U } from "./baseIconButton-251479f7.js";
|
|
5
|
+
import { Popover as z } from "./popover.js";
|
|
6
|
+
import { c as G } from "./bind-06a7ff84.js";
|
|
7
|
+
const H = "_disabled_184h2_69", J = "_divider_184h2_76", m = {
|
|
8
|
+
"action-menu": "_action-menu_184h2_16",
|
|
9
|
+
"actions-popover": "_actions-popover_184h2_20",
|
|
10
|
+
"action-dropdown": "_action-dropdown_184h2_24",
|
|
11
|
+
"action-menu-button": "_action-menu-button_184h2_29",
|
|
12
|
+
"action-item": "_action-item_184h2_42",
|
|
13
|
+
disabled: H,
|
|
14
|
+
divider: J
|
|
15
|
+
}, l = G.bind(m), ee = ({
|
|
16
|
+
className: p,
|
|
17
|
+
children: h,
|
|
18
|
+
...b
|
|
19
|
+
}) => /* @__PURE__ */ s("div", { className: l("action-item", p), tabIndex: -1, ...b, children: h }), ne = ({
|
|
20
|
+
placement: p = "bottom-end",
|
|
21
|
+
items: h = [],
|
|
22
|
+
cleanupDividers: b = !0,
|
|
23
|
+
className: D,
|
|
24
|
+
contentClassName: M,
|
|
25
|
+
buttonClassName: v,
|
|
26
|
+
popoverClassName: N,
|
|
27
|
+
menuClassName: E,
|
|
28
|
+
ariaLabel: S,
|
|
29
|
+
trigger: _,
|
|
30
|
+
disabled: a = !1
|
|
31
|
+
}) => {
|
|
32
|
+
const [u, d] = P(!1), c = A(null), y = A(/* @__PURE__ */ new Map()), O = V(
|
|
33
|
+
(e) => {
|
|
34
|
+
a || d(e);
|
|
35
|
+
},
|
|
36
|
+
[a]
|
|
37
|
+
);
|
|
38
|
+
C(() => {
|
|
39
|
+
u && c.current && requestAnimationFrame(() => {
|
|
40
|
+
requestAnimationFrame(() => {
|
|
41
|
+
var n;
|
|
42
|
+
const e = (n = c.current) == null ? void 0 : n.querySelector(
|
|
43
|
+
`button[role="menuitem"]:not([disabled]), .${m["action-item"]}`
|
|
44
|
+
);
|
|
45
|
+
e && e.focus();
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}, [u]);
|
|
49
|
+
const i = (e) => !!(e && typeof e == "object" && "type" in e && e.type === "divider"), q = (e) => i(e) ? !0 : typeof e == "object" && e !== null && "hasPermission" in e ? e.hasPermission !== !1 : !0, $ = (e) => {
|
|
50
|
+
var r, I, f, k, x, w;
|
|
51
|
+
const n = Array.from(
|
|
52
|
+
((r = c.current) == null ? void 0 : r.querySelectorAll(
|
|
53
|
+
`button[role="menuitem"]:not([disabled]), .${m["action-item"]}`
|
|
54
|
+
)) || []
|
|
55
|
+
), t = n.indexOf(document.activeElement);
|
|
56
|
+
if (e.key === "ArrowDown") {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
const o = t === -1 ? 0 : (t + 1) % n.length;
|
|
59
|
+
(I = n[o]) == null || I.focus();
|
|
60
|
+
} else if (e.key === "ArrowUp") {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
const o = t === -1 ? n.length - 1 : (t - 1 + n.length) % n.length;
|
|
63
|
+
(f = n[o]) == null || f.focus();
|
|
64
|
+
} else if (e.key === "Tab")
|
|
65
|
+
if (e.preventDefault(), e.shiftKey) {
|
|
66
|
+
const o = t === -1 ? n.length - 1 : (t - 1 + n.length) % n.length;
|
|
67
|
+
(k = n[o]) == null || k.focus();
|
|
68
|
+
} else {
|
|
69
|
+
const o = t === -1 ? 0 : (t + 1) % n.length;
|
|
70
|
+
(x = n[o]) == null || x.focus();
|
|
71
|
+
}
|
|
72
|
+
else if (e.key === "Enter") {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
const o = document.activeElement;
|
|
75
|
+
o && ((w = c.current) != null && w.contains(o)) && (o.click(), d(!1));
|
|
76
|
+
} else
|
|
77
|
+
e.key === "Escape" && (e.preventDefault(), d(!1));
|
|
78
|
+
}, j = (e) => {
|
|
79
|
+
const n = e.target, t = n.closest(`[role="menuitem"], .${m["action-item"]}`);
|
|
80
|
+
if (t && !t.hasAttribute("disabled")) {
|
|
81
|
+
if (n === t) {
|
|
82
|
+
const r = t.querySelector(
|
|
83
|
+
'a, button, [role="button"], [onclick]'
|
|
84
|
+
);
|
|
85
|
+
r && r.click();
|
|
86
|
+
}
|
|
87
|
+
d(!1);
|
|
88
|
+
}
|
|
89
|
+
}, B = (e, n) => i(e) ? /* @__PURE__ */ s("div", { className: l("divider") }, `divider-${n}`) : F(e) ? /* @__PURE__ */ s(K, { children: e }, n) : typeof e == "object" && e !== null && "label" in e ? e.hasPermission === !1 ? null : /* @__PURE__ */ s(
|
|
90
|
+
"button",
|
|
91
|
+
{
|
|
92
|
+
ref: (t) => {
|
|
93
|
+
t ? y.current.set(n, t) : y.current.delete(n);
|
|
94
|
+
},
|
|
95
|
+
type: "button",
|
|
96
|
+
role: "menuitem",
|
|
97
|
+
tabIndex: -1,
|
|
98
|
+
className: l("action-item", { disabled: e.disabled }, e.className),
|
|
99
|
+
disabled: e.disabled,
|
|
100
|
+
onClick: (t) => {
|
|
101
|
+
var r;
|
|
102
|
+
(r = e.onClick) == null || r.call(e, t);
|
|
103
|
+
},
|
|
104
|
+
children: e.label
|
|
105
|
+
},
|
|
106
|
+
e.id || `action-${n}`
|
|
107
|
+
) : null, g = ((e) => {
|
|
108
|
+
if (!b)
|
|
109
|
+
return e;
|
|
110
|
+
let n = e.filter((t) => t != null);
|
|
111
|
+
if (n.length === 0)
|
|
112
|
+
return n;
|
|
113
|
+
for (; n.length > 0 && i(n[0]); )
|
|
114
|
+
n.shift();
|
|
115
|
+
for (; n.length > 0 && i(n[n.length - 1]); )
|
|
116
|
+
n.pop();
|
|
117
|
+
return n = n.filter((t, r) => !i(t) || r === 0 ? !0 : !i(n[r - 1])), n = n.filter((t, r) => i(t) ? n.slice(r + 1).some((f) => q(f)) : !0), n;
|
|
118
|
+
})(h).map(B).filter(Boolean);
|
|
119
|
+
return g.length === 0 ? null : /* @__PURE__ */ s("div", { className: l("action-menu", D), children: /* @__PURE__ */ s(
|
|
120
|
+
z,
|
|
121
|
+
{
|
|
122
|
+
placement: p,
|
|
123
|
+
isOpened: a ? !1 : u,
|
|
124
|
+
setIsOpened: O,
|
|
125
|
+
content: /* @__PURE__ */ s(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
ref: c,
|
|
129
|
+
role: "menu",
|
|
130
|
+
tabIndex: -1,
|
|
131
|
+
onKeyDown: $,
|
|
132
|
+
onClick: j,
|
|
133
|
+
className: l("action-dropdown", E, M),
|
|
134
|
+
children: g
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
className: l("actions-popover", N),
|
|
138
|
+
children: _ ? /* @__PURE__ */ s("div", { className: v, children: _ }) : /* @__PURE__ */ s(
|
|
139
|
+
U,
|
|
140
|
+
{
|
|
141
|
+
className: l("action-menu-button", v),
|
|
142
|
+
disabled: a,
|
|
143
|
+
"aria-label": S || "Actions menu",
|
|
144
|
+
"aria-expanded": u,
|
|
145
|
+
"aria-haspopup": "menu",
|
|
146
|
+
children: /* @__PURE__ */ s(R, {})
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
) });
|
|
151
|
+
};
|
|
152
|
+
export {
|
|
153
|
+
ne as A,
|
|
154
|
+
ee as a
|
|
155
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { A as c, a as s } from "./actionMenu-77a63b96.js";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./meatballMenu-535635a9.js";
|
|
5
|
+
import "./baseIconButton-251479f7.js";
|
|
6
|
+
import "./bind-06a7ff84.js";
|
|
7
|
+
import "./popover.js";
|
|
8
|
+
import "@floating-ui/react";
|
|
9
|
+
import "./floatingUi-41f8c7b5.js";
|
|
10
|
+
/*!
|
|
11
|
+
* Copyright 2026 EPAM Systems
|
|
12
|
+
*
|
|
13
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
+
* you may not use this file except in compliance with the License.
|
|
15
|
+
* You may obtain a copy of the License at
|
|
16
|
+
*
|
|
17
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
+
*
|
|
19
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
+
* See the License for the specific language governing permissions and
|
|
23
|
+
* limitations under the License.
|
|
24
|
+
*/
|
|
25
|
+
const A = { type: "divider" };
|
|
26
|
+
export {
|
|
27
|
+
A as ACTION_MENU_DIVIDER,
|
|
28
|
+
c as ActionMenu,
|
|
29
|
+
s as ActionMenuItem
|
|
30
|
+
};
|
|
@@ -2,7 +2,8 @@ import { jsx as e, jsxs as p, Fragment as y } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as h } from "./bind-06a7ff84.js";
|
|
3
3
|
import { createContext as T, useContext as w, useRef as P, useState as g, useEffect as D } from "react";
|
|
4
4
|
import { Popover as N } from "./popover.js";
|
|
5
|
-
import { S as O
|
|
5
|
+
import { S as O } from "./meatballMenu-535635a9.js";
|
|
6
|
+
import { S as E } from "./tree-e7a0ef42.js";
|
|
6
7
|
const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */ e(B.Provider, { value: { LinkComponent: r }, children: l }), M = () => {
|
|
7
8
|
const l = w(B);
|
|
8
9
|
if (l === void 0)
|
|
@@ -19,17 +20,17 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
|
|
|
19
20
|
isClickable: k = !0,
|
|
20
21
|
variant: _ = "default"
|
|
21
22
|
}) => {
|
|
22
|
-
const { LinkComponent: s } = M(),
|
|
23
|
+
const { LinkComponent: s } = M(), a = P(null), [m, b] = g(null);
|
|
23
24
|
D(() => {
|
|
24
|
-
if (
|
|
25
|
-
const { offsetWidth:
|
|
26
|
-
if (
|
|
25
|
+
if (a.current) {
|
|
26
|
+
const { offsetWidth: i, scrollWidth: S, dataset: $ } = a.current;
|
|
27
|
+
if (i < S) {
|
|
27
28
|
const x = typeof r == "string" ? r : "";
|
|
28
|
-
|
|
29
|
+
$.tail = x.slice(x.length - l), b(x);
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}, [r, l]);
|
|
32
|
-
const n = /* @__PURE__ */ e("div", { ref:
|
|
33
|
+
const n = /* @__PURE__ */ e("div", { ref: a, className: v("breadcrumb-text", _), children: r });
|
|
33
34
|
return /* @__PURE__ */ e(
|
|
34
35
|
"div",
|
|
35
36
|
{
|
|
@@ -130,14 +131,14 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
|
|
|
130
131
|
"breadcrumbs-4": "_breadcrumbs-4_pxlum_55",
|
|
131
132
|
"breadcrumbs-5": "_breadcrumbs-5_pxlum_58",
|
|
132
133
|
"breadcrumbs-6-plus": "_breadcrumbs-6-plus_pxlum_58"
|
|
133
|
-
}, d = h.bind(Q), f = 5,
|
|
134
|
+
}, d = h.bind(Q), f = 5, re = ({
|
|
134
135
|
descriptors: l = [],
|
|
135
136
|
dataAutomationId: r,
|
|
136
137
|
LinkComponent: t,
|
|
137
138
|
tree: c,
|
|
138
139
|
isBackButton: k = !1
|
|
139
140
|
}) => {
|
|
140
|
-
const _ = [...l], s = _.shift(),
|
|
141
|
+
const _ = [...l], s = _.shift(), a = (n) => `breadcrumbs-${n > 5 ? "6-plus" : n}`, m = ((n) => ({
|
|
141
142
|
1: 55,
|
|
142
143
|
2: 24,
|
|
143
144
|
3: 18,
|
|
@@ -155,7 +156,7 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
|
|
|
155
156
|
"data-testid": r,
|
|
156
157
|
children: k && s ? /* @__PURE__ */ e("div", { className: d("breadcrumbs"), children: /* @__PURE__ */ e("div", { className: d("breadcrumb-item", "back-button"), "data-testid": "back-breadcrumb", children: /* @__PURE__ */ e(u, { descriptor: s, titleTailNumChars: m }) }) }) : /* @__PURE__ */ p(y, { children: [
|
|
157
158
|
c && /* @__PURE__ */ e("div", { className: d("tree"), children: /* @__PURE__ */ e(J, { tree: c }) }),
|
|
158
|
-
/* @__PURE__ */ p("div", { className: d("breadcrumbs",
|
|
159
|
+
/* @__PURE__ */ p("div", { className: d("breadcrumbs", a(l.length)), children: [
|
|
159
160
|
s && /* @__PURE__ */ e("div", { className: d("breadcrumb-item"), children: /* @__PURE__ */ e(
|
|
160
161
|
u,
|
|
161
162
|
{
|
|
@@ -165,19 +166,19 @@ const B = T(void 0), H = ({ children: l, LinkComponent: r }) => /* @__PURE__ */
|
|
|
165
166
|
}
|
|
166
167
|
) }),
|
|
167
168
|
b.length > 0 && /* @__PURE__ */ e("div", { className: d("breadcrumb-item", "hidden-breadcrumbs"), children: /* @__PURE__ */ e(X, { descriptors: b }) }),
|
|
168
|
-
_.length > 0 && _.map((n,
|
|
169
|
+
_.length > 0 && _.map((n, i) => /* @__PURE__ */ e("div", { className: d("breadcrumb-item"), children: /* @__PURE__ */ e(
|
|
169
170
|
u,
|
|
170
171
|
{
|
|
171
172
|
descriptor: n,
|
|
172
173
|
titleTailNumChars: m,
|
|
173
|
-
isClickable:
|
|
174
|
+
isClickable: i !== _.length - 1
|
|
174
175
|
}
|
|
175
|
-
) },
|
|
176
|
+
) }, i))
|
|
176
177
|
] })
|
|
177
178
|
] })
|
|
178
179
|
}
|
|
179
180
|
) });
|
|
180
181
|
};
|
|
181
182
|
export {
|
|
182
|
-
|
|
183
|
+
re as B
|
|
183
184
|
};
|
package/dist/breadcrumbs.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { B as m } from "./breadcrumbs-
|
|
1
|
+
import { B as m } from "./breadcrumbs-9b38b89c.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./bind-06a7ff84.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./popover.js";
|
|
6
6
|
import "@floating-ui/react";
|
|
7
7
|
import "./floatingUi-41f8c7b5.js";
|
|
8
|
-
import "./
|
|
8
|
+
import "./meatballMenu-535635a9.js";
|
|
9
|
+
import "./tree-e7a0ef42.js";
|
|
9
10
|
export {
|
|
10
11
|
m as Breadcrumbs,
|
|
11
12
|
m as default
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent, ReactElement } from 'react';
|
|
2
|
+
import { PopoverProps } from '../popover/popover';
|
|
3
|
+
|
|
4
|
+
export interface ActionItem {
|
|
5
|
+
id?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
onClick?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
hasPermission?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DividerItem {
|
|
13
|
+
type: 'divider';
|
|
14
|
+
}
|
|
15
|
+
export type MenuItem = ActionItem | DividerItem | ReactNode;
|
|
16
|
+
export declare const ActionMenuItem: ({ className, children, ...props }: {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface ActionMenuProps extends Pick<PopoverProps, 'placement'> {
|
|
22
|
+
items?: MenuItem[];
|
|
23
|
+
cleanupDividers?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
contentClassName?: string;
|
|
26
|
+
buttonClassName?: string;
|
|
27
|
+
popoverClassName?: string;
|
|
28
|
+
menuClassName?: string;
|
|
29
|
+
ariaLabel?: string;
|
|
30
|
+
trigger?: ReactNode;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const ActionMenu: ({ placement, items, cleanupDividers, className, contentClassName, buttonClassName, popoverClassName, menuClassName, ariaLabel, trigger, disabled, }: ActionMenuProps) => ReactElement | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { ActionMenu, ActionMenuItem } from './actionMenu';
|
|
17
|
+
export { ACTION_MENU_DIVIDER } from './constants';
|
|
18
|
+
export type { ActionMenuProps, ActionItem, DividerItem, MenuItem } from './actionMenu';
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type DateRangeValue = [Date | null, Date | null];
|
|
4
|
+
interface DatePickerBaseProps {
|
|
5
5
|
onBlur?: () => void;
|
|
6
6
|
onFocus?: () => void;
|
|
7
7
|
headerNodes?: ReactNode;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
shouldCloseOnSelect?: boolean;
|
|
10
10
|
fixedHeight?: boolean;
|
|
11
|
-
startDate?: Date | undefined;
|
|
12
|
-
endDate?: Date | undefined;
|
|
13
11
|
customClassName?: string;
|
|
14
12
|
popperClassName?: string;
|
|
15
13
|
calendarClassName?: string;
|
|
@@ -18,8 +16,17 @@ interface DatePickerProps {
|
|
|
18
16
|
yearsOptions?: number[];
|
|
19
17
|
placeholder?: string;
|
|
20
18
|
dateFormat?: string;
|
|
21
|
-
|
|
19
|
+
}
|
|
20
|
+
interface DatePickerSingleProps extends DatePickerBaseProps {
|
|
21
|
+
selectsRange?: false;
|
|
22
22
|
value?: Date | null;
|
|
23
|
+
onChange?: (date: Date | null) => void;
|
|
24
|
+
}
|
|
25
|
+
interface DatePickerRangeProps extends DatePickerBaseProps {
|
|
26
|
+
selectsRange: true;
|
|
27
|
+
value?: DateRangeValue;
|
|
28
|
+
onChange?: (dates: DateRangeValue) => void;
|
|
23
29
|
}
|
|
24
|
-
|
|
30
|
+
type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps;
|
|
31
|
+
export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
32
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ActionItem } from '../actionMenu';
|
|
3
|
+
|
|
4
|
+
export interface FilterItemProps {
|
|
5
|
+
id: string;
|
|
6
|
+
caption: string;
|
|
7
|
+
actions: ActionItem[];
|
|
8
|
+
onClick?: (id: string) => void;
|
|
9
|
+
onHover?: (id: string, isHovering: boolean) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
captionClassName?: string;
|
|
12
|
+
popoverClassName?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
editMode?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const FilterItem: ({ id, caption, actions, onClick, onHover, className, captionClassName, popoverClassName, disabled, selected, editMode, }: FilterItemProps) => ReactElement;
|
|
18
|
+
export default FilterItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { FilterItem } from './filterItem';
|
|
17
|
+
export type { FilterItemProps } from './filterItem';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { AdaptiveTagList } from './adaptiveTagList';
|
|
2
|
+
export { ActionMenu, ActionMenuItem } from './actionMenu';
|
|
3
|
+
export { ACTION_MENU_DIVIDER } from './actionMenu/constants';
|
|
2
4
|
export { AttachedFile } from './attachedFile';
|
|
3
5
|
export { BaseIconButton } from './baseIconButton';
|
|
4
6
|
export { Breadcrumbs } from './breadcrumbs';
|
|
@@ -15,12 +17,14 @@ export { FieldText } from './fieldText';
|
|
|
15
17
|
export { FieldTextFlex } from './fieldTextFlex';
|
|
16
18
|
export { FileDropArea } from './fileDropArea';
|
|
17
19
|
export { FiltersButton } from './filtersButton';
|
|
20
|
+
export { FilterItem } from './filterItem';
|
|
18
21
|
export { IssueList } from './issueList';
|
|
19
22
|
export { Modal } from './modal';
|
|
20
23
|
export { MultipleAutocomplete } from './autocompletes/multipleAutocomplete';
|
|
21
24
|
export { Pagination } from './pagination';
|
|
22
25
|
export { Popover } from './popover';
|
|
23
26
|
export { Radio } from './radio';
|
|
27
|
+
export { SegmentedControl } from './segmentedControl';
|
|
24
28
|
export { Selection } from './selection';
|
|
25
29
|
export { SpinLoader } from './spinLoader';
|
|
26
30
|
export { SystemAlert } from './systemAlert';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2026 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { SegmentedControl } from './segmentedControl';
|
|
17
|
+
export type { SegmentedControlProps, SegmentedControlValue, SegmentedControlOption } from './types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type SegmentedControlValue = string | number;
|
|
4
|
+
export type SegmentedControlOption = {
|
|
5
|
+
value: SegmentedControlValue;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export interface SegmentedControlProps {
|
|
13
|
+
options: SegmentedControlOption[];
|
|
14
|
+
onChange?: (value: SegmentedControlValue) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
fullWidth?: boolean;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
}
|