@salutejs/plasma-new-hope 0.186.0-canary.1542.11726237853.0 → 0.186.0-canary.1542.11732695647.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +6 -3
- package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +4 -3
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/{Combobox.styles_18a8p75.css → Combobox.styles_15nwy93.css} +1 -0
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +4 -3
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +4 -3
- package/cjs/components/Combobox/ComboboxNew/utils/getForm.css +39 -0
- package/cjs/components/Combobox/ComboboxNew/utils/getForm.js +14 -10
- package/cjs/components/Combobox/ComboboxNew/utils/getForm.js.map +1 -1
- package/cjs/index.css +4 -3
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +10 -5
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +15 -10
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/getForm.js +14 -10
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.js +2 -3
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.boundler.js +7 -4
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +14 -9
- package/emotion/es/components/Combobox/ComboboxNew/utils/getForm.js +15 -11
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.js +2 -3
- package/es/components/Combobox/ComboboxNew/Combobox.boundler.js +7 -4
- package/es/components/Combobox/ComboboxNew/Combobox.boundler.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.css +4 -3
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -2
- package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/{Combobox.styles_18a8p75.css → Combobox.styles_15nwy93.css} +1 -0
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +4 -3
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +4 -3
- package/es/components/Combobox/ComboboxNew/utils/getForm.css +39 -0
- package/es/components/Combobox/ComboboxNew/utils/getForm.js +15 -11
- package/es/components/Combobox/ComboboxNew/utils/getForm.js.map +1 -1
- package/es/index.css +4 -3
- package/package.json +2 -2
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +10 -5
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +6 -2
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getForm.js +14 -10
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.js +2 -3
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.boundler.js +7 -4
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +5 -1
- package/styled-components/es/components/Combobox/ComboboxNew/utils/getForm.js +15 -11
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.js +2 -3
- package/types/components/Combobox/ComboboxNew/Combobox.boundler.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts +1 -0
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +8 -9
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts +17 -3
- package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +25 -459
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +25 -459
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
});
|
7
7
|
exports.getFormComponentGenerator = void 0;
|
8
8
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
+
var _utils = /*#__PURE__*/require("../../../../utils");
|
10
|
+
var _Combobox = /*#__PURE__*/require("../Combobox.styles");
|
9
11
|
var _syntheticEvent = /*#__PURE__*/require("./syntheticEvent");
|
10
12
|
var _excluded = ["onChange", "name", "defaultValue", "component"],
|
11
13
|
_excluded2 = ["onChange", "name", "defaultValue", "component"];
|
@@ -20,7 +22,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
20
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
21
23
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
22
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
23
|
-
var SingleForm = function
|
25
|
+
var SingleForm = /*#__PURE__*/(0, _react.forwardRef)(function (args, ref) {
|
24
26
|
var onChange = args.onChange,
|
25
27
|
name = args.name,
|
26
28
|
defaultValue = args.defaultValue,
|
@@ -38,8 +40,8 @@ var SingleForm = function SingleForm(args) {
|
|
38
40
|
var event = (0, _syntheticEvent.createEvent)(selectRef);
|
39
41
|
onChange && onChange(event);
|
40
42
|
}, [value]);
|
41
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
42
|
-
ref: selectRef,
|
43
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Combobox.SelectHidden, {
|
44
|
+
ref: (0, _utils.mergeRefs)(selectRef, ref),
|
43
45
|
value: value,
|
44
46
|
name: name,
|
45
47
|
hidden: true
|
@@ -49,8 +51,8 @@ var SingleForm = function SingleForm(args) {
|
|
49
51
|
value: value,
|
50
52
|
onChange: handleChange
|
51
53
|
})));
|
52
|
-
};
|
53
|
-
var MultipleForm = function
|
54
|
+
});
|
55
|
+
var MultipleForm = /*#__PURE__*/(0, _react.forwardRef)(function (args, ref) {
|
54
56
|
var onChange = args.onChange,
|
55
57
|
name = args.name,
|
56
58
|
defaultValue = args.defaultValue,
|
@@ -68,8 +70,8 @@ var MultipleForm = function MultipleForm(args) {
|
|
68
70
|
var event = (0, _syntheticEvent.createEvent)(selectRef);
|
69
71
|
onChange && onChange(event);
|
70
72
|
}, [values]);
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
72
|
-
ref: selectRef,
|
73
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Combobox.SelectHidden, {
|
74
|
+
ref: (0, _utils.mergeRefs)(selectRef, ref),
|
73
75
|
value: values,
|
74
76
|
name: name,
|
75
77
|
multiple: true,
|
@@ -83,13 +85,15 @@ var MultipleForm = function MultipleForm(args) {
|
|
83
85
|
value: values,
|
84
86
|
onChange: handleChange
|
85
87
|
})));
|
86
|
-
};
|
88
|
+
});
|
87
89
|
var getFormComponentGenerator = exports.getFormComponentGenerator = function getFormComponentGenerator(Component) {
|
88
|
-
return function (args) {
|
90
|
+
return /*#__PURE__*/(0, _react.forwardRef)(function (args, ref) {
|
89
91
|
return args.multiple ? /*#__PURE__*/_react["default"].createElement(MultipleForm, _extends({}, args, {
|
92
|
+
ref: ref,
|
90
93
|
component: Component
|
91
94
|
})) : /*#__PURE__*/_react["default"].createElement(SingleForm, _extends({}, args, {
|
95
|
+
ref: ref,
|
92
96
|
component: Component
|
93
97
|
}));
|
94
|
-
};
|
98
|
+
});
|
95
99
|
};
|
@@ -3,14 +3,13 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.Combobox = void 0;
|
7
7
|
var _engines = /*#__PURE__*/require("../../../../engines");
|
8
8
|
var _ = /*#__PURE__*/require("../../../..");
|
9
9
|
var _Combobox = /*#__PURE__*/require("./Combobox.config");
|
10
10
|
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_.comboboxNewConfig, _Combobox.config);
|
11
11
|
var ComboboxComponent = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
12
|
-
var Combobox = exports.Combobox =
|
13
|
-
var ComboboxWithForm = exports.ComboboxWithForm = /*#__PURE__*/(0, _.boundCombobox)({
|
12
|
+
var Combobox = exports.Combobox = /*#__PURE__*/(0, _.boundCombobox)({
|
14
13
|
base: ComboboxComponent,
|
15
14
|
baseForm: /*#__PURE__*/(0, _.getFormComponentGenerator)(ComboboxComponent)
|
16
15
|
});
|
@@ -5,9 +5,9 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
5
5
|
import { WithTheme } from '../../../_helpers';
|
6
6
|
import { IconDone } from '../../../../components/_Icon';
|
7
7
|
|
8
|
-
import {
|
8
|
+
import { Combobox } from './Combobox';
|
9
9
|
|
10
|
-
type StorySelectProps = ComponentProps<typeof
|
10
|
+
type StorySelectProps = ComponentProps<typeof Combobox> & {
|
11
11
|
enableContentLeft?: boolean;
|
12
12
|
};
|
13
13
|
|
@@ -19,7 +19,7 @@ const variant = ['normal', 'tight'];
|
|
19
19
|
const meta: Meta<StorySelectProps> = {
|
20
20
|
title: 'plasma_b2c/Combobox',
|
21
21
|
decorators: [WithTheme],
|
22
|
-
component:
|
22
|
+
component: Combobox,
|
23
23
|
argTypes: {
|
24
24
|
size: {
|
25
25
|
options: size,
|
@@ -356,7 +356,7 @@ const SingleStory = (args: StorySelectProps) => {
|
|
356
356
|
|
357
357
|
return (
|
358
358
|
<div style={{ width: '400px' }}>
|
359
|
-
<
|
359
|
+
<Combobox
|
360
360
|
{...args}
|
361
361
|
items={items}
|
362
362
|
value={value}
|
@@ -367,24 +367,6 @@ const SingleStory = (args: StorySelectProps) => {
|
|
367
367
|
);
|
368
368
|
};
|
369
369
|
|
370
|
-
const SingleFormStory = (args: StorySelectProps) => {
|
371
|
-
const handleChange = (event) => {
|
372
|
-
console.log(event);
|
373
|
-
};
|
374
|
-
|
375
|
-
return (
|
376
|
-
<div style={{ width: '400px' }}>
|
377
|
-
<ComboboxWithForm
|
378
|
-
{...args}
|
379
|
-
items={items}
|
380
|
-
formType
|
381
|
-
onChange={handleChange}
|
382
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
383
|
-
/>
|
384
|
-
</div>
|
385
|
-
);
|
386
|
-
};
|
387
|
-
|
388
370
|
export const Single: StoryObj<StorySelectProps> = {
|
389
371
|
render: (args) => <SingleStory {...args} />,
|
390
372
|
args: {
|
@@ -397,24 +379,12 @@ export const Single: StoryObj<StorySelectProps> = {
|
|
397
379
|
},
|
398
380
|
};
|
399
381
|
|
400
|
-
export const SingleForm: StoryObj<StorySelectProps> = {
|
401
|
-
render: (args) => <SingleFormStory {...args} />,
|
402
|
-
args: {
|
403
|
-
closeAfterSelect: true,
|
404
|
-
},
|
405
|
-
parameters: {
|
406
|
-
controls: {
|
407
|
-
exclude: ['isTargetAmount'],
|
408
|
-
},
|
409
|
-
},
|
410
|
-
};
|
411
|
-
|
412
382
|
const MultipleStory = (args: StorySelectProps) => {
|
413
383
|
const [value, setValue] = useState([]);
|
414
384
|
|
415
385
|
return (
|
416
386
|
<div style={{ width: '400px' }}>
|
417
|
-
<
|
387
|
+
<Combobox
|
418
388
|
{...args}
|
419
389
|
multiple
|
420
390
|
formType={false}
|
@@ -427,35 +397,9 @@ const MultipleStory = (args: StorySelectProps) => {
|
|
427
397
|
);
|
428
398
|
};
|
429
399
|
|
430
|
-
const MultipleStoryForm = (args: StorySelectProps) => {
|
431
|
-
const handleChange = (event) => {
|
432
|
-
console.log(event);
|
433
|
-
};
|
434
|
-
|
435
|
-
return (
|
436
|
-
<div style={{ width: '400px' }}>
|
437
|
-
<ComboboxWithForm
|
438
|
-
{...args}
|
439
|
-
multiple
|
440
|
-
formType
|
441
|
-
onChange={handleChange}
|
442
|
-
items={items}
|
443
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
444
|
-
/>
|
445
|
-
</div>
|
446
|
-
);
|
447
|
-
};
|
448
|
-
|
449
400
|
export const Multiple: StoryObj<StorySelectProps> = {
|
450
401
|
render: (args) => <MultipleStory {...args} />,
|
451
402
|
args: {
|
452
403
|
closeAfterSelect: false,
|
453
404
|
},
|
454
405
|
};
|
455
|
-
|
456
|
-
export const MultipleForm: StoryObj<StorySelectProps> = {
|
457
|
-
render: (args) => <MultipleStoryForm {...args} />,
|
458
|
-
args: {
|
459
|
-
closeAfterSelect: false,
|
460
|
-
},
|
461
|
-
};
|
@@ -3,14 +3,13 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.Combobox = void 0;
|
7
7
|
var _engines = /*#__PURE__*/require("../../../../engines");
|
8
8
|
var _ = /*#__PURE__*/require("../../../..");
|
9
9
|
var _Combobox = /*#__PURE__*/require("./Combobox.config");
|
10
10
|
var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_.comboboxNewConfig, _Combobox.config);
|
11
11
|
var ComboboxComponent = /*#__PURE__*/(0, _engines.component)(mergedConfig);
|
12
|
-
var Combobox = exports.Combobox =
|
13
|
-
var ComboboxWithForm = exports.ComboboxWithForm = /*#__PURE__*/(0, _.boundCombobox)({
|
12
|
+
var Combobox = exports.Combobox = /*#__PURE__*/(0, _.boundCombobox)({
|
14
13
|
base: ComboboxComponent,
|
15
14
|
baseForm: /*#__PURE__*/(0, _.getFormComponentGenerator)(ComboboxComponent)
|
16
15
|
});
|
@@ -1,14 +1,17 @@
|
|
1
|
-
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
+
import React, { forwardRef } from 'react';
|
2
3
|
export var boundCombobox = function boundCombobox(_ref) {
|
3
4
|
var ComboboxBase = _ref.base,
|
4
5
|
ComboboxBaseForm = _ref.baseForm;
|
5
|
-
return function (rest) {
|
6
|
+
return /*#__PURE__*/forwardRef(function (rest, ref) {
|
6
7
|
if (rest.formType) {
|
7
|
-
return /*#__PURE__*/React.createElement(ComboboxBaseForm,
|
8
|
+
return /*#__PURE__*/React.createElement(ComboboxBaseForm, _extends({
|
9
|
+
ref: ref
|
10
|
+
}, rest));
|
8
11
|
}
|
9
12
|
if (!rest.formType) {
|
10
13
|
return /*#__PURE__*/React.createElement(ComboboxBase, rest);
|
11
14
|
}
|
12
15
|
return null;
|
13
|
-
};
|
16
|
+
});
|
14
17
|
};
|
@@ -3,11 +3,12 @@ import { css } from '@emotion/react';
|
|
3
3
|
import { emptyStateConfig, emptyStateTokens } from '../../EmptyState';
|
4
4
|
import { IconDisclosureDownCentered } from '../../_Icon';
|
5
5
|
import { component, mergeConfig } from '../../../engines';
|
6
|
+
import { applyHidden } from '../../../mixins';
|
6
7
|
import { tokens, constants, classes } from './Combobox.tokens';
|
7
8
|
var mergedConfig = /*#__PURE__*/mergeConfig(emptyStateConfig);
|
8
9
|
var EmptyState = /*#__PURE__*/component(mergedConfig);
|
9
10
|
export var Ul = /*#__PURE__*/_styled("ul", {
|
10
|
-
target: "
|
11
|
+
target: "e17e8k3g4",
|
11
12
|
label: "plasma-new-hope__Ul"
|
12
13
|
})("box-sizing:border-box;background:var(", constants.background, ");box-shadow:", constants.boxShadow, ";border-radius:var(", tokens.borderRadius, ");width:", function (_ref) {
|
13
14
|
var listWidth = _ref.listWidth;
|
@@ -21,9 +22,9 @@ export var Ul = /*#__PURE__*/_styled("ul", {
|
|
21
22
|
}, ";border:var(", tokens.dropdownBorderWidth, ") solid var(", tokens.dropdownBorderColor, ");margin:", function (_ref4) {
|
22
23
|
var isInnerUl = _ref4.isInnerUl;
|
23
24
|
return isInnerUl ? "calc(var(".concat(tokens.padding, ") * -1) 0 0 0") : 0;
|
24
|
-
}, ";padding:var(", tokens.padding, ") 0;.", classes.emptyStateWrapper, "{box-shadow:none;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
25
|
+
}, ";padding:var(", tokens.padding, ") 0;.", classes.emptyStateWrapper, "{box-shadow:none;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvQ29tYm9ib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2Vucy50ZXh0RmllbGRGb250U2l6ZX0pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250U3R5bGV9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkRm9udFN0eWxlfSk7XG4gICAgJHtlbXB0eVN0YXRlVG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkRm9udFdlaWdodH0pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250TGV0dGVyU3BhY2luZ306IHZhcigke3Rva2Vucy50ZXh0RmllbGRMZXR0ZXJTcGFjaW5nfSk7XG4gICAgJHtlbXB0eVN0YXRlVG9rZW5zLmZvbnRMaW5lSGVpZ2h0fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZExpbmVIZWlnaHR9KTtcbmA7XG5cbmV4cG9ydCBjb25zdCBTZWxlY3RIaWRkZW4gPSBzdHlsZWQuc2VsZWN0YFxuICAgICR7YXBwbHlIaWRkZW4oKX07XG5gO1xuIl19 */"));
|
25
26
|
export var IconArrowWrapper = /*#__PURE__*/_styled("div", {
|
26
|
-
target: "
|
27
|
+
target: "e17e8k3g3",
|
27
28
|
label: "plasma-new-hope__IconArrowWrapper"
|
28
29
|
})("line-height:0;color:var(", tokens.disclosureIconColor, ");cursor:", function (_ref5) {
|
29
30
|
var disabled = _ref5.disabled;
|
@@ -31,13 +32,17 @@ export var IconArrowWrapper = /*#__PURE__*/_styled("div", {
|
|
31
32
|
}, ";.", classes.arrowInverse, "{transform:rotate(-180deg);}&:hover,&:active{color:", function (_ref6) {
|
32
33
|
var disabled = _ref6.disabled;
|
33
34
|
return disabled ? "var(".concat(tokens.disclosureIconColor, ")") : "var(".concat(tokens.disclosureIconColorHover, ")");
|
34
|
-
}, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
35
|
+
}, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=ut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y5mb250RmFtaWx5fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRGYW1pbHl9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udFNpemV9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkRm9udFNpemV9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udFN0eWxlfTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRTdHlsZX0pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250V2VpZ2h0fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRXZWlnaHR9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udExldHRlclNwYWNpbmd9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkTGV0dGVyU3BhY2luZ30pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy50ZXh0RmllbGRMaW5lSGVpZ2h0fSk7XG5gO1xuXG5leHBvcnQgY29uc3QgU2VsZWN0SGlkZGVuID0gc3R5bGVkLnNlbGVjdGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */"));
|
35
36
|
export var StyledArrow = /*#__PURE__*/_styled(IconDisclosureDownCentered, {
|
36
|
-
target: "
|
37
|
+
target: "e17e8k3g2",
|
37
38
|
label: "plasma-new-hope__StyledArrow"
|
38
|
-
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
39
|
-
export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
39
|
+
})(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW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HR5U3RhdGVUb2tlbnMuZm9udFNpemV9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkRm9udFNpemV9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udFN0eWxlfTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRTdHlsZX0pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250V2VpZ2h0fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRXZWlnaHR9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udExldHRlclNwYWNpbmd9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkTGV0dGVyU3BhY2luZ30pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy50ZXh0RmllbGRMaW5lSGVpZ2h0fSk7XG5gO1xuXG5leHBvcnQgY29uc3QgU2VsZWN0SGlkZGVuID0gc3R5bGVkLnNlbGVjdGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */");
|
40
|
+
export var base = /*#__PURE__*/css(";label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvQ29tYm9ib3guc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlEdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db21ib2JveC9Db21ib2JveE5ldy9Db21ib2JveC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQge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bmd9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkTGV0dGVyU3BhY2luZ30pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy50ZXh0RmllbGRMaW5lSGVpZ2h0fSk7XG5gO1xuXG5leHBvcnQgY29uc3QgU2VsZWN0SGlkZGVuID0gc3R5bGVkLnNlbGVjdGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */"));
|
40
41
|
export var StyledEmptyState = /*#__PURE__*/_styled(EmptyState, {
|
41
|
-
target: "
|
42
|
+
target: "e17e8k3g1",
|
42
43
|
label: "plasma-new-hope__StyledEmptyState"
|
43
|
-
})(emptyStateTokens.borderRadius, ":var(", tokens.textFieldBorderRadius, ");", emptyStateTokens.padding, ":var(", tokens.emptyStatePadding, ");", emptyStateTokens.fontFamily, ":var(", tokens.textFieldFontFamily, ");", emptyStateTokens.fontSize, ":var(", tokens.textFieldFontSize, ");", emptyStateTokens.fontStyle, ":var(", tokens.textFieldFontStyle, ");", emptyStateTokens.fontWeight, ":var(", tokens.textFieldFontWeight, ");", emptyStateTokens.fontLetterSpacing, ":var(", tokens.textFieldLetterSpacing, ");", emptyStateTokens.fontLineHeight, ":var(", tokens.textFieldLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
44
|
+
})(emptyStateTokens.borderRadius, ":var(", tokens.textFieldBorderRadius, ");", emptyStateTokens.padding, ":var(", tokens.emptyStatePadding, ");", emptyStateTokens.fontFamily, ":var(", tokens.textFieldFontFamily, ");", emptyStateTokens.fontSize, ":var(", tokens.textFieldFontSize, ");", emptyStateTokens.fontStyle, ":var(", tokens.textFieldFontStyle, ");", emptyStateTokens.fontWeight, ":var(", tokens.textFieldFontWeight, ");", emptyStateTokens.fontLetterSpacing, ":var(", tokens.textFieldLetterSpacing, ");", emptyStateTokens.fontLineHeight, ":var(", tokens.textFieldLineHeight, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvQ29tYm9ib3guc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJEa0QiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db21ib2JveC9Db21ib2JveE5ldy9Db21ib2JveC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGVtcHR5U3RhdGVDb25maWcsIGVtcHR5U3RhdGVUb2tlbnMgfSBmcm9tICcuLi8uLi9FbXB0eVN0YXRlJztcbmltcG9ydCB7IEljb25EaXNjbG9zdXJlRG93bkNlbnRlcmVkIH0gZnJvbSAnLi4vLi4vX0ljb24nO1xuaW1wb3J0IHsgY29tcG9uZW50LCBtZXJnZUNvbmZpZyB9IGZyb20gJy4uLy4uLy4uL2VuZ2luZXMnO1xuaW1wb3J0IHsgYXBwbHlIaWRkZW4gfSBmcm9tICcuLi8uLi8uLi9taXhpbnMnO1xuXG5pbXBvcnQgeyBDb21ib2JveFByb3BzIH0gZnJvbSAnLi9Db21ib2JveC50eXBlcyc7XG5pbXBvcnQgeyB0b2tlbnMsIGNvbnN0YW50cywgY2xhc3NlcyB9IGZyb20gJy4vQ29tYm9ib3gudG9rZW5zJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcoZW1wdHlTdGF0ZUNvbmZpZyk7XG5jb25zdCBFbXB0eVN0YXRlID0gY29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5lbXB0eVN0YXRlUGFkZGluZ30pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250RmFtaWx5fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRGYW1pbHl9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udFNpemV9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkRm9udFNpemV9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udFN0eWxlfTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRTdHlsZX0pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250V2VpZ2h0fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRXZWlnaHR9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udExldHRlclNwYWNpbmd9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkTGV0dGVyU3BhY2luZ30pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy50ZXh0RmllbGRMaW5lSGVpZ2h0fSk7XG5gO1xuXG5leHBvcnQgY29uc3QgU2VsZWN0SGlkZGVuID0gc3R5bGVkLnNlbGVjdGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */"));
|
45
|
+
export var SelectHidden = /*#__PURE__*/_styled("select", {
|
46
|
+
target: "e17e8k3g0",
|
47
|
+
label: "plasma-new-hope__SelectHidden"
|
48
|
+
})( /*#__PURE__*/applyHidden(), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29tYm9ib3gvQ29tYm9ib3hOZXcvQ29tYm9ib3guc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3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b2tlbnMuZm9udFN0eWxlfTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRTdHlsZX0pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250V2VpZ2h0fTogdmFyKCR7dG9rZW5zLnRleHRGaWVsZEZvbnRXZWlnaHR9KTtcbiAgICAke2VtcHR5U3RhdGVUb2tlbnMuZm9udExldHRlclNwYWNpbmd9OiB2YXIoJHt0b2tlbnMudGV4dEZpZWxkTGV0dGVyU3BhY2luZ30pO1xuICAgICR7ZW1wdHlTdGF0ZVRva2Vucy5mb250TGluZUhlaWdodH06IHZhcigke3Rva2Vucy50ZXh0RmllbGRMaW5lSGVpZ2h0fSk7XG5gO1xuXG5leHBvcnQgY29uc3QgU2VsZWN0SGlkZGVuID0gc3R5bGVkLnNlbGVjdGBcbiAgICAke2FwcGx5SGlkZGVuKCl9O1xuYDtcbiJdfQ== */"));
|
@@ -9,9 +9,11 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
9
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
12
|
-
import React, { useEffect, useRef, useState } from 'react';
|
12
|
+
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
13
|
+
import { mergeRefs } from '../../../../utils';
|
14
|
+
import { SelectHidden } from '../Combobox.styles';
|
13
15
|
import { createEvent } from './syntheticEvent';
|
14
|
-
var SingleForm = function
|
16
|
+
var SingleForm = /*#__PURE__*/forwardRef(function (args, ref) {
|
15
17
|
var onChange = args.onChange,
|
16
18
|
name = args.name,
|
17
19
|
defaultValue = args.defaultValue,
|
@@ -29,8 +31,8 @@ var SingleForm = function SingleForm(args) {
|
|
29
31
|
var event = createEvent(selectRef);
|
30
32
|
onChange && onChange(event);
|
31
33
|
}, [value]);
|
32
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
33
|
-
ref: selectRef,
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
35
|
+
ref: mergeRefs(selectRef, ref),
|
34
36
|
value: value,
|
35
37
|
name: name,
|
36
38
|
hidden: true
|
@@ -40,8 +42,8 @@ var SingleForm = function SingleForm(args) {
|
|
40
42
|
value: value,
|
41
43
|
onChange: handleChange
|
42
44
|
})));
|
43
|
-
};
|
44
|
-
var MultipleForm = function
|
45
|
+
});
|
46
|
+
var MultipleForm = /*#__PURE__*/forwardRef(function (args, ref) {
|
45
47
|
var onChange = args.onChange,
|
46
48
|
name = args.name,
|
47
49
|
defaultValue = args.defaultValue,
|
@@ -59,8 +61,8 @@ var MultipleForm = function MultipleForm(args) {
|
|
59
61
|
var event = createEvent(selectRef);
|
60
62
|
onChange && onChange(event);
|
61
63
|
}, [values]);
|
62
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
63
|
-
ref: selectRef,
|
64
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectHidden, {
|
65
|
+
ref: mergeRefs(selectRef, ref),
|
64
66
|
value: values,
|
65
67
|
name: name,
|
66
68
|
multiple: true,
|
@@ -74,13 +76,15 @@ var MultipleForm = function MultipleForm(args) {
|
|
74
76
|
value: values,
|
75
77
|
onChange: handleChange
|
76
78
|
})));
|
77
|
-
};
|
79
|
+
});
|
78
80
|
export var getFormComponentGenerator = function getFormComponentGenerator(Component) {
|
79
|
-
return function (args) {
|
81
|
+
return /*#__PURE__*/forwardRef(function (args, ref) {
|
80
82
|
return args.multiple ? /*#__PURE__*/React.createElement(MultipleForm, _extends({}, args, {
|
83
|
+
ref: ref,
|
81
84
|
component: Component
|
82
85
|
})) : /*#__PURE__*/React.createElement(SingleForm, _extends({}, args, {
|
86
|
+
ref: ref,
|
83
87
|
component: Component
|
84
88
|
}));
|
85
|
-
};
|
89
|
+
});
|
86
90
|
};
|
@@ -3,9 +3,8 @@ import { comboboxNewConfig, boundCombobox, getFormComponentGenerator } from '../
|
|
3
3
|
import { config } from './Combobox.config';
|
4
4
|
var mergedConfig = /*#__PURE__*/mergeConfig(comboboxNewConfig, config);
|
5
5
|
var ComboboxComponent = /*#__PURE__*/component(mergedConfig);
|
6
|
-
var Combobox =
|
7
|
-
var ComboboxWithForm = /*#__PURE__*/boundCombobox({
|
6
|
+
var Combobox = /*#__PURE__*/boundCombobox({
|
8
7
|
base: ComboboxComponent,
|
9
8
|
baseForm: /*#__PURE__*/getFormComponentGenerator(ComboboxComponent)
|
10
9
|
});
|
11
|
-
export { Combobox
|
10
|
+
export { Combobox };
|
@@ -5,9 +5,9 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
5
5
|
import { WithTheme } from '../../../_helpers';
|
6
6
|
import { IconDone } from '../../../../components/_Icon';
|
7
7
|
|
8
|
-
import {
|
8
|
+
import { Combobox } from './Combobox';
|
9
9
|
|
10
|
-
type StorySelectProps = ComponentProps<typeof
|
10
|
+
type StorySelectProps = ComponentProps<typeof Combobox> & {
|
11
11
|
enableContentLeft?: boolean;
|
12
12
|
};
|
13
13
|
|
@@ -19,7 +19,7 @@ const variant = ['normal', 'tight'];
|
|
19
19
|
const meta: Meta<StorySelectProps> = {
|
20
20
|
title: 'plasma_b2c/Combobox',
|
21
21
|
decorators: [WithTheme],
|
22
|
-
component:
|
22
|
+
component: Combobox,
|
23
23
|
argTypes: {
|
24
24
|
size: {
|
25
25
|
options: size,
|
@@ -356,7 +356,7 @@ const SingleStory = (args: StorySelectProps) => {
|
|
356
356
|
|
357
357
|
return (
|
358
358
|
<div style={{ width: '400px' }}>
|
359
|
-
<
|
359
|
+
<Combobox
|
360
360
|
{...args}
|
361
361
|
items={items}
|
362
362
|
value={value}
|
@@ -367,24 +367,6 @@ const SingleStory = (args: StorySelectProps) => {
|
|
367
367
|
);
|
368
368
|
};
|
369
369
|
|
370
|
-
const SingleFormStory = (args: StorySelectProps) => {
|
371
|
-
const handleChange = (event) => {
|
372
|
-
console.log(event);
|
373
|
-
};
|
374
|
-
|
375
|
-
return (
|
376
|
-
<div style={{ width: '400px' }}>
|
377
|
-
<ComboboxWithForm
|
378
|
-
{...args}
|
379
|
-
items={items}
|
380
|
-
formType
|
381
|
-
onChange={handleChange}
|
382
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
383
|
-
/>
|
384
|
-
</div>
|
385
|
-
);
|
386
|
-
};
|
387
|
-
|
388
370
|
export const Single: StoryObj<StorySelectProps> = {
|
389
371
|
render: (args) => <SingleStory {...args} />,
|
390
372
|
args: {
|
@@ -397,24 +379,12 @@ export const Single: StoryObj<StorySelectProps> = {
|
|
397
379
|
},
|
398
380
|
};
|
399
381
|
|
400
|
-
export const SingleForm: StoryObj<StorySelectProps> = {
|
401
|
-
render: (args) => <SingleFormStory {...args} />,
|
402
|
-
args: {
|
403
|
-
closeAfterSelect: true,
|
404
|
-
},
|
405
|
-
parameters: {
|
406
|
-
controls: {
|
407
|
-
exclude: ['isTargetAmount'],
|
408
|
-
},
|
409
|
-
},
|
410
|
-
};
|
411
|
-
|
412
382
|
const MultipleStory = (args: StorySelectProps) => {
|
413
383
|
const [value, setValue] = useState([]);
|
414
384
|
|
415
385
|
return (
|
416
386
|
<div style={{ width: '400px' }}>
|
417
|
-
<
|
387
|
+
<Combobox
|
418
388
|
{...args}
|
419
389
|
multiple
|
420
390
|
formType={false}
|
@@ -427,35 +397,9 @@ const MultipleStory = (args: StorySelectProps) => {
|
|
427
397
|
);
|
428
398
|
};
|
429
399
|
|
430
|
-
const MultipleStoryForm = (args: StorySelectProps) => {
|
431
|
-
const handleChange = (event) => {
|
432
|
-
console.log(event);
|
433
|
-
};
|
434
|
-
|
435
|
-
return (
|
436
|
-
<div style={{ width: '400px' }}>
|
437
|
-
<ComboboxWithForm
|
438
|
-
{...args}
|
439
|
-
multiple
|
440
|
-
formType
|
441
|
-
onChange={handleChange}
|
442
|
-
items={items}
|
443
|
-
contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
|
444
|
-
/>
|
445
|
-
</div>
|
446
|
-
);
|
447
|
-
};
|
448
|
-
|
449
400
|
export const Multiple: StoryObj<StorySelectProps> = {
|
450
401
|
render: (args) => <MultipleStory {...args} />,
|
451
402
|
args: {
|
452
403
|
closeAfterSelect: false,
|
453
404
|
},
|
454
405
|
};
|
455
|
-
|
456
|
-
export const MultipleForm: StoryObj<StorySelectProps> = {
|
457
|
-
render: (args) => <MultipleStoryForm {...args} />,
|
458
|
-
args: {
|
459
|
-
closeAfterSelect: false,
|
460
|
-
},
|
461
|
-
};
|
@@ -3,9 +3,8 @@ import { comboboxNewConfig, boundCombobox, getFormComponentGenerator } from '../
|
|
3
3
|
import { config } from './Combobox.config';
|
4
4
|
var mergedConfig = /*#__PURE__*/mergeConfig(comboboxNewConfig, config);
|
5
5
|
var ComboboxComponent = /*#__PURE__*/component(mergedConfig);
|
6
|
-
var Combobox =
|
7
|
-
var ComboboxWithForm = /*#__PURE__*/boundCombobox({
|
6
|
+
var Combobox = /*#__PURE__*/boundCombobox({
|
8
7
|
base: ComboboxComponent,
|
9
8
|
baseForm: /*#__PURE__*/getFormComponentGenerator(ComboboxComponent)
|
10
9
|
});
|
11
|
-
export { Combobox
|
10
|
+
export { Combobox };
|
@@ -1,17 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { forwardRef } from 'react';
|
2
3
|
|
3
4
|
var boundCombobox = function boundCombobox(_ref) {
|
4
5
|
var ComboboxBase = _ref.base,
|
5
6
|
ComboboxBaseForm = _ref.baseForm;
|
6
|
-
return function (rest) {
|
7
|
+
return /*#__PURE__*/forwardRef(function (rest, ref) {
|
7
8
|
if (rest.formType) {
|
8
|
-
return /*#__PURE__*/React.createElement(ComboboxBaseForm,
|
9
|
+
return /*#__PURE__*/React.createElement(ComboboxBaseForm, _extends({
|
10
|
+
ref: ref
|
11
|
+
}, rest));
|
9
12
|
}
|
10
13
|
if (!rest.formType) {
|
11
14
|
return /*#__PURE__*/React.createElement(ComboboxBase, rest);
|
12
15
|
}
|
13
16
|
return null;
|
14
|
-
};
|
17
|
+
});
|
15
18
|
};
|
16
19
|
|
17
20
|
export { boundCombobox };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.boundler.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.boundler.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ComboboxBoundlerProps, ComboboxBoundlerPropsComponent } from './Combobox.types';\n\nexport const boundCombobox: (args: ComboboxBoundlerProps) => React.FC<ComboboxBoundlerPropsComponent> = ({\n base: ComboboxBase,\n baseForm: ComboboxBaseForm,\n})
|
1
|
+
{"version":3,"file":"Combobox.boundler.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.boundler.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { ComboboxBoundlerProps, ComboboxBoundlerPropsComponent } from './Combobox.types';\n\nexport const boundCombobox: (args: ComboboxBoundlerProps) => React.FC<ComboboxBoundlerPropsComponent> = ({\n base: ComboboxBase,\n baseForm: ComboboxBaseForm,\n}) =>\n forwardRef<HTMLSelectElement, ComboboxBoundlerPropsComponent>((rest, ref) => {\n if (rest.formType) {\n return <ComboboxBaseForm ref={ref} {...rest} />;\n }\n\n if (!rest.formType) {\n return <ComboboxBase {...rest} />;\n }\n\n return null;\n });\n"],"names":["boundCombobox","_ref","ComboboxBase","base","ComboboxBaseForm","baseForm","forwardRef","rest","ref","formType","React","createElement","_extends"],"mappings":";;;IAIaA,aAAwF,GAAG,SAA3FA,aAAwFA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC3FC,YAAY,GAAAD,IAAA,CAAlBE,IAAI;IACMC,gBAAgB,GAAAH,IAAA,CAA1BI,QAAQ,CAAA;AAAA,EAAA,oBAERC,UAAU,CAAoD,UAACC,IAAI,EAAEC,GAAG,EAAK;IACzE,IAAID,IAAI,CAACE,QAAQ,EAAE;AACf,MAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACP,gBAAgB,EAAAQ,QAAA,CAAA;AAACJ,QAAAA,GAAG,EAAEA,GAAAA;OAASD,EAAAA,IAAI,CAAG,CAAC,CAAA;AACnD,KAAA;AAEA,IAAA,IAAI,CAACA,IAAI,CAACE,QAAQ,EAAE;AAChB,MAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACT,YAAY,EAAKK,IAAO,CAAC,CAAA;AACrC,KAAA;AAEA,IAAA,OAAO,IAAI,CAAA;AACf,GAAC,CAAC,CAAA;AAAA;;;;"}
|