@commercetools-uikit/selectable-search-input 16.11.0 → 16.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -527,7 +527,7 @@ SelectableSearchInput.getDropdownId = getDropdownName;
527
527
  var SelectableSearchInput$1 = SelectableSearchInput;
528
528
 
529
529
  // NOTE: This string will be replaced on build time with the package version.
530
- var version = "16.11.0";
530
+ var version = "16.12.0";
531
531
 
532
532
  exports["default"] = SelectableSearchInput$1;
533
533
  exports.version = version;
@@ -471,7 +471,7 @@ SelectableSearchInput.getDropdownId = getDropdownName;
471
471
  var SelectableSearchInput$1 = SelectableSearchInput;
472
472
 
473
473
  // NOTE: This string will be replaced on build time with the package version.
474
- var version = "16.11.0";
474
+ var version = "16.12.0";
475
475
 
476
476
  exports["default"] = SelectableSearchInput$1;
477
477
  exports.version = version;
@@ -504,6 +504,6 @@ SelectableSearchInput.getDropdownId = getDropdownName;
504
504
  var SelectableSearchInput$1 = SelectableSearchInput;
505
505
 
506
506
  // NOTE: This string will be replaced on build time with the package version.
507
- var version = "16.11.0";
507
+ var version = "16.12.0";
508
508
 
509
509
  export { SelectableSearchInput$1 as default, version };
@@ -1 +1 @@
1
- export type { TSelectableSearchInputProps, TCustomEvent, TValue, TOption, TOptionObject, } from './selectable-search-input';
1
+ export type { TSelectableSearchInputProps, TCustomEvent, TValue, TOption, TOptionObject, } from "./selectable-search-input.js";
@@ -1,3 +1,3 @@
1
- export { default } from './selectable-search-input';
2
- export { default as version } from './version';
3
- export * from './export-types';
1
+ export { default } from "./selectable-search-input.js";
2
+ export { default as version } from "./version.js";
3
+ export * from "./export-types.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/selectable-search-input",
3
3
  "description": "A controlled selectable search input component for single-line strings with validation states.",
4
- "version": "16.11.0",
4
+ "version": "16.12.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "16.11.0",
25
- "@commercetools-uikit/design-system": "16.11.0",
26
- "@commercetools-uikit/hooks": "16.11.0",
27
- "@commercetools-uikit/icons": "16.11.0",
28
- "@commercetools-uikit/input-utils": "16.11.0",
29
- "@commercetools-uikit/secondary-icon-button": "16.11.0",
30
- "@commercetools-uikit/select-utils": "16.11.0",
31
- "@commercetools-uikit/utils": "16.11.0",
24
+ "@commercetools-uikit/constraints": "16.12.0",
25
+ "@commercetools-uikit/design-system": "16.12.0",
26
+ "@commercetools-uikit/hooks": "16.12.0",
27
+ "@commercetools-uikit/icons": "16.12.0",
28
+ "@commercetools-uikit/input-utils": "16.12.0",
29
+ "@commercetools-uikit/secondary-icon-button": "16.12.0",
30
+ "@commercetools-uikit/select-utils": "16.12.0",
31
+ "@commercetools-uikit/utils": "16.12.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "lodash": "4.17.21",
35
35
  "prop-types": "15.8.1",
36
- "react-select": "5.7.3"
36
+ "react-select": "5.8.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "17.0.2",
@@ -1,427 +0,0 @@
1
- import { type Props as ReactSelectProps } from 'react-select';
2
- type TInputProps = {
3
- isDisabled?: boolean;
4
- hasError?: boolean;
5
- hasWarning?: boolean;
6
- isReadOnly?: boolean;
7
- horizontalConstraint?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
8
- };
9
- declare const getSelectableSearchInputStyles: (props: TInputProps) => import("@emotion/utils").SerializedStyles[];
10
- declare const getClearIconButtonStyles: (props: TInputProps) => import("@emotion/utils").SerializedStyles[];
11
- declare const getSearchIconButtonStyles: (props: TInputProps) => import("@emotion/utils").SerializedStyles[];
12
- declare const getBackgroundColor: (props: TInputProps, defaultColor: string) => string;
13
- declare const getSelectableSearchInputContainerStyles: (props: TInputProps) => (false | import("@emotion/utils").SerializedStyles)[];
14
- type TBase = {
15
- backgroundColor?: string;
16
- color?: string;
17
- };
18
- type TCreateSelectableSelectStyles = {
19
- isDisabled?: boolean;
20
- hasError?: boolean;
21
- hasWarning?: boolean;
22
- isReadOnly?: boolean;
23
- menuPortalZIndex?: number;
24
- dropdownHasFocus?: boolean;
25
- horizontalConstraint?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
26
- };
27
- declare const createSelectableSelectStyles: ({ hasWarning, hasError, isDisabled, isReadOnly, menuPortalZIndex, dropdownHasFocus, horizontalConstraint, }: TCreateSelectableSelectStyles) => {
28
- control: (base: TBase, state: ReactSelectProps) => {
29
- padding: "var(--padding-for-selectable-search-input-dropdown, 0 12px)";
30
- borderTopRightRadius: string;
31
- borderBottomRightRadius: string;
32
- borderRight: string;
33
- height: string;
34
- borderColor: string;
35
- cursor: string;
36
- backgroundColor: string;
37
- '&:hover': {
38
- backgroundColor: string;
39
- };
40
- '&:focus-within': {
41
- borderColor: "var(--border-color-for-input-when-focused, hsl(175, 55%, 45%))" | null;
42
- };
43
- pointerEvents: string;
44
- color: string | undefined;
45
- display?: string | undefined;
46
- fontSize: "var(--font-size-for-input, 1rem)";
47
- borderWidth: "var(--border-width-1, 1px)" | "var(--border-width-for-select-input, 2px)";
48
- borderRadius: "var(--border-radius-for-input, 4px)";
49
- minHeight: "var(--height-for-input, 40px)";
50
- transition: string;
51
- outline: number;
52
- boxShadow: string;
53
- fontColorForInput?: string | undefined;
54
- borderColorForInput?: string | undefined;
55
- borderTop?: string | undefined;
56
- };
57
- singleValue: (base: TBase) => {
58
- marginLeft: number;
59
- maxWidth: string;
60
- color: "var(--font-color-for-input, #1a1a1a)" | "var(--font-color-for-input-when-disabled, hsl(232, 18%, 60%))" | "var(--font-color-for-input-when-error, #e60050)" | "var(--font-color-for-input-when-readonly, hsl(232, 18%, 40%))" | "var(--font-color-for-input-when-warning, #f16d0e)";
61
- backgroundColor?: string | undefined;
62
- };
63
- dropdownIndicator: () => {
64
- fill: "var(--font-color-for-input-when-disabled, hsl(232, 18%, 60%))" | "var(--font-color-for-select-input-icon, hsl(232, 18%, 60%))";
65
- };
66
- menu: (base: {
67
- fontColorForInput?: string | undefined;
68
- borderColorForInput?: string | undefined;
69
- color?: string | undefined;
70
- backgroundColor?: string | undefined;
71
- borderTop?: string | undefined;
72
- borderColor?: string | undefined;
73
- boxShadow?: string | undefined;
74
- pointerEvents?: string | undefined;
75
- }) => {
76
- border: string;
77
- borderRadius: "var(--border-radius-for-input, 4px)";
78
- backgroundColor: "var(--background-color-for-input, #fff)";
79
- boxShadow: "var(--shadow-for-select-input-menu, 0 2px 5px 0px rgba(0, 0, 0, 0.15))";
80
- fontSize: "var(--font-size-for-input, 1rem)";
81
- fontFamily: string;
82
- margin: string;
83
- borderColor: string | undefined;
84
- width: string;
85
- fontColorForInput?: string | undefined;
86
- borderColorForInput?: string | undefined;
87
- color?: string | undefined;
88
- borderTop?: string | undefined;
89
- pointerEvents?: string | undefined;
90
- };
91
- indicatorSeparator: (base: {
92
- fontColorForInput?: string | undefined;
93
- borderColorForInput?: string | undefined;
94
- color?: string | undefined;
95
- backgroundColor?: string | undefined;
96
- borderTop?: string | undefined;
97
- borderColor?: string | undefined;
98
- boxShadow?: string | undefined;
99
- pointerEvents?: string | undefined;
100
- }) => {
101
- display: string;
102
- margin: string;
103
- padding: string;
104
- marginLeft: "var(--spacing-10, 4px)";
105
- fontColorForInput?: string | undefined;
106
- borderColorForInput?: string | undefined;
107
- color?: string | undefined;
108
- backgroundColor?: string | undefined;
109
- borderTop?: string | undefined;
110
- borderColor?: string | undefined;
111
- boxShadow?: string | undefined;
112
- pointerEvents?: string | undefined;
113
- };
114
- clearIndicator: (base: {
115
- fontColorForInput?: string | undefined;
116
- borderColorForInput?: string | undefined;
117
- color?: string | undefined;
118
- backgroundColor?: string | undefined;
119
- borderTop?: string | undefined;
120
- borderColor?: string | undefined;
121
- boxShadow?: string | undefined;
122
- pointerEvents?: string | undefined;
123
- }) => {
124
- display: string;
125
- padding: number;
126
- marginLeft: "var(--margin-for-select-input-icon, 8px)";
127
- fontColorForInput?: string | undefined;
128
- borderColorForInput?: string | undefined;
129
- color?: string | undefined;
130
- backgroundColor?: string | undefined;
131
- borderTop?: string | undefined;
132
- borderColor?: string | undefined;
133
- boxShadow?: string | undefined;
134
- pointerEvents?: string | undefined;
135
- };
136
- menuList: (base: {
137
- fontColorForInput?: string | undefined;
138
- borderColorForInput?: string | undefined;
139
- color?: string | undefined;
140
- backgroundColor?: string | undefined;
141
- borderTop?: string | undefined;
142
- borderColor?: string | undefined;
143
- boxShadow?: string | undefined;
144
- pointerEvents?: string | undefined;
145
- }) => {
146
- padding: "var(--padding-for-select-input-menu, var(--spacing-10) 0)";
147
- borderRadius: "var(--border-radius-for-input, 4px)";
148
- backgroundColor: "var(--background-color-for-input, #fff)";
149
- fontColorForInput?: string | undefined;
150
- borderColorForInput?: string | undefined;
151
- color?: string | undefined;
152
- borderTop?: string | undefined;
153
- borderColor?: string | undefined;
154
- boxShadow?: string | undefined;
155
- pointerEvents?: string | undefined;
156
- };
157
- menuPortal: (base: {
158
- fontColorForInput?: string | undefined;
159
- borderColorForInput?: string | undefined;
160
- color?: string | undefined;
161
- backgroundColor?: string | undefined;
162
- borderTop?: string | undefined;
163
- borderColor?: string | undefined;
164
- boxShadow?: string | undefined;
165
- pointerEvents?: string | undefined;
166
- }) => {
167
- zIndex: number | undefined;
168
- fontColorForInput?: string | undefined;
169
- borderColorForInput?: string | undefined;
170
- color?: string | undefined;
171
- backgroundColor?: string | undefined;
172
- borderTop?: string | undefined;
173
- borderColor?: string | undefined;
174
- boxShadow?: string | undefined;
175
- pointerEvents?: string | undefined;
176
- };
177
- multiValue: (base: {
178
- fontColorForInput?: string | undefined;
179
- borderColorForInput?: string | undefined;
180
- color?: string | undefined;
181
- backgroundColor?: string | undefined;
182
- borderTop?: string | undefined;
183
- borderColor?: string | undefined;
184
- boxShadow?: string | undefined;
185
- pointerEvents?: string | undefined;
186
- }) => {
187
- display: string;
188
- alignItems: "var(--align-items-for-select-input-tag, center)";
189
- height: "var(--height-for-select-input-tag, 32px)";
190
- backgroundColor: "var(--background-color-for-tag, hsl(232, 18%, 95%))";
191
- padding: string;
192
- border: "var(--border-for-select-input-tag, 1px solid var(--color-neutral-85))";
193
- fontColorForInput?: string | undefined;
194
- borderColorForInput?: string | undefined;
195
- color?: string | undefined;
196
- borderTop?: string | undefined;
197
- borderColor?: string | undefined;
198
- boxShadow?: string | undefined;
199
- pointerEvents?: string | undefined;
200
- };
201
- multiValueLabel: (base: {
202
- fontColorForInput?: string | undefined;
203
- borderColorForInput?: string | undefined;
204
- color?: string | undefined;
205
- backgroundColor?: string | undefined;
206
- borderTop?: string | undefined;
207
- borderColor?: string | undefined;
208
- boxShadow?: string | undefined;
209
- pointerEvents?: string | undefined;
210
- }) => {
211
- fontSize: "var(--font-size-for-select-input-tag, 1rem)";
212
- color: string | undefined;
213
- padding: string;
214
- borderRadius: string;
215
- border: string;
216
- borderWidth: string;
217
- '&:last-child': {
218
- borderRadius: "var(--border-radius-for-tag, 2px)";
219
- borderWidth: "var(--border-width-1, 1px)";
220
- };
221
- fontColorForInput?: string | undefined;
222
- borderColorForInput?: string | undefined;
223
- backgroundColor?: string | undefined;
224
- borderTop?: string | undefined;
225
- borderColor?: string | undefined;
226
- boxShadow?: string | undefined;
227
- pointerEvents?: string | undefined;
228
- };
229
- multiValueRemove: (base: {
230
- fontColorForInput?: string | undefined;
231
- borderColorForInput?: string | undefined;
232
- color?: string | undefined;
233
- backgroundColor?: string | undefined;
234
- borderTop?: string | undefined;
235
- borderColor?: string | undefined;
236
- boxShadow?: string | undefined;
237
- pointerEvents?: string | undefined;
238
- }, state: {
239
- isFocused?: boolean | undefined;
240
- isDisabled?: boolean | undefined;
241
- isSelected?: boolean | undefined;
242
- }) => {
243
- borderColor: "var(--border-color-for-tag, hsl(232, 18%, 80%))";
244
- padding: string;
245
- borderRadius: string;
246
- borderStyle: string;
247
- borderWidth: string;
248
- pointerEvents: string | undefined;
249
- backgroundColor: "var(--background-color-for-tag, hsl(232, 18%, 95%))";
250
- 'svg *': {
251
- fill: string;
252
- };
253
- '&:hover, &:focus': {
254
- borderColor: "var(--border-color-for-tag-warning, #f16d0e)";
255
- backgroundColor: "var(--background-color-for-tag, hsl(232, 18%, 95%))";
256
- 'svg *': {
257
- fill: "var(--font-color-for-clear-input-icon-when-hovered, #e60050)";
258
- };
259
- };
260
- fontColorForInput?: string | undefined;
261
- borderColorForInput?: string | undefined;
262
- color?: string | undefined;
263
- borderTop?: string | undefined;
264
- boxShadow?: string | undefined;
265
- };
266
- indicatorsContainer: () => {
267
- background: string;
268
- display: string;
269
- alignItems: string;
270
- };
271
- option: (base: {
272
- fontColorForInput?: string | undefined;
273
- borderColorForInput?: string | undefined;
274
- color?: string | undefined;
275
- backgroundColor?: string | undefined;
276
- borderTop?: string | undefined;
277
- borderColor?: string | undefined;
278
- boxShadow?: string | undefined;
279
- pointerEvents?: string | undefined;
280
- }, state: {
281
- isFocused?: boolean | undefined;
282
- isDisabled?: boolean | undefined;
283
- isSelected?: boolean | undefined;
284
- }) => {
285
- transition: string;
286
- paddingLeft: "var(--padding-left-for-select-input-options, 16px)";
287
- paddingRight: "var(--padding-right-for-select-input-options, 16px)";
288
- paddingTop: "var(--padding-top-for-select-input-options, 8px)";
289
- paddingBottom: "var(--padding-bottom-for-select-input-options, 8px)";
290
- lineHeight: "var(--line-height-for-select-input-options, 1.625rem)";
291
- color: string | undefined;
292
- backgroundColor: string | undefined;
293
- '&:active': {
294
- color: string | undefined;
295
- backgroundColor: "var(--background-color-for-input-when-active, hsl(203.05555555555554, 93.9130434783%, 95%))";
296
- };
297
- fontColorForInput?: string | undefined;
298
- borderColorForInput?: string | undefined;
299
- borderTop?: string | undefined;
300
- borderColor?: string | undefined;
301
- boxShadow?: string | undefined;
302
- pointerEvents?: string | undefined;
303
- };
304
- placeholder: (base: {
305
- fontColorForInput?: string | undefined;
306
- borderColorForInput?: string | undefined;
307
- color?: string | undefined;
308
- backgroundColor?: string | undefined;
309
- borderTop?: string | undefined;
310
- borderColor?: string | undefined;
311
- boxShadow?: string | undefined;
312
- pointerEvents?: string | undefined;
313
- }) => {
314
- color: "var(--font-color-for-select-input-when-error, #e60050)" | "var(--font-color-for-select-input-when-warning, #f16d0e)" | "var(--placeholder-font-color-for-input, hsl(232, 18%, 60%))";
315
- width: string;
316
- overflow: string;
317
- whiteSpace: string;
318
- textOverflow: string;
319
- fill: string | undefined;
320
- fontColorForInput?: string | undefined;
321
- borderColorForInput?: string | undefined;
322
- backgroundColor?: string | undefined;
323
- borderTop?: string | undefined;
324
- borderColor?: string | undefined;
325
- boxShadow?: string | undefined;
326
- pointerEvents?: string | undefined;
327
- };
328
- valueContainer: (base: {
329
- fontColorForInput?: string | undefined;
330
- borderColorForInput?: string | undefined;
331
- color?: string | undefined;
332
- backgroundColor?: string | undefined;
333
- borderTop?: string | undefined;
334
- borderColor?: string | undefined;
335
- boxShadow?: string | undefined;
336
- pointerEvents?: string | undefined;
337
- }) => {
338
- padding: string;
339
- backgroundColor: string;
340
- overflow: string;
341
- display: string;
342
- fill: "var(--font-color-for-input-when-disabled, hsl(232, 18%, 60%))" | "var(--font-color-for-select-input-icon, hsl(232, 18%, 60%))";
343
- fontColorForInput?: string | undefined;
344
- borderColorForInput?: string | undefined;
345
- color?: string | undefined;
346
- borderTop?: string | undefined;
347
- borderColor?: string | undefined;
348
- boxShadow?: string | undefined;
349
- pointerEvents?: string | undefined;
350
- };
351
- group: (base: {
352
- fontColorForInput?: string | undefined;
353
- borderColorForInput?: string | undefined;
354
- color?: string | undefined;
355
- backgroundColor?: string | undefined;
356
- borderTop?: string | undefined;
357
- borderColor?: string | undefined;
358
- boxShadow?: string | undefined;
359
- pointerEvents?: string | undefined;
360
- }) => {
361
- padding: number;
362
- '&:not(:first-of-type)': {
363
- borderTop: string | undefined;
364
- };
365
- fontColorForInput?: string | undefined;
366
- borderColorForInput?: string | undefined;
367
- color?: string | undefined;
368
- backgroundColor?: string | undefined;
369
- borderTop?: string | undefined;
370
- borderColor?: string | undefined;
371
- boxShadow?: string | undefined;
372
- pointerEvents?: string | undefined;
373
- };
374
- groupHeading: (base: {
375
- fontColorForInput?: string | undefined;
376
- borderColorForInput?: string | undefined;
377
- color?: string | undefined;
378
- backgroundColor?: string | undefined;
379
- borderTop?: string | undefined;
380
- borderColor?: string | undefined;
381
- boxShadow?: string | undefined;
382
- pointerEvents?: string | undefined;
383
- }) => {
384
- color: "var(--font-color-for-input-when-readonly, hsl(232, 18%, 40%))";
385
- fontSize: "var(--font-size-small, 0.9231rem)";
386
- textTransform: string;
387
- fontWeight: string;
388
- padding: string;
389
- '&:empty': {
390
- padding: number;
391
- };
392
- fontColorForInput?: string | undefined;
393
- borderColorForInput?: string | undefined;
394
- backgroundColor?: string | undefined;
395
- borderTop?: string | undefined;
396
- borderColor?: string | undefined;
397
- boxShadow?: string | undefined;
398
- pointerEvents?: string | undefined;
399
- };
400
- container: (base: {
401
- fontColorForInput?: string | undefined;
402
- borderColorForInput?: string | undefined;
403
- color?: string | undefined;
404
- backgroundColor?: string | undefined;
405
- borderTop?: string | undefined;
406
- borderColor?: string | undefined;
407
- boxShadow?: string | undefined;
408
- pointerEvents?: string | undefined;
409
- }, state: {
410
- isFocused?: boolean | undefined;
411
- isDisabled?: boolean | undefined;
412
- isSelected?: boolean | undefined;
413
- }) => {
414
- fontFamily: string;
415
- minHeight: "var(--size-height-input, 32px)";
416
- borderRadius: "var(--border-radius-for-input, 4px)";
417
- borderColor: string | undefined;
418
- boxShadow: string | undefined;
419
- fontColorForInput?: string | undefined;
420
- borderColorForInput?: string | undefined;
421
- color?: string | undefined;
422
- backgroundColor?: string | undefined;
423
- borderTop?: string | undefined;
424
- pointerEvents?: string | undefined;
425
- };
426
- };
427
- export { getSelectableSearchInputStyles, getSelectableSearchInputContainerStyles, getClearIconButtonStyles, getSearchIconButtonStyles, getBackgroundColor, createSelectableSelectStyles, };
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import type { TSelectableSearchInputProps, TOption } from './selectable-search-input';
3
- type TSelectableSelect = {
4
- dropdownHasFocus: boolean;
5
- handleDropdownFocus: () => void;
6
- handleDropdownBlur: () => void;
7
- textInputRef: React.RefObject<HTMLInputElement>;
8
- selectedOption?: TOption;
9
- } & TSelectableSearchInputProps;
10
- declare const SelectableSelect: (props: TSelectableSelect) => import("@emotion/react/jsx-runtime").JSX.Element;
11
- export default SelectableSelect;