iguazio.dashboard-react-controls 2.1.0 → 2.1.2

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.
@@ -54,7 +54,7 @@ const Tooltip = _ref => {
54
54
  setShow(false);
55
55
  };
56
56
  const handleMouseLeave = (0, _react.useCallback)(event => {
57
- if (tooltipRef.current && !tooltipRef.current.contains(event.relatedTarget) && parentRef.current && !parentRef.current.contains(event.relatedTarget) || hidden) {
57
+ if (!tooltipRef.current || hidden || tooltipRef.current && !tooltipRef.current.contains(event.relatedTarget) && parentRef.current && !parentRef.current.contains(event.relatedTarget)) {
58
58
  setShow(false);
59
59
  }
60
60
  }, [hidden]);
@@ -115,7 +115,7 @@ const Wizard = _ref => {
115
115
  }
116
116
  defaultActions.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
117
117
  id: "wizard-btn-next",
118
- disabled: stepConfig.nextIsDisabled || isLastStep,
118
+ disabled: (stepConfig === null || stepConfig === void 0 ? void 0 : stepConfig.nextIsDisabled) || isLastStep,
119
119
  onClick: goToNextStep,
120
120
  label: 'Next',
121
121
  type: "button",
package/dist/constants.js CHANGED
@@ -78,6 +78,10 @@ const validation = exports.validation = {
78
78
  LABEL: 'No consecutive characters',
79
79
  NAME: 'noConsecutiveCharacters'
80
80
  },
81
+ NOT_CONTAIN: {
82
+ LABEL: 'Must not contain',
83
+ NAME: 'notContainCharacters'
84
+ },
81
85
  ONLY_AT_THE_BEGINNING: {
82
86
  LABEL: 'Only at the beginning',
83
87
  NAME: 'onlyAtTheBeginning'
@@ -70,6 +70,11 @@ $frenchLilac: #f0e2f6;
70
70
 
71
71
  :export {
72
72
  amethyst: $amethyst;
73
+ brightTurquoise: $brightTurquoise;
74
+ ceriseRed: $ceriseRed;
73
75
  cornflowerBlueTwo: $cornflowerBlueTwo;
76
+ doveGray: $doveGray;
77
+ grandis: $grandis;
78
+ java: $java;
74
79
  mulledWine: $mulledWine;
75
80
  }
@@ -185,6 +185,13 @@ const generateRule = {
185
185
  pattern: new RegExp('^' + convertedPattern)
186
186
  };
187
187
  },
188
+ notContainCharacters: chars => {
189
+ return {
190
+ name: _constants.validation.NOT_CONTAIN.NAME,
191
+ label: _constants.validation.NOT_CONTAIN.LABEL + ': ' + convertToLabel(chars),
192
+ pattern: new RegExp('^[^' + convertToPattern(chars) + ']+$')
193
+ };
194
+ },
188
195
  maxLengthBetweenDelimiters: (delimiter, maxLength, delimiterDescription) => {
189
196
  return {
190
197
  name: 'labelsLength',
@@ -327,7 +334,7 @@ const validationRules = {
327
334
  value: commonRules.k8sLabels.value
328
335
  },
329
336
  params: {
330
- key: [generateRule.beginEndNotWith('s')],
337
+ key: [generateRule.notContainCharacters('s')],
331
338
  value: [generateRule.beginEndNotWith('s')]
332
339
  },
333
340
  secrets: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",