intergalactic 15.127.0 → 15.128.0-prerelease.0

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 (98) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/add-filter/package.json +1 -1
  3. package/bulk-textarea/BulkTextarea.d.ts +1 -1
  4. package/bulk-textarea/BulkTextarea.types.d.ts +23 -21
  5. package/bulk-textarea/components/InputField/InputField.d.ts +4 -4
  6. package/bulk-textarea/components/InputField/InputField.types.d.ts +4 -4
  7. package/bulk-textarea/lib/cjs/BulkTextarea.js +10 -8
  8. package/bulk-textarea/lib/cjs/BulkTextarea.js.map +1 -1
  9. package/bulk-textarea/lib/cjs/BulkTextarea.types.js.map +1 -1
  10. package/bulk-textarea/lib/cjs/components/InputField/InputField.js +39 -26
  11. package/bulk-textarea/lib/cjs/components/InputField/InputField.js.map +1 -1
  12. package/bulk-textarea/lib/cjs/components/InputField/InputField.types.js.map +1 -1
  13. package/bulk-textarea/lib/cjs/components/InputField/inputField.shadow.css +17 -7
  14. package/bulk-textarea/lib/es6/BulkTextarea.js +10 -8
  15. package/bulk-textarea/lib/es6/BulkTextarea.js.map +1 -1
  16. package/bulk-textarea/lib/es6/BulkTextarea.types.js.map +1 -1
  17. package/bulk-textarea/lib/es6/components/InputField/InputField.js +39 -26
  18. package/bulk-textarea/lib/es6/components/InputField/InputField.js.map +1 -1
  19. package/bulk-textarea/lib/es6/components/InputField/InputField.types.js.map +1 -1
  20. package/bulk-textarea/lib/es6/components/InputField/inputField.shadow.css +17 -7
  21. package/bulk-textarea/lib/esm/BulkTextarea.mjs +53 -50
  22. package/bulk-textarea/lib/esm/components/InputField/InputField.mjs +273 -259
  23. package/bulk-textarea/lib/types/BulkTextarea.d.ts +1 -1
  24. package/bulk-textarea/lib/types/BulkTextarea.types.d.ts +23 -21
  25. package/bulk-textarea/lib/types/components/InputField/InputField.d.ts +4 -4
  26. package/bulk-textarea/lib/types/components/InputField/InputField.types.d.ts +4 -4
  27. package/bulk-textarea/package.json +1 -1
  28. package/components.json +14 -14
  29. package/errors/lib/cjs/Error.js +9 -9
  30. package/errors/lib/es6/Error.js +9 -9
  31. package/errors/lib/esm/Error.mjs +40 -40
  32. package/errors/package.json +1 -1
  33. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  34. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  35. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +10 -4
  36. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
  37. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +18 -14
  38. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
  39. package/feedback-form/lib/cjs/style/slider-rating.shadow.css +1 -3
  40. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  41. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  42. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +10 -4
  43. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
  44. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +18 -14
  45. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
  46. package/feedback-form/lib/es6/style/slider-rating.shadow.css +1 -3
  47. package/feedback-form/lib/esm/FeedbackForm.mjs +39 -39
  48. package/feedback-form/lib/esm/component/checkbox-button/CheckboxButton.mjs +13 -13
  49. package/feedback-form/lib/esm/component/feedback-rating/FeedbackRating.mjs +85 -81
  50. package/feedback-form/lib/esm/component/slider-rating/SliderRating.mjs +83 -79
  51. package/feedback-form/package.json +1 -1
  52. package/illustration/lib/cjs/index.js +1 -1
  53. package/illustration/lib/es6/index.js +1 -1
  54. package/illustration/package.json +1 -1
  55. package/modal/lib/cjs/Modal.js +8 -8
  56. package/modal/lib/es6/Modal.js +8 -8
  57. package/modal/lib/esm/Modal.mjs +73 -73
  58. package/modal/package.json +1 -1
  59. package/outside-click/lib/cjs/OutsideClick.js +14 -7
  60. package/outside-click/lib/cjs/OutsideClick.js.map +1 -1
  61. package/outside-click/lib/es6/OutsideClick.js +14 -7
  62. package/outside-click/lib/es6/OutsideClick.js.map +1 -1
  63. package/outside-click/lib/esm/OutsideClick.mjs +39 -35
  64. package/outside-click/package.json +1 -1
  65. package/package.json +1 -1
  66. package/popper/lib/cjs/Popper.js +6 -6
  67. package/popper/lib/es6/Popper.js +6 -6
  68. package/popper/lib/esm/Popper.mjs +25 -25
  69. package/popper/package.json +1 -1
  70. package/select/lib/cjs/InputSearch.js +15 -19
  71. package/select/lib/cjs/InputSearch.js.map +1 -1
  72. package/select/lib/cjs/Select.js +8 -8
  73. package/select/lib/es6/InputSearch.js +15 -19
  74. package/select/lib/es6/InputSearch.js.map +1 -1
  75. package/select/lib/es6/Select.js +8 -8
  76. package/select/lib/esm/InputSearch.mjs +63 -65
  77. package/select/lib/esm/Select.mjs +122 -122
  78. package/select/package.json +1 -1
  79. package/side-panel/lib/cjs/SidePanel.js +16 -16
  80. package/side-panel/lib/es6/SidePanel.js +16 -16
  81. package/side-panel/lib/esm/SidePanel.mjs +77 -77
  82. package/side-panel/package.json +1 -1
  83. package/time-picker/lib/cjs/TimePicker.js +12 -12
  84. package/time-picker/lib/es6/TimePicker.js +12 -12
  85. package/time-picker/lib/esm/TimePicker.mjs +38 -38
  86. package/time-picker/package.json +1 -1
  87. package/tooltip/lib/cjs/Tooltip.js +9 -9
  88. package/tooltip/lib/es6/Tooltip.js +9 -9
  89. package/tooltip/lib/esm/Tooltip.mjs +103 -103
  90. package/tooltip/package.json +1 -1
  91. package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
  92. package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
  93. package/widget-empty/lib/esm/WidgetEmpty.mjs +32 -32
  94. package/widget-empty/package.json +1 -1
  95. package/wizard/lib/cjs/Wizard.js +12 -12
  96. package/wizard/lib/es6/Wizard.js +12 -12
  97. package/wizard/lib/esm/Wizard.mjs +103 -103
  98. package/wizard/package.json +1 -1
@@ -1,29 +1,29 @@
1
- import O from "@babel/runtime/helpers/esm/classCallCheck";
2
- import V from "@babel/runtime/helpers/esm/createClass";
1
+ import D from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import O from "@babel/runtime/helpers/esm/createClass";
3
3
  import d from "@babel/runtime/helpers/esm/assertThisInitialized";
4
- import q from "@babel/runtime/helpers/esm/inherits";
5
- import H from "@babel/runtime/helpers/esm/createSuper";
4
+ import V from "@babel/runtime/helpers/esm/inherits";
5
+ import q from "@babel/runtime/helpers/esm/createSuper";
6
6
  import i from "@babel/runtime/helpers/esm/defineProperty";
7
- import M, { assignProps as j, Component as G } from 'intergalactic/core';
8
- import m from "react";
9
- import { Box as J } from 'intergalactic/flex-box';
10
- import { InputField as K } from "./components/InputField/InputField.mjs";
11
- import { Counter as Q } from "./components/Counter.mjs";
12
- import { ClearAll as U } from "./components/ClearAll.mjs";
13
- import { ErrorsNavigation as W } from "./components/ErrorsNavigation.mjs";
14
- import { localizedMessages as X } from "./translations/__intergalactic-dynamic-locales.mjs";
15
- import Y from 'intergalactic/utils/lib/enhances/i18nEnhance';
16
- import Z from 'intergalactic/utils/lib/enhances/focusSourceEnhance';
17
- import rr from 'intergalactic/utils/lib/uniqueID';
18
- var E = /* @__PURE__ */ function(_) {
19
- q(x, _);
20
- var R = H(x);
21
- function x() {
7
+ import H, { assignProps as M, Component as j } from 'intergalactic/core';
8
+ import x from "react";
9
+ import { Box as G } from 'intergalactic/flex-box';
10
+ import { InputField as J } from "./components/InputField/InputField.mjs";
11
+ import { Counter as K } from "./components/Counter.mjs";
12
+ import { ClearAll as Q } from "./components/ClearAll.mjs";
13
+ import { ErrorsNavigation as U } from "./components/ErrorsNavigation.mjs";
14
+ import { localizedMessages as W } from "./translations/__intergalactic-dynamic-locales.mjs";
15
+ import X from 'intergalactic/utils/lib/enhances/i18nEnhance';
16
+ import Y from 'intergalactic/utils/lib/enhances/focusSourceEnhance';
17
+ import Z from 'intergalactic/utils/lib/uniqueID';
18
+ var I = /* @__PURE__ */ function(_) {
19
+ V(g, _);
20
+ var R = q(g);
21
+ function g() {
22
22
  var r;
23
- O(this, x);
23
+ D(this, g);
24
24
  for (var e = arguments.length, t = new Array(e), l = 0; l < e; l++)
25
25
  t[l] = arguments[l];
26
- return r = R.call.apply(R, [this].concat(t)), i(d(r), "inputFieldRef", /* @__PURE__ */ m.createRef()), i(d(r), "clearAllButtonRef", /* @__PURE__ */ m.createRef()), i(d(r), "nextButtonRef", /* @__PURE__ */ m.createRef()), i(d(r), "prevButtonRef", /* @__PURE__ */ m.createRef()), i(d(r), "counterRef", /* @__PURE__ */ m.createRef()), i(d(r), "state", {
26
+ return r = R.call.apply(R, [this].concat(t)), i(d(r), "inputFieldRef", /* @__PURE__ */ x.createRef()), i(d(r), "clearAllButtonRef", /* @__PURE__ */ x.createRef()), i(d(r), "nextButtonRef", /* @__PURE__ */ x.createRef()), i(d(r), "prevButtonRef", /* @__PURE__ */ x.createRef()), i(d(r), "counterRef", /* @__PURE__ */ x.createRef()), i(d(r), "state", {
27
27
  linesCount: 0,
28
28
  isEmptyText: !0,
29
29
  errorIndex: -1,
@@ -55,7 +55,7 @@ var E = /* @__PURE__ */ function(_) {
55
55
  };
56
56
  }), r;
57
57
  }
58
- return V(x, [{
58
+ return O(g, [{
59
59
  key: "uncontrolledProps",
60
60
  value: function() {
61
61
  return {
@@ -73,16 +73,16 @@ var E = /* @__PURE__ */ function(_) {
73
73
  }, {
74
74
  key: "getInputFieldProps",
75
75
  value: function() {
76
- var e = this, t = this.asProps, l = t.value, n = t.size, s = t.minRows, a = t.maxRows, h = t.lineValidation, u = t.placeholder, o = t.validateOn, C = t.onChange, B = t.linesDelimiters, b = t.maxLines, $ = t.disabled, k = t.readonly, L = t.pasteProps, S = t.lineProcessing, w = t.errors, c = w === void 0 ? [] : w, y = t.showErrors, g = this.state, T = g.errorIndex, z = g.prevError, A = g.linesCount, F = g.highlightErrorIndex;
76
+ var e = this, t = this.asProps, l = t.value, n = t.size, s = t.minRows, a = t.maxRows, h = t.lineValidation, u = t.placeholder, o = t.validateOn, B = t.linesDelimiters, $ = t.maxLines, b = t.disabled, k = t.readonly, L = t.pasteProps, S = t.lineProcessing, w = t.errors, v = w === void 0 ? [] : w, y = t.showErrors, E = this.state, T = E.errorIndex, z = E.prevError, A = E.linesCount, F = E.highlightErrorIndex;
77
77
  return i({
78
78
  value: l,
79
79
  size: n,
80
- state: y && (c == null ? void 0 : c.length) > 0 ? "invalid" : "normal",
81
- disabled: $,
80
+ state: y && (v == null ? void 0 : v.length) > 0 ? "invalid" : "normal",
81
+ disabled: b,
82
82
  readonly: k,
83
83
  minRows: s,
84
84
  maxRows: a,
85
- maxLines: b,
85
+ maxLines: $,
86
86
  placeholder: u,
87
87
  prevError: z,
88
88
  pasteProps: L,
@@ -93,26 +93,27 @@ var E = /* @__PURE__ */ function(_) {
93
93
  o != null && o.includes("blurLine") && e.handlers.showErrors(!0);
94
94
  },
95
95
  onBlur: function(f, p) {
96
+ var m, C;
96
97
  o != null && o.includes("blur") && (e.asProps.focusSourceRef.current === "keyboard" || p instanceof FocusEvent && p.relatedTarget !== e.clearAllButtonRef.current) && e.handlers.showErrors(!0), e.asProps.showErrors === !1 && (o != null && o.includes("blur") || o != null && o.includes("blurLine")) && setTimeout(function() {
97
- var v;
98
- (v = e.nextButtonRef.current) === null || v === void 0 || v.focus();
99
- }, 250), C == null || C(f, p);
98
+ var c;
99
+ (c = e.nextButtonRef.current) === null || c === void 0 || c.focus();
100
+ }, 250), (m = (C = e.props).onChange) === null || m === void 0 || m.call(C, f, p);
100
101
  },
101
102
  showErrors: y,
102
103
  validateOn: o,
103
104
  lineValidation: h,
104
- errors: c,
105
+ errors: v,
105
106
  onErrorsChange: function(f) {
106
- var p = f.length === 0 ? c[0] : void 0;
107
+ var p = f.length === 0 ? v[0] : void 0;
107
108
  e.handlers.errors(f), e.setState({
108
109
  prevError: p
109
110
  }), setTimeout(function() {
110
- var v = e.asProps, N = v.showErrors, P = v.errors;
111
- if (N) {
112
- var D = f.length === 0 ? "normal" : "invalid";
113
- e.handlers.state(D);
111
+ var m = e.asProps, C = m.showErrors, c = m.errors;
112
+ if (C) {
113
+ var N = f.length === 0 ? "normal" : "invalid";
114
+ e.handlers.state(N);
114
115
  }
115
- (P == null ? void 0 : P.length) === 0 && (e.handlers.showErrors(!1), setTimeout(function() {
116
+ (c == null ? void 0 : c.length) === 0 && (e.handlers.showErrors(!1), setTimeout(function() {
116
117
  e.setState({
117
118
  prevError: void 0
118
119
  });
@@ -122,7 +123,7 @@ var E = /* @__PURE__ */ function(_) {
122
123
  highlightErrorIndex: F,
123
124
  errorIndex: T,
124
125
  onErrorIndexChange: function(f) {
125
- var p = c[T];
126
+ var p = v[T];
126
127
  e.setState({
127
128
  errorIndex: f,
128
129
  prevError: p,
@@ -181,14 +182,14 @@ var E = /* @__PURE__ */ function(_) {
181
182
  key: "render",
182
183
  value: function() {
183
184
  var e = this.asProps;
184
- return /* @__PURE__ */ m.createElement(J, j({
185
+ return /* @__PURE__ */ x.createElement(G, M({
185
186
  __excludeProps: ["onBlur", "value", "placeholder"]
186
187
  }, e));
187
188
  }
188
- }]), x;
189
- }(G);
190
- i(E, "displayName", "BulkTextarea");
191
- i(E, "defaultProps", {
189
+ }]), g;
190
+ }(j);
191
+ i(I, "displayName", "BulkTextarea");
192
+ i(I, "defaultProps", {
192
193
  defaultValue: "",
193
194
  size: "m",
194
195
  defaultState: "normal",
@@ -200,13 +201,15 @@ i(E, "defaultProps", {
200
201
  defaultErrors: [],
201
202
  defaultShowErrors: !1
202
203
  });
203
- i(E, "enhance", [Y(X), Z(), rr()]);
204
- var gr = M(E, {
205
- InputField: K,
206
- Counter: Q,
207
- ClearAll: U,
208
- ErrorsNavigation: W
209
- });
204
+ i(I, "enhance", [X(W), Y(), Z()]);
205
+ var xr = function() {
206
+ return H(I, {
207
+ InputField: J,
208
+ Counter: K,
209
+ ClearAll: Q,
210
+ ErrorsNavigation: U
211
+ });
212
+ }();
210
213
  export {
211
- gr as default
214
+ xr as default
212
215
  };