@reportportal/ui-kit 0.0.1-alpha.90 → 0.0.1-alpha.91

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.
@@ -9,8 +9,8 @@ import { registerLocale as j } from "react-datepicker";
9
9
  const ie = (n, s) => {
10
10
  j(n, s);
11
11
  }, G = (n, s = 20) => {
12
- const l = n + s;
13
- return new Array(l - n).fill(void 0).map((g, o) => n - o);
12
+ const d = n + s;
13
+ return new Array(d - n).fill(void 0).map((g, t) => n - t);
14
14
  }, H = "_header_1q16i_1", V = "_disabled_1q16i_25", O = "_dropdown_1q16i_8", W = {
15
15
  header: H,
16
16
  "dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
@@ -24,33 +24,33 @@ const ie = (n, s) => {
24
24
  date: n = /* @__PURE__ */ new Date(),
25
25
  changeYear: s = () => {
26
26
  },
27
- changeMonth: l = () => {
27
+ changeMonth: d = () => {
28
28
  },
29
29
  decreaseMonth: g = () => {
30
30
  },
31
- increaseMonth: o = () => {
31
+ increaseMonth: t = () => {
32
32
  },
33
- prevMonthButtonDisabled: t = !1,
33
+ prevMonthButtonDisabled: o = !1,
34
34
  nextMonthButtonDisabled: h = !1,
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
37
  yearsOptions: i = [],
38
38
  locale: N
39
39
  }) => {
40
- const p = n.getFullYear(), v = n.getMonth(), y = P(() => {
41
- const e = Array(12).keys(), d = new Intl.DateTimeFormat(N, {
40
+ const p = n.getFullYear(), C = n.getMonth(), y = P(() => {
41
+ const e = Array(12).keys(), c = new Intl.DateTimeFormat(N, {
42
42
  month: "long"
43
- }), c = (m) => d.format(new Date(p, m));
44
- return Array.from(e, c).reduce((m, f, k) => m.concat({
45
- value: k,
43
+ }), l = (m) => c.format(new Date(p, m));
44
+ return Array.from(e, l).reduce((m, f, x) => m.concat({
45
+ value: x,
46
46
  label: f
47
47
  }), []);
48
- }, []), C = P(() => (i.length > 0 ? i : G(p)).reduce(
49
- (d, c) => d.concat({ value: c, label: `${c}` }),
48
+ }, []), v = P(() => (i.length > 0 ? i : G(p)).reduce(
49
+ (c, l) => c.concat({ value: l, label: `${l}` }),
50
50
  []
51
- ), [i]), x = (e) => {
52
- l(e);
53
- }, A = (e) => {
51
+ ), [i]), A = (e) => {
52
+ d(e);
53
+ }, k = (e) => {
54
54
  s(e);
55
55
  };
56
56
  return /* @__PURE__ */ F($, { children: [
@@ -61,11 +61,11 @@ const ie = (n, s) => {
61
61
  {
62
62
  type: "button",
63
63
  "aria-label": "Previous Months",
64
- disabled: t,
64
+ disabled: o,
65
65
  onClick: (e) => {
66
66
  e.stopPropagation(), g();
67
67
  },
68
- className: a("button-prev", { disabled: t }),
68
+ className: a("button-prev", { disabled: o }),
69
69
  children: /* @__PURE__ */ r(T, {})
70
70
  }
71
71
  ),
@@ -74,8 +74,8 @@ const ie = (n, s) => {
74
74
  E,
75
75
  {
76
76
  options: y,
77
- value: v,
78
- onChange: x,
77
+ value: C,
78
+ onChange: A,
79
79
  transparentBackground: !0,
80
80
  className: a("dropdown", "month-dropdown"),
81
81
  toggleButtonClassName: a("toggle-button")
@@ -84,9 +84,9 @@ const ie = (n, s) => {
84
84
  /* @__PURE__ */ r(
85
85
  E,
86
86
  {
87
- options: C,
87
+ options: v,
88
88
  value: p,
89
- onChange: A,
89
+ onChange: k,
90
90
  transparentBackground: !0,
91
91
  className: a("dropdown"),
92
92
  toggleButtonClassName: a("toggle-button")
@@ -100,7 +100,7 @@ const ie = (n, s) => {
100
100
  "aria-label": "Next Months",
101
101
  disabled: h,
102
102
  onClick: (e) => {
103
- e.stopPropagation(), o();
103
+ e.stopPropagation(), t();
104
104
  },
105
105
  className: a("button-next", { disabled: h }),
106
106
  children: /* @__PURE__ */ r(T, {})
@@ -117,32 +117,32 @@ const ie = (n, s) => {
117
117
  disabled: Q,
118
118
  popper: X,
119
119
  input: Z
120
- }, _ = R.bind(ee), oe = "en", L = "MM-dd-yyyy", pe = ({
120
+ }, _ = R.bind(ee), te = "en", L = "MM-dd-yyyy", pe = ({
121
121
  onChange: n = () => {
122
122
  },
123
123
  disabled: s = !1,
124
- onBlur: l = () => {
124
+ onBlur: d = () => {
125
125
  },
126
126
  onFocus: g = () => {
127
127
  },
128
- endDate: o = void 0,
129
- startDate: t = void 0,
128
+ endDate: t = void 0,
129
+ startDate: o = void 0,
130
130
  headerNodes: h = null,
131
131
  customClassName: b = "",
132
132
  customTimeInput: w = void 0,
133
133
  shouldCloseOnSelect: i = !0,
134
134
  popperClassName: N = "",
135
135
  calendarClassName: p = "",
136
- fixedHeight: v = !1,
137
- language: y = oe,
138
- yearsOptions: C = [],
139
- placeholder: x = L.toUpperCase(),
140
- dateFormat: A = L,
136
+ fixedHeight: C = !1,
137
+ language: y = te,
138
+ yearsOptions: v = [],
139
+ placeholder: A = L.toUpperCase(),
140
+ dateFormat: k = L,
141
141
  selects: e = "start",
142
- value: d = null
142
+ value: c = null
143
143
  }) => {
144
- const c = D(null), S = t == null ? void 0 : t.toDateString(), m = o == null ? void 0 : o.toDateString(), f = o && t && o > t, k = (u) => {
145
- const M = u.toDateString(), Y = M === S, q = f && M === m, U = t && o && u > t && u < o;
144
+ const l = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), f = t && o && t > o, x = (u) => {
145
+ const M = u.toDateString(), Y = M === S, q = f && M === m, U = o && t && u > o && u < t;
146
146
  return _("date", {
147
147
  "current-date": Y,
148
148
  "selected-range": U && !q,
@@ -153,19 +153,17 @@ const ie = (n, s) => {
153
153
  return /* @__PURE__ */ r(
154
154
  B,
155
155
  {
156
- customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: c }),
157
- placeholderText: x,
158
- selected: d,
159
- startDate: t,
160
- endDate: o,
161
- minDate: e === "end" ? t : void 0,
162
- maxDate: e === "start" ? o : void 0,
156
+ customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: l }),
157
+ placeholderText: A,
158
+ selected: c,
159
+ startDate: o,
160
+ endDate: t,
163
161
  disabled: s,
164
162
  shouldCloseOnSelect: i,
165
- fixedHeight: v,
163
+ fixedHeight: C,
166
164
  locale: y,
167
165
  showPopperArrow: !1,
168
- dayClassName: k,
166
+ dayClassName: x,
169
167
  calendarClassName: _(p, "calendar"),
170
168
  renderCustomHeader: (u) => /* @__PURE__ */ r(
171
169
  z,
@@ -173,17 +171,17 @@ const ie = (n, s) => {
173
171
  ...u,
174
172
  headerNodes: h,
175
173
  customClassName: b,
176
- yearsOptions: C,
174
+ yearsOptions: v,
177
175
  locale: y
178
176
  }
179
177
  ),
180
178
  onChange: n,
181
- onBlur: l,
179
+ onBlur: d,
182
180
  onFocus: g,
183
181
  customTimeInput: w,
184
182
  showTimeInput: !!w,
185
183
  popperClassName: _(N, "popper"),
186
- dateFormat: A,
184
+ dateFormat: k,
187
185
  selectsStart: e === "start",
188
186
  selectsEnd: e === "end",
189
187
  className: _("datepicker")
@@ -1,5 +1,5 @@
1
- import { D as t } from "./datePicker-f8747600.js";
2
- import { r as v } from "./datePicker-f8747600.js";
1
+ import { D as t } from "./datePicker-c9d859b1.js";
2
+ import { r as v } from "./datePicker-c9d859b1.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react-datepicker/dist/es/index.js";
5
5
  import "./bind-06a7ff84.js";
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import { Popover as X } from "./popover.js";
18
18
  import { P as Z } from "./pagination-b001d791.js";
19
19
  import { S as $ } from "./selection-9124d029.js";
20
20
  import { T as ro } from "./table-920fdad9.js";
21
- import { D as to } from "./datePicker-f8747600.js";
21
+ import { D as to } from "./datePicker-c9d859b1.js";
22
22
  import "react-datepicker";
23
23
  import { SystemAlert as ao } from "./systemAlert.js";
24
24
  import { AddCsvIcon as po, AddImageIcon as mo, AddJarIcon as io, BreadcrumbsTreeIcon as so, CalendarIcon as Io, CheckmarkIcon as xo, ChevronDownDropdownIcon as fo, ChevronRightBreadcrumbsIcon as lo, CopyIcon as So, DeleteIcon as uo, DragAndDropIcon as Po, DragNDropIcon as Co, DurationIcon as Do, EditIcon as go, ExportIcon as Bo, ExternalLinkIcon as Fo, FilterFilledIcon as To, FilterOutlineIcon as bo, FlagIcon as yo, HideIcon as ho, MaximizeIcon as wo, MoveToFolderIcon as vo, PriorityBlockerIcon as Ao, PriorityCriticalIcon as Mo, PriorityHighIcon as ko, PriorityLowIcon as Eo, PriorityMediumIcon as Ro, PriorityUnspecifiedIcon as Lo, RefreshIcon as Ho, RerunIcon as No, SearchIcon as Oo, SortIcon as Uo, StatusSuccessIcon as zo, WarningIcon as Jo } from "./icons.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reportportal/ui-kit",
3
- "version": "0.0.1-alpha.90",
3
+ "version": "0.0.1-alpha.91",
4
4
  "description": "The UI-kit library for ReportPortal Design System.",
5
5
  "type": "module",
6
6
  "scripts": {