@helsenorge/designsystem-react 14.10.0 → 14.11.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/lib/BabyMobileMedium.js +1 -1
- package/lib/CHANGELOG.md +16 -0
- package/lib/Checkbox.js +25 -48
- package/lib/Checkbox.js.map +1 -1
- package/lib/CheckboxMarker.js +60 -0
- package/lib/CheckboxMarker.js.map +1 -0
- package/lib/ChildMedium.js +1 -1
- package/lib/EyeContactMedium.js +79 -0
- package/lib/EyeContactMedium.js.map +1 -0
- package/lib/FacialRecognitionFingerprintMedium.js +1 -1
- package/lib/Filter.js +12 -12
- package/lib/Filter.js.map +1 -1
- package/lib/FormGroup.js +5 -5
- package/lib/FormGroup.js.map +1 -1
- package/lib/GiveBabyFoodMedium.js +1 -1
- package/lib/Illustration.js +1 -1
- package/lib/IllustrationNames.js +4 -0
- package/lib/IllustrationNames.js.map +1 -1
- package/lib/LazyIllustration.js +5 -1
- package/lib/LazyIllustration.js.map +1 -1
- package/lib/Radio.js +73 -0
- package/lib/Radio.js.map +1 -0
- package/lib/RadioButton.js +81 -3
- package/lib/RadioButton.js.map +1 -1
- package/lib/RadioButton2.js +3 -73
- package/lib/RadioButton2.js.map +1 -1
- package/lib/RadioMarker.js +31 -0
- package/lib/RadioMarker.js.map +1 -0
- package/lib/ReadLettersMedium.js +1 -1
- package/lib/Search.js +4 -4
- package/lib/Search.js.map +1 -1
- package/lib/SkinToSkinMedium.js +106 -0
- package/lib/SkinToSkinMedium.js.map +1 -0
- package/lib/StorkMedium.js +1 -1
- package/lib/StrollerMedium.js +1 -1
- package/lib/Support2Medium.js +1 -1
- package/lib/TableBody.js +1 -1
- package/lib/TableHead.js +1 -1
- package/lib/TableRow.js +1 -1
- package/lib/ThinkingMedium.js +1 -1
- package/lib/VisualCheckbox.js +77 -0
- package/lib/VisualCheckbox.js.map +1 -0
- package/lib/VisualRadio.js +62 -0
- package/lib/VisualRadio.js.map +1 -0
- package/lib/__mocks__/matchMedia.js +3 -2
- package/lib/__mocks__/matchMedia.js.map +1 -1
- package/lib/components/Checkbox/CheckboxMarker/CheckboxMarker.d.ts +20 -0
- package/lib/components/Checkbox/CheckboxMarker/styles.module.scss +309 -0
- package/lib/components/Checkbox/CheckboxMarker/styles.module.scss.d.ts +25 -0
- package/lib/components/Checkbox/styles.module.scss +9 -269
- package/lib/components/Checkbox/styles.module.scss.d.ts +1 -17
- package/lib/components/Icons/Sort.js +12 -12
- package/lib/components/Icons/Sort.js.map +1 -1
- package/lib/components/Illustration/index.js +1 -1
- package/lib/components/Illustrations/BabyMobile.js +1 -1
- package/lib/components/Illustrations/Child.js +1 -1
- package/lib/components/Illustrations/Doctor.js +1 -1
- package/lib/components/Illustrations/EyeContact.d.ts +8 -0
- package/lib/components/Illustrations/EyeContact.js +16 -0
- package/lib/components/Illustrations/EyeContact.js.map +1 -0
- package/lib/components/Illustrations/EyeContactMedium.d.ts +3 -0
- package/lib/components/Illustrations/EyeContactMedium.js +2 -0
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js +1 -1
- package/lib/components/Illustrations/GiveBabyFood.js +1 -1
- package/lib/components/Illustrations/HealthcarePersonnel.js +1 -1
- package/lib/components/Illustrations/IllustrationNames.d.ts +1 -1
- package/lib/components/Illustrations/ReadLetters.js +1 -1
- package/lib/components/Illustrations/SkinToSkin.d.ts +8 -0
- package/lib/components/Illustrations/SkinToSkin.js +16 -0
- package/lib/components/Illustrations/SkinToSkin.js.map +1 -0
- package/lib/components/Illustrations/SkinToSkinMedium.d.ts +3 -0
- package/lib/components/Illustrations/SkinToSkinMedium.js +2 -0
- package/lib/components/Illustrations/Stork.js +1 -1
- package/lib/components/Illustrations/Stroller.js +1 -1
- package/lib/components/Illustrations/Support2.js +1 -1
- package/lib/components/Illustrations/Thinking.js +1 -1
- package/lib/components/Panel/index.js +1 -1
- package/lib/components/PanelList/index.js +1 -1
- package/lib/components/RadioButton/RadioMarker/RadioMarker.d.ts +20 -0
- package/lib/components/RadioButton/RadioMarker/styles.module.scss +288 -0
- package/lib/components/RadioButton/RadioMarker/styles.module.scss.d.ts +20 -0
- package/lib/components/RadioButton/index.d.ts +0 -1
- package/lib/components/RadioButton/index.js +3 -3
- package/lib/components/RadioButton/styles.module.scss +13 -275
- package/lib/components/RadioButton/styles.module.scss.d.ts +2 -12
- package/lib/components/Table/index.js +1 -1
- package/lib/components/Validation/index.js +1 -1
- package/lib/components/VisualCheckboxCloud/Checkbox/styles.module.scss +5 -128
- package/lib/components/VisualCheckboxCloud/styles.module.scss +2 -9
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/VisualCheckbox.d.ts +26 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/VisualContent.d.ts +10 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/index.d.ts +3 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/index.js +5 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/index.js.map +1 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/styles.module.scss +7 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckbox/styles.module.scss.d.ts +18 -0
- package/lib/components/VisualCheckboxGroup/VisualCheckboxGroup.d.ts +33 -0
- package/lib/components/VisualCheckboxGroup/index.d.ts +3 -0
- package/lib/components/VisualCheckboxGroup/index.js +43 -0
- package/lib/components/VisualCheckboxGroup/index.js.map +1 -0
- package/lib/components/VisualCheckboxGroup/styles.module.scss +6 -0
- package/lib/components/VisualCheckboxGroup/styles.module.scss.d.ts +10 -0
- package/lib/components/{VisualRadioButtonCloud/RadioButton/RadioButton.d.ts → VisualRadioCloud/Radio/Radio.d.ts} +3 -3
- package/lib/components/VisualRadioCloud/Radio/index.d.ts +3 -0
- package/lib/components/VisualRadioCloud/Radio/index.js +5 -0
- package/lib/components/VisualRadioCloud/Radio/index.js.map +1 -0
- package/lib/components/VisualRadioCloud/Radio/styles.module.scss +7 -0
- package/lib/components/VisualRadioCloud/Radio/styles.module.scss.d.ts +15 -0
- package/lib/components/{VisualRadioButtonCloud/VisualRadioButtonCloud.d.ts → VisualRadioCloud/VisualRadioCloud.d.ts} +8 -8
- package/lib/components/VisualRadioCloud/index.d.ts +3 -0
- package/lib/components/{VisualRadioButtonCloud → VisualRadioCloud}/index.js +7 -7
- package/lib/components/VisualRadioCloud/index.js.map +1 -0
- package/lib/components/VisualRadioCloud/styles.module.scss +6 -0
- package/lib/components/{VisualRadioButtonCloud → VisualRadioCloud}/styles.module.scss.d.ts +1 -1
- package/lib/components/VisualRadioGroup/VisualRadio/VisualContent.d.ts +10 -0
- package/lib/components/VisualRadioGroup/VisualRadio/VisualRadio.d.ts +26 -0
- package/lib/components/VisualRadioGroup/VisualRadio/index.d.ts +3 -0
- package/lib/components/VisualRadioGroup/VisualRadio/index.js +5 -0
- package/lib/components/VisualRadioGroup/VisualRadio/index.js.map +1 -0
- package/lib/components/VisualRadioGroup/VisualRadio/styles.module.scss +7 -0
- package/lib/components/VisualRadioGroup/VisualRadio/styles.module.scss.d.ts +18 -0
- package/lib/components/VisualRadioGroup/VisualRadioGroup.d.ts +39 -0
- package/lib/components/VisualRadioGroup/index.d.ts +3 -0
- package/lib/components/VisualRadioGroup/index.js +63 -0
- package/lib/components/VisualRadioGroup/index.js.map +1 -0
- package/lib/components/VisualRadioGroup/styles.module.scss +6 -0
- package/lib/components/VisualRadioGroup/styles.module.scss.d.ts +10 -0
- package/lib/resourceHelper.js +10 -6
- package/lib/resourceHelper.js.map +1 -1
- package/lib/resources/HN.Designsystem.Filter.en-GB.json.d.ts +5 -3
- package/lib/resources/HN.Designsystem.Filter.nb-NO.json.d.ts +5 -3
- package/lib/resources/Resources.d.ts +10 -2
- package/lib/scss/_visual-form.scss +357 -0
- package/lib/utils3.js +10 -98
- package/lib/utils3.js.map +1 -1
- package/lib/utils4.js +28 -11
- package/lib/utils4.js.map +1 -1
- package/lib/utils5.js +58 -28
- package/lib/utils5.js.map +1 -1
- package/package.json +115 -1
- package/scss/_visual-form.scss +357 -0
- package/lib/components/RadioButton/utils.d.ts +0 -2
- package/lib/components/VisualRadioButtonCloud/RadioButton/index.d.ts +0 -3
- package/lib/components/VisualRadioButtonCloud/RadioButton/index.js +0 -5
- package/lib/components/VisualRadioButtonCloud/RadioButton/index.js.map +0 -1
- package/lib/components/VisualRadioButtonCloud/RadioButton/styles.module.scss +0 -133
- package/lib/components/VisualRadioButtonCloud/RadioButton/styles.module.scss.d.ts +0 -15
- package/lib/components/VisualRadioButtonCloud/index.d.ts +0 -3
- package/lib/components/VisualRadioButtonCloud/index.js.map +0 -1
- package/lib/components/VisualRadioButtonCloud/styles.module.scss +0 -13
- package/lib/utils6.js +0 -60
- package/lib/utils6.js.map +0 -1
|
@@ -8,35 +8,35 @@ var Sort = ({ size, isHovered }) => {
|
|
|
8
8
|
normalHover: /* @__PURE__ */ jsx("path", { d: "m41.592 14.255-1.237 1.237-6.172-6.172v24.703h-1.75V9.32l-6.172 6.172-1.238-1.237 8.285-8.285 8.284 8.285ZM15.679 38.572l6.003-6.003 1.237 1.238-8.114 8.115-.003-.003H14.8l-8.114-8.112 1.238-1.238 6.004 6.004V14.018h1.75v24.554Z" }),
|
|
9
9
|
xSmall: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
10
|
/* @__PURE__ */ jsx("path", {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
clipRule: "evenodd",
|
|
13
13
|
d: "M31.905 12.936h-1.894v20.013h1.895V12.936Zm-13.913 2.219h-1.895v19.793h1.895V15.155Z"
|
|
14
14
|
}),
|
|
15
15
|
/* @__PURE__ */ jsx("path", {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
18
|
d: "m32.296 11.918-1.34-1.34-6.77 6.77 1.34 1.34 6.77-6.77ZM15.707 36.096l1.34 1.34 6.77-6.771-1.34-1.34-6.77 6.771Z"
|
|
19
19
|
}),
|
|
20
20
|
/* @__PURE__ */ jsx("path", {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
clipRule: "evenodd",
|
|
23
23
|
d: "m36.39 18.686 1.34-1.34-6.77-6.769-1.34 1.34 6.77 6.77ZM11.611 29.324l-1.34 1.34 6.771 6.77 1.34-1.34-6.77-6.77Z"
|
|
24
24
|
})
|
|
25
25
|
] }),
|
|
26
26
|
xSmallHover: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
27
|
/* @__PURE__ */ jsx("path", {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
clipRule: "evenodd",
|
|
30
30
|
d: "M31.905 11.673h-1.894v20.013h1.895V11.673Zm-13.913 4.744h-1.895v19.794h1.895V16.417Z"
|
|
31
31
|
}),
|
|
32
32
|
/* @__PURE__ */ jsx("path", {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
35
|
d: "m32.296 10.654-1.34-1.34-6.77 6.77 1.34 1.34 6.77-6.77ZM15.707 37.36l1.34 1.34 6.77-6.771-1.34-1.34-6.77 6.77Z"
|
|
36
36
|
}),
|
|
37
37
|
/* @__PURE__ */ jsx("path", {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
fillRule: "evenodd",
|
|
39
|
+
clipRule: "evenodd",
|
|
40
40
|
d: "m36.39 17.424 1.34-1.34-6.77-6.77-1.34 1.34 6.77 6.77ZM11.611 30.588l-1.34 1.34 6.771 6.77 1.34-1.34-6.77-6.77Z"
|
|
41
41
|
})
|
|
42
42
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sort.js","names":["Sort: React.FC<SvgPathProps>"],"sources":["../../../src/components/Icons/Sort.tsx"],"sourcesContent":["import type { SvgPathProps } from '../Icon';\n\nimport { getIcon } from '../Icon/utils';\n\nconst Sort: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path d=\"m15.679 36.574 6.002-6.003 1.238 1.238-8.114 8.115-.003-.003H14.8L6.687 31.81l1.238-1.238 6.004 6.004V12.02h1.75v24.555Zm25.913-20.317-1.238 1.237-6.172-6.172v24.703h-1.75V11.322l-6.171 6.172-1.238-1.237 8.284-8.285 8.285 8.285Z\" />\n );\n\n const normalHover = (\n <path d=\"m41.592 14.255-1.237 1.237-6.172-6.172v24.703h-1.75V9.32l-6.172 6.172-1.238-1.237 8.285-8.285 8.284 8.285ZM15.679 38.572l6.003-6.003 1.237 1.238-8.114 8.115-.003-.003H14.8l-8.114-8.112 1.238-1.238 6.004 6.004V14.018h1.75v24.554Z\" />\n );\n\n const xSmall = (\n <>\n <path\n
|
|
1
|
+
{"version":3,"file":"Sort.js","names":["Sort: React.FC<SvgPathProps>"],"sources":["../../../src/components/Icons/Sort.tsx"],"sourcesContent":["import type { SvgPathProps } from '../Icon';\n\nimport { getIcon } from '../Icon/utils';\n\nconst Sort: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <path d=\"m15.679 36.574 6.002-6.003 1.238 1.238-8.114 8.115-.003-.003H14.8L6.687 31.81l1.238-1.238 6.004 6.004V12.02h1.75v24.555Zm25.913-20.317-1.238 1.237-6.172-6.172v24.703h-1.75V11.322l-6.171 6.172-1.238-1.237 8.284-8.285 8.285 8.285Z\" />\n );\n\n const normalHover = (\n <path d=\"m41.592 14.255-1.237 1.237-6.172-6.172v24.703h-1.75V9.32l-6.172 6.172-1.238-1.237 8.285-8.285 8.284 8.285ZM15.679 38.572l6.003-6.003 1.237 1.238-8.114 8.115-.003-.003H14.8l-8.114-8.112 1.238-1.238 6.004 6.004V14.018h1.75v24.554Z\" />\n );\n\n const xSmall = (\n <>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M31.905 12.936h-1.894v20.013h1.895V12.936Zm-13.913 2.219h-1.895v19.793h1.895V15.155Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"m32.296 11.918-1.34-1.34-6.77 6.77 1.34 1.34 6.77-6.77ZM15.707 36.096l1.34 1.34 6.77-6.771-1.34-1.34-6.77 6.771Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"m36.39 18.686 1.34-1.34-6.77-6.769-1.34 1.34 6.77 6.77ZM11.611 29.324l-1.34 1.34 6.771 6.77 1.34-1.34-6.77-6.77Z\"\n />\n </>\n );\n\n const xSmallHover = (\n <>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M31.905 11.673h-1.894v20.013h1.895V11.673Zm-13.913 4.744h-1.895v19.794h1.895V16.417Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"m32.296 10.654-1.34-1.34-6.77 6.77 1.34 1.34 6.77-6.77ZM15.707 37.36l1.34 1.34 6.77-6.771-1.34-1.34-6.77 6.77Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"m36.39 17.424 1.34-1.34-6.77-6.77-1.34 1.34 6.77 6.77ZM11.611 30.588l-1.34 1.34 6.771 6.77 1.34-1.34-6.77-6.77Z\"\n />\n </>\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default Sort;\n"],"mappings":";;AAIA,IAAMA,QAAgC,EAAE,MAAM,gBAAkD;AAiD9F,QAAO,QAAQ;EAAE;EAAM;EAAW,QA/ChC,oBAAC,QAAA,EAAK,GAAE,wOAAA,CAAyO;EA+CzM,aA3CxC,oBAAC,QAAA,EAAK,GAAE,wOAAA,CAAyO;EA2C5L,QAvCrD,qBAAA,UAAA,EAAA,UAAA;GACE,oBAAC,QAAA;IACC,UAAS;IACT,UAAS;IACT,GAAE;KACF;GACF,oBAAC,QAAA;IACC,UAAS;IACT,UAAS;IACT,GAAE;KACF;GACF,oBAAC,QAAA;IACC,UAAS;IACT,UAAS;IACT,GAAE;KACF;MACD;EAuB0D,aAnB7D,qBAAA,UAAA,EAAA,UAAA;GACE,oBAAC,QAAA;IACC,UAAS;IACT,UAAS;IACT,GAAE;KACF;GACF,oBAAC,QAAA;IACC,UAAS;IACT,UAAS;IACT,GAAE;KACF;GACF,oBAAC,QAAA;IACC,UAAS;IACT,UAAS;IACT,GAAE;KACF;MACD;EAGuE,CAAC;;AAG/E,IAAA,eAAe"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getIllustration, t as ViewBoxSize } from "../../
|
|
1
|
+
import { n as getIllustration, t as ViewBoxSize } from "../../utils3.js";
|
|
2
2
|
import { n as Illustration, t as Illustration_default } from "../../Illustration.js";
|
|
3
3
|
export { Illustration, ViewBoxSize, Illustration_default as default, getIllustration };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as BabyMobileMedium_default } from "../../BabyMobileMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var BabyMobile = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as ChildMedium_default } from "../../ChildMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var Child = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as DoctorMedium_default } from "../../DoctorMedium.js";
|
|
3
3
|
import { t as DoctorSmall_default } from "../../DoctorSmall.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
|
+
import { t as EyeContactMedium_default } from "../../EyeContactMedium.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var EyeContact = ({ size = 512, color, ...rest }) => {
|
|
5
|
+
return getIllustration({
|
|
6
|
+
size,
|
|
7
|
+
medium: /* @__PURE__ */ jsx(EyeContactMedium_default, {
|
|
8
|
+
color,
|
|
9
|
+
...rest
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var EyeContact_default = EyeContact;
|
|
14
|
+
export { EyeContact_default as default };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=EyeContact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EyeContact.js","names":["EyeContact: React.FC<SvgIllustrationProps>"],"sources":["../../../src/components/Illustrations/EyeContact.tsx"],"sourcesContent":["import type { SvgIllustrationProps } from '../Illustration';\n\nimport EyeContactMedium from './EyeContactMedium';\nimport { getIllustration } from '../Illustration/utils';\n\nexport interface Palette {\n skin: string;\n mother: string;\n baby: string;\n}\n\nconst EyeContact: React.FC<SvgIllustrationProps> = ({ size = 512, color, ...rest }) => {\n const medium = <EyeContactMedium color={color} {...rest} />;\n\n return getIllustration({ size, medium });\n};\n\nexport default EyeContact;\n"],"mappings":";;;AAWA,IAAMA,cAA8C,EAAE,OAAO,KAAK,OAAO,GAAG,WAAW;AAGrF,QAAO,gBAAgB;EAAE;EAAM,QAFhB,oBAAC,0BAAA;GAAwB;GAAO,GAAI;IAAQ;EAEpB,CAAC;;AAG1C,IAAA,qBAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as FacialRecognitionFingerprintMedium_default } from "../../FacialRecognitionFingerprintMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var FacialRecognitionFingerprint = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as GiveBabyFoodMedium_default } from "../../GiveBabyFoodMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var GiveBabyFood = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as HealthcarePersonnelMedium_default } from "../../HealthcarePersonnelMedium.js";
|
|
3
3
|
import { t as HealthcarePersonnelSmall_default } from "../../HealthcarePersonnelSmall.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** AUTO-GENERATED - DO NOT CHANGE MANUALLY **/
|
|
2
|
-
export declare const IllustrationList: readonly ["BabyMobile", "Child", "Doctor", "FacialRecognitionFingerprint", "GiveBabyFood", "HealthcarePersonnel", "ReadLetters", "Stork", "Stroller", "Support2", "Thinking"];
|
|
2
|
+
export declare const IllustrationList: readonly ["BabyMobile", "Child", "Doctor", "EyeContact", "FacialRecognitionFingerprint", "GiveBabyFood", "HealthcarePersonnel", "ReadLetters", "SkinToSkin", "Stork", "Stroller", "Support2", "Thinking"];
|
|
3
3
|
export interface IllustrationSize {
|
|
4
4
|
small?: string;
|
|
5
5
|
medium?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as ReadLettersMedium_default } from "../../ReadLettersMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var ReadLetters = ({ size = 512, color, ...rest }) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
|
+
import { t as SkinToSkinMedium_default } from "../../SkinToSkinMedium.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var SkinToSkin = ({ size = 512, color, ...rest }) => {
|
|
5
|
+
return getIllustration({
|
|
6
|
+
size,
|
|
7
|
+
medium: /* @__PURE__ */ jsx(SkinToSkinMedium_default, {
|
|
8
|
+
color,
|
|
9
|
+
...rest
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var SkinToSkin_default = SkinToSkin;
|
|
14
|
+
export { SkinToSkin_default as default };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=SkinToSkin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkinToSkin.js","names":["SkinToSkin: React.FC<SvgIllustrationProps>"],"sources":["../../../src/components/Illustrations/SkinToSkin.tsx"],"sourcesContent":["import type { SvgIllustrationProps } from '../Illustration';\n\nimport SkinToSkinMedium from './SkinToSkinMedium';\nimport { getIllustration } from '../Illustration/utils';\n\nexport interface Palette {\n hair: string;\n skin: string;\n clothes: string;\n}\n\nconst SkinToSkin: React.FC<SvgIllustrationProps> = ({ size = 512, color, ...rest }) => {\n const medium = <SkinToSkinMedium color={color} {...rest} />;\n\n return getIllustration({ size, medium });\n};\n\nexport default SkinToSkin;\n"],"mappings":";;;AAWA,IAAMA,cAA8C,EAAE,OAAO,KAAK,OAAO,GAAG,WAAW;AAGrF,QAAO,gBAAgB;EAAE;EAAM,QAFhB,oBAAC,0BAAA;GAAwB;GAAO,GAAI;IAAQ;EAEpB,CAAC;;AAG1C,IAAA,qBAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as StorkMedium_default } from "../../StorkMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var Stork = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as StrollerMedium_default } from "../../StrollerMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var Stroller = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as Support2Medium_default } from "../../Support2Medium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var Support2 = ({ size = 512, color, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getIllustration } from "../../
|
|
1
|
+
import { n as getIllustration } from "../../utils3.js";
|
|
2
2
|
import { t as ThinkingMedium_default } from "../../ThinkingMedium.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var Thinking = ({ size = 512, color, ...rest }) => {
|
|
@@ -8,7 +8,7 @@ import { t as ChevronUp_default } from "../../ChevronUp.js";
|
|
|
8
8
|
import { t as Highlighter_default } from "../../Highlighter.js";
|
|
9
9
|
import { t as useExpand } from "../../useExpand.js";
|
|
10
10
|
import { t as ChevronRight_default } from "../../ChevronRight.js";
|
|
11
|
-
import { a as PanelVariant, i as PanelStatus, n as PanelLayout, r as PanelStacking, t as PanelListContext } from "../../
|
|
11
|
+
import { a as PanelVariant, i as PanelStatus, n as PanelLayout, r as PanelStacking, t as PanelListContext } from "../../utils4.js";
|
|
12
12
|
import { t as PanelTitle_default } from "../../PanelTitle.js";
|
|
13
13
|
import classNames from "classnames";
|
|
14
14
|
import React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as AnalyticsId } from "../../constants2.js";
|
|
2
|
-
import { a as PanelVariant, t as PanelListContext } from "../../
|
|
2
|
+
import { a as PanelVariant, t as PanelListContext } from "../../utils4.js";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormOnColor, FormSize } from '../../../constants';
|
|
2
|
+
export interface RadioMarkerProps {
|
|
3
|
+
/** Whether the radio is checked. Controls the inner dot visibility. */
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
/** Disables the visual state of the marker. */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** Activates error styling. */
|
|
8
|
+
error?: boolean;
|
|
9
|
+
/** Background context the marker is rendered on. */
|
|
10
|
+
onColor?: keyof typeof FormOnColor;
|
|
11
|
+
/** Size variant of the marker. */
|
|
12
|
+
size?: keyof typeof FormSize;
|
|
13
|
+
/** Adds custom classes to the marker wrapper. */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Does not render an <input>; consumers render this on their end.
|
|
18
|
+
*/
|
|
19
|
+
export declare const RadioMarker: React.FC<RadioMarkerProps>;
|
|
20
|
+
export default RadioMarker;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
@use '../../../scss/spacers' as spacers;
|
|
2
|
+
@use '../../../scss/palette' as palette;
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
|
|
6
|
+
@mixin dashed-border() {
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&::after {
|
|
11
|
+
position: absolute;
|
|
12
|
+
content: '';
|
|
13
|
+
|
|
14
|
+
$encoded-color: string.slice(meta.inspect(palette.$neutral600), 2);
|
|
15
|
+
|
|
16
|
+
// Variabler for å lettere styre dashen i background-imaget under
|
|
17
|
+
$stroke: 4;
|
|
18
|
+
$dash: 0.2;
|
|
19
|
+
$gap: 7;
|
|
20
|
+
$scale: 1;
|
|
21
|
+
$stroke-scaled: $stroke * $scale;
|
|
22
|
+
$dash-scaled: $dash * $scale;
|
|
23
|
+
$gap-scaled: $gap * $scale;
|
|
24
|
+
|
|
25
|
+
border-radius: 100px;
|
|
26
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%23#{$encoded-color}' stroke-width='#{$stroke-scaled}' stroke-dasharray='#{$dash-scaled},#{$gap-scaled}' stroke-linecap='square'/%3E%3C/svg%3E");
|
|
27
|
+
background-repeat: no-repeat;
|
|
28
|
+
width: 28px;
|
|
29
|
+
height: 28px;
|
|
30
|
+
inset: -2px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.radio {
|
|
35
|
+
&__marker {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
border-radius: 10rem;
|
|
40
|
+
height: 1.5rem;
|
|
41
|
+
width: 1.5rem;
|
|
42
|
+
min-height: 1.5rem;
|
|
43
|
+
min-width: 1.5rem;
|
|
44
|
+
color: palette.$neutral700;
|
|
45
|
+
box-shadow: 0 0 0 spacers.getSpacer(4xs);
|
|
46
|
+
|
|
47
|
+
// Vi overstyrer farger satt ved high-contrast mode i nettleser/os
|
|
48
|
+
@media (forced-colors: active) {
|
|
49
|
+
forced-color-adjust: none;
|
|
50
|
+
background-color: transparent !important;
|
|
51
|
+
color: #fff !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&--on-blueberry {
|
|
55
|
+
color: palette.$blueberry500;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--on-dark {
|
|
59
|
+
color: palette.$neutral200;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--invalid {
|
|
63
|
+
color: palette.$cherry600;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__regular#{&}--checked,
|
|
67
|
+
label:has(input:checked) &__regular {
|
|
68
|
+
color: palette.$blueberry500;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__regular#{&}--checked#{&}--invalid,
|
|
72
|
+
label:has(input:checked) &__regular#{&}--invalid {
|
|
73
|
+
color: palette.$cherry600;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__regular#{&}--checked#{&}--on-dark,
|
|
77
|
+
label:has(input:checked) &__regular#{&}--on-dark {
|
|
78
|
+
color: palette.$blueberry200;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__regular#{&}--checked#{&}--disabled,
|
|
82
|
+
label:has(input:checked) &__regular#{&}--disabled {
|
|
83
|
+
color: palette.$neutral600;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__large {
|
|
87
|
+
// empty stub — checked-state rules live at the &__marker level below
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Large size — checked appearance.
|
|
91
|
+
&__large#{&}--checked,
|
|
92
|
+
label:has(input:checked) &__large {
|
|
93
|
+
color: palette.$blueberry100;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__large#{&}--checked#{&}--invalid,
|
|
97
|
+
label:has(input:checked) &__large#{&}--invalid {
|
|
98
|
+
color: palette.$cherry500;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__large#{&}--checked#{&}--disabled,
|
|
102
|
+
label:has(input:checked) &__large#{&}--disabled {
|
|
103
|
+
color: palette.$neutral600;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&--disabled,
|
|
107
|
+
&--disabled#{&}--invalid,
|
|
108
|
+
&--disabled#{&}--on-dark {
|
|
109
|
+
@include dashed-border;
|
|
110
|
+
|
|
111
|
+
background-color: transparent;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Focus styles when an input inside the wrapping label is focus-visible
|
|
115
|
+
label:has(:focus-visible) &#{&} {
|
|
116
|
+
box-shadow: 0 0 0 spacers.getSpacer(3xs);
|
|
117
|
+
color: palette.$black;
|
|
118
|
+
|
|
119
|
+
&--on-dark {
|
|
120
|
+
color: palette.$white;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
label:has(:focus-visible) &__regular#{&}--checked,
|
|
125
|
+
label:has(input:checked:focus-visible) &__regular {
|
|
126
|
+
color: palette.$black;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
label:has(:focus-visible) &__regular#{&}--checked#{&}--on-dark,
|
|
130
|
+
label:has(input:checked:focus-visible) &__regular#{&}--on-dark {
|
|
131
|
+
color: palette.$white;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
label:has(:focus-visible) &__large#{&}--checked,
|
|
135
|
+
label:has(input:checked:focus-visible) &__large {
|
|
136
|
+
color: palette.$white;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
label:has(:focus-visible) &__large#{&}--checked#{&}--invalid,
|
|
140
|
+
label:has(input:checked:focus-visible) &__large#{&}--invalid {
|
|
141
|
+
color: palette.$black;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Hover styles via wrapping label
|
|
145
|
+
label:hover &,
|
|
146
|
+
label:active & {
|
|
147
|
+
box-shadow: 0 0 0 spacers.getSpacer(3xs);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
label:hover &--on-white,
|
|
151
|
+
label:hover &--on-grey {
|
|
152
|
+
background-color: palette.$neutral100;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
label:active &--on-white,
|
|
156
|
+
label:active &--on-grey {
|
|
157
|
+
background-color: palette.$blueberry100;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
label:hover &--on-blueberry {
|
|
161
|
+
background-color: palette.$blueberry100;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
label:active &--on-blueberry {
|
|
165
|
+
background-color: palette.$blueberry200;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
label:hover &--on-invalid {
|
|
169
|
+
background-color: palette.$cherry100;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
label:active &--on-invalid {
|
|
173
|
+
background-color: palette.$cherry200;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
label:hover &--on-dark {
|
|
177
|
+
background-color: palette.$inverted-hover-old;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
label:hover &__regular#{&}--checked,
|
|
181
|
+
label:has(input:checked):hover &__regular {
|
|
182
|
+
background-color: palette.$blueberry50;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
label:active &__regular#{&}--checked,
|
|
186
|
+
label:has(input:checked):active &__regular {
|
|
187
|
+
background-color: palette.$blueberry100;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
label:hover &__regular#{&}--checked#{&}--invalid,
|
|
191
|
+
label:has(input:checked):hover &__regular#{&}--invalid {
|
|
192
|
+
background-color: palette.$cherry100;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
label:active &__regular#{&}--checked#{&}--invalid,
|
|
196
|
+
label:has(input:checked):active &__regular#{&}--invalid {
|
|
197
|
+
background-color: palette.$cherry200;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
label:hover &__regular#{&}--checked#{&}--on-dark,
|
|
201
|
+
label:has(input:checked):hover &__regular#{&}--on-dark {
|
|
202
|
+
background-color: palette.$inverted-hover-old;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
label:hover &__large#{&}--checked,
|
|
206
|
+
label:has(input:checked):hover &__large {
|
|
207
|
+
background-color: unset;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
label:hover &__large#{&}--checked#{&}--invalid,
|
|
211
|
+
label:has(input:checked):hover &__large#{&}--invalid {
|
|
212
|
+
background-color: transparent;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
label:hover &--disabled,
|
|
216
|
+
label:hover &--disabled#{&}--invalid,
|
|
217
|
+
label:hover &--disabled#{&}--on-dark {
|
|
218
|
+
box-shadow: none;
|
|
219
|
+
background-color: transparent;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&__marker-dot {
|
|
224
|
+
display: none;
|
|
225
|
+
background-color: palette.$blueberry500;
|
|
226
|
+
width: 0.875rem;
|
|
227
|
+
height: 0.875rem;
|
|
228
|
+
border-radius: 10rem;
|
|
229
|
+
|
|
230
|
+
// Vi overstyrer farger satt ved high-contrast mode i nettleser/os
|
|
231
|
+
@media (forced-colors: active) {
|
|
232
|
+
forced-color-adjust: none;
|
|
233
|
+
background-color: #fff !important;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Show the dot visually
|
|
238
|
+
&__marker#{&}__marker--checked &__marker-dot,
|
|
239
|
+
label:has(input:checked) &__marker &__marker-dot {
|
|
240
|
+
display: block;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Dot color follows the marker state (so the focus ring can turn black
|
|
244
|
+
// without recoloring the dot).
|
|
245
|
+
&__marker--on-dark &__marker-dot {
|
|
246
|
+
background-color: palette.$blueberry200;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&__marker--invalid &__marker-dot {
|
|
250
|
+
background-color: palette.$cherry600;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&__marker--disabled &__marker-dot {
|
|
254
|
+
background-color: palette.$neutral600;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&__marker__large#{&}__marker--checked &__marker-dot,
|
|
258
|
+
label:has(input:checked) &__marker__large &__marker-dot {
|
|
259
|
+
background-color: palette.$blueberry100;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&__marker__large#{&}__marker--checked#{&}__marker--invalid &__marker-dot,
|
|
263
|
+
label:has(input:checked) &__marker__large#{&}__marker--invalid &__marker-dot {
|
|
264
|
+
background-color: palette.$cherry500;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
label:active &__marker-dot {
|
|
268
|
+
background-color: palette.$blueberry800;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
label:active &__marker--on-dark &__marker-dot {
|
|
272
|
+
background-color: palette.$blueberry300;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
label:active &__marker--invalid &__marker-dot {
|
|
276
|
+
background-color: palette.$cherry800;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
label:active &__marker__large#{&}__marker--checked &__marker-dot,
|
|
280
|
+
label:has(input:checked):active &__marker__large &__marker-dot {
|
|
281
|
+
background-color: palette.$blueberry200;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
label:active &__marker__large#{&}__marker--checked#{&}__marker--invalid &__marker-dot,
|
|
285
|
+
label:has(input:checked):active &__marker__large#{&}__marker--invalid &__marker-dot {
|
|
286
|
+
background-color: palette.$cherry700;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
radio__marker: string;
|
|
3
|
+
radio__marker__large: string;
|
|
4
|
+
radio__marker__regular: string;
|
|
5
|
+
'radio__marker--checked': string;
|
|
6
|
+
'radio__marker--disabled': string;
|
|
7
|
+
'radio__marker--invalid': string;
|
|
8
|
+
'radio__marker--on-blueberry': string;
|
|
9
|
+
'radio__marker--on-dark': string;
|
|
10
|
+
'radio__marker--on-grey': string;
|
|
11
|
+
'radio__marker--on-invalid': string;
|
|
12
|
+
'radio__marker--on-white': string;
|
|
13
|
+
'radio__marker-dot': string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type ClassNames = keyof Styles;
|
|
17
|
+
|
|
18
|
+
declare const styles: Styles;
|
|
19
|
+
|
|
20
|
+
export default styles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as RadioButton_default } from "../../
|
|
3
|
-
export { RadioButton, RadioButton_default as default
|
|
1
|
+
import { t as RadioButton } from "../../RadioButton.js";
|
|
2
|
+
import { t as RadioButton_default } from "../../RadioButton2.js";
|
|
3
|
+
export { RadioButton, RadioButton_default as default };
|