@salutejs/plasma-new-hope 0.88.0-canary.1233.9420319803.0 → 0.88.0-canary.1233.9437372350.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/cjs/components/Chip/Chip.css +5 -5
  2. package/cjs/components/Chip/Chip.styles.js +1 -1
  3. package/cjs/components/Chip/Chip.styles.js.map +1 -1
  4. package/cjs/components/Chip/{Chip.styles_1l2rsrr.css → Chip.styles_1mwwhiw.css} +1 -1
  5. package/cjs/components/Combobox/Combobox.css +5 -5
  6. package/cjs/components/Combobox/ui/ComboboxChip/ComboboxChip.css +5 -5
  7. package/cjs/components/Combobox/ui/ComboboxTarget/ComboboxTarget.css +5 -5
  8. package/cjs/components/Pagination/Pagination.css +10 -11
  9. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +10 -11
  10. package/cjs/components/Range/Range.css +5 -5
  11. package/cjs/components/Select/Select.css +10 -11
  12. package/cjs/components/Select/Select.js +10 -6
  13. package/cjs/components/Select/Select.js.map +1 -1
  14. package/cjs/components/Select/Select.styles.js +2 -0
  15. package/cjs/components/Select/Select.styles.js.map +1 -1
  16. package/cjs/components/Select/elements/Inner/Inner.css +10 -11
  17. package/cjs/components/Select/elements/Inner/Inner.js +7 -2
  18. package/cjs/components/Select/elements/Inner/Inner.js.map +1 -1
  19. package/cjs/components/Select/elements/Inner/elements/Item/Item.css +10 -11
  20. package/cjs/components/Select/elements/Inner/elements/Item/Item.js +17 -6
  21. package/cjs/components/Select/elements/Inner/elements/Item/Item.js.map +1 -1
  22. package/cjs/components/Select/elements/Target/Target.css +10 -11
  23. package/cjs/components/Select/elements/Target/Target.js +9 -3
  24. package/cjs/components/Select/elements/Target/Target.js.map +1 -1
  25. package/cjs/components/Select/elements/Target/elements/Button/Button.css +5 -6
  26. package/cjs/components/Select/elements/Target/elements/Button/Button.js +28 -32
  27. package/cjs/components/Select/elements/Target/elements/Button/Button.js.map +1 -1
  28. package/cjs/components/Select/elements/Target/elements/Button/Button.styles.js +2 -8
  29. package/cjs/components/Select/elements/Target/elements/Button/Button.styles.js.map +1 -1
  30. package/cjs/components/Select/elements/Target/elements/Button/{Button.styles_1bweq1y.css → Button.styles_1r519o1.css} +1 -2
  31. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.css +5 -5
  32. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js +25 -7
  33. package/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js.map +1 -1
  34. package/cjs/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.css +5 -5
  35. package/cjs/components/Select/hooks/useKeyboardNavigation.js +2 -2
  36. package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  37. package/cjs/components/Select/utils/getButtonLabel.js +47 -0
  38. package/cjs/components/Select/utils/getButtonLabel.js.map +1 -0
  39. package/cjs/components/Slider/Slider.css +5 -5
  40. package/cjs/components/Slider/components/Double/Double.css +5 -5
  41. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +5 -5
  42. package/cjs/index.css +10 -11
  43. package/es/components/Chip/Chip.css +5 -5
  44. package/es/components/Chip/Chip.styles.js +1 -1
  45. package/es/components/Chip/Chip.styles.js.map +1 -1
  46. package/es/components/Chip/{Chip.styles_1l2rsrr.css → Chip.styles_1mwwhiw.css} +1 -1
  47. package/es/components/Combobox/Combobox.css +5 -5
  48. package/es/components/Combobox/ui/ComboboxChip/ComboboxChip.css +5 -5
  49. package/es/components/Combobox/ui/ComboboxTarget/ComboboxTarget.css +5 -5
  50. package/es/components/Pagination/Pagination.css +10 -11
  51. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +10 -11
  52. package/es/components/Range/Range.css +5 -5
  53. package/es/components/Select/Select.css +10 -11
  54. package/es/components/Select/Select.js +10 -6
  55. package/es/components/Select/Select.js.map +1 -1
  56. package/es/components/Select/Select.styles.js +2 -0
  57. package/es/components/Select/Select.styles.js.map +1 -1
  58. package/es/components/Select/elements/Inner/Inner.css +10 -11
  59. package/es/components/Select/elements/Inner/Inner.js +7 -2
  60. package/es/components/Select/elements/Inner/Inner.js.map +1 -1
  61. package/es/components/Select/elements/Inner/elements/Item/Item.css +10 -11
  62. package/es/components/Select/elements/Inner/elements/Item/Item.js +17 -6
  63. package/es/components/Select/elements/Inner/elements/Item/Item.js.map +1 -1
  64. package/es/components/Select/elements/Target/Target.css +10 -11
  65. package/es/components/Select/elements/Target/Target.js +9 -3
  66. package/es/components/Select/elements/Target/Target.js.map +1 -1
  67. package/es/components/Select/elements/Target/elements/Button/Button.css +5 -6
  68. package/es/components/Select/elements/Target/elements/Button/Button.js +29 -33
  69. package/es/components/Select/elements/Target/elements/Button/Button.js.map +1 -1
  70. package/es/components/Select/elements/Target/elements/Button/Button.styles.js +3 -8
  71. package/es/components/Select/elements/Target/elements/Button/Button.styles.js.map +1 -1
  72. package/es/components/Select/elements/Target/elements/Button/{Button.styles_1bweq1y.css → Button.styles_1r519o1.css} +1 -2
  73. package/es/components/Select/elements/Target/elements/Textfield/Textfield.css +5 -5
  74. package/es/components/Select/elements/Target/elements/Textfield/Textfield.js +25 -7
  75. package/es/components/Select/elements/Target/elements/Textfield/Textfield.js.map +1 -1
  76. package/es/components/Select/elements/Target/elements/Textfield/elements/Chip/Chip.css +5 -5
  77. package/es/components/Select/hooks/useKeyboardNavigation.js +2 -2
  78. package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
  79. package/es/components/Select/utils/getButtonLabel.js +43 -0
  80. package/es/components/Select/utils/getButtonLabel.js.map +1 -0
  81. package/es/components/Slider/Slider.css +5 -5
  82. package/es/components/Slider/components/Double/Double.css +5 -5
  83. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +5 -5
  84. package/es/index.css +10 -11
  85. package/package.json +2 -2
  86. package/styled-components/cjs/components/Chip/Chip.styles.js +1 -1
  87. package/styled-components/cjs/components/Select/Select.js +20 -16
  88. package/styled-components/cjs/components/Select/elements/Inner/Inner.js +7 -2
  89. package/styled-components/cjs/components/Select/elements/Inner/elements/Item/Item.js +16 -5
  90. package/styled-components/cjs/components/Select/elements/Target/Target.js +9 -3
  91. package/styled-components/cjs/components/Select/elements/Target/elements/Button/Button.js +28 -31
  92. package/styled-components/cjs/components/Select/elements/Target/elements/Button/Button.styles.js +3 -6
  93. package/styled-components/cjs/components/Select/elements/Target/elements/Textfield/Textfield.js +25 -7
  94. package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +2 -2
  95. package/styled-components/cjs/components/Select/utils/getButtonLabel.js +43 -0
  96. package/styled-components/cjs/components/Select/utils/index.js +8 -1
  97. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +2 -2
  98. package/styled-components/es/components/Chip/Chip.styles.js +1 -1
  99. package/styled-components/es/components/Select/Select.js +10 -6
  100. package/styled-components/es/components/Select/elements/Inner/Inner.js +7 -2
  101. package/styled-components/es/components/Select/elements/Inner/elements/Item/Item.js +16 -5
  102. package/styled-components/es/components/Select/elements/Target/Target.js +9 -3
  103. package/styled-components/es/components/Select/elements/Target/elements/Button/Button.js +30 -33
  104. package/styled-components/es/components/Select/elements/Target/elements/Button/Button.styles.js +2 -5
  105. package/styled-components/es/components/Select/elements/Target/elements/Textfield/Textfield.js +25 -7
  106. package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +2 -2
  107. package/styled-components/es/components/Select/utils/getButtonLabel.js +37 -0
  108. package/styled-components/es/components/Select/utils/index.js +2 -1
  109. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +2 -2
  110. package/types/components/Chip/Chip.styles.d.ts.map +1 -1
  111. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +12 -8
  112. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  113. package/types/components/Select/Select.d.ts.map +1 -1
  114. package/types/components/Select/Select.types.d.ts +20 -8
  115. package/types/components/Select/Select.types.d.ts.map +1 -1
  116. package/types/components/Select/elements/Inner/Inner.d.ts.map +1 -1
  117. package/types/components/Select/elements/Inner/elements/Item/Item.d.ts.map +1 -1
  118. package/types/components/Select/elements/Inner/elements/Item/Item.types.d.ts +37 -1
  119. package/types/components/Select/elements/Inner/elements/Item/Item.types.d.ts.map +1 -1
  120. package/types/components/Select/elements/Target/Target.d.ts.map +1 -1
  121. package/types/components/Select/elements/Target/Target.types.d.ts +5 -3
  122. package/types/components/Select/elements/Target/Target.types.d.ts.map +1 -1
  123. package/types/components/Select/elements/Target/elements/Button/Button.d.ts.map +1 -1
  124. package/types/components/Select/elements/Target/elements/Button/Button.styles.d.ts +0 -1
  125. package/types/components/Select/elements/Target/elements/Button/Button.styles.d.ts.map +1 -1
  126. package/types/components/Select/elements/Target/elements/Button/Button.types.d.ts +1 -1
  127. package/types/components/Select/elements/Target/elements/Button/Button.types.d.ts.map +1 -1
  128. package/types/components/Select/elements/Target/elements/Textfield/Textfield.d.ts.map +1 -1
  129. package/types/components/Select/elements/Target/elements/Textfield/Textfield.types.d.ts +1 -1
  130. package/types/components/Select/elements/Target/elements/Textfield/Textfield.types.d.ts.map +1 -1
  131. package/types/components/Select/utils/getButtonLabel.d.ts +3 -0
  132. package/types/components/Select/utils/getButtonLabel.d.ts.map +1 -0
  133. package/types/components/Select/utils/index.d.ts +1 -0
  134. package/types/components/Select/utils/index.d.ts.map +1 -1
  135. package/types/examples/plasma_b2c/components/Select/Select.d.ts +12 -8
  136. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
@@ -26,6 +26,7 @@ export declare const Select: import("react").FunctionComponent<import("../../../
26
26
  };
27
27
  }> & (({
28
28
  items: import("../../../../components/Select/elements/Inner/elements/Item/Item.types").ItemOption[];
29
+ placement?: import("../../../../components/Select/Select.types").SelectPlacement | import("../../../../components/Select/Select.types").SelectPlacementBasic[] | undefined;
29
30
  label?: string | undefined;
30
31
  labelPlacement?: "inner" | "outer" | undefined;
31
32
  placeholder?: string | undefined;
@@ -39,16 +40,16 @@ export declare const Select: import("react").FunctionComponent<import("../../../
39
40
  listHeight?: import("csstype").Property.Height<string | number> | undefined;
40
41
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
41
42
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
42
- renderTargetLabel?: any;
43
+ renderValue?: ((value: string, label: string) => string) | undefined;
43
44
  size?: string | undefined;
44
45
  view?: string | undefined;
45
46
  chipView?: string | undefined;
47
+ multiselect?: boolean | undefined;
46
48
  isOpen?: boolean | undefined;
47
49
  status?: "error" | "success" | "warning" | undefined;
48
50
  } & {
49
51
  value: string;
50
52
  onChange: (value: string) => void;
51
- multiselect?: false | undefined;
52
53
  separator?: undefined;
53
54
  isTargetAmount?: false | undefined;
54
55
  } & {
@@ -57,6 +58,7 @@ export declare const Select: import("react").FunctionComponent<import("../../../
57
58
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
58
59
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "onResize" | "onResizeCapture" | "nonce" | "value"> & import("react").RefAttributes<HTMLButtonElement>) | ({
59
60
  items: import("../../../../components/Select/elements/Inner/elements/Item/Item.types").ItemOption[];
61
+ placement?: import("../../../../components/Select/Select.types").SelectPlacement | import("../../../../components/Select/Select.types").SelectPlacementBasic[] | undefined;
60
62
  label?: string | undefined;
61
63
  labelPlacement?: "inner" | "outer" | undefined;
62
64
  placeholder?: string | undefined;
@@ -70,16 +72,16 @@ export declare const Select: import("react").FunctionComponent<import("../../../
70
72
  listHeight?: import("csstype").Property.Height<string | number> | undefined;
71
73
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
72
74
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
73
- renderTargetLabel?: any;
75
+ renderValue?: ((value: string, label: string) => string) | undefined;
74
76
  size?: string | undefined;
75
77
  view?: string | undefined;
76
78
  chipView?: string | undefined;
79
+ multiselect?: boolean | undefined;
77
80
  isOpen?: boolean | undefined;
78
81
  status?: "error" | "success" | "warning" | undefined;
79
82
  } & {
80
83
  value: string;
81
84
  onChange: (value: string) => void;
82
- multiselect?: false | undefined;
83
85
  separator?: undefined;
84
86
  isTargetAmount?: false | undefined;
85
87
  } & {
@@ -88,6 +90,7 @@ export declare const Select: import("react").FunctionComponent<import("../../../
88
90
  contentLeft?: undefined;
89
91
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "onResize" | "onResizeCapture" | "nonce" | "value"> & import("react").RefAttributes<HTMLButtonElement>) | ({
90
92
  items: import("../../../../components/Select/elements/Inner/elements/Item/Item.types").ItemOption[];
93
+ placement?: import("../../../../components/Select/Select.types").SelectPlacement | import("../../../../components/Select/Select.types").SelectPlacementBasic[] | undefined;
91
94
  label?: string | undefined;
92
95
  labelPlacement?: "inner" | "outer" | undefined;
93
96
  placeholder?: string | undefined;
@@ -101,16 +104,16 @@ export declare const Select: import("react").FunctionComponent<import("../../../
101
104
  listHeight?: import("csstype").Property.Height<string | number> | undefined;
102
105
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
103
106
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
104
- renderTargetLabel?: any;
107
+ renderValue?: ((value: string, label: string) => string) | undefined;
105
108
  size?: string | undefined;
106
109
  view?: string | undefined;
107
110
  chipView?: string | undefined;
111
+ multiselect?: boolean | undefined;
108
112
  isOpen?: boolean | undefined;
109
113
  status?: "error" | "success" | "warning" | undefined;
110
114
  } & {
111
115
  value: string[];
112
116
  onChange: (value: string[]) => void;
113
- multiselect?: true | undefined;
114
117
  separator?: string | undefined;
115
118
  isTargetAmount?: boolean | undefined;
116
119
  } & {
@@ -119,6 +122,7 @@ export declare const Select: import("react").FunctionComponent<import("../../../
119
122
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
120
123
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "onResize" | "onResizeCapture" | "nonce" | "value"> & import("react").RefAttributes<HTMLButtonElement>) | ({
121
124
  items: import("../../../../components/Select/elements/Inner/elements/Item/Item.types").ItemOption[];
125
+ placement?: import("../../../../components/Select/Select.types").SelectPlacement | import("../../../../components/Select/Select.types").SelectPlacementBasic[] | undefined;
122
126
  label?: string | undefined;
123
127
  labelPlacement?: "inner" | "outer" | undefined;
124
128
  placeholder?: string | undefined;
@@ -132,16 +136,16 @@ export declare const Select: import("react").FunctionComponent<import("../../../
132
136
  listHeight?: import("csstype").Property.Height<string | number> | undefined;
133
137
  listWidth?: import("csstype").Property.Width<string | number> | undefined;
134
138
  portal?: string | import("react").RefObject<HTMLElement> | undefined;
135
- renderTargetLabel?: any;
139
+ renderValue?: ((value: string, label: string) => string) | undefined;
136
140
  size?: string | undefined;
137
141
  view?: string | undefined;
138
142
  chipView?: string | undefined;
143
+ multiselect?: boolean | undefined;
139
144
  isOpen?: boolean | undefined;
140
145
  status?: "error" | "success" | "warning" | undefined;
141
146
  } & {
142
147
  value: string[];
143
148
  onChange: (value: string[]) => void;
144
- multiselect?: true | undefined;
145
149
  separator?: string | undefined;
146
150
  isTargetAmount?: boolean | undefined;
147
151
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Select/Select.ts"],"names":[],"mappings":";AACA,OAAO,EAAgB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAKpF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wLAA0B,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Select/Select.ts"],"names":[],"mappings":";AACA,OAAO,EAAgB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAKpF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wLAA0B,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,CAAC"}