@learningpool/ui 1.15.4 → 1.16.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/assets/Images.js +7 -18
- package/components/atoms/Autocomplete/Autocomplete.js +3 -14
- package/components/atoms/Button/Button.js +2 -13
- package/components/atoms/Checkbox/Checkbox.js +3 -26
- package/components/atoms/IconButton/IconButton.js +2 -13
- package/components/atoms/Radio/Radio.js +3 -26
- package/components/atoms/Select/Select.js +3 -26
- package/components/atoms/Slider/Slider.js +3 -26
- package/components/atoms/Switch/Switch.js +3 -26
- package/components/atoms/TextField/TextField.js +2 -13
- package/components/atoms/ToggleButton/ToggleButton.js +3 -26
- package/components/datadisplay/Avatar/Avatar.js +13 -28
- package/components/datadisplay/Chip/Chip.js +3 -26
- package/components/datadisplay/List/List.js +2 -13
- package/components/feedback/Alert/Alert.js +3 -26
- package/components/landmarks/Header/Header.js +15 -41
- package/components/landmarks/Header/HeaderActionButtons.d.ts +1 -2
- package/components/landmarks/Header/HeaderActionButtons.js +22 -33
- package/components/landmarks/Header/HeaderStyles.js +54 -11
- package/components/navigation/Drawer/Drawer.js +5 -31
- package/components/navigation/MobileNavigation/MobileNavigation.js +70 -82
- package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +75 -83
- package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +102 -52
- package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +71 -13
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +1 -1
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +41 -68
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +34 -18
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +133 -20
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +22 -45
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +8 -19
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +151 -52
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +171 -50
- package/components/navigation/MobileNavigation/MobileNavigationMotion.js +11 -11
- package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +11 -15
- package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +1 -2
- package/components/navigation/MobileNavigation/MobileNavigationSearch.js +25 -34
- package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +34 -18
- package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +47 -9
- package/components/navigation/MobileNavigation/MobileNavigationStyles.js +262 -66
- package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +21 -20
- package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +21 -20
- package/components/navigation/VerticalNavigation/VerticalNavigation.js +150 -185
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +50 -61
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +102 -52
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +86 -14
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +27 -51
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +15 -28
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +135 -39
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +167 -29
- package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +11 -11
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +34 -18
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +236 -42
- package/components/navigation/helpers.d.ts +1 -2
- package/components/navigation/helpers.js +28 -32
- package/components/pages/ErrorPage/ErrorPage.js +6 -17
- package/components/pages/ErrorPage/ErrorPageStyles.js +13 -18
- package/components/pages/SideInSide/SideInSide.js +12 -23
- package/components/pages/SideInSide/SideInSideStyles.js +6 -6
- package/components/stream/AppHub/AppHub.js +13 -42
- package/components/stream/AppHub/AppHubAdvertStyles.js +24 -8
- package/components/stream/AppHub/AppHubBannerAdvert.d.ts +1 -2
- package/components/stream/AppHub/AppHubBannerAdvert.js +10 -20
- package/components/stream/AppHub/AppHubCustom.js +8 -19
- package/components/stream/AppHub/AppHubCustomStyles.d.ts +1 -1
- package/components/stream/AppHub/AppHubCustomStyles.js +78 -18
- package/components/stream/AppHub/AppHubProduct.js +26 -48
- package/components/stream/AppHub/AppHubProductStyles.js +104 -19
- package/components/stream/AppHub/AppHubStyles.js +31 -11
- package/components/stream/AppHub/constants.d.ts +1 -2
- package/components/stream/AppHub/constants.js +14 -14
- package/components/stream/AppSwitcher/AppSwitcher.js +225 -316
- package/components/stream/AppSwitcher/AppSwitcherItem.js +11 -22
- package/components/stream/AppSwitcher/AppSwitcherStyles.js +337 -42
- package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.js +255 -21
- package/components/stream/AppSwitcher/PromotionalCampaignItem.js +7 -19
- package/components/stream/AppSwitcher/constants.d.ts +1 -0
- package/components/stream/AppSwitcher/constants.js +6 -5
- package/lang/en-us.d.ts +1 -0
- package/lang/en-us.js +2 -1
- package/package.json +7 -2
- package/utils/constants.d.ts +7 -0
- package/utils/constants.js +11 -4
- package/utils/dataAttributes.js +1 -1
- package/utils/helpers.js +33 -40
- package/utils/hooks.js +10 -11
- package/utils/theme.js +26 -19
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface ISwipeableTemporarySearch {
|
|
3
2
|
isSearchOpen: boolean;
|
|
4
3
|
setIsSearchOpen?: any;
|
|
@@ -7,5 +6,5 @@ interface ISwipeableTemporarySearch {
|
|
|
7
6
|
searchPanelOnClickSearch?: any;
|
|
8
7
|
dataAttributes?: any;
|
|
9
8
|
}
|
|
10
|
-
export default function SwipeableTemporarySearch(props: ISwipeableTemporarySearch): JSX.Element;
|
|
9
|
+
export default function SwipeableTemporarySearch(props: ISwipeableTemporarySearch): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -1,56 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
13
2
|
import * as React from 'react';
|
|
14
3
|
import { FormControl, InputAdornment, Stack, IconButton } from '../../../index';
|
|
15
4
|
import { StyledBox, StyledSwipeableSearch, StyledOutlinedInput, StyledOutlinedInputLabel } from './MobileNavigationSearchStyles';
|
|
16
5
|
import Search from '@mui/icons-material/Search';
|
|
17
6
|
import { animated, config, useSpring } from '@react-spring/web';
|
|
18
7
|
import { defaultAttributes } from '../../../utils/dataAttributes';
|
|
8
|
+
import { EVENT_KEYS } from '../../../utils/constants';
|
|
19
9
|
export default function SwipeableTemporarySearch(props) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
React.useEffect(
|
|
25
|
-
|
|
10
|
+
const { isSearchOpen, setIsSearchOpen, searchPanelPlaceholder, searchPanelDefaultValue, searchPanelOnClickSearch, dataAttributes } = props;
|
|
11
|
+
const [isOpen, setIsOpen] = React.useState(isSearchOpen ?? false);
|
|
12
|
+
const [searchValue, setSearchValue] = React.useState(searchPanelDefaultValue ?? '');
|
|
13
|
+
const dataIds = { ...defaultAttributes, ...dataAttributes };
|
|
14
|
+
React.useEffect(() => handleOpenState(isSearchOpen), [isSearchOpen]);
|
|
15
|
+
const handleOpenState = (open) => {
|
|
26
16
|
setIsOpen(open);
|
|
27
17
|
setIsSearchOpen(open);
|
|
28
18
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
handleOpenState(open);
|
|
37
|
-
};
|
|
19
|
+
const toggleSearch = (open) => (event) => {
|
|
20
|
+
if (event && event.type === EVENT_KEYS.Keydown &&
|
|
21
|
+
(event.key === EVENT_KEYS.Tab ||
|
|
22
|
+
event.key === EVENT_KEYS.Shift)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
handleOpenState(open);
|
|
38
26
|
};
|
|
39
|
-
|
|
40
|
-
if (event && event.type ===
|
|
41
|
-
(event.key !==
|
|
27
|
+
const handleSearch = (event) => {
|
|
28
|
+
if (event && event.type === EVENT_KEYS.Keydown &&
|
|
29
|
+
(event.key !== EVENT_KEYS.Enter)) {
|
|
42
30
|
return;
|
|
43
31
|
}
|
|
44
32
|
// Pass search value into the onClick function
|
|
45
33
|
searchPanelOnClickSearch && searchPanelOnClickSearch(searchValue);
|
|
46
34
|
};
|
|
47
|
-
return (_jsx(StyledSwipeableSearch,
|
|
35
|
+
return (_jsx(StyledSwipeableSearch, { "data-id": dataIds.MobileNavSearchPanel, anchor: 'bottom', open: isOpen, onClose: toggleSearch(false), onOpen: toggleSearch(true), swipeAreaWidth: 44, variant: 'persistent', ModalProps: {
|
|
48
36
|
keepMounted: true
|
|
49
|
-
}
|
|
37
|
+
}, children: _jsx(StyledBox, { children: _jsx(Stack, { spacing: 2, children: _jsx(animated.div, { style: useSpring({
|
|
50
38
|
from: { opacity: 0, y: 10 },
|
|
51
39
|
to: { opacity: 1, y: 0 },
|
|
52
40
|
delay: isSearchOpen ? 100 : 0,
|
|
53
41
|
reverse: !isSearchOpen,
|
|
54
|
-
config:
|
|
55
|
-
|
|
42
|
+
config: {
|
|
43
|
+
...config.default,
|
|
44
|
+
mass: 1
|
|
45
|
+
}
|
|
46
|
+
}), children: _jsxs(FormControl, { fullWidth: true, variant: 'outlined', color: 'secondary', "data-id": dataIds.MobileNavSearchForm, children: [_jsx(StyledOutlinedInputLabel, { htmlFor: 'mobile-nav-search', children: searchPanelPlaceholder ?? 'Search' }), _jsx(StyledOutlinedInput, { label: searchPanelPlaceholder ?? 'Search', id: 'mobile-nav-search', endAdornment: _jsx(InputAdornment, { position: 'end', children: _jsx(IconButton, { "aria-label": 'Search', edge: 'end', onClick: handleSearch, children: _jsx(Search, {}) }) }), onKeyDown: handleSearch, value: searchValue, onChange: event => setSearchValue(event?.target?.value) })] }) }) }) }) }));
|
|
56
47
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
|
-
/// <reference types="trusted-types" />
|
|
4
3
|
export declare const StyledSwipeableSearch: import("@emotion/styled").StyledComponent<import("@mui/material").SwipeableDrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
4
|
export declare const StyledBox: import("@emotion/styled").StyledComponent<import("@react-spring/web").AnimatedProps<{
|
|
6
5
|
className?: string | undefined;
|
|
@@ -18,6 +17,8 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
18
17
|
animationIterationCount?: import("csstype").Property.AnimationIterationCount | undefined;
|
|
19
18
|
animationName?: import("csstype").Property.AnimationName | undefined;
|
|
20
19
|
animationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
|
|
20
|
+
animationRangeEnd?: import("csstype").Property.AnimationRangeEnd<string | number> | undefined;
|
|
21
|
+
animationRangeStart?: import("csstype").Property.AnimationRangeStart<string | number> | undefined;
|
|
21
22
|
animationTimeline?: import("csstype").Property.AnimationTimeline | undefined;
|
|
22
23
|
animationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
|
|
23
24
|
appearance?: import("csstype").Property.Appearance | undefined;
|
|
@@ -139,6 +140,10 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
139
140
|
fontStretch?: import("csstype").Property.FontStretch | undefined;
|
|
140
141
|
fontStyle?: import("csstype").Property.FontStyle | undefined;
|
|
141
142
|
fontSynthesis?: import("csstype").Property.FontSynthesis | undefined;
|
|
143
|
+
fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition | undefined;
|
|
144
|
+
fontSynthesisSmallCaps?: import("csstype").Property.FontSynthesisSmallCaps | undefined;
|
|
145
|
+
fontSynthesisStyle?: import("csstype").Property.FontSynthesisStyle | undefined;
|
|
146
|
+
fontSynthesisWeight?: import("csstype").Property.FontSynthesisWeight | undefined;
|
|
142
147
|
fontVariant?: import("csstype").Property.FontVariant | undefined;
|
|
143
148
|
fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
|
|
144
149
|
fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
|
|
@@ -212,6 +217,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
212
217
|
maskRepeat?: import("csstype").Property.MaskRepeat | undefined;
|
|
213
218
|
maskSize?: import("csstype").Property.MaskSize<string | number> | undefined;
|
|
214
219
|
maskType?: import("csstype").Property.MaskType | undefined;
|
|
220
|
+
masonryAutoFlow?: import("csstype").Property.MasonryAutoFlow | undefined;
|
|
215
221
|
mathDepth?: import("csstype").Property.MathDepth | undefined;
|
|
216
222
|
mathShift?: import("csstype").Property.MathShift | undefined;
|
|
217
223
|
mathStyle?: import("csstype").Property.MathStyle | undefined;
|
|
@@ -251,6 +257,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
251
257
|
overflowWrap?: import("csstype").Property.OverflowWrap | undefined;
|
|
252
258
|
overflowX?: import("csstype").Property.OverflowX | undefined;
|
|
253
259
|
overflowY?: import("csstype").Property.OverflowY | undefined;
|
|
260
|
+
overlay?: import("csstype").Property.Overlay | undefined;
|
|
254
261
|
overscrollBehaviorBlock?: import("csstype").Property.OverscrollBehaviorBlock | undefined;
|
|
255
262
|
overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
|
|
256
263
|
overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
|
|
@@ -338,12 +345,15 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
338
345
|
textTransform?: import("csstype").Property.TextTransform | undefined;
|
|
339
346
|
textUnderlineOffset?: import("csstype").Property.TextUnderlineOffset<string | number> | undefined;
|
|
340
347
|
textUnderlinePosition?: import("csstype").Property.TextUnderlinePosition | undefined;
|
|
348
|
+
textWrap?: import("csstype").Property.TextWrap | undefined;
|
|
349
|
+
timelineScope?: import("csstype").Property.TimelineScope | undefined;
|
|
341
350
|
top?: import("csstype").Property.Top<string | number> | undefined;
|
|
342
351
|
touchAction?: import("csstype").Property.TouchAction | undefined;
|
|
343
352
|
transform?: string | undefined;
|
|
344
353
|
transformBox?: import("csstype").Property.TransformBox | undefined;
|
|
345
354
|
transformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
|
|
346
355
|
transformStyle?: import("csstype").Property.TransformStyle | undefined;
|
|
356
|
+
transitionBehavior?: import("csstype").Property.TransitionBehavior | undefined;
|
|
347
357
|
transitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
|
|
348
358
|
transitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
|
|
349
359
|
transitionProperty?: import("csstype").Property.TransitionProperty | undefined;
|
|
@@ -352,9 +362,14 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
352
362
|
unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
|
|
353
363
|
userSelect?: import("csstype").Property.UserSelect | undefined;
|
|
354
364
|
verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
|
|
365
|
+
viewTimelineAxis?: import("csstype").Property.ViewTimelineAxis | undefined;
|
|
366
|
+
viewTimelineInset?: import("csstype").Property.ViewTimelineInset<string | number> | undefined;
|
|
367
|
+
viewTimelineName?: import("csstype").Property.ViewTimelineName | undefined;
|
|
355
368
|
viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
|
|
356
369
|
visibility?: import("csstype").Property.Visibility | undefined;
|
|
357
370
|
whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
|
|
371
|
+
whiteSpaceCollapse?: import("csstype").Property.WhiteSpaceCollapse | undefined;
|
|
372
|
+
whiteSpaceTrim?: import("csstype").Property.WhiteSpaceTrim | undefined;
|
|
358
373
|
widows?: import("csstype").Property.Widows | undefined;
|
|
359
374
|
width?: import("csstype").Property.Width<string | number> | undefined;
|
|
360
375
|
willChange?: import("csstype").Property.WillChange | undefined;
|
|
@@ -366,6 +381,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
366
381
|
zoom?: import("csstype").Property.Zoom | undefined;
|
|
367
382
|
all?: import("csstype").Globals | undefined;
|
|
368
383
|
animation?: import("csstype").Property.Animation<string & {}> | undefined;
|
|
384
|
+
animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
|
|
369
385
|
background?: import("csstype").Property.Background<string | number> | undefined;
|
|
370
386
|
backgroundPosition?: import("csstype").Property.BackgroundPosition<string | number> | undefined;
|
|
371
387
|
border?: import("csstype").Property.Border<string | number> | undefined;
|
|
@@ -430,6 +446,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
430
446
|
textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
|
|
431
447
|
textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
|
|
432
448
|
transition?: import("csstype").Property.Transition<string & {}> | undefined;
|
|
449
|
+
viewTimeline?: import("csstype").Property.ViewTimeline | undefined;
|
|
433
450
|
MozAnimationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
|
|
434
451
|
MozAnimationDirection?: import("csstype").Property.AnimationDirection | undefined;
|
|
435
452
|
MozAnimationDuration?: import("csstype").Property.AnimationDuration<string & {}> | undefined;
|
|
@@ -439,7 +456,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
439
456
|
MozAnimationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
|
|
440
457
|
MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
|
|
441
458
|
MozAppearance?: import("csstype").Property.MozAppearance | undefined;
|
|
442
|
-
MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
|
|
443
459
|
MozBinding?: import("csstype").Property.MozBinding | undefined;
|
|
444
460
|
MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
|
|
445
461
|
MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
|
|
@@ -466,20 +482,16 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
466
482
|
MozMarginStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
|
|
467
483
|
MozOrient?: import("csstype").Property.MozOrient | undefined;
|
|
468
484
|
MozOsxFontSmoothing?: import("csstype").Property.FontSmooth<string | number> | undefined;
|
|
485
|
+
MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
|
|
486
|
+
MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
|
|
487
|
+
MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
|
|
488
|
+
MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
|
|
469
489
|
MozPaddingEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
|
|
470
490
|
MozPaddingStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
|
|
471
|
-
MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
|
|
472
|
-
MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
|
|
473
491
|
MozStackSizing?: import("csstype").Property.MozStackSizing | undefined;
|
|
474
492
|
MozTabSize?: import("csstype").Property.TabSize<string | number> | undefined;
|
|
475
493
|
MozTextBlink?: import("csstype").Property.MozTextBlink | undefined;
|
|
476
494
|
MozTextSizeAdjust?: import("csstype").Property.TextSizeAdjust | undefined;
|
|
477
|
-
MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
|
|
478
|
-
MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
|
|
479
|
-
MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
|
|
480
|
-
MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
|
|
481
|
-
MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
|
|
482
|
-
MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
|
|
483
495
|
MozUserFocus?: import("csstype").Property.MozUserFocus | undefined;
|
|
484
496
|
MozUserModify?: import("csstype").Property.MozUserModify | undefined;
|
|
485
497
|
MozUserSelect?: import("csstype").Property.UserSelect | undefined;
|
|
@@ -659,7 +671,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
659
671
|
MozBorderImage?: import("csstype").Property.BorderImage | undefined;
|
|
660
672
|
MozColumnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
|
|
661
673
|
MozColumns?: import("csstype").Property.Columns<string | number> | undefined;
|
|
662
|
-
|
|
674
|
+
MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
|
|
663
675
|
msContentZoomLimit?: import("csstype").Property.MsContentZoomLimit | undefined;
|
|
664
676
|
msContentZoomSnap?: import("csstype").Property.MsContentZoomSnap | undefined;
|
|
665
677
|
msFlex?: import("csstype").Property.Flex<string | number> | undefined;
|
|
@@ -717,6 +729,7 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
717
729
|
KhtmlLineBreak?: import("csstype").Property.LineBreak | undefined;
|
|
718
730
|
KhtmlOpacity?: import("csstype").Property.Opacity | undefined;
|
|
719
731
|
KhtmlUserSelect?: import("csstype").Property.UserSelect | undefined;
|
|
732
|
+
MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
|
|
720
733
|
MozBackgroundClip?: import("csstype").Property.BackgroundClip | undefined;
|
|
721
734
|
MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
|
|
722
735
|
MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
|
|
@@ -738,17 +751,22 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
738
751
|
MozOpacity?: import("csstype").Property.Opacity | undefined;
|
|
739
752
|
MozOutline?: import("csstype").Property.Outline<string | number> | undefined;
|
|
740
753
|
MozOutlineColor?: import("csstype").Property.OutlineColor | undefined;
|
|
741
|
-
MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
|
|
742
|
-
MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
|
|
743
|
-
MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
|
|
744
|
-
MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
|
|
745
|
-
MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
|
|
746
754
|
MozOutlineStyle?: import("csstype").Property.OutlineStyle | undefined;
|
|
747
755
|
MozOutlineWidth?: import("csstype").Property.OutlineWidth<string | number> | undefined;
|
|
756
|
+
MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
|
|
757
|
+
MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
|
|
748
758
|
MozTextAlignLast?: import("csstype").Property.TextAlignLast | undefined;
|
|
749
759
|
MozTextDecorationColor?: import("csstype").Property.TextDecorationColor | undefined;
|
|
750
760
|
MozTextDecorationLine?: import("csstype").Property.TextDecorationLine | undefined;
|
|
751
761
|
MozTextDecorationStyle?: import("csstype").Property.TextDecorationStyle | undefined;
|
|
762
|
+
MozTransform?: import("csstype").Property.Transform | undefined;
|
|
763
|
+
MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
|
|
764
|
+
MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
|
|
765
|
+
MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
|
|
766
|
+
MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
|
|
767
|
+
MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
|
|
768
|
+
MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
|
|
769
|
+
MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
|
|
752
770
|
MozUserInput?: import("csstype").Property.MozUserInput | undefined;
|
|
753
771
|
msImeMode?: import("csstype").Property.ImeMode | undefined;
|
|
754
772
|
OAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
|
|
@@ -781,8 +799,6 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
|
|
|
781
799
|
WebkitBoxOrdinalGroup?: import("csstype").Property.BoxOrdinalGroup | undefined;
|
|
782
800
|
WebkitBoxOrient?: import("csstype").Property.BoxOrient | undefined;
|
|
783
801
|
WebkitBoxPack?: import("csstype").Property.BoxPack | undefined;
|
|
784
|
-
WebkitScrollSnapPointsX?: import("csstype").Property.ScrollSnapPointsX | undefined;
|
|
785
|
-
WebkitScrollSnapPointsY?: import("csstype").Property.ScrollSnapPointsY | undefined;
|
|
786
802
|
alignmentBaseline?: import("csstype").Property.AlignmentBaseline | undefined;
|
|
787
803
|
baselineShift?: import("csstype").Property.BaselineShift<string | number> | undefined;
|
|
788
804
|
clipRule?: import("csstype").Property.ClipRule | undefined;
|
|
@@ -1,13 +1,51 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
1
|
import { SwipeableDrawer, OutlinedInput, InputLabel } from '../../../index';
|
|
6
2
|
import { getOffsetNavigationBackground, getOffsetNavigationContrastText } from '../helpers';
|
|
7
3
|
import { styled } from '@mui/material/styles';
|
|
8
4
|
import { animated } from '@react-spring/web';
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export const StyledSwipeableSearch = styled(SwipeableDrawer) `
|
|
6
|
+
/* Override the MUI default z-index of the Drawer component
|
|
7
|
+
to ensure that the drawer is always below the AppBar. */
|
|
8
|
+
z-index: ${props => props.theme.zIndex.appBar - 1};
|
|
9
|
+
|
|
10
|
+
.MuiPaper-root {
|
|
11
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
12
|
+
0px 5px 8px 0px rgba(0, 0, 0, 0.14),
|
|
13
|
+
0px 1px 14px 0px rgba(0, 0, 0, 0.12);
|
|
14
|
+
border: none;
|
|
15
|
+
border-radius: 20px 20px 0 0;
|
|
16
|
+
z-index: 1100;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
export const StyledBox = styled(animated.div) `
|
|
20
|
+
background-color: ${props => getOffsetNavigationBackground(props.theme)};
|
|
21
|
+
padding: ${props => props.theme.spacing(3, 2.5, '80px', 2.5)};
|
|
22
|
+
height: 100%;
|
|
23
|
+
`;
|
|
24
|
+
export const StyledOutlinedInputLabel = styled(InputLabel) `
|
|
25
|
+
background-color: ${props => getOffsetNavigationBackground(props.theme)};
|
|
26
|
+
color: ${props => getOffsetNavigationContrastText(props.theme)};
|
|
27
|
+
|
|
28
|
+
&.MuiInputLabel-root.Mui-focused {
|
|
29
|
+
background-color: ${props => getOffsetNavigationBackground(props.theme)};
|
|
30
|
+
color: ${props => getOffsetNavigationContrastText(props.theme)};
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
export const StyledOutlinedInput = styled(OutlinedInput) `
|
|
34
|
+
.MuiInputBase-input {
|
|
35
|
+
color: ${props => getOffsetNavigationContrastText(props.theme)};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
fieldset {
|
|
39
|
+
border-color: ${props => getOffsetNavigationContrastText(props.theme)} !important;
|
|
40
|
+
transition: all 0.2s ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.MuiOutlinedInput-root:hover fieldset,
|
|
44
|
+
&.MuiOutlinedInput-root:focus fieldset {
|
|
45
|
+
border-width: 2px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.MuiIconButton-root {
|
|
49
|
+
color: ${props => getOffsetNavigationContrastText(props.theme)};
|
|
50
|
+
}
|
|
51
|
+
`;
|