@salutejs/plasma-web 1.348.0-canary.1292.9857725268.0 → 1.348.0-canary.1292.9863563726.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/api/plasma-web.api.md +60 -0
  2. package/components/Autocomplete/Autocomplete.config.d.ts +31 -0
  3. package/components/Autocomplete/Autocomplete.config.js +40 -0
  4. package/components/Autocomplete/Autocomplete.d.ts +55 -0
  5. package/components/Autocomplete/Autocomplete.js +16 -0
  6. package/components/Autocomplete/index.d.ts +1 -0
  7. package/components/Autocomplete/index.js +18 -0
  8. package/css/cjs/components/Autocomplete/Autocomplete.config.js +39 -0
  9. package/css/cjs/components/Autocomplete/Autocomplete.config.js.map +1 -0
  10. package/css/cjs/components/Autocomplete/Autocomplete.config_1kdai1k.css +12 -0
  11. package/css/cjs/components/Autocomplete/Autocomplete.css +12 -0
  12. package/css/cjs/components/Autocomplete/Autocomplete.js +16 -0
  13. package/css/cjs/components/Autocomplete/Autocomplete.js.map +1 -0
  14. package/css/cjs/index.css +13 -0
  15. package/css/cjs/index.js +6 -0
  16. package/css/cjs/index.js.map +1 -1
  17. package/css/es/components/Autocomplete/Autocomplete.config.js +35 -0
  18. package/css/es/components/Autocomplete/Autocomplete.config.js.map +1 -0
  19. package/css/es/components/Autocomplete/Autocomplete.config_1kdai1k.css +12 -0
  20. package/css/es/components/Autocomplete/Autocomplete.css +12 -0
  21. package/css/es/components/Autocomplete/Autocomplete.js +9 -0
  22. package/css/es/components/Autocomplete/Autocomplete.js.map +1 -0
  23. package/css/es/index.css +13 -0
  24. package/css/es/index.js +2 -1
  25. package/css/es/index.js.map +1 -1
  26. package/css/index.d.ts +2 -0
  27. package/es/components/Autocomplete/Autocomplete.config.js +34 -0
  28. package/es/components/Autocomplete/Autocomplete.js +5 -0
  29. package/es/components/Autocomplete/index.js +1 -0
  30. package/es/index.js +2 -1
  31. package/index.d.ts +1 -0
  32. package/index.js +11 -0
  33. package/package.json +3 -3
  34. package/temp/plasma-web.api.md +60 -0
@@ -32,12 +32,14 @@ import { AsProps } from '@salutejs/plasma-core';
32
32
  import { AsProps as AsProps_2 } from '@salutejs/plasma-new-hope/types/types';
33
33
  import { AudioPlayer } from '@salutejs/plasma-hope';
34
34
  import { AudioPlayerProps } from '@salutejs/plasma-hope';
35
+ import { AutocompleteEmptyState } from '@salutejs/plasma-new-hope/styled-components';
35
36
  import { AvatarGroupProps } from '@salutejs/plasma-new-hope/styled-components';
36
37
  import { AvatarProps } from '@salutejs/plasma-new-hope/styled-components';
37
38
  import { BadgeProps } from '@salutejs/plasma-new-hope/styled-components';
38
39
  import { BaseboxProps } from '@salutejs/plasma-new-hope/styled-components';
39
40
  import { BaseCallbackChangeInstance } from '@salutejs/plasma-new-hope/types/components/Range/Range.types';
40
41
  import { BaseCallbackKeyboardInstance } from '@salutejs/plasma-new-hope/types/components/Range/Range.types';
42
+ import { BaseProps } from '@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types';
41
43
  import { BlurProps } from '@salutejs/plasma-core';
42
44
  import { blurs } from '@salutejs/plasma-core';
43
45
  import { BoldProps } from '@salutejs/plasma-new-hope/types/components/Typography/Typography.types';
@@ -143,7 +145,9 @@ import { ImgHTMLAttributes } from 'react';
143
145
  import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
144
146
  import { InputHTMLAttributes } from '@salutejs/plasma-core';
145
147
  import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
148
+ import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
146
149
  import { JSXElementConstructor } from 'react';
150
+ import { KeyboardEvent as KeyboardEvent_2 } from 'react';
147
151
  import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
148
152
  import { LinkCustomProps } from '@salutejs/plasma-new-hope/types/components/Link/Link';
149
153
  import { List } from '@salutejs/plasma-hope';
@@ -373,6 +377,62 @@ export { AudioPlayer }
373
377
 
374
378
  export { AudioPlayerProps }
375
379
 
380
+ // @public (undocumented)
381
+ export const Autocomplete: FunctionComponent<PropsType< {
382
+ view: {
383
+ default: PolymorphicClassName;
384
+ positive: PolymorphicClassName;
385
+ warning: PolymorphicClassName;
386
+ negative: PolymorphicClassName;
387
+ };
388
+ size: {
389
+ l: PolymorphicClassName;
390
+ m: PolymorphicClassName;
391
+ s: PolymorphicClassName;
392
+ xs: PolymorphicClassName;
393
+ };
394
+ labelPlacement: {
395
+ inner: PolymorphicClassName;
396
+ outer: PolymorphicClassName;
397
+ };
398
+ disabled: {
399
+ true: PolymorphicClassName;
400
+ };
401
+ readOnly: {
402
+ true: PolymorphicClassName;
403
+ };
404
+ }> & ((BaseProps<string | number> & {
405
+ label?: string | undefined;
406
+ labelPlacement?: "inner" | "outer" | undefined;
407
+ leftHelper?: string | undefined;
408
+ contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
409
+ contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
410
+ textBefore?: string | undefined;
411
+ textAfter?: string | undefined;
412
+ onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
413
+ } & {
414
+ chips?: undefined;
415
+ onChangeChips?: undefined;
416
+ enumerationType?: "plain" | undefined;
417
+ onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
418
+ } & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size"> & RefAttributes<HTMLInputElement>) | (BaseProps<string | number> & {
419
+ label?: string | undefined;
420
+ labelPlacement?: "inner" | "outer" | undefined;
421
+ leftHelper?: string | undefined;
422
+ contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
423
+ contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
424
+ textBefore?: string | undefined;
425
+ textAfter?: string | undefined;
426
+ onSearch?: ((value: string, event?: KeyboardEvent_2<HTMLInputElement> | undefined) => void) | undefined;
427
+ } & {
428
+ enumerationType: "chip";
429
+ onSearch?: undefined;
430
+ chips?: TextFieldPrimitiveValue[] | undefined;
431
+ onChangeChips?: ((value: TextFieldPrimitiveValue[]) => void) | undefined;
432
+ } & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size"> & RefAttributes<HTMLInputElement>))>;
433
+
434
+ export { AutocompleteEmptyState }
435
+
376
436
  // @public (undocumented)
377
437
  export const Avatar: FunctionComponent<PropsType< {
378
438
  view: {