@semcore/select 4.46.1 → 4.47.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.
- package/CHANGELOG.md +7 -0
- package/lib/cjs/InputSearch.js +12 -13
- package/lib/cjs/InputSearch.js.map +1 -1
- package/lib/cjs/Select.js +149 -119
- package/lib/cjs/Select.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/style/input-search.shadow.css +5 -1
- package/lib/cjs/style/select.shadow.css +1 -1
- package/lib/cjs/translations/en.json +1 -3
- package/lib/es6/InputSearch.js +12 -13
- package/lib/es6/InputSearch.js.map +1 -1
- package/lib/es6/Select.js +142 -112
- package/lib/es6/Select.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/style/input-search.shadow.css +5 -1
- package/lib/es6/style/select.shadow.css +1 -1
- package/lib/es6/translations/en.json +1 -3
- package/lib/types/index.d.ts +16 -2
- package/package.json +12 -10
|
@@ -2,6 +2,10 @@ SInputSearch[size='m'] {
|
|
|
2
2
|
height: 32px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
SSearchClear {
|
|
6
|
+
padding: 0 var(--intergalactic-spacing-2x, 8px);
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
SSearchClear[hide] {
|
|
6
10
|
visibility: hidden;
|
|
7
11
|
}
|
|
@@ -13,4 +17,4 @@ SOutline {
|
|
|
13
17
|
width: 100%;
|
|
14
18
|
border-radius: var(--intergalactic-control-rounded, 6px) var(--intergalactic-control-rounded, 6px) 0 0;
|
|
15
19
|
box-sizing: content-box;
|
|
16
|
-
}
|
|
20
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,10 +7,11 @@ import DropdownMenu, {
|
|
|
7
7
|
DropdownMenuHandlers,
|
|
8
8
|
DropdownMenuTriggerProps,
|
|
9
9
|
} from '@semcore/dropdown-menu';
|
|
10
|
+
import Dropdown from '@semcore/dropdown';
|
|
10
11
|
import { ButtonTrigger, BaseTriggerProps, ButtonTriggerProps } from '@semcore/base-trigger';
|
|
11
12
|
import Divider from '@semcore/divider';
|
|
12
13
|
import Input, { InputValueProps } from '@semcore/input';
|
|
13
|
-
import { BoxProps } from '@semcore/flex-box';
|
|
14
|
+
import { BoxProps, Flex } from '@semcore/flex-box';
|
|
14
15
|
|
|
15
16
|
/** @deprecated */
|
|
16
17
|
export interface ISelectInputSearch extends SelectInputSearch, UnknownProperties {}
|
|
@@ -84,6 +85,10 @@ export interface ISelectOption extends SelectOption, UnknownProperties {}
|
|
|
84
85
|
/** @deprecated */
|
|
85
86
|
export interface ISelectOptionProps extends SelectOptionProps, UnknownProperties {}
|
|
86
87
|
export type SelectOptionProps = DropdownMenuItemProps & {
|
|
88
|
+
/**
|
|
89
|
+
* Enables selected state
|
|
90
|
+
*/
|
|
91
|
+
selected?: boolean;
|
|
87
92
|
/** Value of the option */
|
|
88
93
|
value: string | number;
|
|
89
94
|
};
|
|
@@ -136,7 +141,7 @@ type IntergalacticSelectComponent<PropsExtending = {}> = (<
|
|
|
136
141
|
|
|
137
142
|
declare const Select: IntergalacticSelectComponent & {
|
|
138
143
|
Trigger: Intergalactic.Component<
|
|
139
|
-
|
|
144
|
+
typeof Dropdown.Trigger,
|
|
140
145
|
DropdownMenuTriggerProps & ButtonTriggerProps,
|
|
141
146
|
{},
|
|
142
147
|
[handlers: SelectHandlers]
|
|
@@ -147,6 +152,7 @@ declare const Select: IntergalacticSelectComponent & {
|
|
|
147
152
|
Popper: typeof DropdownMenu.Popper;
|
|
148
153
|
List: typeof DropdownMenu.List;
|
|
149
154
|
Menu: typeof DropdownMenu.Menu;
|
|
155
|
+
Group: typeof Dropdown.Group;
|
|
150
156
|
Option: Intergalactic.Component<
|
|
151
157
|
'option',
|
|
152
158
|
SelectOptionProps,
|
|
@@ -155,8 +161,16 @@ declare const Select: IntergalacticSelectComponent & {
|
|
|
155
161
|
> & {
|
|
156
162
|
Addon: typeof DropdownMenu.Item.Addon;
|
|
157
163
|
Checkbox: Intergalactic.Component<'div', SelectOptionCheckboxProps>;
|
|
164
|
+
Content: typeof Flex;
|
|
165
|
+
Hint: typeof Flex;
|
|
158
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Use Select.Group
|
|
169
|
+
*/
|
|
159
170
|
OptionTitle: typeof DropdownMenu.ItemTitle;
|
|
171
|
+
/**
|
|
172
|
+
* @deprecated Use Select.Option.Hint or Select.Group with subTitle property
|
|
173
|
+
*/
|
|
160
174
|
OptionHint: typeof DropdownMenu.ItemHint;
|
|
161
175
|
Divider: typeof Divider;
|
|
162
176
|
InputSearch: typeof InputSearch;
|
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/select",
|
|
3
3
|
"description": "Semrush Select Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.47.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@semcore/base-trigger": "4.
|
|
12
|
-
"@semcore/
|
|
13
|
-
"@semcore/
|
|
14
|
-
"@semcore/
|
|
15
|
-
"@semcore/
|
|
16
|
-
"@semcore/
|
|
17
|
-
"@semcore/
|
|
18
|
-
"@semcore/
|
|
19
|
-
"@semcore/
|
|
11
|
+
"@semcore/base-trigger": "4.45.0",
|
|
12
|
+
"@semcore/button": "5.37.2",
|
|
13
|
+
"@semcore/checkbox": "7.37.0",
|
|
14
|
+
"@semcore/divider": "4.33.0",
|
|
15
|
+
"@semcore/dropdown-menu": "4.40.0",
|
|
16
|
+
"@semcore/dropdown": "4.38.0",
|
|
17
|
+
"@semcore/popper": "5.41.0",
|
|
18
|
+
"@semcore/flex-box": "5.34.0",
|
|
19
|
+
"@semcore/icon": "4.47.0",
|
|
20
|
+
"@semcore/input": "4.35.0",
|
|
21
|
+
"@semcore/utils": "4.38.0",
|
|
20
22
|
"classnames": "2.2.6"
|
|
21
23
|
},
|
|
22
24
|
"peerDependencies": {
|