@reportportal/ui-kit 0.0.1-alpha.67 → 0.0.1-alpha.69

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.
Files changed (47) hide show
  1. package/dist/button-33bc880f.js +64 -0
  2. package/dist/button.js +1 -1
  3. package/dist/{checkbox-9a6c7ce1.js → checkbox-aa91985d.js} +15 -15
  4. package/dist/checkbox.js +1 -1
  5. package/dist/components/fieldLabel/fieldLabel.d.ts +2 -2
  6. package/dist/components/fieldNumber/fieldNumber.d.ts +2 -2
  7. package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +2 -2
  8. package/dist/components/icons/index.d.ts +2 -0
  9. package/dist/{datePicker-06e90999.js → datePicker-382ef010.js} +57 -57
  10. package/dist/datePicker.js +6 -6
  11. package/dist/dropdown-13d7d50e.js +278 -0
  12. package/dist/dropdown.js +2 -2
  13. package/dist/fieldLabel.js +12 -7
  14. package/dist/fieldNumber-2542b311.js +128 -0
  15. package/dist/fieldNumber.js +2 -1
  16. package/dist/fieldText-e605a521.js +158 -0
  17. package/dist/fieldText.js +2 -2
  18. package/dist/fieldTextFlex-9e616f66.js +78 -0
  19. package/dist/fieldTextFlex.js +2 -1
  20. package/dist/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  21. package/dist/fonts/OpenSans/OpenSans-Medium.ttf +0 -0
  22. package/dist/icons.js +36 -34
  23. package/dist/index.js +53 -51
  24. package/dist/modal.js +81 -81
  25. package/dist/{pagination-91729c7d.js → pagination-ecbc9940.js} +53 -53
  26. package/dist/pagination.js +3 -3
  27. package/dist/popover.js +15 -15
  28. package/dist/{radio-bccc84f2.js → radio-62546efa.js} +27 -27
  29. package/dist/radio.js +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/systemAlert.js +28 -28
  32. package/dist/systemMessage-924fdaa6.js +30 -0
  33. package/dist/systemMessage.js +1 -1
  34. package/dist/table-20aa2cdf.js +142 -0
  35. package/dist/table.js +2 -2
  36. package/dist/toggle-304107fa.js +59 -0
  37. package/dist/toggle.js +1 -1
  38. package/dist/tooltip.js +15 -15
  39. package/package.json +1 -1
  40. package/dist/button-770f7b20.js +0 -64
  41. package/dist/dropdown-29285346.js +0 -278
  42. package/dist/fieldNumber-d81e551e.js +0 -125
  43. package/dist/fieldText-94e2c8eb.js +0 -158
  44. package/dist/fieldTextFlex-314741ad.js +0 -78
  45. package/dist/systemMessage-1ced6079.js +0 -30
  46. package/dist/table-02e40724.js +0 -142
  47. package/dist/toggle-1a3aacb5.js +0 -59
@@ -0,0 +1,64 @@
1
+ import { jsxs as p, jsx as b } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { c as u } from "./bind-06a7ff84.js";
4
+ const x = "_button_108em_1", f = "_primary_108em_18", g = "_disabled_108em_23", y = "_ghost_108em_38", N = "_danger_108em_59", B = "_text_108em_79", $ = "_icon_108em_133", j = {
5
+ button: x,
6
+ primary: f,
7
+ disabled: g,
8
+ ghost: y,
9
+ danger: N,
10
+ text: B,
11
+ "width-min-width": "_width-min-width_108em_115",
12
+ "width-content": "_width-content_108em_119",
13
+ "width-wide-content": "_width-wide-content_108em_123",
14
+ "width-parent": "_width-parent_108em_128",
15
+ icon: $,
16
+ "icon-start": "_icon-start_108em_139",
17
+ "icon-end": "_icon-end_108em_143"
18
+ }, _ = u.bind(j), v = l(
19
+ ({
20
+ variant: i = "primary",
21
+ icon: t,
22
+ iconPlace: n = "start",
23
+ adjustWidthOn: e = "min-width",
24
+ type: s = "button",
25
+ children: c,
26
+ disabled: o = !1,
27
+ onClick: m,
28
+ title: r,
29
+ className: d,
30
+ ...a
31
+ }, h) => {
32
+ const w = _("button", i, d, {
33
+ disabled: o,
34
+ [`width-${e}`]: e
35
+ });
36
+ return /* @__PURE__ */ p(
37
+ "button",
38
+ {
39
+ ref: h,
40
+ type: s,
41
+ disabled: o,
42
+ className: w,
43
+ onClick: m,
44
+ title: r,
45
+ ...a,
46
+ children: [
47
+ t && /* @__PURE__ */ b(
48
+ "i",
49
+ {
50
+ className: _("icon", {
51
+ [`icon-${n}`]: n
52
+ }),
53
+ children: t
54
+ }
55
+ ),
56
+ c
57
+ ]
58
+ }
59
+ );
60
+ }
61
+ );
62
+ export {
63
+ v as B
64
+ };
package/dist/button.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o } from "./button-770f7b20.js";
1
+ import { B as o } from "./button-33bc880f.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "./bind-06a7ff84.js";
@@ -1,32 +1,32 @@
1
- import { jsxs as x, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as x, jsx as n } from "react/jsx-runtime";
2
2
  import { c as f } from "./bind-06a7ff84.js";
3
3
  import { useRef as y, useId as C } from "react";
4
4
  import { K as p } from "./keyCodes-f63c0e11.js";
5
- const E = "_checkbox_189ko_1", D = "_disabled_189ko_11", K = "_input_189ko_16", N = "_control_189ko_23", I = "_children_189ko_149", R = {
5
+ const E = "_checkbox_1tbt5_1", D = "_disabled_1tbt5_11", K = "_input_1tbt5_16", N = "_control_1tbt5_23", I = "_children_1tbt5_149", R = {
6
6
  checkbox: E,
7
7
  disabled: D,
8
8
  input: K,
9
9
  control: N,
10
- "partially-checked": "_partially-checked_189ko_76",
10
+ "partially-checked": "_partially-checked_1tbt5_76",
11
11
  children: I
12
12
  }, e = f.bind(R), A = ({
13
- children: t,
13
+ children: s,
14
14
  disabled: c = !1,
15
15
  onChange: d,
16
16
  className: h,
17
17
  value: r,
18
- partiallyChecked: b,
18
+ partiallyChecked: k,
19
19
  title: l,
20
20
  ...u
21
21
  }) => {
22
- const o = y(null), a = C(), m = (n) => {
23
- var k, _;
24
- const { keyCode: i } = n;
22
+ const t = y(null), a = C(), m = (o) => {
23
+ var _, b;
24
+ const { keyCode: i } = o;
25
25
  if (i === p.SPACE_KEY_CODE) {
26
- n.preventDefault(), (k = o.current) == null || k.click();
26
+ o.preventDefault(), (_ = t.current) == null || _.click();
27
27
  return;
28
28
  }
29
- i === p.ENTER_KEY_CODE && (n.preventDefault(), (_ = o.current) == null || _.click());
29
+ i === p.ENTER_KEY_CODE && (o.preventDefault(), (b = t.current) == null || b.click());
30
30
  };
31
31
  return /* @__PURE__ */ x(
32
32
  "label",
@@ -37,14 +37,14 @@ const E = "_checkbox_189ko_1", D = "_disabled_189ko_11", K = "_input_189ko_16",
37
37
  }),
38
38
  title: l,
39
39
  children: [
40
- /* @__PURE__ */ s(
40
+ /* @__PURE__ */ n(
41
41
  "input",
42
42
  {
43
- ref: o,
43
+ ref: t,
44
44
  tabIndex: 0,
45
45
  type: "checkbox",
46
46
  onKeyDown: m,
47
- className: e("input", { "partially-checked": b }),
47
+ className: e("input", { "partially-checked": k }),
48
48
  disabled: c,
49
49
  onChange: d,
50
50
  checked: r,
@@ -52,7 +52,7 @@ const E = "_checkbox_189ko_1", D = "_disabled_189ko_11", K = "_input_189ko_16",
52
52
  ...u
53
53
  }
54
54
  ),
55
- /* @__PURE__ */ s(
55
+ /* @__PURE__ */ n(
56
56
  "span",
57
57
  {
58
58
  "aria-labelledby": a,
@@ -63,7 +63,7 @@ const E = "_checkbox_189ko_1", D = "_disabled_189ko_11", K = "_input_189ko_16",
63
63
  })
64
64
  }
65
65
  ),
66
- t && /* @__PURE__ */ s("span", { className: e("children", { disabled: c }), children: t })
66
+ s && /* @__PURE__ */ n("span", { className: e("children", { disabled: c }), children: s })
67
67
  ]
68
68
  }
69
69
  );
package/dist/checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "./checkbox-9a6c7ce1.js";
1
+ import { C as r } from "./checkbox-aa91985d.js";
2
2
  import "react/jsx-runtime";
3
3
  import "./bind-06a7ff84.js";
4
4
  import "react";
@@ -1,7 +1,7 @@
1
- import { DetailedHTMLProps, FC, LabelHTMLAttributes } from 'react';
1
+ import { DetailedHTMLProps, LabelHTMLAttributes } from 'react';
2
2
 
3
3
  interface FieldLabelProps extends DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
4
4
  isRequired?: boolean;
5
5
  }
6
- export declare const FieldLabel: FC<FieldLabelProps>;
6
+ export declare const FieldLabel: ({ children, isRequired, className, ...rest }: FieldLabelProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- import { FC, HTMLAttributes, FocusEventHandler } from 'react';
1
+ import { HTMLAttributes, FocusEventHandler } from 'react';
2
2
 
3
3
  type FieldNumberValue = number | string;
4
4
  interface FieldNumberProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'onFocus'> {
@@ -15,5 +15,5 @@ interface FieldNumberProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onCha
15
15
  touched?: boolean;
16
16
  onFocus?: () => void | FocusEventHandler<HTMLInputElement>;
17
17
  }
18
- export declare const FieldNumber: FC<FieldNumberProps>;
18
+ export declare const FieldNumber: ({ value, placeholder, disabled, onChange, onFocus, onBlur, label, postfix, min, max, title, error, touched, id, ...rest }: FieldNumberProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -1,4 +1,4 @@
1
- import { ChangeEventHandler, ComponentPropsWithRef, FC, FocusEventHandler, KeyboardEventHandler } from 'react';
1
+ import { ChangeEventHandler, ComponentPropsWithRef, FocusEventHandler, KeyboardEventHandler } from 'react';
2
2
 
3
3
  export interface FieldTextFlexProps extends ComponentPropsWithRef<'textarea'> {
4
4
  value: string;
@@ -13,4 +13,4 @@ export interface FieldTextFlexProps extends ComponentPropsWithRef<'textarea'> {
13
13
  onBlur?: FocusEventHandler<HTMLTextAreaElement>;
14
14
  onKeyUp?: KeyboardEventHandler<HTMLTextAreaElement>;
15
15
  }
16
- export declare const FieldTextFlex: FC<FieldTextFlexProps>;
16
+ export declare const FieldTextFlex: import('react').ForwardRefExoticComponent<Omit<FieldTextFlexProps, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
@@ -40,4 +40,6 @@ export { default as PriorityMediumIcon } from './svg/priorityMedium.svg';
40
40
  export { default as PriorityUnspecifiedIcon } from './svg/priorityUnspecified.svg';
41
41
  export { default as SearchIcon } from './svg/search.svg';
42
42
  export { default as SortIcon } from './svg/sort.svg';
43
+ export { default as StatusSuccessIcon } from './svg/statusSuccess.svg';
43
44
  export { default as SuccessIcon } from './svg/success.svg';
45
+ export { default as WarningIcon } from './svg/warning.svg';
@@ -1,25 +1,25 @@
1
- import { jsxs as S, Fragment as U, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as x, Fragment as U, jsx as t } from "react/jsx-runtime";
2
2
  import $ from "react-datepicker/dist/es/index.js";
3
3
  import { c as R } from "./bind-06a7ff84.js";
4
4
  import { useMemo as P, useRef as B } from "react";
5
- import { F as D } from "./fieldText-94e2c8eb.js";
6
- import { a as E, S as G } from "./calendarArrow-3e1339ea.js";
7
- import { D as T } from "./dropdown-29285346.js";
8
- import { registerLocale as H } from "react-datepicker";
5
+ import { F as D } from "./fieldText-e605a521.js";
6
+ import { a as E, S as j } from "./calendarArrow-3e1339ea.js";
7
+ import { D as T } from "./dropdown-13d7d50e.js";
8
+ import { registerLocale as G } from "react-datepicker";
9
9
  const pe = (r, s) => {
10
- H(r, s);
11
- }, V = (r, s = 20) => {
10
+ G(r, s);
11
+ }, H = (r, s = 20) => {
12
12
  const l = r + s;
13
13
  return new Array(l - r).fill(void 0).map((g, o) => r - o);
14
- }, O = "_header_a3cjx_1", W = "_disabled_a3cjx_25", q = "_dropdown_a3cjx_8", z = {
15
- header: O,
16
- "dropdowns-wrapper": "_dropdowns-wrapper_a3cjx_8",
17
- "button-prev": "_button-prev_a3cjx_13",
18
- "button-next": "_button-next_a3cjx_14",
19
- disabled: W,
20
- dropdown: q,
21
- "month-dropdown": "_month-dropdown_a3cjx_44",
22
- "toggle-button": "_toggle-button_a3cjx_47"
14
+ }, V = "_header_1q16i_1", O = "_disabled_1q16i_25", W = "_dropdown_1q16i_8", z = {
15
+ header: V,
16
+ "dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
17
+ "button-prev": "_button-prev_1q16i_13",
18
+ "button-next": "_button-next_1q16i_14",
19
+ disabled: O,
20
+ dropdown: W,
21
+ "month-dropdown": "_month-dropdown_1q16i_44",
22
+ "toggle-button": "_toggle-button_1q16i_47"
23
23
  }, a = R.bind(z), J = ({
24
24
  date: r = /* @__PURE__ */ new Date(),
25
25
  changeYear: s = () => {
@@ -35,27 +35,27 @@ const pe = (r, s) => {
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
37
  yearsOptions: i = [],
38
- locale: x
38
+ locale: C
39
39
  }) => {
40
- const p = r.getFullYear(), C = r.getMonth(), f = P(() => {
41
- const e = Array(12).keys(), c = new Intl.DateTimeFormat(x, {
40
+ const p = r.getFullYear(), N = r.getMonth(), f = P(() => {
41
+ const e = Array(12).keys(), d = new Intl.DateTimeFormat(C, {
42
42
  month: "long"
43
- }), d = (m) => c.format(new Date(p, m));
44
- return Array.from(e, d).reduce((m, j, A) => m.concat({
45
- value: A,
46
- label: j
43
+ }), c = (m) => d.format(new Date(p, m));
44
+ return Array.from(e, c).reduce((m, k, S) => m.concat({
45
+ value: S,
46
+ label: k
47
47
  }), []);
48
- }, []), N = P(() => (i.length > 0 ? i : V(p)).reduce(
49
- (c, d) => c.concat({ value: d, label: `${d}` }),
48
+ }, []), v = P(() => (i.length > 0 ? i : H(p)).reduce(
49
+ (d, c) => d.concat({ value: c, label: `${c}` }),
50
50
  []
51
- ), [i]), v = (e) => {
51
+ ), [i]), y = (e) => {
52
52
  l(e);
53
- }, y = (e) => {
53
+ }, A = (e) => {
54
54
  s(e);
55
55
  };
56
- return /* @__PURE__ */ S(U, { children: [
56
+ return /* @__PURE__ */ x(U, { children: [
57
57
  b && /* @__PURE__ */ t("div", { className: a(w), children: b }),
58
- /* @__PURE__ */ S("div", { className: a("header"), children: [
58
+ /* @__PURE__ */ x("div", { className: a("header"), children: [
59
59
  /* @__PURE__ */ t(
60
60
  "button",
61
61
  {
@@ -68,13 +68,13 @@ const pe = (r, s) => {
68
68
  children: /* @__PURE__ */ t(E, {})
69
69
  }
70
70
  ),
71
- /* @__PURE__ */ S("div", { className: a("dropdowns-wrapper"), children: [
71
+ /* @__PURE__ */ x("div", { className: a("dropdowns-wrapper"), children: [
72
72
  /* @__PURE__ */ t(
73
73
  T,
74
74
  {
75
75
  options: f,
76
- value: C,
77
- onChange: v,
76
+ value: N,
77
+ onChange: y,
78
78
  transparentBackground: !0,
79
79
  className: a("dropdown", "month-dropdown"),
80
80
  toggleButtonClassName: a("toggle-button")
@@ -83,9 +83,9 @@ const pe = (r, s) => {
83
83
  /* @__PURE__ */ t(
84
84
  T,
85
85
  {
86
- options: N,
86
+ options: v,
87
87
  value: p,
88
- onChange: y,
88
+ onChange: A,
89
89
  transparentBackground: !0,
90
90
  className: a("dropdown"),
91
91
  toggleButtonClassName: a("toggle-button")
@@ -106,12 +106,12 @@ const pe = (r, s) => {
106
106
  )
107
107
  ] })
108
108
  ] });
109
- }, K = "_calendar_1jr94_5", Q = "_date_1jr94_90", X = "_disabled_1jr94_202", Z = "_popper_1jr94_210", ee = "_input_1jr94_214", oe = {
109
+ }, K = "_calendar_1pok6_5", Q = "_date_1pok6_90", X = "_disabled_1pok6_202", Z = "_popper_1pok6_210", ee = "_input_1pok6_214", oe = {
110
110
  calendar: K,
111
- "current-date": "_current-date_1jr94_89",
111
+ "current-date": "_current-date_1pok6_89",
112
112
  date: Q,
113
- "selected-range": "_selected-range_1jr94_119",
114
- "end-date": "_end-date_1jr94_119",
113
+ "selected-range": "_selected-range_1pok6_119",
114
+ "end-date": "_end-date_1pok6_119",
115
115
  disabled: X,
116
116
  popper: Z,
117
117
  input: ee
@@ -129,22 +129,22 @@ const pe = (r, s) => {
129
129
  customClassName: b = "",
130
130
  customTimeInput: w = void 0,
131
131
  shouldCloseOnSelect: i = !0,
132
- popperClassName: x = "",
132
+ popperClassName: C = "",
133
133
  calendarClassName: p = "",
134
- fixedHeight: C = !1,
134
+ fixedHeight: N = !1,
135
135
  language: f = ne,
136
- yearsOptions: N = [],
137
- placeholder: v = L.toUpperCase(),
138
- dateFormat: y = L,
136
+ yearsOptions: v = [],
137
+ placeholder: y = L.toUpperCase(),
138
+ dateFormat: A = L,
139
139
  selects: e = "start",
140
- value: c = null
140
+ value: d = null
141
141
  }) => {
142
- const d = B(null), k = n == null ? void 0 : n.toDateString(), m = o == null ? void 0 : o.toDateString(), j = o && n && o > n, A = (u) => {
143
- const F = u.toDateString(), Y = F === k, M = j && F === m, I = n && o && u > n && u < o;
142
+ const c = B(null), F = n == null ? void 0 : n.toDateString(), m = o == null ? void 0 : o.toDateString(), k = o && n && o > n, S = (u) => {
143
+ const M = u.toDateString(), Y = M === F, q = k && M === m, I = n && o && u > n && u < o;
144
144
  return _("date", {
145
145
  "current-date": Y,
146
- "selected-range": I && !M,
147
- "end-date": M && j,
146
+ "selected-range": I && !q,
147
+ "end-date": q && k,
148
148
  disabled: s
149
149
  });
150
150
  };
@@ -156,21 +156,21 @@ const pe = (r, s) => {
156
156
  {
157
157
  className: _("input"),
158
158
  defaultWidth: !1,
159
- endIcon: /* @__PURE__ */ t(G, {}),
160
- ref: d
159
+ endIcon: /* @__PURE__ */ t(j, {}),
160
+ ref: c
161
161
  }
162
162
  ),
163
- placeholderText: v,
164
- selected: c,
163
+ placeholderText: y,
164
+ selected: d,
165
165
  startDate: n,
166
166
  endDate: o,
167
167
  minDate: e === "end" ? n : void 0,
168
168
  disabled: s,
169
169
  shouldCloseOnSelect: i,
170
- fixedHeight: C,
170
+ fixedHeight: N,
171
171
  locale: f,
172
172
  showPopperArrow: !1,
173
- dayClassName: A,
173
+ dayClassName: S,
174
174
  calendarClassName: _(p, "calendar"),
175
175
  renderCustomHeader: (u) => /* @__PURE__ */ t(
176
176
  J,
@@ -178,7 +178,7 @@ const pe = (r, s) => {
178
178
  ...u,
179
179
  headerNodes: h,
180
180
  customClassName: b,
181
- yearsOptions: N,
181
+ yearsOptions: v,
182
182
  locale: f
183
183
  }
184
184
  ),
@@ -187,8 +187,8 @@ const pe = (r, s) => {
187
187
  onFocus: g,
188
188
  customTimeInput: w,
189
189
  showTimeInput: !!w,
190
- popperClassName: _(x, "popper"),
191
- dateFormat: y,
190
+ popperClassName: _(C, "popper"),
191
+ dateFormat: A,
192
192
  selectsStart: e === "start",
193
193
  selectsEnd: e === "end",
194
194
  className: _("datepicker")
@@ -1,17 +1,17 @@
1
- import { D as t } from "./datePicker-06e90999.js";
2
- import { r as v } from "./datePicker-06e90999.js";
1
+ import { D as t } from "./datePicker-382ef010.js";
2
+ import { r as v } from "./datePicker-382ef010.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react-datepicker/dist/es/index.js";
5
5
  import "./bind-06a7ff84.js";
6
6
  import "react";
7
- import "./fieldText-94e2c8eb.js";
7
+ import "./fieldText-e605a521.js";
8
8
  import "./openEye-7b9cf080.js";
9
- import "./button-770f7b20.js";
9
+ import "./button-33bc880f.js";
10
10
  import "./spinLoader-c4a53718.js";
11
11
  import "./maxValueDisplay-9be01a75.js";
12
12
  import "./fieldLabel.js";
13
13
  import "./calendarArrow-3e1339ea.js";
14
- import "./dropdown-29285346.js";
14
+ import "./dropdown-13d7d50e.js";
15
15
  import "@floating-ui/react-dom";
16
16
  import "downshift";
17
17
  import "rc-scrollbars";
@@ -19,7 +19,7 @@ import "./useOnClickOutside-c332f7d3.js";
19
19
  import "./keyCodes-f63c0e11.js";
20
20
  import "./baseIconButton-251479f7.js";
21
21
  import "./dropdown-0260bb66.js";
22
- import "./checkbox-9a6c7ce1.js";
22
+ import "./checkbox-aa91985d.js";
23
23
  import "react-datepicker";
24
24
  export {
25
25
  t as DatePicker,