@salutejs/plasma-web 1.367.0-canary.1347.10314776748.0 → 1.368.0-canary.1349.10334109595.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/plasma-web.api.md +227 -58
- package/components/Select/Select.d.ts +246 -6
- package/components/Select/Select.js +8 -14
- package/components/Select/index.d.ts +2 -1
- package/css/cjs/components/Select/Select.config.js +40 -0
- package/css/cjs/components/Select/Select.config.js.map +1 -0
- package/css/cjs/components/{SelectNew/Select.config_o7l3zz.css → Select/Select.config_63kke9.css} +17 -17
- package/css/cjs/components/{SelectNew/index.css → Select/Select.css} +17 -17
- package/css/cjs/components/Select/Select.js +20 -0
- package/css/cjs/components/Select/Select.js.map +1 -0
- package/css/cjs/index.css +17 -17
- package/css/cjs/index.js +25 -21
- package/css/cjs/index.js.map +1 -1
- package/css/es/components/Select/Select.config.js +36 -0
- package/css/es/components/Select/Select.config.js.map +1 -0
- package/css/es/components/{SelectNew/Select.config_o7l3zz.css → Select/Select.config_63kke9.css} +17 -17
- package/css/es/components/{SelectNew/index.css → Select/Select.css} +17 -17
- package/css/es/components/Select/Select.js +16 -0
- package/css/es/components/Select/Select.js.map +1 -0
- package/css/es/index.css +17 -17
- package/css/es/index.js +2 -2
- package/css/index.d.ts +2 -2
- package/es/components/Select/Select.js +10 -15
- package/es/index.js +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -11
- package/package.json +4 -3
- package/temp/plasma-web.api.md +227 -58
- package/components/Select/Select.perftest.js +0 -68
- package/components/SelectNew/Select.d.ts +0 -79
- package/components/SelectNew/Select.js +0 -10
- package/components/SelectNew/index.d.ts +0 -81
- package/components/SelectNew/index.js +0 -11
- package/css/cjs/components/SelectNew/Select.config.js +0 -40
- package/css/cjs/components/SelectNew/Select.config.js.map +0 -1
- package/css/cjs/components/SelectNew/Select.js +0 -12
- package/css/cjs/components/SelectNew/Select.js.map +0 -1
- package/css/cjs/components/SelectNew/index.js +0 -13
- package/css/cjs/components/SelectNew/index.js.map +0 -1
- package/css/es/components/SelectNew/Select.config.js +0 -36
- package/css/es/components/SelectNew/Select.config.js.map +0 -1
- package/css/es/components/SelectNew/Select.js +0 -8
- package/css/es/components/SelectNew/Select.js.map +0 -1
- package/css/es/components/SelectNew/index.js +0 -9
- package/css/es/components/SelectNew/index.js.map +0 -1
- package/es/components/Select/Select.perftest.js +0 -61
- package/es/components/SelectNew/Select.js +0 -5
- package/es/components/SelectNew/index.js +0 -6
- /package/components/{SelectNew → Select}/Select.config.d.ts +0 -0
- /package/components/{SelectNew → Select}/Select.config.js +0 -0
- /package/es/components/{SelectNew → Select}/Select.config.js +0 -0
package/api/plasma-web.api.md
CHANGED
@@ -39,7 +39,6 @@ import { BaseboxProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
39
39
|
import { BaseCallbackChangeInstance } from '@salutejs/plasma-new-hope/types/components/Range/Range.types';
|
40
40
|
import { BaseCallbackKeyboardInstance } from '@salutejs/plasma-new-hope/types/components/Range/Range.types';
|
41
41
|
import { BaseProps } from '@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types';
|
42
|
-
import { BasicProps } from '@salutejs/plasma-new-hope/types/components/Select/Select.types';
|
43
42
|
import { BlurProps } from '@salutejs/plasma-core';
|
44
43
|
import { blurs } from '@salutejs/plasma-core';
|
45
44
|
import { BoldProps } from '@salutejs/plasma-new-hope/types/components/Typography/Typography.types';
|
@@ -157,6 +156,7 @@ import { ListItem } from '@salutejs/plasma-hope';
|
|
157
156
|
import { MaxLinesProps } from '@salutejs/plasma-core';
|
158
157
|
import { mediaQuery } from '@salutejs/plasma-hope';
|
159
158
|
import { MediaQueryFunction } from '@salutejs/plasma-hope';
|
159
|
+
import { MergedDropdownNode } from '@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types';
|
160
160
|
import { Modal } from '@salutejs/plasma-hope';
|
161
161
|
import { modalClasses as modalBaseClasses } from '@salutejs/plasma-new-hope/styled-components';
|
162
162
|
import { ModalProps as ModalBaseProps } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -199,6 +199,7 @@ import { PreviewGalleryProps } from '@salutejs/plasma-hope';
|
|
199
199
|
import { priceClasses } from '@salutejs/plasma-new-hope/styled-components';
|
200
200
|
import { PriceProps } from '@salutejs/plasma-new-hope/types/components/Price/Price.types';
|
201
201
|
import { ProgressProps } from '@salutejs/plasma-new-hope/styled-components';
|
202
|
+
import { Property } from 'csstype';
|
202
203
|
import { Props } from '@salutejs/plasma-new-hope/types/components/EmptyState/EmptyState.types';
|
203
204
|
import { PropsType } from '@salutejs/plasma-new-hope/types/engines/types';
|
204
205
|
import { RadioGroup } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -228,7 +229,8 @@ import { SegmentItemProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
228
229
|
import { SegmentProvider } from '@salutejs/plasma-new-hope/styled-components';
|
229
230
|
import { SegmentProviderProps } from '@salutejs/plasma-new-hope/styled-components';
|
230
231
|
import { SelectGroup } from '@salutejs/plasma-hope';
|
231
|
-
import { SelectProps } from '@salutejs/plasma-hope';
|
232
|
+
import { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
|
233
|
+
import { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
|
232
234
|
import { selectText } from '@salutejs/plasma-hope';
|
233
235
|
import { setRef } from '@salutejs/plasma-core';
|
234
236
|
import { shadows } from '@salutejs/plasma-core';
|
@@ -2042,13 +2044,8 @@ export { SegmentProvider }
|
|
2042
2044
|
|
2043
2045
|
export { SegmentProviderProps }
|
2044
2046
|
|
2045
|
-
// @public
|
2046
|
-
export const Select: React_2.ForwardRefExoticComponent<
|
2047
|
-
|
2048
|
-
export { SelectGroup }
|
2049
|
-
|
2050
|
-
// @public
|
2051
|
-
export const SelectNew: FunctionComponent<PropsType< {
|
2047
|
+
// @public (undocumented)
|
2048
|
+
export const Select: React_2.ForwardRefExoticComponent<(Omit<PropsType< {
|
2052
2049
|
size: {
|
2053
2050
|
xs: PolymorphicClassName;
|
2054
2051
|
s: PolymorphicClassName;
|
@@ -2072,62 +2069,234 @@ default: PolymorphicClassName;
|
|
2072
2069
|
secondary: PolymorphicClassName;
|
2073
2070
|
accent: PolymorphicClassName;
|
2074
2071
|
};
|
2075
|
-
}> &
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2072
|
+
}> & {
|
2073
|
+
target?: "textfield-like" | undefined;
|
2074
|
+
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
2075
|
+
contentLeft?: React_2.ReactNode;
|
2076
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
2077
|
+
placeholder?: string | undefined;
|
2078
|
+
helperText?: string | undefined;
|
2081
2079
|
} & {
|
2082
|
-
|
2083
|
-
|
2084
|
-
contentLeft?: ReactNode;
|
2085
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
2086
|
-
placeholder?: string | undefined;
|
2087
|
-
helperText?: string | undefined;
|
2088
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & RefAttributes<HTMLButtonElement>) | (BasicProps & {
|
2089
|
-
multiselect?: false | undefined;
|
2090
|
-
value?: string | undefined;
|
2091
|
-
onChange?: ((value: string) => void) | undefined;
|
2092
|
-
isTargetAmount?: false | undefined;
|
2093
|
-
renderTarget?: ((value: string) => ReactNode) | undefined;
|
2080
|
+
multiselect?: false | undefined;
|
2081
|
+
separator?: undefined;
|
2094
2082
|
} & {
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2083
|
+
value: any;
|
2084
|
+
onChange?: ((value: any) => void) | undefined;
|
2085
|
+
listOverflow?: Property.Overflow | undefined;
|
2086
|
+
listHeight?: Property.Height<string | number> | undefined;
|
2087
|
+
status?: "warning" | "success" | "error" | undefined;
|
2088
|
+
placeholder?: string | undefined;
|
2089
|
+
helperText?: string | undefined;
|
2090
|
+
disabled?: boolean | undefined;
|
2091
|
+
items?: MergedDropdownNode[] | undefined;
|
2092
|
+
onItemSelect?: ((e: MergedDropdownNode) => void) | undefined;
|
2093
|
+
hasItems?: boolean | undefined;
|
2094
|
+
children?: undefined;
|
2095
|
+
isOpen?: boolean | undefined;
|
2096
|
+
isTargetAmount?: boolean | undefined;
|
2097
|
+
renderTarget?: ((value: any) => React_2.ReactNode) | undefined;
|
2098
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
2099
|
+
label?: string | undefined;
|
2100
|
+
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
2101
|
+
variant?: "normal" | "tight" | undefined;
|
2102
|
+
listWidth?: Property.Width<string | number> | undefined;
|
2103
|
+
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
2104
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
2105
|
+
renderItem?: ((value: string, label: string) => React_2.ReactNode) | undefined;
|
2106
|
+
size?: string | undefined;
|
2107
|
+
view?: string | undefined;
|
2108
|
+
chipView?: string | undefined;
|
2109
|
+
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>, "ref"> | Omit<PropsType< {
|
2110
|
+
size: {
|
2111
|
+
xs: PolymorphicClassName;
|
2112
|
+
s: PolymorphicClassName;
|
2113
|
+
m: PolymorphicClassName;
|
2114
|
+
l: PolymorphicClassName;
|
2115
|
+
};
|
2116
|
+
view: {
|
2117
|
+
default: PolymorphicClassName;
|
2118
|
+
positive: PolymorphicClassName;
|
2119
|
+
warning: PolymorphicClassName;
|
2120
|
+
negative: PolymorphicClassName;
|
2121
|
+
accent: PolymorphicClassName;
|
2122
|
+
secondary: PolymorphicClassName;
|
2123
|
+
clear: PolymorphicClassName;
|
2124
|
+
dark: PolymorphicClassName;
|
2125
|
+
black: PolymorphicClassName;
|
2126
|
+
white: PolymorphicClassName;
|
2127
|
+
};
|
2128
|
+
chipView: {
|
2129
|
+
default: PolymorphicClassName;
|
2130
|
+
secondary: PolymorphicClassName;
|
2131
|
+
accent: PolymorphicClassName;
|
2132
|
+
};
|
2133
|
+
}> & {
|
2134
|
+
target?: "textfield-like" | undefined;
|
2135
|
+
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
2136
|
+
contentLeft?: React_2.ReactNode;
|
2137
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
2138
|
+
placeholder?: string | undefined;
|
2139
|
+
helperText?: string | undefined;
|
2107
2140
|
} & {
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2141
|
+
multiselect?: true | undefined;
|
2142
|
+
separator?: string | undefined;
|
2143
|
+
} & {
|
2144
|
+
value: any;
|
2145
|
+
onChange?: ((value: any) => void) | undefined;
|
2146
|
+
listOverflow?: Property.Overflow | undefined;
|
2147
|
+
listHeight?: Property.Height<string | number> | undefined;
|
2148
|
+
status?: "warning" | "success" | "error" | undefined;
|
2149
|
+
placeholder?: string | undefined;
|
2150
|
+
helperText?: string | undefined;
|
2151
|
+
disabled?: boolean | undefined;
|
2152
|
+
items?: MergedDropdownNode[] | undefined;
|
2153
|
+
onItemSelect?: ((e: MergedDropdownNode) => void) | undefined;
|
2154
|
+
hasItems?: boolean | undefined;
|
2155
|
+
children?: undefined;
|
2156
|
+
isOpen?: boolean | undefined;
|
2157
|
+
isTargetAmount?: boolean | undefined;
|
2158
|
+
renderTarget?: ((value: any) => React_2.ReactNode) | undefined;
|
2159
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
2160
|
+
label?: string | undefined;
|
2161
|
+
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
2162
|
+
variant?: "normal" | "tight" | undefined;
|
2163
|
+
listWidth?: Property.Width<string | number> | undefined;
|
2164
|
+
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
2165
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
2166
|
+
renderItem?: ((value: string, label: string) => React_2.ReactNode) | undefined;
|
2167
|
+
size?: string | undefined;
|
2168
|
+
view?: string | undefined;
|
2169
|
+
chipView?: string | undefined;
|
2170
|
+
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>, "ref"> | Omit<PropsType< {
|
2171
|
+
size: {
|
2172
|
+
xs: PolymorphicClassName;
|
2173
|
+
s: PolymorphicClassName;
|
2174
|
+
m: PolymorphicClassName;
|
2175
|
+
l: PolymorphicClassName;
|
2176
|
+
};
|
2177
|
+
view: {
|
2178
|
+
default: PolymorphicClassName;
|
2179
|
+
positive: PolymorphicClassName;
|
2180
|
+
warning: PolymorphicClassName;
|
2181
|
+
negative: PolymorphicClassName;
|
2182
|
+
accent: PolymorphicClassName;
|
2183
|
+
secondary: PolymorphicClassName;
|
2184
|
+
clear: PolymorphicClassName;
|
2185
|
+
dark: PolymorphicClassName;
|
2186
|
+
black: PolymorphicClassName;
|
2187
|
+
white: PolymorphicClassName;
|
2188
|
+
};
|
2189
|
+
chipView: {
|
2190
|
+
default: PolymorphicClassName;
|
2191
|
+
secondary: PolymorphicClassName;
|
2192
|
+
accent: PolymorphicClassName;
|
2193
|
+
};
|
2194
|
+
}> & {
|
2195
|
+
target?: "button-like" | undefined;
|
2196
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "black" | "white" | "dark" | "clear" | undefined;
|
2197
|
+
contentLeft?: undefined;
|
2198
|
+
labelPlacement?: undefined;
|
2199
|
+
placeholder?: undefined;
|
2200
|
+
helperText?: undefined;
|
2201
|
+
} & {
|
2202
|
+
multiselect?: false | undefined;
|
2203
|
+
separator?: undefined;
|
2120
2204
|
} & {
|
2121
|
-
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2205
|
+
value: any;
|
2206
|
+
onChange?: ((value: any) => void) | undefined;
|
2207
|
+
listOverflow?: Property.Overflow | undefined;
|
2208
|
+
listHeight?: Property.Height<string | number> | undefined;
|
2209
|
+
status?: "warning" | "success" | "error" | undefined;
|
2210
|
+
placeholder?: string | undefined;
|
2211
|
+
helperText?: string | undefined;
|
2212
|
+
disabled?: boolean | undefined;
|
2213
|
+
items?: MergedDropdownNode[] | undefined;
|
2214
|
+
onItemSelect?: ((e: MergedDropdownNode) => void) | undefined;
|
2215
|
+
hasItems?: boolean | undefined;
|
2216
|
+
children?: undefined;
|
2217
|
+
isOpen?: boolean | undefined;
|
2218
|
+
isTargetAmount?: boolean | undefined;
|
2219
|
+
renderTarget?: ((value: any) => React_2.ReactNode) | undefined;
|
2220
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
2221
|
+
label?: string | undefined;
|
2222
|
+
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
2223
|
+
variant?: "normal" | "tight" | undefined;
|
2224
|
+
listWidth?: Property.Width<string | number> | undefined;
|
2225
|
+
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
2226
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
2227
|
+
renderItem?: ((value: string, label: string) => React_2.ReactNode) | undefined;
|
2228
|
+
size?: string | undefined;
|
2229
|
+
view?: string | undefined;
|
2230
|
+
chipView?: string | undefined;
|
2231
|
+
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>, "ref"> | Omit<PropsType< {
|
2232
|
+
size: {
|
2233
|
+
xs: PolymorphicClassName;
|
2234
|
+
s: PolymorphicClassName;
|
2235
|
+
m: PolymorphicClassName;
|
2236
|
+
l: PolymorphicClassName;
|
2237
|
+
};
|
2238
|
+
view: {
|
2239
|
+
default: PolymorphicClassName;
|
2240
|
+
positive: PolymorphicClassName;
|
2241
|
+
warning: PolymorphicClassName;
|
2242
|
+
negative: PolymorphicClassName;
|
2243
|
+
accent: PolymorphicClassName;
|
2244
|
+
secondary: PolymorphicClassName;
|
2245
|
+
clear: PolymorphicClassName;
|
2246
|
+
dark: PolymorphicClassName;
|
2247
|
+
black: PolymorphicClassName;
|
2248
|
+
white: PolymorphicClassName;
|
2249
|
+
};
|
2250
|
+
chipView: {
|
2251
|
+
default: PolymorphicClassName;
|
2252
|
+
secondary: PolymorphicClassName;
|
2253
|
+
accent: PolymorphicClassName;
|
2254
|
+
};
|
2255
|
+
}> & {
|
2256
|
+
target?: "button-like" | undefined;
|
2257
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "black" | "white" | "dark" | "clear" | undefined;
|
2258
|
+
contentLeft?: undefined;
|
2259
|
+
labelPlacement?: undefined;
|
2260
|
+
placeholder?: undefined;
|
2261
|
+
helperText?: undefined;
|
2262
|
+
} & {
|
2263
|
+
multiselect?: true | undefined;
|
2264
|
+
separator?: string | undefined;
|
2265
|
+
} & {
|
2266
|
+
value: any;
|
2267
|
+
onChange?: ((value: any) => void) | undefined;
|
2268
|
+
listOverflow?: Property.Overflow | undefined;
|
2269
|
+
listHeight?: Property.Height<string | number> | undefined;
|
2270
|
+
status?: "warning" | "success" | "error" | undefined;
|
2271
|
+
placeholder?: string | undefined;
|
2272
|
+
helperText?: string | undefined;
|
2273
|
+
disabled?: boolean | undefined;
|
2274
|
+
items?: MergedDropdownNode[] | undefined;
|
2275
|
+
onItemSelect?: ((e: MergedDropdownNode) => void) | undefined;
|
2276
|
+
hasItems?: boolean | undefined;
|
2277
|
+
children?: undefined;
|
2278
|
+
isOpen?: boolean | undefined;
|
2279
|
+
isTargetAmount?: boolean | undefined;
|
2280
|
+
renderTarget?: ((value: any) => React_2.ReactNode) | undefined;
|
2281
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
2282
|
+
label?: string | undefined;
|
2283
|
+
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
2284
|
+
variant?: "normal" | "tight" | undefined;
|
2285
|
+
listWidth?: Property.Width<string | number> | undefined;
|
2286
|
+
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
2287
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
2288
|
+
renderItem?: ((value: string, label: string) => React_2.ReactNode) | undefined;
|
2289
|
+
size?: string | undefined;
|
2290
|
+
view?: string | undefined;
|
2291
|
+
chipView?: string | undefined;
|
2292
|
+
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>, "ref">) & React_2.RefAttributes<HTMLButtonElement>>;
|
2293
|
+
|
2294
|
+
export { SelectGroup }
|
2128
2295
|
|
2129
2296
|
export { SelectProps }
|
2130
2297
|
|
2298
|
+
export { SelectPropsHope }
|
2299
|
+
|
2131
2300
|
export { selectText }
|
2132
2301
|
|
2133
2302
|
export { setRef }
|
@@ -1,7 +1,247 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
declare const Select: React.ForwardRefExoticComponent<(Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
+
size: {
|
4
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
|
+
};
|
9
|
+
view: {
|
10
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
15
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
16
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
+
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
18
|
+
black: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
|
+
white: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
20
|
+
};
|
21
|
+
chipView: {
|
22
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
24
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
25
|
+
};
|
26
|
+
}> & {
|
27
|
+
target?: "textfield-like" | undefined;
|
28
|
+
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
29
|
+
contentLeft?: React.ReactNode;
|
30
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
31
|
+
placeholder?: string | undefined;
|
32
|
+
helperText?: string | undefined;
|
33
|
+
} & {
|
34
|
+
multiselect?: false | undefined;
|
35
|
+
separator?: undefined;
|
36
|
+
} & {
|
37
|
+
value: any;
|
38
|
+
onChange?: ((value: any) => void) | undefined;
|
39
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
40
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
41
|
+
status?: "warning" | "success" | "error" | undefined;
|
42
|
+
placeholder?: string | undefined;
|
43
|
+
helperText?: string | undefined;
|
44
|
+
disabled?: boolean | undefined;
|
45
|
+
items?: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[] | undefined;
|
46
|
+
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => void) | undefined;
|
47
|
+
hasItems?: boolean | undefined;
|
48
|
+
children?: undefined;
|
49
|
+
isOpen?: boolean | undefined;
|
50
|
+
isTargetAmount?: boolean | undefined;
|
51
|
+
renderTarget?: ((value: any) => React.ReactNode) | undefined;
|
52
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
53
|
+
label?: string | undefined;
|
54
|
+
onScrollBottom?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
55
|
+
variant?: "normal" | "tight" | undefined;
|
56
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
57
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
58
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
59
|
+
renderItem?: ((value: string, label: string) => React.ReactNode) | undefined;
|
60
|
+
size?: string | undefined;
|
61
|
+
view?: string | undefined;
|
62
|
+
chipView?: string | undefined;
|
63
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
64
|
+
size: {
|
65
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
66
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
67
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
68
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
69
|
+
};
|
70
|
+
view: {
|
71
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
72
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
73
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
74
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
75
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
76
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
77
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
78
|
+
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
79
|
+
black: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
80
|
+
white: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
81
|
+
};
|
82
|
+
chipView: {
|
83
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
84
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
85
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
86
|
+
};
|
87
|
+
}> & {
|
88
|
+
target?: "textfield-like" | undefined;
|
89
|
+
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
90
|
+
contentLeft?: React.ReactNode;
|
91
|
+
labelPlacement?: "outer" | "inner" | undefined;
|
92
|
+
placeholder?: string | undefined;
|
93
|
+
helperText?: string | undefined;
|
94
|
+
} & {
|
95
|
+
multiselect?: true | undefined;
|
96
|
+
separator?: string | undefined;
|
97
|
+
} & {
|
98
|
+
value: any;
|
99
|
+
onChange?: ((value: any) => void) | undefined;
|
100
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
101
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
102
|
+
status?: "warning" | "success" | "error" | undefined;
|
103
|
+
placeholder?: string | undefined;
|
104
|
+
helperText?: string | undefined;
|
105
|
+
disabled?: boolean | undefined;
|
106
|
+
items?: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[] | undefined;
|
107
|
+
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => void) | undefined;
|
108
|
+
hasItems?: boolean | undefined;
|
109
|
+
children?: undefined;
|
110
|
+
isOpen?: boolean | undefined;
|
111
|
+
isTargetAmount?: boolean | undefined;
|
112
|
+
renderTarget?: ((value: any) => React.ReactNode) | undefined;
|
113
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
114
|
+
label?: string | undefined;
|
115
|
+
onScrollBottom?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
116
|
+
variant?: "normal" | "tight" | undefined;
|
117
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
118
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
119
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
120
|
+
renderItem?: ((value: string, label: string) => React.ReactNode) | undefined;
|
121
|
+
size?: string | undefined;
|
122
|
+
view?: string | undefined;
|
123
|
+
chipView?: string | undefined;
|
124
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
125
|
+
size: {
|
126
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
127
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
128
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
129
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
130
|
+
};
|
131
|
+
view: {
|
132
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
133
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
134
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
135
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
136
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
137
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
138
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
139
|
+
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
140
|
+
black: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
141
|
+
white: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
142
|
+
};
|
143
|
+
chipView: {
|
144
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
145
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
146
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
147
|
+
};
|
148
|
+
}> & {
|
149
|
+
target?: "button-like" | undefined;
|
150
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "black" | "white" | "dark" | "clear" | undefined;
|
151
|
+
contentLeft?: undefined;
|
152
|
+
labelPlacement?: undefined;
|
153
|
+
placeholder?: undefined;
|
154
|
+
helperText?: undefined;
|
155
|
+
} & {
|
156
|
+
multiselect?: false | undefined;
|
157
|
+
separator?: undefined;
|
158
|
+
} & {
|
159
|
+
value: any;
|
160
|
+
onChange?: ((value: any) => void) | undefined;
|
161
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
162
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
163
|
+
status?: "warning" | "success" | "error" | undefined;
|
164
|
+
placeholder?: string | undefined;
|
165
|
+
helperText?: string | undefined;
|
166
|
+
disabled?: boolean | undefined;
|
167
|
+
items?: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[] | undefined;
|
168
|
+
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => void) | undefined;
|
169
|
+
hasItems?: boolean | undefined;
|
170
|
+
children?: undefined;
|
171
|
+
isOpen?: boolean | undefined;
|
172
|
+
isTargetAmount?: boolean | undefined;
|
173
|
+
renderTarget?: ((value: any) => React.ReactNode) | undefined;
|
174
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
175
|
+
label?: string | undefined;
|
176
|
+
onScrollBottom?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
177
|
+
variant?: "normal" | "tight" | undefined;
|
178
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
179
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
180
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
181
|
+
renderItem?: ((value: string, label: string) => React.ReactNode) | undefined;
|
182
|
+
size?: string | undefined;
|
183
|
+
view?: string | undefined;
|
184
|
+
chipView?: string | undefined;
|
185
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
186
|
+
size: {
|
187
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
188
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
189
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
190
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
191
|
+
};
|
192
|
+
view: {
|
193
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
194
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
195
|
+
warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
196
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
197
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
198
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
199
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
200
|
+
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
201
|
+
black: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
202
|
+
white: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
203
|
+
};
|
204
|
+
chipView: {
|
205
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
206
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
207
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
208
|
+
};
|
209
|
+
}> & {
|
210
|
+
target?: "button-like" | undefined;
|
211
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "black" | "white" | "dark" | "clear" | undefined;
|
212
|
+
contentLeft?: undefined;
|
213
|
+
labelPlacement?: undefined;
|
214
|
+
placeholder?: undefined;
|
215
|
+
helperText?: undefined;
|
216
|
+
} & {
|
217
|
+
multiselect?: true | undefined;
|
218
|
+
separator?: string | undefined;
|
219
|
+
} & {
|
220
|
+
value: any;
|
221
|
+
onChange?: ((value: any) => void) | undefined;
|
222
|
+
listOverflow?: import("csstype").Property.Overflow | undefined;
|
223
|
+
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
224
|
+
status?: "warning" | "success" | "error" | undefined;
|
225
|
+
placeholder?: string | undefined;
|
226
|
+
helperText?: string | undefined;
|
227
|
+
disabled?: boolean | undefined;
|
228
|
+
items?: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode[] | undefined;
|
229
|
+
onItemSelect?: ((e: import("@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types").MergedDropdownNode) => void) | undefined;
|
230
|
+
hasItems?: boolean | undefined;
|
231
|
+
children?: undefined;
|
232
|
+
isOpen?: boolean | undefined;
|
233
|
+
isTargetAmount?: boolean | undefined;
|
234
|
+
renderTarget?: ((value: any) => React.ReactNode) | undefined;
|
235
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
236
|
+
label?: string | undefined;
|
237
|
+
onScrollBottom?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
238
|
+
variant?: "normal" | "tight" | undefined;
|
239
|
+
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
240
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
241
|
+
renderValue?: ((value: string, label: string) => string) | undefined;
|
242
|
+
renderItem?: ((value: string, label: string) => React.ReactNode) | undefined;
|
243
|
+
size?: string | undefined;
|
244
|
+
view?: string | undefined;
|
245
|
+
chipView?: string | undefined;
|
246
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
247
|
+
export { Select };
|
@@ -5,23 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.Select = void 0;
|
8
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
9
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
-
var
|
10
|
+
var _Select = /*#__PURE__*/require("./Select.config");
|
10
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
11
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
12
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
13
|
-
|
14
|
-
|
15
|
-
var SelectBase = /*#__PURE__*/(0, _plasmaHope.Select)({
|
16
|
-
design: 'web'
|
17
|
-
});
|
18
|
-
|
19
|
-
/**
|
20
|
-
* Выпадающий список для использования в формах.
|
21
|
-
* Поддерживает выбор одного или нескольких значений.
|
22
|
-
*/
|
14
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.selectConfig, _Select.config);
|
15
|
+
var SelectNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
23
16
|
var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
24
|
-
return /*#__PURE__*/_react["default"].createElement(
|
25
|
-
ref: ref
|
26
|
-
|
17
|
+
return /*#__PURE__*/_react["default"].createElement(SelectNewHope, _extends({
|
18
|
+
ref: ref,
|
19
|
+
target: "button-like"
|
20
|
+
}, props));
|
27
21
|
});
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export { Select } from './Select';
|
2
|
-
export type { SelectProps } from '@salutejs/plasma-hope';
|
2
|
+
export type { SelectProps as SelectPropsHope } from '@salutejs/plasma-hope';
|
3
|
+
export type { MergedSelectProps as SelectProps } from '@salutejs/plasma-new-hope/styled-components';
|
3
4
|
export { SelectGroup } from '@salutejs/plasma-hope';
|