@salutejs/plasma-new-hope 0.141.0-canary.1422.10721189833.0 → 0.141.0-canary.1422.10773738088.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/emotion/cjs/components/Combobox/Combobox.template-doc.mdx +345 -0
  2. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +39 -0
  3. package/{styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew → emotion/cjs/examples/plasma_b2c/components/Combobox}/Combobox.js +2 -2
  4. package/emotion/{es/examples/plasma_b2c/components/Combobox/ComboboxNew → cjs/examples/plasma_b2c/components/Combobox}/Combobox.stories.tsx +3 -3
  5. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +25 -0
  6. package/emotion/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.stories.tsx +21 -34
  7. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +39 -0
  8. package/emotion/cjs/examples/{plasma_b2c/components/Combobox/ComboboxNew → plasma_web/components/Combobox}/Combobox.js +2 -2
  9. package/emotion/cjs/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.stories.tsx → Combobox.stories.tsx} +3 -3
  10. package/emotion/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +25 -0
  11. package/emotion/{es/examples/plasma_b2c/components/Combobox/ComboboxOld → cjs/examples/plasma_web/components/Combobox/Legacy}/Combobox.stories.tsx +21 -34
  12. package/emotion/es/components/Combobox/Combobox.template-doc.mdx +345 -0
  13. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +33 -0
  14. package/emotion/es/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  15. package/emotion/{cjs/examples/plasma_b2c/components/Combobox/ComboboxNew → es/examples/plasma_b2c/components/Combobox}/Combobox.stories.tsx +3 -3
  16. package/emotion/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +19 -0
  17. package/emotion/es/examples/{plasma_web/components/Combobox/ComboboxOld → plasma_b2c/components/Combobox/Legacy}/Combobox.stories.tsx +21 -34
  18. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +33 -0
  19. package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  20. package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.stories.tsx → Combobox.stories.tsx} +3 -3
  21. package/emotion/es/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +19 -0
  22. package/emotion/{cjs/examples/plasma_web/components/Combobox/ComboboxOld → es/examples/plasma_web/components/Combobox/Legacy}/Combobox.stories.tsx +21 -34
  23. package/package.json +2 -2
  24. package/styled-components/cjs/components/Combobox/Combobox.template-doc.mdx +345 -0
  25. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.config.js → Combobox.config.js} +2 -2
  26. package/{emotion/cjs/examples/plasma_web/components/Combobox/ComboboxNew → styled-components/cjs/examples/plasma_b2c/components/Combobox}/Combobox.js +2 -2
  27. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +368 -0
  28. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  29. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  30. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +39 -0
  31. package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  32. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +368 -0
  33. package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  34. package/styled-components/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  35. package/styled-components/es/components/Combobox/Combobox.template-doc.mdx +345 -0
  36. package/styled-components/es/examples/{plasma_web/components/Combobox/ComboboxNew → plasma_b2c/components/Combobox}/Combobox.config.js +2 -2
  37. package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  38. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +368 -0
  39. package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  40. package/styled-components/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  41. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +33 -0
  42. package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  43. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +368 -0
  44. package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  45. package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  46. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +0 -2
  47. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  48. package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -0
  49. package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts} +3 -3
  50. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -0
  51. package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts.map +1 -1
  52. package/types/examples/plasma_b2c/components/Combobox/Legacy/Combobox.d.ts.map +1 -0
  53. package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -0
  54. package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts} +3 -3
  55. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -0
  56. package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts.map +1 -1
  57. package/types/examples/plasma_web/components/Combobox/Legacy/Combobox.d.ts.map +1 -0
  58. package/emotion/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
  59. package/emotion/cjs/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.js +0 -25
  60. package/emotion/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
  61. package/emotion/cjs/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.js +0 -25
  62. package/emotion/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
  63. package/emotion/es/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.js +0 -19
  64. package/emotion/es/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
  65. package/emotion/es/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.js +0 -19
  66. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
  67. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
  68. package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
  69. package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
  70. package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
  71. package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
  72. package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
  73. package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
  74. package/styled-components/es/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
  75. package/styled-components/es/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
  76. package/types/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.d.ts.map +0 -1
  77. package/types/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.d.ts.map +0 -1
  78. package/types/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.d.ts.map +0 -1
  79. package/types/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.d.ts.map +0 -1
  80. package/types/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.d.ts.map +0 -1
  81. package/types/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.d.ts.map +0 -1
  82. /package/emotion/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  83. /package/emotion/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  84. /package/emotion/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  85. /package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  86. /package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  87. /package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  88. /package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  89. /package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  90. /package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.config.d.ts → Combobox.config.d.ts} +0 -0
  91. /package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts +0 -0
  92. /package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.d.ts +0 -0
  93. /package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.config.d.ts → Combobox.config.d.ts} +0 -0
  94. /package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts +0 -0
  95. /package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.d.ts +0 -0
@@ -0,0 +1,256 @@
1
+ import React, { useState } from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { Meta, StoryObj } from '@storybook/react';
4
+ import { action } from '@storybook/addon-actions';
5
+
6
+ import { mergeConfig } from '../../../../../engines';
7
+ import { Checkbox } from '../../Checkbox/Checkbox';
8
+ import { comboboxOldConfig } from '../../../../../components/Combobox';
9
+ import { WithTheme, argTypesFromConfig } from '../../../../_helpers';
10
+ import { IconDone } from '../../../../../components/_Icon';
11
+
12
+ import { Combobox, ComboboxDivider, ComboboxItem } from './Combobox';
13
+ import { config } from './Combobox.config';
14
+
15
+ const placements: Array<string> = ['top', 'bottom', 'right', 'left', 'auto'];
16
+ const enumerations: Array<string> = ['comma', 'chip'];
17
+
18
+ type ComboboxPrimitiveValue = string | number | boolean;
19
+
20
+ type StorySelectPropsCustom = {
21
+ skidding?: number;
22
+ distance?: number;
23
+ };
24
+
25
+ type StorySelectProps = ComponentProps<typeof Combobox> & StorySelectPropsCustom;
26
+
27
+ const meta: Meta<StorySelectProps> = {
28
+ title: 'plasma_web/Combobox',
29
+ decorators: [WithTheme],
30
+ component: Combobox,
31
+ argTypes: {
32
+ placement: {
33
+ options: placements,
34
+ control: {
35
+ type: 'select',
36
+ },
37
+ },
38
+ enumerationType: {
39
+ options: enumerations,
40
+ control: {
41
+ type: 'select',
42
+ },
43
+ },
44
+ ...argTypesFromConfig(mergeConfig(comboboxOldConfig, config)),
45
+ },
46
+ args: {
47
+ usePortal: false,
48
+ disabled: false,
49
+ readOnly: false,
50
+ label: 'Label',
51
+ placeholder: 'Placeholder',
52
+ enumerationType: 'comma',
53
+ size: 'm',
54
+ view: 'default',
55
+ placement: 'bottom',
56
+ },
57
+ };
58
+
59
+ export default meta;
60
+
61
+ const onChangeAction = action('onChange');
62
+
63
+ const iconDoneToSelectSizeMap: Record<string, 'xs' | 's'> = {
64
+ xs: 'xs',
65
+ s: 's',
66
+ m: 's',
67
+ l: 's',
68
+ };
69
+
70
+ const checkboxToSelectSizeMap: Record<string, 's' | 'm'> = {
71
+ xs: 's',
72
+ s: 'm',
73
+ m: 'm',
74
+ l: 'm',
75
+ };
76
+
77
+ const getSelectItems = (slug: string, elemCount: number) =>
78
+ [...Array(elemCount).keys()].map((num) => ({
79
+ value: `${slug}_${num}`,
80
+ child: `${slug} ${num}`,
81
+ }));
82
+
83
+ const SingleDemo = (args: StorySelectProps) => {
84
+ const { usePortal, placement, label, placeholder, readOnly, disabled, size = 'm', view } = args;
85
+
86
+ const [value, setValue] = useState<ComboboxPrimitiveValue | undefined>('item_0');
87
+
88
+ const onChangeValue = (newValue?: ComboboxPrimitiveValue) => {
89
+ setValue(newValue);
90
+ onChangeAction(newValue);
91
+ };
92
+
93
+ return (
94
+ <div style={{ width: '50%', margin: '3rem 0' }}>
95
+ <h4>Combobox с единичным выбором</h4>
96
+ <Combobox
97
+ frame="theme-root"
98
+ usePortal={usePortal}
99
+ valueType="single"
100
+ value={value}
101
+ placement={placement}
102
+ label={label}
103
+ placeholder={placeholder}
104
+ size={size}
105
+ view={view}
106
+ disabled={disabled}
107
+ readOnly={readOnly}
108
+ onChangeValue={onChangeValue}
109
+ >
110
+ <ComboboxItem value={undefined} text="Clear" />
111
+ {getSelectItems('item', 6).map((item) => (
112
+ <ComboboxItem
113
+ key={item.value}
114
+ contentLeft={
115
+ item.value === value ? (
116
+ <IconDone size={iconDoneToSelectSizeMap[size]} color="inherit" />
117
+ ) : undefined
118
+ }
119
+ value={item.value}
120
+ text={item.child}
121
+ />
122
+ ))}
123
+ </Combobox>
124
+ </div>
125
+ );
126
+ };
127
+
128
+ const MultipleDemo = (args: StorySelectProps) => {
129
+ const { usePortal, placement, label, placeholder, readOnly, disabled, enumerationType, size = 'm', view } = args;
130
+
131
+ const [value, setValue] = useState<Array<ComboboxPrimitiveValue> | undefined>(['item_2', 'item_3']);
132
+
133
+ const onChangeValue = (newValue?: Array<ComboboxPrimitiveValue>) => {
134
+ setValue(newValue);
135
+ onChangeAction(newValue);
136
+ };
137
+
138
+ return (
139
+ <div style={{ width: '50%', marginBottom: '3rem' }}>
140
+ <h4>Combobox с множественным выбором</h4>
141
+ <Combobox
142
+ frame="theme-root"
143
+ usePortal={usePortal}
144
+ valueType="multiple"
145
+ enumerationType={enumerationType}
146
+ value={value}
147
+ placement={placement}
148
+ label={label}
149
+ placeholder={placeholder}
150
+ size={size}
151
+ view={view}
152
+ disabled={disabled}
153
+ readOnly={readOnly}
154
+ onChangeValue={onChangeValue}
155
+ >
156
+ <ComboboxItem value={undefined} text="Clear" />
157
+ {getSelectItems('item', 6).map((item) => (
158
+ <ComboboxItem
159
+ key={item.value}
160
+ contentLeft={<Checkbox size={checkboxToSelectSizeMap[size]} />}
161
+ value={item.value}
162
+ text={item.child}
163
+ />
164
+ ))}
165
+ </Combobox>
166
+ </div>
167
+ );
168
+ };
169
+
170
+ const AddCustomItemDemo = (args: StorySelectProps) => {
171
+ const { usePortal, placement, label, placeholder, readOnly, disabled, size = 'm', view } = args;
172
+
173
+ const [opened, setOpened] = useState(false);
174
+ const [items, setItems] = useState(getSelectItems('item', 1));
175
+ const [value, setValue] = useState<ComboboxPrimitiveValue | undefined>('item_0');
176
+
177
+ const onChangeValue = (newValue?: ComboboxPrimitiveValue) => {
178
+ setValue(newValue);
179
+ onChangeAction(newValue);
180
+ };
181
+
182
+ const onToggle = (openValue: boolean) => setOpened(openValue);
183
+
184
+ const onKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
185
+ const { code } = event;
186
+
187
+ if (code === 'Enter') {
188
+ const newValue = (event.target as HTMLInputElement).value;
189
+ const newItems = [...items];
190
+
191
+ if (newItems.find((item) => item.child === newValue)) {
192
+ return;
193
+ }
194
+
195
+ newItems.push({
196
+ value: `${newValue}_`,
197
+ child: (newValue || '').toString(),
198
+ });
199
+
200
+ setOpened(false);
201
+ setItems(newItems);
202
+ }
203
+ };
204
+
205
+ const filterFunction = () => true;
206
+
207
+ return (
208
+ <div style={{ width: '50%' }}>
209
+ <h4>Combobox с добавлением пользовательского элемента</h4>
210
+ <Combobox
211
+ frame="theme-root"
212
+ usePortal={usePortal}
213
+ valueType="single"
214
+ value={value}
215
+ placement={placement}
216
+ label={label}
217
+ placeholder={placeholder}
218
+ size={size}
219
+ view={view}
220
+ disabled={disabled}
221
+ readOnly={readOnly}
222
+ opened={opened}
223
+ onToggle={onToggle}
224
+ onChangeValue={onChangeValue}
225
+ onKeyDown={onKeyDown}
226
+ filterFunction={filterFunction}
227
+ >
228
+ <ComboboxItem value={undefined} text="Clear" />
229
+ <ComboboxDivider />
230
+ {items.map((item) => (
231
+ <ComboboxItem
232
+ key={item.value}
233
+ contentLeft={
234
+ item.value === value ? (
235
+ <IconDone size={iconDoneToSelectSizeMap[size]} color="inherit" />
236
+ ) : undefined
237
+ }
238
+ value={item.value}
239
+ text={item.child}
240
+ />
241
+ ))}
242
+ </Combobox>
243
+ </div>
244
+ );
245
+ };
246
+
247
+ export const Legacy: StoryObj<StorySelectProps> = {
248
+ render: (args) => (
249
+ <>
250
+ <h3>Combobox на композиционной архитектуре (deprecated)</h3>
251
+ <SingleDemo {...args} />
252
+ <MultipleDemo {...args} />
253
+ <AddCustomItemDemo {...args} />
254
+ </>
255
+ ),
256
+ };
@@ -112,8 +112,6 @@ export interface BasicProps {
112
112
  disabled?: boolean;
113
113
  /**
114
114
  * Дропдаун открыт всегда.
115
- * @default
116
- * false
117
115
  */
118
116
  alwaysOpened?: boolean;
119
117
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EA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EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,oBAAoB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,eAAe,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8gBlB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const Combobox: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<{
2
+ declare const Combobox: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  view: {
4
4
  default: import("@linaria/core").LinariaClassName;
5
5
  positive: import("@linaria/core").LinariaClassName;
@@ -22,12 +22,12 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../..
22
22
  readOnly: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- }> & ((import("../../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
25
+ }> & ((import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
26
26
  multiple?: false | undefined;
27
27
  value?: string | undefined;
28
28
  onChange?: ((value: string) => void) | undefined;
29
29
  isTargetAmount?: false | undefined;
30
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
30
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
31
31
  multiple: true;
32
32
  value?: string[] | undefined;
33
33
  onChange?: ((value: string[]) => void) | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":";AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAiUlB,CAAC"}
1
+ {"version":3,"file":"Combobox.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAiUlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_b2c/components/Combobox/Legacy/Combobox.ts"],"names":[],"mappings":";AAaA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;sDAA0B,CAAC;AAGhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC;AAGxD,eAAO,MAAM,eAAe;;;;kDAAiC,CAAC;AAG9D,eAAO,MAAM,cAAc;;;;kDAAgC,CAAC;AAG5D,eAAO,MAAM,aAAa;;;;;;;;kDAA+B,CAAC;AAG1D,eAAO,MAAM,cAAc;;;;kDAAgC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuhBlB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const Combobox: import("react").FunctionComponent<import("../../../../../engines/types").PropsType<{
2
+ declare const Combobox: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
3
3
  view: {
4
4
  default: import("@linaria/core").LinariaClassName;
5
5
  positive: import("@linaria/core").LinariaClassName;
@@ -22,12 +22,12 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../..
22
22
  readOnly: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- }> & ((import("../../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
25
+ }> & ((import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
26
26
  multiple?: false | undefined;
27
27
  value?: string | undefined;
28
28
  onChange?: ((value: string) => void) | undefined;
29
29
  isTargetAmount?: false | undefined;
30
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
30
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
31
31
  multiple: true;
32
32
  value?: string[] | undefined;
33
33
  onChange?: ((value: string[]) => void) | undefined;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":";AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAiUlB,CAAC"}
1
+ {"version":3,"file":"Combobox.config.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Combobox/Legacy/Combobox.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAiUlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../../src/examples/plasma_web/components/Combobox/Legacy/Combobox.ts"],"names":[],"mappings":";AAaA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;sDAA0B,CAAC;AAGhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kDAA8B,CAAC;AAGxD,eAAO,MAAM,eAAe;;;;kDAAiC,CAAC;AAG9D,eAAO,MAAM,cAAc;;;;kDAAgC,CAAC;AAG5D,eAAO,MAAM,aAAa;;;;;;;;kDAA+B,CAAC;AAG1D,eAAO,MAAM,cAAc;;;;kDAAgC,CAAC"}