@true-engineering/true-react-common-ui-kit 3.0.0-alpha.3 → 3.0.0-alpha.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-engineering/true-react-common-ui-kit",
3
- "version": "3.0.0-alpha.3",
3
+ "version": "3.0.0-alpha.5",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -1,6 +1,5 @@
1
1
  import { FormEvent, MouseEvent, forwardRef, ChangeEvent } from 'react';
2
2
  import clsx from 'clsx';
3
- import { addDataTestId, getTestId } from '@true-engineering/true-react-platform-helpers';
4
3
  import { addDataAttributes } from '../../helpers';
5
4
  import { useTweakStyles } from '../../hooks';
6
5
  import { ICommonProps } from '../../types';
@@ -33,7 +32,6 @@ export const DateInput = forwardRef<HTMLInputElement, IDateInputProps>(
33
32
  data,
34
33
  isRange,
35
34
  tweakStyles,
36
- testId,
37
35
  onClick,
38
36
  onChange,
39
37
  ...inputProps
@@ -70,12 +68,7 @@ export const DateInput = forwardRef<HTMLInputElement, IDateInputProps>(
70
68
  };
71
69
 
72
70
  return (
73
- <div
74
- className={clsx(classes.root, className)}
75
- onClick={onClick}
76
- {...addDataTestId(testId)}
77
- {...addDataAttributes(data)}
78
- >
71
+ <div className={clsx(classes.root, className)} onClick={onClick} {...addDataAttributes(data)}>
79
72
  <Input
80
73
  {...inputProps}
81
74
  ref={ref}
@@ -84,7 +77,6 @@ export const DateInput = forwardRef<HTMLInputElement, IDateInputProps>(
84
77
  placeholder={
85
78
  placeholder ?? (isRange ? EMPTY_DATE_RANGE_INPUT_VALUE : EMPTY_DATE_INPUT_VALUE)
86
79
  }
87
- testId={getTestId(testId, 'input')}
88
80
  tweakStyles={tweakInputStyles}
89
81
  onChange={handleChange}
90
82
  beforeMaskedStateChange={beforeMaskedStateChange}
@@ -4,7 +4,6 @@ import 'react-datepicker/dist/react-datepicker.css';
4
4
  import clsx from 'clsx';
5
5
  import { isAfter, isBefore, isValid } from 'date-fns';
6
6
  import {
7
- addDataTestId,
8
7
  isEmpty,
9
8
  isNotEmpty,
10
9
  isStringNotEmpty,
@@ -40,7 +39,6 @@ export const DatePicker = forwardRef<ReactDatePicker, IDatePickerProps>(
40
39
  (
41
40
  {
42
41
  data,
43
- testId,
44
42
  selectedDate = null,
45
43
  minDate,
46
44
  maxDate,
@@ -234,7 +232,7 @@ export const DatePicker = forwardRef<ReactDatePicker, IDatePickerProps>(
234
232
  }, [selectedDate, startDate, endDate]);
235
233
 
236
234
  return (
237
- <div className={classes.root} {...addDataTestId(testId)} {...addDataAttributes(data)}>
235
+ <div className={classes.root} {...addDataAttributes(data)}>
238
236
  <DatePickerComponent
239
237
  ref={ref}
240
238
  minDate={minDate}