@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,6 +1,7 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '../../scss/
|
|
3
|
-
@import '../../scss/
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@import '../../scss/palette';
|
|
3
|
+
@import '../../scss/spacers';
|
|
4
|
+
@import '../../scss/breakpoints';
|
|
4
5
|
|
|
5
6
|
@mixin tile-title {
|
|
6
7
|
overflow-wrap: break-word;
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
margin: 0;
|
|
14
15
|
margin-left: 0.5rem;
|
|
15
16
|
|
|
16
|
-
@media (min-width: map
|
|
17
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
17
18
|
font-size: 1.25rem;
|
|
18
19
|
margin-top: 1rem;
|
|
19
20
|
}
|
|
@@ -48,17 +49,19 @@
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
&--compact {
|
|
51
|
-
padding: 1.5rem 1rem
|
|
52
|
+
padding: 1.5rem 1rem;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
svg {
|
|
55
56
|
flex-shrink: 0;
|
|
56
57
|
}
|
|
58
|
+
|
|
57
59
|
&:hover,
|
|
58
60
|
&:active,
|
|
59
61
|
&:focus {
|
|
60
62
|
background-color: $neutral100;
|
|
61
63
|
}
|
|
64
|
+
|
|
62
65
|
&:focus {
|
|
63
66
|
box-shadow: 0 0 0 6px $neutral600;
|
|
64
67
|
}
|
|
@@ -66,11 +69,13 @@
|
|
|
66
69
|
&--highlighted {
|
|
67
70
|
background-color: $blueberry500;
|
|
68
71
|
color: $white;
|
|
72
|
+
|
|
69
73
|
&:hover,
|
|
70
74
|
&:active,
|
|
71
75
|
&:focus {
|
|
72
76
|
background-color: $blueberry700;
|
|
73
77
|
}
|
|
78
|
+
|
|
74
79
|
&:focus {
|
|
75
80
|
box-shadow: 0 0 0 6px $blueberry700;
|
|
76
81
|
}
|
|
@@ -105,7 +110,7 @@
|
|
|
105
110
|
align-items: center;
|
|
106
111
|
padding-bottom: 0.5rem;
|
|
107
112
|
|
|
108
|
-
@media (min-width: map
|
|
113
|
+
@media (min-width: map.get($grid-breakpoints, sm)) {
|
|
109
114
|
flex-direction: column;
|
|
110
115
|
align-items: start;
|
|
111
116
|
|
|
@@ -21,6 +21,6 @@ export interface TitleMargin {
|
|
|
21
21
|
marginTop: number;
|
|
22
22
|
marginBottom: number;
|
|
23
23
|
}
|
|
24
|
-
export declare const instanceOfTitleMargin: (margin:
|
|
24
|
+
export declare const instanceOfTitleMargin: (margin: unknown) => margin is TitleMargin;
|
|
25
25
|
export default Title;
|
|
26
26
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,KAAK,uFAyBhB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,WAAY,
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,KAAK,uFAyBhB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,WAAY,OAAO,0BAEpD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -9,18 +9,23 @@
|
|
|
9
9
|
&--feature {
|
|
10
10
|
@include title-feature;
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
&--title1 {
|
|
13
14
|
@include title1;
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
&--title2 {
|
|
16
18
|
@include title2;
|
|
17
19
|
}
|
|
20
|
+
|
|
18
21
|
&--title3 {
|
|
19
22
|
@include title3;
|
|
20
23
|
}
|
|
24
|
+
|
|
21
25
|
&--title4 {
|
|
22
26
|
@include title4;
|
|
23
27
|
}
|
|
28
|
+
|
|
24
29
|
&--title5 {
|
|
25
30
|
@include title5;
|
|
26
31
|
}
|
|
@@ -15,6 +15,6 @@ export interface TooltipWordProps {
|
|
|
15
15
|
/** Valgfri test-id */
|
|
16
16
|
testId?: string;
|
|
17
17
|
}
|
|
18
|
-
declare const TooltipWord: React.ForwardRefExoticComponent<TooltipWordProps & React.RefAttributes<
|
|
18
|
+
declare const TooltipWord: React.ForwardRefExoticComponent<TooltipWordProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
export default TooltipWord;
|
|
20
20
|
//# sourceMappingURL=TooltipWord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipWord.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/TooltipWord/TooltipWord.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qDAAqD;IACrD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6DAA6D;IAC7D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,6CAA6C;IAC7C,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC7D,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"TooltipWord.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/TooltipWord/TooltipWord.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qDAAqD;IACrD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6DAA6D;IAC7D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,6CAA6C;IAC7C,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC7D,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,WAAW,4FAkBhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@import '../../../scss/
|
|
2
|
-
@import '../../../scss/
|
|
1
|
+
@import '../../../scss/palette';
|
|
2
|
+
@import '../../../scss/spacers';
|
|
3
3
|
|
|
4
4
|
.word {
|
|
5
|
+
all: unset;
|
|
5
6
|
position: relative;
|
|
6
7
|
display: inline-block;
|
|
7
|
-
-webkit-text-decoration: underline dashed $plum400;
|
|
8
8
|
text-decoration: underline 0.15rem dashed $plum400;
|
|
9
9
|
cursor: help;
|
|
10
10
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as p}from"../../Tooltip.js";import{a as J,b as K}from"../../Tooltip.js";import"react";import"../../TooltipWord.js";import"../../constants.js";import"./TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../
|
|
1
|
+
import{T as p}from"../../Tooltip.js";import{a as J,b as K}from"../../Tooltip.js";import"react";import"../../TooltipWord.js";import"../../constants.js";import"./TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";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"../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";export{J as Tooltip,K as TooltipOpenProvider,p as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import{longLoremText as m}from"../../utils/loremtext.js";import{b as i,T as r}from"../../Tooltip.js";import"../../TooltipWord.js";import"../../constants.js";import"../Tooltip/TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";import"../../
|
|
1
|
+
import t from"react";import{longLoremText as m}from"../../utils/loremtext.js";import{b as i,T as r}from"../../Tooltip.js";import"../../TooltipWord.js";import"../../constants.js";import"../Tooltip/TooltipWord/styles.module.scss";import"../../hooks/useDelayedState.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../../HelpBubble.js";import"classnames";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"../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 e=o=>t.createElement(i,null,t.createElement(t.Fragment,null,t.createElement(r,{...o},"Et tooltip her.")," "+m,t.createElement("button",null,"Knapp"),"Dette er ",t.createElement(r,{...o},o.children)," som skal ha nærmere forklaring.",m,t.createElement(r,{...o},"Enda et tooltip her."))),J=e;export{J as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,7 +7,7 @@ export declare function withBreakpoint<P extends BreakpointProps, C extends Reac
|
|
|
7
7
|
ref?: React.Ref<InstanceType<C>>;
|
|
8
8
|
}, keyof BreakpointProps>>;
|
|
9
9
|
export declare function withBreakpoint<P extends BreakpointProps & {
|
|
10
|
-
ref?: React.Ref<
|
|
10
|
+
ref?: React.Ref<unknown>;
|
|
11
11
|
}>(Component: React.ForwardRefExoticComponent<P>): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;
|
|
12
12
|
export declare function withBreakpoint<P extends BreakpointProps>(Component: React.FunctionComponent<P>): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;
|
|
13
13
|
export default withBreakpoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withBreakpoint.d.ts","sourceRoot":"","sources":["../../../src/hoc/withBreakpoint/withBreakpoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAiB,MAAM,2BAA2B,CAAC;AAEtE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,UAAU,CAAC;CACxB;AAGD,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EACzF,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACpC,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,EAAE,MAAM,eAAe,CAAC,CAAC,CAAC;AAE1I,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"withBreakpoint.d.ts","sourceRoot":"","sources":["../../../src/hoc/withBreakpoint/withBreakpoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAiB,MAAM,2BAA2B,CAAC;AAEtE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,UAAU,CAAC;CACxB;AAGD,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EACzF,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACpC,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,EAAE,MAAM,eAAe,CAAC,CAAC,CAAC;AAE1I,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;CAAE,EACrF,SAAS,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,GAC5C,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,eAAe,CAAC,CAAC,CAAC;AAEnE,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,EACtD,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,GACpC,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,eAAe,CAAC,CAAC,CAAC;AASnE,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withBreakpoint.js","sources":["../../../src/hoc/withBreakpoint/withBreakpoint.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\n\nexport interface BreakpointProps {\n breakpoint: Breakpoint;\n}\n\n// Hentet fra https://github.com/DefinitelyTyped/DefinitelyTyped/issues/35834#issuecomment-497605842\nexport function withBreakpoint<P extends BreakpointProps, C extends React.ComponentClass<P>>(\n Component: C & React.ComponentType<P>\n): React.ForwardRefExoticComponent<Omit<React.ComponentPropsWithoutRef<C> & { ref?: React.Ref<InstanceType<C>> }, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps & { ref?: React.Ref<
|
|
1
|
+
{"version":3,"file":"withBreakpoint.js","sources":["../../../src/hoc/withBreakpoint/withBreakpoint.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Breakpoint, useBreakpoint } from '../../hooks/useBreakpoint';\n\nexport interface BreakpointProps {\n breakpoint: Breakpoint;\n}\n\n// Hentet fra https://github.com/DefinitelyTyped/DefinitelyTyped/issues/35834#issuecomment-497605842\nexport function withBreakpoint<P extends BreakpointProps, C extends React.ComponentClass<P>>(\n Component: C & React.ComponentType<P>\n): React.ForwardRefExoticComponent<Omit<React.ComponentPropsWithoutRef<C> & { ref?: React.Ref<InstanceType<C>> }, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps & { ref?: React.Ref<unknown> }>(\n Component: React.ForwardRefExoticComponent<P>\n): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps>(\n Component: React.FunctionComponent<P>\n): React.ForwardRefExoticComponent<Omit<P, keyof BreakpointProps>>;\n\nexport function withBreakpoint<P extends BreakpointProps>(Component: React.ComponentType<P>) {\n return React.forwardRef((props, ref) => {\n const breakpoint = useBreakpoint();\n return <Component ref={ref} {...(props as P)} breakpoint={breakpoint} />;\n });\n}\n\nexport default withBreakpoint;\n"],"names":["withBreakpoint","Component","React","props","ref","breakpoint","useBreakpoint"],"mappings":"8GAqBO,SAASA,EAA0CC,EAAmC,CAC3F,OAAOC,EAAM,WAAW,CAACC,EAAOC,IAAQ,CACtC,MAAMC,EAAaC,IACnB,OAAQJ,EAAA,cAAAD,EAAA,CAAU,IAAAG,EAAW,GAAID,EAAa,WAAAE,CAAwB,CAAA,CAAA,CACvE,CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC;;;;GAIG;AACH,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC;;;;GAIG;AACH,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,CAAC,WAAW,CAAC,0BAAqB,IA4BlF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.js","sources":["../../src/hooks/useFocusTrap.ts"],"sourcesContent":["import React, { useEffect } from 'react';\n\nimport { useFocusableElements } from './useFocusableElements';\nimport { getDocumentActiveElement } from '../utils/focus';\n\n/**\n * Lås fokus til et bestemt element. Bruker vil bare kunne tabbe mellom fokuserbare elementer innenfor elementet.\n * @param ref Alle barn av dette elementet vil være fokuserbare, elementer utenfor vil ikke det\n * @param trapFocus Om fokus skal \"trappes\" innenfor elementet eller ikke. Default=true.\n */\nexport const useFocusTrap = (ref: React.RefObject<HTMLElement>, trapFocus
|
|
1
|
+
{"version":3,"file":"useFocusTrap.js","sources":["../../src/hooks/useFocusTrap.ts"],"sourcesContent":["import React, { useEffect } from 'react';\n\nimport { useFocusableElements } from './useFocusableElements';\nimport { getDocumentActiveElement } from '../utils/focus';\n\n/**\n * Lås fokus til et bestemt element. Bruker vil bare kunne tabbe mellom fokuserbare elementer innenfor elementet.\n * @param ref Alle barn av dette elementet vil være fokuserbare, elementer utenfor vil ikke det\n * @param trapFocus Om fokus skal \"trappes\" innenfor elementet eller ikke. Default=true.\n */\nexport const useFocusTrap = (ref: React.RefObject<HTMLElement>, trapFocus = true): void => {\n const focusableElementList = useFocusableElements(ref);\n\n const handleKeyboardEvent = (e: KeyboardEvent): void => {\n if (trapFocus && ref.current && focusableElementList?.length && e.key === 'Tab') {\n const activeElement = getDocumentActiveElement(ref.current);\n const firstElement = focusableElementList[0];\n const lastElement = focusableElementList.length === 1 ? firstElement : focusableElementList[focusableElementList.length - 1];\n\n if (e.shiftKey && activeElement === firstElement) {\n /* shift + tab */\n lastElement.focus();\n e.preventDefault();\n } else if (!e.shiftKey && activeElement === lastElement) {\n /* tab */\n firstElement.focus();\n e.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n ref.current?.addEventListener('keydown', handleKeyboardEvent);\n\n return (): void => {\n ref.current?.removeEventListener('keydown', handleKeyboardEvent);\n };\n }, [ref, trapFocus, focusableElementList]); // focusableElementList må være med som dependency for at handleKeyboardEvent skal få oppdatert state\n};\n\nexport default useFocusTrap;\n"],"names":["useFocusTrap","ref","trapFocus","focusableElementList","useFocusableElements","handleKeyboardEvent","e","activeElement","getDocumentActiveElement","firstElement","lastElement","useEffect","_a"],"mappings":"4LAUO,MAAMA,EAAe,CAACC,EAAmCC,EAAY,KAAe,CACnF,MAAAC,EAAuBC,EAAqBH,CAAG,EAE/CI,EAAuBC,GAA2B,CACtD,GAAIJ,GAAaD,EAAI,UAAWE,GAAA,MAAAA,EAAsB,SAAUG,EAAE,MAAQ,MAAO,CACzE,MAAAC,EAAgBC,EAAyBP,EAAI,OAAO,EACpDQ,EAAeN,EAAqB,CAAC,EACrCO,EAAcP,EAAqB,SAAW,EAAIM,EAAeN,EAAqBA,EAAqB,OAAS,CAAC,EAEvHG,EAAE,UAAYC,IAAkBE,GAElCC,EAAY,MAAM,EAClBJ,EAAE,eAAe,GACR,CAACA,EAAE,UAAYC,IAAkBG,IAE1CD,EAAa,MAAM,EACnBH,EAAE,eAAe,GAErB,EAGFK,EAAU,IAAM,OACV,OAAAC,EAAAX,EAAA,UAAA,MAAAW,EAAS,iBAAiB,UAAWP,GAElC,IAAY,QACbO,EAAAX,EAAA,UAAA,MAAAW,EAAS,oBAAoB,UAAWP,EAAmB,CAEhE,EAAA,CAACJ,EAAKC,EAAWC,CAAoB,CAAC,CAC3C"}
|
package/hooks/useSize.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSize.js","sources":["../../src/hooks/useSize.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport { debounce } from '../utils/debounce';\n\n/**\n * Lytt på endringer i størrelse på et element\n *\n * @param ref Element som skal observeres.\n * @returns Object med høyde, bredde, x og y til elementet. Merk at objektet bare oppdates når høyde eller bredde endres, ikke når\n * posisjonen (x og y) endres.\n */\nexport const useSize = (ref?: React.RefObject<HTMLElement>): DOMRect | undefined => {\n const ticking = useRef(false);\n const [size, setSize] = useState<DOMRect>();\n useEffect(() => {\n if (typeof ResizeObserver !== 'undefined') {\n const resizeObserver = new ResizeObserver(entries => {\n if (!ticking.current) {\n window.requestAnimationFrame(() => {\n setSize(entries[0].target.getBoundingClientRect());\n ticking.current = false;\n });\n }\n ticking.current = true;\n });\n if (ref?.current) {\n resizeObserver.observe(ref?.current);\n }\n return (): void => {\n if (ref?.current) {\n resizeObserver.unobserve(ref.current);\n } else {\n resizeObserver.disconnect();\n }\n };\n } else if (typeof window === 'object') {\n // For nettlesere som ikke støtter ResizeObserver (iOS 13 og lavere)\n const handleLayoutEvent = () => {\n ref?.current && setSize(ref.current.getBoundingClientRect());\n };\n\n const events = ['layoutchange', 'resize', 'orientationchange'];\n const debounceMs = 10;\n\n const [debouncedCallback, teardown] = debounce(handleLayoutEvent, debounceMs);\n\n events.forEach(eventName => window.addEventListener(eventName, debouncedCallback));\n\n debouncedCallback();\n\n return () => {\n teardown();\n events.forEach(eventName => window.removeEventListener(eventName, debouncedCallback));\n };\n }\n }, [ref?.current]);\n\n return size;\n};\n"],"names":["useSize","ref","ticking","useRef","size","setSize","useState","useEffect","resizeObserver","entries","handleLayoutEvent","events","debouncedCallback","teardown","debounce","eventName"],"mappings":"4GAWa,MAAAA,EAAWC,GAA4D,CAC5E,MAAAC,EAAUC,EAAO,EAAK,EACtB,CAACC,EAAMC,CAAO,EAAIC,EAAkB,EAC1C,OAAAC,EAAU,IAAM,CACV,GAAA,OAAO,eAAmB,IAAa,CACnC,MAAAC,EAAiB,IAAI,eAA0BC,GAAA,CAC9CP,EAAQ,SACX,OAAO,sBAAsB,IAAM,CACjCG,EAAQI,EAAQ,CAAC,EAAE,OAAO,sBAAuB,CAAA,EACjDP,EAAQ,QAAU,EAAA,CACnB,EAEHA,EAAQ,QAAU,EAAA,CACnB,EACD,OAAID,GAAA,MAAAA,EAAK,SACQO,EAAA,QAAQP,GAAA,YAAAA,EAAK,OAAO,EAE9B,IAAY,CACbA,GAAA,MAAAA,EAAK,QACQO,EAAA,UAAUP,EAAI,OAAO,EAEpCO,EAAe,WAAW,CAC5B,
|
|
1
|
+
{"version":3,"file":"useSize.js","sources":["../../src/hooks/useSize.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nimport { debounce } from '../utils/debounce';\n\n/**\n * Lytt på endringer i størrelse på et element\n *\n * @param ref Element som skal observeres.\n * @returns Object med høyde, bredde, x og y til elementet. Merk at objektet bare oppdates når høyde eller bredde endres, ikke når\n * posisjonen (x og y) endres.\n */\nexport const useSize = (ref?: React.RefObject<HTMLElement>): DOMRect | undefined => {\n const ticking = useRef(false);\n const [size, setSize] = useState<DOMRect>();\n useEffect(() => {\n if (typeof ResizeObserver !== 'undefined') {\n const resizeObserver = new ResizeObserver(entries => {\n if (!ticking.current) {\n window.requestAnimationFrame(() => {\n setSize(entries[0].target.getBoundingClientRect());\n ticking.current = false;\n });\n }\n ticking.current = true;\n });\n if (ref?.current) {\n resizeObserver.observe(ref?.current);\n }\n return (): void => {\n if (ref?.current) {\n resizeObserver.unobserve(ref.current);\n } else {\n resizeObserver.disconnect();\n }\n };\n } else if (typeof window === 'object') {\n // For nettlesere som ikke støtter ResizeObserver (iOS 13 og lavere)\n const handleLayoutEvent = () => {\n ref?.current && setSize(ref.current.getBoundingClientRect());\n };\n\n const events = ['layoutchange', 'resize', 'orientationchange'];\n const debounceMs = 10;\n\n const [debouncedCallback, teardown] = debounce(handleLayoutEvent, debounceMs);\n\n events.forEach(eventName => window.addEventListener(eventName, debouncedCallback));\n\n debouncedCallback();\n\n return () => {\n teardown();\n events.forEach(eventName => window.removeEventListener(eventName, debouncedCallback));\n };\n }\n }, [ref?.current]);\n\n return size;\n};\n"],"names":["useSize","ref","ticking","useRef","size","setSize","useState","useEffect","resizeObserver","entries","handleLayoutEvent","events","debouncedCallback","teardown","debounce","eventName"],"mappings":"4GAWa,MAAAA,EAAWC,GAA4D,CAC5E,MAAAC,EAAUC,EAAO,EAAK,EACtB,CAACC,EAAMC,CAAO,EAAIC,EAAkB,EAC1C,OAAAC,EAAU,IAAM,CACV,GAAA,OAAO,eAAmB,IAAa,CACnC,MAAAC,EAAiB,IAAI,eAA0BC,GAAA,CAC9CP,EAAQ,SACX,OAAO,sBAAsB,IAAM,CACjCG,EAAQI,EAAQ,CAAC,EAAE,OAAO,sBAAuB,CAAA,EACjDP,EAAQ,QAAU,EAAA,CACnB,EAEHA,EAAQ,QAAU,EAAA,CACnB,EACD,OAAID,GAAA,MAAAA,EAAK,SACQO,EAAA,QAAQP,GAAA,YAAAA,EAAK,OAAO,EAE9B,IAAY,CACbA,GAAA,MAAAA,EAAK,QACQO,EAAA,UAAUP,EAAI,OAAO,EAEpCO,EAAe,WAAW,CAC5B,UAEO,OAAO,QAAW,SAAU,CAErC,MAAME,EAAoB,IAAM,CAC9BT,GAAA,MAAAA,EAAK,SAAWI,EAAQJ,EAAI,QAAQ,uBAAuB,CAAA,EAGvDU,EAAS,CAAC,eAAgB,SAAU,mBAAmB,EAGvD,CAACC,EAAmBC,CAAQ,EAAIC,EAASJ,EAAmB,EAAU,EAE5E,OAAAC,EAAO,QAAqBI,GAAA,OAAO,iBAAiBA,EAAWH,CAAiB,CAAC,EAE/DA,IAEX,IAAM,CACFC,IACTF,EAAO,QAAqBI,GAAA,OAAO,oBAAoBA,EAAWH,CAAiB,CAAC,CAAA,EAExF,EACC,CAACX,GAAA,YAAAA,EAAK,OAAO,CAAC,EAEVG,CACT"}
|
package/package.json
CHANGED
package/scss/_body.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@import './font-settings';
|
|
2
3
|
@import './palette';
|
|
3
4
|
@import './breakpoints';
|
|
@@ -8,7 +9,8 @@ body {
|
|
|
8
9
|
color: $black;
|
|
9
10
|
font-size: $font-size-sm;
|
|
10
11
|
line-height: $lineheight-size-sm;
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
12
14
|
font-size: $font-size-md;
|
|
13
15
|
line-height: $lineheight-size-md;
|
|
14
16
|
}
|
package/scss/_breakpoints.scss
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@import 'spacers';
|
|
2
3
|
|
|
3
|
-
$grid-gutter-width: map
|
|
4
|
-
|
|
4
|
+
$grid-gutter-width: map.get($spacers, 5);
|
|
5
5
|
$grid-columns: 12;
|
|
6
|
-
|
|
7
6
|
$grid-breakpoints: (
|
|
8
7
|
xxs: 0,
|
|
9
8
|
xs: 360px,
|
|
@@ -12,13 +11,11 @@ $grid-breakpoints: (
|
|
|
12
11
|
lg: 1088px,
|
|
13
12
|
xl: 1450px,
|
|
14
13
|
);
|
|
15
|
-
|
|
16
14
|
$grid-max-breakpoints: (
|
|
17
|
-
xs: map
|
|
18
|
-
sm: map
|
|
19
|
-
md: map
|
|
15
|
+
xs: map.get($grid-breakpoints, sm) - 0.02,
|
|
16
|
+
sm: map.get($grid-breakpoints, md) - 0.02,
|
|
17
|
+
md: map.get($grid-breakpoints, lg) - 0.02,
|
|
20
18
|
);
|
|
21
|
-
|
|
22
19
|
$container-max-widths: (
|
|
23
20
|
sm: 528px,
|
|
24
21
|
md: 612px,
|
package/scss/_figma-tokens.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Do not edit directly
|
|
2
2
|
// Generated on Wed, 05 Oct 2022 11:38:01 GMT
|
|
3
3
|
|
|
4
|
-
$palette-white: #
|
|
5
|
-
$palette-black: #
|
|
4
|
+
$palette-white: #fff;
|
|
5
|
+
$palette-black: #000;
|
|
6
6
|
$palette-plum900: #3c1471;
|
|
7
7
|
$palette-plum800: #4c1b8c;
|
|
8
8
|
$palette-plum700: #5b22a6;
|
package/scss/_fonts.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import './font-settings
|
|
1
|
+
@import './font-settings';
|
|
2
2
|
|
|
3
3
|
/* latin */
|
|
4
4
|
@font-face {
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
font-weight: 200;
|
|
8
8
|
font-display: swap;
|
|
9
9
|
src: local('Source Sans Pro Extra Light'), local('SourceSansPro-ExtraLight'),
|
|
10
|
-
url(../fonts/source-sans-pro-200-extralight.woff) format('woff'), url(../fonts/source-sans-pro-200-extralight.woff2) format('woff2');
|
|
10
|
+
url('../fonts/source-sans-pro-200-extralight.woff') format('woff'), url('../fonts/source-sans-pro-200-extralight.woff2') format('woff2');
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
/* latin */
|
|
13
14
|
@font-face {
|
|
14
15
|
font-family: 'Source Sans Pro';
|
|
@@ -16,18 +17,20 @@
|
|
|
16
17
|
font-weight: 200;
|
|
17
18
|
font-display: swap;
|
|
18
19
|
src: local('Source Sans Pro Extra Light Italic'), local('SourceSansPro-ExtraLightItalic'),
|
|
19
|
-
url(../fonts/source-sans-pro-200-extralight-italic.woff) format('woff'),
|
|
20
|
-
url(../fonts/source-sans-pro-200-extralight-italic.woff2) format('woff2');
|
|
20
|
+
url('../fonts/source-sans-pro-200-extralight-italic.woff') format('woff'),
|
|
21
|
+
url('../fonts/source-sans-pro-200-extralight-italic.woff2') format('woff2');
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
/* latin */
|
|
23
25
|
@font-face {
|
|
24
26
|
font-family: 'Source Sans Pro';
|
|
25
27
|
font-style: normal;
|
|
26
28
|
font-weight: 300;
|
|
27
29
|
font-display: swap;
|
|
28
|
-
src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url(../fonts/source-sans-pro-300-light.woff) format('woff'),
|
|
29
|
-
url(../fonts/source-sans-pro-300-light.woff2) format('woff2');
|
|
30
|
+
src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url('../fonts/source-sans-pro-300-light.woff') format('woff'),
|
|
31
|
+
url('../fonts/source-sans-pro-300-light.woff2') format('woff2');
|
|
30
32
|
}
|
|
33
|
+
|
|
31
34
|
/* latin */
|
|
32
35
|
@font-face {
|
|
33
36
|
font-family: 'Source Sans Pro';
|
|
@@ -35,35 +38,41 @@
|
|
|
35
38
|
font-weight: 300;
|
|
36
39
|
font-display: swap;
|
|
37
40
|
src: local('Source Sans Pro Light Italic'), local('SourceSansPro-LightItalic'),
|
|
38
|
-
url(../fonts/source-sans-pro-300-light-italic.woff) format('woff'),
|
|
41
|
+
url('../fonts/source-sans-pro-300-light-italic.woff') format('woff'),
|
|
42
|
+
url('../fonts/source-sans-pro-300-light-italic.woff2') format('woff2');
|
|
39
43
|
}
|
|
44
|
+
|
|
40
45
|
/* latin */
|
|
41
46
|
@font-face {
|
|
42
47
|
font-family: 'Source Sans Pro';
|
|
43
48
|
font-style: normal;
|
|
44
49
|
font-weight: 400;
|
|
45
50
|
font-display: swap;
|
|
46
|
-
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(../fonts/source-sans-pro-400-regular.woff) format('woff'),
|
|
47
|
-
url(../fonts/source-sans-pro-400-regular.woff2) format('woff2');
|
|
51
|
+
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url('../fonts/source-sans-pro-400-regular.woff') format('woff'),
|
|
52
|
+
url('../fonts/source-sans-pro-400-regular.woff2') format('woff2');
|
|
48
53
|
}
|
|
54
|
+
|
|
49
55
|
/* latin */
|
|
50
56
|
@font-face {
|
|
51
57
|
font-family: 'Source Sans Pro';
|
|
52
58
|
font-style: italic;
|
|
53
59
|
font-weight: 400;
|
|
54
60
|
font-display: swap;
|
|
55
|
-
src: local('Source Sans Pro Italic'), local('SourceSansPro-Italic'),
|
|
56
|
-
url(../fonts/source-sans-pro-400-regular-italic.
|
|
61
|
+
src: local('Source Sans Pro Italic'), local('SourceSansPro-Italic'),
|
|
62
|
+
url('../fonts/source-sans-pro-400-regular-italic.woff') format('woff'),
|
|
63
|
+
url('../fonts/source-sans-pro-400-regular-italic.woff2') format('woff2');
|
|
57
64
|
}
|
|
65
|
+
|
|
58
66
|
/* latin */
|
|
59
67
|
@font-face {
|
|
60
68
|
font-family: 'Source Sans Pro';
|
|
61
69
|
font-style: normal;
|
|
62
70
|
font-weight: 600;
|
|
63
71
|
font-display: swap;
|
|
64
|
-
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(../fonts/source-sans-pro-600-semibold.woff) format('woff'),
|
|
65
|
-
url(../fonts/source-sans-pro-600-semibold.woff2) format('woff2');
|
|
72
|
+
src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url('../fonts/source-sans-pro-600-semibold.woff') format('woff'),
|
|
73
|
+
url('../fonts/source-sans-pro-600-semibold.woff2') format('woff2');
|
|
66
74
|
}
|
|
75
|
+
|
|
67
76
|
/* latin */
|
|
68
77
|
@font-face {
|
|
69
78
|
font-family: 'Source Sans Pro';
|
|
@@ -71,18 +80,20 @@
|
|
|
71
80
|
font-weight: 600;
|
|
72
81
|
font-display: swap;
|
|
73
82
|
src: local('Source Sans Pro SemiBold Italic'), local('SourceSansPro-SemiBoldItalic'),
|
|
74
|
-
url(../fonts/source-sans-pro-600-semibold-italic.woff) format('woff'),
|
|
75
|
-
url(../fonts/source-sans-pro-600-semibold-italic.woff2) format('woff2');
|
|
83
|
+
url('../fonts/source-sans-pro-600-semibold-italic.woff') format('woff'),
|
|
84
|
+
url('../fonts/source-sans-pro-600-semibold-italic.woff2') format('woff2');
|
|
76
85
|
}
|
|
86
|
+
|
|
77
87
|
/* latin */
|
|
78
88
|
@font-face {
|
|
79
89
|
font-family: 'Source Sans Pro';
|
|
80
90
|
font-style: normal;
|
|
81
91
|
font-weight: 700;
|
|
82
92
|
font-display: swap;
|
|
83
|
-
src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url(../fonts/source-sans-pro-700-bold.woff) format('woff'),
|
|
84
|
-
url(../fonts/source-sans-pro-700-bold.woff2) format('woff2');
|
|
93
|
+
src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url('../fonts/source-sans-pro-700-bold.woff') format('woff'),
|
|
94
|
+
url('../fonts/source-sans-pro-700-bold.woff2') format('woff2');
|
|
85
95
|
}
|
|
96
|
+
|
|
86
97
|
/* latin */
|
|
87
98
|
@font-face {
|
|
88
99
|
font-family: 'Source Sans Pro';
|
|
@@ -90,17 +101,20 @@
|
|
|
90
101
|
font-weight: 700;
|
|
91
102
|
font-display: swap;
|
|
92
103
|
src: local('Source Sans Pro Bold Italic'), local('SourceSansPro-BoldItalic'),
|
|
93
|
-
url(../fonts/source-sans-pro-700-bold-italic.woff) format('woff'),
|
|
104
|
+
url('../fonts/source-sans-pro-700-bold-italic.woff') format('woff'),
|
|
105
|
+
url('../fonts/source-sans-pro-700-bold-italic.woff2') format('woff2');
|
|
94
106
|
}
|
|
107
|
+
|
|
95
108
|
/* latin */
|
|
96
109
|
@font-face {
|
|
97
110
|
font-family: 'Source Sans Pro';
|
|
98
111
|
font-style: normal;
|
|
99
112
|
font-weight: 900;
|
|
100
113
|
font-display: swap;
|
|
101
|
-
src: local('Source Sans Pro Black'), local('SourceSansPro-Black'), url(../fonts/source-sans-pro-900-black.woff) format('woff'),
|
|
102
|
-
url(../fonts/source-sans-pro-900-black.woff2) format('woff2');
|
|
114
|
+
src: local('Source Sans Pro Black'), local('SourceSansPro-Black'), url('../fonts/source-sans-pro-900-black.woff') format('woff'),
|
|
115
|
+
url('../fonts/source-sans-pro-900-black.woff2') format('woff2');
|
|
103
116
|
}
|
|
117
|
+
|
|
104
118
|
/* latin */
|
|
105
119
|
@font-face {
|
|
106
120
|
font-family: 'Source Sans Pro';
|
|
@@ -108,5 +122,6 @@
|
|
|
108
122
|
font-weight: 900;
|
|
109
123
|
font-display: swap;
|
|
110
124
|
src: local('Source Sans Pro Black Italic'), local('SourceSansPro-BlackItalic'),
|
|
111
|
-
url(../fonts/source-sans-pro-900-black-italic.woff) format('woff'),
|
|
125
|
+
url('../fonts/source-sans-pro-900-black-italic.woff') format('woff'),
|
|
126
|
+
url('../fonts/source-sans-pro-900-black-italic.woff2') format('woff2');
|
|
112
127
|
}
|
package/scss/_grid.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
$enable-deprecation-messages: true;
|
|
2
|
-
|
|
3
|
-
@import 'bootstrap/scss/
|
|
4
|
-
@import 'bootstrap/scss/mixins/
|
|
5
|
-
@import 'bootstrap/scss/mixins/
|
|
2
|
+
|
|
3
|
+
@import 'bootstrap/scss/vendor/rfs';
|
|
4
|
+
@import 'bootstrap/scss/mixins/deprecate';
|
|
5
|
+
@import 'bootstrap/scss/mixins/breakpoints';
|
|
6
|
+
@import 'bootstrap/scss/mixins/grid';
|
package/scss/_input.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
@mixin input-wrapper {
|
|
2
4
|
width: 100%;
|
|
3
5
|
|
|
@@ -9,7 +11,7 @@
|
|
|
9
11
|
font-weight: 600;
|
|
10
12
|
padding-bottom: getSpacer(xs);
|
|
11
13
|
|
|
12
|
-
@media (min-width: map
|
|
14
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
13
15
|
line-height: getSpacer(l);
|
|
14
16
|
font-size: $font-size-md;
|
|
15
17
|
}
|
|
@@ -55,17 +57,18 @@
|
|
|
55
57
|
&:hover {
|
|
56
58
|
background: $neutral50;
|
|
57
59
|
border-color: $neutral700;
|
|
58
|
-
box-shadow:
|
|
60
|
+
box-shadow: 0 0 0 1px $neutral700;
|
|
59
61
|
|
|
60
62
|
&:focus-within {
|
|
61
63
|
border-color: $black;
|
|
62
|
-
box-shadow:
|
|
64
|
+
box-shadow: 0 0 0 2px $black;
|
|
63
65
|
}
|
|
64
66
|
}
|
|
67
|
+
|
|
65
68
|
&:focus-within {
|
|
66
69
|
background: $white;
|
|
67
70
|
border-color: $neutral900;
|
|
68
|
-
box-shadow:
|
|
71
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
&--on-blueberry {
|
|
@@ -73,43 +76,49 @@
|
|
|
73
76
|
|
|
74
77
|
&:hover {
|
|
75
78
|
background: $blueberry50;
|
|
76
|
-
box-shadow:
|
|
79
|
+
box-shadow: 0 0 0 1px $blueberry500;
|
|
77
80
|
border-color: $blueberry500;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
&:focus-within {
|
|
81
84
|
background: $white;
|
|
82
85
|
border-color: $neutral900;
|
|
83
|
-
box-shadow:
|
|
86
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
84
87
|
}
|
|
85
88
|
}
|
|
89
|
+
|
|
86
90
|
&--on-dark {
|
|
87
91
|
border-color: $blueberry900;
|
|
92
|
+
|
|
88
93
|
&:hover {
|
|
89
94
|
background: $blueberry50;
|
|
90
95
|
border-color: $blueberry900;
|
|
91
|
-
box-shadow:
|
|
96
|
+
box-shadow: 0 0 0 1px $blueberry900;
|
|
92
97
|
}
|
|
98
|
+
|
|
93
99
|
&:focus-within {
|
|
94
100
|
background: $white;
|
|
95
101
|
border-color: $neutral900;
|
|
96
|
-
box-shadow:
|
|
102
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
97
103
|
}
|
|
98
104
|
}
|
|
105
|
+
|
|
99
106
|
&--invalid {
|
|
100
107
|
border-color: $cherry600;
|
|
101
108
|
|
|
102
109
|
&:hover {
|
|
103
110
|
background: $cherry100;
|
|
104
111
|
border-color: $cherry600;
|
|
105
|
-
box-shadow:
|
|
112
|
+
box-shadow: 0 0 0 2px $cherry600;
|
|
106
113
|
}
|
|
114
|
+
|
|
107
115
|
&:focus-within {
|
|
108
116
|
background: $white;
|
|
109
117
|
border-color: $neutral900;
|
|
110
|
-
box-shadow:
|
|
118
|
+
box-shadow: 0 0 0 2px $neutral900;
|
|
111
119
|
}
|
|
112
120
|
}
|
|
121
|
+
|
|
113
122
|
&--transparent {
|
|
114
123
|
background: transparent;
|
|
115
124
|
|
|
@@ -153,7 +162,7 @@
|
|
|
153
162
|
background-color: transparent;
|
|
154
163
|
width: 100%;
|
|
155
164
|
|
|
156
|
-
@media (min-width: map
|
|
165
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
157
166
|
font-size: $font-size-md;
|
|
158
167
|
}
|
|
159
168
|
|
package/scss/_palette.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
$black: #
|
|
2
|
-
$white: #
|
|
3
|
-
|
|
1
|
+
$black: #000;
|
|
2
|
+
$white: #fff;
|
|
4
3
|
$banana50: #fdf8df;
|
|
5
4
|
$banana100: #fcf2bf;
|
|
6
5
|
$banana200: #f9ea9f;
|
|
@@ -11,7 +10,6 @@ $banana600: #c59302;
|
|
|
11
10
|
$banana700: #ab7c00;
|
|
12
11
|
$banana800: #916500;
|
|
13
12
|
$banana900: #764f00;
|
|
14
|
-
|
|
15
13
|
$blueberry50: #e4f7f9;
|
|
16
14
|
$blueberry100: #cae7ed;
|
|
17
15
|
$blueberry200: #afdae3;
|
|
@@ -22,7 +20,6 @@ $blueberry600: #126f87;
|
|
|
22
20
|
$blueberry700: #08667c;
|
|
23
21
|
$blueberry800: #06596c;
|
|
24
22
|
$blueberry900: #084350;
|
|
25
|
-
|
|
26
23
|
$cherry50: #fff2ea;
|
|
27
24
|
$cherry100: #f7e1d2;
|
|
28
25
|
$cherry200: #eec0a5;
|
|
@@ -33,7 +30,6 @@ $cherry600: #b62e1c;
|
|
|
33
30
|
$cherry700: #a31f0e;
|
|
34
31
|
$cherry800: #912112;
|
|
35
32
|
$cherry900: #7e1c0e;
|
|
36
|
-
|
|
37
33
|
$kiwi50: #e6f8ee;
|
|
38
34
|
$kiwi100: #c2edd6;
|
|
39
35
|
$kiwi200: #9de2bf;
|
|
@@ -44,7 +40,6 @@ $kiwi600: #10b172;
|
|
|
44
40
|
$kiwi700: #0ca161;
|
|
45
41
|
$kiwi800: #099150;
|
|
46
42
|
$kiwi900: #078141;
|
|
47
|
-
|
|
48
43
|
$neutral50: #f5f3f3;
|
|
49
44
|
$neutral100: #eae7e7;
|
|
50
45
|
$neutral200: #d6d4d3;
|
|
@@ -55,7 +50,6 @@ $neutral600: #7d7c79;
|
|
|
55
50
|
$neutral700: #62625f;
|
|
56
51
|
$neutral800: #474745;
|
|
57
52
|
$neutral900: #2b2c2b;
|
|
58
|
-
|
|
59
53
|
$plum50: #efe4fd;
|
|
60
54
|
$plum100: #d7bdf9;
|
|
61
55
|
$plum200: #bf98f3;
|
|
@@ -66,10 +60,8 @@ $plum600: #6a2abf;
|
|
|
66
60
|
$plum700: #5b22a6;
|
|
67
61
|
$plum800: #4c1b8c;
|
|
68
62
|
$plum900: #3c1471;
|
|
69
|
-
|
|
70
63
|
$inverted-hover: #ffffff0d;
|
|
71
|
-
$
|
|
72
|
-
|
|
64
|
+
$transparent-grey: rgb(102 102 102 / 75%);
|
|
73
65
|
$palette-map: (
|
|
74
66
|
'banana50': $banana50,
|
|
75
67
|
'banana100': $banana100,
|