@salutejs/plasma-new-hope 0.174.0-canary.1505.11485998091.0 → 0.174.0-canary.1505.11505788468.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  2. package/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  3. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  4. package/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  5. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  6. package/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  7. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  8. package/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  9. package/cjs/components/Combobox/ComboboxNew/Combobox.js +9 -5
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  11. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +9 -5
  12. package/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  13. package/cjs/components/Select/utils/getButtonLabel.js +2 -2
  14. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -1
  15. package/cjs/components/Select/utils/initialItemsTransform.js +6 -7
  16. package/cjs/components/Select/utils/initialItemsTransform.js.map +1 -1
  17. package/cjs/components/TextArea/TextArea.js +1 -1
  18. package/cjs/components/TextArea/TextArea.js.map +1 -1
  19. package/cjs/components/TextArea/TextArea.styles.js +2 -2
  20. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  21. package/cjs/components/TextField/TextField.js +1 -1
  22. package/cjs/components/TextField/TextField.js.map +1 -1
  23. package/cjs/components/TextField/TextField.styles.js +2 -2
  24. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  25. package/emotion/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  26. package/emotion/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  27. package/emotion/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  28. package/emotion/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  29. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +9 -5
  30. package/emotion/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  31. package/emotion/cjs/components/Select/utils/getButtonLabel.js +2 -2
  32. package/emotion/cjs/components/Select/utils/initialItemsTransform.js +6 -7
  33. package/emotion/cjs/components/TextArea/TextArea.js +2 -2
  34. package/emotion/cjs/components/TextArea/TextArea.styles.js +20 -20
  35. package/emotion/cjs/components/TextField/TextField.js +2 -2
  36. package/emotion/cjs/components/TextField/TextField.styles.js +24 -24
  37. package/emotion/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  38. package/emotion/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  39. package/emotion/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  40. package/emotion/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  41. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +9 -5
  42. package/emotion/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  43. package/emotion/es/components/Select/utils/getButtonLabel.js +2 -2
  44. package/emotion/es/components/Select/utils/initialItemsTransform.js +6 -7
  45. package/emotion/es/components/TextArea/TextArea.js +2 -2
  46. package/emotion/es/components/TextArea/TextArea.styles.js +20 -20
  47. package/emotion/es/components/TextField/TextField.js +2 -2
  48. package/emotion/es/components/TextField/TextField.styles.js +24 -24
  49. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  50. package/es/components/Calendar/ui/CalendarDays/CalendarDays.js.map +1 -1
  51. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  52. package/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js.map +1 -1
  53. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  54. package/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js.map +1 -1
  55. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  56. package/es/components/Calendar/ui/CalendarYears/CalendarYears.js.map +1 -1
  57. package/es/components/Combobox/ComboboxNew/Combobox.js +9 -5
  58. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  59. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +9 -5
  60. package/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js.map +1 -1
  61. package/es/components/Select/utils/getButtonLabel.js +2 -2
  62. package/es/components/Select/utils/getButtonLabel.js.map +1 -1
  63. package/es/components/Select/utils/initialItemsTransform.js +6 -7
  64. package/es/components/Select/utils/initialItemsTransform.js.map +1 -1
  65. package/es/components/TextArea/TextArea.js +1 -1
  66. package/es/components/TextArea/TextArea.js.map +1 -1
  67. package/es/components/TextArea/TextArea.styles.js +2 -2
  68. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  69. package/es/components/TextField/TextField.js +1 -1
  70. package/es/components/TextField/TextField.js.map +1 -1
  71. package/es/components/TextField/TextField.styles.js +2 -2
  72. package/es/components/TextField/TextField.styles.js.map +1 -1
  73. package/package.json +2 -2
  74. package/styled-components/cjs/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  75. package/styled-components/cjs/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  76. package/styled-components/cjs/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  77. package/styled-components/cjs/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  78. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +9 -5
  79. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  80. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +2 -2
  81. package/styled-components/cjs/components/Select/utils/initialItemsTransform.js +6 -7
  82. package/styled-components/cjs/components/TextArea/TextArea.js +1 -1
  83. package/styled-components/cjs/components/TextArea/TextArea.styles.js +2 -2
  84. package/styled-components/cjs/components/TextField/TextField.js +1 -1
  85. package/styled-components/cjs/components/TextField/TextField.styles.js +2 -2
  86. package/styled-components/es/components/Calendar/ui/CalendarDays/CalendarDays.js +5 -1
  87. package/styled-components/es/components/Calendar/ui/CalendarMonths/CalendarMonths.js +5 -1
  88. package/styled-components/es/components/Calendar/ui/CalendarQuarters/CalendarQuarters.js +5 -1
  89. package/styled-components/es/components/Calendar/ui/CalendarYears/CalendarYears.js +5 -1
  90. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +9 -5
  91. package/styled-components/es/components/Combobox/ComboboxNew/utils/initialItemsTransform.js +19 -5
  92. package/styled-components/es/components/Select/utils/getButtonLabel.js +2 -2
  93. package/styled-components/es/components/Select/utils/initialItemsTransform.js +6 -7
  94. package/styled-components/es/components/TextArea/TextArea.js +1 -1
  95. package/styled-components/es/components/TextArea/TextArea.styles.js +2 -2
  96. package/styled-components/es/components/TextField/TextField.js +1 -1
  97. package/styled-components/es/components/TextField/TextField.styles.js +2 -2
  98. package/types/components/Calendar/ui/CalendarDays/CalendarDays.d.ts.map +1 -1
  99. package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.d.ts.map +1 -1
  100. package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.d.ts.map +1 -1
  101. package/types/components/Calendar/ui/CalendarYears/CalendarYears.d.ts.map +1 -1
  102. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  103. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +7 -2
  104. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  105. package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
  106. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +4 -0
  107. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  108. package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
  109. package/types/components/TextArea/TextArea.styles.d.ts +1 -1
  110. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  111. package/types/components/TextField/TextField.styles.d.ts +1 -1
  112. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  113. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +12 -0
  114. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  115. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +12 -0
  116. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
@@ -53,6 +53,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
53
53
  value?: string | undefined;
54
54
  onChange?: ((value: string) => void) | undefined;
55
55
  isTargetAmount?: false | undefined;
56
+ renderValue?: undefined;
56
57
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
57
58
  items: ItemOption[];
58
59
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -82,6 +83,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
82
83
  value?: string[] | undefined;
83
84
  onChange?: ((value: string[]) => void) | undefined;
84
85
  isTargetAmount?: boolean | undefined;
86
+ renderValue?: ((item: ItemOption) => string) | undefined;
85
87
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
86
88
  items: ItemOption[];
87
89
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -111,6 +113,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
111
113
  value?: string | undefined;
112
114
  onChange?: ((value: string) => void) | undefined;
113
115
  isTargetAmount?: false | undefined;
116
+ renderValue?: undefined;
114
117
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
115
118
  items: ItemOption[];
116
119
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -140,6 +143,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
140
143
  value?: string[] | undefined;
141
144
  onChange?: ((value: string[]) => void) | undefined;
142
145
  isTargetAmount?: boolean | undefined;
146
+ renderValue?: ((item: ItemOption) => string) | undefined;
143
147
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
144
148
  items: ItemOption[];
145
149
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -169,6 +173,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
169
173
  value?: string | undefined;
170
174
  onChange?: ((value: string) => void) | undefined;
171
175
  isTargetAmount?: false | undefined;
176
+ renderValue?: undefined;
172
177
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
173
178
  items: ItemOption[];
174
179
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -198,6 +203,7 @@ declare const ComboboxComponent: import("react").FunctionComponent<import("../..
198
203
  value?: string[] | undefined;
199
204
  onChange?: ((value: string[]) => void) | undefined;
200
205
  isTargetAmount?: boolean | undefined;
206
+ renderValue?: ((item: ItemOption) => string) | undefined;
201
207
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
202
208
  declare type PropsFromConfig = keyof typeof config['variations'];
203
209
  declare type PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> & Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig>;
@@ -253,6 +259,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
253
259
  value?: string | undefined;
254
260
  onChange?: ((value: string) => void) | undefined;
255
261
  isTargetAmount?: false | undefined;
262
+ renderValue?: undefined;
256
263
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
257
264
  items: ItemOption[];
258
265
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -282,6 +289,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
282
289
  value?: string[] | undefined;
283
290
  onChange?: ((value: string[]) => void) | undefined;
284
291
  isTargetAmount?: boolean | undefined;
292
+ renderValue?: ((item: ItemOption) => string) | undefined;
285
293
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
286
294
  items: ItemOption[];
287
295
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -311,6 +319,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
311
319
  value?: string | undefined;
312
320
  onChange?: ((value: string) => void) | undefined;
313
321
  isTargetAmount?: false | undefined;
322
+ renderValue?: undefined;
314
323
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
315
324
  items: ItemOption[];
316
325
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -340,6 +349,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
340
349
  value?: string[] | undefined;
341
350
  onChange?: ((value: string[]) => void) | undefined;
342
351
  isTargetAmount?: boolean | undefined;
352
+ renderValue?: ((item: ItemOption) => string) | undefined;
343
353
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
344
354
  items: ItemOption[];
345
355
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -369,6 +379,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
369
379
  value?: string | undefined;
370
380
  onChange?: ((value: string) => void) | undefined;
371
381
  isTargetAmount?: false | undefined;
382
+ renderValue?: undefined;
372
383
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
373
384
  items: ItemOption[];
374
385
  placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
@@ -398,6 +409,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
398
409
  value?: string[] | undefined;
399
410
  onChange?: ((value: string[]) => void) | undefined;
400
411
  isTargetAmount?: boolean | undefined;
412
+ renderValue?: ((item: ItemOption) => string) | undefined;
401
413
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "disabled" | "readOnly" | "size" | "labelPlacement"> & {
402
414
  ref?: ForwardedRef<HTMLInputElement> | undefined;
403
415
  }) => ReactElement | null;
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAElD,aAAK,eAAe,GAAG,MAAM,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;AAEzD,aAAK,QAAQ,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,GACzE,IAAI,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,EAAE,eAAe,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAET,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAElD,aAAK,eAAe,GAAG,MAAM,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;AAEzD,aAAK,QAAQ,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,GACzE,IAAI,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,EAAE,eAAe,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAET,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,CAAC"}