@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
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var icons = require('@dnanpm/icons');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
7
|
+
var styledComponents = require('styled-components');
|
|
8
8
|
var theme = require('../../../themes/theme.js');
|
|
9
9
|
var navigation = require('../../../themes/themeComponents/navigation.js');
|
|
10
10
|
var styledUtils = require('../../../utils/styledUtils.js');
|
|
@@ -16,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
18
|
|
|
19
|
-
const MenuItem = styled
|
|
19
|
+
const MenuItem = styledComponents.styled(globalNavStyles.MenuLink) `
|
|
20
20
|
font-weight: ${theme.default.fontWeight.medium};
|
|
21
21
|
margin: ${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 1)} auto;
|
|
22
22
|
text-align: center;
|
|
@@ -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;
|
|
@@ -6,7 +6,7 @@ var tslib = require('tslib');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var useCloseOutsideOrElementClicked = require('../../../hooks/useCloseOutsideOrElementClicked.js');
|
|
8
8
|
var useDocHeight = require('../../../hooks/useDocHeight.js');
|
|
9
|
-
var
|
|
9
|
+
var styledComponents = require('styled-components');
|
|
10
10
|
var theme = require('../../../themes/theme.js');
|
|
11
11
|
var navigation = require('../../../themes/themeComponents/navigation.js');
|
|
12
12
|
var styledUtils = require('../../../utils/styledUtils.js');
|
|
@@ -19,7 +19,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
19
|
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
21
21
|
|
|
22
|
-
const IconContainer = styled.
|
|
22
|
+
const IconContainer = styledComponents.styled.div `
|
|
23
23
|
margin: 0;
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
@@ -45,7 +45,7 @@ const IconContainer = styled.default.div `
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
`;
|
|
48
|
-
const Tooltip = styled.
|
|
48
|
+
const Tooltip = styledComponents.styled.div `
|
|
49
49
|
min-height: ${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 5)};
|
|
50
50
|
// Ensure that the tooltip's content is always visible within the viewport. So, the max-height is the viewport height minus the header's height + some margin.
|
|
51
51
|
max-height: calc(var(--vh100, 100vh) - ${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 12)});
|
|
@@ -62,13 +62,13 @@ const Tooltip = styled.default.div `
|
|
|
62
62
|
right: ${p => (p.fullWidthDesktop ? 0 : p.tooltipRight)};
|
|
63
63
|
}
|
|
64
64
|
`;
|
|
65
|
-
const TooltipBox = styled
|
|
65
|
+
const TooltipBox = styledComponents.styled(Box.default) `
|
|
66
66
|
border-top-left-radius: 0 !important;
|
|
67
67
|
border-top-right-radius: 0 !important;
|
|
68
68
|
min-height: inherit;
|
|
69
69
|
max-height: inherit;
|
|
70
70
|
`;
|
|
71
|
-
const Caret = styled.
|
|
71
|
+
const Caret = styledComponents.styled.div `
|
|
72
72
|
position: absolute;
|
|
73
73
|
z-index: ${p => p.zIndex + 1};
|
|
74
74
|
top: ${navigation.navMaxHeight};
|
|
@@ -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 };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var styledComponents = require('styled-components');
|
|
6
6
|
var theme = require('../../../themes/theme.js');
|
|
7
7
|
var navigation = require('../../../themes/themeComponents/navigation.js');
|
|
8
8
|
|
|
9
|
-
const TooltipWrapper = styled.
|
|
9
|
+
const TooltipWrapper = styledComponents.styled.button `
|
|
10
10
|
position: relative;
|
|
11
11
|
border: none;
|
|
12
12
|
margin: 0;
|
|
@@ -15,9 +15,9 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
15
15
|
|
|
16
16
|
const MinicartTooltip = ({ minicartAmount, minicartAmountLabel, minicartLabel, onCartButtonClick, }) => {
|
|
17
17
|
const { navZIndex, minicartComponent } = React.useContext(NavContext.default);
|
|
18
|
-
return (React__default.default.createElement(MainNavTooltipMenu.default, {
|
|
18
|
+
return (React__default.default.createElement(MainNavTooltipMenu.default, { closeWhenTagClicked: ['a', 'button'], onCartButtonClick: onCartButtonClick, contentComponent: minicartComponent, contentWidth: "35rem", fullWidthBreakpoint: theme.default.breakpoints.md, globalStateString: "minicart", tooltipRight: "5rem", zIndex: navZIndex + 1 },
|
|
19
19
|
React__default.default.createElement(icons.Cart, null),
|
|
20
|
-
React__default.default.createElement("span", { "aria-hidden":
|
|
20
|
+
React__default.default.createElement("span", { "aria-hidden": !!minicartAmountLabel }, minicartLabel),
|
|
21
21
|
minicartAmount > 0 && (React__default.default.createElement(NotificationBadge.default, { "data-testid": "header-minicart-amount", right: "5px", top: "-5px", visuallyHiddenText: minicartAmountLabel }, minicartAmount))));
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var icons = require('@dnanpm/icons');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactSpring = require('react-spring');
|
|
8
|
-
var
|
|
8
|
+
var styledComponents = require('styled-components');
|
|
9
9
|
var theme = require('../../../themes/theme.js');
|
|
10
10
|
var navigation = require('../../../themes/themeComponents/navigation.js');
|
|
11
11
|
var styledUtils = require('../../../utils/styledUtils.js');
|
|
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
20
20
|
|
|
21
|
-
const MobileMenuWrapper = styled
|
|
21
|
+
const MobileMenuWrapper = styledComponents.styled(reactSpring.animated.div) `
|
|
22
22
|
width: ${100 * navigation.menuLevelsAmount}%;
|
|
23
23
|
display: flex;
|
|
24
24
|
button {
|
|
@@ -27,8 +27,8 @@ const MobileMenuWrapper = styled.default(reactSpring.animated.div) `
|
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
29
|
const mobileMenu = `calc(100vh - ${navigation.headerMaxHeight})`;
|
|
30
|
-
const MenuLinkBackLink = styled
|
|
31
|
-
const MobileMenuContainer = styled.
|
|
30
|
+
const MenuLinkBackLink = styledComponents.styled(globalNavStyles.MenuLink) ``;
|
|
31
|
+
const MobileMenuContainer = styledComponents.styled.div `
|
|
32
32
|
width: 100%;
|
|
33
33
|
position: absolute;
|
|
34
34
|
top: ${navigation.navMaxHeight};
|
|
@@ -8,7 +8,7 @@ var ramda = require('ramda');
|
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var useScrollPosition = require('../../hooks/useScrollPosition.js');
|
|
10
10
|
var useWindowSize = require('../../hooks/useWindowSize.js');
|
|
11
|
-
var
|
|
11
|
+
var styledComponents = require('styled-components');
|
|
12
12
|
var theme = require('../../themes/theme.js');
|
|
13
13
|
var navigation = require('../../themes/themeComponents/navigation.js');
|
|
14
14
|
var styledUtils = require('../../utils/styledUtils.js');
|
|
@@ -29,7 +29,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
29
29
|
|
|
30
30
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
31
31
|
|
|
32
|
-
const GlobalStyle =
|
|
32
|
+
const GlobalStyle = styledComponents.createGlobalStyle `
|
|
33
33
|
body.overflow-hidden {
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
}
|
|
@@ -44,7 +44,7 @@ const isIosDevice = () => {
|
|
|
44
44
|
return false;
|
|
45
45
|
};
|
|
46
46
|
const iosDevice = isIosDevice();
|
|
47
|
-
const fadeIn =
|
|
47
|
+
const fadeIn = styledComponents.keyframes `
|
|
48
48
|
0% {
|
|
49
49
|
opacity: 0;
|
|
50
50
|
transform: translateY(-5px);
|
|
@@ -74,7 +74,7 @@ const resumeBodyScroll = () => {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
const PageOverlay = styled.
|
|
77
|
+
const PageOverlay = styledComponents.styled.div `
|
|
78
78
|
position: fixed;
|
|
79
79
|
animation: ${fadeIn} 0.2s ease-in-out;
|
|
80
80
|
top: 0;
|
|
@@ -91,7 +91,7 @@ const checkThreshold = (prevPos, currPos) => {
|
|
|
91
91
|
}
|
|
92
92
|
return currPos - prevPos > scrollThreshold;
|
|
93
93
|
};
|
|
94
|
-
const GlobalNavigationContainer = styled.
|
|
94
|
+
const GlobalNavigationContainer = styledComponents.styled.header `
|
|
95
95
|
z-index: ${({ navZIndex }) => navZIndex};
|
|
96
96
|
position: sticky;
|
|
97
97
|
top: 0;
|
|
@@ -106,7 +106,7 @@ const GlobalNavigationContainer = styled.default.header `
|
|
|
106
106
|
background-color: ${theme.default.color.background.plum.E02};
|
|
107
107
|
}
|
|
108
108
|
`;
|
|
109
|
-
const NavigationWrapper = styled.
|
|
109
|
+
const NavigationWrapper = styledComponents.styled.div `
|
|
110
110
|
display: flex;
|
|
111
111
|
width: 100%;
|
|
112
112
|
max-width: ${styledUtils.getMultipliedSize(theme.default.base.baseWidth, 256)};
|