@reportportal/ui-kit 0.0.1-alpha.53 → 0.0.1-alpha.54

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.
@@ -1,16 +1,16 @@
1
- import { jsxs as A, Fragment as I, jsx as n } from "react/jsx-runtime";
2
- import * as U from "react-datepicker";
3
- import { registerLocale as $ } from "react-datepicker";
1
+ import { jsxs as S, Fragment as U, jsx as o } from "react/jsx-runtime";
2
+ import $ from "react-datepicker/dist/es/index.js";
4
3
  import { c as R } from "./bind-06a7ff84.js";
5
4
  import { useMemo as E, useRef as B } from "react";
6
- import { F as G } from "./fieldText-78c1be1a.js";
7
- import { a as P, S as H } from "./calendarArrow-3e1339ea.js";
8
- import { D as T } from "./dropdown-6edea86c.js";
9
- const pe = (t, s) => {
10
- $(t, s);
11
- }, V = (t, s = 20) => {
12
- const l = t + s;
13
- return new Array(l - t).fill(void 0).map((g, e) => t - e);
5
+ import { F as D } from "./fieldText-78c1be1a.js";
6
+ import { a as T, S as G } from "./calendarArrow-3e1339ea.js";
7
+ import { D as L } from "./dropdown-6edea86c.js";
8
+ import { registerLocale as H } from "react-datepicker";
9
+ const pe = (r, s) => {
10
+ H(r, s);
11
+ }, V = (r, s = 20) => {
12
+ const l = r + s;
13
+ return new Array(l - r).fill(void 0).map((g, e) => r - e);
14
14
  }, O = "_header_a3cjx_1", W = "_disabled_a3cjx_25", q = "_dropdown_a3cjx_8", z = {
15
15
  header: O,
16
16
  "dropdowns-wrapper": "_dropdowns-wrapper_a3cjx_8",
@@ -21,7 +21,7 @@ const pe = (t, s) => {
21
21
  "month-dropdown": "_month-dropdown_a3cjx_44",
22
22
  "toggle-button": "_toggle-button_a3cjx_47"
23
23
  }, a = R.bind(z), J = ({
24
- date: t = /* @__PURE__ */ new Date(),
24
+ date: r = /* @__PURE__ */ new Date(),
25
25
  changeYear: s = () => {
26
26
  },
27
27
  changeMonth: l = () => {
@@ -30,45 +30,45 @@ const pe = (t, s) => {
30
30
  },
31
31
  increaseMonth: e = () => {
32
32
  },
33
- prevMonthButtonDisabled: o = !1,
33
+ prevMonthButtonDisabled: n = !1,
34
34
  nextMonthButtonDisabled: h = !1,
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
37
  yearsOptions: i = [],
38
- locale: j
38
+ locale: x
39
39
  }) => {
40
- const p = t.getFullYear(), C = t.getMonth(), f = E(() => {
41
- const r = Array(12).keys(), c = new Intl.DateTimeFormat(j, {
40
+ const p = r.getFullYear(), C = r.getMonth(), f = E(() => {
41
+ const t = Array(12).keys(), c = new Intl.DateTimeFormat(x, {
42
42
  month: "long"
43
43
  }), d = (m) => c.format(new Date(p, m));
44
- return Array.from(r, d).reduce((m, x, k) => m.concat({
45
- value: k,
46
- label: x
44
+ return Array.from(t, d).reduce((m, j, A) => m.concat({
45
+ value: A,
46
+ label: j
47
47
  }), []);
48
48
  }, []), N = E(() => (i.length > 0 ? i : V(p)).reduce(
49
49
  (c, d) => c.concat({ value: d, label: `${d}` }),
50
50
  []
51
- ), [i]), v = (r) => {
52
- l(r);
53
- }, y = (r) => {
54
- s(r);
51
+ ), [i]), v = (t) => {
52
+ l(t);
53
+ }, y = (t) => {
54
+ s(t);
55
55
  };
56
- return /* @__PURE__ */ A(I, { children: [
57
- b && /* @__PURE__ */ n("div", { className: a(w), children: b }),
58
- /* @__PURE__ */ A("div", { className: a("header"), children: [
59
- /* @__PURE__ */ n(
56
+ return /* @__PURE__ */ S(U, { children: [
57
+ b && /* @__PURE__ */ o("div", { className: a(w), children: b }),
58
+ /* @__PURE__ */ S("div", { className: a("header"), children: [
59
+ /* @__PURE__ */ o(
60
60
  "button",
61
61
  {
62
62
  "aria-label": "Previous Months",
63
- disabled: o,
63
+ disabled: n,
64
64
  onClick: g,
65
- className: a("button-prev", { disabled: o }),
66
- children: /* @__PURE__ */ n(P, {})
65
+ className: a("button-prev", { disabled: n }),
66
+ children: /* @__PURE__ */ o(T, {})
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ A("div", { className: a("dropdowns-wrapper"), children: [
70
- /* @__PURE__ */ n(
71
- T,
69
+ /* @__PURE__ */ S("div", { className: a("dropdowns-wrapper"), children: [
70
+ /* @__PURE__ */ o(
71
+ L,
72
72
  {
73
73
  options: f,
74
74
  value: C,
@@ -78,8 +78,8 @@ const pe = (t, s) => {
78
78
  toggleButtonClassName: a("toggle-button")
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ n(
82
- T,
81
+ /* @__PURE__ */ o(
82
+ L,
83
83
  {
84
84
  options: N,
85
85
  value: p,
@@ -90,19 +90,19 @@ const pe = (t, s) => {
90
90
  }
91
91
  )
92
92
  ] }),
93
- /* @__PURE__ */ n(
93
+ /* @__PURE__ */ o(
94
94
  "button",
95
95
  {
96
96
  "aria-label": "Next Months",
97
97
  disabled: h,
98
98
  onClick: e,
99
99
  className: a("button-next", { disabled: h }),
100
- children: /* @__PURE__ */ n(P, {})
100
+ children: /* @__PURE__ */ o(T, {})
101
101
  }
102
102
  )
103
103
  ] })
104
104
  ] });
105
- }, K = "_calendar_1jr94_5", Q = "_date_1jr94_90", X = "_disabled_1jr94_202", Z = "_popper_1jr94_210", ee = "_input_1jr94_214", oe = {
105
+ }, K = "_calendar_1jr94_5", Q = "_date_1jr94_90", X = "_disabled_1jr94_202", Z = "_popper_1jr94_210", ee = "_input_1jr94_214", ne = {
106
106
  calendar: K,
107
107
  "current-date": "_current-date_1jr94_89",
108
108
  date: Q,
@@ -111,8 +111,8 @@ const pe = (t, s) => {
111
111
  disabled: X,
112
112
  popper: Z,
113
113
  input: ee
114
- }, ne = U.default, _ = R.bind(oe), te = "en", L = "MM-dd-yyyy", me = ({
115
- onChange: t = () => {
114
+ }, _ = R.bind(ne), oe = "en", P = "MM-dd-yyyy", me = ({
115
+ onChange: r = () => {
116
116
  },
117
117
  disabled: s = !1,
118
118
  onBlur: l = () => {
@@ -120,55 +120,55 @@ const pe = (t, s) => {
120
120
  onFocus: g = () => {
121
121
  },
122
122
  endDate: e = void 0,
123
- startDate: o = void 0,
123
+ startDate: n = void 0,
124
124
  headerNodes: h = null,
125
125
  customClassName: b = "",
126
126
  customTimeInput: w = void 0,
127
127
  shouldCloseOnSelect: i = !0,
128
- popperClassName: j = "",
128
+ popperClassName: x = "",
129
129
  calendarClassName: p = "",
130
130
  fixedHeight: C = !1,
131
- language: f = te,
131
+ language: f = oe,
132
132
  yearsOptions: N = [],
133
- placeholder: v = L.toUpperCase(),
134
- dateFormat: y = L,
135
- selects: r = "start",
133
+ placeholder: v = P.toUpperCase(),
134
+ dateFormat: y = P,
135
+ selects: t = "start",
136
136
  value: c = null
137
137
  }) => {
138
- const d = B(null), S = o == null ? void 0 : o.toDateString(), m = e == null ? void 0 : e.toDateString(), x = e && o && e > o, k = (u) => {
139
- const F = u.toDateString(), Y = F === S, M = x && F === m, D = o && e && u > o && u < e;
138
+ const d = B(null), k = n == null ? void 0 : n.toDateString(), m = e == null ? void 0 : e.toDateString(), j = e && n && e > n, A = (u) => {
139
+ const F = u.toDateString(), Y = F === k, M = j && F === m, I = n && e && u > n && u < e;
140
140
  return _("date", {
141
141
  "current-date": Y,
142
- "selected-range": D && !M,
143
- "end-date": M && x,
142
+ "selected-range": I && !M,
143
+ "end-date": M && j,
144
144
  disabled: s
145
145
  });
146
146
  };
147
- return /* @__PURE__ */ n(
148
- ne,
147
+ return /* @__PURE__ */ o(
148
+ $,
149
149
  {
150
- customInput: /* @__PURE__ */ n(
151
- G,
150
+ customInput: /* @__PURE__ */ o(
151
+ D,
152
152
  {
153
153
  className: _("input"),
154
154
  defaultWidth: !1,
155
- endIcon: /* @__PURE__ */ n(H, {}),
155
+ endIcon: /* @__PURE__ */ o(G, {}),
156
156
  ref: d
157
157
  }
158
158
  ),
159
159
  placeholderText: v,
160
160
  selected: c,
161
- startDate: o,
161
+ startDate: n,
162
162
  endDate: e,
163
- minDate: r === "end" ? o : void 0,
163
+ minDate: t === "end" ? n : void 0,
164
164
  disabled: s,
165
165
  shouldCloseOnSelect: i,
166
166
  fixedHeight: C,
167
167
  locale: f,
168
168
  showPopperArrow: !1,
169
- dayClassName: k,
169
+ dayClassName: A,
170
170
  calendarClassName: _(p, "calendar"),
171
- renderCustomHeader: (u) => /* @__PURE__ */ n(
171
+ renderCustomHeader: (u) => /* @__PURE__ */ o(
172
172
  J,
173
173
  {
174
174
  ...u,
@@ -178,15 +178,15 @@ const pe = (t, s) => {
178
178
  locale: f
179
179
  }
180
180
  ),
181
- onChange: t,
181
+ onChange: r,
182
182
  onBlur: l,
183
183
  onFocus: g,
184
184
  customTimeInput: w,
185
185
  showTimeInput: !!w,
186
- popperClassName: _(j, "popper"),
186
+ popperClassName: _(x, "popper"),
187
187
  dateFormat: y,
188
- selectsStart: r === "start",
189
- selectsEnd: r === "end",
188
+ selectsStart: t === "start",
189
+ selectsEnd: t === "end",
190
190
  className: _("datepicker")
191
191
  }
192
192
  );
@@ -1,7 +1,7 @@
1
- import { D as t } from "./datePicker-e7db2778.js";
2
- import { r as n } from "./datePicker-e7db2778.js";
1
+ import { D as t } from "./datePicker-a333d78b.js";
2
+ import { r as q } from "./datePicker-a333d78b.js";
3
3
  import "react/jsx-runtime";
4
- import "react-datepicker";
4
+ import "react-datepicker/dist/es/index.js";
5
5
  import "./bind-06a7ff84.js";
6
6
  import "react";
7
7
  import "./fieldText-78c1be1a.js";
@@ -19,8 +19,9 @@ import "./keyCodes-f63c0e11.js";
19
19
  import "./baseIconButton-251479f7.js";
20
20
  import "./dropdown-0260bb66.js";
21
21
  import "./checkbox-9a6c7ce1.js";
22
+ import "react-datepicker";
22
23
  export {
23
24
  t as DatePicker,
24
25
  t as default,
25
- n as registerDatePickerLocale
26
+ q as registerDatePickerLocale
26
27
  };
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { B as l } from "./button-33c88abf.js";
2
- import { B as S } from "./baseIconButton-251479f7.js";
3
- import { C } from "./checkbox-9a6c7ce1.js";
4
- import { S as b } from "./systemMessage-1ced6079.js";
5
- import { F as B } from "./fieldText-78c1be1a.js";
6
- import { T as P } from "./themeProvider-46c2be7b.js";
7
- import { Modal as g } from "./modal.js";
8
- import { D as v } from "./dropdown-6edea86c.js";
9
- import { T as M } from "./toggle-1a3aacb5.js";
10
- import { F as A } from "./fieldNumber-d81e551e.js";
11
- import { B as L } from "./bubblesLoader-a7e709d4.js";
12
- import { S as O } from "./spinLoader-c4a53718.js";
13
- import { F as H } from "./fieldTextFlex-314741ad.js";
14
- import { R as U } from "./radio-bccc84f2.js";
15
- import { Tooltip as q } from "./tooltip.js";
16
- import { Popover as J } from "./popover.js";
17
- import { P as Q } from "./pagination-066b1b2b.js";
18
- import { T as W } from "./table-32fc8c70.js";
19
- import { D as Y } from "./datePicker-e7db2778.js";
1
+ import { B as d } from "./button-33c88abf.js";
2
+ import { B as u } from "./baseIconButton-251479f7.js";
3
+ import { C as F } from "./checkbox-9a6c7ce1.js";
4
+ import { S as T } from "./systemMessage-1ced6079.js";
5
+ import { F as D } from "./fieldText-78c1be1a.js";
6
+ import { T as w } from "./themeProvider-46c2be7b.js";
7
+ import { Modal as h } from "./modal.js";
8
+ import { D as E } from "./dropdown-6edea86c.js";
9
+ import { T as y } from "./toggle-1a3aacb5.js";
10
+ import { F as k } from "./fieldNumber-d81e551e.js";
11
+ import { B as R } from "./bubblesLoader-a7e709d4.js";
12
+ import { S as z } from "./spinLoader-c4a53718.js";
13
+ import { F as N } from "./fieldTextFlex-314741ad.js";
14
+ import { R as j } from "./radio-bccc84f2.js";
15
+ import { Tooltip as G } from "./tooltip.js";
16
+ import { Popover as K } from "./popover.js";
17
+ import { P as V } from "./pagination-066b1b2b.js";
18
+ import { T as X } from "./table-32fc8c70.js";
19
+ import { D as Z } from "./datePicker-a333d78b.js";
20
20
  import "react-datepicker";
21
- import { SystemAlert as _ } from "./systemAlert.js";
22
- import { S as oo, a as ro } from "./arrowUp-4a5caee7.js";
23
- import { BreadcrumbsTreeIcon as to, ChevronDownDropdownIcon as ao, ChevronRightBreadcrumbsIcon as no, CopyIcon as po, DeleteIcon as mo, EditIcon as so, ExportIcon as co, ExternalLinkIcon as xo, FilterFilledIcon as Io, FilterOutlineIcon as io, FlagIcon as fo, HideIcon as lo, MaximizeIcon as So, MeatballMenuIcon as uo, SearchIcon as Co, SortIcon as Fo } from "./icons.js";
24
- import { a as To, S as Bo } from "./calendarArrow-3e1339ea.js";
25
- import { S as Po, a as wo, b as go } from "./openEye-7b9cf080.js";
26
- import { S as vo } from "./close-4b33d7c1.js";
27
- import { S as Mo } from "./dropdown-0260bb66.js";
28
- import { S as Ao, a as ko, b as Lo } from "./success-dc1914aa.js";
29
- import { S as Oo, a as zo } from "./plus-0929dda4.js";
30
- import { S as No, a as Uo } from "./prevPage-87faf576.js";
21
+ import { SystemAlert as $ } from "./systemAlert.js";
22
+ import { S as ro, a as eo } from "./arrowUp-4a5caee7.js";
23
+ import { BreadcrumbsTreeIcon as ao, ChevronDownDropdownIcon as no, ChevronRightBreadcrumbsIcon as po, CopyIcon as mo, DeleteIcon as so, EditIcon as co, ExportIcon as xo, ExternalLinkIcon as io, FilterFilledIcon as Io, FilterOutlineIcon as fo, FlagIcon as lo, HideIcon as So, MaximizeIcon as uo, MeatballMenuIcon as Co, SearchIcon as Fo, SortIcon as bo } from "./icons.js";
24
+ import { a as Bo, S as Do } from "./calendarArrow-3e1339ea.js";
25
+ import { S as wo, a as go, b as ho } from "./openEye-7b9cf080.js";
26
+ import { S as Eo } from "./close-4b33d7c1.js";
27
+ import { S as yo } from "./dropdown-0260bb66.js";
28
+ import { S as ko, a as Lo, b as Ro } from "./success-dc1914aa.js";
29
+ import { S as zo, a as Ho } from "./plus-0929dda4.js";
30
+ import { S as Uo, a as jo } from "./prevPage-87faf576.js";
31
31
  import "react/jsx-runtime";
32
32
  import "react";
33
33
  import "./bind-06a7ff84.js";
@@ -39,57 +39,58 @@ import "./useOnClickOutside-c332f7d3.js";
39
39
  import "@floating-ui/react-dom";
40
40
  import "downshift";
41
41
  import "@floating-ui/react";
42
+ import "react-datepicker/dist/es/index.js";
42
43
  export {
43
- oo as ArrowDownIcon,
44
- ro as ArrowUpIcon,
45
- S as BaseIconButton,
46
- to as BreadcrumbsTreeIcon,
47
- L as BubblesLoader,
48
- l as Button,
49
- To as CalendarArrowIcon,
50
- Bo as CalendarIcon,
51
- C as Checkbox,
52
- ao as ChevronDownDropdownIcon,
53
- no as ChevronRightBreadcrumbsIcon,
54
- Po as ClearIcon,
55
- wo as CloseEyeIcon,
56
- vo as CloseIcon,
57
- po as CopyIcon,
58
- Y as DatePicker,
59
- mo as DeleteIcon,
60
- v as Dropdown,
61
- Mo as DropdownIcon,
62
- so as EditIcon,
63
- Ao as ErrorIcon,
64
- co as ExportIcon,
65
- xo as ExternalLinkIcon,
66
- A as FieldNumber,
67
- B as FieldText,
68
- H as FieldTextFlex,
44
+ ro as ArrowDownIcon,
45
+ eo as ArrowUpIcon,
46
+ u as BaseIconButton,
47
+ ao as BreadcrumbsTreeIcon,
48
+ R as BubblesLoader,
49
+ d as Button,
50
+ Bo as CalendarArrowIcon,
51
+ Do as CalendarIcon,
52
+ F as Checkbox,
53
+ no as ChevronDownDropdownIcon,
54
+ po as ChevronRightBreadcrumbsIcon,
55
+ wo as ClearIcon,
56
+ go as CloseEyeIcon,
57
+ Eo as CloseIcon,
58
+ mo as CopyIcon,
59
+ Z as DatePicker,
60
+ so as DeleteIcon,
61
+ E as Dropdown,
62
+ yo as DropdownIcon,
63
+ co as EditIcon,
64
+ ko as ErrorIcon,
65
+ xo as ExportIcon,
66
+ io as ExternalLinkIcon,
67
+ k as FieldNumber,
68
+ D as FieldText,
69
+ N as FieldTextFlex,
69
70
  Io as FilterFilledIcon,
70
- io as FilterOutlineIcon,
71
- fo as FlagIcon,
72
- lo as HideIcon,
73
- ko as InfoIcon,
74
- So as MaximizeIcon,
75
- uo as MeatballMenuIcon,
76
- Oo as MinusIcon,
77
- g as Modal,
78
- go as OpenEyeIcon,
79
- Q as Pagination,
80
- zo as PlusIcon,
81
- J as Popover,
82
- No as PrevChapterIcon,
83
- Uo as PrevPageIcon,
84
- U as Radio,
85
- Co as SearchIcon,
86
- Fo as SortIcon,
87
- O as SpinLoader,
88
- Lo as SuccessIcon,
89
- _ as SystemAlert,
90
- b as SystemMessage,
91
- W as Table,
92
- P as ThemeProvider,
93
- M as Toggle,
94
- q as Tooltip
71
+ fo as FilterOutlineIcon,
72
+ lo as FlagIcon,
73
+ So as HideIcon,
74
+ Lo as InfoIcon,
75
+ uo as MaximizeIcon,
76
+ Co as MeatballMenuIcon,
77
+ zo as MinusIcon,
78
+ h as Modal,
79
+ ho as OpenEyeIcon,
80
+ V as Pagination,
81
+ Ho as PlusIcon,
82
+ K as Popover,
83
+ Uo as PrevChapterIcon,
84
+ jo as PrevPageIcon,
85
+ j as Radio,
86
+ Fo as SearchIcon,
87
+ bo as SortIcon,
88
+ z as SpinLoader,
89
+ Ro as SuccessIcon,
90
+ $ as SystemAlert,
91
+ T as SystemMessage,
92
+ X as Table,
93
+ w as ThemeProvider,
94
+ y as Toggle,
95
+ G as Tooltip
95
96
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.53",
3
+ "version": "0.0.1-alpha.54",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {