@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 tslib = require('tslib');
|
|
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 styledUtils = require('../../utils/styledUtils.js');
|
|
10
10
|
var ButtonPrimary = require('../ButtonPrimary/ButtonPrimary.js');
|
|
@@ -12,9 +12,8 @@ var ButtonPrimary = require('../ButtonPrimary/ButtonPrimary.js');
|
|
|
12
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
16
15
|
|
|
17
|
-
const ButtonElement =
|
|
16
|
+
const ButtonElement = styledComponents.styled(ButtonPrimary.default) `
|
|
18
17
|
display: flex;
|
|
19
18
|
min-width: initial;
|
|
20
19
|
width: ${styledUtils.getMultipliedSize(theme.default.base.baseWidth, 3.2)};
|
|
@@ -2,16 +2,12 @@
|
|
|
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 Button = require('../Button/Button.js');
|
|
8
8
|
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
12
|
-
|
|
13
9
|
/** @visibleName Button Secondary */
|
|
14
|
-
const ButtonSecondary =
|
|
10
|
+
const ButtonSecondary = styledComponents.styled(Button.default) `
|
|
15
11
|
color: ${theme.default.color.text.plum};
|
|
16
12
|
background-color: ${theme.default.color.background.sand.E02};
|
|
17
13
|
border: 2px solid ${theme.default.color.line.L02};
|
|
@@ -73,175 +73,12 @@ interface Props {
|
|
|
73
73
|
*/
|
|
74
74
|
swipeStep?: number;
|
|
75
75
|
}
|
|
76
|
-
declare const SlideItem: import("styled-components").
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
baseWidth: {
|
|
83
|
-
value: number;
|
|
84
|
-
unit: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
breakpoints: import("../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
88
|
-
color: {
|
|
89
|
-
default: {
|
|
90
|
-
pink: string;
|
|
91
|
-
plum: string;
|
|
92
|
-
white: string;
|
|
93
|
-
black: string;
|
|
94
|
-
};
|
|
95
|
-
accent: {
|
|
96
|
-
lemon: string;
|
|
97
|
-
sky: string;
|
|
98
|
-
orange: string;
|
|
99
|
-
};
|
|
100
|
-
active: {
|
|
101
|
-
pink: string;
|
|
102
|
-
};
|
|
103
|
-
hover: {
|
|
104
|
-
pink: string;
|
|
105
|
-
};
|
|
106
|
-
text: {
|
|
107
|
-
gray: string;
|
|
108
|
-
pink: string;
|
|
109
|
-
plum: string;
|
|
110
|
-
white: string;
|
|
111
|
-
black: string;
|
|
112
|
-
};
|
|
113
|
-
line: {
|
|
114
|
-
L01: string;
|
|
115
|
-
L02: string;
|
|
116
|
-
L03: string;
|
|
117
|
-
L04: string;
|
|
118
|
-
};
|
|
119
|
-
notification: {
|
|
120
|
-
info: string;
|
|
121
|
-
success: string;
|
|
122
|
-
warning: string;
|
|
123
|
-
error: string;
|
|
124
|
-
};
|
|
125
|
-
background: {
|
|
126
|
-
sand: {
|
|
127
|
-
default: string;
|
|
128
|
-
E01: string;
|
|
129
|
-
E02: string;
|
|
130
|
-
};
|
|
131
|
-
pink: {
|
|
132
|
-
default: string;
|
|
133
|
-
E01: string;
|
|
134
|
-
E02: string;
|
|
135
|
-
};
|
|
136
|
-
plum: {
|
|
137
|
-
default: string;
|
|
138
|
-
E01: string;
|
|
139
|
-
E02: string;
|
|
140
|
-
};
|
|
141
|
-
lemon: {
|
|
142
|
-
default: string;
|
|
143
|
-
E01: string;
|
|
144
|
-
E02: string;
|
|
145
|
-
};
|
|
146
|
-
sky: {
|
|
147
|
-
default: string;
|
|
148
|
-
E01: string;
|
|
149
|
-
E02: string;
|
|
150
|
-
};
|
|
151
|
-
orange: {
|
|
152
|
-
default: string;
|
|
153
|
-
E01: string;
|
|
154
|
-
E02: string;
|
|
155
|
-
};
|
|
156
|
-
white: {
|
|
157
|
-
default: string;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
focus: {
|
|
161
|
-
dark: string;
|
|
162
|
-
light: string;
|
|
163
|
-
};
|
|
164
|
-
transparency: {
|
|
165
|
-
T0: string;
|
|
166
|
-
T10: string;
|
|
167
|
-
T20: string;
|
|
168
|
-
T30: string;
|
|
169
|
-
T40: string;
|
|
170
|
-
T50: string;
|
|
171
|
-
T60: string;
|
|
172
|
-
T70: string;
|
|
173
|
-
T80: string;
|
|
174
|
-
T90: string;
|
|
175
|
-
T100: string;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
fontFamily: {
|
|
179
|
-
default: string;
|
|
180
|
-
heading: string;
|
|
181
|
-
numerals: string;
|
|
182
|
-
};
|
|
183
|
-
fontSize: {
|
|
184
|
-
default: string;
|
|
185
|
-
xl: string;
|
|
186
|
-
l: string;
|
|
187
|
-
s: string;
|
|
188
|
-
xs: string;
|
|
189
|
-
h1XL: string;
|
|
190
|
-
h1L: string;
|
|
191
|
-
h1M: string;
|
|
192
|
-
h1S: string;
|
|
193
|
-
h2M: string;
|
|
194
|
-
h2S: string;
|
|
195
|
-
h3: string;
|
|
196
|
-
h4: string;
|
|
197
|
-
h5: string;
|
|
198
|
-
h1: string;
|
|
199
|
-
h2: string;
|
|
200
|
-
};
|
|
201
|
-
fontWeight: {
|
|
202
|
-
book: number;
|
|
203
|
-
medium: number;
|
|
204
|
-
bold: number;
|
|
205
|
-
black: number;
|
|
206
|
-
};
|
|
207
|
-
form: {
|
|
208
|
-
smallSelectWidth: string;
|
|
209
|
-
smallSelectHeight: string;
|
|
210
|
-
};
|
|
211
|
-
grid: {
|
|
212
|
-
gutter: string;
|
|
213
|
-
};
|
|
214
|
-
lineHeight: {
|
|
215
|
-
default: string;
|
|
216
|
-
xl: string;
|
|
217
|
-
s: string;
|
|
218
|
-
xs: string;
|
|
219
|
-
xxs: string;
|
|
220
|
-
auto: string;
|
|
221
|
-
h1XL: string;
|
|
222
|
-
h1L: string;
|
|
223
|
-
h1M: string;
|
|
224
|
-
h1S: string;
|
|
225
|
-
h2M: string;
|
|
226
|
-
h2S: string;
|
|
227
|
-
h3: string;
|
|
228
|
-
h4: string;
|
|
229
|
-
h5: string;
|
|
230
|
-
h1: string;
|
|
231
|
-
h2: string;
|
|
232
|
-
};
|
|
233
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: (string | number)[]) => string>;
|
|
234
|
-
radius: {
|
|
235
|
-
default: string;
|
|
236
|
-
s: string;
|
|
237
|
-
xs: string;
|
|
238
|
-
circle: string;
|
|
239
|
-
pill: string;
|
|
240
|
-
};
|
|
241
|
-
}, Required<Pick<Props, "visibleItems">> & {
|
|
242
|
-
itemWidthCorrection: number;
|
|
243
|
-
isSwiping: boolean;
|
|
244
|
-
}, never>;
|
|
76
|
+
declare const SlideItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Required<{
|
|
77
|
+
$visibleItems?: Props["visibleItems"];
|
|
78
|
+
}> & {
|
|
79
|
+
$itemWidthCorrection: number;
|
|
80
|
+
$isSwiping: boolean;
|
|
81
|
+
}>> & string;
|
|
245
82
|
/** @visibleName Carousel */
|
|
246
83
|
declare const Carousel: ({ "data-testid": dataTestId, ...props }: Props) => React.JSX.Element;
|
|
247
84
|
/** @component */
|
|
@@ -6,7 +6,7 @@ var tslib = require('tslib');
|
|
|
6
6
|
var icons = require('@dnanpm/icons');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var useWindowSize = require('../../hooks/useWindowSize.js');
|
|
9
|
-
var
|
|
9
|
+
var styledComponents = require('styled-components');
|
|
10
10
|
var theme = require('../../themes/theme.js');
|
|
11
11
|
var styledUtils = require('../../utils/styledUtils.js');
|
|
12
12
|
var ButtonArrow = require('../ButtonArrow/ButtonArrow.js');
|
|
@@ -16,51 +16,51 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
18
|
|
|
19
|
-
const CarouselWrapper = styled.
|
|
20
|
-
const Header = styled.
|
|
19
|
+
const CarouselWrapper = styledComponents.styled.div ``;
|
|
20
|
+
const Header = styledComponents.styled.div `
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: space-between;
|
|
23
23
|
gap: 1.25rem;
|
|
24
24
|
margin-bottom: 1.25rem;
|
|
25
25
|
`;
|
|
26
|
-
const Title = styled.
|
|
26
|
+
const Title = styledComponents.styled.h2 `
|
|
27
27
|
margin: 0;
|
|
28
28
|
`;
|
|
29
|
-
const Navigation = styled.
|
|
29
|
+
const Navigation = styledComponents.styled.div `
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
margin-left: auto;
|
|
32
32
|
gap: 0.625rem;
|
|
33
33
|
`;
|
|
34
|
-
const Content = styled.
|
|
34
|
+
const Content = styledComponents.styled.div `
|
|
35
35
|
position: relative;
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
touch-action: pan-y;
|
|
38
38
|
`;
|
|
39
|
-
const SlidesWrapper = styled.
|
|
39
|
+
const SlidesWrapper = styledComponents.styled.div `
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
width: 100%;
|
|
43
43
|
height: 100%;
|
|
44
|
-
gap: ${({ gap }) => gap}rem;
|
|
44
|
+
gap: ${({ $gap }) => $gap}rem;
|
|
45
45
|
transition-property: transform;
|
|
46
46
|
transform: translate3d(0px, 0, 0);
|
|
47
47
|
transition-duration: 0ms;
|
|
48
48
|
transition-delay: 0ms;
|
|
49
49
|
user-select: none;
|
|
50
50
|
`;
|
|
51
|
-
const SlideItem = styled.
|
|
51
|
+
const SlideItem = styledComponents.styled.div `
|
|
52
52
|
display: block;
|
|
53
53
|
position: relative;
|
|
54
54
|
flex-shrink: 0;
|
|
55
55
|
flex-basis: calc(
|
|
56
|
-
${({ visibleItems, itemWidthCorrection }) => `(100% / ${visibleItems}) - ${itemWidthCorrection}px`}
|
|
56
|
+
${({ $visibleItems, $itemWidthCorrection }) => `(100% / ${$visibleItems}) - ${$itemWidthCorrection}px`}
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
a {
|
|
60
|
-
pointer-events: ${({ isSwiping }) => (isSwiping ? 'none' : 'auto')};
|
|
60
|
+
pointer-events: ${({ $isSwiping }) => ($isSwiping ? 'none' : 'auto')};
|
|
61
61
|
}
|
|
62
62
|
`;
|
|
63
|
-
const Footer = styled.
|
|
63
|
+
const Footer = styledComponents.styled.div `
|
|
64
64
|
${styledUtils.media.md `
|
|
65
65
|
display: grid;
|
|
66
66
|
grid-template-columns: [whitespace] 1fr [pagination] auto [footerButton] 1fr;
|
|
@@ -69,7 +69,7 @@ const Footer = styled.default.div `
|
|
|
69
69
|
align-items: center;
|
|
70
70
|
`};
|
|
71
71
|
`;
|
|
72
|
-
const Pagination = styled.
|
|
72
|
+
const Pagination = styledComponents.styled.div `
|
|
73
73
|
display: none;
|
|
74
74
|
|
|
75
75
|
${styledUtils.media.md `
|
|
@@ -81,7 +81,7 @@ const Pagination = styled.default.div `
|
|
|
81
81
|
width: 100%;
|
|
82
82
|
`};
|
|
83
83
|
`;
|
|
84
|
-
const PaginationItem = styled.
|
|
84
|
+
const PaginationItem = styledComponents.styled.button `
|
|
85
85
|
display: inline-block;
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
width: 2rem;
|
|
@@ -91,7 +91,7 @@ const PaginationItem = styled.default.button `
|
|
|
91
91
|
background-color: ${theme.default.color.background.white.default};
|
|
92
92
|
transition: all 0.2s ease-in-out;
|
|
93
93
|
|
|
94
|
-
${({ isActive }) => isActive &&
|
|
94
|
+
${({ $isActive }) => $isActive &&
|
|
95
95
|
`
|
|
96
96
|
width: 3rem;
|
|
97
97
|
border-color: ${theme.default.color.default.pink};
|
|
@@ -108,7 +108,7 @@ const PaginationItem = styled.default.button `
|
|
|
108
108
|
border-color: ${theme.default.color.default.pink};
|
|
109
109
|
}
|
|
110
110
|
`;
|
|
111
|
-
const Scrollbar = styled.
|
|
111
|
+
const Scrollbar = styledComponents.styled.div `
|
|
112
112
|
width: 100%;
|
|
113
113
|
height: ${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 0.6)};
|
|
114
114
|
margin: 1rem 0;
|
|
@@ -121,11 +121,11 @@ const Scrollbar = styled.default.div `
|
|
|
121
121
|
display: none;
|
|
122
122
|
`};
|
|
123
123
|
`;
|
|
124
|
-
const Knob = styled.
|
|
124
|
+
const Knob = styledComponents.styled.div `
|
|
125
125
|
position: relative;
|
|
126
126
|
top: 0;
|
|
127
127
|
left: 0;
|
|
128
|
-
width: calc(100% / ${({ knobSize }) => knobSize});
|
|
128
|
+
width: calc(100% / ${({ $knobSize }) => $knobSize});
|
|
129
129
|
height: 100%;
|
|
130
130
|
border-radius: ${theme.default.radius.pill};
|
|
131
131
|
background-color: ${theme.default.color.background.pink.default};
|
|
@@ -134,11 +134,11 @@ const Knob = styled.default.div `
|
|
|
134
134
|
transition-delay: 0ms;
|
|
135
135
|
user-select: none;
|
|
136
136
|
`;
|
|
137
|
-
const FooterButton = styled.
|
|
137
|
+
const FooterButton = styledComponents.styled.div `
|
|
138
138
|
grid-column: footerButton;
|
|
139
139
|
text-align: right;
|
|
140
140
|
`;
|
|
141
|
-
const Counter = styled.
|
|
141
|
+
const Counter = styledComponents.styled.span `
|
|
142
142
|
margin-top: 0.5rem;
|
|
143
143
|
font-size: ${theme.default.fontSize.s};
|
|
144
144
|
font-weight: ${theme.default.fontWeight.medium};
|
|
@@ -361,12 +361,12 @@ const Carousel = (_a) => {
|
|
|
361
361
|
React__default.default.createElement(ButtonArrow.default, { direction: "left", "aria-label": props.previousAriaLabel, onClick: handleNavigationButtonPreviousClick, disabled: currentIndex <= 0, type: "button" }),
|
|
362
362
|
React__default.default.createElement(ButtonArrow.default, { direction: "right", "aria-label": props.nextAriaLabel, onClick: handleNavigationButtonNextClick, disabled: currentIndex + visibleItems >= React.Children.count(props.children), type: "button" }))),
|
|
363
363
|
React__default.default.createElement(Content, { "data-testid": dataTestId && `${dataTestId}-content` },
|
|
364
|
-
React__default.default.createElement(SlidesWrapper, { ref: slidesWrapperRef, onPointerDown: handleSlidesPointerDown, gap: slidesWrapperGapSizePx / 16 }, React.Children.map(props.children, child => (React__default.default.createElement(SlideItem, { visibleItems: visibleItems, itemWidthCorrection: itemWidthCorrection, isSwiping: isSwiping, onPointerDown: handlePointerDown }, child))))),
|
|
364
|
+
React__default.default.createElement(SlidesWrapper, { ref: slidesWrapperRef, onPointerDown: handleSlidesPointerDown, "$gap": slidesWrapperGapSizePx / 16 }, React.Children.map(props.children, child => (React__default.default.createElement(SlideItem, { "$visibleItems": visibleItems, "$itemWidthCorrection": itemWidthCorrection, "$isSwiping": isSwiping, onPointerDown: handlePointerDown }, child))))),
|
|
365
365
|
React__default.default.createElement(Footer, { "data-testid": dataTestId && `${dataTestId}-footer` },
|
|
366
366
|
React__default.default.createElement(Pagination, null, [...Array(totalSwipeSteps).keys()].map((value, index) => (React__default.default.createElement(PaginationItem, { key: value, "aria-label": props.paginationAriaLabel &&
|
|
367
|
-
`${props.paginationAriaLabel} ${index + 1}`, "aria-current": Math.ceil(currentIndex / step) === index, isActive: Math.ceil(currentIndex / step) === index, onClick: handlePaginationItemClick, type: "button" })))),
|
|
367
|
+
`${props.paginationAriaLabel} ${index + 1}`, "aria-current": Math.ceil(currentIndex / step) === index, "$isActive": Math.ceil(currentIndex / step) === index, onClick: handlePaginationItemClick, type: "button" })))),
|
|
368
368
|
React__default.default.createElement(Scrollbar, { ref: scrollbarRef, onPointerDown: handleScrollbarPointerDown },
|
|
369
|
-
React__default.default.createElement(Knob, { ref: knobRef, knobSize: slideScreensCount })),
|
|
369
|
+
React__default.default.createElement(Knob, { ref: knobRef, "$knobSize": slideScreensCount })),
|
|
370
370
|
props.footerButton && (React__default.default.createElement(FooterButton, null,
|
|
371
371
|
React__default.default.createElement(ButtonIcon.default, { icon: icons.ArrowRight, onClick: props.onFooterButtonClick }, props.footerButton))))));
|
|
372
372
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
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 styledUtils = require('../../utils/styledUtils.js');
|
|
10
10
|
|
|
@@ -19,13 +19,13 @@ const SVGIconData = () => {
|
|
|
19
19
|
`</svg>`;
|
|
20
20
|
return `data:image/svg+xml,${encodeURIComponent(svg)}`;
|
|
21
21
|
};
|
|
22
|
-
const Container = styled.
|
|
22
|
+
const Container = styledComponents.styled.div `
|
|
23
23
|
display: flex;
|
|
24
24
|
font-size: ${theme.default.fontSize.default};
|
|
25
25
|
line-height: ${theme.default.lineHeight.default};
|
|
26
26
|
margin-bottom: ${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 0.5)};
|
|
27
27
|
`;
|
|
28
|
-
const Input = styled.
|
|
28
|
+
const Input = styledComponents.styled.input `
|
|
29
29
|
display: inline-grid;
|
|
30
30
|
appearance: none;
|
|
31
31
|
place-content: center;
|
|
@@ -98,11 +98,11 @@ const Input = styled.default.input `
|
|
|
98
98
|
0px 0px 0px 4px ${theme.default.color.focus.dark};
|
|
99
99
|
}
|
|
100
100
|
`;
|
|
101
|
-
const Mandatory = styled.
|
|
101
|
+
const Mandatory = styledComponents.styled.span `
|
|
102
102
|
color: ${theme.default.color.default.pink};
|
|
103
103
|
margin-left: ${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 0.5)};
|
|
104
104
|
`;
|
|
105
|
-
const ErrorMessage = styled.
|
|
105
|
+
const ErrorMessage = styledComponents.styled.div `
|
|
106
106
|
font-size: ${theme.default.fontSize.s};
|
|
107
107
|
line-height: ${theme.default.lineHeight.s};
|
|
108
108
|
color: ${theme.default.color.notification.error};
|
|
@@ -4,14 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
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 styledUtils = require('../../utils/styledUtils.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
15
14
|
|
|
16
15
|
const getStyling = ({ $type }) => {
|
|
17
16
|
switch ($type) {
|
|
@@ -36,7 +35,7 @@ const getStyling = ({ $type }) => {
|
|
|
36
35
|
`;
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
|
-
const Element =
|
|
38
|
+
const Element = styledComponents.styled.div `
|
|
40
39
|
all: unset;
|
|
41
40
|
display: inline-block;
|
|
42
41
|
border-radius: ${theme.default.radius.pill};
|
|
@@ -6,7 +6,7 @@ var tslib = require('tslib');
|
|
|
6
6
|
var icons = require('@dnanpm/icons');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var ReactDatePicker = require('react-datepicker');
|
|
9
|
-
var
|
|
9
|
+
var styledComponents = require('styled-components');
|
|
10
10
|
var theme = require('../../themes/theme.js');
|
|
11
11
|
var styledUtils = require('../../utils/styledUtils.js');
|
|
12
12
|
var ButtonIcon = require('../ButtonIcon/ButtonIcon.js');
|
|
@@ -16,7 +16,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
18
|
var ReactDatePicker__default = /*#__PURE__*/_interopDefaultCompat(ReactDatePicker);
|
|
19
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Customized local copy of date-fns/locale/fi object to avoid importing unnecessary libraries
|
|
@@ -58,7 +57,7 @@ const localeData = {
|
|
|
58
57
|
};
|
|
59
58
|
const sentenceCase = (string) => `${string[0].toUpperCase()}${string.slice(1)}`;
|
|
60
59
|
// TODO: change `& .react-datepicker` value back to `1` after z-index of Footer removed
|
|
61
|
-
const Wrapper =
|
|
60
|
+
const Wrapper = styledComponents.styled.div `
|
|
62
61
|
position: relative;
|
|
63
62
|
|
|
64
63
|
& .react-datepicker {
|
|
@@ -221,7 +220,7 @@ const Wrapper = styled__default.default.div `
|
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
222
|
`;
|
|
224
|
-
const MonthSelector =
|
|
223
|
+
const MonthSelector = styledComponents.styled.div `
|
|
225
224
|
display: flex;
|
|
226
225
|
align-items: center;
|
|
227
226
|
justify-content: space-between;
|
|
@@ -230,11 +229,23 @@ const MonthSelector = styled__default.default.div `
|
|
|
230
229
|
fill: ${theme.default.color.text.gray};
|
|
231
230
|
}
|
|
232
231
|
`;
|
|
233
|
-
const CurrentMonth =
|
|
232
|
+
const CurrentMonth = styledComponents.styled.div `
|
|
234
233
|
font-size: ${theme.default.fontSize.default};
|
|
235
234
|
line-height: ${theme.default.lineHeight.default};
|
|
236
235
|
font-weight: ${theme.default.fontWeight.bold};
|
|
237
236
|
`;
|
|
237
|
+
const StyledInput = styledComponents.styled(Input.default) `
|
|
238
|
+
${({ disabled }) => !disabled &&
|
|
239
|
+
`
|
|
240
|
+
div {
|
|
241
|
+
background-color: ${theme.default.color.background.white.default};
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.react-datepicker-ignore-onclickoutside-lock-icon {
|
|
245
|
+
display: none;
|
|
246
|
+
}
|
|
247
|
+
`}
|
|
248
|
+
`;
|
|
238
249
|
const DateTimePickerCustomHeader = ({ date, decreaseMonth, increaseMonth, locale, }) => (React__default.default.createElement(MonthSelector, null,
|
|
239
250
|
React__default.default.createElement(ButtonIcon.default, { icon: icons.ChevronLeft, onClick: decreaseMonth }),
|
|
240
251
|
React__default.default.createElement(CurrentMonth, null, sentenceCase(date.toLocaleString(locale, {
|
|
@@ -282,7 +293,7 @@ const DateTimePicker = (_a) => {
|
|
|
282
293
|
.join(' - ');
|
|
283
294
|
const getDateTimePickerCustomHeader = (args) => DateTimePickerCustomHeader(Object.assign(Object.assign({}, args), { locale }));
|
|
284
295
|
return (React__default.default.createElement(Wrapper, { id: props.id, className: props.className, "data-testid": dataTestId },
|
|
285
|
-
React__default.default.createElement(
|
|
296
|
+
React__default.default.createElement(StyledInput, { id: `datetimepicker-input-${props.id}`, name: `datetimepicker-input-${props.id}`, label: props.label, placeholder: props.placeholder, value: formatInputValue, onFocus: handleOnInputFocus, onChange: handleOnInputChange, onKeyDown: handleOnKeyDown, onClearableButtonClick: props.isClearable ? handleClearable : undefined, className: "react-datepicker-ignore-onclickoutside", "data-testid": dataTestId && `${dataTestId}-datetimepicker-input`, disabled: props.isDisabled, required: props.isRequired, readonly: !props.isEditable, status: props.isInError ? 'error' : undefined, errorMessage: props.errorMessage }),
|
|
286
297
|
showReactDatePicker && (React__default.default.createElement(ReactDatePicker__default.default, { inline: true, selected: startDate, startDate: startDate, maxDate: props.maxDate, minDate: props.minDate, endDate: props.endDate, onChange: handleOnReactDatePickerChange, selectsRange: props.endDate !== undefined, showTimeSelect: props.endDate === undefined && isTimePicker, showTimeSelectOnly: props.endDate === undefined && !isDatePicker && isTimePicker, timeCaption: (_b = localeData[locale]) === null || _b === void 0 ? void 0 : _b.localize.timeCaption, timeIntervals: timeInterval, onClickOutside: handleOnReactDatePickerClickOutside, locale: localeData[locale],
|
|
287
298
|
// Used to format the date/time in internal ReactDatePicker input
|
|
288
299
|
// Currently ignored as date/time is shown in Styleguide Input instead, and formatted by using Intl.DateTimeFormat
|
|
@@ -4,22 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
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 styledUtils = require('../../utils/styledUtils.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
15
14
|
|
|
16
|
-
const DividerWrapper =
|
|
15
|
+
const DividerWrapper = styledComponents.styled.div `
|
|
17
16
|
display: flex;
|
|
18
17
|
justify-content: center;
|
|
19
18
|
align-items: center;
|
|
20
19
|
width: 100%;
|
|
21
|
-
margin: ${({ margin }) => margin || `${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 1)} 0`};
|
|
22
|
-
${({ padding }) => padding && `padding: ${padding}`};
|
|
20
|
+
margin: ${({ $margin }) => $margin || `${styledUtils.getMultipliedSize(theme.default.base.baseHeight, 1)} 0`};
|
|
21
|
+
${({ $padding }) => $padding && `padding: ${$padding}`};
|
|
23
22
|
border-style: solid;
|
|
24
23
|
border-color: ${theme.default.color.line.L03};
|
|
25
24
|
border-width: 1px ${({ children }) => !children && '0 0 0'};
|
|
@@ -27,7 +26,7 @@ const DividerWrapper = styled__default.default.div `
|
|
|
27
26
|
const Divider = (_a) => {
|
|
28
27
|
var { 'data-testid': dataTestId } = _a, props = tslib.__rest(_a, ['data-testid']);
|
|
29
28
|
const isFocusableSeparator = Boolean(props.children);
|
|
30
|
-
return (React__default.default.createElement(DividerWrapper, { id: props.id, margin: props.margin, padding: props.padding, className: props.className, "data-testid": dataTestId, as: isFocusableSeparator ? 'div' : 'hr', role: isFocusableSeparator ? 'separator' : undefined, "aria-orientation": "horizontal", "aria-label": props.ariaLabelFocusableSeparator, "aria-hidden": !isFocusableSeparator, tabIndex: isFocusableSeparator ? 0 : -1 }, props.children));
|
|
29
|
+
return (React__default.default.createElement(DividerWrapper, { id: props.id, "$margin": props.margin, "$padding": props.padding, className: props.className, "data-testid": dataTestId, as: isFocusableSeparator ? 'div' : 'hr', role: isFocusableSeparator ? 'separator' : undefined, "aria-orientation": "horizontal", "aria-label": props.ariaLabelFocusableSeparator, "aria-hidden": !isFocusableSeparator, tabIndex: isFocusableSeparator ? 0 : -1 }, props.children));
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
exports.default = Divider;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
7
|
+
var styledComponents = require('styled-components');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
10
|
|
|
@@ -29,11 +29,11 @@ const colorVariationsMap = {
|
|
|
29
29
|
text: '#000000',
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
|
-
const Container = styled.
|
|
32
|
+
const Container = styledComponents.styled.span `
|
|
33
33
|
display: inline-flex;
|
|
34
34
|
width: ${({ size }) => size};
|
|
35
35
|
height: ${({ size }) => size};
|
|
36
|
-
${({ margin }) => margin && `margin: ${margin}`};
|
|
36
|
+
${({ $margin }) => $margin && `margin: ${$margin}`};
|
|
37
37
|
|
|
38
38
|
svg {
|
|
39
39
|
width: ${({ size }) => size};
|
|
@@ -65,7 +65,7 @@ const DnaLogo = (_a) => {
|
|
|
65
65
|
const matches = /(\d+)(.+)/.exec(size);
|
|
66
66
|
margin = matches && `${Number(matches[1]) * 0.25}${matches[2]}`;
|
|
67
67
|
}
|
|
68
|
-
return (React__default.default.createElement(Container, { size: size, margin: margin, className: props.className, onClick: props.onClick }, type.indexOf('logotype') === -1 ? React__default.default.createElement(Emblem, { type: type }) : React__default.default.createElement(Logotype, { type: type })));
|
|
68
|
+
return (React__default.default.createElement(Container, { size: size, "$margin": margin, className: props.className, onClick: props.onClick }, type.indexOf('logotype') === -1 ? React__default.default.createElement(Emblem, { type: type }) : React__default.default.createElement(Logotype, { type: type })));
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
exports.default = DnaLogo;
|