@dnanpm/styleguide 3.10.0 → 3.11.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/build/cjs/components/Accordion/Accordion.js +3 -4
- package/build/cjs/components/AccordionItem/AccordionItem.js +17 -16
- package/build/cjs/components/AmountSelector/AmountSelector.d.ts +17 -1
- package/build/cjs/components/AmountSelector/AmountSelector.js +53 -10
- package/build/cjs/components/Box/Box.js +6 -7
- package/build/cjs/components/Button/Button.js +26 -23
- package/build/cjs/components/ButtonArrow/ButtonArrow.js +3 -4
- package/build/cjs/components/ButtonCard/ButtonCard.js +9 -10
- package/build/cjs/components/ButtonClose/ButtonClose.js +2 -2
- package/build/cjs/components/ButtonIcon/ButtonIcon.js +9 -10
- package/build/cjs/components/ButtonPrimary/ButtonPrimary.js +2 -6
- package/build/cjs/components/ButtonRound/ButtonRound.js +2 -3
- package/build/cjs/components/ButtonSecondary/ButtonSecondary.js +2 -6
- package/build/cjs/components/Carousel/Carousel.d.ts +6 -169
- package/build/cjs/components/Carousel/Carousel.js +23 -23
- package/build/cjs/components/Checkbox/Checkbox.js +5 -5
- package/build/cjs/components/Chip/Chip.js +2 -3
- package/build/cjs/components/DateTimePicker/DateTimePicker.js +17 -6
- package/build/cjs/components/Divider/Divider.js +5 -6
- package/build/cjs/components/DnaLogo/DnaLogo.js +4 -4
- package/build/cjs/components/Drawer/Drawer.js +26 -26
- package/build/cjs/components/EmptyState/EmptyState.js +2 -2
- package/build/cjs/components/EnergyLabel/EnergyLabel.js +11 -11
- package/build/cjs/components/Expander/Expander.js +5 -5
- package/build/cjs/components/Floater/Floater.js +5 -6
- package/build/cjs/components/Footer/Components/FooterComponents.d.ts +3 -168
- package/build/cjs/components/Footer/Components/FooterComponents.js +33 -32
- package/build/cjs/components/Footer/Footer.js +5 -5
- package/build/cjs/components/Icon/Icon.js +6 -6
- package/build/cjs/components/InfoDialog/InfoDialog.js +4 -4
- package/build/cjs/components/Input/Input.js +24 -16
- package/build/cjs/components/Label/Label.js +2 -2
- package/build/cjs/components/LabelText/LabelText.js +5 -5
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/BusinessMenu.js +8 -8
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/DesktopMenu.js +11 -11
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/LanguageSelector.js +2 -2
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +2 -167
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.js +5 -5
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -167
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +2 -2
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.js +2 -2
- package/build/cjs/components/MainHeaderNavigation/ChildComponents/MobileMenu.js +4 -4
- package/build/cjs/components/MainHeaderNavigation/MainHeaderNavigation.js +6 -6
- package/build/cjs/components/MainHeaderNavigation/globalNavStyles.d.ts +16 -1501
- package/build/cjs/components/MainHeaderNavigation/globalNavStyles.js +10 -10
- package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +4 -4
- package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +11 -11
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +2 -167
- package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +9 -9
- package/build/cjs/components/MainNavigation/ChildComponents/LanguageSelector.js +2 -2
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenu.js +5 -5
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -167
- package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +2 -2
- package/build/cjs/components/MainNavigation/ChildComponents/MobileMenu.js +5 -5
- package/build/cjs/components/MainNavigation/ChildComponents/Ribbon.js +4 -4
- package/build/cjs/components/MainNavigation/MainNavigation.js +6 -6
- package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +8 -668
- package/build/cjs/components/MainNavigation/globalNavStyles.js +5 -5
- package/build/cjs/components/Modal/Modal.js +16 -16
- package/build/cjs/components/Notification/Notification.js +7 -8
- package/build/cjs/components/NotificationBadge/NotificationBadge.js +7 -7
- package/build/cjs/components/Overlay/Overlay.js +2 -2
- package/build/cjs/components/Pill/Pill.js +11 -12
- package/build/cjs/components/PixelLoader/PixelLoader.js +9 -9
- package/build/cjs/components/PriorityNavigation/PriorityNavigation.js +13 -13
- package/build/cjs/components/PriorityNavigationItem/PriorityNavigationItem.js +7 -7
- package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +6 -6
- package/build/cjs/components/RadioButton/RadioButton.js +4 -4
- package/build/cjs/components/ReadMore/ReadMore.js +10 -10
- package/build/cjs/components/Search/Search.js +4 -4
- package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +9 -9
- package/build/cjs/components/Selectbox/Selectbox.js +3 -3
- package/build/cjs/components/Switch/Switch.js +19 -19
- package/build/cjs/components/Tab/Tab.js +10 -10
- package/build/cjs/components/Tabs/Tabs.js +10 -10
- package/build/cjs/components/Textarea/Textarea.d.ts +5 -1
- package/build/cjs/components/Textarea/Textarea.js +12 -9
- package/build/cjs/components/Toaster/Toaster.js +6 -7
- package/build/cjs/components/Tooltip/Tooltip.js +6 -6
- package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +4 -334
- package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.js +5 -4
- package/build/cjs/components/TooltipMenu/TooltipMenu.js +5 -5
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +5 -2
- package/build/cjs/themes/globalStyles.d.ts +2 -332
- package/build/cjs/themes/globalStyles.js +3 -3
- package/build/cjs/themes/styled.d.ts +1 -1158
- package/build/cjs/utils/createStyled.d.ts +140 -7
- package/build/cjs/utils/createStyled.js +3 -3
- package/build/cjs/utils/styledUtils.js +3 -3
- package/build/es/components/Accordion/Accordion.js +2 -2
- package/build/es/components/AccordionItem/AccordionItem.js +15 -13
- package/build/es/components/AmountSelector/AmountSelector.d.ts +17 -1
- package/build/es/components/AmountSelector/AmountSelector.js +50 -7
- package/build/es/components/Box/Box.js +6 -6
- package/build/es/components/Button/Button.js +26 -22
- package/build/es/components/ButtonArrow/ButtonArrow.js +3 -3
- package/build/es/components/ButtonCard/ButtonCard.js +9 -9
- package/build/es/components/ButtonClose/ButtonClose.js +1 -1
- package/build/es/components/ButtonIcon/ButtonIcon.js +8 -8
- package/build/es/components/ButtonPrimary/ButtonPrimary.js +2 -2
- package/build/es/components/ButtonRound/ButtonRound.js +2 -2
- package/build/es/components/ButtonSecondary/ButtonSecondary.js +2 -2
- package/build/es/components/Carousel/Carousel.d.ts +6 -169
- package/build/es/components/Carousel/Carousel.js +9 -9
- package/build/es/components/Checkbox/Checkbox.js +1 -1
- package/build/es/components/Chip/Chip.js +2 -2
- package/build/es/components/DateTimePicker/DateTimePicker.js +17 -5
- package/build/es/components/Divider/Divider.js +5 -5
- package/build/es/components/DnaLogo/DnaLogo.js +3 -3
- package/build/es/components/Drawer/Drawer.js +12 -12
- package/build/es/components/EmptyState/EmptyState.js +1 -1
- package/build/es/components/EnergyLabel/EnergyLabel.js +5 -5
- package/build/es/components/Expander/Expander.js +1 -1
- package/build/es/components/Floater/Floater.js +5 -5
- package/build/es/components/Footer/Components/FooterComponents.d.ts +3 -168
- package/build/es/components/Footer/Components/FooterComponents.js +16 -15
- package/build/es/components/Footer/Footer.js +3 -3
- package/build/es/components/Icon/Icon.js +5 -5
- package/build/es/components/InfoDialog/InfoDialog.js +3 -3
- package/build/es/components/Input/Input.js +17 -9
- package/build/es/components/Label/Label.js +1 -1
- package/build/es/components/LabelText/LabelText.js +3 -3
- package/build/es/components/MainHeaderNavigation/ChildComponents/BusinessMenu.js +6 -6
- package/build/es/components/MainHeaderNavigation/ChildComponents/DesktopMenu.js +1 -1
- package/build/es/components/MainHeaderNavigation/ChildComponents/LanguageSelector.js +1 -1
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +2 -167
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.js +1 -1
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -167
- package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +1 -1
- package/build/es/components/MainHeaderNavigation/ChildComponents/MinicartTooltip.js +2 -2
- package/build/es/components/MainHeaderNavigation/ChildComponents/MobileMenu.js +1 -1
- package/build/es/components/MainHeaderNavigation/MainHeaderNavigation.js +1 -1
- package/build/es/components/MainHeaderNavigation/globalNavStyles.d.ts +16 -1501
- package/build/es/components/MainHeaderNavigation/globalNavStyles.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +2 -167
- package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/LanguageSelector.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +2 -167
- package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/MobileMenu.js +1 -1
- package/build/es/components/MainNavigation/ChildComponents/Ribbon.js +1 -1
- package/build/es/components/MainNavigation/MainNavigation.js +1 -1
- package/build/es/components/MainNavigation/globalNavStyles.d.ts +8 -668
- package/build/es/components/MainNavigation/globalNavStyles.js +1 -1
- package/build/es/components/Modal/Modal.js +6 -6
- package/build/es/components/Notification/Notification.js +6 -6
- package/build/es/components/NotificationBadge/NotificationBadge.js +5 -5
- package/build/es/components/Overlay/Overlay.js +1 -1
- package/build/es/components/Pill/Pill.js +11 -11
- package/build/es/components/PixelLoader/PixelLoader.js +6 -6
- package/build/es/components/PriorityNavigation/PriorityNavigation.js +4 -4
- package/build/es/components/PriorityNavigationItem/PriorityNavigationItem.js +6 -6
- package/build/es/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/build/es/components/RadioButton/RadioButton.js +1 -1
- package/build/es/components/ReadMore/ReadMore.js +6 -6
- package/build/es/components/Search/Search.js +1 -1
- package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +1 -1
- package/build/es/components/Selectbox/Selectbox.js +1 -1
- package/build/es/components/Switch/Switch.js +14 -14
- package/build/es/components/Tab/Tab.js +7 -7
- package/build/es/components/Tabs/Tabs.js +8 -8
- package/build/es/components/Textarea/Textarea.d.ts +5 -1
- package/build/es/components/Textarea/Textarea.js +8 -5
- package/build/es/components/Toaster/Toaster.js +6 -6
- package/build/es/components/Tooltip/Tooltip.js +4 -4
- package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +4 -334
- package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.js +3 -2
- package/build/es/components/TooltipMenu/TooltipMenu.js +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/themes/globalStyles.d.ts +2 -332
- package/build/es/themes/globalStyles.js +1 -1
- package/build/es/themes/styled.d.ts +1 -1158
- package/build/es/utils/createStyled.d.ts +140 -7
- package/build/es/utils/createStyled.js +3 -3
- package/build/es/utils/styledUtils.js +1 -1
- package/package.json +4 -5
- package/build/cjs/themes/styled.js +0 -14
- package/build/es/themes/styled.js +0 -5
|
@@ -23,174 +23,9 @@ interface MainNavTooltipMenuProps<ContentProps extends object = object> extends
|
|
|
23
23
|
/** Adjust menu to be full width after this number. default xs (480). */
|
|
24
24
|
fullWidthBreakpoint?: number;
|
|
25
25
|
}
|
|
26
|
-
export declare const IconContainer: import("styled-components").
|
|
27
|
-
base: {
|
|
28
|
-
baseHeight: {
|
|
29
|
-
value: number;
|
|
30
|
-
unit: string;
|
|
31
|
-
};
|
|
32
|
-
baseWidth: {
|
|
33
|
-
value: number;
|
|
34
|
-
unit: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
breakpoints: import("../../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
38
|
-
color: {
|
|
39
|
-
default: {
|
|
40
|
-
pink: string;
|
|
41
|
-
plum: string;
|
|
42
|
-
white: string;
|
|
43
|
-
black: string;
|
|
44
|
-
};
|
|
45
|
-
accent: {
|
|
46
|
-
lemon: string;
|
|
47
|
-
sky: string;
|
|
48
|
-
orange: string;
|
|
49
|
-
};
|
|
50
|
-
active: {
|
|
51
|
-
pink: string;
|
|
52
|
-
};
|
|
53
|
-
hover: {
|
|
54
|
-
pink: string;
|
|
55
|
-
};
|
|
56
|
-
text: {
|
|
57
|
-
gray: string;
|
|
58
|
-
pink: string;
|
|
59
|
-
plum: string;
|
|
60
|
-
white: string;
|
|
61
|
-
black: string;
|
|
62
|
-
};
|
|
63
|
-
line: {
|
|
64
|
-
L01: string;
|
|
65
|
-
L02: string;
|
|
66
|
-
L03: string;
|
|
67
|
-
L04: string;
|
|
68
|
-
};
|
|
69
|
-
notification: {
|
|
70
|
-
info: string;
|
|
71
|
-
success: string;
|
|
72
|
-
warning: string;
|
|
73
|
-
error: string;
|
|
74
|
-
};
|
|
75
|
-
background: {
|
|
76
|
-
sand: {
|
|
77
|
-
default: string;
|
|
78
|
-
E01: string;
|
|
79
|
-
E02: string;
|
|
80
|
-
};
|
|
81
|
-
pink: {
|
|
82
|
-
default: string;
|
|
83
|
-
E01: string;
|
|
84
|
-
E02: string;
|
|
85
|
-
};
|
|
86
|
-
plum: {
|
|
87
|
-
default: string;
|
|
88
|
-
E01: string;
|
|
89
|
-
E02: string;
|
|
90
|
-
};
|
|
91
|
-
lemon: {
|
|
92
|
-
default: string;
|
|
93
|
-
E01: string;
|
|
94
|
-
E02: string;
|
|
95
|
-
};
|
|
96
|
-
sky: {
|
|
97
|
-
default: string;
|
|
98
|
-
E01: string;
|
|
99
|
-
E02: string;
|
|
100
|
-
};
|
|
101
|
-
orange: {
|
|
102
|
-
default: string;
|
|
103
|
-
E01: string;
|
|
104
|
-
E02: string;
|
|
105
|
-
};
|
|
106
|
-
white: {
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
focus: {
|
|
111
|
-
dark: string;
|
|
112
|
-
light: string;
|
|
113
|
-
};
|
|
114
|
-
transparency: {
|
|
115
|
-
T0: string;
|
|
116
|
-
T10: string;
|
|
117
|
-
T20: string;
|
|
118
|
-
T30: string;
|
|
119
|
-
T40: string;
|
|
120
|
-
T50: string;
|
|
121
|
-
T60: string;
|
|
122
|
-
T70: string;
|
|
123
|
-
T80: string;
|
|
124
|
-
T90: string;
|
|
125
|
-
T100: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
fontFamily: {
|
|
129
|
-
default: string;
|
|
130
|
-
heading: string;
|
|
131
|
-
numerals: string;
|
|
132
|
-
};
|
|
133
|
-
fontSize: {
|
|
134
|
-
default: string;
|
|
135
|
-
xl: string;
|
|
136
|
-
l: string;
|
|
137
|
-
s: string;
|
|
138
|
-
xs: string;
|
|
139
|
-
h1XL: string;
|
|
140
|
-
h1L: string;
|
|
141
|
-
h1M: string;
|
|
142
|
-
h1S: string;
|
|
143
|
-
h2M: string;
|
|
144
|
-
h2S: string;
|
|
145
|
-
h3: string;
|
|
146
|
-
h4: string;
|
|
147
|
-
h5: string;
|
|
148
|
-
h1: string;
|
|
149
|
-
h2: string;
|
|
150
|
-
};
|
|
151
|
-
fontWeight: {
|
|
152
|
-
book: number;
|
|
153
|
-
medium: number;
|
|
154
|
-
bold: number;
|
|
155
|
-
black: number;
|
|
156
|
-
};
|
|
157
|
-
form: {
|
|
158
|
-
smallSelectWidth: string;
|
|
159
|
-
smallSelectHeight: string;
|
|
160
|
-
};
|
|
161
|
-
grid: {
|
|
162
|
-
gutter: string;
|
|
163
|
-
};
|
|
164
|
-
lineHeight: {
|
|
165
|
-
default: string;
|
|
166
|
-
xl: string;
|
|
167
|
-
s: string;
|
|
168
|
-
xs: string;
|
|
169
|
-
xxs: string;
|
|
170
|
-
auto: string;
|
|
171
|
-
h1XL: string;
|
|
172
|
-
h1L: string;
|
|
173
|
-
h1M: string;
|
|
174
|
-
h1S: string;
|
|
175
|
-
h2M: string;
|
|
176
|
-
h2S: string;
|
|
177
|
-
h3: string;
|
|
178
|
-
h4: string;
|
|
179
|
-
h5: string;
|
|
180
|
-
h1: string;
|
|
181
|
-
h2: string;
|
|
182
|
-
};
|
|
183
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: (string | number)[]) => string>;
|
|
184
|
-
radius: {
|
|
185
|
-
default: string;
|
|
186
|
-
s: string;
|
|
187
|
-
xs: string;
|
|
188
|
-
circle: string;
|
|
189
|
-
pill: string;
|
|
190
|
-
};
|
|
191
|
-
}, {
|
|
26
|
+
export declare const IconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
192
27
|
isActive?: boolean;
|
|
193
28
|
collapseSize: number;
|
|
194
|
-
}
|
|
29
|
+
}>> & string;
|
|
195
30
|
declare const MainNavTooltipMenu: <ContentProps extends object = object>({ ariaLabel, children, closeWhenTagClicked, contentComponent, contentWidth, fullWidthBreakpoint, fullWidthDesktop, globalStateString, tooltipRight, zIndex, ...props }: MainNavTooltipMenuProps<ContentProps>) => React.JSX.Element;
|
|
196
31
|
export default MainNavTooltipMenu;
|
|
@@ -2,7 +2,7 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import React__default, { useContext, useRef, useEffect } from 'react';
|
|
3
3
|
import useCloseOutsideOrElementClicked from '../../../hooks/useCloseOutsideOrElementClicked.js';
|
|
4
4
|
import useDocHeight from '../../../hooks/useDocHeight.js';
|
|
5
|
-
import styled from '
|
|
5
|
+
import { styled } from 'styled-components';
|
|
6
6
|
import theme from '../../../themes/theme.js';
|
|
7
7
|
import { IconContainerMinWidth, navIconSize, navMaxHeight } from '../../../themes/themeComponents/navigation.js';
|
|
8
8
|
import { getMultipliedSize } from '../../../utils/styledUtils.js';
|
|
@@ -1,172 +1,7 @@
|
|
|
1
|
-
declare const TooltipWrapper: import("styled-components").
|
|
2
|
-
base: {
|
|
3
|
-
baseHeight: {
|
|
4
|
-
value: number;
|
|
5
|
-
unit: string;
|
|
6
|
-
};
|
|
7
|
-
baseWidth: {
|
|
8
|
-
value: number;
|
|
9
|
-
unit: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
breakpoints: import("../../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
13
|
-
color: {
|
|
14
|
-
default: {
|
|
15
|
-
pink: string;
|
|
16
|
-
plum: string;
|
|
17
|
-
white: string;
|
|
18
|
-
black: string;
|
|
19
|
-
};
|
|
20
|
-
accent: {
|
|
21
|
-
lemon: string;
|
|
22
|
-
sky: string;
|
|
23
|
-
orange: string;
|
|
24
|
-
};
|
|
25
|
-
active: {
|
|
26
|
-
pink: string;
|
|
27
|
-
};
|
|
28
|
-
hover: {
|
|
29
|
-
pink: string;
|
|
30
|
-
};
|
|
31
|
-
text: {
|
|
32
|
-
gray: string;
|
|
33
|
-
pink: string;
|
|
34
|
-
plum: string;
|
|
35
|
-
white: string;
|
|
36
|
-
black: string;
|
|
37
|
-
};
|
|
38
|
-
line: {
|
|
39
|
-
L01: string;
|
|
40
|
-
L02: string;
|
|
41
|
-
L03: string;
|
|
42
|
-
L04: string;
|
|
43
|
-
};
|
|
44
|
-
notification: {
|
|
45
|
-
info: string;
|
|
46
|
-
success: string;
|
|
47
|
-
warning: string;
|
|
48
|
-
error: string;
|
|
49
|
-
};
|
|
50
|
-
background: {
|
|
51
|
-
sand: {
|
|
52
|
-
default: string;
|
|
53
|
-
E01: string;
|
|
54
|
-
E02: string;
|
|
55
|
-
};
|
|
56
|
-
pink: {
|
|
57
|
-
default: string;
|
|
58
|
-
E01: string;
|
|
59
|
-
E02: string;
|
|
60
|
-
};
|
|
61
|
-
plum: {
|
|
62
|
-
default: string;
|
|
63
|
-
E01: string;
|
|
64
|
-
E02: string;
|
|
65
|
-
};
|
|
66
|
-
lemon: {
|
|
67
|
-
default: string;
|
|
68
|
-
E01: string;
|
|
69
|
-
E02: string;
|
|
70
|
-
};
|
|
71
|
-
sky: {
|
|
72
|
-
default: string;
|
|
73
|
-
E01: string;
|
|
74
|
-
E02: string;
|
|
75
|
-
};
|
|
76
|
-
orange: {
|
|
77
|
-
default: string;
|
|
78
|
-
E01: string;
|
|
79
|
-
E02: string;
|
|
80
|
-
};
|
|
81
|
-
white: {
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
focus: {
|
|
86
|
-
dark: string;
|
|
87
|
-
light: string;
|
|
88
|
-
};
|
|
89
|
-
transparency: {
|
|
90
|
-
T0: string;
|
|
91
|
-
T10: string;
|
|
92
|
-
T20: string;
|
|
93
|
-
T30: string;
|
|
94
|
-
T40: string;
|
|
95
|
-
T50: string;
|
|
96
|
-
T60: string;
|
|
97
|
-
T70: string;
|
|
98
|
-
T80: string;
|
|
99
|
-
T90: string;
|
|
100
|
-
T100: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
fontFamily: {
|
|
104
|
-
default: string;
|
|
105
|
-
heading: string;
|
|
106
|
-
numerals: string;
|
|
107
|
-
};
|
|
108
|
-
fontSize: {
|
|
109
|
-
default: string;
|
|
110
|
-
xl: string;
|
|
111
|
-
l: string;
|
|
112
|
-
s: string;
|
|
113
|
-
xs: string;
|
|
114
|
-
h1XL: string;
|
|
115
|
-
h1L: string;
|
|
116
|
-
h1M: string;
|
|
117
|
-
h1S: string;
|
|
118
|
-
h2M: string;
|
|
119
|
-
h2S: string;
|
|
120
|
-
h3: string;
|
|
121
|
-
h4: string;
|
|
122
|
-
h5: string;
|
|
123
|
-
h1: string;
|
|
124
|
-
h2: string;
|
|
125
|
-
};
|
|
126
|
-
fontWeight: {
|
|
127
|
-
book: number;
|
|
128
|
-
medium: number;
|
|
129
|
-
bold: number;
|
|
130
|
-
black: number;
|
|
131
|
-
};
|
|
132
|
-
form: {
|
|
133
|
-
smallSelectWidth: string;
|
|
134
|
-
smallSelectHeight: string;
|
|
135
|
-
};
|
|
136
|
-
grid: {
|
|
137
|
-
gutter: string;
|
|
138
|
-
};
|
|
139
|
-
lineHeight: {
|
|
140
|
-
default: string;
|
|
141
|
-
xl: string;
|
|
142
|
-
s: string;
|
|
143
|
-
xs: string;
|
|
144
|
-
xxs: string;
|
|
145
|
-
auto: string;
|
|
146
|
-
h1XL: string;
|
|
147
|
-
h1L: string;
|
|
148
|
-
h1M: string;
|
|
149
|
-
h1S: string;
|
|
150
|
-
h2M: string;
|
|
151
|
-
h2S: string;
|
|
152
|
-
h3: string;
|
|
153
|
-
h4: string;
|
|
154
|
-
h5: string;
|
|
155
|
-
h1: string;
|
|
156
|
-
h2: string;
|
|
157
|
-
};
|
|
158
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: (string | number)[]) => string>;
|
|
159
|
-
radius: {
|
|
160
|
-
default: string;
|
|
161
|
-
s: string;
|
|
162
|
-
xs: string;
|
|
163
|
-
circle: string;
|
|
164
|
-
pill: string;
|
|
165
|
-
};
|
|
166
|
-
}, {
|
|
1
|
+
declare const TooltipWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
167
2
|
collapseSize: number;
|
|
168
3
|
isHighlighted?: boolean;
|
|
169
4
|
isLoggedIn?: boolean;
|
|
170
|
-
}
|
|
5
|
+
}>> & string;
|
|
171
6
|
export default TooltipWrapper;
|
|
172
7
|
export { TooltipWrapper };
|
|
@@ -7,9 +7,9 @@ import MainNavTooltipMenu from './MainNavTooltipMenu.js';
|
|
|
7
7
|
|
|
8
8
|
const MinicartTooltip = ({ minicartAmount, minicartAmountLabel, minicartLabel, onCartButtonClick, }) => {
|
|
9
9
|
const { navZIndex, minicartComponent } = useContext(NavContext);
|
|
10
|
-
return (React__default.createElement(MainNavTooltipMenu, {
|
|
10
|
+
return (React__default.createElement(MainNavTooltipMenu, { closeWhenTagClicked: ['a', 'button'], onCartButtonClick: onCartButtonClick, contentComponent: minicartComponent, contentWidth: "35rem", fullWidthBreakpoint: theme.breakpoints.md, globalStateString: "minicart", tooltipRight: "5rem", zIndex: navZIndex + 1 },
|
|
11
11
|
React__default.createElement(Cart, null),
|
|
12
|
-
React__default.createElement("span", { "aria-hidden":
|
|
12
|
+
React__default.createElement("span", { "aria-hidden": !!minicartAmountLabel }, minicartLabel),
|
|
13
13
|
minicartAmount > 0 && (React__default.createElement(NotificationBadge, { "data-testid": "header-minicart-amount", right: "5px", top: "-5px", visuallyHiddenText: minicartAmountLabel }, minicartAmount))));
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChevronLeft, ChevronRight } from '@dnanpm/icons';
|
|
2
2
|
import React__default, { useContext, useRef, useMemo } from 'react';
|
|
3
3
|
import { animated, useSpring } from 'react-spring';
|
|
4
|
-
import styled from '
|
|
4
|
+
import { styled } from 'styled-components';
|
|
5
5
|
import theme from '../../../themes/theme.js';
|
|
6
6
|
import { menuLevelsAmount, navMaxHeight, mobileNavMaxWidth, headerMaxHeight } from '../../../themes/themeComponents/navigation.js';
|
|
7
7
|
import { getMultipliedSize } from '../../../utils/styledUtils.js';
|
|
@@ -4,7 +4,7 @@ import { prop, indexBy } from 'ramda';
|
|
|
4
4
|
import React__default, { useRef, useMemo, useState, useEffect } from 'react';
|
|
5
5
|
import useScrollPosition from '../../hooks/useScrollPosition.js';
|
|
6
6
|
import useWindowSize from '../../hooks/useWindowSize.js';
|
|
7
|
-
import
|
|
7
|
+
import { createGlobalStyle, keyframes, styled } from 'styled-components';
|
|
8
8
|
import theme from '../../themes/theme.js';
|
|
9
9
|
import { navMaxHeight, headerLogoSize } from '../../themes/themeComponents/navigation.js';
|
|
10
10
|
import { getMultipliedSize } from '../../utils/styledUtils.js';
|