@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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- var selectContext = /* @__PURE__ */ React.createContext({});
2
+ const selectContext = /* @__PURE__ */ React.createContext({});
3
3
  export {
4
4
  selectContext
5
5
  };
@@ -12,7 +12,7 @@ import sv from "./sv.json.mjs";
12
12
  import tr from "./tr.json.mjs";
13
13
  import vi from "./vi.json.mjs";
14
14
  import zh from "./zh.json.mjs";
15
- var localizedMessages = {
15
+ const localizedMessages = {
16
16
  de,
17
17
  en,
18
18
  es,
@@ -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, UnknownProperties, Intergalactic } from '@semcore/core';
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": "16.1.12",
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.4",
17
- "@semcore/button": "16.0.12",
18
- "@semcore/checkbox": "16.2.1",
19
- "@semcore/divider": "16.0.11",
20
- "@semcore/dropdown": "16.1.3",
21
- "@semcore/dropdown-menu": "16.1.14",
22
- "@semcore/flex-box": "16.0.11",
23
- "@semcore/icon": "16.7.3",
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": "^16.0.0"
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": "16.5.1",
39
- "@semcore/testing-utils": "1.0.0",
40
- "@semcore/flex-box": "16.0.11",
41
- "@semcore/typography": "16.3.2"
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"