@salutejs/plasma-new-hope 0.141.0-canary.1421.10719019658.0 → 0.141.0-canary.1422.10737462879.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.js +6 -4
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  3. package/cjs/components/Combobox/ComboboxOld/Combobox.js +15 -8
  4. package/cjs/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  5. package/cjs/components/TextArea/TextArea.js +1 -2
  6. package/cjs/components/TextArea/TextArea.js.map +1 -1
  7. package/cjs/components/TextField/TextField.js +12 -7
  8. package/cjs/components/TextField/TextField.js.map +1 -1
  9. package/emotion/cjs/components/Combobox/Combobox.template-doc.mdx +344 -0
  10. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +6 -4
  11. package/emotion/cjs/components/Combobox/ComboboxOld/Combobox.js +15 -8
  12. package/emotion/cjs/components/TextArea/TextArea.js +2 -3
  13. package/emotion/cjs/components/TextField/TextField.js +13 -8
  14. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +39 -0
  15. package/{styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew → emotion/cjs/examples/plasma_b2c/components/Combobox}/Combobox.js +2 -2
  16. package/emotion/{es/examples/plasma_b2c/components/Combobox/ComboboxNew → cjs/examples/plasma_b2c/components/Combobox}/Combobox.stories.tsx +5 -3
  17. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +25 -0
  18. package/emotion/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.stories.tsx +18 -16
  19. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.config.js +39 -0
  20. package/emotion/cjs/examples/{plasma_b2c/components/Combobox/ComboboxNew → plasma_web/components/Combobox}/Combobox.js +2 -2
  21. package/emotion/cjs/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.stories.tsx → Combobox.stories.tsx} +5 -3
  22. package/emotion/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +25 -0
  23. package/emotion/{es/examples/plasma_b2c/components/Combobox/ComboboxOld → cjs/examples/plasma_web/components/Combobox/Legacy}/Combobox.stories.tsx +18 -16
  24. package/emotion/es/components/Combobox/Combobox.template-doc.mdx +344 -0
  25. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +6 -4
  26. package/emotion/es/components/Combobox/ComboboxOld/Combobox.js +15 -8
  27. package/emotion/es/components/TextArea/TextArea.js +2 -3
  28. package/emotion/es/components/TextField/TextField.js +13 -8
  29. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +33 -0
  30. package/emotion/es/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  31. package/emotion/{cjs/examples/plasma_b2c/components/Combobox/ComboboxNew → es/examples/plasma_b2c/components/Combobox}/Combobox.stories.tsx +5 -3
  32. package/emotion/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.config.js +19 -0
  33. package/emotion/es/examples/{plasma_web/components/Combobox/ComboboxOld → plasma_b2c/components/Combobox/Legacy}/Combobox.stories.tsx +18 -16
  34. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.config.js +33 -0
  35. package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  36. package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.stories.tsx → Combobox.stories.tsx} +5 -3
  37. package/emotion/es/examples/plasma_web/components/Combobox/Legacy/Combobox.config.js +19 -0
  38. package/emotion/{cjs/examples/plasma_web/components/Combobox/ComboboxOld → es/examples/plasma_web/components/Combobox/Legacy}/Combobox.stories.tsx +18 -16
  39. package/es/components/Combobox/ComboboxNew/Combobox.js +6 -4
  40. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  41. package/es/components/Combobox/ComboboxOld/Combobox.js +15 -8
  42. package/es/components/Combobox/ComboboxOld/Combobox.js.map +1 -1
  43. package/es/components/TextArea/TextArea.js +1 -2
  44. package/es/components/TextArea/TextArea.js.map +1 -1
  45. package/es/components/TextField/TextField.js +12 -7
  46. package/es/components/TextField/TextField.js.map +1 -1
  47. package/package.json +4 -5
  48. package/styled-components/cjs/components/Combobox/Combobox.template-doc.mdx +344 -0
  49. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +6 -4
  50. package/styled-components/cjs/components/Combobox/ComboboxOld/Combobox.js +15 -8
  51. package/styled-components/cjs/components/TextArea/TextArea.js +1 -2
  52. package/styled-components/cjs/components/TextField/TextField.js +12 -7
  53. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.config.js +39 -0
  54. package/{emotion/cjs/examples/plasma_web/components/Combobox/ComboboxNew → styled-components/cjs/examples/plasma_b2c/components/Combobox}/Combobox.js +2 -2
  55. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +368 -0
  56. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  57. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  58. package/styled-components/cjs/examples/{plasma_b2c/components/Combobox/ComboboxNew → plasma_web/components/Combobox}/Combobox.config.js +1 -1
  59. package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  60. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +368 -0
  61. package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  62. package/styled-components/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  63. package/styled-components/es/components/Combobox/Combobox.template-doc.mdx +344 -0
  64. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +6 -4
  65. package/styled-components/es/components/Combobox/ComboboxOld/Combobox.js +15 -8
  66. package/styled-components/es/components/TextArea/TextArea.js +1 -2
  67. package/styled-components/es/components/TextField/TextField.js +12 -7
  68. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.config.js +33 -0
  69. package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  70. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +368 -0
  71. package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  72. package/styled-components/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  73. package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.config.js → Combobox.config.js} +1 -1
  74. package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.js → Combobox.js} +2 -2
  75. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +368 -0
  76. package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.js +1 -1
  77. package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +256 -0
  78. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  79. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +7 -1
  80. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  81. package/types/components/Combobox/ComboboxOld/Combobox.d.ts.map +1 -1
  82. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +6 -0
  83. package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
  84. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  85. package/types/components/TextField/TextField.d.ts.map +1 -1
  86. package/types/examples/plasma_b2c/components/Combobox/Combobox.config.d.ts.map +1 -0
  87. package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts} +3 -3
  88. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -0
  89. package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts.map +1 -1
  90. package/types/examples/plasma_b2c/components/Combobox/Legacy/Combobox.d.ts.map +1 -0
  91. package/types/examples/plasma_web/components/Combobox/Combobox.config.d.ts.map +1 -0
  92. package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.d.ts → Combobox.d.ts} +3 -3
  93. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -0
  94. package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts.map +1 -1
  95. package/types/examples/plasma_web/components/Combobox/Legacy/Combobox.d.ts.map +1 -0
  96. package/emotion/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
  97. package/emotion/cjs/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.js +0 -25
  98. package/emotion/cjs/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -106
  99. package/emotion/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
  100. package/emotion/cjs/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.js +0 -25
  101. package/emotion/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
  102. package/emotion/es/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.config.js +0 -19
  103. package/emotion/es/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -106
  104. package/emotion/es/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
  105. package/emotion/es/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.config.js +0 -19
  106. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -366
  107. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -254
  108. package/styled-components/cjs/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -106
  109. package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.js +0 -39
  110. package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -366
  111. package/styled-components/cjs/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -254
  112. package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.js +0 -33
  113. package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -366
  114. package/styled-components/es/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -254
  115. package/styled-components/es/examples/plasma_b2c/components/Form/Form.stories.tsx +0 -106
  116. package/styled-components/es/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.stories.tsx +0 -366
  117. package/styled-components/es/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.stories.tsx +0 -254
  118. package/types/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.config.d.ts.map +0 -1
  119. package/types/examples/plasma_b2c/components/Combobox/ComboboxNew/Combobox.d.ts.map +0 -1
  120. package/types/examples/plasma_b2c/components/Combobox/ComboboxOld/Combobox.d.ts.map +0 -1
  121. package/types/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.config.d.ts.map +0 -1
  122. package/types/examples/plasma_web/components/Combobox/ComboboxNew/Combobox.d.ts.map +0 -1
  123. package/types/examples/plasma_web/components/Combobox/ComboboxOld/Combobox.d.ts.map +0 -1
  124. /package/emotion/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  125. /package/emotion/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  126. /package/emotion/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  127. /package/emotion/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  128. /package/styled-components/cjs/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  129. /package/styled-components/cjs/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  130. /package/styled-components/es/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  131. /package/styled-components/es/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.js +0 -0
  132. /package/types/examples/plasma_b2c/components/Combobox/{ComboboxNew/Combobox.config.d.ts → Combobox.config.d.ts} +0 -0
  133. /package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts +0 -0
  134. /package/types/examples/plasma_b2c/components/Combobox/{ComboboxOld → Legacy}/Combobox.d.ts +0 -0
  135. /package/types/examples/plasma_web/components/Combobox/{ComboboxNew/Combobox.config.d.ts → Combobox.config.d.ts} +0 -0
  136. /package/types/examples/plasma_web/components/Combobox/{ComboboxOld → Legacy}/Combobox.config.d.ts +0 -0
  137. /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
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAoB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,2FAsYtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAxYQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CA6Z3F,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4F,MAAM,OAAO,CAAC;AAIjH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAoB7C,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,2FAuYtF,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAzYQ,UAAU,gBAAgB,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;CA8Z3F,CAAC"}
@@ -86,7 +86,7 @@ export interface BasicProps {
86
86
  filter?: (label: string, textValue: string) => boolean;
87
87
  /**
88
88
  * Закрывать ли выпадающий список после выбора элемента.
89
- * @default если single, то true; если multiple, то false
89
+ * @default если single, то true; если multiple, то false; если передан alwaysOpened, то false
90
90
  */
91
91
  closeAfterSelect?: boolean;
92
92
  /**
@@ -110,6 +110,12 @@ export interface BasicProps {
110
110
  * Компонент неактивен.
111
111
  */
112
112
  disabled?: boolean;
113
+ /**
114
+ * Дропдаун открыт всегда.
115
+ * @default
116
+ * false
117
+ */
118
+ alwaysOpened?: boolean;
113
119
  }
114
120
  export declare type ComboboxProps = BasicProps & IsMultiselect & Omit<ButtonHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
115
121
  export declare type FloatingPopoverProps = {
@@ -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,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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qB,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"}
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,CAAC;IAC1C,cAAc,CAAC,EAAE,O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EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxOld/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAU7C,OAAO,KAAK,EAA0B,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,aAAa,CAAC,2FAwOxE,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA1OQ,UAAU,gBAAgB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;CA2P5E,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxOld/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAU7C,OAAO,KAAK,EAA0B,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,gBAAgB,EAAE,aAAa,CAAC,2FA+OxE,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBAjPQ,UAAU,gBAAgB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;CAkQ5E,CAAC"}
@@ -32,6 +32,12 @@ export interface CustomComboboxProps {
32
32
  * false
33
33
  */
34
34
  opened?: boolean;
35
+ /**
36
+ * Дропдаун открыт всегда.
37
+ * @default
38
+ * false
39
+ */
40
+ alwaysOpened?: boolean;
35
41
  /**
36
42
  * Сторона открытия дропдауна относительно target элемента.
37
43
  * @default
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxOld/Combobox.types.ts"],"names":[],"mappings":"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S,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,KAAK,CAAC,EAAE,sBAAsB,GAAG,sBAAsB,EAAE,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACxE,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;CACzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAqBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA+BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,8FAiL1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAnLQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA2M/E,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAqBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA+BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,8FAgL1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAlLQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA0M/E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAuC,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4B7F,eAAO,MAAM,IAAI,0CAGhB,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,4FAkQxE,CAAC;AAEN,eAAO,MAAM,eAAe;;;mBApQQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAgS5E,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAuC,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4B7F,eAAO,MAAM,IAAI,0CAGhB,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,4FAwQxE,CAAC;AAEN,eAAO,MAAM,eAAe;;;mBA1QQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAsS5E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmhBlB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0gBlB,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"}