@semcore/select 16.1.12 → 17.0.0-prerelease.17
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 +10 -0
- package/README.md +4 -4
- package/lib/cjs/InputSearch.js +109 -114
- package/lib/cjs/InputSearch.js.map +1 -1
- package/lib/cjs/Select.js +361 -362
- package/lib/cjs/Select.js.map +1 -1
- package/lib/cjs/context.js +2 -2
- package/lib/cjs/context.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +7 -7
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +16 -16
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/InputSearch.js +101 -106
- package/lib/es6/InputSearch.js.map +1 -1
- package/lib/es6/Select.js +339 -341
- package/lib/es6/Select.js.map +1 -1
- package/lib/es6/context.js +1 -1
- package/lib/es6/context.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +15 -15
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/InputSearch.mjs +104 -98
- package/lib/esm/Select.mjs +325 -275
- package/lib/esm/context.mjs +1 -1
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/types/index.d.ts +4 -25
- package/package.json +15 -16
package/lib/esm/context.mjs
CHANGED
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { BoxProps, Flex } from '@semcore/base-components';
|
|
1
2
|
import type { ButtonTrigger, BaseTriggerProps, ButtonTriggerProps } from '@semcore/base-trigger';
|
|
2
|
-
import type { PropGetterFn,
|
|
3
|
+
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
3
4
|
import type Divider from '@semcore/divider';
|
|
4
5
|
import type Dropdown from '@semcore/dropdown';
|
|
5
6
|
import type {
|
|
@@ -10,13 +11,11 @@ import type {
|
|
|
10
11
|
DropdownMenuTriggerProps,
|
|
11
12
|
} from '@semcore/dropdown-menu';
|
|
12
13
|
import type DropdownMenu from '@semcore/dropdown-menu';
|
|
13
|
-
import type { BoxProps, Flex } from '@semcore/flex-box';
|
|
14
14
|
import type { InputValueProps } from '@semcore/input';
|
|
15
15
|
import type Input from '@semcore/input';
|
|
16
|
+
import type { Text } from '@semcore/typography';
|
|
16
17
|
import type React from 'react';
|
|
17
18
|
|
|
18
|
-
/** @deprecated */
|
|
19
|
-
export interface ISelectInputSearch extends SelectInputSearch, UnknownProperties {}
|
|
20
19
|
export type SelectInputSearch = InputValueProps & {};
|
|
21
20
|
|
|
22
21
|
export type OptionValue = string | number;
|
|
@@ -28,8 +27,6 @@ export type SelectOption = {
|
|
|
28
27
|
label?: React.ReactNode;
|
|
29
28
|
};
|
|
30
29
|
|
|
31
|
-
/** @deprecated */
|
|
32
|
-
export interface ISelectProps<T extends SelectValue = SelectValue> extends SelectProps<T> {}
|
|
33
30
|
export type SelectProps<T extends SelectValue = SelectValue> = DropdownMenuProps &
|
|
34
31
|
BaseTriggerProps & {
|
|
35
32
|
/**
|
|
@@ -78,11 +75,6 @@ export type SelectProps<T extends SelectValue = SelectValue> = DropdownMenuProps
|
|
|
78
75
|
scrollToSelected?: boolean;
|
|
79
76
|
};
|
|
80
77
|
|
|
81
|
-
/** @deprecated */
|
|
82
|
-
export interface ISelectOption extends SelectOption, UnknownProperties {}
|
|
83
|
-
|
|
84
|
-
/** @deprecated */
|
|
85
|
-
export interface ISelectOptionProps extends SelectOptionProps, UnknownProperties {}
|
|
86
78
|
export type SelectOptionProps = DropdownMenuItemProps & {
|
|
87
79
|
/**
|
|
88
80
|
* Enables selected state
|
|
@@ -92,8 +84,6 @@ export type SelectOptionProps = DropdownMenuItemProps & {
|
|
|
92
84
|
value: string | number;
|
|
93
85
|
};
|
|
94
86
|
|
|
95
|
-
/** @deprecated */
|
|
96
|
-
export interface ISelectOptionCheckboxProps extends SelectOptionCheckboxProps, UnknownProperties {}
|
|
97
87
|
export type SelectOptionCheckboxProps = BoxProps & {
|
|
98
88
|
/** Checkbox theme */
|
|
99
89
|
theme?: string;
|
|
@@ -109,16 +99,12 @@ declare const InputSearch: Intergalactic.Component<'div', SelectInputSearch> & {
|
|
|
109
99
|
Clear: typeof Input.Addon;
|
|
110
100
|
};
|
|
111
101
|
|
|
112
|
-
/** @deprecated */
|
|
113
|
-
export interface ISelectContext extends SelectContext, UnknownProperties {}
|
|
114
102
|
export type SelectContext = DropdownMenuContext & {
|
|
115
103
|
getOptionProps: PropGetterFn;
|
|
116
104
|
getOptionCheckboxProps: PropGetterFn;
|
|
117
105
|
getDividerProps: PropGetterFn;
|
|
118
106
|
};
|
|
119
107
|
|
|
120
|
-
/** @deprecated */
|
|
121
|
-
export interface ISelectHandlers extends SelectHandlers, UnknownProperties {}
|
|
122
108
|
export type SelectHandlers = DropdownMenuHandlers & {
|
|
123
109
|
value: (index: SelectValue) => void;
|
|
124
110
|
};
|
|
@@ -161,16 +147,9 @@ declare const Select: IntergalacticSelectComponent & {
|
|
|
161
147
|
Addon: typeof DropdownMenu.Item.Addon;
|
|
162
148
|
Checkbox: Intergalactic.Component<'div', SelectOptionCheckboxProps>;
|
|
163
149
|
Content: typeof Flex;
|
|
150
|
+
Text: typeof Text;
|
|
164
151
|
Hint: typeof Flex;
|
|
165
152
|
};
|
|
166
|
-
/**
|
|
167
|
-
* @deprecated Use Select.Group
|
|
168
|
-
*/
|
|
169
|
-
OptionTitle: typeof DropdownMenu.ItemTitle;
|
|
170
|
-
/**
|
|
171
|
-
* @deprecated Use Select.Option.Hint or Select.Group with subTitle property
|
|
172
|
-
*/
|
|
173
|
-
OptionHint: typeof DropdownMenu.ItemHint;
|
|
174
153
|
Divider: typeof Divider;
|
|
175
154
|
InputSearch: typeof InputSearch;
|
|
176
155
|
Input: typeof InputSearch;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/select",
|
|
3
3
|
"description": "Semrush Select Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "17.0.0-prerelease.17",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -13,20 +13,19 @@
|
|
|
13
13
|
"types": "./lib/types/index.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@semcore/base-trigger": "16.4.
|
|
17
|
-
"@semcore/button": "16.0.
|
|
18
|
-
"@semcore/checkbox": "
|
|
19
|
-
"@semcore/divider": "
|
|
20
|
-
"@semcore/dropdown": "
|
|
21
|
-
"@semcore/dropdown-menu": "
|
|
22
|
-
"@semcore/
|
|
23
|
-
"@semcore/
|
|
24
|
-
"@semcore/input": "16.1.1",
|
|
25
|
-
"@semcore/popper": "16.0.11",
|
|
16
|
+
"@semcore/base-trigger": "^16.4.6-prerelease.17",
|
|
17
|
+
"@semcore/button": "^16.0.13-prerelease.17",
|
|
18
|
+
"@semcore/checkbox": "^17.0.0-prerelease.17",
|
|
19
|
+
"@semcore/divider": "^17.0.0-prerelease.17",
|
|
20
|
+
"@semcore/dropdown": "^17.0.0-prerelease.17",
|
|
21
|
+
"@semcore/dropdown-menu": "^17.0.0-prerelease.17",
|
|
22
|
+
"@semcore/input": "^16.1.2-prerelease.17",
|
|
23
|
+
"@semcore/typography": "^16.3.3-prerelease.17",
|
|
26
24
|
"classnames": "2.2.6"
|
|
27
25
|
},
|
|
28
26
|
"peerDependencies": {
|
|
29
|
-
"@semcore/base-components": "^
|
|
27
|
+
"@semcore/base-components": "^17.0.0-prerelease.17",
|
|
28
|
+
"@semcore/icon": "^16.7.2-prerelease.17"
|
|
30
29
|
},
|
|
31
30
|
"repository": {
|
|
32
31
|
"type": "git",
|
|
@@ -35,10 +34,10 @@
|
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/classnames": "2.2.6",
|
|
38
|
-
"@semcore/core": "
|
|
39
|
-
"@semcore/
|
|
40
|
-
"@semcore/
|
|
41
|
-
"@semcore/
|
|
37
|
+
"@semcore/core": "17.0.0-prerelease.17",
|
|
38
|
+
"@semcore/base-components": "17.0.0-prerelease.17",
|
|
39
|
+
"@semcore/icon": "16.7.2-prerelease.17",
|
|
40
|
+
"@semcore/testing-utils": "1.0.0"
|
|
42
41
|
},
|
|
43
42
|
"scripts": {
|
|
44
43
|
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|