@dnanpm/styleguide 3.11.5 → 3.12.1

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.
Files changed (49) hide show
  1. package/build/cjs/components/ButtonPrimary/ButtonPrimary.js +1 -0
  2. package/build/cjs/components/ButtonSecondary/ButtonSecondary.js +1 -0
  3. package/build/cjs/components/DateTimePicker/DateTimePicker.js +4 -0
  4. package/build/cjs/components/Drawer/Drawer.js +9 -8
  5. package/build/cjs/components/Floater/Floater.js +3 -3
  6. package/build/cjs/components/Hero/Hero.d.ts +88 -0
  7. package/build/cjs/components/Hero/Hero.js +202 -0
  8. package/build/cjs/components/Input/Input.d.ts +10 -1
  9. package/build/cjs/components/Input/Input.js +4 -2
  10. package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +7 -7
  11. package/build/cjs/components/MainNavigation/ChildComponents/DesktopMenu.js +7 -7
  12. package/build/cjs/components/MainNavigation/MainNavigation.js +7 -7
  13. package/build/cjs/components/NotificationBadge/NotificationBadge.js +4 -0
  14. package/build/cjs/components/PixelLoader/PixelLoader.js +5 -5
  15. package/build/cjs/components/PriorityNavigation/PriorityNavigation.js +11 -5
  16. package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +18 -18
  17. package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +27 -27
  18. package/build/cjs/components/Skeleton/Skeleton.d.ts +63 -0
  19. package/build/cjs/components/Skeleton/Skeleton.js +73 -0
  20. package/build/cjs/components/Textarea/Textarea.js +1 -1
  21. package/build/cjs/components/Tooltip/Tooltip.js +1 -1
  22. package/build/cjs/components/index.d.ts +2 -0
  23. package/build/cjs/index.js +4 -0
  24. package/build/cjs/themes/themeComponents/breakpoints.js +1 -0
  25. package/build/es/components/ButtonPrimary/ButtonPrimary.js +1 -0
  26. package/build/es/components/ButtonSecondary/ButtonSecondary.js +1 -0
  27. package/build/es/components/DateTimePicker/DateTimePicker.js +4 -0
  28. package/build/es/components/Drawer/Drawer.js +9 -8
  29. package/build/es/components/Floater/Floater.js +3 -3
  30. package/build/es/components/Hero/Hero.d.ts +88 -0
  31. package/build/es/components/Hero/Hero.js +194 -0
  32. package/build/es/components/Input/Input.d.ts +10 -1
  33. package/build/es/components/Input/Input.js +4 -2
  34. package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +7 -7
  35. package/build/es/components/MainNavigation/ChildComponents/DesktopMenu.js +7 -7
  36. package/build/es/components/MainNavigation/MainNavigation.js +7 -7
  37. package/build/es/components/NotificationBadge/NotificationBadge.js +4 -0
  38. package/build/es/components/PixelLoader/PixelLoader.js +5 -5
  39. package/build/es/components/PriorityNavigation/PriorityNavigation.js +11 -5
  40. package/build/es/components/ProgressIndicator/ProgressIndicator.js +18 -18
  41. package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +27 -27
  42. package/build/es/components/Skeleton/Skeleton.d.ts +63 -0
  43. package/build/es/components/Skeleton/Skeleton.js +65 -0
  44. package/build/es/components/Textarea/Textarea.js +1 -1
  45. package/build/es/components/Tooltip/Tooltip.js +1 -1
  46. package/build/es/components/index.d.ts +2 -0
  47. package/build/es/index.js +2 -0
  48. package/build/es/themes/themeComponents/breakpoints.js +1 -0
  49. package/package.json +7 -6
@@ -10,13 +10,13 @@ import Icon from '../Icon/Icon.js';
10
10
  const SecondaryNavigationWrapper = styled.nav `
11
11
  font-size: ${theme.fontSize.default};
12
12
  padding: 0;
13
- background-color: ${({ whiteBg }) => whiteBg ? theme.color.background.white.default : 'transparent'};
13
+ background-color: ${({ $whiteBg }) => $whiteBg ? theme.color.background.white.default : 'transparent'};
14
14
 
15
- ${({ mobileOnly }) => media.sm `
16
- display: ${mobileOnly ? 'none' : 'inherit'};
15
+ ${({ $mobileOnly }) => media.sm `
16
+ display: ${$mobileOnly ? 'none' : 'inherit'};
17
17
  `};
18
18
 
19
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
19
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
20
20
  border-bottom: 1px solid ${theme.color.line.L03};
21
21
  }
22
22
  `;
@@ -37,7 +37,7 @@ const MobileSelector = styled.button `
37
37
  cursor: pointer;
38
38
  }
39
39
 
40
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
40
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
41
41
  display: none;
42
42
  }
43
43
  `;
@@ -49,14 +49,14 @@ const MobileSelectorArrow = styled.span `
49
49
 
50
50
  .dnasg-icon svg {
51
51
  transition: transform 0.15s ease-in-out;
52
- transform: rotate(${({ isOpen }) => (isOpen ? '180deg' : '0deg')});
52
+ transform: rotate(${({ $isOpen }) => ($isOpen ? '180deg' : '0deg')});
53
53
  }
54
54
  `;
55
55
  const MobileSelectorCheck = styled.span `
56
56
  margin-left: auto;
57
57
 
58
58
  .dnasg-icon {
59
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
59
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
60
60
  display: none;
61
61
  }
62
62
  }
@@ -71,11 +71,11 @@ const SecondaryNavigationList = styled.ul `
71
71
  transition:
72
72
  max-height 0.2s ease-in-out,
73
73
  border-bottom 0.2s linear;
74
- background-color: ${({ isOpen }) => isOpen ? theme.color.background.white.default : 'transparent'};
75
- max-height: ${({ isOpen }) => (isOpen ? '500vh' : '0')};
76
- border-bottom: ${({ isOpen }) => (isOpen ? `1px solid ${theme.color.line.L03}` : 'none')};
74
+ background-color: ${({ $isOpen }) => $isOpen ? theme.color.background.white.default : 'transparent'};
75
+ max-height: ${({ $isOpen }) => ($isOpen ? '500vh' : '0')};
76
+ border-bottom: ${({ $isOpen }) => ($isOpen ? `1px solid ${theme.color.line.L03}` : 'none')};
77
77
 
78
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
78
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
79
79
  padding: 0 ${getMultipliedSize(theme.base.baseWidth, 2)};
80
80
  max-height: none;
81
81
  position: static;
@@ -93,28 +93,28 @@ const SecondaryNavigationListElement = styled.li `
93
93
  text-decoration: none;
94
94
  padding: 1rem 0;
95
95
  justify-content: start;
96
- color: ${({ isActive }) => (isActive ? theme.color.text.pink : theme.color.text.black)};
97
- font-weight: ${({ isActive }) => isActive ? theme.fontWeight.bold : theme.fontWeight.book};
96
+ color: ${({ $isActive }) => ($isActive ? theme.color.text.pink : theme.color.text.black)};
97
+ font-weight: ${({ $isActive }) => $isActive ? theme.fontWeight.bold : theme.fontWeight.book};
98
98
  display: flex;
99
99
  align-items: center;
100
100
 
101
101
  &:hover {
102
102
  color: ${theme.color.text.pink};
103
103
  text-decoration: none;
104
- cursor: ${({ isActive }) => (isActive ? 'auto' : 'pointer')};
104
+ cursor: ${({ $isActive }) => ($isActive ? 'auto' : 'pointer')};
105
105
  }
106
106
 
107
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
107
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
108
108
  padding: ${getMultipliedSize(theme.base.baseHeight, 1.5)} 0;
109
109
  font-weight: ${theme.fontWeight.book};
110
110
  }
111
111
  }
112
112
 
113
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
113
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
114
114
  margin: 0 ${getMultipliedSize(theme.base.baseWidth, 1.5)};
115
115
  white-space: nowrap;
116
116
  transition: border-bottom 0.2s linear;
117
- border-bottom: ${({ isActive }) => isActive ? `1px solid ${theme.color.default.pink}` : 'none'};
117
+ border-bottom: ${({ $isActive }) => $isActive ? `1px solid ${theme.color.default.pink}` : 'none'};
118
118
 
119
119
  &:first-of-type {
120
120
  margin-left: 0;
@@ -127,7 +127,7 @@ const IconWrapper = styled.span `
127
127
  margin-right: ${getMultipliedSize(theme.base.baseWidth, 1)};
128
128
 
129
129
  &:after {
130
- display: ${({ showNotification }) => (showNotification ? 'inline' : 'none')};
130
+ display: ${({ $showNotification }) => ($showNotification ? 'inline' : 'none')};
131
131
  content: '';
132
132
  position: absolute;
133
133
  border-radius: ${theme.radius.circle};
@@ -139,7 +139,7 @@ const IconWrapper = styled.span `
139
139
  background-color: ${theme.color.default.pink};
140
140
  }
141
141
 
142
- @media (min-width: ${({ collapseSize }) => collapseSize + 1}px) {
142
+ @media (min-width: ${({ $collapseSize }) => $collapseSize + 1}px) {
143
143
  display: none;
144
144
  }
145
145
  `;
@@ -168,16 +168,16 @@ const SecondaryNavigation = (_a) => {
168
168
  const selectedElement = (_b = props.data.pages) === null || _b === void 0 ? void 0 : _b.find(listElement => currentUrl === listElement.urls[lang]);
169
169
  const shouldHighlightSelectedElement = (_c = (selectedElement && highlightIds.some(el => el === selectedElement.id))) !== null && _c !== void 0 ? _c : false;
170
170
  const checkIsMenuItemLinkAbsolute = (menuItemLink) => menuItemLink.includes('http');
171
- return (React__default.createElement(SecondaryNavigationWrapper, { ref: ref, collapseSize: collapseSize, "data-testid": dataTestId, className: className, mobileOnly: props.mobileOnly, whiteBg: props.whiteBg },
172
- selectedElement && (React__default.createElement(MobileSelector, { onClick: toggleNav, collapseSize: collapseSize, "data-testid": "secondary-navigation-dropdown-selector" },
171
+ return (React__default.createElement(SecondaryNavigationWrapper, { ref: ref, "data-testid": dataTestId, className: className, "$collapseSize": collapseSize, "$mobileOnly": props.mobileOnly, "$whiteBg": props.whiteBg },
172
+ selectedElement && (React__default.createElement(MobileSelector, { onClick: toggleNav, "$collapseSize": collapseSize, "data-testid": "secondary-navigation-dropdown-selector" },
173
173
  React__default.createElement(MobileSelectorTitleWrapper, null,
174
- (selectedElement === null || selectedElement === void 0 ? void 0 : selectedElement.icon) && (React__default.createElement(IconWrapper, { showNotification: shouldHighlightSelectedElement, collapseSize: collapseSize },
174
+ (selectedElement === null || selectedElement === void 0 ? void 0 : selectedElement.icon) && (React__default.createElement(IconWrapper, { "$showNotification": shouldHighlightSelectedElement, "$collapseSize": collapseSize },
175
175
  React__default.createElement(Icon, { name: selectedElement.icon }))),
176
176
  React__default.createElement("span", null, selectedElement.titles[lang])),
177
- React__default.createElement(MobileSelectorArrow, { isOpen: isSecondaryNavOpen },
177
+ React__default.createElement(MobileSelectorArrow, { "$isOpen": isSecondaryNavOpen },
178
178
  React__default.createElement(Icon, { icon: ChevronDown })))),
179
179
  React__default.createElement(SecondaryNavigationList, { id: props.data.name ||
180
- `secondary-navigation-category-${(_d = props.data.categoryId) !== null && _d !== void 0 ? _d : ''}`, isOpen: isSecondaryNavOpen, collapseSize: collapseSize, "max-width": maxWidth, "data-testid": "secondary-nav-menu-ul" }, (_e = props.data.pages) === null || _e === void 0 ? void 0 : _e.map((listElement, index) => {
180
+ `secondary-navigation-category-${(_d = props.data.categoryId) !== null && _d !== void 0 ? _d : ''}`, "$isOpen": isSecondaryNavOpen, "$collapseSize": collapseSize, "max-width": maxWidth, "data-testid": "secondary-nav-menu-ul" }, (_e = props.data.pages) === null || _e === void 0 ? void 0 : _e.map((listElement, index) => {
181
181
  const linkUrl = listElement.urls[lang];
182
182
  const linkTitle = listElement.titles[lang];
183
183
  const iconName = listElement.icon || '';
@@ -186,12 +186,12 @@ const SecondaryNavigation = (_a) => {
186
186
  : currentUrl.indexOf(linkUrl) > -1;
187
187
  const showNotification = highlightIds.some(el => el === listElement.id);
188
188
  const isMenuItemLinkAbsolute = checkIsMenuItemLinkAbsolute(linkUrl);
189
- return (React__default.createElement(SecondaryNavigationListElement, { key: listElement.id, isActive: isActive, onClick: closeNav, collapseSize: collapseSize }, NextJSSecondaryNavLink && !isMenuItemLinkAbsolute ? (React__default.createElement(NextJSSecondaryNavLink, { linkUrl: linkUrl, linkTitle: linkTitle, iconName: iconName, showNotification: showNotification, collapseSize: collapseSize, "data-testid": `secondary-nav-item-link-${index + 1}` }, isActive && (React__default.createElement(MobileSelectorCheck, { collapseSize: collapseSize },
189
+ return (React__default.createElement(SecondaryNavigationListElement, { key: listElement.id, onClick: closeNav, "$isActive": isActive, "$collapseSize": collapseSize }, NextJSSecondaryNavLink && !isMenuItemLinkAbsolute ? (React__default.createElement(NextJSSecondaryNavLink, { linkUrl: linkUrl, linkTitle: linkTitle, iconName: iconName, showNotification: showNotification, collapseSize: collapseSize, "data-testid": `secondary-nav-item-link-${index + 1}` }, isActive && (React__default.createElement(MobileSelectorCheck, { "$collapseSize": collapseSize },
190
190
  React__default.createElement(Icon, { icon: Check }))))) : (React__default.createElement("a", { href: linkUrl, "data-testid": `secondary-nav-item-link-${index + 1}` },
191
- iconName && (React__default.createElement(IconWrapper, { showNotification: showNotification, collapseSize: collapseSize },
191
+ iconName && (React__default.createElement(IconWrapper, { "$showNotification": showNotification, "$collapseSize": collapseSize },
192
192
  React__default.createElement(Icon, { name: iconName }))),
193
193
  React__default.createElement("span", null, linkTitle),
194
- isActive && (React__default.createElement(MobileSelectorCheck, { collapseSize: collapseSize },
194
+ isActive && (React__default.createElement(MobileSelectorCheck, { "$collapseSize": collapseSize },
195
195
  React__default.createElement(Icon, { icon: Check })))))));
196
196
  }))));
197
197
  };
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { type ThemeInterface } from '../../themes/theme';
3
+ interface Props {
4
+ /**
5
+ * Unique ID for the skeleton
6
+ */
7
+ id?: string;
8
+ /**
9
+ * Background color of the skeleton
10
+ *
11
+ * @param {string} sand Uses theme.color.background.sand.E01
12
+ * @param {string} white Uses white background (#FFFFFF)
13
+ *
14
+ * @default 'sand'
15
+ */
16
+ backgroundColor?: 'sand' | 'white';
17
+ /**
18
+ * Opacity level of the skeleton
19
+ *
20
+ * @param {number} 100 100% opacity
21
+ * @param {number} 50 50% opacity
22
+ * @param {number} 25 25% opacity
23
+ *
24
+ * @default 100
25
+ */
26
+ opacity?: 100 | 50 | 25;
27
+ /**
28
+ * Allows to pass in custom radius value from theme
29
+ */
30
+ borderRadius?: keyof ThemeInterface['radius'];
31
+ /**
32
+ * Width of the skeleton
33
+ *
34
+ * @default '100%'
35
+ */
36
+ width?: string;
37
+ /**
38
+ * Height of the skeleton
39
+ *
40
+ * @default '6.25rem'
41
+ */
42
+ height?: string;
43
+ /**
44
+ * Allows to pass testid string for testing purposes
45
+ */
46
+ 'data-testid'?: string;
47
+ /**
48
+ * Allows to pass a custom className
49
+ */
50
+ className?: string;
51
+ /**
52
+ * If used inside a carousel, pass the slide index (starting from 1)
53
+ */
54
+ carouselIndex?: number;
55
+ /**
56
+ * Screen reader label describing the use of the skeleton,
57
+ * e.g., "Loading content" or "Loading image."
58
+ */
59
+ ariaLabel?: string;
60
+ }
61
+ declare const Skeleton: ({ backgroundColor, opacity, width, height, borderRadius, "data-testid": dataTestId, ...props }: Props) => React.JSX.Element;
62
+ /** @component */
63
+ export default Skeleton;
@@ -0,0 +1,65 @@
1
+ import { __rest } from 'tslib';
2
+ import React__default from 'react';
3
+ import { keyframes, styled } from 'styled-components';
4
+ import theme from '../../themes/theme.js';
5
+
6
+ const shimmer = keyframes `
7
+ 100% {
8
+ transform: translateX(100%);
9
+ }
10
+ `;
11
+ const sandRgba = '248, 244, 241';
12
+ const whiteRgba = '255, 255, 255';
13
+ const getAnimationDelay = (carouselIndex) => {
14
+ switch (carouselIndex) {
15
+ case 1:
16
+ return '0s';
17
+ case 2:
18
+ return '0.6s';
19
+ case 3:
20
+ return '1.2s';
21
+ case 4:
22
+ return '1.9s';
23
+ case 5:
24
+ return '2.5s';
25
+ default:
26
+ return '0s';
27
+ }
28
+ };
29
+ const getBackgroundColor = (backgroundColor) => `linear-gradient(90deg,rgba(${backgroundColor}, 0) 0%,rgba(${backgroundColor}, 0.8) 50%,rgba(${backgroundColor}, 0) 100%)`;
30
+ const SkeletonWrapper = styled.div `
31
+ position: relative;
32
+ overflow: hidden;
33
+ background-color: ${({ $backgroundColor }) => $backgroundColor === 'sand'
34
+ ? theme.color.background.sand.E01
35
+ : theme.color.background.white.default};
36
+ opacity: ${({ $opacity }) => ($opacity ? $opacity / 100 : 1)};
37
+ width: ${({ $width }) => $width};
38
+ height: ${({ $height }) => $height};
39
+ border-radius: ${({ $borderRadius }) => theme.radius[$borderRadius || 's']};
40
+
41
+ &::after {
42
+ position: absolute;
43
+ inset: 0;
44
+ transform: translateX(-100%);
45
+ background: ${({ $backgroundColor }) => getBackgroundColor($backgroundColor === 'sand' ? whiteRgba : sandRgba)};
46
+
47
+ animation: ${shimmer} 1.5s infinite;
48
+ content: '';
49
+ }
50
+
51
+ @media (min-width: 600px) {
52
+ &::after {
53
+ animation: ${shimmer} 2.5s infinite;
54
+ animation-delay: ${({ $carouselIndex }) => getAnimationDelay($carouselIndex)};
55
+ }
56
+ }
57
+ `;
58
+ const Skeleton = (_a) => {
59
+ var { backgroundColor = 'sand', opacity = 100, width = '25rem', height = '6.25rem', borderRadius = 's', 'data-testid': dataTestId } = _a, props = __rest(_a, ["backgroundColor", "opacity", "width", "height", "borderRadius", 'data-testid']);
60
+ return (React__default.createElement(React__default.Fragment, null,
61
+ props.ariaLabel && (React__default.createElement("span", { id: props.id, "aria-label": props.ariaLabel, role: "status", "aria-atomic": "true", className: "visually-hidden" })),
62
+ React__default.createElement(SkeletonWrapper, { className: props.className, "data-testid": dataTestId, "aria-hidden": "true", tabIndex: -1, "$backgroundColor": backgroundColor, "$opacity": opacity, "$width": width, "$height": height, "$carouselIndex": props.carouselIndex, "$borderRadius": borderRadius })));
63
+ };
64
+
65
+ export { Skeleton as default };
@@ -80,7 +80,7 @@ const Textarea = (_a) => {
80
80
  props.label && (React__default.createElement(LabelText, { htmlFor: props.id, "data-testid": dataTestId && `${dataTestId}-label`, status: isErrorStatus ? 'error' : undefined, isMandatory: props.required }, props.label)),
81
81
  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-invalid": isErrorStatus, "aria-describedby": describedBy, "data-testid": dataTestId }),
82
82
  props.commentMessage && (React__default.createElement(Message, { id: commentId, "data-testid": dataTestId && `${dataTestId}-comment` }, props.commentMessage)),
83
- isErrorStatus && props.errorMessage && (React__default.createElement(ErrorMessage, { id: errorId, "data-testid": dataTestId && `${dataTestId}-error` }, props.errorMessage))));
83
+ isErrorStatus && props.errorMessage && (React__default.createElement(ErrorMessage, { id: errorId, role: "alert", "data-testid": dataTestId && `${dataTestId}-error` }, props.errorMessage))));
84
84
  };
85
85
 
86
86
  export { Textarea as default };
@@ -56,7 +56,7 @@ const StyledReactTooltip = styled(Tooltip$1) `
56
56
 
57
57
  border: 1px solid ${theme.color.line.L02};
58
58
  padding: ${getMultipliedSize(theme.base.baseWidth, 1.5)};
59
- text-align: center;
59
+ text-align: left;
60
60
  font-size: ${theme.fontSize.default};
61
61
  line-height: ${theme.lineHeight.default};
62
62
  width: max-content;
@@ -22,6 +22,7 @@ export { default as EnergyLabel } from './EnergyLabel/EnergyLabel';
22
22
  export { default as Expander } from './Expander/Expander';
23
23
  export { default as Floater } from './Floater/Floater';
24
24
  export { default as Footer } from './Footer/Footer';
25
+ export { default as Hero } from './Hero/Hero';
25
26
  export { default as Icon } from './Icon/Icon';
26
27
  export * from './Icons';
27
28
  export { default as InfoDialog } from './InfoDialog/InfoDialog';
@@ -45,6 +46,7 @@ export { default as ReadMore } from './ReadMore/ReadMore';
45
46
  export { default as Search } from './Search/Search';
46
47
  export { default as SecondaryNavigation } from './SecondaryNavigation/SecondaryNavigation';
47
48
  export { default as Selectbox } from './Selectbox/Selectbox';
49
+ export { default as Skeleton } from './Skeleton/Skeleton';
48
50
  export { default as Switch } from './Switch/Switch';
49
51
  export { default as Tab } from './Tab/Tab';
50
52
  export { default as Tabs } from './Tabs/Tabs';
package/build/es/index.js CHANGED
@@ -22,6 +22,7 @@ export { default as EnergyLabel } from './components/EnergyLabel/EnergyLabel.js'
22
22
  export { default as Expander } from './components/Expander/Expander.js';
23
23
  export { default as Floater } from './components/Floater/Floater.js';
24
24
  export { default as Footer } from './components/Footer/Footer.js';
25
+ export { default as Hero } from './components/Hero/Hero.js';
25
26
  export { default as Icon } from './components/Icon/Icon.js';
26
27
  export { default as hlArrowBackSmall } from './components/Icons/Small/hlArrowBackSmall.js';
27
28
  export { default as hlArrowForwardSmall } from './components/Icons/Small/hlArrowForwardSmall.js';
@@ -153,6 +154,7 @@ export { default as ReadMore } from './components/ReadMore/ReadMore.js';
153
154
  export { default as Search } from './components/Search/Search.js';
154
155
  export { default as SecondaryNavigation } from './components/SecondaryNavigation/SecondaryNavigation.js';
155
156
  export { default as Selectbox } from './components/Selectbox/Selectbox.js';
157
+ export { default as Skeleton } from './components/Skeleton/Skeleton.js';
156
158
  export { default as Switch } from './components/Switch/Switch.js';
157
159
  export { default as Tab } from './components/Tab/Tab.js';
158
160
  export { default as Tabs } from './components/Tabs/Tabs.js';
@@ -1,4 +1,5 @@
1
1
  const breakpoints = {
2
+ xxl: 1440,
2
3
  xl: 1200,
3
4
  lg: 992,
4
5
  md: 768,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dnanpm/styleguide",
3
3
  "sideEffects": false,
4
- "version": "v3.11.5",
4
+ "version": "v3.12.1",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/es/index.js",
7
7
  "jsnext:main": "build/es/index.js",
@@ -49,14 +49,14 @@
49
49
  "@babel/preset-typescript": "^7.27.1",
50
50
  "@dnanpm/icons": "^2.0.9",
51
51
  "@rollup/plugin-commonjs": "^28.0.3",
52
- "@rollup/plugin-node-resolve": "^15.3.0",
52
+ "@rollup/plugin-node-resolve": "^16.0.3",
53
53
  "@rollup/plugin-typescript": "^12.1.2",
54
54
  "@testing-library/jest-dom": "^6.6.3",
55
55
  "@testing-library/react": "^16.3.0",
56
56
  "@testing-library/user-event": "^14.5.2",
57
57
  "@types/jest": "^30.0.0",
58
58
  "@types/node": "^17.0.45",
59
- "@types/ramda": "^0.27.36",
59
+ "@types/ramda": "^0.31.1",
60
60
  "@types/react": "^18.3.11",
61
61
  "@types/react-dom": "^18.3.1",
62
62
  "@types/react-modal": "^3.13.1",
@@ -71,11 +71,12 @@
71
71
  "eslint-config-airbnb-typescript": "^17.1.0",
72
72
  "eslint-config-prettier": "^10.1.8",
73
73
  "eslint-plugin-import": "2.32.0",
74
- "eslint-plugin-jsdoc": "^56.1.2",
74
+ "eslint-plugin-jsdoc": "^61.1.4",
75
75
  "eslint-plugin-jsx-a11y": "^6.10.2",
76
76
  "eslint-plugin-prefer-arrow": "^1.2.3",
77
77
  "eslint-plugin-react": "^7.37.4",
78
78
  "eslint-plugin-react-hooks": "^4.6.2",
79
+ "eslint-plugin-transient-props": "file:eslint-plugins/eslint-plugin-transient-props",
79
80
  "jest": "^30.0.5",
80
81
  "jest-environment-jsdom": "^29.7.0",
81
82
  "jest-styled-components": "^7.2.0",
@@ -97,8 +98,8 @@
97
98
  "webpack": "^5.99.8"
98
99
  },
99
100
  "dependencies": {
100
- "ramda": "^0.27.1",
101
- "react-datepicker": "8.7.0",
101
+ "ramda": "^0.32.0",
102
+ "react-datepicker": "8.8.0",
102
103
  "react-modal": "^3.16.1",
103
104
  "react-select": "^5.8.1",
104
105
  "react-spring": "^8.0.27",