@semcore/dropdown-menu 4.49.0-prerelease.0 → 4.49.0-prerelease.4
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/lib/cjs/DropdownMenu.js +236 -257
- package/lib/cjs/DropdownMenu.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/dropdown-menu.shadow.css +84 -27
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +3 -1
- package/lib/cjs/translations/es.json +3 -1
- package/lib/cjs/translations/fr.json +3 -1
- package/lib/cjs/translations/it.json +3 -1
- package/lib/cjs/translations/ja.json +3 -1
- package/lib/cjs/translations/ko.json +3 -1
- package/lib/cjs/translations/nl.json +3 -1
- package/lib/cjs/translations/pl.json +3 -1
- package/lib/cjs/translations/pt.json +3 -1
- package/lib/cjs/translations/sv.json +3 -1
- package/lib/cjs/translations/tr.json +3 -1
- package/lib/cjs/translations/vi.json +3 -1
- package/lib/cjs/translations/zh.json +3 -1
- package/lib/es6/DropdownMenu.js +228 -248
- package/lib/es6/DropdownMenu.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/dropdown-menu.shadow.css +84 -27
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +3 -1
- package/lib/es6/translations/es.json +3 -1
- package/lib/es6/translations/fr.json +3 -1
- package/lib/es6/translations/it.json +3 -1
- package/lib/es6/translations/ja.json +3 -1
- package/lib/es6/translations/ko.json +3 -1
- package/lib/es6/translations/nl.json +3 -1
- package/lib/es6/translations/pl.json +3 -1
- package/lib/es6/translations/pt.json +3 -1
- package/lib/es6/translations/sv.json +3 -1
- package/lib/es6/translations/tr.json +3 -1
- package/lib/es6/translations/vi.json +3 -1
- package/lib/es6/translations/zh.json +3 -1
- package/lib/esm/DropdownMenu.mjs +188 -215
- package/lib/esm/style/dropdown-menu.shadow.css +84 -27
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/de.json.mjs +6 -2
- package/lib/esm/translations/es.json.mjs +6 -2
- package/lib/esm/translations/fr.json.mjs +6 -2
- package/lib/esm/translations/it.json.mjs +6 -2
- package/lib/esm/translations/ja.json.mjs +6 -2
- package/lib/esm/translations/ko.json.mjs +6 -2
- package/lib/esm/translations/nl.json.mjs +6 -2
- package/lib/esm/translations/pl.json.mjs +6 -2
- package/lib/esm/translations/pt.json.mjs +6 -2
- package/lib/esm/translations/sv.json.mjs +6 -2
- package/lib/esm/translations/tr.json.mjs +6 -2
- package/lib/esm/translations/vi.json.mjs +6 -2
- package/lib/esm/translations/zh.json.mjs +6 -2
- package/lib/types/index.d.ts +79 -30
- package/package.json +12 -12
- package/lib/cjs/components/Context.js +0 -16
- package/lib/cjs/components/Context.js.map +0 -1
- package/lib/cjs/components/VirtualList.js +0 -148
- package/lib/cjs/components/VirtualList.js.map +0 -1
- package/lib/es6/components/Context.js +0 -9
- package/lib/es6/components/Context.js.map +0 -1
- package/lib/es6/components/VirtualList.js +0 -143
- package/lib/es6/components/VirtualList.js.map +0 -1
- package/lib/esm/components/Context.mjs +0 -11
- package/lib/esm/components/VirtualList.mjs +0 -135
- package/lib/types/components/Context.d.ts +0 -2
- package/lib/types/components/VirtualList.d.ts +0 -28
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +0 -16
|
@@ -8,30 +8,90 @@ SDropdownMenuList {
|
|
|
8
8
|
z-index: 0;
|
|
9
9
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
SShadowHorizontal {
|
|
12
|
+
&:before,
|
|
13
|
+
&:after {
|
|
14
|
+
width: 16px;
|
|
15
|
+
height: 100%;
|
|
16
|
+
border-radius: var(--intergalactic-control-rounded, 6px);
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
SShadowHorizontal[position='median'] {
|
|
21
|
+
&:before {
|
|
22
|
+
background: var(
|
|
23
|
+
--intergalactic-scroll-area-dropdown-menu-left,
|
|
24
|
+
linear-gradient(to right, #fff 34.38%, transparent 100%)
|
|
25
|
+
);
|
|
21
26
|
}
|
|
22
27
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
&:after {
|
|
29
|
+
background: var(
|
|
30
|
+
--intergalactic-scroll-area-dropdown-menu-right,
|
|
31
|
+
linear-gradient(to left, #fff 34.38%, transparent 100%)
|
|
32
|
+
);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
|
-
}
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
SShadowHorizontal[position='start'] {
|
|
37
|
+
&:before {
|
|
38
|
+
background: var(
|
|
39
|
+
--intergalactic-scroll-area-dropdown-menu-left,
|
|
40
|
+
linear-gradient(to right, #fff 34.38%, transparent 100%)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
SShadowHorizontal[position='end'] {
|
|
46
|
+
&:after {
|
|
47
|
+
background: var(
|
|
48
|
+
--intergalactic-scroll-area-dropdown-menu-right,
|
|
49
|
+
linear-gradient(to left, #fff 34.38%, transparent 100%)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
SShadowVertical {
|
|
55
|
+
&:before,
|
|
56
|
+
&:after {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 16px;
|
|
59
|
+
border-radius: var(--intergalactic-control-rounded, 6px);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
SShadowVertical[position='median'] {
|
|
64
|
+
&:before {
|
|
65
|
+
background: var(
|
|
66
|
+
--intergalactic-scroll-area-dropdown-menu-top,
|
|
67
|
+
linear-gradient(to bottom, #fff 34.38%, transparent 100%)
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:after {
|
|
72
|
+
background: var(
|
|
73
|
+
--intergalactic-scroll-area-dropdown-menu-bottom,
|
|
74
|
+
linear-gradient(to top, #fff 34.38%, transparent 100%)
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
SShadowVertical[position='start'] {
|
|
80
|
+
&:before {
|
|
81
|
+
background: var(
|
|
82
|
+
--intergalactic-scroll-area-dropdown-menu-top,
|
|
83
|
+
linear-gradient(to bottom, #fff 34.38%, transparent 100%)
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
SShadowVertical[position='end'] {
|
|
89
|
+
&:after {
|
|
90
|
+
background: var(
|
|
91
|
+
--intergalactic-scroll-area-dropdown-menu-bottom,
|
|
92
|
+
linear-gradient(to top, #fff 34.38%, transparent 100%)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
35
95
|
}
|
|
36
96
|
}
|
|
37
97
|
|
|
@@ -39,9 +99,8 @@ SDropdownMenuItemContainer[nesting-trigger] {
|
|
|
39
99
|
justify-content: space-between;
|
|
40
100
|
}
|
|
41
101
|
|
|
42
|
-
SDropdownMenuItemAddon,
|
|
43
|
-
|
|
44
|
-
display: inline-flex; /* todo: Brauer Ilia - why? should be changed to inline/inline-block for SItemContentText */
|
|
102
|
+
SDropdownMenuItemAddon, SItemContentText {
|
|
103
|
+
display: inline-flex;
|
|
45
104
|
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
46
105
|
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
47
106
|
|
|
@@ -62,7 +121,7 @@ SDropdownMenuNesting[size='m'] {
|
|
|
62
121
|
|
|
63
122
|
SDropdownMenuNesting[highlighted] {
|
|
64
123
|
z-index: 1;
|
|
65
|
-
|
|
124
|
+
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469)) inset;
|
|
66
125
|
}
|
|
67
126
|
|
|
68
127
|
SDropdownNestingItem[size='l'],
|
|
@@ -78,12 +137,10 @@ SDropdownNestingItem SDropdownMenuItemContainer {
|
|
|
78
137
|
min-height: auto;
|
|
79
138
|
}
|
|
80
139
|
|
|
81
|
-
|
|
82
|
-
|
|
140
|
+
SItemContent:focus {
|
|
141
|
+
outline: none;
|
|
83
142
|
}
|
|
84
143
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
overscroll-behavior: none;
|
|
88
|
-
}
|
|
144
|
+
SItemHint {
|
|
145
|
+
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
89
146
|
}
|
|
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
|
|
|
6
6
|
import ja from "./ja.json.mjs";
|
|
7
7
|
import ko from "./ko.json.mjs";
|
|
8
8
|
import nl from "./nl.json.mjs";
|
|
9
|
-
import pl from "./pl.json.mjs";
|
|
10
9
|
import pt from "./pt.json.mjs";
|
|
11
|
-
import sv from "./sv.json.mjs";
|
|
12
10
|
import tr from "./tr.json.mjs";
|
|
13
11
|
import vi from "./vi.json.mjs";
|
|
14
12
|
import zh from "./zh.json.mjs";
|
|
13
|
+
import pl from "./pl.json.mjs";
|
|
14
|
+
import sv from "./sv.json.mjs";
|
|
15
15
|
var localizedMessages = {
|
|
16
16
|
de,
|
|
17
17
|
en,
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
1
|
+
import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
|
|
2
|
+
import Dropdown, {
|
|
4
3
|
DropdownContext,
|
|
5
4
|
DropdownProps,
|
|
6
5
|
DropdownHandlers,
|
|
7
6
|
DropdownTriggerProps,
|
|
8
7
|
DropdownPopperAriaProps,
|
|
9
8
|
} from '@semcore/dropdown';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import
|
|
9
|
+
import { Box, BoxProps, FlexProps, Flex } from '@semcore/flex-box';
|
|
10
|
+
import { ScrollAreaProps } from '@semcore/scroll-area';
|
|
11
|
+
import { Text } from '@semcore/typography';
|
|
12
|
+
import { eventInteraction } from '@semcore/popper';
|
|
14
13
|
|
|
15
14
|
export type DropdownMenuSize = 'm' | 'l';
|
|
16
15
|
|
|
16
|
+
/** @deprecated */
|
|
17
|
+
export interface IDropdownMenuProps extends DropdownMenuProps, UnknownProperties {}
|
|
17
18
|
export type DropdownMenuProps = DropdownProps & {
|
|
18
19
|
/**
|
|
19
20
|
* Set role `menuitemradio` (or `menuitemcheckbox` if `multiselect`) for Dropdown.Item
|
|
@@ -41,7 +42,6 @@ export type DropdownMenuProps = DropdownProps & {
|
|
|
41
42
|
* highlightedIndex - Index of the selected item
|
|
42
43
|
*/
|
|
43
44
|
onHighlightedIndexChange?: (highlightedIndex: number | null) => void;
|
|
44
|
-
/** Specifies the locale for i18n support */
|
|
45
45
|
locale?: string;
|
|
46
46
|
/**
|
|
47
47
|
* Flag for menu that using as actions on DropdownMenu.Item
|
|
@@ -54,6 +54,8 @@ export type DropdownMenuProps = DropdownProps & {
|
|
|
54
54
|
itemsCount?: number;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
/** @deprecated */
|
|
58
|
+
export interface IDropdownMenuListProps extends DropdownMenuListProps, UnknownProperties {}
|
|
57
59
|
export type DropdownMenuListProps = BoxProps &
|
|
58
60
|
ScrollAreaProps & {
|
|
59
61
|
/**
|
|
@@ -63,8 +65,12 @@ export type DropdownMenuListProps = BoxProps &
|
|
|
63
65
|
size?: DropdownMenuSize;
|
|
64
66
|
};
|
|
65
67
|
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
export interface IDropdownMenuMenuProps extends DropdownMenuMenuProps, UnknownProperties {}
|
|
66
70
|
export type DropdownMenuMenuProps = DropdownMenuListProps & {};
|
|
67
71
|
|
|
72
|
+
/** @deprecated */
|
|
73
|
+
export interface IDropdownMenuItemProps extends DropdownMenuItemProps, UnknownProperties {}
|
|
68
74
|
export type DropdownMenuItemProps = FlexProps & {
|
|
69
75
|
/**
|
|
70
76
|
* Enables selected state. For selectable dropdowns only.
|
|
@@ -74,6 +80,15 @@ export type DropdownMenuItemProps = FlexProps & {
|
|
|
74
80
|
* Disables item
|
|
75
81
|
*/
|
|
76
82
|
disabled?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Adds focus styles around
|
|
85
|
+
*/
|
|
86
|
+
highlighted?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Disables hover state
|
|
89
|
+
* @deprecated use `disabled` instead
|
|
90
|
+
*/
|
|
91
|
+
notInteractive?: boolean;
|
|
77
92
|
/**
|
|
78
93
|
* Size of the component
|
|
79
94
|
* @default m
|
|
@@ -85,29 +100,40 @@ export type DropdownMenuItemProps = FlexProps & {
|
|
|
85
100
|
index?: number;
|
|
86
101
|
};
|
|
87
102
|
|
|
88
|
-
|
|
103
|
+
/** @deprecated */
|
|
104
|
+
export interface IDropdownMenuItemHintProps extends DropdownMenuItemHintProps, UnknownProperties {}
|
|
105
|
+
export type DropdownMenuItemHintProps = FlexProps & {
|
|
89
106
|
/**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
107
|
+
* Size of the component
|
|
108
|
+
* @default m
|
|
109
|
+
*/
|
|
110
|
+
size?: DropdownMenuSize;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @deprecated */
|
|
114
|
+
export interface IDropdownMenuItemTitleProps
|
|
115
|
+
extends DropdownMenuItemTitleProps,
|
|
116
|
+
UnknownProperties {}
|
|
117
|
+
export type DropdownMenuItemTitleProps = FlexProps & {
|
|
93
118
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
119
|
+
* Size of the component
|
|
120
|
+
* @default m
|
|
121
|
+
*/
|
|
122
|
+
size?: DropdownMenuSize;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @deprecated */
|
|
126
|
+
export interface IDropdownMenuContext extends DropdownMenuContext, UnknownProperties {}
|
|
127
|
+
export type DropdownMenuContext = DropdownContext & {
|
|
128
|
+
highlightedIndex?: number;
|
|
96
129
|
getListProps: PropGetterFn;
|
|
97
|
-
/**
|
|
98
|
-
* Returns props for individual menu items
|
|
99
|
-
**/
|
|
100
130
|
getItemProps: PropGetterFn;
|
|
101
|
-
/**
|
|
102
|
-
* Returns props for item hint/description elements
|
|
103
|
-
**/
|
|
104
131
|
getItemHintProps: PropGetterFn;
|
|
105
|
-
/**
|
|
106
|
-
* Returns props for item title elements
|
|
107
|
-
**/
|
|
108
132
|
getItemTitleProps: PropGetterFn;
|
|
109
133
|
};
|
|
110
134
|
|
|
135
|
+
/** @deprecated */
|
|
136
|
+
export interface IDropdownMenuHandlers extends DropdownMenuHandlers, UnknownProperties {}
|
|
111
137
|
export type DropdownMenuHandlers = DropdownHandlers & {
|
|
112
138
|
highlightedIndex: (index: number) => void;
|
|
113
139
|
};
|
|
@@ -151,17 +177,40 @@ declare const DropdownMenu: Intergalactic.Component<
|
|
|
151
177
|
Text: typeof Text;
|
|
152
178
|
Hint: typeof Flex;
|
|
153
179
|
};
|
|
154
|
-
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated Use Group with title prop
|
|
182
|
+
*/
|
|
183
|
+
ItemTitle: Intergalactic.Component<'div', DropdownMenuItemTitleProps>;
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated Use prop subTitle on Group or Item component
|
|
186
|
+
*/
|
|
187
|
+
ItemHint: Intergalactic.Component<'div', DropdownMenuItemHintProps>;
|
|
155
188
|
Group: typeof Dropdown.Group;
|
|
156
|
-
|
|
157
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated Use Item instead of Nesting
|
|
191
|
+
*/
|
|
192
|
+
Nesting: Intergalactic.Component<
|
|
193
|
+
'div',
|
|
194
|
+
DropdownMenuItemProps,
|
|
195
|
+
DropdownMenuContext,
|
|
196
|
+
[handlers: DropdownMenuHandlers]
|
|
197
|
+
> & {
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated Use Item instead of Nesting
|
|
200
|
+
*/
|
|
201
|
+
Trigger: Intergalactic.Component<'div', DropdownMenuItemProps>;
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated Use Item instead of Nesting
|
|
204
|
+
*/
|
|
205
|
+
Item: Intergalactic.Component<'div', DropdownMenuItemProps>;
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated Use Item instead of Nesting
|
|
208
|
+
*/
|
|
209
|
+
Addon: typeof Box;
|
|
210
|
+
};
|
|
158
211
|
|
|
159
212
|
selectedIndexContext: React.Context<number>;
|
|
160
213
|
nestedMenuInteraction: eventInteraction;
|
|
161
214
|
};
|
|
162
215
|
|
|
163
216
|
export default DropdownMenu;
|
|
164
|
-
|
|
165
|
-
export {
|
|
166
|
-
RenderRowProps,
|
|
167
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/dropdown-menu",
|
|
3
3
|
"description": "Semrush DropdownMenu Component",
|
|
4
|
-
"version": "4.49.0-prerelease.
|
|
4
|
+
"version": "4.49.0-prerelease.4",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "5.44.0-prerelease.
|
|
18
|
-
"@semcore/dropdown": "4.44.0-prerelease.
|
|
19
|
-
"@semcore/flex-box": "5.42.0-prerelease.
|
|
20
|
-
"@semcore/scroll-area": "5.46.0-prerelease.
|
|
21
|
-
"@semcore/utils": "4.49.0-prerelease.
|
|
22
|
-
"@semcore/icon": "4.63.0-prerelease.
|
|
23
|
-
"@semcore/typography": "5.54.0-prerelease.
|
|
24
|
-
"@semcore/popper": "5.47.0-prerelease.
|
|
17
|
+
"@semcore/button": "5.44.0-prerelease.4",
|
|
18
|
+
"@semcore/dropdown": "4.44.0-prerelease.4",
|
|
19
|
+
"@semcore/flex-box": "5.42.0-prerelease.4",
|
|
20
|
+
"@semcore/scroll-area": "5.46.0-prerelease.4",
|
|
21
|
+
"@semcore/utils": "4.49.0-prerelease.4",
|
|
22
|
+
"@semcore/icon": "4.63.0-prerelease.4",
|
|
23
|
+
"@semcore/typography": "5.54.0-prerelease.4",
|
|
24
|
+
"@semcore/popper": "5.47.0-prerelease.4",
|
|
25
25
|
"classnames": "2.2.6"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
28
|
+
"@semcore/core": "^2.40.0-prerelease.4",
|
|
29
29
|
"react": "16.8 - 18",
|
|
30
30
|
"react-dom": "16.8 - 18"
|
|
31
31
|
},
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@types/classnames": "2.2.6",
|
|
40
40
|
"@semcore/testing-utils": "1.0.0",
|
|
41
41
|
"@semcore/base-trigger": "4.26.1",
|
|
42
|
-
"@semcore/button": "5.44.0-prerelease.
|
|
43
|
-
"@semcore/icon": "4.63.0-prerelease.
|
|
42
|
+
"@semcore/button": "5.44.0-prerelease.4",
|
|
43
|
+
"@semcore/icon": "4.63.0-prerelease.4"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ListBoxContextProvider = void 0;
|
|
8
|
-
var _baseComponents = require("@semcore/base-components");
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var ListBoxContextProvider = exports.ListBoxContextProvider = function ListBoxContextProvider(_ref) {
|
|
11
|
-
var children = _ref.children;
|
|
12
|
-
return /*#__PURE__*/_react["default"].createElement(_baseComponents.hideScrollBarsFromScreenReadersContext.Provider, {
|
|
13
|
-
value: true
|
|
14
|
-
}, children);
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=Context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.js","names":["_baseComponents","require","_react","_interopRequireDefault","ListBoxContextProvider","exports","_ref","children","createElement","hideScrollBarsFromScreenReadersContext","Provider","value"],"sources":["../../../src/components/Context.tsx"],"sourcesContent":["import { hideScrollBarsFromScreenReadersContext } from '@semcore/base-components';\nimport React from 'react';\n\nexport const ListBoxContextProvider = ({ children }: React.PropsWithChildren) => (\n <hideScrollBarsFromScreenReadersContext.Provider value={true}>\n {children}\n </hideScrollBarsFromScreenReadersContext.Provider>\n);\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEO,IAAMG,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,SAAzBA,sBAAsBA,CAAAE,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,oBAC/CL,MAAA,YAAAM,aAAA,CAACR,eAAA,CAAAS,sCAAsC,CAACC,QAAQ;IAACC,KAAK,EAAE;EAAK,GAC1DJ,QAC8C,CAAC;AAAA,CACnD","ignoreList":[]}
|