@salutejs/plasma-new-hope 0.343.0-canary.2358.19738569895.0 → 0.343.0-canary.2358.19740188284.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.
@@ -11,7 +11,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
11
11
 
12
12
  // TODO: Поправить типы, если внутри услвовия типы не совпадают
13
13
  function createConditionalComponent(defaultComponent, mappings) {
14
- return function (props) {
14
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
15
15
  var _iterator = _rollupPluginBabelHelpers.createForOfIteratorHelper(mappings),
16
16
  _step;
17
17
  try {
@@ -27,7 +27,9 @@ function createConditionalComponent(defaultComponent, mappings) {
27
27
  });
28
28
  if (allConditionsMatch) {
29
29
  var Component = component;
30
- return /*#__PURE__*/React__default.default.createElement(Component, props);
30
+ return /*#__PURE__*/React__default.default.createElement(Component, _rollupPluginBabelHelpers.extends({
31
+ ref: ref
32
+ }, props));
31
33
  }
32
34
  }
33
35
  } catch (err) {
@@ -36,8 +38,10 @@ function createConditionalComponent(defaultComponent, mappings) {
36
38
  _iterator.f();
37
39
  }
38
40
  var DefaultComponent = defaultComponent;
39
- return /*#__PURE__*/React__default.default.createElement(DefaultComponent, props);
40
- };
41
+ return /*#__PURE__*/React__default.default.createElement(DefaultComponent, _rollupPluginBabelHelpers.extends({
42
+ ref: ref
43
+ }, props));
44
+ });
41
45
  }
42
46
 
43
47
  exports.createConditionalComponent = createConditionalComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"createConditionalComponent.js","sources":["../../src/utils/createConditionalComponent.tsx"],"sourcesContent":["import React from 'react';\n\ntype PropCondition<T> = {\n prop: keyof T;\n value: any;\n};\n\ntype ComponentMapping<T> = {\n conditions: PropCondition<T> | PropCondition<T>[];\n component: React.ComponentType<T>;\n};\n\n// TODO: Поправить типы, если внутри услвовия типы не совпадают\nexport function createConditionalComponent<T extends object>(\n defaultComponent: React.ComponentType<T>,\n mappings: ComponentMapping<T>[],\n): React.FC<T> {\n return (props: T) => {\n for (const mapping of mappings) {\n const { conditions, component } = mapping;\n\n const conditionsArray = Array.isArray(conditions) ? conditions : [conditions];\n\n const allConditionsMatch = conditionsArray.every(({ prop, value }) => props[prop] === value);\n\n if (allConditionsMatch) {\n const Component = component;\n return <Component {...props} />;\n }\n }\n\n const DefaultComponent = defaultComponent;\n return <DefaultComponent {...props} />;\n };\n}\n"],"names":["createConditionalComponent","defaultComponent","mappings","props","_iterator","_createForOfIteratorHelper","_step","s","n","done","mapping","value","conditions","component","conditionsArray","Array","isArray","allConditionsMatch","every","_ref","prop","Component","React","createElement","err","e","f","DefaultComponent"],"mappings":";;;;;;;;;;;AAYA;AACO,SAASA,0BAA0BA,CACtCC,gBAAwC,EACxCC,QAA+B,EACpB;EACX,OAAO,UAACC,KAAQ,EAAK;AAAA,IAAA,IAAAC,SAAA,GAAAC,mDAAA,CACKH,QAAQ,CAAA;MAAAI,KAAA,CAAA;AAAA,IAAA,IAAA;MAA9B,KAAAF,SAAA,CAAAG,CAAA,EAAAD,EAAAA,CAAAA,CAAAA,KAAA,GAAAF,SAAA,CAAAI,CAAA,EAAAC,EAAAA,IAAA,GAAgC;AAAA,QAAA,IAArBC,OAAO,GAAAJ,KAAA,CAAAK,KAAA,CAAA;AACd,QAAA,IAAQC,UAAU,GAAgBF,OAAO,CAAjCE,UAAU;UAAEC,SAAS,GAAKH,OAAO,CAArBG,SAAS,CAAA;AAE7B,QAAA,IAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,GAAG,CAACA,UAAU,CAAC,CAAA;AAE7E,QAAA,IAAMK,kBAAkB,GAAGH,eAAe,CAACI,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,UAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;YAAET,KAAK,GAAAQ,IAAA,CAALR,KAAK,CAAA;AAAA,UAAA,OAAOR,KAAK,CAACiB,IAAI,CAAC,KAAKT,KAAK,CAAA;SAAC,CAAA,CAAA;AAE5F,QAAA,IAAIM,kBAAkB,EAAE;UACpB,IAAMI,SAAS,GAAGR,SAAS,CAAA;AAC3B,UAAA,oBAAOS,sBAAA,CAAAC,aAAA,CAACF,SAAS,EAAKlB,KAAQ,CAAC,CAAA;AACnC,SAAA;AACJ,OAAA;AAAC,KAAA,CAAA,OAAAqB,GAAA,EAAA;MAAApB,SAAA,CAAAqB,CAAA,CAAAD,GAAA,CAAA,CAAA;AAAA,KAAA,SAAA;AAAApB,MAAAA,SAAA,CAAAsB,CAAA,EAAA,CAAA;AAAA,KAAA;IAED,IAAMC,gBAAgB,GAAG1B,gBAAgB,CAAA;AACzC,IAAA,oBAAOqB,sBAAA,CAAAC,aAAA,CAACI,gBAAgB,EAAKxB,KAAQ,CAAC,CAAA;GACzC,CAAA;AACL;;;;"}
1
+ {"version":3,"file":"createConditionalComponent.js","sources":["../../src/utils/createConditionalComponent.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\ntype PropCondition<T> = {\n prop: keyof T;\n value: any;\n};\n\ntype ComponentMapping<T> = {\n conditions: PropCondition<T> | PropCondition<T>[];\n component: React.ComponentType<T>;\n};\n\n// TODO: Поправить типы, если внутри услвовия типы не совпадают\nexport function createConditionalComponent<T extends object, K extends HTMLElement>(\n defaultComponent: React.ComponentType<T>,\n mappings: ComponentMapping<T>[],\n) {\n return forwardRef<K, T>((props: T, ref) => {\n for (const mapping of mappings) {\n const { conditions, component } = mapping;\n\n const conditionsArray = Array.isArray(conditions) ? conditions : [conditions];\n\n const allConditionsMatch = conditionsArray.every(({ prop, value }) => props[prop] === value);\n\n if (allConditionsMatch) {\n const Component = component;\n return <Component ref={ref} {...props} />;\n }\n }\n\n const DefaultComponent = defaultComponent;\n return <DefaultComponent ref={ref} {...props} />;\n });\n}\n"],"names":["createConditionalComponent","defaultComponent","mappings","forwardRef","props","ref","_iterator","_createForOfIteratorHelper","_step","s","n","done","mapping","value","conditions","component","conditionsArray","Array","isArray","allConditionsMatch","every","_ref","prop","Component","React","createElement","_extends","err","e","f","DefaultComponent"],"mappings":";;;;;;;;;;;AAYA;AACO,SAASA,0BAA0BA,CACtCC,gBAAwC,EACxCC,QAA+B,EACjC;AACE,EAAA,oBAAOC,gBAAU,CAAO,UAACC,KAAQ,EAAEC,GAAG,EAAK;AAAA,IAAA,IAAAC,SAAA,GAAAC,mDAAA,CACjBL,QAAQ,CAAA;MAAAM,KAAA,CAAA;AAAA,IAAA,IAAA;MAA9B,KAAAF,SAAA,CAAAG,CAAA,EAAAD,EAAAA,CAAAA,CAAAA,KAAA,GAAAF,SAAA,CAAAI,CAAA,EAAAC,EAAAA,IAAA,GAAgC;AAAA,QAAA,IAArBC,OAAO,GAAAJ,KAAA,CAAAK,KAAA,CAAA;AACd,QAAA,IAAQC,UAAU,GAAgBF,OAAO,CAAjCE,UAAU;UAAEC,SAAS,GAAKH,OAAO,CAArBG,SAAS,CAAA;AAE7B,QAAA,IAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,GAAG,CAACA,UAAU,CAAC,CAAA;AAE7E,QAAA,IAAMK,kBAAkB,GAAGH,eAAe,CAACI,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,UAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;YAAET,KAAK,GAAAQ,IAAA,CAALR,KAAK,CAAA;AAAA,UAAA,OAAOT,KAAK,CAACkB,IAAI,CAAC,KAAKT,KAAK,CAAA;SAAC,CAAA,CAAA;AAE5F,QAAA,IAAIM,kBAAkB,EAAE;UACpB,IAAMI,SAAS,GAAGR,SAAS,CAAA;AAC3B,UAAA,oBAAOS,sBAAA,CAAAC,aAAA,CAACF,SAAS,EAAAG,iCAAA,CAAA;AAACrB,YAAAA,GAAG,EAAEA,GAAAA;WAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC7C,SAAA;AACJ,OAAA;AAAC,KAAA,CAAA,OAAAuB,GAAA,EAAA;MAAArB,SAAA,CAAAsB,CAAA,CAAAD,GAAA,CAAA,CAAA;AAAA,KAAA,SAAA;AAAArB,MAAAA,SAAA,CAAAuB,CAAA,EAAA,CAAA;AAAA,KAAA;IAED,IAAMC,gBAAgB,GAAG7B,gBAAgB,CAAA;AACzC,IAAA,oBAAOuB,sBAAA,CAAAC,aAAA,CAACK,gBAAgB,EAAAJ,iCAAA,CAAA;AAACrB,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AACpD,GAAC,CAAC,CAAA;AACN;;;;"}
@@ -8,14 +8,78 @@ Object.defineProperty(exports, "createConditionalComponent", {
8
8
  return createConditionalComponent;
9
9
  }
10
10
  });
11
- var _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
- function _interop_require_default(obj) {
13
- return obj && obj.__esModule ? obj : {
14
- default: obj
11
+ var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
25
+ function _getRequireWildcardCache(nodeInterop) {
26
+ if (typeof WeakMap !== "function") return null;
27
+ var cacheBabelInterop = new WeakMap();
28
+ var cacheNodeInterop = new WeakMap();
29
+ return (_getRequireWildcardCache = function(nodeInterop) {
30
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
31
+ })(nodeInterop);
32
+ }
33
+ function _interop_require_wildcard(obj, nodeInterop) {
34
+ if (!nodeInterop && obj && obj.__esModule) {
35
+ return obj;
36
+ }
37
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
38
+ return {
39
+ default: obj
40
+ };
41
+ }
42
+ var cache = _getRequireWildcardCache(nodeInterop);
43
+ if (cache && cache.has(obj)) {
44
+ return cache.get(obj);
45
+ }
46
+ var newObj = {
47
+ __proto__: null
15
48
  };
49
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
50
+ for(var key in obj){
51
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
52
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
53
+ if (desc && (desc.get || desc.set)) {
54
+ Object.defineProperty(newObj, key, desc);
55
+ } else {
56
+ newObj[key] = obj[key];
57
+ }
58
+ }
59
+ }
60
+ newObj.default = obj;
61
+ if (cache) {
62
+ cache.set(obj, newObj);
63
+ }
64
+ return newObj;
65
+ }
66
+ function _object_spread(target) {
67
+ for(var i = 1; i < arguments.length; i++){
68
+ var source = arguments[i] != null ? arguments[i] : {};
69
+ var ownKeys = Object.keys(source);
70
+ if (typeof Object.getOwnPropertySymbols === "function") {
71
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
72
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
73
+ }));
74
+ }
75
+ ownKeys.forEach(function(key) {
76
+ _define_property(target, key, source[key]);
77
+ });
78
+ }
79
+ return target;
16
80
  }
17
81
  function createConditionalComponent(defaultComponent, mappings) {
18
- return function(props) {
82
+ return /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
19
83
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
20
84
  try {
21
85
  for(var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -30,7 +94,9 @@ function createConditionalComponent(defaultComponent, mappings) {
30
94
  });
31
95
  if (allConditionsMatch) {
32
96
  var Component = component;
33
- return /*#__PURE__*/ _react.default.createElement(Component, props);
97
+ return /*#__PURE__*/ _react.default.createElement(Component, _object_spread({
98
+ ref: ref
99
+ }, props));
34
100
  }
35
101
  }
36
102
  } catch (err) {
@@ -48,6 +114,8 @@ function createConditionalComponent(defaultComponent, mappings) {
48
114
  }
49
115
  }
50
116
  var DefaultComponent = defaultComponent;
51
- return /*#__PURE__*/ _react.default.createElement(DefaultComponent, props);
52
- };
117
+ return /*#__PURE__*/ _react.default.createElement(DefaultComponent, _object_spread({
118
+ ref: ref
119
+ }, props));
120
+ });
53
121
  }
@@ -1,7 +1,35 @@
1
- import React from "react";
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ import React, { forwardRef } from "react";
2
30
  // TODO: Поправить типы, если внутри услвовия типы не совпадают
3
31
  export function createConditionalComponent(defaultComponent, mappings) {
4
- return function(props) {
32
+ return /*#__PURE__*/ forwardRef(function(props, ref) {
5
33
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
6
34
  try {
7
35
  for(var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -16,7 +44,9 @@ export function createConditionalComponent(defaultComponent, mappings) {
16
44
  });
17
45
  if (allConditionsMatch) {
18
46
  var Component = component;
19
- return /*#__PURE__*/ React.createElement(Component, props);
47
+ return /*#__PURE__*/ React.createElement(Component, _object_spread({
48
+ ref: ref
49
+ }, props));
20
50
  }
21
51
  }
22
52
  } catch (err) {
@@ -34,6 +64,8 @@ export function createConditionalComponent(defaultComponent, mappings) {
34
64
  }
35
65
  }
36
66
  var DefaultComponent = defaultComponent;
37
- return /*#__PURE__*/ React.createElement(DefaultComponent, props);
38
- };
67
+ return /*#__PURE__*/ React.createElement(DefaultComponent, _object_spread({
68
+ ref: ref
69
+ }, props));
70
+ });
39
71
  }
@@ -1,9 +1,9 @@
1
- import { createForOfIteratorHelper as _createForOfIteratorHelper } from '../_virtual/_rollupPluginBabelHelpers.js';
2
- import React from 'react';
1
+ import { createForOfIteratorHelper as _createForOfIteratorHelper, extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { forwardRef } from 'react';
3
3
 
4
4
  // TODO: Поправить типы, если внутри услвовия типы не совпадают
5
5
  function createConditionalComponent(defaultComponent, mappings) {
6
- return function (props) {
6
+ return /*#__PURE__*/forwardRef(function (props, ref) {
7
7
  var _iterator = _createForOfIteratorHelper(mappings),
8
8
  _step;
9
9
  try {
@@ -19,7 +19,9 @@ function createConditionalComponent(defaultComponent, mappings) {
19
19
  });
20
20
  if (allConditionsMatch) {
21
21
  var Component = component;
22
- return /*#__PURE__*/React.createElement(Component, props);
22
+ return /*#__PURE__*/React.createElement(Component, _extends({
23
+ ref: ref
24
+ }, props));
23
25
  }
24
26
  }
25
27
  } catch (err) {
@@ -28,8 +30,10 @@ function createConditionalComponent(defaultComponent, mappings) {
28
30
  _iterator.f();
29
31
  }
30
32
  var DefaultComponent = defaultComponent;
31
- return /*#__PURE__*/React.createElement(DefaultComponent, props);
32
- };
33
+ return /*#__PURE__*/React.createElement(DefaultComponent, _extends({
34
+ ref: ref
35
+ }, props));
36
+ });
33
37
  }
34
38
 
35
39
  export { createConditionalComponent };
@@ -1 +1 @@
1
- {"version":3,"file":"createConditionalComponent.js","sources":["../../src/utils/createConditionalComponent.tsx"],"sourcesContent":["import React from 'react';\n\ntype PropCondition<T> = {\n prop: keyof T;\n value: any;\n};\n\ntype ComponentMapping<T> = {\n conditions: PropCondition<T> | PropCondition<T>[];\n component: React.ComponentType<T>;\n};\n\n// TODO: Поправить типы, если внутри услвовия типы не совпадают\nexport function createConditionalComponent<T extends object>(\n defaultComponent: React.ComponentType<T>,\n mappings: ComponentMapping<T>[],\n): React.FC<T> {\n return (props: T) => {\n for (const mapping of mappings) {\n const { conditions, component } = mapping;\n\n const conditionsArray = Array.isArray(conditions) ? conditions : [conditions];\n\n const allConditionsMatch = conditionsArray.every(({ prop, value }) => props[prop] === value);\n\n if (allConditionsMatch) {\n const Component = component;\n return <Component {...props} />;\n }\n }\n\n const DefaultComponent = defaultComponent;\n return <DefaultComponent {...props} />;\n };\n}\n"],"names":["createConditionalComponent","defaultComponent","mappings","props","_iterator","_createForOfIteratorHelper","_step","s","n","done","mapping","value","conditions","component","conditionsArray","Array","isArray","allConditionsMatch","every","_ref","prop","Component","React","createElement","err","e","f","DefaultComponent"],"mappings":";;;AAYA;AACO,SAASA,0BAA0BA,CACtCC,gBAAwC,EACxCC,QAA+B,EACpB;EACX,OAAO,UAACC,KAAQ,EAAK;AAAA,IAAA,IAAAC,SAAA,GAAAC,0BAAA,CACKH,QAAQ,CAAA;MAAAI,KAAA,CAAA;AAAA,IAAA,IAAA;MAA9B,KAAAF,SAAA,CAAAG,CAAA,EAAAD,EAAAA,CAAAA,CAAAA,KAAA,GAAAF,SAAA,CAAAI,CAAA,EAAAC,EAAAA,IAAA,GAAgC;AAAA,QAAA,IAArBC,OAAO,GAAAJ,KAAA,CAAAK,KAAA,CAAA;AACd,QAAA,IAAQC,UAAU,GAAgBF,OAAO,CAAjCE,UAAU;UAAEC,SAAS,GAAKH,OAAO,CAArBG,SAAS,CAAA;AAE7B,QAAA,IAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,GAAG,CAACA,UAAU,CAAC,CAAA;AAE7E,QAAA,IAAMK,kBAAkB,GAAGH,eAAe,CAACI,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,UAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;YAAET,KAAK,GAAAQ,IAAA,CAALR,KAAK,CAAA;AAAA,UAAA,OAAOR,KAAK,CAACiB,IAAI,CAAC,KAAKT,KAAK,CAAA;SAAC,CAAA,CAAA;AAE5F,QAAA,IAAIM,kBAAkB,EAAE;UACpB,IAAMI,SAAS,GAAGR,SAAS,CAAA;AAC3B,UAAA,oBAAOS,KAAA,CAAAC,aAAA,CAACF,SAAS,EAAKlB,KAAQ,CAAC,CAAA;AACnC,SAAA;AACJ,OAAA;AAAC,KAAA,CAAA,OAAAqB,GAAA,EAAA;MAAApB,SAAA,CAAAqB,CAAA,CAAAD,GAAA,CAAA,CAAA;AAAA,KAAA,SAAA;AAAApB,MAAAA,SAAA,CAAAsB,CAAA,EAAA,CAAA;AAAA,KAAA;IAED,IAAMC,gBAAgB,GAAG1B,gBAAgB,CAAA;AACzC,IAAA,oBAAOqB,KAAA,CAAAC,aAAA,CAACI,gBAAgB,EAAKxB,KAAQ,CAAC,CAAA;GACzC,CAAA;AACL;;;;"}
1
+ {"version":3,"file":"createConditionalComponent.js","sources":["../../src/utils/createConditionalComponent.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\ntype PropCondition<T> = {\n prop: keyof T;\n value: any;\n};\n\ntype ComponentMapping<T> = {\n conditions: PropCondition<T> | PropCondition<T>[];\n component: React.ComponentType<T>;\n};\n\n// TODO: Поправить типы, если внутри услвовия типы не совпадают\nexport function createConditionalComponent<T extends object, K extends HTMLElement>(\n defaultComponent: React.ComponentType<T>,\n mappings: ComponentMapping<T>[],\n) {\n return forwardRef<K, T>((props: T, ref) => {\n for (const mapping of mappings) {\n const { conditions, component } = mapping;\n\n const conditionsArray = Array.isArray(conditions) ? conditions : [conditions];\n\n const allConditionsMatch = conditionsArray.every(({ prop, value }) => props[prop] === value);\n\n if (allConditionsMatch) {\n const Component = component;\n return <Component ref={ref} {...props} />;\n }\n }\n\n const DefaultComponent = defaultComponent;\n return <DefaultComponent ref={ref} {...props} />;\n });\n}\n"],"names":["createConditionalComponent","defaultComponent","mappings","forwardRef","props","ref","_iterator","_createForOfIteratorHelper","_step","s","n","done","mapping","value","conditions","component","conditionsArray","Array","isArray","allConditionsMatch","every","_ref","prop","Component","React","createElement","_extends","err","e","f","DefaultComponent"],"mappings":";;;AAYA;AACO,SAASA,0BAA0BA,CACtCC,gBAAwC,EACxCC,QAA+B,EACjC;AACE,EAAA,oBAAOC,UAAU,CAAO,UAACC,KAAQ,EAAEC,GAAG,EAAK;AAAA,IAAA,IAAAC,SAAA,GAAAC,0BAAA,CACjBL,QAAQ,CAAA;MAAAM,KAAA,CAAA;AAAA,IAAA,IAAA;MAA9B,KAAAF,SAAA,CAAAG,CAAA,EAAAD,EAAAA,CAAAA,CAAAA,KAAA,GAAAF,SAAA,CAAAI,CAAA,EAAAC,EAAAA,IAAA,GAAgC;AAAA,QAAA,IAArBC,OAAO,GAAAJ,KAAA,CAAAK,KAAA,CAAA;AACd,QAAA,IAAQC,UAAU,GAAgBF,OAAO,CAAjCE,UAAU;UAAEC,SAAS,GAAKH,OAAO,CAArBG,SAAS,CAAA;AAE7B,QAAA,IAAMC,eAAe,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,GAAG,CAACA,UAAU,CAAC,CAAA;AAE7E,QAAA,IAAMK,kBAAkB,GAAGH,eAAe,CAACI,KAAK,CAAC,UAAAC,IAAA,EAAA;AAAA,UAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;YAAET,KAAK,GAAAQ,IAAA,CAALR,KAAK,CAAA;AAAA,UAAA,OAAOT,KAAK,CAACkB,IAAI,CAAC,KAAKT,KAAK,CAAA;SAAC,CAAA,CAAA;AAE5F,QAAA,IAAIM,kBAAkB,EAAE;UACpB,IAAMI,SAAS,GAAGR,SAAS,CAAA;AAC3B,UAAA,oBAAOS,KAAA,CAAAC,aAAA,CAACF,SAAS,EAAAG,QAAA,CAAA;AAACrB,YAAAA,GAAG,EAAEA,GAAAA;WAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC7C,SAAA;AACJ,OAAA;AAAC,KAAA,CAAA,OAAAuB,GAAA,EAAA;MAAArB,SAAA,CAAAsB,CAAA,CAAAD,GAAA,CAAA,CAAA;AAAA,KAAA,SAAA;AAAArB,MAAAA,SAAA,CAAAuB,CAAA,EAAA,CAAA;AAAA,KAAA;IAED,IAAMC,gBAAgB,GAAG7B,gBAAgB,CAAA;AACzC,IAAA,oBAAOuB,KAAA,CAAAC,aAAA,CAACK,gBAAgB,EAAAJ,QAAA,CAAA;AAACrB,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AACpD,GAAC,CAAC,CAAA;AACN;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.343.0-canary.2358.19738569895.0",
3
+ "version": "0.343.0-canary.2358.19740188284.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -79,7 +79,7 @@
79
79
  "@rollup/plugin-babel": "^6.0.4",
80
80
  "@rollup/plugin-commonjs": "^25.0.4",
81
81
  "@rollup/plugin-node-resolve": "^15.1.0",
82
- "@salutejs/plasma-sb-utils": "0.211.0-canary.2358.19738569895.0",
82
+ "@salutejs/plasma-sb-utils": "0.211.0-canary.2358.19740188284.0",
83
83
  "@salutejs/plasma-themes": "0.38.0",
84
84
  "@storybook/addon-docs": "8.6.12",
85
85
  "@storybook/addon-essentials": "8.6.12",
@@ -137,5 +137,5 @@
137
137
  "sideEffects": [
138
138
  "*.css"
139
139
  ],
140
- "gitHead": "382f1737d7bb5389fa1be4102a4fb340c87565cb"
140
+ "gitHead": "0c603402f47ef45fc27a94fbd15149cc094c8523"
141
141
  }
@@ -8,14 +8,78 @@ Object.defineProperty(exports, "createConditionalComponent", {
8
8
  return createConditionalComponent;
9
9
  }
10
10
  });
11
- var _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
- function _interop_require_default(obj) {
13
- return obj && obj.__esModule ? obj : {
14
- default: obj
11
+ var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
25
+ function _getRequireWildcardCache(nodeInterop) {
26
+ if (typeof WeakMap !== "function") return null;
27
+ var cacheBabelInterop = new WeakMap();
28
+ var cacheNodeInterop = new WeakMap();
29
+ return (_getRequireWildcardCache = function(nodeInterop) {
30
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
31
+ })(nodeInterop);
32
+ }
33
+ function _interop_require_wildcard(obj, nodeInterop) {
34
+ if (!nodeInterop && obj && obj.__esModule) {
35
+ return obj;
36
+ }
37
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
38
+ return {
39
+ default: obj
40
+ };
41
+ }
42
+ var cache = _getRequireWildcardCache(nodeInterop);
43
+ if (cache && cache.has(obj)) {
44
+ return cache.get(obj);
45
+ }
46
+ var newObj = {
47
+ __proto__: null
15
48
  };
49
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
50
+ for(var key in obj){
51
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
52
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
53
+ if (desc && (desc.get || desc.set)) {
54
+ Object.defineProperty(newObj, key, desc);
55
+ } else {
56
+ newObj[key] = obj[key];
57
+ }
58
+ }
59
+ }
60
+ newObj.default = obj;
61
+ if (cache) {
62
+ cache.set(obj, newObj);
63
+ }
64
+ return newObj;
65
+ }
66
+ function _object_spread(target) {
67
+ for(var i = 1; i < arguments.length; i++){
68
+ var source = arguments[i] != null ? arguments[i] : {};
69
+ var ownKeys = Object.keys(source);
70
+ if (typeof Object.getOwnPropertySymbols === "function") {
71
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
72
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
73
+ }));
74
+ }
75
+ ownKeys.forEach(function(key) {
76
+ _define_property(target, key, source[key]);
77
+ });
78
+ }
79
+ return target;
16
80
  }
17
81
  function createConditionalComponent(defaultComponent, mappings) {
18
- return function(props) {
82
+ return /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
19
83
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
20
84
  try {
21
85
  for(var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -30,7 +94,9 @@ function createConditionalComponent(defaultComponent, mappings) {
30
94
  });
31
95
  if (allConditionsMatch) {
32
96
  var Component = component;
33
- return /*#__PURE__*/ _react.default.createElement(Component, props);
97
+ return /*#__PURE__*/ _react.default.createElement(Component, _object_spread({
98
+ ref: ref
99
+ }, props));
34
100
  }
35
101
  }
36
102
  } catch (err) {
@@ -48,6 +114,8 @@ function createConditionalComponent(defaultComponent, mappings) {
48
114
  }
49
115
  }
50
116
  var DefaultComponent = defaultComponent;
51
- return /*#__PURE__*/ _react.default.createElement(DefaultComponent, props);
52
- };
117
+ return /*#__PURE__*/ _react.default.createElement(DefaultComponent, _object_spread({
118
+ ref: ref
119
+ }, props));
120
+ });
53
121
  }
@@ -1,7 +0,0 @@
1
- import { component, mergeConfig } from "../../../engines";
2
- import { comboboxNewConfig } from "../../..";
3
- import { config } from "./Combobox.config";
4
- var mergedConfig = mergeConfig(comboboxNewConfig, config);
5
- var ComboboxComponent = component(mergedConfig);
6
- var Combobox = ComboboxComponent;
7
- export { Combobox };
@@ -1,7 +1,35 @@
1
- import React from "react";
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ import React, { forwardRef } from "react";
2
30
  // TODO: Поправить типы, если внутри услвовия типы не совпадают
3
31
  export function createConditionalComponent(defaultComponent, mappings) {
4
- return function(props) {
32
+ return /*#__PURE__*/ forwardRef(function(props, ref) {
5
33
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
6
34
  try {
7
35
  for(var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -16,7 +44,9 @@ export function createConditionalComponent(defaultComponent, mappings) {
16
44
  });
17
45
  if (allConditionsMatch) {
18
46
  var Component = component;
19
- return /*#__PURE__*/ React.createElement(Component, props);
47
+ return /*#__PURE__*/ React.createElement(Component, _object_spread({
48
+ ref: ref
49
+ }, props));
20
50
  }
21
51
  }
22
52
  } catch (err) {
@@ -34,6 +64,8 @@ export function createConditionalComponent(defaultComponent, mappings) {
34
64
  }
35
65
  }
36
66
  var DefaultComponent = defaultComponent;
37
- return /*#__PURE__*/ React.createElement(DefaultComponent, props);
38
- };
67
+ return /*#__PURE__*/ React.createElement(DefaultComponent, _object_spread({
68
+ ref: ref
69
+ }, props));
70
+ });
39
71
  }
@@ -49,7 +49,7 @@ export type CheckboxProps = ComponentProps<typeof CheckboxDefault>;
49
49
  /**
50
50
  * Флажок или чекбокс. Позволяет пользователю управлять параметром с двумя состояниями — ☑ включено и ☐ отключено.
51
51
  */
52
- export declare const Checkbox: import("react").FC<import("../../../engines/types").PropsType<{
52
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("../../../engines/types").PropsType<{
53
53
  size: {
54
54
  s: import("@linaria/core").LinariaClassName;
55
55
  m: import("@linaria/core").LinariaClassName;
@@ -71,5 +71,5 @@ export declare const Checkbox: import("react").FC<import("../../../engines/types
71
71
  focused: {
72
72
  true: import("@linaria/core").LinariaClassName;
73
73
  };
74
- }> & import("../../../components/Checkbox/Checkbox.types").CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
74
+ }> & import("../../../components/Checkbox/Checkbox.types").CheckboxProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
75
75
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;2HAAiC,CAAC;AAG9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;2HAAiC,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;2HAKnB,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;2HAAiC,CAAC;AAG9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;2HAAiC,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;qLAKnB,CAAC"}
@@ -52,7 +52,7 @@ export declare const ChipTransparent: import("react").FunctionComponent<import("
52
52
  };
53
53
  }> & import("../../../components/Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>>;
54
54
  export type ChipProps = ComponentProps<typeof ChipDefault>;
55
- export declare const Chip: import("react").FC<import("../../../engines/types").PropsType<{
55
+ export declare const Chip: import("react").ForwardRefExoticComponent<Omit<import("../../../engines/types").PropsType<{
56
56
  view: {
57
57
  default: import("@linaria/core").LinariaClassName;
58
58
  secondary: import("@linaria/core").LinariaClassName;
@@ -77,5 +77,5 @@ export declare const Chip: import("react").FC<import("../../../engines/types").P
77
77
  pilled: {
78
78
  true: import("@linaria/core").LinariaClassName;
79
79
  };
80
- }> & import("../../../components/Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>>;
80
+ }> & import("../../../components/Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
81
81
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Chip/Chip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AASvC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;qGAAiC,CAAC;AAG1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;qGAAqC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;qGAKf,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Chip/Chip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AASvC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;qGAAiC,CAAC;AAG1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;qGAAqC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;gKAKf,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<import("../../../engines/types").PropsType<{
1
+ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<Omit<import("../../../engines/types").PropsType<{
2
2
  view: {
3
3
  default: import("@linaria/core").LinariaClassName;
4
4
  positive: import("@linaria/core").LinariaClassName;
@@ -74,7 +74,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
74
74
  chipType?: never;
75
75
  chipView?: never;
76
76
  chipValidator?: never;
77
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
77
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
78
78
  view: {
79
79
  default: import("@linaria/core").LinariaClassName;
80
80
  positive: import("@linaria/core").LinariaClassName;
@@ -152,7 +152,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
152
152
  chipValidator?: (value: string) => {
153
153
  view?: string;
154
154
  };
155
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
155
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
156
156
  view: {
157
157
  default: import("@linaria/core").LinariaClassName;
158
158
  positive: import("@linaria/core").LinariaClassName;
@@ -228,7 +228,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
228
228
  chipType?: never;
229
229
  chipView?: never;
230
230
  chipValidator?: never;
231
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
231
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
232
232
  view: {
233
233
  default: import("@linaria/core").LinariaClassName;
234
234
  positive: import("@linaria/core").LinariaClassName;
@@ -306,7 +306,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
306
306
  chipValidator?: (value: string) => {
307
307
  view?: string;
308
308
  };
309
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
309
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
310
310
  view: {
311
311
  default: import("@linaria/core").LinariaClassName;
312
312
  positive: import("@linaria/core").LinariaClassName;
@@ -382,7 +382,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
382
382
  chipType?: never;
383
383
  chipView?: never;
384
384
  chipValidator?: never;
385
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
385
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
386
386
  view: {
387
387
  default: import("@linaria/core").LinariaClassName;
388
388
  positive: import("@linaria/core").LinariaClassName;
@@ -460,7 +460,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
460
460
  chipValidator?: (value: string) => {
461
461
  view?: string;
462
462
  };
463
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
463
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
464
464
  view: {
465
465
  default: import("@linaria/core").LinariaClassName;
466
466
  positive: import("@linaria/core").LinariaClassName;
@@ -536,7 +536,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
536
536
  chipType?: never;
537
537
  chipView?: never;
538
538
  chipValidator?: never;
539
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
539
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
540
540
  view: {
541
541
  default: import("@linaria/core").LinariaClassName;
542
542
  positive: import("@linaria/core").LinariaClassName;
@@ -614,5 +614,5 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
614
614
  chipValidator?: (value: string) => {
615
615
  view?: string;
616
616
  };
617
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
617
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & import("../../../components/Mask/Mask.types").MaskProps, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
618
618
  //# sourceMappingURL=Mask.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Mask.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Mask/Mask.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACiwL,MAAO,YAAY;mBAAqE,MAAO,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;+PAD3lM,CAAC"}
1
+ {"version":3,"file":"Mask.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Mask/Mask.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBACiwL,MAAO,YAAY;mBAAqE,MAAO,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;oTAD3lM,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Omit<import("../../../engines/types").PropsType<{
1
+ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Omit<Omit<import("../../../engines/types").PropsType<{
2
2
  view: {
3
3
  default: import("@linaria/core").LinariaClassName;
4
4
  positive: import("@linaria/core").LinariaClassName;
@@ -74,7 +74,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
74
74
  chipType?: never;
75
75
  chipView?: never;
76
76
  chipValidator?: never;
77
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
77
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
78
78
  thousandSeparator?: boolean | string;
79
79
  decimalSeparator?: string;
80
80
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -84,7 +84,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
84
84
  allowLeadingZeros?: boolean;
85
85
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
86
86
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
87
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
87
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
88
88
  view: {
89
89
  default: import("@linaria/core").LinariaClassName;
90
90
  positive: import("@linaria/core").LinariaClassName;
@@ -162,7 +162,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
162
162
  chipValidator?: (value: string) => {
163
163
  view?: string;
164
164
  };
165
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
165
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
166
166
  thousandSeparator?: boolean | string;
167
167
  decimalSeparator?: string;
168
168
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -172,7 +172,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
172
172
  allowLeadingZeros?: boolean;
173
173
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
174
174
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
175
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
175
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
176
176
  view: {
177
177
  default: import("@linaria/core").LinariaClassName;
178
178
  positive: import("@linaria/core").LinariaClassName;
@@ -248,7 +248,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
248
248
  chipType?: never;
249
249
  chipView?: never;
250
250
  chipValidator?: never;
251
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
251
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
252
252
  thousandSeparator?: boolean | string;
253
253
  decimalSeparator?: string;
254
254
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -258,7 +258,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
258
258
  allowLeadingZeros?: boolean;
259
259
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
260
260
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
261
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
261
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
262
262
  view: {
263
263
  default: import("@linaria/core").LinariaClassName;
264
264
  positive: import("@linaria/core").LinariaClassName;
@@ -336,7 +336,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
336
336
  chipValidator?: (value: string) => {
337
337
  view?: string;
338
338
  };
339
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
339
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
340
340
  thousandSeparator?: boolean | string;
341
341
  decimalSeparator?: string;
342
342
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -346,7 +346,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
346
346
  allowLeadingZeros?: boolean;
347
347
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
348
348
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
349
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
349
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
350
350
  view: {
351
351
  default: import("@linaria/core").LinariaClassName;
352
352
  positive: import("@linaria/core").LinariaClassName;
@@ -422,7 +422,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
422
422
  chipType?: never;
423
423
  chipView?: never;
424
424
  chipValidator?: never;
425
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
425
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
426
426
  thousandSeparator?: boolean | string;
427
427
  decimalSeparator?: string;
428
428
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -432,7 +432,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
432
432
  allowLeadingZeros?: boolean;
433
433
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
434
434
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
435
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
435
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
436
436
  view: {
437
437
  default: import("@linaria/core").LinariaClassName;
438
438
  positive: import("@linaria/core").LinariaClassName;
@@ -510,7 +510,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
510
510
  chipValidator?: (value: string) => {
511
511
  view?: string;
512
512
  };
513
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
513
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
514
514
  thousandSeparator?: boolean | string;
515
515
  decimalSeparator?: string;
516
516
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -520,7 +520,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
520
520
  allowLeadingZeros?: boolean;
521
521
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
522
522
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
523
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
523
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
524
524
  view: {
525
525
  default: import("@linaria/core").LinariaClassName;
526
526
  positive: import("@linaria/core").LinariaClassName;
@@ -596,7 +596,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
596
596
  chipType?: never;
597
597
  chipView?: never;
598
598
  chipValidator?: never;
599
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
599
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
600
600
  thousandSeparator?: boolean | string;
601
601
  decimalSeparator?: string;
602
602
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -606,7 +606,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
606
606
  allowLeadingZeros?: boolean;
607
607
  isAllowed?: (values: import("react-number-format").NumberFormatValues) => boolean;
608
608
  onChange?: (event?: import("react").ChangeEvent<HTMLInputElement>, values?: import("react-number-format").NumberFormatValues) => void;
609
- } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<import("../../../engines/types").PropsType<{
609
+ } & import("../../../components/NumberFormat/NumberFormat.types").InputComponentOmittedProps & import("../../../components/NumberFormat").CustomNumericFormatProps, "ref"> | Omit<Omit<import("../../../engines/types").PropsType<{
610
610
  view: {
611
611
  default: import("@linaria/core").LinariaClassName;
612
612
  positive: import("@linaria/core").LinariaClassName;
@@ -684,7 +684,7 @@ export declare const NumberFormat: import("react").ForwardRefExoticComponent<(Om
684
684
  chipValidator?: (value: string) => {
685
685
  view?: string;
686
686
  };
687
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement> & {
687
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLElement> & {
688
688
  thousandSeparator?: boolean | string;
689
689
  decimalSeparator?: string;
690
690
  thousandsGroupStyle?: "thousand" | "lakh" | "wan" | "none";
@@ -1,4 +1,3 @@
1
- import { ComponentProps } from 'react';
2
1
  export declare const RadioboxDefault: import("react").FunctionComponent<import("../../../engines/types").PropsType<{
3
2
  size: {
4
3
  s: import("@linaria/core").LinariaClassName;
@@ -45,11 +44,53 @@ export declare const RadioboxOutline: import("react").FunctionComponent<import("
45
44
  true: import("@linaria/core").LinariaClassName;
46
45
  };
47
46
  }> & import("../../../engines/types").Filter<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("../../..").BaseboxProps, "appearance" | "indeterminate"> & import("react").RefAttributes<HTMLInputElement>>;
48
- type CheckboxProps = (ComponentProps<typeof RadioboxDefault> & {
49
- appearance: 'outline';
50
- }) | (ComponentProps<typeof RadioboxOutline> & {
51
- appearance?: 'default' | undefined;
52
- });
53
- export declare const Radiobox: import("react").FC<CheckboxProps>;
54
- export {};
47
+ export declare const Radiobox: import("react").ForwardRefExoticComponent<(Omit<import("../../../engines/types").PropsType<{
48
+ size: {
49
+ s: import("@linaria/core").LinariaClassName;
50
+ m: import("@linaria/core").LinariaClassName;
51
+ l: import("@linaria/core").LinariaClassName;
52
+ };
53
+ view: {
54
+ accent: import("@linaria/core").LinariaClassName;
55
+ default: import("@linaria/core").LinariaClassName;
56
+ secondary: import("@linaria/core").LinariaClassName;
57
+ tertiary: import("@linaria/core").LinariaClassName;
58
+ paragraph: import("@linaria/core").LinariaClassName;
59
+ positive: import("@linaria/core").LinariaClassName;
60
+ warning: import("@linaria/core").LinariaClassName;
61
+ negative: import("@linaria/core").LinariaClassName;
62
+ };
63
+ disabled: {
64
+ true: import("@linaria/core").LinariaClassName;
65
+ };
66
+ focused: {
67
+ true: import("@linaria/core").LinariaClassName;
68
+ };
69
+ }> & import("../../../engines/types").Filter<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("../../..").BaseboxProps, "appearance" | "indeterminate"> & import("react").RefAttributes<HTMLInputElement> & {
70
+ appearance: "outline";
71
+ }, "ref"> | Omit<import("../../../engines/types").PropsType<{
72
+ size: {
73
+ s: import("@linaria/core").LinariaClassName;
74
+ m: import("@linaria/core").LinariaClassName;
75
+ l: import("@linaria/core").LinariaClassName;
76
+ };
77
+ view: {
78
+ accent: import("@linaria/core").LinariaClassName;
79
+ default: import("@linaria/core").LinariaClassName;
80
+ secondary: import("@linaria/core").LinariaClassName;
81
+ tertiary: import("@linaria/core").LinariaClassName;
82
+ paragraph: import("@linaria/core").LinariaClassName;
83
+ positive: import("@linaria/core").LinariaClassName;
84
+ warning: import("@linaria/core").LinariaClassName;
85
+ negative: import("@linaria/core").LinariaClassName;
86
+ };
87
+ disabled: {
88
+ true: import("@linaria/core").LinariaClassName;
89
+ };
90
+ focused: {
91
+ true: import("@linaria/core").LinariaClassName;
92
+ };
93
+ }> & import("../../../engines/types").Filter<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size"> & Omit<import("../../..").BaseboxProps, "appearance" | "indeterminate"> & import("react").RefAttributes<HTMLInputElement> & {
94
+ appearance?: "default" | undefined;
95
+ }, "ref">) & import("react").RefAttributes<HTMLInputElement>>;
55
96
  //# sourceMappingURL=Radiobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radiobox.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Radiobox/Radiobox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;yOAAiC,CAAC;AAG9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;yOAAiC,CAAC;AAE9D,KAAK,aAAa,GACZ,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IACtC,UAAU,EAAE,SAAS,CAAC;CACzB,CAAC,GACF,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IACtC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACtC,CAAC,CAAC;AAET,eAAO,MAAM,QAAQ,mCAKnB,CAAC"}
1
+ {"version":3,"file":"Radiobox.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/Radiobox/Radiobox.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;yOAAiC,CAAC;AAG9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;yOAAiC,CAAC;AAU9D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;gBANC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;iBAGR,SAAS,GAAG,SAAS;6DAQ1C,CAAC"}
@@ -686,7 +686,7 @@ export declare const TextFieldClear: import("react").FunctionComponent<import(".
686
686
  view?: string;
687
687
  };
688
688
  } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>))>;
689
- export declare const TextField: import("react").FC<import("../../../engines/types").PropsType<{
689
+ export declare const TextField: import("react").ForwardRefExoticComponent<(Omit<import("../../../engines/types").PropsType<{
690
690
  view: {
691
691
  default: import("@linaria/core").LinariaClassName;
692
692
  positive: import("@linaria/core").LinariaClassName;
@@ -725,7 +725,7 @@ export declare const TextField: import("react").FC<import("../../../engines/type
725
725
  readOnly: {
726
726
  true: import("@linaria/core").LinariaClassName;
727
727
  };
728
- }> & (({
728
+ }> & {
729
729
  appearance?: "default" | "clear";
730
730
  size?: string;
731
731
  view?: string;
@@ -762,7 +762,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
762
762
  chipType?: never;
763
763
  chipView?: never;
764
764
  chipValidator?: never;
765
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
765
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
766
+ view: {
767
+ default: import("@linaria/core").LinariaClassName;
768
+ positive: import("@linaria/core").LinariaClassName;
769
+ warning: import("@linaria/core").LinariaClassName;
770
+ negative: import("@linaria/core").LinariaClassName;
771
+ };
772
+ size: {
773
+ xl: import("@linaria/core").LinariaClassName;
774
+ l: import("@linaria/core").LinariaClassName;
775
+ m: import("@linaria/core").LinariaClassName;
776
+ s: import("@linaria/core").LinariaClassName;
777
+ xs: import("@linaria/core").LinariaClassName;
778
+ };
779
+ labelPlacement: {
780
+ inner: import("@linaria/core").LinariaClassName;
781
+ outer: import("@linaria/core").LinariaClassName;
782
+ };
783
+ chipView: {
784
+ default: import("@linaria/core").LinariaClassName;
785
+ secondary: import("@linaria/core").LinariaClassName;
786
+ accent: import("@linaria/core").LinariaClassName;
787
+ positive: import("@linaria/core").LinariaClassName;
788
+ warning: import("@linaria/core").LinariaClassName;
789
+ negative: import("@linaria/core").LinariaClassName;
790
+ };
791
+ hintView: {
792
+ default: import("@linaria/core").LinariaClassName;
793
+ };
794
+ hintSize: {
795
+ m: import("@linaria/core").LinariaClassName;
796
+ s: import("@linaria/core").LinariaClassName;
797
+ };
798
+ disabled: {
799
+ true: import("@linaria/core").LinariaClassName;
800
+ };
801
+ readOnly: {
802
+ true: import("@linaria/core").LinariaClassName;
803
+ };
804
+ }> & {
766
805
  appearance?: "default" | "clear";
767
806
  size?: string;
768
807
  view?: string;
@@ -801,7 +840,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
801
840
  chipValidator?: (value: string) => {
802
841
  view?: string;
803
842
  };
804
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
843
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
844
+ view: {
845
+ default: import("@linaria/core").LinariaClassName;
846
+ positive: import("@linaria/core").LinariaClassName;
847
+ warning: import("@linaria/core").LinariaClassName;
848
+ negative: import("@linaria/core").LinariaClassName;
849
+ };
850
+ size: {
851
+ xl: import("@linaria/core").LinariaClassName;
852
+ l: import("@linaria/core").LinariaClassName;
853
+ m: import("@linaria/core").LinariaClassName;
854
+ s: import("@linaria/core").LinariaClassName;
855
+ xs: import("@linaria/core").LinariaClassName;
856
+ };
857
+ labelPlacement: {
858
+ inner: import("@linaria/core").LinariaClassName;
859
+ outer: import("@linaria/core").LinariaClassName;
860
+ };
861
+ chipView: {
862
+ default: import("@linaria/core").LinariaClassName;
863
+ secondary: import("@linaria/core").LinariaClassName;
864
+ accent: import("@linaria/core").LinariaClassName;
865
+ positive: import("@linaria/core").LinariaClassName;
866
+ warning: import("@linaria/core").LinariaClassName;
867
+ negative: import("@linaria/core").LinariaClassName;
868
+ };
869
+ hintView: {
870
+ default: import("@linaria/core").LinariaClassName;
871
+ };
872
+ hintSize: {
873
+ m: import("@linaria/core").LinariaClassName;
874
+ s: import("@linaria/core").LinariaClassName;
875
+ };
876
+ disabled: {
877
+ true: import("@linaria/core").LinariaClassName;
878
+ };
879
+ readOnly: {
880
+ true: import("@linaria/core").LinariaClassName;
881
+ };
882
+ }> & {
805
883
  appearance?: "default" | "clear";
806
884
  size?: string;
807
885
  view?: string;
@@ -838,7 +916,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
838
916
  chipType?: never;
839
917
  chipView?: never;
840
918
  chipValidator?: never;
841
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
919
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
920
+ view: {
921
+ default: import("@linaria/core").LinariaClassName;
922
+ positive: import("@linaria/core").LinariaClassName;
923
+ warning: import("@linaria/core").LinariaClassName;
924
+ negative: import("@linaria/core").LinariaClassName;
925
+ };
926
+ size: {
927
+ xl: import("@linaria/core").LinariaClassName;
928
+ l: import("@linaria/core").LinariaClassName;
929
+ m: import("@linaria/core").LinariaClassName;
930
+ s: import("@linaria/core").LinariaClassName;
931
+ xs: import("@linaria/core").LinariaClassName;
932
+ };
933
+ labelPlacement: {
934
+ inner: import("@linaria/core").LinariaClassName;
935
+ outer: import("@linaria/core").LinariaClassName;
936
+ };
937
+ chipView: {
938
+ default: import("@linaria/core").LinariaClassName;
939
+ secondary: import("@linaria/core").LinariaClassName;
940
+ accent: import("@linaria/core").LinariaClassName;
941
+ positive: import("@linaria/core").LinariaClassName;
942
+ warning: import("@linaria/core").LinariaClassName;
943
+ negative: import("@linaria/core").LinariaClassName;
944
+ };
945
+ hintView: {
946
+ default: import("@linaria/core").LinariaClassName;
947
+ };
948
+ hintSize: {
949
+ m: import("@linaria/core").LinariaClassName;
950
+ s: import("@linaria/core").LinariaClassName;
951
+ };
952
+ disabled: {
953
+ true: import("@linaria/core").LinariaClassName;
954
+ };
955
+ readOnly: {
956
+ true: import("@linaria/core").LinariaClassName;
957
+ };
958
+ }> & {
842
959
  appearance?: "default" | "clear";
843
960
  size?: string;
844
961
  view?: string;
@@ -877,7 +994,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
877
994
  chipValidator?: (value: string) => {
878
995
  view?: string;
879
996
  };
880
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
997
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
998
+ view: {
999
+ default: import("@linaria/core").LinariaClassName;
1000
+ positive: import("@linaria/core").LinariaClassName;
1001
+ warning: import("@linaria/core").LinariaClassName;
1002
+ negative: import("@linaria/core").LinariaClassName;
1003
+ };
1004
+ size: {
1005
+ xl: import("@linaria/core").LinariaClassName;
1006
+ l: import("@linaria/core").LinariaClassName;
1007
+ m: import("@linaria/core").LinariaClassName;
1008
+ s: import("@linaria/core").LinariaClassName;
1009
+ xs: import("@linaria/core").LinariaClassName;
1010
+ };
1011
+ labelPlacement: {
1012
+ inner: import("@linaria/core").LinariaClassName;
1013
+ outer: import("@linaria/core").LinariaClassName;
1014
+ };
1015
+ chipView: {
1016
+ default: import("@linaria/core").LinariaClassName;
1017
+ secondary: import("@linaria/core").LinariaClassName;
1018
+ accent: import("@linaria/core").LinariaClassName;
1019
+ positive: import("@linaria/core").LinariaClassName;
1020
+ warning: import("@linaria/core").LinariaClassName;
1021
+ negative: import("@linaria/core").LinariaClassName;
1022
+ };
1023
+ hintView: {
1024
+ default: import("@linaria/core").LinariaClassName;
1025
+ };
1026
+ hintSize: {
1027
+ m: import("@linaria/core").LinariaClassName;
1028
+ s: import("@linaria/core").LinariaClassName;
1029
+ };
1030
+ disabled: {
1031
+ true: import("@linaria/core").LinariaClassName;
1032
+ };
1033
+ readOnly: {
1034
+ true: import("@linaria/core").LinariaClassName;
1035
+ };
1036
+ }> & {
881
1037
  appearance?: "default" | "clear";
882
1038
  size?: string;
883
1039
  view?: string;
@@ -914,7 +1070,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
914
1070
  chipType?: never;
915
1071
  chipView?: never;
916
1072
  chipValidator?: never;
917
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
1073
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
1074
+ view: {
1075
+ default: import("@linaria/core").LinariaClassName;
1076
+ positive: import("@linaria/core").LinariaClassName;
1077
+ warning: import("@linaria/core").LinariaClassName;
1078
+ negative: import("@linaria/core").LinariaClassName;
1079
+ };
1080
+ size: {
1081
+ xl: import("@linaria/core").LinariaClassName;
1082
+ l: import("@linaria/core").LinariaClassName;
1083
+ m: import("@linaria/core").LinariaClassName;
1084
+ s: import("@linaria/core").LinariaClassName;
1085
+ xs: import("@linaria/core").LinariaClassName;
1086
+ };
1087
+ labelPlacement: {
1088
+ inner: import("@linaria/core").LinariaClassName;
1089
+ outer: import("@linaria/core").LinariaClassName;
1090
+ };
1091
+ chipView: {
1092
+ default: import("@linaria/core").LinariaClassName;
1093
+ secondary: import("@linaria/core").LinariaClassName;
1094
+ accent: import("@linaria/core").LinariaClassName;
1095
+ positive: import("@linaria/core").LinariaClassName;
1096
+ warning: import("@linaria/core").LinariaClassName;
1097
+ negative: import("@linaria/core").LinariaClassName;
1098
+ };
1099
+ hintView: {
1100
+ default: import("@linaria/core").LinariaClassName;
1101
+ };
1102
+ hintSize: {
1103
+ m: import("@linaria/core").LinariaClassName;
1104
+ s: import("@linaria/core").LinariaClassName;
1105
+ };
1106
+ disabled: {
1107
+ true: import("@linaria/core").LinariaClassName;
1108
+ };
1109
+ readOnly: {
1110
+ true: import("@linaria/core").LinariaClassName;
1111
+ };
1112
+ }> & {
918
1113
  appearance?: "default" | "clear";
919
1114
  size?: string;
920
1115
  view?: string;
@@ -953,7 +1148,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
953
1148
  chipValidator?: (value: string) => {
954
1149
  view?: string;
955
1150
  };
956
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
1151
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
1152
+ view: {
1153
+ default: import("@linaria/core").LinariaClassName;
1154
+ positive: import("@linaria/core").LinariaClassName;
1155
+ warning: import("@linaria/core").LinariaClassName;
1156
+ negative: import("@linaria/core").LinariaClassName;
1157
+ };
1158
+ size: {
1159
+ xl: import("@linaria/core").LinariaClassName;
1160
+ l: import("@linaria/core").LinariaClassName;
1161
+ m: import("@linaria/core").LinariaClassName;
1162
+ s: import("@linaria/core").LinariaClassName;
1163
+ xs: import("@linaria/core").LinariaClassName;
1164
+ };
1165
+ labelPlacement: {
1166
+ inner: import("@linaria/core").LinariaClassName;
1167
+ outer: import("@linaria/core").LinariaClassName;
1168
+ };
1169
+ chipView: {
1170
+ default: import("@linaria/core").LinariaClassName;
1171
+ secondary: import("@linaria/core").LinariaClassName;
1172
+ accent: import("@linaria/core").LinariaClassName;
1173
+ positive: import("@linaria/core").LinariaClassName;
1174
+ warning: import("@linaria/core").LinariaClassName;
1175
+ negative: import("@linaria/core").LinariaClassName;
1176
+ };
1177
+ hintView: {
1178
+ default: import("@linaria/core").LinariaClassName;
1179
+ };
1180
+ hintSize: {
1181
+ m: import("@linaria/core").LinariaClassName;
1182
+ s: import("@linaria/core").LinariaClassName;
1183
+ };
1184
+ disabled: {
1185
+ true: import("@linaria/core").LinariaClassName;
1186
+ };
1187
+ readOnly: {
1188
+ true: import("@linaria/core").LinariaClassName;
1189
+ };
1190
+ }> & {
957
1191
  appearance?: "default" | "clear";
958
1192
  size?: string;
959
1193
  view?: string;
@@ -990,7 +1224,46 @@ export declare const TextField: import("react").FC<import("../../../engines/type
990
1224
  chipType?: never;
991
1225
  chipView?: never;
992
1226
  chipValidator?: never;
993
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
1227
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref"> | Omit<import("../../../engines/types").PropsType<{
1228
+ view: {
1229
+ default: import("@linaria/core").LinariaClassName;
1230
+ positive: import("@linaria/core").LinariaClassName;
1231
+ warning: import("@linaria/core").LinariaClassName;
1232
+ negative: import("@linaria/core").LinariaClassName;
1233
+ };
1234
+ size: {
1235
+ xl: import("@linaria/core").LinariaClassName;
1236
+ l: import("@linaria/core").LinariaClassName;
1237
+ m: import("@linaria/core").LinariaClassName;
1238
+ s: import("@linaria/core").LinariaClassName;
1239
+ xs: import("@linaria/core").LinariaClassName;
1240
+ };
1241
+ labelPlacement: {
1242
+ inner: import("@linaria/core").LinariaClassName;
1243
+ outer: import("@linaria/core").LinariaClassName;
1244
+ };
1245
+ chipView: {
1246
+ default: import("@linaria/core").LinariaClassName;
1247
+ secondary: import("@linaria/core").LinariaClassName;
1248
+ accent: import("@linaria/core").LinariaClassName;
1249
+ positive: import("@linaria/core").LinariaClassName;
1250
+ warning: import("@linaria/core").LinariaClassName;
1251
+ negative: import("@linaria/core").LinariaClassName;
1252
+ };
1253
+ hintView: {
1254
+ default: import("@linaria/core").LinariaClassName;
1255
+ };
1256
+ hintSize: {
1257
+ m: import("@linaria/core").LinariaClassName;
1258
+ s: import("@linaria/core").LinariaClassName;
1259
+ };
1260
+ disabled: {
1261
+ true: import("@linaria/core").LinariaClassName;
1262
+ };
1263
+ readOnly: {
1264
+ true: import("@linaria/core").LinariaClassName;
1265
+ };
1266
+ }> & {
994
1267
  appearance?: "default" | "clear";
995
1268
  size?: string;
996
1269
  view?: string;
@@ -1029,5 +1302,5 @@ export declare const TextField: import("react").FC<import("../../../engines/type
1029
1302
  chipValidator?: (value: string) => {
1030
1303
  view?: string;
1031
1304
  };
1032
- } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>))>;
1305
+ } & Omit<import("../../..").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>, "ref">) & import("react").RefAttributes<HTMLElement>>;
1033
1306
  //# sourceMappingURL=TextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/TextField/TextField.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAW2qK,MAAO,YAAY;mBAAqE,MAAO,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;4IAX7/K,CAAC;AAG/D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAQorK,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;4IARjgL,CAAC;AAE3D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAMyrK,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA5W,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;oCAAlwK,CAAC;;;;;;;;;;;;;wBAAq5J,YAAY;yBAA4E,YAAY;;;oCAAuQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;4IADzjL,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/examples/components/TextField/TextField.ts"],"names":[],"mappings":"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"}
@@ -7,6 +7,6 @@ type ComponentMapping<T> = {
7
7
  conditions: PropCondition<T> | PropCondition<T>[];
8
8
  component: React.ComponentType<T>;
9
9
  };
10
- export declare function createConditionalComponent<T extends object>(defaultComponent: React.ComponentType<T>, mappings: ComponentMapping<T>[]): React.FC<T>;
10
+ export declare function createConditionalComponent<T extends object, K extends HTMLElement>(defaultComponent: React.ComponentType<T>, mappings: ComponentMapping<T>[]): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<K>>;
11
11
  export {};
12
12
  //# sourceMappingURL=createConditionalComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createConditionalComponent.d.ts","sourceRoot":"","sources":["../../src/utils/createConditionalComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,aAAa,CAAC,CAAC,IAAI;IACpB,IAAI,EAAE,MAAM,CAAC,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,IAAI;IACvB,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAClD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACrC,CAAC;AAGF,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,EACvD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACxC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAChC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAkBb"}
1
+ {"version":3,"file":"createConditionalComponent.d.ts","sourceRoot":"","sources":["../../src/utils/createConditionalComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,KAAK,aAAa,CAAC,CAAC,IAAI;IACpB,IAAI,EAAE,MAAM,CAAC,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,IAAI;IACvB,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAClD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CACrC,CAAC;AAGF,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,WAAW,EAC9E,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACxC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,sFAmBlC"}