@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.
- package/emotion/cjs/components/Combobox/Combobox.template-doc.mdx +345 -0
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +39 -0
- package/{styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew → emotion/cjs/examples/plasma_b2c/components/Combobox}/Combobox.js +2 -2
- package/emotion/{es/examples/plasma_b2c/components/Combobox/ComboboxNew → cjs/examples/plasma_b2c/components/Combobox}/Combobox.stories.tsx +3 -3
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +25 -0
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.stories.tsx +21 -34
- package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +39 -0
- package/emotion/cjs/examples/{plasma_b2c/components/Combobox/ComboboxNew → plasma_web/components/Combobox}/Combobox.js +2 -2
- package/emotion/cjs/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.stories.tsx → Combobox.stories.tsx} +3 -3
- package/emotion/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +25 -0
- package/emotion/{es/examples/plasma_b2c/components/Combobox/ComboboxOld → cjs/examples/plasma_web/components/Combobox/Legacy}/Combobox.stories.tsx +21 -34
- package/emotion/es/components/Combobox/Combobox.template-doc.mdx +345 -0
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +33 -0
- package/emotion/es/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
- package/emotion/{cjs/examples/plasma_b2c/components/Combobox/ComboboxNew → es/examples/plasma_b2c/components/Combobox}/Combobox.stories.tsx +3 -3
- package/emotion/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +19 -0
- package/emotion/es/examples/{plasma_web/components/Combobox/ComboboxOld → plasma_b2c/components/Combobox/Legacy}/Combobox.stories.tsx +21 -34
- package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +33 -0
- package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
- package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.stories.tsx → Combobox.stories.tsx} +3 -3
- package/emotion/es/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +19 -0
- package/emotion/{cjs/examples/plasma_web/components/Combobox/ComboboxOld → es/examples/plasma_web/components/Combobox/Legacy}/Combobox.stories.tsx +21 -34
- package/package.json +2 -2
- package/styled-components/cjs/components/Combobox/Combobox.template-doc.mdx +345 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.config.js → Combobox.config.js} +2 -2
- package/{emotion/cjs/examples/plasma_web/components/Combobox/ComboboxNew → styled-components/cjs/examples/plasma_b2c/components/Combobox}/Combobox.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +368 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +39 -0
- package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +368 -0
- package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
- package/styled-components/es/components/Combobox/Combobox.template-doc.mdx +345 -0
- package/styled-components/es/examples/{plasma_web/components/Combobox/ComboboxNew → plasma_b2c/components/Combobox}/Combobox.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +368 -0
- package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.config.js +33 -0
- package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
- package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +368 -0
- package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +0 -2
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts} +3 -3
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Legacy/Combobox.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts} +3 -3
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -0
- package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Combobox/Legacy/Combobox.d.ts.map +1 -0
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.js +0 -25
- package/emotion/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
- package/emotion/cjs/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.js +0 -25
- package/emotion/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
- package/emotion/es/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.js +0 -19
- package/emotion/es/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
- package/emotion/es/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.js +0 -19
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
- package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
- package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
- package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
- package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
- package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
- package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
- package/styled-components/es/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -368
- package/styled-components/es/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -269
- package/types/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.d.ts.map +0 -1
- package/types/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.d.ts.map +0 -1
- /package/emotion/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/emotion/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/emotion/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
- /package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.config.d.ts → Combobox.config.d.ts} +0 -0
- /package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts +0 -0
- /package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.d.ts +0 -0
- /package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.config.d.ts → Combobox.config.d.ts} +0 -0
- /package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts +0 -0
- /package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.d.ts +0 -0
package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx
ADDED
@@ -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
|
+
};
|
@@ -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,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,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,WAAW,GAAG,IAAI,CAAC,CAAC;IACpD;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC;IACnD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;IACvD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;
|
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,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,GACZ;IACI,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAClC,GACD;IACI,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,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AE,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"}
|
package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
declare const Combobox: import("react").FunctionComponent<import("
|
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("
|
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("
|
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/
|
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"}
|
package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
declare const Combobox: import("react").FunctionComponent<import("
|
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("
|
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("
|
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/
|
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"}
|