@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import React__default, { useRef } from 'react';
|
|
3
|
-
import styled from '
|
|
3
|
+
import { styled } from 'styled-components';
|
|
4
4
|
import theme from '../../themes/theme.js';
|
|
5
5
|
import { getMultipliedSize } from '../../utils/styledUtils.js';
|
|
6
6
|
import LabelText from '../LabelText/LabelText.js';
|
|
@@ -54,7 +54,7 @@ const ErrorMessage = styled(Message) `
|
|
|
54
54
|
color: ${theme.color.notification.error};
|
|
55
55
|
`;
|
|
56
56
|
const Textarea = (_a) => {
|
|
57
|
-
var { height = 3, 'data-testid': dataTestId } = _a, props = __rest(_a, ["height", 'data-testid']);
|
|
57
|
+
var { height = 3, 'data-testid': dataTestId, ariaLabel } = _a, props = __rest(_a, ["height", 'data-testid', "ariaLabel"]);
|
|
58
58
|
const inputRef = useRef(null);
|
|
59
59
|
const handleOnBlur = (e) => {
|
|
60
60
|
if (props.onBlur) {
|
|
@@ -72,11 +72,14 @@ const Textarea = (_a) => {
|
|
|
72
72
|
inputRef.current.focus();
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
+
const errorId = props.status === 'error' && props.errorMessage ? `${props.id}-error` : undefined;
|
|
76
|
+
const commentId = props.commentMessage ? `${props.id}-comment` : undefined;
|
|
77
|
+
const describedBy = [errorId, commentId].filter(Boolean).join(' ') || undefined;
|
|
75
78
|
return (React__default.createElement(FieldContainer, { className: props.className },
|
|
76
79
|
props.label && (React__default.createElement(LabelText, { htmlFor: props.id, "data-testid": dataTestId && `${dataTestId}-label`, status: props.status === 'error' ? props.status : undefined, isMandatory: props.required }, props.label)),
|
|
77
|
-
React__default.createElement(StyledTextarea, { id: props.id, name: props.name, ref: inputRef, value: props.value, rows: height, placeholder: props.placeholder, tabIndex: props.tabIndex, onChange: handleChange, onBlur: handleOnBlur, onFocus: props.onFocus, onClick: onClick, onKeyDown: props.onKeyDown, onKeyPress: props.onKeyPress, required: props.required, disabled: props.disabled, "aria-
|
|
78
|
-
props.commentMessage && (React__default.createElement(Message, { "data-testid": dataTestId && `${dataTestId}-comment` }, props.commentMessage)),
|
|
79
|
-
props.status === 'error' && props.errorMessage && (React__default.createElement(ErrorMessage, { "data-testid": dataTestId && `${dataTestId}-error` }, props.errorMessage))));
|
|
80
|
+
React__default.createElement(StyledTextarea, { id: props.id, name: props.name, ref: inputRef, value: props.value, rows: height, placeholder: props.placeholder, tabIndex: props.tabIndex, onChange: handleChange, onBlur: handleOnBlur, onFocus: props.onFocus, onClick: onClick, onKeyDown: props.onKeyDown, onKeyPress: props.onKeyPress, required: props.required, disabled: props.disabled, "aria-label": !props.label ? ariaLabel : undefined, "aria-describedby": describedBy, "data-testid": dataTestId }),
|
|
81
|
+
props.commentMessage && (React__default.createElement(Message, { id: commentId, "data-testid": dataTestId && `${dataTestId}-comment` }, props.commentMessage)),
|
|
82
|
+
props.status === 'error' && props.errorMessage && (React__default.createElement(ErrorMessage, { id: errorId, "data-testid": dataTestId && `${dataTestId}-error` }, props.errorMessage))));
|
|
80
83
|
};
|
|
81
84
|
|
|
82
85
|
export { Textarea as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import { Close, Info, Check, Warning, Error } from '@dnanpm/icons';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import
|
|
4
|
+
import { styled } from 'styled-components';
|
|
5
5
|
import theme from '../../themes/theme.js';
|
|
6
6
|
import { getMultipliedSize, media } from '../../utils/styledUtils.js';
|
|
7
7
|
import Box from '../Box/Box.js';
|
|
@@ -14,10 +14,10 @@ const iconsMap = {
|
|
|
14
14
|
warning: Warning,
|
|
15
15
|
error: Error,
|
|
16
16
|
};
|
|
17
|
-
const ToasterWrapper =
|
|
17
|
+
const ToasterWrapper = styled.div `
|
|
18
18
|
width: 300px;
|
|
19
19
|
`;
|
|
20
|
-
const StyledBox =
|
|
20
|
+
const StyledBox = styled(Box) `
|
|
21
21
|
position: relative;
|
|
22
22
|
font-size: ${theme.fontSize.s};
|
|
23
23
|
font-weight: ${theme.fontWeight.medium};
|
|
@@ -27,7 +27,7 @@ const StyledBox = styled__default(Box) `
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
padding-right: ${getMultipliedSize(theme.base.baseWidth, 4.5)};
|
|
29
29
|
`;
|
|
30
|
-
const IconWrapper =
|
|
30
|
+
const IconWrapper = styled.div `
|
|
31
31
|
display: none;
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: ${getMultipliedSize(theme.base.baseWidth, 4)};
|
|
@@ -37,10 +37,10 @@ const IconWrapper = styled__default.div `
|
|
|
37
37
|
display: flex;
|
|
38
38
|
`}
|
|
39
39
|
`;
|
|
40
|
-
const ContentWrapper =
|
|
40
|
+
const ContentWrapper = styled.div `
|
|
41
41
|
flex: 1;
|
|
42
42
|
`;
|
|
43
|
-
const ButtonCloseStyled =
|
|
43
|
+
const ButtonCloseStyled = styled(ButtonClose) `
|
|
44
44
|
display: flex;
|
|
45
45
|
top: auto;
|
|
46
46
|
`;
|
|
@@ -2,7 +2,7 @@ import { __rest } from 'tslib';
|
|
|
2
2
|
import { Info } from '@dnanpm/icons';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { Tooltip as Tooltip$1 } from 'react-tooltip';
|
|
5
|
-
import styled from '
|
|
5
|
+
import { styled } from 'styled-components';
|
|
6
6
|
import theme from '../../themes/theme.js';
|
|
7
7
|
import getElevationShadow from '../../utils/common.js';
|
|
8
8
|
import { getMultipliedSize } from '../../utils/styledUtils.js';
|
|
@@ -30,7 +30,7 @@ const Helper = styled.button `
|
|
|
30
30
|
border-radius: 100%;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
${({ isClickable }) => isClickable && `cursor: pointer`};
|
|
33
|
+
${({ $isClickable }) => $isClickable && `cursor: pointer`};
|
|
34
34
|
`;
|
|
35
35
|
const getArrowOverrides = () => {
|
|
36
36
|
const arrowConfig = {
|
|
@@ -99,9 +99,9 @@ const Tooltip = (_a) => {
|
|
|
99
99
|
scroll: true,
|
|
100
100
|
};
|
|
101
101
|
return (React__default.createElement(React__default.Fragment, null,
|
|
102
|
-
!props.hideTriggerElement && (React__default.createElement(Helper, { "data-tooltip-id": props.id, isClickable: isClickable, className: props.className, "data-testid": dataTestId, type: "button", "data-tooltip-delay-hide": 500, "aria-describedby": props.id },
|
|
102
|
+
!props.hideTriggerElement && (React__default.createElement(Helper, { "data-tooltip-id": props.id, "$isClickable": isClickable, className: props.className, "data-testid": dataTestId, type: "button", "data-tooltip-delay-hide": 500, "aria-describedby": props.id },
|
|
103
103
|
React__default.createElement(Icon, { icon: Info, size: "1rem", position: props.position, "aria-hidden": true }))),
|
|
104
|
-
React__default.createElement(StyledReactTooltip, { id: props.id, place: props.placement, openOnClick: isClickable, clickable: isHoverable, isMultiline: props.isMultiline, disableStyleInjection: true, role: isHoverable ? 'dialog' : 'tooltip', openEvents: handleReactTooltipOpenEvents, globalCloseEvents: handleReactTooltipGlobalCloseEvents, closeEvents: handleReactTooltipCloseEvents, "data-testid": dataTestId && `${dataTestId}-content` }, props.children)));
|
|
104
|
+
React__default.createElement(StyledReactTooltip, { id: props.id, place: props.placement, openOnClick: isClickable, clickable: isHoverable, "$isMultiline": props.isMultiline, disableStyleInjection: true, role: isHoverable ? 'dialog' : 'tooltip', openEvents: handleReactTooltipOpenEvents, globalCloseEvents: handleReactTooltipGlobalCloseEvents, closeEvents: handleReactTooltipCloseEvents, "data-testid": dataTestId && `${dataTestId}-content` }, props.children)));
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export { Tooltip as default };
|
|
@@ -1,340 +1,10 @@
|
|
|
1
|
-
export declare const Tail: 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
|
+
export declare const Tail: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
167
2
|
tooltipTop: string;
|
|
168
3
|
zIndex: string;
|
|
169
4
|
arrowPosition: string;
|
|
170
|
-
}
|
|
171
|
-
export declare const TailShadow: import("styled-components").
|
|
172
|
-
base: {
|
|
173
|
-
baseHeight: {
|
|
174
|
-
value: number;
|
|
175
|
-
unit: string;
|
|
176
|
-
};
|
|
177
|
-
baseWidth: {
|
|
178
|
-
value: number;
|
|
179
|
-
unit: string;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
breakpoints: import("../../../themes/themeComponents/breakpoints").ViewBreakpoints;
|
|
183
|
-
color: {
|
|
184
|
-
default: {
|
|
185
|
-
pink: string;
|
|
186
|
-
plum: string;
|
|
187
|
-
white: string;
|
|
188
|
-
black: string;
|
|
189
|
-
};
|
|
190
|
-
accent: {
|
|
191
|
-
lemon: string;
|
|
192
|
-
sky: string;
|
|
193
|
-
orange: string;
|
|
194
|
-
};
|
|
195
|
-
active: {
|
|
196
|
-
pink: string;
|
|
197
|
-
};
|
|
198
|
-
hover: {
|
|
199
|
-
pink: string;
|
|
200
|
-
};
|
|
201
|
-
text: {
|
|
202
|
-
gray: string;
|
|
203
|
-
pink: string;
|
|
204
|
-
plum: string;
|
|
205
|
-
white: string;
|
|
206
|
-
black: string;
|
|
207
|
-
};
|
|
208
|
-
line: {
|
|
209
|
-
L01: string;
|
|
210
|
-
L02: string;
|
|
211
|
-
L03: string;
|
|
212
|
-
L04: string;
|
|
213
|
-
};
|
|
214
|
-
notification: {
|
|
215
|
-
info: string;
|
|
216
|
-
success: string;
|
|
217
|
-
warning: string;
|
|
218
|
-
error: string;
|
|
219
|
-
};
|
|
220
|
-
background: {
|
|
221
|
-
sand: {
|
|
222
|
-
default: string;
|
|
223
|
-
E01: string;
|
|
224
|
-
E02: string;
|
|
225
|
-
};
|
|
226
|
-
pink: {
|
|
227
|
-
default: string;
|
|
228
|
-
E01: string;
|
|
229
|
-
E02: string;
|
|
230
|
-
};
|
|
231
|
-
plum: {
|
|
232
|
-
default: string;
|
|
233
|
-
E01: string;
|
|
234
|
-
E02: string;
|
|
235
|
-
};
|
|
236
|
-
lemon: {
|
|
237
|
-
default: string;
|
|
238
|
-
E01: string;
|
|
239
|
-
E02: string;
|
|
240
|
-
};
|
|
241
|
-
sky: {
|
|
242
|
-
default: string;
|
|
243
|
-
E01: string;
|
|
244
|
-
E02: string;
|
|
245
|
-
};
|
|
246
|
-
orange: {
|
|
247
|
-
default: string;
|
|
248
|
-
E01: string;
|
|
249
|
-
E02: string;
|
|
250
|
-
};
|
|
251
|
-
white: {
|
|
252
|
-
default: string;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
focus: {
|
|
256
|
-
dark: string;
|
|
257
|
-
light: string;
|
|
258
|
-
};
|
|
259
|
-
transparency: {
|
|
260
|
-
T0: string;
|
|
261
|
-
T10: string;
|
|
262
|
-
T20: string;
|
|
263
|
-
T30: string;
|
|
264
|
-
T40: string;
|
|
265
|
-
T50: string;
|
|
266
|
-
T60: string;
|
|
267
|
-
T70: string;
|
|
268
|
-
T80: string;
|
|
269
|
-
T90: string;
|
|
270
|
-
T100: string;
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
fontFamily: {
|
|
274
|
-
default: string;
|
|
275
|
-
heading: string;
|
|
276
|
-
numerals: string;
|
|
277
|
-
};
|
|
278
|
-
fontSize: {
|
|
279
|
-
default: string;
|
|
280
|
-
xl: string;
|
|
281
|
-
l: string;
|
|
282
|
-
s: string;
|
|
283
|
-
xs: string;
|
|
284
|
-
h1XL: string;
|
|
285
|
-
h1L: string;
|
|
286
|
-
h1M: string;
|
|
287
|
-
h1S: string;
|
|
288
|
-
h2M: string;
|
|
289
|
-
h2S: string;
|
|
290
|
-
h3: string;
|
|
291
|
-
h4: string;
|
|
292
|
-
h5: string;
|
|
293
|
-
h1: string;
|
|
294
|
-
h2: string;
|
|
295
|
-
};
|
|
296
|
-
fontWeight: {
|
|
297
|
-
book: number;
|
|
298
|
-
medium: number;
|
|
299
|
-
bold: number;
|
|
300
|
-
black: number;
|
|
301
|
-
};
|
|
302
|
-
form: {
|
|
303
|
-
smallSelectWidth: string;
|
|
304
|
-
smallSelectHeight: string;
|
|
305
|
-
};
|
|
306
|
-
grid: {
|
|
307
|
-
gutter: string;
|
|
308
|
-
};
|
|
309
|
-
lineHeight: {
|
|
310
|
-
default: string;
|
|
311
|
-
xl: string;
|
|
312
|
-
s: string;
|
|
313
|
-
xs: string;
|
|
314
|
-
xxs: string;
|
|
315
|
-
auto: string;
|
|
316
|
-
h1XL: string;
|
|
317
|
-
h1L: string;
|
|
318
|
-
h1M: string;
|
|
319
|
-
h1S: string;
|
|
320
|
-
h2M: string;
|
|
321
|
-
h2S: string;
|
|
322
|
-
h3: string;
|
|
323
|
-
h4: string;
|
|
324
|
-
h5: string;
|
|
325
|
-
h1: string;
|
|
326
|
-
h2: string;
|
|
327
|
-
};
|
|
328
|
-
media: Record<string | number, (l: TemplateStringsArray, ...p: (string | number)[]) => string>;
|
|
329
|
-
radius: {
|
|
330
|
-
default: string;
|
|
331
|
-
s: string;
|
|
332
|
-
xs: string;
|
|
333
|
-
circle: string;
|
|
334
|
-
pill: string;
|
|
335
|
-
};
|
|
336
|
-
}, {
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const TailShadow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
337
7
|
tooltipTop: string;
|
|
338
8
|
zIndex: string;
|
|
339
9
|
arrowPosition: string;
|
|
340
|
-
}
|
|
10
|
+
}>> & string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import styled from '
|
|
1
|
+
import { styled } from 'styled-components';
|
|
2
|
+
import theme from '../../../themes/theme.js';
|
|
2
3
|
|
|
3
4
|
// Tooltip corner tail
|
|
4
5
|
const Tail = styled.div `
|
|
@@ -24,7 +25,7 @@ const TailShadow = styled.div `
|
|
|
24
25
|
z-index: ${p => Number(p.zIndex) + 1};
|
|
25
26
|
right: ${p => p.arrowPosition};
|
|
26
27
|
background-color: transparent;
|
|
27
|
-
box-shadow: 0 0 5px 0 ${
|
|
28
|
+
box-shadow: 0 0 5px 0 ${theme.color.default.black};
|
|
28
29
|
`;
|
|
29
30
|
|
|
30
31
|
export { Tail, TailShadow };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChevronDown } from '@dnanpm/icons';
|
|
2
2
|
import React__default, { useState, useRef } from 'react';
|
|
3
3
|
import useOutsideClick from '../../hooks/useOutsideClick.js';
|
|
4
|
-
import styled from '
|
|
4
|
+
import { styled } from 'styled-components';
|
|
5
5
|
import theme from '../../themes/theme.js';
|
|
6
6
|
import Icon from '../Icon/Icon.js';
|
|
7
7
|
import { TailShadow, Tail } from './ChildComponents/TooltipMenuExportedStyles.js';
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export { default as createStyled } from './utils/createStyled';
|
|
3
|
-
export {
|
|
3
|
+
export { styled } from './themes/styled';
|
|
4
4
|
export { default as theme } from './themes/theme';
|
|
5
5
|
export { globalStyles } from './themes/globalStyles';
|
|
6
6
|
export { default as navigation } from './themes/themeComponents/navigation';
|
package/build/es/index.js
CHANGED
|
@@ -161,7 +161,7 @@ export { default as Toaster } from './components/Toaster/Toaster.js';
|
|
|
161
161
|
export { default as Tooltip } from './components/Tooltip/Tooltip.js';
|
|
162
162
|
export { default as TooltipMenu } from './components/TooltipMenu/TooltipMenu.js';
|
|
163
163
|
export { default as createStyled } from './utils/createStyled.js';
|
|
164
|
-
export {
|
|
164
|
+
export { styled } from 'styled-components';
|
|
165
165
|
export { default as theme } from './themes/theme.js';
|
|
166
166
|
export { globalStyles } from './themes/globalStyles.js';
|
|
167
167
|
export { default as navigation } from './themes/themeComponents/navigation.js';
|