@nulogy/components 15.4.0 → 16.0.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/dist/main.js +1016 -1905
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +804 -1692
- package/dist/main.module.js.map +1 -1
- package/dist/src/Alert/Alert.js +1 -1
- package/dist/src/AppTag/AppTag.js +1 -1
- package/dist/src/AppTag/components/LogoWrapper.js +1 -1
- package/dist/src/BottomSheet/BottomSheet.styled.js +2 -2
- package/dist/src/Box/Box.js +1 -1
- package/dist/src/Box/Box.story.js +1 -1
- package/dist/src/BrandedNavBar/DesktopMenu.js +1 -1
- package/dist/src/BrandedNavBar/MenuTrigger.js +1 -3
- package/dist/src/BrandedNavBar/MenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.js +1 -3
- package/dist/src/BrandedNavBar/NavBar.js +1 -1
- package/dist/src/BrandedNavBar/NavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/NavBarBackground.js +1 -1
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +26 -23
- package/dist/src/BrandedNavBar/SmallNavBar.js +1 -3
- package/dist/src/BrandedNavBar/SmallNavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTrigger.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/renderSubMenuItems.js +1 -1
- package/dist/src/Branding/Branding.js +1 -1
- package/dist/src/Branding/BrandingText.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsList.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +1 -1
- package/dist/src/Button/Button.js +1 -1
- package/dist/src/Button/CloseButton.js +1 -1
- package/dist/src/Button/ControlIcon.js +1 -1
- package/dist/src/Button/DangerButton.js +1 -1
- package/dist/src/Button/IconicButton.js +1 -1
- package/dist/src/Button/PrimaryButton.js +1 -1
- package/dist/src/Button/QuietButton.js +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/src/Card/CardSet.js +1 -1
- package/dist/src/Checkbox/Checkbox.js +1 -1
- package/dist/src/Checkbox/CheckboxGroup.js +1 -1
- package/dist/src/DateRange/EndTime.js +1 -1
- package/dist/src/DateRange/StartTime.js +1 -1
- package/dist/src/Decorations/index.js +1 -1
- package/dist/src/DescriptionList/DescriptionList.parts.js +1 -1
- package/dist/src/DescriptionList/stories/fixtures.js +1 -1
- package/dist/src/Divider/Divider.js +1 -1
- package/dist/src/DropdownMenu/DropdownButton.js +1 -1
- package/dist/src/DropdownMenu/DropdownItem.js +1 -1
- package/dist/src/DropdownMenu/DropdownLink.js +1 -1
- package/dist/src/DropdownMenu/DropdownMenu.story.js +8 -4
- package/dist/src/DropdownMenu/DropdownMenuContainer.js +1 -1
- package/dist/src/DropdownMenu/DropdownText.js +1 -1
- package/dist/src/FieldLabel/HelpText.js +1 -1
- package/dist/src/FieldLabel/Label.js +1 -1
- package/dist/src/FieldLabel/LabelText.js +1 -1
- package/dist/src/Flex/Flex.js +1 -1
- package/dist/src/Flex/Flex.story.js +1 -1
- package/dist/src/Form/Field.js +1 -1
- package/dist/src/Form/Fieldset.js +1 -1
- package/dist/src/Form/Form.js +1 -1
- package/dist/src/Form/FormSection.js +1 -1
- package/dist/src/Icon/Icon.js +1 -1
- package/dist/src/Input/InputField.js +1 -1
- package/dist/src/Link/Link.js +1 -1
- package/dist/src/List/List.js +1 -1
- package/dist/src/List/ListItem.js +1 -1
- package/dist/src/MiniTooltip/index.js +1 -1
- package/dist/src/Modal/Modal.js +1 -1
- package/dist/src/Modal/ModalCloseButton.js +1 -1
- package/dist/src/Modal/ModalContent.js +1 -1
- package/dist/src/Modal/ModalFooter.js +1 -1
- package/dist/src/Modal/ModalHeader.js +1 -1
- package/dist/src/NDSProvider/GlobalStyles.js +1 -1
- package/dist/src/NavBarSearch/NavBarSearch.js +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.js +1 -1
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +1 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +1 -1
- package/dist/src/Navigation/components/MobileNav/parts/styled.js +1 -1
- package/dist/src/Navigation/components/UserMenu/UserMenu.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/Header.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogo.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogoLink.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuContent.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.js +6 -2
- package/dist/src/Navigation/components/shared/components.js +1 -1
- package/dist/src/Overlay/Overlay.js +1 -1
- package/dist/src/Pagination/PageNumber.js +1 -1
- package/dist/src/Pagination/PaginationButton.js +1 -1
- package/dist/src/Popper/Popper.js +0 -1
- package/dist/src/Primitives/index.js +1 -1
- package/dist/src/Radio/Radio.js +1 -1
- package/dist/src/RangeContainer/RangeContainer.js +1 -3
- package/dist/src/Select/Select.story.fixture.js +1 -1
- package/dist/src/Select/SelectOption.js +1 -1
- package/dist/src/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/src/Summary/Summary.js +1 -1
- package/dist/src/Summary/SummaryDivider.js +1 -1
- package/dist/src/Summary/SummaryItem.js +1 -1
- package/dist/src/Switcher/Switch.js +1 -1
- package/dist/src/Table/BaseTable.js +1 -1
- package/dist/src/Table/StyledTh.js +1 -1
- package/dist/src/Table/TableBody.js +1 -1
- package/dist/src/Table/TableCell.js +1 -1
- package/dist/src/Table/TableFoot.js +1 -1
- package/dist/src/Table/TableHead.js +1 -1
- package/dist/src/Tabs/Tab.js +1 -1
- package/dist/src/Tabs/TabContainer.js +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +1 -1
- package/dist/src/Tabs/TabScrollIndicators.js +1 -1
- package/dist/src/Tabs/Tabs.story.d.ts +0 -1
- package/dist/src/Tabs/Tabs.story.js +0 -5
- package/dist/src/Textarea/StyledTextarea.js +1 -1
- package/dist/src/TimePicker/TimePickerDropdown.js +1 -1
- package/dist/src/TimePicker/TimePickerInput.js +1 -1
- package/dist/src/TimePicker/TimePickerOption.js +1 -1
- package/dist/src/TimeRange/TimeRange.d.ts +7 -3
- package/dist/src/TimeRange/TimeRange.js +2 -2
- package/dist/src/Toast/Toast.js +1 -3
- package/dist/src/Toast/Toast.story.js +0 -2
- package/dist/src/Toggle/Toggle.js +0 -2
- package/dist/src/Toggle/ToggleButton.js +1 -1
- package/dist/src/Tooltip/TooltipContainer.js +1 -1
- package/dist/src/Tooltip/components/TooltipComponents.js +1 -1
- package/dist/src/TopBar/TopBar.styled.js +1 -1
- package/dist/src/Type/Headings.js +1 -1
- package/dist/src/Type/Text.js +1 -1
- package/dist/src/Validation/InlineValidation.js +1 -1
- package/dist/src/VerticalDivider/VerticalDivider.js +1 -1
- package/dist/src/i18n.js +0 -2
- package/dist/src/utils/ClickInputLabel.js +1 -1
- package/dist/src/utils/PopperArrow.js +4 -4
- package/dist/src/utils/ScrollIndicators.js +1 -1
- package/dist/src/utils/noop.js +1 -3
- package/dist/src/utils/story/code.js +1 -1
- package/dist/src/utils/story/dashed.js +1 -1
- package/dist/src/utils/story/placeholder.js +1 -1
- package/dist/src/utils/story/resizable.js +1 -1
- package/dist/src/utils/ts/FocusManager.d.ts +2 -2
- package/dist/src/utils/useScrollLock.js +0 -1
- package/dist/vite.config.js +11 -1
- package/package.json +20 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
2
|
import { transparentize } from "polished";
|
|
3
3
|
const getHeaderPaddingRight = (closeButtonIncluded, theme) => closeButtonIncluded ? theme.space.x8 : theme.space.x3;
|
|
4
4
|
const ModalHeader = styled.div(({ hasCloseButton, theme }) => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
import { Heading4, Text } from "../../../../Type";
|
|
4
4
|
import Content from "../../shared/NavigationMenuContent";
|
|
5
5
|
import Link from "./Link";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
|
-
import styled from "styled-components";
|
|
3
|
+
import { styled } from "styled-components";
|
|
4
4
|
import { NavigationMenuItem } from "../../shared/NavigationMenuItem";
|
|
5
5
|
export default function MoreMenuItem({ moreMenu }) {
|
|
6
6
|
const { t } = useTranslation();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
import { addStyledProps } from "../../../../StyledProps";
|
|
4
4
|
import { NAVIGATION_SUB_MENU_MIN_WIDTH_PX } from "../../shared/constants";
|
|
5
5
|
import { disableHoverEvents } from "../../shared/disableHoverEvents";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
import { addStyledProps } from "../../../StyledProps";
|
|
4
4
|
import { Header } from "./parts/Header";
|
|
5
5
|
import Item from "./parts/Item";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
2
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
3
3
|
import { addStyledProps } from "../../../../StyledProps";
|
|
4
4
|
const baseUserMenuItemStyles = (theme, isMobile) => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
import { NavigationMenuLink as BaseNavigationMenuLink } from "./components";
|
|
4
4
|
const NavigationMenuLink = styled(BaseNavigationMenuLink)(({ theme }) => ({
|
|
5
5
|
display: "flex",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
2
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
3
3
|
import { addStyledProps } from "../../../StyledProps";
|
|
4
4
|
import { NAVIGATION_MENU_CONTENT_WIDTH_MAX_WIDTH_PX, NAVIGATION_MENU_HEIGHT_STYLED_UNITS } from "./constants";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
3
|
-
import styled from "styled-components";
|
|
3
|
+
import { styled } from "styled-components";
|
|
4
4
|
import { Text } from "../../../Type";
|
|
5
5
|
import { Icon } from "../../../Icon";
|
|
6
6
|
import { VerticalDivider } from "../../../VerticalDivider";
|
|
@@ -56,7 +56,11 @@ export const NavigationMenuSubList = styled(RadixNavigationMenu.List) `
|
|
|
56
56
|
display: none;
|
|
57
57
|
}
|
|
58
58
|
`;
|
|
59
|
-
const Button = React.forwardRef(({ onPointerEnter
|
|
59
|
+
const Button = React.forwardRef(({ onPointerEnter, onPointerLeave, onPointerMove, ...props }, forwardedRef) => {
|
|
60
|
+
// These props are intentionally ignored to prevent pointer events from interfering with keyboard navigation
|
|
61
|
+
void onPointerEnter;
|
|
62
|
+
void onPointerLeave;
|
|
63
|
+
void onPointerMove;
|
|
60
64
|
return React.createElement("button", { ...props, ref: forwardedRef });
|
|
61
65
|
});
|
|
62
66
|
Button.displayName = "Button";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
import { Icon } from "../../../Icon";
|
|
4
4
|
import { addStyledProps } from "../../../StyledProps";
|
|
5
5
|
import { NAVIGATION_MENU_HEIGHT_STYLED_UNITS } from "./constants";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
2
|
import PaginationButton from "./PaginationButton";
|
|
3
3
|
const PageNumber = styled(PaginationButton)(({ theme, currentPage }) => ({
|
|
4
4
|
background: currentPage ? theme.colors.darkBlue : "transparent",
|
package/dist/src/Radio/Radio.js
CHANGED
|
@@ -19,8 +19,6 @@ const RangeContainer = ({ startComponent, endComponent, errorMessages = [], labe
|
|
|
19
19
|
React.createElement(Flex, { px: "half", alignItems: "flex-end", alignSelf: "flex-end" },
|
|
20
20
|
React.createElement(Text, { lineHeight: variant === "touch" ? "56px" : "38px" }, "-")),
|
|
21
21
|
React.createElement(Flex, null, endComponent)),
|
|
22
|
-
errorMessages.map((errorMessage, i) => (
|
|
23
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
24
|
-
React.createElement(InlineValidation, { key: i, errorMessage: errorMessage })))));
|
|
22
|
+
errorMessages.map((errorMessage, i) => (React.createElement(InlineValidation, { key: i, errorMessage: errorMessage })))));
|
|
25
23
|
};
|
|
26
24
|
export default RangeContainer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import styled,
|
|
2
|
+
import { styled, useTheme } from "styled-components";
|
|
3
3
|
import numberFromDimension from "../utils/numberFromDimension";
|
|
4
4
|
import { Box } from "../Box";
|
|
5
5
|
import { SummaryContextProvider } from "./SummaryContext";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
import { variant } from "styled-system";
|
|
4
4
|
import numberFromDimension from "../utils/numberFromDimension";
|
|
5
5
|
const Switch = React.forwardRef(({ children, ...rest }, ref) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
3
|
const StyledTableCell = styled.td(({ align, compact, verticalAlign, theme }) => {
|
|
4
4
|
const padding = compact ? theme.space.x1 : theme.space.x2;
|
|
5
5
|
return {
|
package/dist/src/Tabs/Tab.js
CHANGED
|
@@ -102,8 +102,3 @@ export const WithContentLoadedOnSelection = () => (React.createElement(Tabs, { r
|
|
|
102
102
|
WithContentLoadedOnSelection.story = {
|
|
103
103
|
name: "with content loaded on selection",
|
|
104
104
|
};
|
|
105
|
-
export const WithConditionallyRenderedTabs = () => (React.createElement(Tabs, null,
|
|
106
|
-
false && React.createElement(Tab, { label: "Hidden 2" }, "Hidden tab 1"),
|
|
107
|
-
true && React.createElement(Tab, { label: "Shown 1" }, "Shown tab 1"),
|
|
108
|
-
false && React.createElement(Tab, { label: "Hidden 2" }, "Hidden tab 2"),
|
|
109
|
-
true && React.createElement(Tab, { label: "Shown 2" }, "Shown tab 2")));
|
|
@@ -4,9 +4,13 @@ import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
|
4
4
|
declare const TimeRange: React.ForwardRefExoticComponent<Omit<SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
5
5
|
variant?: ComponentVariant;
|
|
6
6
|
timeFormat?: string;
|
|
7
|
-
onRangeChange?:
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
onRangeChange?: (range: {
|
|
8
|
+
startTime?: string;
|
|
9
|
+
endTime?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
onStartTimeChange?: (label: string) => void;
|
|
13
|
+
onEndTimeChange?: (label: string) => void;
|
|
10
14
|
ref?: React.MutableRefObject<unknown>;
|
|
11
15
|
errorMessage?: string;
|
|
12
16
|
defaultStartTime?: string;
|
|
@@ -22,7 +22,7 @@ const TimeRange = forwardRef(({ timeFormat, onRangeChange, onStartTimeChange, on
|
|
|
22
22
|
...inputRef1,
|
|
23
23
|
focus: () => {
|
|
24
24
|
if (inputRef1.current) {
|
|
25
|
-
// @ts-
|
|
25
|
+
// @ts-expect-error - focus method exists on input elements but type may not be narrowed correctly
|
|
26
26
|
inputRef1.current.focus();
|
|
27
27
|
}
|
|
28
28
|
},
|
|
@@ -31,7 +31,7 @@ const TimeRange = forwardRef(({ timeFormat, onRangeChange, onStartTimeChange, on
|
|
|
31
31
|
...inputRef2,
|
|
32
32
|
focus: () => {
|
|
33
33
|
if (inputRef2.current) {
|
|
34
|
-
// @ts-
|
|
34
|
+
// @ts-expect-error - focus method exists on input elements but type may not be narrowed correctly
|
|
35
35
|
inputRef2.current.focus();
|
|
36
36
|
}
|
|
37
37
|
},
|
package/dist/src/Toast/Toast.js
CHANGED
|
@@ -73,9 +73,7 @@ export const Toast = ({ triggered = false, isCloseable = false, showDuration = T
|
|
|
73
73
|
const handleCloseButtonClick = () => {
|
|
74
74
|
hideToast(0);
|
|
75
75
|
};
|
|
76
|
-
return (React.createElement(AnimatePresence, { initial: false }, visible && (React.createElement(AnimatedBox, { onMouseEnter: onMouseIn,
|
|
77
|
-
/* @ts-ignore */
|
|
78
|
-
onFocus: onMouseIn, onMouseLeave: onMouseOut, onBlur: onMouseOut, position: "fixed", bottom: "0", left: "0", right: "0", marginLeft: "auto", marginRight: "auto", width: "fit-content", zIndex: zIndex, boxShadow: "medium", layout: true, ...toastAnimationConfig },
|
|
76
|
+
return (React.createElement(AnimatePresence, { initial: false }, visible && (React.createElement(AnimatedBox, { onMouseEnter: onMouseIn, onFocus: onMouseIn, onMouseLeave: onMouseOut, onBlur: onMouseOut, position: "fixed", bottom: "0", left: "0", right: "0", marginLeft: "auto", marginRight: "auto", width: "fit-content", zIndex: zIndex, boxShadow: "medium", layout: true, ...toastAnimationConfig },
|
|
79
77
|
React.createElement(Alert, { minWidth: "200px", maxWidth: "600px", isCloseable: isCloseable, onClose: handleCloseButtonClick, controlled: true, ...props }, children)))));
|
|
80
78
|
};
|
|
81
79
|
export default Toast;
|
|
@@ -21,7 +21,6 @@ const Toggle = React.forwardRef(({ checked, variant, className, labelText, requi
|
|
|
21
21
|
if (onClick) {
|
|
22
22
|
console.warn("onClick is deprecated. Use onChange instead.");
|
|
23
23
|
}
|
|
24
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
24
|
}, []);
|
|
26
25
|
const _checked = checked ?? defaultToggled ?? toggled;
|
|
27
26
|
const _onChange = useCallback((e) => {
|
|
@@ -36,7 +35,6 @@ const Toggle = React.forwardRef(({ checked, variant, className, labelText, requi
|
|
|
36
35
|
if (_checked !== undefined && !(onChange || onClick)) {
|
|
37
36
|
console.warn("onChange or onClick is required when checked is set.");
|
|
38
37
|
}
|
|
39
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40
38
|
}, []);
|
|
41
39
|
return (React.createElement(Field, { className: className, alignItems: "flex-start", py: "half", ...spaceProps },
|
|
42
40
|
React.createElement(FieldLabel, { htmlFor: id, labelText: labelText, requirementText: requirementText, helpText: helpText, hint: hint, disabled: disabled, variant: componentVariant, "data-testid": dataTestId },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { motion } from "framer-motion";
|
|
3
|
-
import styled,
|
|
3
|
+
import { styled, useTheme } from "styled-components";
|
|
4
4
|
import { AnimatedBox } from "../Box";
|
|
5
5
|
import { useComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
6
6
|
const getSwitchBackground = (checked) => (checked ? "darkBlue" : "darkGrey");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
-
import styled,
|
|
3
|
+
import { styled, keyframes, useTheme } from "styled-components";
|
|
4
4
|
import { maxWidth } from "styled-system";
|
|
5
5
|
// A helper hook to determine if the device supports hover
|
|
6
6
|
function useHasHover() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DialogOverlay } from "@reach/dialog";
|
|
2
2
|
import { motion } from "framer-motion";
|
|
3
3
|
import { transparentize } from "polished";
|
|
4
|
-
import styled from "styled-components";
|
|
4
|
+
import { styled } from "styled-components";
|
|
5
5
|
import { addStyledProps } from "../StyledProps";
|
|
6
6
|
import { TOPBAR } from "./constants";
|
|
7
7
|
const MenuItemList = styled.ul(({ theme }) => ({
|
package/dist/src/Type/Text.js
CHANGED
package/dist/src/i18n.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import i18n from "i18next";
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
import de_DE from "../locales/de_DE.json";
|
|
4
3
|
import en_US from "../locales/en_US.json";
|
|
5
4
|
import es_ES from "../locales/es_ES.json";
|
|
@@ -10,7 +9,6 @@ import pl_PL from "../locales/pl_PL.json";
|
|
|
10
9
|
import pt_BR from "../locales/pt_BR.json";
|
|
11
10
|
import ro_RO from "../locales/ro_RO.json";
|
|
12
11
|
import zh_CN from "../locales/zh_CN.json";
|
|
13
|
-
/* eslint-enable */
|
|
14
12
|
const resources = {
|
|
15
13
|
de_DE: {
|
|
16
14
|
nds: de_DE,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
2
|
const getThemeColor = (color, theme) => (theme.colors[color] ? theme.colors[color] : color);
|
|
3
|
-
const positionArrow = (placement
|
|
3
|
+
const positionArrow = (placement) => {
|
|
4
4
|
const location = String(placement).split("-")[0];
|
|
5
5
|
switch (location) {
|
|
6
6
|
case "top":
|
|
@@ -130,7 +130,7 @@ const PopperArrow = styled.div(({ theme }) => ({
|
|
|
130
130
|
},
|
|
131
131
|
}), ({ placement = "bottom", borderColor = "grey", backgroundColor = "white", theme }) => ({
|
|
132
132
|
...drawArrow(placement, borderColor, backgroundColor, theme),
|
|
133
|
-
}), ({ placement = "bottom"
|
|
134
|
-
...positionArrow(placement
|
|
133
|
+
}), ({ placement = "bottom" }) => ({
|
|
134
|
+
...positionArrow(placement),
|
|
135
135
|
}));
|
|
136
136
|
export default PopperArrow;
|
package/dist/src/utils/noop.js
CHANGED