@helsenorge/designsystem-react 3.0.0 → 3.0.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.
- package/CHANGELOG.md +380 -668
- package/HelpBubble.js +1 -1
- package/HelpBubble.js.map +1 -1
- package/HorizontalScroll.js.map +1 -1
- package/Input.js +1 -1
- package/Input.js.map +1 -1
- package/ListHeader.js +1 -1
- package/ListHeader.js.map +1 -1
- package/Modal.js.map +1 -1
- package/PopOver.js +1 -1
- package/PopOver.js.map +1 -1
- package/RadioButton.js +1 -1
- package/RadioButton.js.map +1 -1
- package/Textarea.js +1 -1
- package/Textarea.js.map +1 -1
- package/Title.js.map +1 -1
- package/Tooltip.js.map +1 -1
- package/TooltipWord.js +1 -1
- package/TooltipWord.js.map +1 -1
- package/components/AnchorLink/styles.module.scss +11 -6
- package/components/Avatar/styles.module.scss +2 -2
- package/components/Badge/styles.module.scss +7 -1
- package/components/Button/styles.module.scss +35 -21
- package/components/Checkbox/styles.module.scss +12 -12
- package/components/Close/styles.module.scss +15 -7
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/index.js.map +1 -1
- package/components/Dropdown/styles.module.scss +31 -10
- package/components/Duolist/styles.module.scss +5 -3
- package/components/ErrorWrapper/styles.module.scss +8 -6
- package/components/Expander/styles.module.scss +46 -15
- package/components/ExpanderHierarchy/expander.module.scss +13 -8
- package/components/ExpanderHierarchy/expander.module.scss.d.ts +1 -1
- package/components/ExpanderHierarchy/styles.module.scss +3 -3
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +17 -6
- package/components/FormExample/FormExample.d.ts.map +1 -1
- package/components/FormExample/index.js.map +1 -1
- package/components/FormExample/styles.module.scss +6 -6
- package/components/FormGroup/styles.module.scss +5 -4
- package/components/FormLayout/styles.module.scss +5 -2
- package/components/HelpBubble/HelpBubble.d.ts +2 -2
- package/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/components/HelpBubble/index.js +1 -1
- package/components/HelpBubble/styles.module.scss +10 -10
- package/components/HelpBubble/styles.module.scss.d.ts +0 -1
- package/components/HelpBubbleExample/index.js +1 -1
- package/components/HighlightBox/index.js.map +1 -1
- package/components/HighlightBox/styles.module.scss +38 -29
- package/components/HorizontalScroll/HorizontalScroll.d.ts.map +1 -1
- package/components/HorizontalScroll/styles.module.scss +10 -3
- package/components/Icons/SortUp.js +1 -1
- package/components/Icons/SortUp.js.map +1 -1
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/styles.module.scss +8 -7
- package/components/LinkList/styles.module.scss +23 -5
- package/components/List/styles.module.scss +4 -0
- package/components/ListHeader/ListHeader.d.ts +9 -7
- package/components/ListHeader/ListHeader.d.ts.map +1 -1
- package/components/ListHeader/styles.module.scss +36 -11
- package/components/Loader/styles.module.scss +40 -18
- package/components/Logo/index.js.map +1 -1
- package/components/MaxCharacters/styles.module.scss +7 -5
- package/components/Modal/styles.module.scss +39 -23
- package/components/NotificationPanel/DetailButton/styles.module.scss +9 -5
- package/components/NotificationPanel/index.js.map +1 -1
- package/components/NotificationPanel/styles.module.scss +45 -12
- package/components/Panel/styles.module.scss +53 -29
- package/components/PanelList/styles.module.scss +6 -5
- package/components/PopMenu/PopMenu.d.ts.map +1 -1
- package/components/PopMenu/styles.module.scss +28 -7
- package/components/PopOver/PopOver.d.ts +5 -3
- package/components/PopOver/PopOver.d.ts.map +1 -1
- package/components/PopOver/componentdata.json +1 -1
- package/components/PopOver/styles.module.scss +16 -13
- package/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/components/RadioButton/styles.module.scss +12 -14
- package/components/Select/styles.module.scss +14 -8
- package/components/Slider/Slider.d.ts.map +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Slider/index.js.map +1 -1
- package/components/Slider/styles.module.scss +1 -1
- package/components/Spacer/styles.module.scss +13 -1
- package/components/StatusDot/styles.module.scss +2 -2
- package/components/Stepper/styles.module.scss +28 -20
- package/components/Table/Table.d.ts.map +1 -1
- package/components/Table/index.js +1 -1
- package/components/Table/index.js.map +1 -1
- package/components/Table/styles.module.scss +32 -20
- package/components/Tag/styles.module.scss +39 -27
- package/components/TagList/styles.module.scss +3 -3
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/styles.module.scss +6 -5
- package/components/Tile/styles.module.scss +11 -6
- package/components/Title/Title.d.ts +1 -1
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/styles.module.scss +5 -0
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts +1 -1
- package/components/Tooltip/TooltipWord/TooltipWord.d.ts.map +1 -1
- package/components/Tooltip/TooltipWord/styles.module.scss +3 -3
- package/components/Tooltip/index.js +1 -1
- package/components/TooltipExample/index.js +1 -1
- package/components/Validation/styles.module.scss +3 -3
- package/hoc/withBreakpoint/withBreakpoint.d.ts +1 -1
- package/hoc/withBreakpoint/withBreakpoint.d.ts.map +1 -1
- package/hoc/withBreakpoint/withBreakpoint.js.map +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/hooks/useFocusTrap.js.map +1 -1
- package/hooks/useSize.js.map +1 -1
- package/package.json +1 -1
- package/scss/_body.scss +3 -1
- package/scss/_breakpoints.scss +5 -8
- package/scss/_figma-tokens.scss +2 -2
- package/scss/_fonts.scss +36 -21
- package/scss/_grid.scss +5 -4
- package/scss/_input.scss +20 -11
- package/scss/_palette.scss +3 -11
- package/scss/_print.scss +58 -18
- package/scss/_screen-reader.scss +0 -2
- package/scss/_spacers.scss +17 -15
- package/scss/_title.scss +11 -5
- package/scss/helsenorge.scss +1 -1
- package/scss/typography.module.scss +20 -13
- package/utils/component.d.ts +1 -0
- package/utils/component.d.ts.map +1 -1
- package/utils/component.js +1 -1
- package/utils/component.js.map +1 -1
- package/utils/debounce.d.ts +1 -2
- package/utils/debounce.d.ts.map +1 -1
- package/utils/debounce.js +1 -1
- package/utils/debounce.js.map +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
3
4
|
|
|
4
5
|
.date-time {
|
|
5
6
|
display: flex;
|
|
6
|
-
flex-
|
|
7
|
-
flex-wrap: wrap;
|
|
7
|
+
flex-flow: column wrap;
|
|
8
8
|
|
|
9
|
-
@media (min-width: map
|
|
9
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
10
10
|
flex-direction: row;
|
|
11
11
|
align-items: flex-end;
|
|
12
12
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
align-items: flex-end;
|
|
21
21
|
padding-top: getSpacer(m);
|
|
22
22
|
|
|
23
|
-
@media (min-width: map
|
|
23
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
24
24
|
padding-top: 0;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '../../scss/
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/font-settings
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
|
+
@import '../../scss/palette';
|
|
4
|
+
@import '../../scss/font-settings';
|
|
5
5
|
|
|
6
6
|
.form-group-wrapper {
|
|
7
7
|
&__title {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
border: none;
|
|
20
20
|
padding: 0;
|
|
21
21
|
margin: 0;
|
|
22
|
+
|
|
22
23
|
> div {
|
|
23
24
|
padding-bottom: 0;
|
|
24
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../scss/
|
|
2
|
-
@import '../../scss/
|
|
1
|
+
@import '../../scss/spacers';
|
|
2
|
+
@import '../../scss/breakpoints';
|
|
3
3
|
|
|
4
4
|
.form-layout-container {
|
|
5
5
|
// Settes med harde verdier fordi calc() lenger nede ikke støtter getSpacer()
|
|
@@ -22,12 +22,15 @@
|
|
|
22
22
|
&--two {
|
|
23
23
|
flex-basis: calc(50% - var(--column-gap));
|
|
24
24
|
}
|
|
25
|
+
|
|
25
26
|
&--three {
|
|
26
27
|
flex-basis: calc(33% - var(--column-gap));
|
|
27
28
|
}
|
|
29
|
+
|
|
28
30
|
&--four {
|
|
29
31
|
flex-basis: calc(25% - var(--column-gap));
|
|
30
32
|
}
|
|
33
|
+
|
|
31
34
|
&--five {
|
|
32
35
|
flex-basis: calc(20% - var(--column-gap));
|
|
33
36
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PopOverVariant } from '../PopOver';
|
|
2
|
+
import { PopOverProps, PopOverVariant } from '../PopOver';
|
|
3
3
|
export declare const HelpBubbleVariant: typeof PopOverVariant;
|
|
4
4
|
type HelpBubbleRole = 'tooltip';
|
|
5
|
-
export interface HelpBubbleProps {
|
|
5
|
+
export interface HelpBubbleProps extends Pick<PopOverProps, 'children' | 'variant' | 'controllerRef' | 'role'> {
|
|
6
6
|
/** Id of the HelpBubble */
|
|
7
7
|
helpBubbleId?: string;
|
|
8
8
|
/** Content shown inside HelpBubble. Note that if role="tooltip", you must not include interactive/focusable elements. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAInE,eAAO,MAAM,iBAAiB,uBAAiB,CAAC;AAEhD,KAAK,cAAc,GAAG,SAAS,CAAC;AAEhC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,eAAe,GAAG,MAAM,CAAC;IAC5G,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yHAAyH;IACzH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wDAAwD;IACxD,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,aAAa,CAAC,CAAC;IAC5D,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;IACzC,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6FAA6F;IAC7F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iEAAiE;IACjE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,wGA6Ed,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{H as o}from"../../HelpBubble.js";import{a as G}from"../../HelpBubble.js";import"react";import"classnames";import"../../constants.js";import"../../
|
|
1
|
+
import{H as o}from"../../HelpBubble.js";import{a as G}from"../../HelpBubble.js";import"react";import"classnames";import"../../constants.js";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../../utils/refs.js";import"../PopOver/styles.module.scss";import"./styles.module.scss";export{G as HelpBubbleVariant,o as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
5
|
-
@import '
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
|
+
@import '../AnchorLink/styles.module';
|
|
6
7
|
|
|
7
8
|
.helpbubble {
|
|
8
9
|
$bubble: &;
|
|
10
|
+
|
|
9
11
|
display: flex;
|
|
10
12
|
align-items: flex-start !important;
|
|
11
13
|
text-align: start;
|
|
12
14
|
font-family: inherit;
|
|
13
15
|
font-size: $font-size-sm;
|
|
14
16
|
line-height: $lineheight-size-sm;
|
|
15
|
-
&--visible {
|
|
16
|
-
visibility: visible;
|
|
17
|
-
}
|
|
18
17
|
|
|
19
|
-
@media (min-width: map
|
|
18
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
20
19
|
font-size: $font-size-md;
|
|
21
20
|
line-height: $lineheight-size-md;
|
|
22
21
|
}
|
|
@@ -41,11 +40,12 @@
|
|
|
41
40
|
|
|
42
41
|
&__link {
|
|
43
42
|
all: unset;
|
|
43
|
+
|
|
44
44
|
@include anchorlink;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__close {
|
|
48
48
|
order: 2;
|
|
49
|
-
padding: getSpacer(2xs) getSpacer(2xs)
|
|
49
|
+
padding: getSpacer(2xs) getSpacer(2xs) 0 0;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import i,{useRef as o}from"react";import{H as r}from"../../HelpBubble.js";import"classnames";import"../../constants.js";import"../../
|
|
1
|
+
import i,{useRef as o}from"react";import{H as r}from"../../HelpBubble.js";import"classnames";import"../../constants.js";import"../../AnchorLink.js";import"../../hooks/useHover.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/grid.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/ArrowUpRight.js";import"../AnchorLink/styles.module.scss";import"../../Close.js";import"../../hooks/useBreakpoint.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../PopOver.js";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../../utils/refs.js";import"../PopOver/styles.module.scss";import"../HelpBubble/styles.module.scss";const a=e=>{const t=o(null);return i.createElement("div",null,i.createElement("span",null,"Consequat adipisicing nostrud non in labore sunt consequat mollit dolore quis voluptate eu veniam adipisicing. Dolor ipsum excepteur anim id ea dolore esse. Sint exercitation duis pariatur in qui ea reprehenderit consectetur sunt minim in ut cupidatat dolore. Eiusmod ut Lorem nostrud id adipisicing ullamco enim. Velit officia mollit laboris amet reprehenderit ad. Nisi cupidatat dolor voluptate officia mollit eu nostrud ipsum. Dolor labore ullamco nostrud consectetur dolor duis qui magna reprehenderit. Esse reprehenderit dolor fugiat sunt adipisicing est. Aliquip duis pariatur labore amet sit occaecat ea eiusmod cillum. Adipisicing magna aute officia cillum non."),i.createElement("div",{style:{position:"relative",display:"inline"}},i.createElement("span",{ref:t,style:{display:"inline-block",color:"red"}},"Jeg er en tooltip tekst."),i.createElement(r,{...e,onClose:()=>{alert("Bubble closed")},controllerRef:t},e.children)),i.createElement("span",null,"Consequat adipisicing nostrud non in labore sunt consequat mollit dolore quis voluptate eu veniam adipisicing. Dolor ipsum excepteur anim id ea dolore esse. Sint exercitation duis pariatur in qui ea reprehenderit consectetur sunt minim in ut cupidatat dolore. Eiusmod ut Lorem nostrud id adipisicing ullamco enim. Velit officia mollit laboris amet reprehenderit ad. Nisi cupidatat dolor voluptate officia mollit eu nostrud ipsum. Dolor labore ullamco nostrud consectetur dolor duis qui magna reprehenderit. Esse reprehenderit dolor fugiat sunt adipisicing est. Aliquip duis pariatur labore amet sit occaecat ea eiusmod cillum. Adipisicing magna aute officia cillum non."))},w=a;export{w as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/HighlightBox/HighlightBox.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { useBreakpoint, Breakpoint } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\nimport Icon, { SvgIcon, IconSize } from '../Icons';\n\nimport styles from './styles.module.scss';\n\nexport type HighlightBoxColors = Extract<PaletteNames, 'white' | 'blueberry' | 'cherry' | 'neutral' | 'kiwi' | 'plum'>;\n\nexport enum HighlightBoxSize {\n medium = 'medium',\n large = 'large',\n fluid = 'fluid',\n}\n\nexport type HighlightBoxTags = Exclude<\n keyof HTMLElementTagNameMap,\n 'dir' | 'font' | 'frame' | 'frameset' | 'marquee' | 'applet' | 'basefont'\n>;\n\ninterface HighlightBoxProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Changes the background color. Default: white */\n color?: HighlightBoxColors;\n /** Changes the size. Default: medium */\n size?: keyof typeof HighlightBoxSize;\n /** Adds an icon to the highlightbox. */\n svgIcon?: SvgIcon;\n /** Changes the underlying element. Default: div */\n htmlMarkup?: HighlightBoxTags;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface WrapperProps {\n className: string;\n size?: keyof typeof HighlightBoxSize;\n}\n\nconst Wrapper: React.FC<WrapperProps> = ({ className, size, children }) => (\n <div className={className} data-testid={'highlightbox-wrapper'}>\n <div className={styles.highlightbox__row}>\n <div className={classNames(styles.highlightbox__col, size === HighlightBoxSize.medium && styles['highlightbox__col--offset'])}>\n {children}\n </div>\n </div>\n </div>\n);\n\nconst ContentWrapper: React.FC = ({ children }) => (\n <div className={styles['highlightbox__content-wrapper']}>\n <div className={classNames(styles.highlightbox__row)}>{children}</div>\n </div>\n);\n\nconst HighlightBox: React.FC<HighlightBoxProps> = props => {\n const { children, color = 'white', size = HighlightBoxSize.medium, testId, svgIcon, htmlMarkup = 'div', className } = props;\n const breakpoint = useBreakpoint();\n\n const containerClassName = classNames(\n styles['highlightbox'],\n styles[`highlightbox--${color}`],\n styles[`highlightbox--${size}`],\n svgIcon && styles['highlightbox--has-icon'],\n { container: size === 'medium' || size === 'large' },\n className\n );\n\n const renderContent = () => {\n if (svgIcon) {\n const iconSize = size === HighlightBoxSize.large && breakpoint && breakpoint >= Breakpoint.md ? IconSize.Medium : IconSize.Small;\n return (\n <>\n <div className={styles.highlightbox__icon}>\n <Icon svgIcon={svgIcon} size={iconSize} />\n </div>\n <div className={styles.highlightbox__content}>{children}</div>\n </>\n );\n }\n\n return children;\n };\n\n const CustomTag = htmlMarkup;\n\n if (size === HighlightBoxSize.medium) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <CustomTag className={styles['highlightbox__content-wrapper']} data-testid={testId} data-analyticsid={AnalyticsId.HighlightBox}>\n {renderContent()}\n </CustomTag>\n </Wrapper>\n );\n }\n\n if (size === HighlightBoxSize.large && svgIcon) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper>\n <CustomTag\n className={classNames(styles.highlightbox__col, styles['highlightbox__col--large-with-icon'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightBox}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightBoxSize.large) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper>\n <CustomTag\n className={classNames(styles.highlightbox__col, styles['highlightbox__col--offset'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightBox}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightBoxSize.fluid) {\n return (\n <CustomTag className={containerClassName} data-testid={testId}>\n {renderContent()}\n </CustomTag>\n );\n }\n\n return null;\n};\n\nexport default HighlightBox;\n"],"names":["HighlightBoxSize","Wrapper","className","size","children","React","styles","classNames","ContentWrapper","HighlightBox","props","color","testId","svgIcon","htmlMarkup","breakpoint","useBreakpoint","containerClassName","renderContent","iconSize","Breakpoint","IconSize","Icon","CustomTag","AnalyticsId","HighlightBox$1"],"mappings":"2XAaY,IAAAA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QAHEA,IAAAA,GAAA,CAAA,CAAA,EAiCZ,MAAMC,EAAkC,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,SAAAC,CAC1D,IAAAC,EAAA,cAAC,MAAI,CAAA,UAAAH,EAAsB,cAAa,sBAAA,kBACrC,MAAI,CAAA,UAAWI,EAAO,iBAAA,EACpBD,EAAA,cAAA,MAAA,CAAI,UAAWE,EAAWD,EAAO,kBAAmBH,IAAS,UAA2BG,EAAO,2BAA2B,CAAC,GACzHF,CACH,CACF,CACF,EAGII,EAA2B,CAAC,CAAE,SAAAJ,KAClCC,EAAA,cAAC,OAAI,UAAWC,EAAO,+BAA+B,CACpD,EAAAD,EAAA,cAAC,OAAI,UAAWE,EAAWD,EAAO,iBAAiB,CAAA,EAAIF,CAAS,CAClE,EAGIK,EAAqDC,GAAA,CACnD,KAAA,CAAE,SAAAN,EAAU,MAAAO,EAAQ,QAAS,KAAAR,EAAO,SAAyB,OAAAS,EAAQ,QAAAC,EAAS,WAAAC,EAAa,MAAO,UAAAZ,CAAA,EAAcQ,EAChHK,EAAaC,IAEbC,EAAqBV,EACzBD,EAAO,aACPA,EAAO,iBAAiBK,GAAO,EAC/BL,EAAO,iBAAiBH,GAAM,EAC9BU,GAAWP,EAAO,wBAAwB,EAC1C,CAAE,UAAWH,IAAS,UAAYA,IAAS,OAAQ,EACnDD,CAAA,EAGIgB,EAAgB,IAAM,CAC1B,GAAIL,EAAS,CACL,MAAAM,EAAWhB,IAAS,SAA0BY,GAAcA,GAAcK,EAAW,GAAKC,EAAS,OAASA,EAAS,MAC3H,uCAEKhB,EAAA,cAAA,MAAA,CAAI,UAAWC,EAAO,kBAAA,kBACpBgB,EAAK,CAAA,QAAAT,EAAkB,KAAMM,CAAU,CAAA,CAC1C,EACCd,EAAA,cAAA,MAAA,CAAI,UAAWC,EAAO,qBAAA,EAAwBF,CAAS,CAC1D,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/HighlightBox/HighlightBox.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { useBreakpoint, Breakpoint } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport { PaletteNames } from '../../theme/palette';\nimport Icon, { SvgIcon, IconSize } from '../Icons';\n\nimport styles from './styles.module.scss';\n\nexport type HighlightBoxColors = Extract<PaletteNames, 'white' | 'blueberry' | 'cherry' | 'neutral' | 'kiwi' | 'plum'>;\n\nexport enum HighlightBoxSize {\n medium = 'medium',\n large = 'large',\n fluid = 'fluid',\n}\n\nexport type HighlightBoxTags = Exclude<\n keyof HTMLElementTagNameMap,\n 'dir' | 'font' | 'frame' | 'frameset' | 'marquee' | 'applet' | 'basefont'\n>;\n\ninterface HighlightBoxProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Changes the background color. Default: white */\n color?: HighlightBoxColors;\n /** Changes the size. Default: medium */\n size?: keyof typeof HighlightBoxSize;\n /** Adds an icon to the highlightbox. */\n svgIcon?: SvgIcon;\n /** Changes the underlying element. Default: div */\n htmlMarkup?: HighlightBoxTags;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ninterface WrapperProps {\n className: string;\n size?: keyof typeof HighlightBoxSize;\n}\n\nconst Wrapper: React.FC<WrapperProps> = ({ className, size, children }) => (\n <div className={className} data-testid={'highlightbox-wrapper'}>\n <div className={styles.highlightbox__row}>\n <div className={classNames(styles.highlightbox__col, size === HighlightBoxSize.medium && styles['highlightbox__col--offset'])}>\n {children}\n </div>\n </div>\n </div>\n);\n\nconst ContentWrapper: React.FC = ({ children }) => (\n <div className={styles['highlightbox__content-wrapper']}>\n <div className={classNames(styles.highlightbox__row)}>{children}</div>\n </div>\n);\n\nconst HighlightBox: React.FC<HighlightBoxProps> = props => {\n const { children, color = 'white', size = HighlightBoxSize.medium, testId, svgIcon, htmlMarkup = 'div', className } = props;\n const breakpoint = useBreakpoint();\n\n const containerClassName = classNames(\n styles['highlightbox'],\n styles[`highlightbox--${color}`],\n styles[`highlightbox--${size}`],\n svgIcon && styles['highlightbox--has-icon'],\n { container: size === 'medium' || size === 'large' },\n className\n );\n\n const renderContent = () => {\n if (svgIcon) {\n const iconSize = size === HighlightBoxSize.large && breakpoint && breakpoint >= Breakpoint.md ? IconSize.Medium : IconSize.Small;\n return (\n <>\n <div className={styles.highlightbox__icon}>\n <Icon svgIcon={svgIcon} size={iconSize} />\n </div>\n <div className={styles.highlightbox__content}>{children}</div>\n </>\n );\n }\n\n return children;\n };\n\n const CustomTag = htmlMarkup;\n\n if (size === HighlightBoxSize.medium) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <CustomTag className={styles['highlightbox__content-wrapper']} data-testid={testId} data-analyticsid={AnalyticsId.HighlightBox}>\n {renderContent()}\n </CustomTag>\n </Wrapper>\n );\n }\n\n if (size === HighlightBoxSize.large && svgIcon) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper>\n <CustomTag\n className={classNames(styles.highlightbox__col, styles['highlightbox__col--large-with-icon'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightBox}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightBoxSize.large) {\n return (\n <Wrapper className={containerClassName} size={size}>\n <ContentWrapper>\n <CustomTag\n className={classNames(styles.highlightbox__col, styles['highlightbox__col--offset'])}\n data-testid={testId}\n data-analyticsid={AnalyticsId.HighlightBox}\n >\n {renderContent()}\n </CustomTag>\n </ContentWrapper>\n </Wrapper>\n );\n }\n\n if (size === HighlightBoxSize.fluid) {\n return (\n <CustomTag className={containerClassName} data-testid={testId}>\n {renderContent()}\n </CustomTag>\n );\n }\n\n return null;\n};\n\nexport default HighlightBox;\n"],"names":["HighlightBoxSize","Wrapper","className","size","children","React","styles","classNames","ContentWrapper","HighlightBox","props","color","testId","svgIcon","htmlMarkup","breakpoint","useBreakpoint","containerClassName","renderContent","iconSize","Breakpoint","IconSize","Icon","CustomTag","AnalyticsId","HighlightBox$1"],"mappings":"2XAaY,IAAAA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QAHEA,IAAAA,GAAA,CAAA,CAAA,EAiCZ,MAAMC,EAAkC,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,SAAAC,CAC1D,IAAAC,EAAA,cAAC,MAAI,CAAA,UAAAH,EAAsB,cAAa,sBAAA,kBACrC,MAAI,CAAA,UAAWI,EAAO,iBAAA,EACpBD,EAAA,cAAA,MAAA,CAAI,UAAWE,EAAWD,EAAO,kBAAmBH,IAAS,UAA2BG,EAAO,2BAA2B,CAAC,GACzHF,CACH,CACF,CACF,EAGII,EAA2B,CAAC,CAAE,SAAAJ,KAClCC,EAAA,cAAC,OAAI,UAAWC,EAAO,+BAA+B,CACpD,EAAAD,EAAA,cAAC,OAAI,UAAWE,EAAWD,EAAO,iBAAiB,CAAA,EAAIF,CAAS,CAClE,EAGIK,EAAqDC,GAAA,CACnD,KAAA,CAAE,SAAAN,EAAU,MAAAO,EAAQ,QAAS,KAAAR,EAAO,SAAyB,OAAAS,EAAQ,QAAAC,EAAS,WAAAC,EAAa,MAAO,UAAAZ,CAAA,EAAcQ,EAChHK,EAAaC,IAEbC,EAAqBV,EACzBD,EAAO,aACPA,EAAO,iBAAiBK,GAAO,EAC/BL,EAAO,iBAAiBH,GAAM,EAC9BU,GAAWP,EAAO,wBAAwB,EAC1C,CAAE,UAAWH,IAAS,UAAYA,IAAS,OAAQ,EACnDD,CAAA,EAGIgB,EAAgB,IAAM,CAC1B,GAAIL,EAAS,CACL,MAAAM,EAAWhB,IAAS,SAA0BY,GAAcA,GAAcK,EAAW,GAAKC,EAAS,OAASA,EAAS,MAC3H,uCAEKhB,EAAA,cAAA,MAAA,CAAI,UAAWC,EAAO,kBAAA,kBACpBgB,EAAK,CAAA,QAAAT,EAAkB,KAAMM,CAAU,CAAA,CAC1C,EACCd,EAAA,cAAA,MAAA,CAAI,UAAWC,EAAO,qBAAA,EAAwBF,CAAS,CAC1D,EAIG,OAAAA,CAAA,EAGHmB,EAAYT,EAElB,OAAIX,IAAS,yBAERF,EAAQ,CAAA,UAAWgB,EAAoB,KAAAd,GACtCE,EAAA,cAACkB,GAAU,UAAWjB,EAAO,+BAA+B,EAAG,cAAaM,EAAQ,mBAAkBY,EAAY,YAC/G,EAAAN,EACH,CAAA,CACF,EAIAf,IAAS,SAA0BU,kBAElCZ,EAAQ,CAAA,UAAWgB,EAAoB,KAAAd,CAAA,kBACrCK,EACC,KAAAH,EAAA,cAACkB,EAAA,CACC,UAAWhB,EAAWD,EAAO,kBAAmBA,EAAO,oCAAoC,CAAC,EAC5F,cAAaM,EACb,mBAAkBY,EAAY,YAAA,EAE7BN,EAAc,CAEnB,CAAA,CACF,EAIAf,IAAS,wBAERF,EAAQ,CAAA,UAAWgB,EAAoB,KAAAd,CAAA,kBACrCK,EACC,KAAAH,EAAA,cAACkB,EAAA,CACC,UAAWhB,EAAWD,EAAO,kBAAmBA,EAAO,2BAA2B,CAAC,EACnF,cAAaM,EACb,mBAAkBY,EAAY,YAAA,EAE7BN,EAAc,CAEnB,CAAA,CACF,EAIAf,IAAS,wBAERoB,EAAU,CAAA,UAAWN,EAAoB,cAAaL,CAAA,EACpDM,GACH,EAIG,IACT,EAEAO,EAAehB"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/grid';
|
|
5
6
|
|
|
6
7
|
@mixin content-wrapper-with-icon-flex {
|
|
7
8
|
display: flex;
|
|
8
9
|
flex-direction: column;
|
|
9
10
|
|
|
10
|
-
@media (min-width: map
|
|
11
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
11
12
|
flex-direction: row;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
@mixin content-wrapper-with-icon-padding {
|
|
16
17
|
padding-top: getSpacer(s);
|
|
17
18
|
|
|
18
|
-
@media (min-width: map
|
|
19
|
+
@media (min-width: map.get($grid-breakpoints, xl)) {
|
|
19
20
|
padding-top: getSpacer(m);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
@each $color in $colors {
|
|
32
33
|
&#{$box}--#{$color} {
|
|
33
34
|
#{$box}__content-wrapper {
|
|
34
|
-
background-color: map
|
|
35
|
+
background-color: map.get($palette-map, #{$color}50);
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
@each $color in $colors {
|
|
51
52
|
&#{$box}--#{$color} {
|
|
52
53
|
@include media-breakpoint-down(xs) {
|
|
53
|
-
background-color: map
|
|
54
|
+
background-color: map.get($palette-map, #{$color}50);
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
}
|
|
@@ -65,10 +66,12 @@
|
|
|
65
66
|
&--medium {
|
|
66
67
|
#{$box}__content-wrapper {
|
|
67
68
|
padding: getSpacer(m) getSpacer(s) getSpacer(l) getSpacer(s);
|
|
68
|
-
|
|
69
|
+
|
|
70
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
69
71
|
padding: getSpacer(m) getSpacer(m) getSpacer(l) getSpacer(m);
|
|
70
72
|
}
|
|
71
|
-
|
|
73
|
+
|
|
74
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
72
75
|
padding: getSpacer(l);
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -78,7 +81,8 @@
|
|
|
78
81
|
#{$box}__content-wrapper {
|
|
79
82
|
padding-top: getSpacer(m);
|
|
80
83
|
padding-bottom: getSpacer(l);
|
|
81
|
-
|
|
84
|
+
|
|
85
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
82
86
|
padding-top: getSpacer(l);
|
|
83
87
|
padding-bottom: getSpacer(xl);
|
|
84
88
|
}
|
|
@@ -89,13 +93,13 @@
|
|
|
89
93
|
&--fluid {
|
|
90
94
|
padding: getSpacer(m) getSpacer(s) getSpacer(l) getSpacer(s);
|
|
91
95
|
|
|
92
|
-
@media (min-width: map
|
|
96
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
93
97
|
padding: getSpacer(m) getSpacer(m) getSpacer(l) getSpacer(m);
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
@each $color in $colors {
|
|
97
101
|
&#{$box}--#{$color} {
|
|
98
|
-
background-color: map
|
|
102
|
+
background-color: map.get($palette-map, #{$color}50);
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
&#{$box}--white {
|
|
@@ -108,7 +112,7 @@
|
|
|
108
112
|
@include content-wrapper-with-icon-flex;
|
|
109
113
|
@include content-wrapper-with-icon-padding;
|
|
110
114
|
|
|
111
|
-
@media (min-width: map
|
|
115
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
112
116
|
padding-left: getSpacer(m);
|
|
113
117
|
}
|
|
114
118
|
}
|
|
@@ -120,13 +124,16 @@
|
|
|
120
124
|
}
|
|
121
125
|
#{$box}__content-wrapper {
|
|
122
126
|
@include content-wrapper-with-icon-padding;
|
|
123
|
-
|
|
127
|
+
|
|
128
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
124
129
|
padding-left: getSpacer(s);
|
|
125
130
|
}
|
|
126
|
-
|
|
131
|
+
|
|
132
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
127
133
|
padding-left: getSpacer(m);
|
|
128
134
|
}
|
|
129
|
-
|
|
135
|
+
|
|
136
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
130
137
|
padding-left: 0;
|
|
131
138
|
padding-top: getSpacer(l);
|
|
132
139
|
padding-bottom: getSpacer(xl);
|
|
@@ -134,9 +141,10 @@
|
|
|
134
141
|
}
|
|
135
142
|
|
|
136
143
|
#{$box}__icon {
|
|
137
|
-
@media (min-width: map
|
|
138
|
-
@include make-col-ready
|
|
144
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
145
|
+
@include make-col-ready;
|
|
139
146
|
@include make-col(2);
|
|
147
|
+
|
|
140
148
|
display: flex;
|
|
141
149
|
justify-content: flex-end;
|
|
142
150
|
margin-right: 0;
|
|
@@ -145,15 +153,15 @@
|
|
|
145
153
|
}
|
|
146
154
|
|
|
147
155
|
#{$box}__content {
|
|
148
|
-
@media (min-width: map
|
|
149
|
-
@include make-col-ready
|
|
156
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
157
|
+
@include make-col-ready;
|
|
150
158
|
@include make-col(8);
|
|
151
159
|
}
|
|
152
160
|
}
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
&__content {
|
|
156
|
-
@media (min-width: map
|
|
164
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
157
165
|
margin-top: 0.625rem;
|
|
158
166
|
}
|
|
159
167
|
}
|
|
@@ -168,37 +176,38 @@
|
|
|
168
176
|
margin-right: getSpacer(s);
|
|
169
177
|
margin-bottom: getSpacer(2xs);
|
|
170
178
|
|
|
171
|
-
@media (min-width: map
|
|
179
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
172
180
|
margin-bottom: 0;
|
|
173
181
|
}
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
&__row {
|
|
177
|
-
@include make-row
|
|
185
|
+
@include make-row;
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
&__col {
|
|
181
|
-
@include make-col-ready
|
|
189
|
+
@include make-col-ready;
|
|
182
190
|
@include make-col(12);
|
|
183
191
|
|
|
184
192
|
&--offset {
|
|
185
|
-
@media (min-width: map
|
|
193
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
186
194
|
@include make-col(10);
|
|
187
195
|
@include make-col-offset(1);
|
|
188
196
|
}
|
|
189
|
-
|
|
197
|
+
|
|
198
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
190
199
|
@include make-col(8);
|
|
191
200
|
@include make-col-offset(2);
|
|
192
201
|
}
|
|
193
202
|
}
|
|
194
203
|
|
|
195
204
|
&--large-with-icon {
|
|
196
|
-
@media (min-width: map
|
|
205
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
197
206
|
@include make-col(11);
|
|
198
207
|
@include make-col-offset(0);
|
|
199
208
|
}
|
|
200
209
|
|
|
201
|
-
@media (min-width: map
|
|
210
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
202
211
|
@include make-col(12);
|
|
203
212
|
}
|
|
204
213
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalScroll.d.ts","sourceRoot":"","sources":["../../../src/components/HorizontalScroll/HorizontalScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAYtC,UAAU,qBAAqB;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"HorizontalScroll.d.ts","sourceRoot":"","sources":["../../../src/components/HorizontalScroll/HorizontalScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAYtC,UAAU,qBAAqB;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoC5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
@import '../../scss/
|
|
2
|
-
@import '../../scss/
|
|
1
|
+
@import '../../scss/breakpoints';
|
|
2
|
+
@import '../../scss/palette';
|
|
3
3
|
|
|
4
|
-
$gradient:
|
|
4
|
+
$gradient: rgb(0 0 0 / 27%), rgb(0 0 0 / 27%) 18%, transparent;
|
|
5
5
|
|
|
6
6
|
.horizontalscroll {
|
|
7
7
|
position: relative;
|
|
8
|
+
|
|
8
9
|
&__viewport {
|
|
9
10
|
display: flex;
|
|
11
|
+
|
|
10
12
|
&:focus-visible {
|
|
11
13
|
outline: getSpacer(4xs) solid $black;
|
|
12
14
|
outline-offset: -1px;
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
&--overflow {
|
|
15
18
|
overflow-x: auto;
|
|
16
19
|
overflow-y: hidden;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
|
|
19
23
|
&__indicator {
|
|
20
24
|
position: absolute;
|
|
21
25
|
width: 23px;
|
|
@@ -23,14 +27,17 @@ $gradient: rgba(0, 0, 0, 0.27), rgba(0, 0, 0, 0.27) 18%, transparent;
|
|
|
23
27
|
height: 100%;
|
|
24
28
|
opacity: 0;
|
|
25
29
|
transition: opacity 0.25s ease-in-out;
|
|
30
|
+
|
|
26
31
|
&--left {
|
|
27
32
|
left: 0;
|
|
28
33
|
background: linear-gradient(to right, $gradient);
|
|
29
34
|
}
|
|
35
|
+
|
|
30
36
|
&--right {
|
|
31
37
|
right: 0;
|
|
32
38
|
background: linear-gradient(to left, $gradient);
|
|
33
39
|
}
|
|
40
|
+
|
|
34
41
|
&--visible {
|
|
35
42
|
opacity: 1;
|
|
36
43
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{getIcon as c}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const f=({size:l,isHovered:t})=>{const n=e.createElement("path",{d:"m24 10.14 12.37 12.45L34.95 24 25 13.985V35h-2V13.985L13.05 24l-1.42-1.41L24 10.14Z",fillRule:"evenodd"}),m=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m24 10.14 12.37 12.45L34.95 24 25 13.985V14l-1-1-1 1v-.015L13.05 24l-1.42-1.41L24 10.14Z"}),e.createElement("path",{fillRule:"evenodd",d:"m24 20.14 7.37 7.45L29.95 29 25 23.985V24l-1-1-1 1v-.015L18.05 29l-1.42-1.41L24 20.14Z"})),a=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z"}),e.createElement("path",{d:"M18 9h2v18h-2z"})),r=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z"}),e.createElement("path",{fillRule:"evenodd",d:"m23.79 22.842 1.42-1.409L19 15.159l-6.21 6.274 1.42 1.409L19 17.999l4.79 4.843Z"})),o=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m17.79 13.842 1.42-1.409L12 5.159l-7.21 7.274 1.42 1.409L12 7.999l5.79 5.843Z"}),
|
|
1
|
+
import e from"react";import{getIcon as c}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const f=({size:l,isHovered:t})=>{const n=e.createElement("path",{d:"m24 10.14 12.37 12.45L34.95 24 25 13.985V35h-2V13.985L13.05 24l-1.42-1.41L24 10.14Z",fillRule:"evenodd"}),m=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m24 10.14 12.37 12.45L34.95 24 25 13.985V14l-1-1-1 1v-.015L13.05 24l-1.42-1.41L24 10.14Z"}),e.createElement("path",{fillRule:"evenodd",d:"m24 20.14 7.37 7.45L29.95 29 25 23.985V24l-1-1-1 1v-.015L18.05 29l-1.42-1.41L24 20.14Z"})),a=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z"}),e.createElement("path",{d:"M18 9h2v18h-2z"})),r=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z"}),e.createElement("path",{fillRule:"evenodd",d:"m23.79 22.842 1.42-1.409L19 15.159l-6.21 6.274 1.42 1.409L19 17.999l4.79 4.843Z"})),o=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m17.79 13.842 1.42-1.409L12 5.159l-7.21 7.274 1.42 1.409L12 7.999l5.79 5.843Z"}),e.createElement("path",{d:"M11 7h2v13h-2V7Z"})),d=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z"}),e.createElement("path",{fillRule:"evenodd",d:"m23.79 22.842 1.42-1.409L19 15.159l-6.21 6.274 1.42 1.409L19 17.999l4.79 4.843Z"}));return c({size:l,isHovered:t,normal:n,normalHover:m,xSmall:a,xSmallHover:r,xxSmall:o,xxSmallHover:d})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=SortUp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortUp.js","sources":["../../../src/components/Icons/SortUp.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from './Icon';\n\nconst SortUp: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = <path d=\"m24 10.14 12.37 12.45L34.95 24 25 13.985V35h-2V13.985L13.05 24l-1.42-1.41L24 10.14Z\" fillRule={'evenodd'} />;\n\n const normalHover = (\n <>\n <path fillRule={'evenodd'} d=\"m24 10.14 12.37 12.45L34.95 24 25 13.985V14l-1-1-1 1v-.015L13.05 24l-1.42-1.41L24 10.14Z\" />\n <path fillRule={'evenodd'} d=\"m24 20.14 7.37 7.45L29.95 29 25 23.985V24l-1-1-1 1v-.015L18.05 29l-1.42-1.41L24 20.14Z\" />\n </>\n );\n\n const xSmall = (\n <>\n <path fillRule={'evenodd'} d=\"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z\" />\n <path d=\"M18 9h2v18h-2z\" />\n </>\n );\n\n const xSmallHover = (\n <>\n <path fillRule={'evenodd'} d=\"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z\" />\n <path fillRule={'evenodd'} d=\"m23.79 22.842 1.42-1.409L19 15.159l-6.21 6.274 1.42 1.409L19 17.999l4.79 4.843Z\" />\n </>\n );\n\n const xxSmall = (\n <>\n <path fillRule={'evenodd'} d=\"m17.79 13.842 1.42-1.409L12 5.159l-7.21 7.274 1.42 1.409L12 7.999l5.79 5.843Z\"
|
|
1
|
+
{"version":3,"file":"SortUp.js","sources":["../../../src/components/Icons/SortUp.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIcon, SvgPathProps } from './Icon';\n\nconst SortUp: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = <path d=\"m24 10.14 12.37 12.45L34.95 24 25 13.985V35h-2V13.985L13.05 24l-1.42-1.41L24 10.14Z\" fillRule={'evenodd'} />;\n\n const normalHover = (\n <>\n <path fillRule={'evenodd'} d=\"m24 10.14 12.37 12.45L34.95 24 25 13.985V14l-1-1-1 1v-.015L13.05 24l-1.42-1.41L24 10.14Z\" />\n <path fillRule={'evenodd'} d=\"m24 20.14 7.37 7.45L29.95 29 25 23.985V24l-1-1-1 1v-.015L18.05 29l-1.42-1.41L24 20.14Z\" />\n </>\n );\n\n const xSmall = (\n <>\n <path fillRule={'evenodd'} d=\"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z\" />\n <path d=\"M18 9h2v18h-2z\" />\n </>\n );\n\n const xSmallHover = (\n <>\n <path fillRule={'evenodd'} d=\"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z\" />\n <path fillRule={'evenodd'} d=\"m23.79 22.842 1.42-1.409L19 15.159l-6.21 6.274 1.42 1.409L19 17.999l4.79 4.843Z\" />\n </>\n );\n\n const xxSmall = (\n <>\n <path fillRule={'evenodd'} d=\"m17.79 13.842 1.42-1.409L12 5.159l-7.21 7.274 1.42 1.409L12 7.999l5.79 5.843Z\" />\n <path d=\"M11 7h2v13h-2V7Z\" />\n </>\n );\n\n const xxSmallHover = (\n <>\n <path fillRule={'evenodd'} d=\"m27.79 18.842 1.42-1.409L19 7.159 8.79 17.433l1.42 1.409L19 9.999l8.79 8.843Z\" />\n <path fillRule={'evenodd'} d=\"m23.79 22.842 1.42-1.409L19 15.159l-6.21 6.274 1.42 1.409L19 17.999l4.79 4.843Z\" />\n </>\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover, xxSmall, xxSmallHover });\n};\n\nexport default SortUp;\n"],"names":["SortUp","size","isHovered","normal","React","normalHover","xSmall","xSmallHover","xxSmall","xxSmallHover","getIcon"],"mappings":"+LAIA,MAAMA,EAAiC,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAA2C,CACzF,MAAMC,EAAUC,EAAA,cAAA,OAAA,CAAK,EAAE,sFAAsF,SAAU,SAAW,CAAA,EAE5HC,EACJD,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAA,OAAA,CAAK,SAAU,UAAW,EAAE,0FAA2F,CAAA,kBACvH,OAAK,CAAA,SAAU,UAAW,EAAE,yFAAyF,CACxH,EAGIE,EACJF,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAA,OAAA,CAAK,SAAU,UAAW,EAAE,gFAAgF,EAC7GA,EAAA,cAAC,OAAK,CAAA,EAAE,gBAAiB,CAAA,CAC3B,EAGIG,EACJH,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAA,OAAA,CAAK,SAAU,UAAW,EAAE,+EAAgF,CAAA,kBAC5G,OAAK,CAAA,SAAU,UAAW,EAAE,kFAAkF,CACjH,EAGII,EACJJ,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAA,OAAA,CAAK,SAAU,UAAW,EAAE,gFAAgF,EAC7GA,EAAA,cAAC,OAAK,CAAA,EAAE,kBAAmB,CAAA,CAC7B,EAGIK,EACJL,EAAA,cAAAA,EAAA,SAAA,KACGA,EAAA,cAAA,OAAA,CAAK,SAAU,UAAW,EAAE,+EAAgF,CAAA,kBAC5G,OAAK,CAAA,SAAU,UAAW,EAAE,kFAAkF,CACjH,EAGK,OAAAM,EAAQ,CAAE,KAAAT,EAAM,UAAAC,EAAW,OAAAC,EAAQ,YAAAE,EAAa,OAAAC,EAAQ,YAAAC,EAAa,QAAAC,EAAS,aAAAC,CAAc,CAAA,CACrG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAA2C,MAAM,iBAAiB,CAAC;AAKjG,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AAKnD,MAAM,WAAW,UACf,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACzC,UAAU,GACV,UAAU,GACV,cAAc,GACd,MAAM,GACN,aAAa,GACb,cAAc,GACd,UAAU,GACV,OAAO,GACP,KAAK,GACL,KAAK,GACL,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,WAAW,CACd;IACD,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAC/B,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAUD,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAA2C,MAAM,iBAAiB,CAAC;AAKjG,OAAa,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AAKnD,MAAM,WAAW,UACf,SAAQ,IAAI,CACV,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACzC,UAAU,GACV,UAAU,GACV,cAAc,GACd,MAAM,GACN,aAAa,GACb,cAAc,GACd,UAAU,GACV,OAAO,GACP,KAAK,GACL,KAAK,GACL,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,WAAW,CACd;IACD,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAC/B,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAUD,QAAA,MAAM,KAAK,qFAwIT,CAAC;AAIH,eAAe,KAAK,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
5
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/palette';
|
|
5
|
+
@import '../../scss/font-settings';
|
|
6
|
+
@import '../../scss/input';
|
|
6
7
|
|
|
7
8
|
.input-wrapper {
|
|
8
9
|
@include input-wrapper;
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
&--with-icon {
|
|
28
29
|
padding: 1px 0;
|
|
29
30
|
|
|
30
|
-
@media (min-width: map
|
|
31
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
31
32
|
padding: 0.375rem 0;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
height: 2.5rem;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
@media (min-width: map
|
|
48
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
48
49
|
line-height: 1.625rem;
|
|
49
50
|
height: 2.125rem;
|
|
50
51
|
font-size: $font-size-md;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
4
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/spacers';
|
|
3
|
+
@import '../../scss/breakpoints';
|
|
4
|
+
@import '../../scss/font-settings';
|
|
5
|
+
@import '../../scss/palette';
|
|
5
6
|
|
|
6
7
|
.link-list {
|
|
7
8
|
list-style: none;
|
|
@@ -12,10 +13,12 @@
|
|
|
12
13
|
&__list-item {
|
|
13
14
|
&--line {
|
|
14
15
|
border-bottom: 1px solid $neutral500;
|
|
16
|
+
|
|
15
17
|
&:first-of-type {
|
|
16
18
|
border-top: 1px solid $neutral500;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
21
|
+
|
|
19
22
|
&--outline {
|
|
20
23
|
border-top: getSpacer(2xs) $neutral100 solid;
|
|
21
24
|
border-left: getSpacer(2xs) $neutral100 solid;
|
|
@@ -41,9 +44,11 @@
|
|
|
41
44
|
text-align: left;
|
|
42
45
|
box-sizing: border-box;
|
|
43
46
|
}
|
|
47
|
+
|
|
44
48
|
&:hover {
|
|
45
49
|
color: $blueberry700;
|
|
46
50
|
}
|
|
51
|
+
|
|
47
52
|
&--fill {
|
|
48
53
|
margin: getSpacer(s) 0;
|
|
49
54
|
background-color: $neutral50;
|
|
@@ -53,23 +58,28 @@
|
|
|
53
58
|
font-size: $font-size-xs;
|
|
54
59
|
line-height: $lineheight-size-xs;
|
|
55
60
|
}
|
|
61
|
+
|
|
56
62
|
&--medium {
|
|
57
63
|
font-size: $font-size-sm;
|
|
58
64
|
line-height: $lineheight-size-sm;
|
|
59
65
|
}
|
|
66
|
+
|
|
60
67
|
&--large {
|
|
61
68
|
font-size: $font-size-md;
|
|
62
69
|
line-height: $lineheight-size-md;
|
|
63
70
|
}
|
|
64
|
-
|
|
71
|
+
|
|
72
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
65
73
|
&--small {
|
|
66
74
|
font-size: $font-size-sm;
|
|
67
75
|
line-height: $lineheight-size-sm;
|
|
68
76
|
}
|
|
77
|
+
|
|
69
78
|
&--medium {
|
|
70
79
|
font-size: $font-size-md;
|
|
71
80
|
line-height: $lineheight-size-md;
|
|
72
81
|
}
|
|
82
|
+
|
|
73
83
|
&--large {
|
|
74
84
|
font-size: $font-size-lg;
|
|
75
85
|
line-height: $lineheight-size-lg;
|
|
@@ -81,43 +91,51 @@
|
|
|
81
91
|
background-color: $banana100;
|
|
82
92
|
}
|
|
83
93
|
}
|
|
94
|
+
|
|
84
95
|
&--blueberry {
|
|
85
96
|
&:hover {
|
|
86
97
|
background-color: $blueberry100;
|
|
87
98
|
}
|
|
88
99
|
}
|
|
100
|
+
|
|
89
101
|
&--cherry {
|
|
90
102
|
&:hover {
|
|
91
103
|
background-color: $cherry100;
|
|
92
104
|
}
|
|
93
105
|
}
|
|
106
|
+
|
|
94
107
|
&--kiwi {
|
|
95
108
|
&:hover {
|
|
96
109
|
background-color: $kiwi100;
|
|
97
110
|
}
|
|
98
111
|
}
|
|
112
|
+
|
|
99
113
|
&--neutral,
|
|
100
114
|
&--black {
|
|
101
115
|
&:hover {
|
|
102
116
|
background-color: $neutral100;
|
|
103
117
|
}
|
|
104
118
|
}
|
|
119
|
+
|
|
105
120
|
&--plum {
|
|
106
121
|
&:hover {
|
|
107
122
|
background-color: $plum100;
|
|
108
123
|
}
|
|
109
124
|
}
|
|
125
|
+
|
|
110
126
|
&--black {
|
|
111
127
|
&:hover {
|
|
112
128
|
background-color: $black;
|
|
113
129
|
color: $white;
|
|
114
130
|
}
|
|
115
131
|
}
|
|
132
|
+
|
|
116
133
|
&--white {
|
|
117
134
|
&:hover {
|
|
118
135
|
background-color: $neutral50;
|
|
119
136
|
}
|
|
120
137
|
}
|
|
138
|
+
|
|
121
139
|
&:focus,
|
|
122
140
|
&:focus-visible {
|
|
123
141
|
outline: getSpacer(4xs) solid $black;
|