indicator-ui 0.1.85 → 0.1.87

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 (29) hide show
  1. package/dist/index.css +148 -12
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.js +483 -113
  4. package/dist/index.js.map +1 -1
  5. package/dist/scss/ui/CheckboxMark/styles/mixins/properties/correct.scss +4 -6
  6. package/dist/types/src/const/imask.d.ts +18 -0
  7. package/dist/types/src/const/index.d.ts +1 -0
  8. package/dist/types/src/ui/TabButtons/index.d.ts +0 -1
  9. package/dist/types/src/ui/TabButtons/ui/TabButtons.d.ts +26 -2
  10. package/dist/types/src/ui/TabFrame/index.d.ts +0 -1
  11. package/dist/types/src/ui/TabFrame/ui/TabFrame.d.ts +13 -2
  12. package/dist/types/src/ui/formFields/FormDateField/ui/FormDateField.d.ts +1 -11
  13. package/dist/types/src/ui/formFields/FormDateRangeField/index.d.ts +1 -0
  14. package/dist/types/src/ui/formFields/FormDateRangeField/styles/index.d.ts +3 -0
  15. package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.d.ts +26 -0
  16. package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateTimeRangeField.d.ts +5 -0
  17. package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormTimeRangeField.d.ts +5 -0
  18. package/dist/types/src/ui/formFields/FormDateRangeField/ui/InputInnerButton.d.ts +5 -0
  19. package/dist/types/src/ui/formFields/FormDateRangeField/ui/Mask.d.ts +14 -0
  20. package/dist/types/src/ui/formFields/FormDateRangeField/ui/index.d.ts +3 -0
  21. package/dist/types/src/ui/formFields/FormField/ui/FormFieldBase.d.ts +2 -5
  22. package/dist/types/src/ui/formFields/FormRadioField/ui/FieldItem.d.ts +1 -0
  23. package/dist/types/src/ui/formFields/FormRadioField/ui/FormRadioField.d.ts +1 -0
  24. package/dist/types/src/ui/formFields/index.d.ts +1 -0
  25. package/package.json +1 -1
  26. package/dist/types/src/ui/TabButtons/types/TabButtonsTypes.d.ts +0 -24
  27. package/dist/types/src/ui/TabButtons/types/index.d.ts +0 -1
  28. package/dist/types/src/ui/TabFrame/types/TabFrameTypes.d.ts +0 -10
  29. package/dist/types/src/ui/TabFrame/types/index.d.ts +0 -1
package/dist/index.js CHANGED
@@ -53789,6 +53789,86 @@ __webpack_require__.r(__webpack_exports__);
53789
53789
  /* harmony import */ var _icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./icons */ "./src/assets/icons/index.ts");
53790
53790
 
53791
53791
 
53792
+ /***/ }),
53793
+
53794
+ /***/ "./src/const/imask.ts":
53795
+ /*!****************************!*\
53796
+ !*** ./src/const/imask.ts ***!
53797
+ \****************************/
53798
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
53799
+
53800
+ "use strict";
53801
+ __webpack_require__.r(__webpack_exports__);
53802
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
53803
+ /* harmony export */ DATE_IMASK_BLOCKS: () => (/* binding */ DATE_IMASK_BLOCKS)
53804
+ /* harmony export */ });
53805
+ /* harmony import */ var react_imask__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-imask */ "./node_modules/react-imask/esm/index.js");
53806
+
53807
+ /**
53808
+ * Пример: `dd.MM.yyyy`.
53809
+ *
53810
+ * ---
53811
+ *
53812
+ * * `dd` - день.
53813
+ * * `MM` - месяц.
53814
+ * * `yyyy` - год.
53815
+ * * `mm` - минуты.
53816
+ * * `HH` - часы.
53817
+ * * `ss` - секунды.
53818
+ *
53819
+ * **Замечание**: При указание формата вывода с разделителем `T`, указывайте его так `'T'`
53820
+ * */
53821
+ var DATE_IMASK_BLOCKS = {
53822
+ dd: {
53823
+ mask: react_imask__WEBPACK_IMPORTED_MODULE_0__.IMask.MaskedRange,
53824
+ from: 1,
53825
+ to: 31,
53826
+ maxLength: 2
53827
+ },
53828
+ MM: {
53829
+ mask: react_imask__WEBPACK_IMPORTED_MODULE_0__.IMask.MaskedRange,
53830
+ from: 1,
53831
+ to: 12,
53832
+ maxLength: 2
53833
+ },
53834
+ yyyy: {
53835
+ mask: react_imask__WEBPACK_IMPORTED_MODULE_0__.IMask.MaskedRange,
53836
+ from: 1900,
53837
+ to: 2100
53838
+ },
53839
+ HH: {
53840
+ mask: react_imask__WEBPACK_IMPORTED_MODULE_0__.IMask.MaskedRange,
53841
+ from: 0,
53842
+ to: 23
53843
+ },
53844
+ mm: {
53845
+ mask: react_imask__WEBPACK_IMPORTED_MODULE_0__.IMask.MaskedRange,
53846
+ from: 0,
53847
+ to: 59
53848
+ },
53849
+ ss: {
53850
+ mask: react_imask__WEBPACK_IMPORTED_MODULE_0__.IMask.MaskedRange,
53851
+ from: 0,
53852
+ to: 59
53853
+ }
53854
+ };
53855
+
53856
+ /***/ }),
53857
+
53858
+ /***/ "./src/const/index.ts":
53859
+ /*!****************************!*\
53860
+ !*** ./src/const/index.ts ***!
53861
+ \****************************/
53862
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
53863
+
53864
+ "use strict";
53865
+ __webpack_require__.r(__webpack_exports__);
53866
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
53867
+ /* harmony export */ DATE_IMASK_BLOCKS: () => (/* reexport safe */ _imask__WEBPACK_IMPORTED_MODULE_0__.DATE_IMASK_BLOCKS)
53868
+ /* harmony export */ });
53869
+ /* harmony import */ var _imask__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./imask */ "./src/const/imask.ts");
53870
+
53871
+
53792
53872
  /***/ }),
53793
53873
 
53794
53874
  /***/ "./src/hooks/controlsInput/index.ts":
@@ -73616,8 +73696,6 @@ __webpack_require__.r(__webpack_exports__);
73616
73696
  /* harmony export */ TabButtons: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_0__.TabButtons)
73617
73697
  /* harmony export */ });
73618
73698
  /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui */ "./src/ui/TabButtons/ui/index.ts");
73619
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types */ "./src/ui/TabButtons/types/index.ts");
73620
-
73621
73699
 
73622
73700
 
73623
73701
  /***/ }),
@@ -73634,7 +73712,7 @@ __webpack_require__.r(__webpack_exports__);
73634
73712
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
73635
73713
  /* harmony export */ });
73636
73714
  // extracted by mini-css-extract-plugin
73637
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"tabButtons":"TabButtons-module__tabButtons___vSLsZ","rightIcon":"TabButtons-module__rightIcon___Vllb5","leftIcon":"TabButtons-module__leftIcon___yDOkS","text":"TabButtons-module__text___EbNMB","active":"TabButtons-module__active___ShP43","disabled":"TabButtons-module__disabled___MlvE9","widthHug":"TabButtons-module__widthHug___Choqd","heightHug":"TabButtons-module__heightHug___jeoXZ","widthFill":"TabButtons-module__widthFill___MwxIJ","heightFill":"TabButtons-module__heightFill____mxL8","dark":"TabButtons-module__dark___E1fGg"});
73715
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"tabButtons":"TabButtons-module__tabButtons___vSLsZ","rightIcon":"TabButtons-module__rightIcon___Vllb5","leftIcon":"TabButtons-module__leftIcon___yDOkS","text":"TabButtons-module__text___EbNMB","active":"TabButtons-module__active___ShP43","disabled":"TabButtons-module__disabled___MlvE9","widthHug":"TabButtons-module__widthHug___Choqd","heightHug":"TabButtons-module__heightHug___jeoXZ","widthFill":"TabButtons-module__widthFill___MwxIJ","heightFill":"TabButtons-module__heightFill____mxL8","mark":"TabButtons-module__mark___KzC_H","markError":"TabButtons-module__markError___mVqJE","markInfo":"TabButtons-module__markInfo___KWoaN","markSuccess":"TabButtons-module__markSuccess___Us8lY","dark":"TabButtons-module__dark___E1fGg"});
73638
73716
 
73639
73717
  /***/ }),
73640
73718
 
@@ -73652,31 +73730,6 @@ __webpack_require__.r(__webpack_exports__);
73652
73730
  /* harmony import */ var _TabButtons_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TabButtons.module.scss */ "./src/ui/TabButtons/styles/TabButtons.module.scss");
73653
73731
 
73654
73732
 
73655
- /***/ }),
73656
-
73657
- /***/ "./src/ui/TabButtons/types/TabButtonsTypes.ts":
73658
- /*!****************************************************!*\
73659
- !*** ./src/ui/TabButtons/types/TabButtonsTypes.ts ***!
73660
- \****************************************************/
73661
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
73662
-
73663
- "use strict";
73664
- __webpack_require__.r(__webpack_exports__);
73665
-
73666
-
73667
- /***/ }),
73668
-
73669
- /***/ "./src/ui/TabButtons/types/index.ts":
73670
- /*!******************************************!*\
73671
- !*** ./src/ui/TabButtons/types/index.ts ***!
73672
- \******************************************/
73673
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
73674
-
73675
- "use strict";
73676
- __webpack_require__.r(__webpack_exports__);
73677
- /* harmony import */ var _TabButtonsTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TabButtonsTypes */ "./src/ui/TabButtons/types/TabButtonsTypes.ts");
73678
-
73679
-
73680
73733
  /***/ }),
73681
73734
 
73682
73735
  /***/ "./src/ui/TabButtons/ui/TabButtons.tsx":
@@ -73697,7 +73750,7 @@ __webpack_require__.r(__webpack_exports__);
73697
73750
  /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../styles */ "./src/ui/TabButtons/styles/index.ts");
73698
73751
  /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.mjs");
73699
73752
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
73700
- var _excluded = ["active", "iconLeft", "iconRight", "disabled", "text", "children", "customComponent", "height", "width", "additionStyles", "theme"];
73753
+ var _excluded = ["active", "iconLeft", "iconRight", "disabled", "text", "children", "customComponent", "height", "width", "additionStyles", "theme", "mark"];
73701
73754
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
73702
73755
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
73703
73756
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -73709,24 +73762,26 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
73709
73762
 
73710
73763
 
73711
73764
 
73712
- function TabButtons(_ref) {
73713
- var active = _ref.active,
73714
- iconLeft = _ref.iconLeft,
73715
- iconRight = _ref.iconRight,
73716
- disabled = _ref.disabled,
73717
- text = _ref.text,
73718
- children = _ref.children,
73719
- customComponent = _ref.customComponent,
73720
- _ref$height = _ref.height,
73721
- height = _ref$height === void 0 ? 'hug' : _ref$height,
73722
- _ref$width = _ref.width,
73723
- width = _ref$width === void 0 ? 'fill' : _ref$width,
73724
- additionStyles = _ref.additionStyles,
73725
- _ref$theme = _ref.theme,
73726
- theme = _ref$theme === void 0 ? "light" : _ref$theme,
73727
- props = _objectWithoutProperties(_ref, _excluded);
73765
+ function TabButtons(props) {
73766
+ var active = props.active,
73767
+ iconLeft = props.iconLeft,
73768
+ iconRight = props.iconRight,
73769
+ disabled = props.disabled,
73770
+ text = props.text,
73771
+ children = props.children,
73772
+ customComponent = props.customComponent,
73773
+ _props$height = props.height,
73774
+ height = _props$height === void 0 ? 'hug' : _props$height,
73775
+ _props$width = props.width,
73776
+ width = _props$width === void 0 ? 'fill' : _props$width,
73777
+ additionStyles = props.additionStyles,
73778
+ _props$theme = props.theme,
73779
+ theme = _props$theme === void 0 ? "light" : _props$theme,
73780
+ mark = props.mark,
73781
+ otherProps = _objectWithoutProperties(props, _excluded);
73728
73782
  var getClassName = function getClassName() {
73729
- return (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(_styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.tabButtons, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.active, !disabled && active), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.disabled, disabled), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.widthFill, width === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.widthHug, width === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.heightFill, height === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.heightHug, height === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.dark, theme === 'dark'), additionStyles);
73783
+ var _clsx;
73784
+ return (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(_styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.tabButtons, (_clsx = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_clsx, _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.active, !disabled && active), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.disabled, disabled), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.widthFill, width === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.widthHug, width === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.heightFill, height === 'fill'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.heightHug, height === 'hug'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.dark, theme === 'dark'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.mark, mark), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.markInfo, mark === 'info'), _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.markSuccess, mark === 'success'), _defineProperty(_clsx, _styles__WEBPACK_IMPORTED_MODULE_2__.TabButtonsStyle.markError, mark === 'error')), additionStyles);
73730
73785
  };
73731
73786
  var getMainContent = function getMainContent() {
73732
73787
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
@@ -73750,7 +73805,7 @@ function TabButtons(_ref) {
73750
73805
  }
73751
73806
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", _objectSpread(_objectSpread({
73752
73807
  type: 'button'
73753
- }, props), {}, {
73808
+ }, otherProps), {}, {
73754
73809
  disabled: disabled,
73755
73810
  className: getClassName(),
73756
73811
  children: getMainContent()
@@ -73787,8 +73842,6 @@ __webpack_require__.r(__webpack_exports__);
73787
73842
  /* harmony export */ TabFrame: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_0__.TabFrame)
73788
73843
  /* harmony export */ });
73789
73844
  /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui */ "./src/ui/TabFrame/ui/index.ts");
73790
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types */ "./src/ui/TabFrame/types/index.ts");
73791
-
73792
73845
 
73793
73846
 
73794
73847
  /***/ }),
@@ -73823,31 +73876,6 @@ __webpack_require__.r(__webpack_exports__);
73823
73876
  /* harmony import */ var _TabFrame_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TabFrame.module.scss */ "./src/ui/TabFrame/styles/TabFrame.module.scss");
73824
73877
 
73825
73878
 
73826
- /***/ }),
73827
-
73828
- /***/ "./src/ui/TabFrame/types/TabFrameTypes.ts":
73829
- /*!************************************************!*\
73830
- !*** ./src/ui/TabFrame/types/TabFrameTypes.ts ***!
73831
- \************************************************/
73832
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
73833
-
73834
- "use strict";
73835
- __webpack_require__.r(__webpack_exports__);
73836
-
73837
-
73838
- /***/ }),
73839
-
73840
- /***/ "./src/ui/TabFrame/types/index.ts":
73841
- /*!****************************************!*\
73842
- !*** ./src/ui/TabFrame/types/index.ts ***!
73843
- \****************************************/
73844
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
73845
-
73846
- "use strict";
73847
- __webpack_require__.r(__webpack_exports__);
73848
- /* harmony import */ var _TabFrameTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TabFrameTypes */ "./src/ui/TabFrame/types/TabFrameTypes.ts");
73849
-
73850
-
73851
73879
  /***/ }),
73852
73880
 
73853
73881
  /***/ "./src/ui/TabFrame/ui/TabFrame.tsx":
@@ -75329,10 +75357,10 @@ __webpack_require__.r(__webpack_exports__);
75329
75357
  /* harmony export */ });
75330
75358
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
75331
75359
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
75332
- /* harmony import */ var react_imask__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-imask */ "./node_modules/react-imask/esm/index.js");
75333
75360
  /* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/parse.js");
75334
75361
  /* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/isValid.js");
75335
75362
  /* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/format.js");
75363
+ /* harmony import */ var _const__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/const */ "./src/const/index.ts");
75336
75364
  /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../FormField */ "./src/ui/formFields/FormField/index.ts");
75337
75365
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
75338
75366
  var _excluded = ["value", "onChange", "inputFormat", "outFormat"];
@@ -75375,40 +75403,7 @@ function FormDateField(props) {
75375
75403
  value: getViewValueFromValue(value),
75376
75404
  onChange: handleChange,
75377
75405
  mask: inputFormat,
75378
- blocks: {
75379
- dd: {
75380
- mask: react_imask__WEBPACK_IMPORTED_MODULE_1__.IMask.MaskedRange,
75381
- from: 1,
75382
- to: 31,
75383
- maxLength: 2
75384
- },
75385
- MM: {
75386
- mask: react_imask__WEBPACK_IMPORTED_MODULE_1__.IMask.MaskedRange,
75387
- from: 1,
75388
- to: 12,
75389
- maxLength: 2
75390
- },
75391
- yyyy: {
75392
- mask: react_imask__WEBPACK_IMPORTED_MODULE_1__.IMask.MaskedRange,
75393
- from: 1900,
75394
- to: 2100
75395
- },
75396
- HH: {
75397
- mask: react_imask__WEBPACK_IMPORTED_MODULE_1__.IMask.MaskedRange,
75398
- from: 0,
75399
- to: 23
75400
- },
75401
- mm: {
75402
- mask: react_imask__WEBPACK_IMPORTED_MODULE_1__.IMask.MaskedRange,
75403
- from: 0,
75404
- to: 59
75405
- },
75406
- ss: {
75407
- mask: react_imask__WEBPACK_IMPORTED_MODULE_1__.IMask.MaskedRange,
75408
- from: 0,
75409
- to: 59
75410
- }
75411
- }
75406
+ blocks: _const__WEBPACK_IMPORTED_MODULE_1__.DATE_IMASK_BLOCKS
75412
75407
  }, otherProps));
75413
75408
  }
75414
75409
 
@@ -75428,6 +75423,366 @@ __webpack_require__.r(__webpack_exports__);
75428
75423
  /* harmony import */ var _FormDateField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FormDateField */ "./src/ui/formFields/FormDateField/ui/FormDateField.tsx");
75429
75424
 
75430
75425
 
75426
+ /***/ }),
75427
+
75428
+ /***/ "./src/ui/formFields/FormDateRangeField/index.ts":
75429
+ /*!*******************************************************!*\
75430
+ !*** ./src/ui/formFields/FormDateRangeField/index.ts ***!
75431
+ \*******************************************************/
75432
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75433
+
75434
+ "use strict";
75435
+ __webpack_require__.r(__webpack_exports__);
75436
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75437
+ /* harmony export */ FormDateRangeField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_0__.FormDateRangeField),
75438
+ /* harmony export */ FormDateTimeRangeField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_0__.FormDateTimeRangeField),
75439
+ /* harmony export */ FormTimeRangeField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_0__.FormTimeRangeField)
75440
+ /* harmony export */ });
75441
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ui */ "./src/ui/formFields/FormDateRangeField/ui/index.ts");
75442
+
75443
+
75444
+ /***/ }),
75445
+
75446
+ /***/ "./src/ui/formFields/FormDateRangeField/styles/FormDateRange.module.scss":
75447
+ /*!*******************************************************************************!*\
75448
+ !*** ./src/ui/formFields/FormDateRangeField/styles/FormDateRange.module.scss ***!
75449
+ \*******************************************************************************/
75450
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75451
+
75452
+ "use strict";
75453
+ __webpack_require__.r(__webpack_exports__);
75454
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75455
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
75456
+ /* harmony export */ });
75457
+ // extracted by mini-css-extract-plugin
75458
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"wrapper":"FormDateRange-module__wrapper___Ysixt","error":"FormDateRange-module__error___rtYwO"});
75459
+
75460
+ /***/ }),
75461
+
75462
+ /***/ "./src/ui/formFields/FormDateRangeField/styles/InputInnerButton.module.scss":
75463
+ /*!**********************************************************************************!*\
75464
+ !*** ./src/ui/formFields/FormDateRangeField/styles/InputInnerButton.module.scss ***!
75465
+ \**********************************************************************************/
75466
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75467
+
75468
+ "use strict";
75469
+ __webpack_require__.r(__webpack_exports__);
75470
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75471
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
75472
+ /* harmony export */ });
75473
+ // extracted by mini-css-extract-plugin
75474
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"button":"InputInnerButton-module__button___L78ok","gray":"InputInnerButton-module__gray___No207","red":"InputInnerButton-module__red___NTGF_"});
75475
+
75476
+ /***/ }),
75477
+
75478
+ /***/ "./src/ui/formFields/FormDateRangeField/styles/Mask.module.scss":
75479
+ /*!**********************************************************************!*\
75480
+ !*** ./src/ui/formFields/FormDateRangeField/styles/Mask.module.scss ***!
75481
+ \**********************************************************************/
75482
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75483
+
75484
+ "use strict";
75485
+ __webpack_require__.r(__webpack_exports__);
75486
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75487
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
75488
+ /* harmony export */ });
75489
+ // extracted by mini-css-extract-plugin
75490
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"main":"Mask-module__main___UcP1p","divider":"Mask-module__divider___sB844"});
75491
+
75492
+ /***/ }),
75493
+
75494
+ /***/ "./src/ui/formFields/FormDateRangeField/styles/index.ts":
75495
+ /*!**************************************************************!*\
75496
+ !*** ./src/ui/formFields/FormDateRangeField/styles/index.ts ***!
75497
+ \**************************************************************/
75498
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75499
+
75500
+ "use strict";
75501
+ __webpack_require__.r(__webpack_exports__);
75502
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75503
+ /* harmony export */ FormDateRangeStyle: () => (/* reexport safe */ _FormDateRange_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"]),
75504
+ /* harmony export */ InputInnerButtonStyle: () => (/* reexport safe */ _InputInnerButton_module_scss__WEBPACK_IMPORTED_MODULE_2__["default"]),
75505
+ /* harmony export */ MaskStyle: () => (/* reexport safe */ _Mask_module_scss__WEBPACK_IMPORTED_MODULE_0__["default"])
75506
+ /* harmony export */ });
75507
+ /* harmony import */ var _Mask_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Mask.module.scss */ "./src/ui/formFields/FormDateRangeField/styles/Mask.module.scss");
75508
+ /* harmony import */ var _FormDateRange_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FormDateRange.module.scss */ "./src/ui/formFields/FormDateRangeField/styles/FormDateRange.module.scss");
75509
+ /* harmony import */ var _InputInnerButton_module_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InputInnerButton.module.scss */ "./src/ui/formFields/FormDateRangeField/styles/InputInnerButton.module.scss");
75510
+
75511
+
75512
+
75513
+
75514
+ /***/ }),
75515
+
75516
+ /***/ "./src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.tsx":
75517
+ /*!************************************************************************!*\
75518
+ !*** ./src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.tsx ***!
75519
+ \************************************************************************/
75520
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75521
+
75522
+ "use strict";
75523
+ __webpack_require__.r(__webpack_exports__);
75524
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75525
+ /* harmony export */ FormDateRangeField: () => (/* binding */ FormDateRangeField)
75526
+ /* harmony export */ });
75527
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
75528
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
75529
+ /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.mjs");
75530
+ /* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/parse.js");
75531
+ /* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/isValid.js");
75532
+ /* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/format.js");
75533
+ /* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets */ "./src/assets/index.ts");
75534
+ /* harmony import */ var _const__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/const */ "./src/const/index.ts");
75535
+ /* harmony import */ var _InputInnerButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InputInnerButton */ "./src/ui/formFields/FormDateRangeField/ui/InputInnerButton.tsx");
75536
+ /* harmony import */ var _Mask__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Mask */ "./src/ui/formFields/FormDateRangeField/ui/Mask.tsx");
75537
+ /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../styles */ "./src/ui/formFields/FormDateRangeField/styles/index.ts");
75538
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
75539
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
75540
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
75541
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
75542
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
75543
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
75544
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
75545
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
75546
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
75547
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75548
+
75549
+
75550
+
75551
+
75552
+
75553
+
75554
+
75555
+
75556
+ function FormDateRangeField(props) {
75557
+ var value = props.value,
75558
+ onChange = props.onChange,
75559
+ error = props.error,
75560
+ onBlur = props.onBlur,
75561
+ _props$outFormat = props.outFormat,
75562
+ outFormat = _props$outFormat === void 0 ? 'yyyy-MM-dd' : _props$outFormat,
75563
+ _props$inputFormat = props.inputFormat,
75564
+ inputFormat = _props$inputFormat === void 0 ? 'dd.MM.yyyy' : _props$inputFormat,
75565
+ _props$text = props.text1,
75566
+ text1 = _props$text === void 0 ? 'от' : _props$text,
75567
+ _props$text2 = props.text2,
75568
+ text2 = _props$text2 === void 0 ? 'до' : _props$text2,
75569
+ _props$icon = props.icon1,
75570
+ icon1 = _props$icon === void 0 ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_2__.CalendarSVG, {}) : _props$icon,
75571
+ _props$icon2 = props.icon2,
75572
+ icon2 = _props$icon2 === void 0 ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_2__.CalendarSVG, {}) : _props$icon2,
75573
+ _props$placeholder = props.placeholder1,
75574
+ placeholder1 = _props$placeholder === void 0 ? 'дд.мм.гггг' : _props$placeholder,
75575
+ _props$placeholder2 = props.placeholder2,
75576
+ placeholder2 = _props$placeholder2 === void 0 ? 'дд.мм.гггг' : _props$placeholder2;
75577
+ var getDate = function getDate(curValue) {
75578
+ var date = (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.parse)(curValue || '', outFormat, new Date());
75579
+ if ((0,date_fns__WEBPACK_IMPORTED_MODULE_8__.isValid)(date) && curValue === (0,date_fns__WEBPACK_IMPORTED_MODULE_9__.format)(date, outFormat)) {
75580
+ return (0,date_fns__WEBPACK_IMPORTED_MODULE_9__.format)(date, inputFormat);
75581
+ }
75582
+ return curValue;
75583
+ };
75584
+ var processDate = function processDate(newValue) {
75585
+ var date = (0,date_fns__WEBPACK_IMPORTED_MODULE_7__.parse)(newValue || '', inputFormat, new Date());
75586
+ if ((0,date_fns__WEBPACK_IMPORTED_MODULE_8__.isValid)(date) && newValue === (0,date_fns__WEBPACK_IMPORTED_MODULE_9__.format)(date, inputFormat)) {
75587
+ return (0,date_fns__WEBPACK_IMPORTED_MODULE_9__.format)(date, outFormat);
75588
+ }
75589
+ return newValue;
75590
+ };
75591
+ var setNewValue = function setNewValue(itemValue, idx) {
75592
+ var newValue = value ? _toConsumableArray(value) : [undefined, undefined];
75593
+ newValue[idx] = processDate(itemValue);
75594
+ onChange === null || onChange === void 0 || onChange(newValue);
75595
+ };
75596
+ var getValue1 = function getValue1() {
75597
+ return getDate(value === null || value === void 0 ? void 0 : value[0]) || '';
75598
+ };
75599
+ var getValue2 = function getValue2() {
75600
+ return getDate(value === null || value === void 0 ? void 0 : value[1]) || '';
75601
+ };
75602
+ var handleChange1 = function handleChange1(v) {
75603
+ return setNewValue(v, 0);
75604
+ };
75605
+ var handleChange2 = function handleChange2(v) {
75606
+ return setNewValue(v, 1);
75607
+ };
75608
+ var clear = function clear() {
75609
+ onChange === null || onChange === void 0 || onChange([undefined, undefined]);
75610
+ };
75611
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
75612
+ onBlur: onBlur,
75613
+ className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_6__.FormDateRangeStyle.wrapper, _defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_6__.FormDateRangeStyle.error, error)),
75614
+ tabIndex: -1,
75615
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_Mask__WEBPACK_IMPORTED_MODULE_5__.Mask, {
75616
+ value: getValue1(),
75617
+ onAccept: handleChange1,
75618
+ mask: inputFormat,
75619
+ blocks: _const__WEBPACK_IMPORTED_MODULE_3__.DATE_IMASK_BLOCKS,
75620
+ icon: icon1,
75621
+ text: text1,
75622
+ placeholder: placeholder1
75623
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_Mask__WEBPACK_IMPORTED_MODULE_5__.Mask, {
75624
+ value: getValue2(),
75625
+ onAccept: handleChange2,
75626
+ mask: inputFormat,
75627
+ blocks: _const__WEBPACK_IMPORTED_MODULE_3__.DATE_IMASK_BLOCKS,
75628
+ text: text2,
75629
+ icon: icon2,
75630
+ placeholder: placeholder2,
75631
+ divider: true
75632
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("section", {
75633
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_InputInnerButton__WEBPACK_IMPORTED_MODULE_4__.InputInnerButton, {
75634
+ color: 'gray',
75635
+ onClick: clear
75636
+ })
75637
+ })]
75638
+ });
75639
+ }
75640
+
75641
+ /***/ }),
75642
+
75643
+ /***/ "./src/ui/formFields/FormDateRangeField/ui/FormDateTimeRangeField.tsx":
75644
+ /*!****************************************************************************!*\
75645
+ !*** ./src/ui/formFields/FormDateRangeField/ui/FormDateTimeRangeField.tsx ***!
75646
+ \****************************************************************************/
75647
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75648
+
75649
+ "use strict";
75650
+ __webpack_require__.r(__webpack_exports__);
75651
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75652
+ /* harmony export */ FormDateTimeRangeField: () => (/* binding */ FormDateTimeRangeField)
75653
+ /* harmony export */ });
75654
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
75655
+ function FormDateTimeRangeField(props) {
75656
+ _objectDestructuringEmpty(props);
75657
+ }
75658
+
75659
+ /***/ }),
75660
+
75661
+ /***/ "./src/ui/formFields/FormDateRangeField/ui/FormTimeRangeField.tsx":
75662
+ /*!************************************************************************!*\
75663
+ !*** ./src/ui/formFields/FormDateRangeField/ui/FormTimeRangeField.tsx ***!
75664
+ \************************************************************************/
75665
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75666
+
75667
+ "use strict";
75668
+ __webpack_require__.r(__webpack_exports__);
75669
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75670
+ /* harmony export */ FormTimeRangeField: () => (/* binding */ FormTimeRangeField)
75671
+ /* harmony export */ });
75672
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
75673
+ function FormTimeRangeField(props) {
75674
+ _objectDestructuringEmpty(props);
75675
+ }
75676
+
75677
+ /***/ }),
75678
+
75679
+ /***/ "./src/ui/formFields/FormDateRangeField/ui/InputInnerButton.tsx":
75680
+ /*!**********************************************************************!*\
75681
+ !*** ./src/ui/formFields/FormDateRangeField/ui/InputInnerButton.tsx ***!
75682
+ \**********************************************************************/
75683
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75684
+
75685
+ "use strict";
75686
+ __webpack_require__.r(__webpack_exports__);
75687
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75688
+ /* harmony export */ InputInnerButton: () => (/* binding */ InputInnerButton)
75689
+ /* harmony export */ });
75690
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
75691
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
75692
+ /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.mjs");
75693
+ /* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets */ "./src/assets/index.ts");
75694
+ /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../styles */ "./src/ui/formFields/FormDateRangeField/styles/index.ts");
75695
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
75696
+ var _excluded = ["color", "className"];
75697
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
75698
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
75699
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
75700
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
75701
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
75702
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
75703
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
75704
+
75705
+
75706
+
75707
+
75708
+ function InputInnerButton(props) {
75709
+ var _props$color = props.color,
75710
+ color = _props$color === void 0 ? 'gray' : _props$color,
75711
+ className = props.className,
75712
+ buttonProps = _objectWithoutProperties(props, _excluded);
75713
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", _objectSpread(_objectSpread({
75714
+ type: 'button'
75715
+ }, buttonProps), {}, {
75716
+ className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(_styles__WEBPACK_IMPORTED_MODULE_3__.InputInnerButtonStyle.button, _defineProperty(_defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_3__.InputInnerButtonStyle.gray, color === 'gray'), _styles__WEBPACK_IMPORTED_MODULE_3__.InputInnerButtonStyle.red, color === 'red'), className),
75717
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_2__.XCloseSVG, {})
75718
+ }));
75719
+ }
75720
+
75721
+ /***/ }),
75722
+
75723
+ /***/ "./src/ui/formFields/FormDateRangeField/ui/Mask.tsx":
75724
+ /*!**********************************************************!*\
75725
+ !*** ./src/ui/formFields/FormDateRangeField/ui/Mask.tsx ***!
75726
+ \**********************************************************/
75727
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75728
+
75729
+ "use strict";
75730
+ __webpack_require__.r(__webpack_exports__);
75731
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75732
+ /* harmony export */ Mask: () => (/* binding */ Mask)
75733
+ /* harmony export */ });
75734
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
75735
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
75736
+ /* harmony import */ var react_imask__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-imask */ "./node_modules/react-imask/esm/index.js");
75737
+ /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../styles */ "./src/ui/formFields/FormDateRangeField/styles/index.ts");
75738
+ /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.mjs");
75739
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
75740
+ var _excluded = ["text", "icon", "divider"];
75741
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
75742
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
75743
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
75744
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
75745
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
75746
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
75747
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
75748
+
75749
+
75750
+
75751
+
75752
+ function Mask(props) {
75753
+ var text = props.text,
75754
+ icon = props.icon,
75755
+ _props$divider = props.divider,
75756
+ divider = _props$divider === void 0 ? false : _props$divider,
75757
+ inputProps = _objectWithoutProperties(props, _excluded);
75758
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
75759
+ className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(_styles__WEBPACK_IMPORTED_MODULE_2__.MaskStyle.main, _defineProperty({}, _styles__WEBPACK_IMPORTED_MODULE_2__.MaskStyle.divider, divider)),
75760
+ children: [icon, text, (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_imask__WEBPACK_IMPORTED_MODULE_1__.IMaskInput, _objectSpread({}, inputProps))]
75761
+ });
75762
+ }
75763
+
75764
+ /***/ }),
75765
+
75766
+ /***/ "./src/ui/formFields/FormDateRangeField/ui/index.ts":
75767
+ /*!**********************************************************!*\
75768
+ !*** ./src/ui/formFields/FormDateRangeField/ui/index.ts ***!
75769
+ \**********************************************************/
75770
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
75771
+
75772
+ "use strict";
75773
+ __webpack_require__.r(__webpack_exports__);
75774
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75775
+ /* harmony export */ FormDateRangeField: () => (/* reexport safe */ _FormDateRangeField__WEBPACK_IMPORTED_MODULE_0__.FormDateRangeField),
75776
+ /* harmony export */ FormDateTimeRangeField: () => (/* reexport safe */ _FormDateTimeRangeField__WEBPACK_IMPORTED_MODULE_2__.FormDateTimeRangeField),
75777
+ /* harmony export */ FormTimeRangeField: () => (/* reexport safe */ _FormTimeRangeField__WEBPACK_IMPORTED_MODULE_1__.FormTimeRangeField)
75778
+ /* harmony export */ });
75779
+ /* harmony import */ var _FormDateRangeField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FormDateRangeField */ "./src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.tsx");
75780
+ /* harmony import */ var _FormTimeRangeField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FormTimeRangeField */ "./src/ui/formFields/FormDateRangeField/ui/FormTimeRangeField.tsx");
75781
+ /* harmony import */ var _FormDateTimeRangeField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormDateTimeRangeField */ "./src/ui/formFields/FormDateRangeField/ui/FormDateTimeRangeField.tsx");
75782
+
75783
+
75784
+
75785
+
75431
75786
  /***/ }),
75432
75787
 
75433
75788
  /***/ "./src/ui/formFields/FormField/index.ts":
@@ -75828,7 +76183,8 @@ function FieldItem(props) {
75828
76183
  _props$disabled = props.disabled,
75829
76184
  disabled = _props$disabled === void 0 ? false : _props$disabled,
75830
76185
  _props$width = props.width,
75831
- width = _props$width === void 0 ? 'hug' : _props$width;
76186
+ width = _props$width === void 0 ? 'hug' : _props$width,
76187
+ theme = props.theme;
75832
76188
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_1__.Checkbox, {
75833
76189
  type: type,
75834
76190
  text: label,
@@ -75836,6 +76192,7 @@ function FieldItem(props) {
75836
76192
  onClick: onClick,
75837
76193
  disabled: disabled,
75838
76194
  width: width,
76195
+ theme: theme,
75839
76196
  checked: active
75840
76197
  });
75841
76198
  }
@@ -75883,7 +76240,8 @@ function FormRadioField(props) {
75883
76240
  _props$width = props.width,
75884
76241
  width = _props$width === void 0 ? 'hug' : _props$width,
75885
76242
  _props$type = props.type,
75886
- type = _props$type === void 0 ? 'checkbox' : _props$type;
76243
+ type = _props$type === void 0 ? 'checkbox' : _props$type,
76244
+ theme = props.theme;
75887
76245
  (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useDeepCompareEffect)(function () {
75888
76246
  // Установка значения при required
75889
76247
  var firstOptions = options === null || options === void 0 ? void 0 : options[0];
@@ -75934,7 +76292,8 @@ function FormRadioField(props) {
75934
76292
  },
75935
76293
  active: isActive(item),
75936
76294
  disabled: disabled,
75937
- width: width
76295
+ width: width,
76296
+ theme: theme
75938
76297
  }, idx);
75939
76298
  })
75940
76299
  });
@@ -76719,6 +77078,8 @@ __webpack_require__.r(__webpack_exports__);
76719
77078
  __webpack_require__.r(__webpack_exports__);
76720
77079
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
76721
77080
  /* harmony export */ FormDateField: () => (/* reexport safe */ _FormDateField__WEBPACK_IMPORTED_MODULE_6__.FormDateField),
77081
+ /* harmony export */ FormDateRangeField: () => (/* reexport safe */ _FormDateRangeField__WEBPACK_IMPORTED_MODULE_7__.FormDateRangeField),
77082
+ /* harmony export */ FormDateTimeRangeField: () => (/* reexport safe */ _FormDateRangeField__WEBPACK_IMPORTED_MODULE_7__.FormDateTimeRangeField),
76722
77083
  /* harmony export */ FormField: () => (/* reexport safe */ _FormField__WEBPACK_IMPORTED_MODULE_0__.FormField),
76723
77084
  /* harmony export */ FormFieldBase: () => (/* reexport safe */ _FormField__WEBPACK_IMPORTED_MODULE_0__.FormFieldBase),
76724
77085
  /* harmony export */ FormFieldWrapper: () => (/* reexport safe */ _FormFieldWrapper__WEBPACK_IMPORTED_MODULE_2__.FormFieldWrapper),
@@ -76727,7 +77088,8 @@ __webpack_require__.r(__webpack_exports__);
76727
77088
  /* harmony export */ FormSelectFieldBase: () => (/* reexport safe */ _FormSelectField__WEBPACK_IMPORTED_MODULE_1__.FormSelectFieldBase),
76728
77089
  /* harmony export */ FormSwitcherField: () => (/* reexport safe */ _FormSwitcherField__WEBPACK_IMPORTED_MODULE_3__.FormSwitcherField),
76729
77090
  /* harmony export */ FormTextareaField: () => (/* reexport safe */ _FormTextareaField__WEBPACK_IMPORTED_MODULE_5__.FormTextareaField),
76730
- /* harmony export */ FormTextareaFieldBase: () => (/* reexport safe */ _FormTextareaField__WEBPACK_IMPORTED_MODULE_5__.FormTextareaFieldBase)
77091
+ /* harmony export */ FormTextareaFieldBase: () => (/* reexport safe */ _FormTextareaField__WEBPACK_IMPORTED_MODULE_5__.FormTextareaFieldBase),
77092
+ /* harmony export */ FormTimeRangeField: () => (/* reexport safe */ _FormDateRangeField__WEBPACK_IMPORTED_MODULE_7__.FormTimeRangeField)
76731
77093
  /* harmony export */ });
76732
77094
  /* harmony import */ var _FormField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FormField */ "./src/ui/formFields/FormField/index.ts");
76733
77095
  /* harmony import */ var _FormSelectField__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FormSelectField */ "./src/ui/formFields/FormSelectField/index.ts");
@@ -76736,6 +77098,8 @@ __webpack_require__.r(__webpack_exports__);
76736
77098
  /* harmony import */ var _FormRadioField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormRadioField */ "./src/ui/formFields/FormRadioField/index.ts");
76737
77099
  /* harmony import */ var _FormTextareaField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormTextareaField */ "./src/ui/formFields/FormTextareaField/index.ts");
76738
77100
  /* harmony import */ var _FormDateField__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FormDateField */ "./src/ui/formFields/FormDateField/index.ts");
77101
+ /* harmony import */ var _FormDateRangeField__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormDateRangeField */ "./src/ui/formFields/FormDateRangeField/index.ts");
77102
+
76739
77103
 
76740
77104
 
76741
77105
 
@@ -76786,6 +77150,8 @@ __webpack_require__.r(__webpack_exports__);
76786
77150
  /* harmony export */ Footer: () => (/* reexport safe */ _DateTimePicker__WEBPACK_IMPORTED_MODULE_24__.Footer),
76787
77151
  /* harmony export */ FormBuilder: () => (/* reexport safe */ _FormBuilder__WEBPACK_IMPORTED_MODULE_3__.FormBuilder),
76788
77152
  /* harmony export */ FormDateField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormDateField),
77153
+ /* harmony export */ FormDateRangeField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormDateRangeField),
77154
+ /* harmony export */ FormDateTimeRangeField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormDateTimeRangeField),
76789
77155
  /* harmony export */ FormField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormField),
76790
77156
  /* harmony export */ FormFieldBase: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormFieldBase),
76791
77157
  /* harmony export */ FormFieldWrapper: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormFieldWrapper),
@@ -76795,6 +77161,7 @@ __webpack_require__.r(__webpack_exports__);
76795
77161
  /* harmony export */ FormSwitcherField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormSwitcherField),
76796
77162
  /* harmony export */ FormTextareaField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormTextareaField),
76797
77163
  /* harmony export */ FormTextareaFieldBase: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormTextareaFieldBase),
77164
+ /* harmony export */ FormTimeRangeField: () => (/* reexport safe */ _formFields__WEBPACK_IMPORTED_MODULE_27__.FormTimeRangeField),
76798
77165
  /* harmony export */ Header: () => (/* reexport safe */ _DateTimePicker__WEBPACK_IMPORTED_MODULE_24__.Header),
76799
77166
  /* harmony export */ INIT_FIELDS_NAME: () => (/* reexport safe */ _FormBuilder__WEBPACK_IMPORTED_MODULE_3__.INIT_FIELDS_NAME),
76800
77167
  /* harmony export */ ISO_FORMAT: () => (/* reexport safe */ _InputFields__WEBPACK_IMPORTED_MODULE_2__.ISO_FORMAT),
@@ -77079,6 +77446,8 @@ __webpack_require__.r(__webpack_exports__);
77079
77446
  /* harmony export */ Footer: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.Footer),
77080
77447
  /* harmony export */ FormBuilder: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormBuilder),
77081
77448
  /* harmony export */ FormDateField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormDateField),
77449
+ /* harmony export */ FormDateRangeField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormDateRangeField),
77450
+ /* harmony export */ FormDateTimeRangeField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormDateTimeRangeField),
77082
77451
  /* harmony export */ FormField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormField),
77083
77452
  /* harmony export */ FormFieldBase: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormFieldBase),
77084
77453
  /* harmony export */ FormFieldWrapper: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormFieldWrapper),
@@ -77088,6 +77457,7 @@ __webpack_require__.r(__webpack_exports__);
77088
77457
  /* harmony export */ FormSwitcherField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormSwitcherField),
77089
77458
  /* harmony export */ FormTextareaField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormTextareaField),
77090
77459
  /* harmony export */ FormTextareaFieldBase: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormTextareaFieldBase),
77460
+ /* harmony export */ FormTimeRangeField: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.FormTimeRangeField),
77091
77461
  /* harmony export */ Header: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.Header),
77092
77462
  /* harmony export */ INIT_FIELDS_NAME: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.INIT_FIELDS_NAME),
77093
77463
  /* harmony export */ ISO_FORMAT: () => (/* reexport safe */ _ui__WEBPACK_IMPORTED_MODULE_1__.ISO_FORMAT),