@helsenorge/designsystem-react 7.9.0 → 7.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/components/Button/Button.d.ts +1 -1
- package/components/Button/Button.js +8 -8
- package/components/Button/Button.js.map +1 -1
- package/components/Button/styles.module.scss +2 -4
- package/components/Button/styles.module.scss.d.ts +1 -1
- package/components/Illustration/Illustration.d.ts +6 -0
- package/components/Illustration/Illustration.js +34 -30
- package/components/Illustration/Illustration.js.map +1 -1
- package/components/Illustration/index.js +5 -4
- package/components/Illustrations/Doctor.js +9 -6
- package/components/Illustrations/Doctor.js.map +1 -1
- package/components/Illustrations/DoctorMedium.js +3 -3
- package/components/Illustrations/DoctorMedium.js.map +1 -1
- package/components/Illustrations/DoctorSmall.js +3 -3
- package/components/Illustrations/DoctorSmall.js.map +1 -1
- package/components/Illustrations/FacialRecognitionFingerprint.d.ts +8 -0
- package/components/Illustrations/FacialRecognitionFingerprint.js +11 -0
- package/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -0
- package/components/Illustrations/FacialRecognitionFingerprintMedium.d.ts +4 -0
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js +274 -0
- package/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -0
- package/components/Illustrations/HealthcarePersonnel.js +9 -6
- package/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelMedium.js +3 -3
- package/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
- package/components/Illustrations/HealthcarePersonnelSmall.js +3 -3
- package/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
- package/components/Illustrations/IllustrationNames.d.ts +1 -1
- package/components/Illustrations/IllustrationNames.js +3 -2
- package/components/Illustrations/IllustrationNames.js.map +1 -1
- package/components/LazyIllustration/LazyIllustration.js +16 -16
- package/components/LazyIllustration/LazyIllustration.js.map +1 -1
- package/components/Loader/Loader.js +40 -40
- package/components/Loader/Loader.js.map +1 -1
- package/components/Loader/styles.module.scss +0 -1
- package/components/Progressbar/Progressbar.d.ts +30 -0
- package/components/Progressbar/Progressbar.js +89 -0
- package/components/Progressbar/Progressbar.js.map +1 -0
- package/components/Progressbar/Progressbar.stories.d.ts +43 -0
- package/components/Progressbar/index.d.ts +3 -0
- package/components/Progressbar/index.js +9 -0
- package/components/Progressbar/index.js.map +1 -0
- package/components/Progressbar/styles.module.scss +35 -0
- package/components/Progressbar/styles.module.scss.d.ts +13 -0
- package/constants.d.ts +2 -1
- package/constants.js +1 -1
- package/constants.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [7.10.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.9.0&targetVersion=GTv7.10.0) (2024-06-19)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- illustrasjon facialrecongitionfingerprint lagt til
|
|
6
|
+
([64bff31](https://github.com/helsenorge/designsystem/commit/64bff313fa89b1602dd5198fa773d9baa29b0a32)), closes
|
|
7
|
+
[#320973](https://github.com/helsenorge/designsystem/issues/320973)
|
|
8
|
+
- **progressbar:** ny komponent ([9cdbd1b](https://github.com/helsenorge/designsystem/commit/9cdbd1bad9a701ed4a68bd84bb959b6785d518bd)),
|
|
9
|
+
closes [#297459](https://github.com/helsenorge/designsystem/issues/297459)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **progressbar:** bedre uu ([1f2bcf0](https://github.com/helsenorge/designsystem/commit/1f2bcf01cd1fa88a5b4765013a17ec2e5ca05a67)), closes
|
|
14
|
+
[#297459](https://github.com/helsenorge/designsystem/issues/297459)
|
|
15
|
+
|
|
16
|
+
## [7.9.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.8.1&targetVersion=GTv7.9.0) (2024-06-12)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- fiks brekking av ord i dropdown ([d10a776](https://github.com/helsenorge/designsystem/commit/d10a776b66763d2c92c9bfeb0b5988687e235577)),
|
|
21
|
+
closes [#327108](https://github.com/helsenorge/designsystem/issues/327108)
|
|
22
|
+
|
|
1
23
|
## [7.8.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.8.0&targetVersion=GTv7.8.1) (2024-06-04)
|
|
2
24
|
|
|
3
25
|
### Bug Fixes
|
|
@@ -6,7 +6,7 @@ export type ButtonSize = 'medium' | 'large';
|
|
|
6
6
|
export type ButtonMode = 'onlight' | 'ondark';
|
|
7
7
|
export type ButtonTags = 'button' | 'a';
|
|
8
8
|
export type ButtonArrows = 'icon' | 'accessibility-character';
|
|
9
|
-
export type ButtonTextPosition = 'left' | 'centered
|
|
9
|
+
export type ButtonTextPosition = 'left' | 'centered';
|
|
10
10
|
export interface ButtonProps extends HTMLButtonProps, HTMLAnchorProps, AriaAttributes {
|
|
11
11
|
/** Sets the aria-label of the button, use when the button only includes an icon */
|
|
12
12
|
ariaLabel?: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import e, { useRef as
|
|
1
|
+
import e, { useRef as ct, useEffect as it } from "react";
|
|
2
2
|
import p from "classnames";
|
|
3
3
|
import { Icon as ut } from "../Icon/Icon.js";
|
|
4
4
|
import { AnalyticsId as $, IconSize as N } from "../../constants.js";
|
|
5
5
|
import { useBreakpoint as mt } from "../../hooks/useBreakpoint.js";
|
|
6
6
|
import { useHover as D } from "../../hooks/useHover.js";
|
|
7
7
|
import { useIcons as bt } from "../../hooks/useIcons.js";
|
|
8
|
-
import { getColor as
|
|
8
|
+
import { getColor as i } from "../../theme/currys/color.js";
|
|
9
9
|
import { breakpoints as dt } from "../../theme/grid.js";
|
|
10
10
|
import { isTest as pt, isProd as ft } from "../../utils/environment.js";
|
|
11
11
|
import ht from "../Icons/ArrowRight.js";
|
|
12
12
|
import t from "../Button/styles.module.scss";
|
|
13
|
-
const _t = (o, r, n, f, s, _) => _ && n ? !s || o ?
|
|
13
|
+
const _t = (o, r, n, f, s, _) => _ && n ? !s || o ? i("neutral", r ? 500 : 700) : i("white") : n ? !s || o ? i("neutral", 500) : `${i("white")}b3` : o && !s || !o && s ? "white" : f === "normal" ? i("blueberry", 600) : i("cherry", 500), B = (o, r) => r && o ? N.Small : o ? N.Medium : N.XSmall, gt = (o, r, n) => {
|
|
14
14
|
if (n && o && (r === void 0 || r === ""))
|
|
15
15
|
throw new Error("Fyll inn ariaLabel prop på Button uten tekst for å opprettholde UU krav");
|
|
16
16
|
}, wt = e.forwardRef(function(r, n) {
|
|
@@ -38,7 +38,7 @@ const _t = (o, r, n, f, s, _) => _ && n ? !s || o ? c("neutral", r ? 500 : 700)
|
|
|
38
38
|
type: J = "button",
|
|
39
39
|
textPosition: K = "left",
|
|
40
40
|
...F
|
|
41
|
-
} = r, [m, b, H] = bt(e.Children.toArray(_)), { hoverRef: P, isHovered: Q } = I === "button" ? D(n) : D(n), Y =
|
|
41
|
+
} = r, [m, b, H] = bt(e.Children.toArray(_)), { hoverRef: P, isHovered: Q } = I === "button" ? D(n) : D(n), Y = ct(null), a = !!(m || b) && !H, L = m && (b || g) && !a, C = j === "ondark", h = mt() < dt.md, M = R === "destructive" && !u, Z = y === "outline", l = y === "borderless", T = _t(y === "fill", l, u, R, C, h), v = g === "icon" && !l, d = q === "large" && !M && !l, tt = g === "accessibility-character" && !w && !m && !b && !v && l, et = { ...F }, V = p(
|
|
42
42
|
t["button-wrapper"],
|
|
43
43
|
{ [t["button-wrapper--fluid"]]: w || x },
|
|
44
44
|
O
|
|
@@ -60,16 +60,16 @@ const _t = (o, r, n, f, s, _) => _ && n ? !s || o ? c("neutral", r ? 500 : 700)
|
|
|
60
60
|
X
|
|
61
61
|
), rt = p(t.button__text, {
|
|
62
62
|
[t["button__text--ellipsis"]]: x,
|
|
63
|
-
[t["button__text--centered
|
|
63
|
+
[t["button__text--centered"]]: w && K === "centered"
|
|
64
64
|
}), nt = p(t.diagonal, {
|
|
65
65
|
[t["diagonal--on-dark"]]: C
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
it(() => {
|
|
68
68
|
gt(a, f, !pt() && !ft());
|
|
69
69
|
}, []);
|
|
70
|
-
const k = (
|
|
70
|
+
const k = (c, at, lt) => c ? e.cloneElement(c, {
|
|
71
71
|
size: at,
|
|
72
|
-
color:
|
|
72
|
+
color: c != null && c.props.color ? c.props.color : T,
|
|
73
73
|
isHovered: !u && Q,
|
|
74
74
|
className: lt
|
|
75
75
|
}) : null, st = () => /* @__PURE__ */ e.createElement("span", { className: rt, ref: Y }, u && l && /* @__PURE__ */ e.createElement("span", { className: nt }, /* @__PURE__ */ e.createElement("span", { className: t.diagonal__line })), /* @__PURE__ */ e.createElement("span", null, a ? f : H)), W = () => /* @__PURE__ */ e.createElement("span", { className: ot }, k(m, B(d, h), a ? void 0 : t["button__left-icon"]), st(), v ? k(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import React, { AriaAttributes, useEffect, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport Icon, { IconSize } from './../Icon';\nimport { HTMLButtonProps, HTMLAnchorProps, AnalyticsId } from '../../constants';\nimport { useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useHover } from '../../hooks/useHover';\nimport { BaseIconElement, useIcons } from '../../hooks/useIcons';\nimport { getColor } from '../../theme/currys/color';\nimport { breakpoints } from '../../theme/grid';\nimport { isTest, isProd } from '../../utils/environment';\nimport ArrowRight from '../Icons/ArrowRight';\n\nimport buttonStyles from './styles.module.scss';\n\nexport type ButtonConcept = 'normal' | 'destructive';\nexport type ButtonVariant = 'fill' | 'outline' | 'borderless';\nexport type ButtonSize = 'medium' | 'large';\nexport type ButtonMode = 'onlight' | 'ondark';\nexport type ButtonTags = 'button' | 'a';\nexport type ButtonArrows = 'icon' | 'accessibility-character';\nexport type ButtonTextPosition = 'left' | 'centered-mobile';\n\nexport interface ButtonProps extends HTMLButtonProps, HTMLAnchorProps, AriaAttributes {\n /** Sets the aria-label of the button, use when the button only includes an icon */\n ariaLabel?: string;\n /** Gives a unique id to the button */\n id?: string;\n /** Sets the content of the button. */\n children: React.ReactNode;\n /** Adds custom classes to the wrapper element. */\n wrapperClassName?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Enables an arrow icon to the right inside the button (Not available in borderless variant) */\n arrow?: ButtonArrows;\n /** Changes the intent of the button. Mostly changes the color profile. */\n concept?: ButtonConcept;\n /** Disables text wrapping and enables ellipsis. */\n ellipsis?: boolean;\n /** Makes the button scale to full width of its parent element. */\n fluid?: boolean;\n /** Changes the underlying element of the button. */\n htmlMarkup?: ButtonTags;\n /** Changes the button colors for different backgrounds. */\n mode?: ButtonMode;\n /** Function that is called when the Button loses focus */\n onBlur?: () => void;\n /** Function that is called when clicked */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;\n /** Changes the button colors for different backgrounds. (Large not available in borderless variant) */\n size?: ButtonSize;\n /** Changes the visual representation of the button. */\n variant?: ButtonVariant;\n /** Specifies the focus order relative to the other buttons or controls on the page */\n tabIndex?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the position of the text in the button - only applies when button is fluid */\n textPosition?: ButtonTextPosition;\n /** Button type. Default: button */\n type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];\n}\n\nconst getIconColor = (\n fill: boolean,\n borderless: boolean,\n disabled: boolean,\n concept: ButtonConcept,\n ondark: boolean,\n mobile: boolean\n): string => {\n if (mobile && disabled) {\n return !ondark || fill ? getColor('neutral', !borderless ? 700 : 500) : getColor('white');\n }\n if (disabled) {\n return !ondark || fill ? getColor('neutral', 500) : `${getColor('white')}b3`;\n }\n if ((fill && !ondark) || (!fill && ondark)) {\n return 'white';\n }\n\n return concept === 'normal' ? getColor('blueberry', 600) : getColor('cherry', 500);\n};\nconst getLargeIconSize = (large: boolean, mobile: boolean): IconSize => {\n if (mobile && large) return IconSize.Small;\n if (large) return IconSize.Medium;\n return IconSize.XSmall;\n};\n\nconst checkOnlyIconAria = (onlyIcon: boolean, ariaLabel: string | undefined, devEnv: boolean): void => {\n if (devEnv && onlyIcon && (ariaLabel === undefined || ariaLabel === '')) {\n throw new Error('Fyll inn ariaLabel prop på Button uten tekst for å opprettholde UU krav');\n }\n};\n\nconst Button = React.forwardRef(function ButtonForwardedRef(\n props: ButtonProps,\n ref: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>\n) {\n const {\n ariaLabel,\n id,\n children,\n wrapperClassName,\n className,\n arrow,\n concept = 'normal',\n disabled = false,\n ellipsis = false,\n fluid = false,\n htmlMarkup = 'button',\n mode = 'onlight',\n onBlur,\n onClick,\n size = 'medium',\n variant = 'fill',\n href,\n tabIndex,\n testId,\n target,\n type = 'button',\n textPosition = 'left',\n ...restProps\n } = props;\n\n const [leftIcon, rightIcon, restChildren] = useIcons(React.Children.toArray(children));\n const { hoverRef, isHovered } =\n htmlMarkup === 'button'\n ? useHover<HTMLButtonElement>(ref as React.RefObject<HTMLButtonElement>)\n : useHover<HTMLAnchorElement>(ref as React.RefObject<HTMLAnchorElement>);\n const buttonContentRef = useRef<HTMLDivElement>(null);\n const onlyIcon = !!(leftIcon || rightIcon) && !restChildren;\n const bothIcons = leftIcon && (rightIcon || arrow) && !onlyIcon;\n const onDark = mode === 'ondark';\n const breakpoint = useBreakpoint();\n const mobile = breakpoint < breakpoints.md;\n const destructive = concept === 'destructive' && !disabled;\n const outlineVariant = variant === 'outline';\n const borderlessVariant = variant === 'borderless';\n const iconColor = getIconColor(variant === 'fill', borderlessVariant, disabled, concept, onDark, mobile);\n const hasArrow = arrow === 'icon' && !borderlessVariant;\n const large = size === 'large' && !destructive && !borderlessVariant;\n const hasUURightArrow = arrow === 'accessibility-character' && !fluid && !leftIcon && !rightIcon && !hasArrow && borderlessVariant;\n const rest = { ...restProps };\n\n const buttonWrapperClasses = classNames(\n buttonStyles['button-wrapper'],\n { [buttonStyles['button-wrapper--fluid']]: fluid || ellipsis },\n wrapperClassName\n );\n const buttonClasses = classNames(\n buttonStyles.button,\n {\n [buttonStyles['button--destructive']]: destructive,\n [buttonStyles['button--normal']]: !large,\n [buttonStyles['button--large']]: large,\n [buttonStyles['button--outline']]: outlineVariant,\n [buttonStyles['button--borderless']]: borderlessVariant,\n [buttonStyles['button--left-icon']]: leftIcon && !onlyIcon,\n [buttonStyles['button--right-icon']]: rightIcon && !onlyIcon,\n [buttonStyles['button--both-icons']]: bothIcons,\n [buttonStyles['button--only-icon']]: onlyIcon,\n [buttonStyles['button--arrow']]: hasArrow,\n [buttonStyles['button--on-dark']]: onDark,\n },\n className\n );\n const buttonTextClasses = classNames(buttonStyles['button__text'], {\n [buttonStyles['button__text--ellipsis']]: ellipsis,\n [buttonStyles['button__text--centered-mobile']]: fluid && textPosition === 'centered-mobile',\n });\n const diagonalClasses = classNames(buttonStyles['diagonal'], {\n [buttonStyles['diagonal--on-dark']]: onDark,\n });\n\n useEffect(() => {\n checkOnlyIconAria(onlyIcon, ariaLabel, !isTest() && !isProd());\n }, []);\n\n const renderIcon = (iconElement: BaseIconElement | null, iconSize: number, iconClassName?: string): BaseIconElement | null => {\n return iconElement\n ? React.cloneElement(iconElement, {\n size: iconSize,\n color: iconElement?.props.color ? iconElement.props.color : iconColor,\n isHovered: !disabled && isHovered,\n className: iconClassName,\n })\n : null;\n };\n\n const renderButtonContent = (): JSX.Element => {\n return (\n <span className={buttonTextClasses} ref={buttonContentRef}>\n {disabled && borderlessVariant && (\n <span className={diagonalClasses}>\n <span className={buttonStyles['diagonal__line']} />\n </span>\n )}\n <span>{onlyIcon ? ariaLabel : restChildren}</span>\n </span>\n );\n };\n\n const renderbuttonContentWrapper = (): JSX.Element => (\n <span className={buttonClasses}>\n {renderIcon(leftIcon, getLargeIconSize(large, mobile), !onlyIcon ? buttonStyles['button__left-icon'] : undefined)}\n {renderButtonContent()}\n {hasArrow\n ? renderIcon(\n <Icon svgIcon={ArrowRight} />,\n getLargeIconSize(large, mobile),\n classNames(buttonStyles['button__arrow'], { [buttonStyles['button__arrow--both-icons']]: bothIcons })\n )\n : renderIcon(rightIcon, getLargeIconSize(large, mobile), buttonStyles['button__right-icon'])}\n {hasUURightArrow && (\n <span style={{ color: iconColor }} className={buttonStyles['button__right-unicode-arrow']} aria-hidden>\n {' →'}\n </span>\n )}\n </span>\n );\n\n return (\n <>\n {htmlMarkup === 'button' && (\n <button\n id={id}\n onBlur={onBlur}\n onClick={onClick}\n disabled={disabled}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Button}\n className={buttonWrapperClasses}\n ref={hoverRef as React.ForwardedRef<HTMLButtonElement>}\n tabIndex={tabIndex}\n type={type}\n {...rest}\n >\n {renderbuttonContentWrapper()}\n </button>\n )}\n {htmlMarkup === 'a' && (\n <a\n id={id}\n onBlur={onBlur}\n onClick={onClick}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Button}\n className={buttonWrapperClasses}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : props.rel}\n ref={hoverRef as React.ForwardedRef<HTMLAnchorElement>}\n tabIndex={tabIndex}\n {...restProps}\n >\n {renderbuttonContentWrapper()}\n </a>\n )}\n </>\n );\n});\n\nexport default Button;\n"],"names":["getIconColor","fill","borderless","disabled","concept","ondark","mobile","getColor","getLargeIconSize","large","IconSize","checkOnlyIconAria","onlyIcon","ariaLabel","devEnv","Button","React","props","ref","id","children","wrapperClassName","className","arrow","ellipsis","fluid","htmlMarkup","mode","onBlur","onClick","size","variant","href","tabIndex","testId","target","type","textPosition","restProps","leftIcon","rightIcon","restChildren","useIcons","hoverRef","isHovered","useHover","buttonContentRef","useRef","bothIcons","onDark","useBreakpoint","breakpoints","destructive","outlineVariant","borderlessVariant","iconColor","hasArrow","hasUURightArrow","rest","buttonWrapperClasses","classNames","buttonStyles","buttonClasses","buttonTextClasses","diagonalClasses","useEffect","isTest","isProd","renderIcon","iconElement","iconSize","iconClassName","renderButtonContent","renderbuttonContentWrapper","Icon","ArrowRight","AnalyticsId","Button$1"],"mappings":";;;;;;;;;;;;AAiEA,MAAMA,KAAe,CACnBC,GACAC,GACAC,GACAC,GACAC,GACAC,MAEIA,KAAUH,IACL,CAACE,KAAUJ,IAAOM,EAAS,WAAYL,IAAmB,MAAN,GAAS,IAAIK,EAAS,OAAO,IAEtFJ,IACK,CAACE,KAAUJ,IAAOM,EAAS,WAAW,GAAG,IAAI,GAAGA,EAAS,OAAO,CAAC,OAErEN,KAAQ,CAACI,KAAY,CAACJ,KAAQI,IAC1B,UAGFD,MAAY,WAAWG,EAAS,aAAa,GAAG,IAAIA,EAAS,UAAU,GAAG,GAE7EC,IAAmB,CAACC,GAAgBH,MACpCA,KAAUG,IAAcC,EAAS,QACjCD,IAAcC,EAAS,SACpBA,EAAS,QAGZC,KAAoB,CAACC,GAAmBC,GAA+BC,MAA0B;AACrG,MAAIA,KAAUF,MAAaC,MAAc,UAAaA,MAAc;AAC5D,UAAA,IAAI,MAAM,yEAAyE;AAE7F,GAEME,KAASC,EAAM,WAAW,SAC9BC,GACAC,GACA;AACM,QAAA;AAAA,IACJ,WAAAL;AAAA,IACA,IAAAM;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAnB,IAAU;AAAA,IACV,UAAAD,IAAW;AAAA,IACX,UAAAqB,IAAW;AAAA,IACX,OAAAC,IAAQ;AAAA,IACR,YAAAC,IAAa;AAAA,IACb,MAAAC,IAAO;AAAA,IACP,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,cAAAC,IAAe;AAAA,IACf,GAAGC;AAAA,EACD,IAAArB,GAEE,CAACsB,GAAUC,GAAWC,CAAY,IAAIC,GAAS1B,EAAM,SAAS,QAAQI,CAAQ,CAAC,GAC/E,EAAE,UAAAuB,GAAU,WAAAC,EAChB,IAAAlB,MAAe,WACXmB,EAA4B3B,CAAyC,IACrE2B,EAA4B3B,CAAyC,GACrE4B,IAAmBC,GAAuB,IAAI,GAC9CnC,IAAW,CAAC,EAAE2B,KAAYC,MAAc,CAACC,GACzCO,IAAYT,MAAaC,KAAajB,MAAU,CAACX,GACjDqC,IAAStB,MAAS,UAElBrB,IADa4C,OACSC,GAAY,IAClCC,IAAchD,MAAY,iBAAiB,CAACD,GAC5CkD,IAAiBtB,MAAY,WAC7BuB,IAAoBvB,MAAY,cAChCwB,IAAYvD,GAAa+B,MAAY,QAAQuB,GAAmBnD,GAAUC,GAAS6C,GAAQ3C,CAAM,GACjGkD,IAAWjC,MAAU,UAAU,CAAC+B,GAChC7C,IAAQqB,MAAS,WAAW,CAACsB,KAAe,CAACE,GAC7CG,KAAkBlC,MAAU,6BAA6B,CAACE,KAAS,CAACc,KAAY,CAACC,KAAa,CAACgB,KAAYF,GAC3GI,KAAO,EAAE,GAAGpB,KAEZqB,IAAuBC;AAAA,IAC3BC,EAAa,gBAAgB;AAAA,IAC7B,EAAE,CAACA,EAAa,uBAAuB,CAAC,GAAGpC,KAASD,EAAS;AAAA,IAC7DH;AAAA,EAAA,GAEIyC,KAAgBF;AAAA,IACpBC,EAAa;AAAA,IACb;AAAA,MACE,CAACA,EAAa,qBAAqB,CAAC,GAAGT;AAAA,MACvC,CAACS,EAAa,gBAAgB,CAAC,GAAG,CAACpD;AAAA,MACnC,CAACoD,EAAa,eAAe,CAAC,GAAGpD;AAAA,MACjC,CAACoD,EAAa,iBAAiB,CAAC,GAAGR;AAAA,MACnC,CAACQ,EAAa,oBAAoB,CAAC,GAAGP;AAAA,MACtC,CAACO,EAAa,mBAAmB,CAAC,GAAGtB,KAAY,CAAC3B;AAAA,MAClD,CAACiD,EAAa,oBAAoB,CAAC,GAAGrB,KAAa,CAAC5B;AAAA,MACpD,CAACiD,EAAa,oBAAoB,CAAC,GAAGb;AAAA,MACtC,CAACa,EAAa,mBAAmB,CAAC,GAAGjD;AAAA,MACrC,CAACiD,EAAa,eAAe,CAAC,GAAGL;AAAA,MACjC,CAACK,EAAa,iBAAiB,CAAC,GAAGZ;AAAA,IACrC;AAAA,IACA3B;AAAA,EAAA,GAEIyC,KAAoBH,EAAWC,EAAa,cAAiB;AAAA,IACjE,CAACA,EAAa,wBAAwB,CAAC,GAAGrC;AAAA,IAC1C,CAACqC,EAAa,+BAA+B,CAAC,GAAGpC,KAASY,MAAiB;AAAA,EAAA,CAC5E,GACK2B,KAAkBJ,EAAWC,EAAa,UAAa;AAAA,IAC3D,CAACA,EAAa,mBAAmB,CAAC,GAAGZ;AAAA,EAAA,CACtC;AAED,EAAAgB,GAAU,MAAM;AACd,IAAAtD,GAAkBC,GAAUC,GAAW,CAACqD,QAAY,CAACC,IAAQ;AAAA,EAC/D,GAAG,CAAE,CAAA;AAEL,QAAMC,IAAa,CAACC,GAAqCC,IAAkBC,OAClEF,IACHrD,EAAM,aAAaqD,GAAa;AAAA,IAC9B,MAAMC;AAAA,IACN,OAAOD,KAAA,QAAAA,EAAa,MAAM,QAAQA,EAAY,MAAM,QAAQd;AAAA,IAC5D,WAAW,CAACpD,KAAYyC;AAAA,IACxB,WAAW2B;AAAA,EACZ,CAAA,IACD,MAGAC,KAAsB,MAExBxD,gBAAAA,EAAA,cAAC,QAAK,EAAA,WAAW+C,IAAmB,KAAKjB,KACtC3C,KAAYmD,KACVtC,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWgD,GAAA,mCACd,QAAK,EAAA,WAAWH,EAAa,gBAAmB,CACnD,GAEF7C,gBAAAA,EAAA,cAAC,QAAM,MAAAJ,IAAWC,IAAY4B,CAAa,CAC7C,GAIEgC,IAA6B,MAChCzD,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAW8C,GACd,GAAAM,EAAW7B,GAAU/B,EAAiBC,GAAOH,CAAM,GAAIM,IAA+C,SAApCiD,EAAa,mBAAmB,CAAa,GAC/GW,MACAhB,IACGY;AAAA,IACEpD,gBAAAA,EAAA,cAAC0D,IAAK,EAAA,SAASC,GAAY,CAAA;AAAA,IAC3BnE,EAAiBC,GAAOH,CAAM;AAAA,IAC9BsD,EAAWC,EAAa,eAAkB,EAAE,CAACA,EAAa,2BAA2B,CAAC,GAAGb,GAAW;AAAA,EACtG,IACAoB,EAAW5B,GAAWhC,EAAiBC,GAAOH,CAAM,GAAGuD,EAAa,oBAAoB,CAAC,GAC5FJ,MACCzC,gBAAAA,EAAA,cAAC,UAAK,OAAO,EAAE,OAAOuC,EAAA,GAAa,WAAWM,EAAa,6BAA6B,GAAG,eAAW,MACnG,KACH,CAEJ;AAIA,SAAA7C,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MACGU,MAAe,YACdV,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAAG;AAAA,MACA,QAAAS;AAAA,MACA,SAAAC;AAAA,MACA,UAAA1B;AAAA,MACA,eAAa+B;AAAA,MACb,oBAAkB0C,EAAY;AAAA,MAC9B,WAAWjB;AAAA,MACX,KAAKhB;AAAA,MACL,UAAAV;AAAA,MACA,MAAAG;AAAA,MACC,GAAGsB;AAAA,IAAA;AAAA,IAEHe,EAA2B;AAAA,EAAA,GAG/B/C,MAAe,OACdV,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAAG;AAAA,MACA,QAAAS;AAAA,MACA,SAAAC;AAAA,MACA,eAAaK;AAAA,MACb,oBAAkB0C,EAAY;AAAA,MAC9B,WAAWjB;AAAA,MACX,MAAA3B;AAAA,MACA,QAAAG;AAAA,MACA,KAAKA,MAAW,WAAW,wBAAwBlB,EAAM;AAAA,MACzD,KAAK0B;AAAA,MACL,UAAAV;AAAA,MACC,GAAGK;AAAA,IAAA;AAAA,IAEHmC,EAA2B;AAAA,EAAA,CAGlC;AAEJ,CAAC,GAEDI,KAAe9D;"}
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import React, { AriaAttributes, useEffect, useRef } from 'react';\n\nimport classNames from 'classnames';\n\nimport Icon, { IconSize } from './../Icon';\nimport { HTMLButtonProps, HTMLAnchorProps, AnalyticsId } from '../../constants';\nimport { useBreakpoint } from '../../hooks/useBreakpoint';\nimport { useHover } from '../../hooks/useHover';\nimport { BaseIconElement, useIcons } from '../../hooks/useIcons';\nimport { getColor } from '../../theme/currys/color';\nimport { breakpoints } from '../../theme/grid';\nimport { isTest, isProd } from '../../utils/environment';\nimport ArrowRight from '../Icons/ArrowRight';\n\nimport buttonStyles from './styles.module.scss';\n\nexport type ButtonConcept = 'normal' | 'destructive';\nexport type ButtonVariant = 'fill' | 'outline' | 'borderless';\nexport type ButtonSize = 'medium' | 'large';\nexport type ButtonMode = 'onlight' | 'ondark';\nexport type ButtonTags = 'button' | 'a';\nexport type ButtonArrows = 'icon' | 'accessibility-character';\nexport type ButtonTextPosition = 'left' | 'centered';\n\nexport interface ButtonProps extends HTMLButtonProps, HTMLAnchorProps, AriaAttributes {\n /** Sets the aria-label of the button, use when the button only includes an icon */\n ariaLabel?: string;\n /** Gives a unique id to the button */\n id?: string;\n /** Sets the content of the button. */\n children: React.ReactNode;\n /** Adds custom classes to the wrapper element. */\n wrapperClassName?: string;\n /** Adds custom classes to the element. */\n className?: string;\n /** Enables an arrow icon to the right inside the button (Not available in borderless variant) */\n arrow?: ButtonArrows;\n /** Changes the intent of the button. Mostly changes the color profile. */\n concept?: ButtonConcept;\n /** Disables text wrapping and enables ellipsis. */\n ellipsis?: boolean;\n /** Makes the button scale to full width of its parent element. */\n fluid?: boolean;\n /** Changes the underlying element of the button. */\n htmlMarkup?: ButtonTags;\n /** Changes the button colors for different backgrounds. */\n mode?: ButtonMode;\n /** Function that is called when the Button loses focus */\n onBlur?: () => void;\n /** Function that is called when clicked */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent> | React.FormEvent<{}> | React.KeyboardEvent<HTMLUListElement> | null) => void;\n /** Changes the button colors for different backgrounds. (Large not available in borderless variant) */\n size?: ButtonSize;\n /** Changes the visual representation of the button. */\n variant?: ButtonVariant;\n /** Specifies the focus order relative to the other buttons or controls on the page */\n tabIndex?: number;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets the position of the text in the button - only applies when button is fluid */\n textPosition?: ButtonTextPosition;\n /** Button type. Default: button */\n type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];\n}\n\nconst getIconColor = (\n fill: boolean,\n borderless: boolean,\n disabled: boolean,\n concept: ButtonConcept,\n ondark: boolean,\n mobile: boolean\n): string => {\n if (mobile && disabled) {\n return !ondark || fill ? getColor('neutral', !borderless ? 700 : 500) : getColor('white');\n }\n if (disabled) {\n return !ondark || fill ? getColor('neutral', 500) : `${getColor('white')}b3`;\n }\n if ((fill && !ondark) || (!fill && ondark)) {\n return 'white';\n }\n\n return concept === 'normal' ? getColor('blueberry', 600) : getColor('cherry', 500);\n};\nconst getLargeIconSize = (large: boolean, mobile: boolean): IconSize => {\n if (mobile && large) return IconSize.Small;\n if (large) return IconSize.Medium;\n return IconSize.XSmall;\n};\n\nconst checkOnlyIconAria = (onlyIcon: boolean, ariaLabel: string | undefined, devEnv: boolean): void => {\n if (devEnv && onlyIcon && (ariaLabel === undefined || ariaLabel === '')) {\n throw new Error('Fyll inn ariaLabel prop på Button uten tekst for å opprettholde UU krav');\n }\n};\n\nconst Button = React.forwardRef(function ButtonForwardedRef(\n props: ButtonProps,\n ref: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>\n) {\n const {\n ariaLabel,\n id,\n children,\n wrapperClassName,\n className,\n arrow,\n concept = 'normal',\n disabled = false,\n ellipsis = false,\n fluid = false,\n htmlMarkup = 'button',\n mode = 'onlight',\n onBlur,\n onClick,\n size = 'medium',\n variant = 'fill',\n href,\n tabIndex,\n testId,\n target,\n type = 'button',\n textPosition = 'left',\n ...restProps\n } = props;\n\n const [leftIcon, rightIcon, restChildren] = useIcons(React.Children.toArray(children));\n const { hoverRef, isHovered } =\n htmlMarkup === 'button'\n ? useHover<HTMLButtonElement>(ref as React.RefObject<HTMLButtonElement>)\n : useHover<HTMLAnchorElement>(ref as React.RefObject<HTMLAnchorElement>);\n const buttonContentRef = useRef<HTMLDivElement>(null);\n const onlyIcon = !!(leftIcon || rightIcon) && !restChildren;\n const bothIcons = leftIcon && (rightIcon || arrow) && !onlyIcon;\n const onDark = mode === 'ondark';\n const breakpoint = useBreakpoint();\n const mobile = breakpoint < breakpoints.md;\n const destructive = concept === 'destructive' && !disabled;\n const outlineVariant = variant === 'outline';\n const borderlessVariant = variant === 'borderless';\n const iconColor = getIconColor(variant === 'fill', borderlessVariant, disabled, concept, onDark, mobile);\n const hasArrow = arrow === 'icon' && !borderlessVariant;\n const large = size === 'large' && !destructive && !borderlessVariant;\n const hasUURightArrow = arrow === 'accessibility-character' && !fluid && !leftIcon && !rightIcon && !hasArrow && borderlessVariant;\n const rest = { ...restProps };\n\n const buttonWrapperClasses = classNames(\n buttonStyles['button-wrapper'],\n { [buttonStyles['button-wrapper--fluid']]: fluid || ellipsis },\n wrapperClassName\n );\n const buttonClasses = classNames(\n buttonStyles.button,\n {\n [buttonStyles['button--destructive']]: destructive,\n [buttonStyles['button--normal']]: !large,\n [buttonStyles['button--large']]: large,\n [buttonStyles['button--outline']]: outlineVariant,\n [buttonStyles['button--borderless']]: borderlessVariant,\n [buttonStyles['button--left-icon']]: leftIcon && !onlyIcon,\n [buttonStyles['button--right-icon']]: rightIcon && !onlyIcon,\n [buttonStyles['button--both-icons']]: bothIcons,\n [buttonStyles['button--only-icon']]: onlyIcon,\n [buttonStyles['button--arrow']]: hasArrow,\n [buttonStyles['button--on-dark']]: onDark,\n },\n className\n );\n const buttonTextClasses = classNames(buttonStyles['button__text'], {\n [buttonStyles['button__text--ellipsis']]: ellipsis,\n [buttonStyles['button__text--centered']]: fluid && textPosition === 'centered',\n });\n const diagonalClasses = classNames(buttonStyles['diagonal'], {\n [buttonStyles['diagonal--on-dark']]: onDark,\n });\n\n useEffect(() => {\n checkOnlyIconAria(onlyIcon, ariaLabel, !isTest() && !isProd());\n }, []);\n\n const renderIcon = (iconElement: BaseIconElement | null, iconSize: number, iconClassName?: string): BaseIconElement | null => {\n return iconElement\n ? React.cloneElement(iconElement, {\n size: iconSize,\n color: iconElement?.props.color ? iconElement.props.color : iconColor,\n isHovered: !disabled && isHovered,\n className: iconClassName,\n })\n : null;\n };\n\n const renderButtonContent = (): JSX.Element => {\n return (\n <span className={buttonTextClasses} ref={buttonContentRef}>\n {disabled && borderlessVariant && (\n <span className={diagonalClasses}>\n <span className={buttonStyles['diagonal__line']} />\n </span>\n )}\n <span>{onlyIcon ? ariaLabel : restChildren}</span>\n </span>\n );\n };\n\n const renderbuttonContentWrapper = (): JSX.Element => (\n <span className={buttonClasses}>\n {renderIcon(leftIcon, getLargeIconSize(large, mobile), !onlyIcon ? buttonStyles['button__left-icon'] : undefined)}\n {renderButtonContent()}\n {hasArrow\n ? renderIcon(\n <Icon svgIcon={ArrowRight} />,\n getLargeIconSize(large, mobile),\n classNames(buttonStyles['button__arrow'], { [buttonStyles['button__arrow--both-icons']]: bothIcons })\n )\n : renderIcon(rightIcon, getLargeIconSize(large, mobile), buttonStyles['button__right-icon'])}\n {hasUURightArrow && (\n <span style={{ color: iconColor }} className={buttonStyles['button__right-unicode-arrow']} aria-hidden>\n {' →'}\n </span>\n )}\n </span>\n );\n\n return (\n <>\n {htmlMarkup === 'button' && (\n <button\n id={id}\n onBlur={onBlur}\n onClick={onClick}\n disabled={disabled}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Button}\n className={buttonWrapperClasses}\n ref={hoverRef as React.ForwardedRef<HTMLButtonElement>}\n tabIndex={tabIndex}\n type={type}\n {...rest}\n >\n {renderbuttonContentWrapper()}\n </button>\n )}\n {htmlMarkup === 'a' && (\n <a\n id={id}\n onBlur={onBlur}\n onClick={onClick}\n data-testid={testId}\n data-analyticsid={AnalyticsId.Button}\n className={buttonWrapperClasses}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : props.rel}\n ref={hoverRef as React.ForwardedRef<HTMLAnchorElement>}\n tabIndex={tabIndex}\n {...restProps}\n >\n {renderbuttonContentWrapper()}\n </a>\n )}\n </>\n );\n});\n\nexport default Button;\n"],"names":["getIconColor","fill","borderless","disabled","concept","ondark","mobile","getColor","getLargeIconSize","large","IconSize","checkOnlyIconAria","onlyIcon","ariaLabel","devEnv","Button","React","props","ref","id","children","wrapperClassName","className","arrow","ellipsis","fluid","htmlMarkup","mode","onBlur","onClick","size","variant","href","tabIndex","testId","target","type","textPosition","restProps","leftIcon","rightIcon","restChildren","useIcons","hoverRef","isHovered","useHover","buttonContentRef","useRef","bothIcons","onDark","useBreakpoint","breakpoints","destructive","outlineVariant","borderlessVariant","iconColor","hasArrow","hasUURightArrow","rest","buttonWrapperClasses","classNames","buttonStyles","buttonClasses","buttonTextClasses","diagonalClasses","useEffect","isTest","isProd","renderIcon","iconElement","iconSize","iconClassName","renderButtonContent","renderbuttonContentWrapper","Icon","ArrowRight","AnalyticsId","Button$1"],"mappings":"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"}
|
|
@@ -331,10 +331,8 @@ $with-icons: // icon-class, size-class, padding-left, padding-right, padding-lef
|
|
|
331
331
|
text-overflow: ellipsis;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
&--centered
|
|
335
|
-
|
|
336
|
-
width: 100%;
|
|
337
|
-
}
|
|
334
|
+
&--centered {
|
|
335
|
+
width: 100%;
|
|
338
336
|
}
|
|
339
337
|
}
|
|
340
338
|
|
|
@@ -8,7 +8,7 @@ export type Styles = {
|
|
|
8
8
|
'button__right-icon': string;
|
|
9
9
|
'button__right-unicode-arrow': string;
|
|
10
10
|
button__text: string;
|
|
11
|
-
'button__text--centered
|
|
11
|
+
'button__text--centered': string;
|
|
12
12
|
'button__text--ellipsis': string;
|
|
13
13
|
'button--arrow': string;
|
|
14
14
|
'button--arrow--both-icons': string;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type IllustrationColor = 'neutral' | 'cherry' | 'blueberry';
|
|
3
|
+
export declare enum ViewBoxSize {
|
|
4
|
+
Medium = "0 0 512 512",
|
|
5
|
+
Small = "0 0 200 200"
|
|
6
|
+
}
|
|
3
7
|
export interface BaseSvgIllustrationProps {
|
|
4
8
|
color: IllustrationColor;
|
|
9
|
+
svgProperties: React.SVGProps<SVGSVGElement>;
|
|
10
|
+
title: React.ReactNode;
|
|
5
11
|
}
|
|
6
12
|
export interface SvgIllustrationProps extends BaseSvgIllustrationProps {
|
|
7
13
|
size: number;
|
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import a from "react";
|
|
2
|
-
import { getIllustration as
|
|
3
|
-
import { AnalyticsId as
|
|
4
|
-
import { useUuid as
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { getIllustration as p } from "./utils.js";
|
|
3
|
+
import { AnalyticsId as I } from "../../constants.js";
|
|
4
|
+
import { useUuid as g } from "../../hooks/useUuid.js";
|
|
5
|
+
var h = /* @__PURE__ */ ((e) => (e.Medium = "0 0 512 512", e.Small = "0 0 200 200", e))(h || {});
|
|
6
|
+
const o = a.forwardRef((e, s) => {
|
|
7
|
+
const { illustration: n, ariaLabel: l, className: d = "", size: t = 512, color: i = "neutral", testId: m, ...u } = e, r = g(), c = p({
|
|
7
8
|
size: t,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
9
|
+
medium: "0 0 512 512",
|
|
10
|
+
small: "0 0 200 200"
|
|
11
|
+
/* Small */
|
|
12
|
+
}), f = {
|
|
13
|
+
"data-testid": m,
|
|
14
|
+
"data-analyticsid": I.Illustration,
|
|
15
|
+
ref: s,
|
|
16
|
+
className: d,
|
|
17
|
+
role: l ? "img" : "presentation",
|
|
18
|
+
"aria-labelledby": l ? r : void 0,
|
|
19
|
+
focusable: !1,
|
|
20
|
+
"aria-hidden": l ? void 0 : !0,
|
|
21
|
+
viewBox: c,
|
|
22
|
+
style: { minWidth: t, minHeight: t },
|
|
23
|
+
width: t,
|
|
24
|
+
height: t,
|
|
25
|
+
fill: i,
|
|
26
|
+
...u
|
|
27
|
+
};
|
|
28
|
+
return a.createElement(n, {
|
|
29
|
+
size: t,
|
|
30
|
+
color: i,
|
|
31
|
+
svgProperties: f,
|
|
32
|
+
title: l && /* @__PURE__ */ a.createElement("title", { id: r }, l)
|
|
33
|
+
});
|
|
31
34
|
});
|
|
32
35
|
o.displayName = "Illustration";
|
|
33
|
-
const
|
|
36
|
+
const N = o;
|
|
34
37
|
export {
|
|
35
38
|
o as Illustration,
|
|
36
|
-
|
|
39
|
+
h as ViewBoxSize,
|
|
40
|
+
N as default
|
|
37
41
|
};
|
|
38
42
|
//# sourceMappingURL=Illustration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Illustration.js","sources":["../../../src/components/Illustration/Illustration.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIllustration } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\n\nexport type IllustrationColor = 'neutral' | 'cherry' | 'blueberry';\n\nexport interface BaseSvgIllustrationProps {\n color: IllustrationColor;\n}\nexport interface SvgIllustrationProps extends BaseSvgIllustrationProps {\n size: number;\n}\n\nexport type SvgIllustration = React.ComponentType<SvgIllustrationProps>;\n\nexport interface BaseIllustrationProps {\n /* aria-label for the <svg> element. Used as <title> tag. */\n ariaLabel?: string;\n /* Changes the size of the illustration. */\n size?: number;\n /* Changes the color of the illustration. */\n color?: IllustrationColor;\n /* Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport interface IllustrationProps extends BaseIllustrationProps {\n /* Sets which illustration should be displayed. */\n illustration: SvgIllustration;\n}\n\nexport const Illustration = React.forwardRef<SVGSVGElement, IllustrationProps>((props, ref) => {\n const { illustration, ariaLabel, className = '', size = 512, color = 'neutral', testId, ...other } = props;\n\n const
|
|
1
|
+
{"version":3,"file":"Illustration.js","sources":["../../../src/components/Illustration/Illustration.tsx"],"sourcesContent":["import React from 'react';\n\nimport { getIllustration } from './utils';\nimport { AnalyticsId } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\n\nexport type IllustrationColor = 'neutral' | 'cherry' | 'blueberry';\n\nexport enum ViewBoxSize {\n Medium = '0 0 512 512',\n Small = '0 0 200 200',\n}\n\nexport interface BaseSvgIllustrationProps {\n color: IllustrationColor;\n svgProperties: React.SVGProps<SVGSVGElement>;\n title: React.ReactNode;\n}\nexport interface SvgIllustrationProps extends BaseSvgIllustrationProps {\n size: number;\n}\n\nexport type SvgIllustration = React.ComponentType<SvgIllustrationProps>;\n\nexport interface BaseIllustrationProps {\n /* aria-label for the <svg> element. Used as <title> tag. */\n ariaLabel?: string;\n /* Changes the size of the illustration. */\n size?: number;\n /* Changes the color of the illustration. */\n color?: IllustrationColor;\n /* Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\nexport interface IllustrationProps extends BaseIllustrationProps {\n /* Sets which illustration should be displayed. */\n illustration: SvgIllustration;\n}\n\nexport const Illustration = React.forwardRef<SVGSVGElement, IllustrationProps>((props, ref) => {\n const { illustration, ariaLabel, className = '', size = 512, color = 'neutral', testId, ...other } = props;\n\n const titleId = useUuid();\n const viewBox = getIllustration({ size, medium: ViewBoxSize.Medium, small: ViewBoxSize.Small });\n\n const svgProperties = {\n 'data-testid': testId,\n 'data-analyticsid': AnalyticsId.Illustration,\n ref,\n className,\n role: ariaLabel ? 'img' : 'presentation',\n 'aria-labelledby': ariaLabel ? titleId : undefined,\n focusable: false,\n 'aria-hidden': ariaLabel ? undefined : true,\n viewBox,\n style: { minWidth: size, minHeight: size },\n width: size,\n height: size,\n fill: color,\n ...other,\n };\n\n const svgElement = React.createElement(illustration, {\n size,\n color,\n svgProperties: svgProperties,\n title: ariaLabel && <title id={titleId}>{ariaLabel}</title>,\n });\n\n return svgElement;\n});\n\nIllustration.displayName = 'Illustration';\n\nexport default Illustration;\n"],"names":["ViewBoxSize","Illustration","React","props","ref","illustration","ariaLabel","className","size","color","testId","other","titleId","useUuid","viewBox","getIllustration","svgProperties","AnalyticsId","Illustration$1"],"mappings":";;;;AAQY,IAAAA,sBAAAA,OACVA,EAAA,SAAS,eACTA,EAAA,QAAQ,eAFEA,IAAAA,KAAA,CAAA,CAAA;AAkCL,MAAMC,IAAeC,EAAM,WAA6C,CAACC,GAAOC,MAAQ;AAC7F,QAAM,EAAE,cAAAC,GAAc,WAAAC,GAAW,WAAAC,IAAY,IAAI,MAAAC,IAAO,KAAK,OAAAC,IAAQ,WAAW,QAAAC,GAAQ,GAAGC,EAAA,IAAUR,GAE/FS,IAAUC,KACVC,IAAUC,EAAgB;AAAA,IAAE,MAAAP;AAAA,IAAM,QAAQ;AAAA,IAAoB,OAAO;AAAA;AAAA,GAAmB,GAExFQ,IAAgB;AAAA,IACpB,eAAeN;AAAA,IACf,oBAAoBO,EAAY;AAAA,IAChC,KAAAb;AAAA,IACA,WAAAG;AAAA,IACA,MAAMD,IAAY,QAAQ;AAAA,IAC1B,mBAAmBA,IAAYM,IAAU;AAAA,IACzC,WAAW;AAAA,IACX,eAAeN,IAAY,SAAY;AAAA,IACvC,SAAAQ;AAAA,IACA,OAAO,EAAE,UAAUN,GAAM,WAAWA,EAAK;AAAA,IACzC,OAAOA;AAAA,IACP,QAAQA;AAAA,IACR,MAAMC;AAAA,IACN,GAAGE;AAAA,EAAA;AAUE,SAPYT,EAAM,cAAcG,GAAc;AAAA,IACnD,MAAAG;AAAA,IACA,OAAAC;AAAA,IACA,eAAAO;AAAA,IACA,OAAOV,KAAaJ,gBAAAA,EAAA,cAAC,SAAM,EAAA,IAAIU,KAAUN,CAAU;AAAA,EAAA,CACpD;AAGH,CAAC;AAEDL,EAAa,cAAc;AAE3B,MAAAiB,IAAejB;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Illustration as
|
|
1
|
+
import t from "./Illustration.js";
|
|
2
|
+
import { Illustration as i, ViewBoxSize as l } from "./Illustration.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
i as Illustration,
|
|
5
|
+
l as ViewBoxSize,
|
|
6
|
+
t as default
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getIllustration as
|
|
5
|
-
const
|
|
1
|
+
import e from "react";
|
|
2
|
+
import l from "./DoctorMedium.js";
|
|
3
|
+
import c from "./DoctorSmall.js";
|
|
4
|
+
import { getIllustration as i } from "../Illustration/utils.js";
|
|
5
|
+
const s = ({ size: m = 512, color: t, ...o }) => {
|
|
6
|
+
const r = /* @__PURE__ */ e.createElement(l, { color: t, ...o }), a = /* @__PURE__ */ e.createElement(c, { color: t, ...o });
|
|
7
|
+
return i({ size: m, medium: r, small: a });
|
|
8
|
+
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
s as default
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=Doctor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Doctor.js","sources":["../../../src/components/Illustrations/Doctor.tsx"],"sourcesContent":["import React from 'react';\n\nimport DoctorMedium from './DoctorMedium';\nimport DoctorSmall from './DoctorSmall';\nimport { SvgIllustrationProps } from '../Illustration';\nimport { getIllustration } from '../Illustration/utils';\n\nexport interface Palette {\n hair: string;\n shirt: string;\n}\n\nconst Doctor: React.FC<SvgIllustrationProps> = ({ size = 512, color }) => {\n const medium = <DoctorMedium color={color} />;\n const small = <DoctorSmall color={color} />;\n\n return getIllustration({ size, medium, small });\n};\n\nexport default Doctor;\n"],"names":["Doctor","size","color","
|
|
1
|
+
{"version":3,"file":"Doctor.js","sources":["../../../src/components/Illustrations/Doctor.tsx"],"sourcesContent":["import React from 'react';\n\nimport DoctorMedium from './DoctorMedium';\nimport DoctorSmall from './DoctorSmall';\nimport { SvgIllustrationProps } from '../Illustration';\nimport { getIllustration } from '../Illustration/utils';\n\nexport interface Palette {\n hair: string;\n shirt: string;\n}\n\nconst Doctor: React.FC<SvgIllustrationProps> = ({ size = 512, color, ...rest }) => {\n const medium = <DoctorMedium color={color} {...rest} />;\n const small = <DoctorSmall color={color} {...rest} />;\n\n return getIllustration({ size, medium, small });\n};\n\nexport default Doctor;\n"],"names":["Doctor","size","color","rest","medium","React","DoctorMedium","small","DoctorSmall","getIllustration"],"mappings":";;;;AAYM,MAAAA,IAAyC,CAAC,EAAE,MAAAC,IAAO,KAAK,OAAAC,GAAO,GAAGC,QAAW;AACjF,QAAMC,IAASC,gBAAAA,EAAA,cAACC,GAAa,EAAA,OAAAJ,GAAe,GAAGC,EAAM,CAAA,GAC/CI,IAAQF,gBAAAA,EAAA,cAACG,GAAY,EAAA,OAAAN,GAAe,GAAGC,EAAM,CAAA;AAEnD,SAAOM,EAAgB,EAAE,MAAAR,GAAM,QAAAG,GAAQ,OAAAG,EAAO,CAAA;AAChD;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c from "react";
|
|
2
|
-
const
|
|
2
|
+
const r = ({ color: l, svgProperties: e, title: h }) => {
|
|
3
3
|
const a = (() => {
|
|
4
4
|
switch (l) {
|
|
5
5
|
case "blueberry":
|
|
@@ -19,7 +19,7 @@ const h = ({ color: l }) => {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
})();
|
|
22
|
-
return /* @__PURE__ */ c.createElement(
|
|
22
|
+
return /* @__PURE__ */ c.createElement("svg", { ...e }, h, /* @__PURE__ */ c.createElement(
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
25
25
|
d: "M274.049 181.694s42.516 16.999 66.357 39.94l31.636 140.053 2.482 10.263-2.482 12.169s-13.215 41.738-27.705 54.631c0 0 1.503 3.407-11.162 0l10.867-8.842s-3.341-20.62-11.793-24.35c-8.452-3.716-10.867-4.642-10.867-4.642l-3.73 5.997-8.278-1.369 6.735-19.56-52.108.429 5.527-45.884 2.214-54.577 2.307-71.079v-33.179Zm-63.539-3.073s-3.622 17.321-4.226 31.824c-.603 14.503 0 41.684 0 41.684l5.233 52.766 16.917 80.068-25.383 1.087 38.263 26.578S224.597 427.935 225 458.94c0 0-27.785-5.165-65.243-33.5-37.459-28.322-47.521-51.478-47.521-51.478l3.824-62.976 4.427-37.109 8.05-34.641 5.031-11.484 52.766-36.372 24.163-12.772.013.013Z",
|
|
@@ -59,6 +59,6 @@ const h = ({ color: l }) => {
|
|
|
59
59
|
));
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
r as default
|
|
63
63
|
};
|
|
64
64
|
//# sourceMappingURL=DoctorMedium.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoctorMedium.js","sources":["../../../src/components/Illustrations/DoctorMedium.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Palette } from './Doctor';\nimport { BaseSvgIllustrationProps } from '../Illustration';\n\nconst DoctorMedium: React.FC<BaseSvgIllustrationProps> = ({ color }) => {\n const palette = ((): Palette => {\n switch (color) {\n case 'blueberry':\n return {\n hair: '#00687F',\n shirt: '#00AEC7',\n };\n case 'cherry':\n return {\n hair: '#BA2025',\n shirt: '#F1593C',\n };\n default:\n return {\n hair: '#989693',\n shirt: '#D6D4D3',\n };\n }\n })();\n\n return (\n <>\n <path\n d=\"M274.049 181.694s42.516 16.999 66.357 39.94l31.636 140.053 2.482 10.263-2.482 12.169s-13.215 41.738-27.705 54.631c0 0 1.503 3.407-11.162 0l10.867-8.842s-3.341-20.62-11.793-24.35c-8.452-3.716-10.867-4.642-10.867-4.642l-3.73 5.997-8.278-1.369 6.735-19.56-52.108.429 5.527-45.884 2.214-54.577 2.307-71.079v-33.179Zm-63.539-3.073s-3.622 17.321-4.226 31.824c-.603 14.503 0 41.684 0 41.684l5.233 52.766 16.917 80.068-25.383 1.087 38.263 26.578S224.597 427.935 225 458.94c0 0-27.785-5.165-65.243-33.5-37.459-28.322-47.521-51.478-47.521-51.478l3.824-62.976 4.427-37.109 8.05-34.641 5.031-11.484 52.766-36.372 24.163-12.772.013.013Z\"\n fill=\"#fff\"\n data-testid=\"doctor-medium\"\n />\n <path\n d=\"M209.061 189.637s12.518 10.156 23.13 12.316c10.612 2.16 16.676-.201 27.57-3.542 10.894-3.34 14.289-8.787 14.289-8.787s-2.241 154.863-7.902 178.852l-2.161 17.924h-33.943l-11.148-46.662-7.849-39.726-2.777-27.959-2.24-46.917 1.73-29.073 1.315-6.426h-.014Z\"\n fill={palette.shirt}\n />\n <path\n d=\"m204.312 132.269 9.713 8.291 2.361 14.758-9.096-5.729-2.978-17.32Zm-7.487-30.161 6.735 14.329 3.865-1.248 5.352 3.368 7.473 10.223 5.112-.497 4.36-6.855 7.607-19.32s10.961 6.735 21.064 9.714c10.089 2.991 24.176 2.616 24.176 2.616s12.343-2.496 17.441-6.977c5.098-4.481 2.495-15.455 2.495-15.455l-9.713-19.816-14.087-14.704-10.223-5.233h-13.953l-18.582 6.856-13.188 6.6-8.599 1.249-5.112.872-8.225 6.735-4.99 10.089-1.355 7.848 2.361 9.593-.014.013Z\"\n fill={palette.hair}\n />\n <path\n d=\"M255.589 149.589c.094 0 .174 0 .268-.014l8.332-1.113a2.008 2.008 0 0 0 1.73-2.214l-1.422-12.906a2.02 2.02 0 0 0-2.226-1.785 2.02 2.02 0 0 0-1.785 2.228l1.207 10.947-6.385.859a2.014 2.014 0 0 0 .254 4.011l.027-.013Z\"\n fill=\"#000\"\n />\n <path\n d=\"M436.024 384.118h-62.278c.416-1.462.818-2.884 1.18-4.212a32.249 32.249 0 0 0 .322-15.59l-32.654-143.219v-.026a2.604 2.604 0 0 0-.229-.564c-.013-.027-.04-.054-.054-.094a2.086 2.086 0 0 0-.402-.443s-.013-.026-.027-.026c-17.937-13.9-33.446-23.707-45.065-30.281a4.96 4.96 0 0 0-1.18-.671 243.688 243.688 0 0 0-4.414-2.428 1.688 1.688 0 0 0-.484-.255c-9.351-5.004-15.146-7.379-16.206-7.808a1.883 1.883 0 0 0-.953-.215c-.604 0-1.167.295-1.543.778-.04.054-.08.094-.12.148-.014.027-.027.067-.054.094-.054.08-.094.174-.134.255-.014.04-.014.08-.027.12a1.746 1.746 0 0 0-.067.255c0 .067-.001.148-.014.215 0 .054-.013.107-.013.161v.282c-1.865-1.315-4.092-3.985-3.112-8.962 17.91-9.808 20.553-48.46 20.915-56.563 4.602-1.476 8.815-3.757 12.558-6.883 4.199-3.501 4.669-10.236 1.328-19.44-6.346-17.535-24.377-38.72-37.284-38.746h-.107c-18.166 0-28.926 5.97-36.774 10.317-5.273 2.925-9.432 5.232-13.886 4.776-4.387-.443-8.761 1.154-12.638 4.656-7.017 6.332-10.814 16.998-10.814 23.814 0 5.58 2.604 10.545 4.898 14.918 2.053 3.931 3.997 7.648 3.823 11.176a13.44 13.44 0 0 0-.201 3.327c.107 1.879.59 4.039 1.503 6.306a1.934 1.934 0 0 0-.094.684c.148 3.046 1.1 18.474 6.077 22.647 2.737 2.307 5.071 3.434 6.628 4.186.362.174.778.375 1.02.51.08.161.188.295.308.415.51 4.213.778 8.976.496 14.047-.214 3.837-.791 5.192-3.354 6.507 0-.067.014-.134.014-.201v-.188c0-.067 0-.134-.027-.201a.758.758 0 0 0-.027-.175.974.974 0 0 0-.067-.214c-.013-.04-.013-.081-.04-.121 0-.013-.014-.027-.027-.04a1.409 1.409 0 0 0-.108-.201c-.026-.054-.053-.094-.08-.135-.04-.053-.094-.107-.134-.161-.04-.04-.081-.094-.121-.134a1.25 1.25 0 0 1-.147-.121l-.162-.12-.16-.081c-.067-.04-.135-.067-.202-.094-.013 0-.026-.013-.04-.013-.04-.014-.08-.014-.12-.027a1.46 1.46 0 0 0-.229-.054c-.054 0-.107 0-.16-.013h-.229c-.054 0-.107 0-.161.013a.602.602 0 0 0-.214.041c-.067.013-.121.04-.175.053-.053.014-.093.027-.147.041-.148.067-8.372 3.595-22.62 12.021a1.945 1.945 0 0 0-.456.268c-.859.51-1.731 1.033-2.63 1.57h-.027c-.214.093-.59.295-1.086.67-12.545 7.648-28.953 18.636-48.191 33.796-3.287 1.865-19.856 17.83-25.692 150.584-.014.402.08.805.294 1.154.081.134 1.959 3.099 5.582 7.888H76.012A2.01 2.01 0 0 0 74 386.104a2.01 2.01 0 0 0 2.012 2.012h41.926c.161 0 .309-.027.456-.053 15.335 19.185 50.915 56.616 105.935 73.574h.067c.175.041.349.081.537.081h.053c.188 0 .35-.04.524-.094.04 0 .08-.027.107-.04.174-.067.349-.148.496-.255l.027-.027c.148-.107.269-.242.376-.376.027-.027.054-.053.067-.094.107-.147.188-.322.255-.509 0-.014.013-.027.027-.041 0-.04.013-.08.027-.121l.039-.201c0-.067.014-.147.014-.214v-.108a114.54 114.54 0 0 1-.027-3.689c5.179 1.274 9.808 1.838 13.953 1.838 12.866 0 21.05-5.233 26.766-9.781 3.099 2.04 11.511 6.507 25.88 6.507 2.294 0 4.749-.12 7.338-.375 11.686-1.154 22.607-7.004 30.656-12.625.148.08.309.148.497.188 2.938.671 5.366 1.006 7.285 1.006 2.361 0 3.917-.523 4.709-1.529 12.96-8.372 22.821-34.105 28.563-53.102h63.473a2.01 2.01 0 0 0 2.012-2.012 2.01 2.01 0 0 0-2.012-2.013l-.014.067Zm-128.608 19.628-7.54-1.476-14.879-7.955a10.642 10.642 0 0 0-11.323.751c-4.95 3.582-12.236 9.069-18.77 14.905-5.688 5.085-11.148 6.708-14.731 7.178 1.57-1.543 2.63-2.227 2.671-2.254.59-.349.952-.979.965-1.664a2.027 2.027 0 0 0-.872-1.717l-33.889-23.384h103.238l-4.87 15.603v.013ZM195.792 229.952l-5.325-38.853c7.875-4.629 13.765-7.674 17.32-9.405-2.737 11.363-8.331 45.414.563 111.207l-20.808-52.685 7.768-8.641a2.04 2.04 0 0 0 .496-1.623h-.014Zm14.195-37.619c5.152 4.441 16.73 12.625 31.985 12.625 8.854 0 18.943-2.778 29.73-10.626.161 36.184-.363 133.894-10.009 189.786h-31.34c-26.739-107.531-23.921-167.139-20.352-191.785h-.014Zm84.442.617c1.113.926 5.165 5.635 5.554 24.552-1.409 1.61-4.682 6.131-7.231 15.429l-5.769-9.177 4.642-32.374c.899.497 1.851 1.02 2.804 1.57Zm-11.552 30.965c-.067.469.041.952.296 1.355l7.03 11.162-16.167 54.631c2.066-49.063 1.744-95.537 1.61-107.706 2.509 1.114 6.681 3.059 12.209 5.984l-4.964 34.56-.014.014Zm30.657 160.203h-47.775c3.635-21.345 5.969-48.58 7.459-76.164 0-.013.013-.027.026-.053l16.422-55.503c-.657 9.753-.416 21.922 1.435 37.109a2.016 2.016 0 0 0 2 1.771h6.359a2.01 2.01 0 0 0 2.012-2.013 2.01 2.01 0 0 0-2.012-2.012h-4.575c-5.098-43.938 3.931-61.259 7.299-66.008 4.4 4.481 17.347 19.641 20.271 45.119h-6.252v-7.057a2.01 2.01 0 0 0-2.012-2.013 2.01 2.01 0 0 0-2.013 2.013v7.057h-3.837v-7.057a2.01 2.01 0 0 0-2.012-2.013 2.01 2.01 0 0 0-2.012 2.013v7.057h-4.777a2.01 2.01 0 0 0-2.012 2.012 2.01 2.01 0 0 0 2.012 2.013h23.291c.322 4.722.309 9.78-.174 15.16h-2.321a2.01 2.01 0 0 0-2.013 2.012 2.01 2.01 0 0 0 2.013 2.013h4.146a2.006 2.006 0 0 0 1.998-1.798c.658-6.238.738-12.048.403-17.454a2.013 2.013 0 0 0 1.543-1.946c0-1.06-.819-1.918-1.865-1.999-3.099-29.422-18.931-45.655-22.553-49.009-.201-9.834-1.395-16.274-2.817-20.487 10.317 6.172 22.995 14.543 37.283 25.545l-20.567 147.739-4.346 13.94-.027.013ZM200.233 106.657c-2.173-4.159-4.427-8.466-4.427-13.054 0-5.903 3.623-15.55 9.472-20.822 3.046-2.75 6.239-3.971 9.526-3.636 5.702.59 10.598-2.12 16.247-5.26 7.888-4.373 17.695-9.82 34.814-9.82h.108c10.827 0 27.745 20.192 33.501 36.09 2.629 7.258 2.575 12.718-.135 14.986a33.457 33.457 0 0 1-12.262 6.52 1.84 1.84 0 0 0-.483.148c-7.741 2.119-16.69 1.69-26.766-1.275-12.343-3.636-21.787-9.928-21.881-9.995a2.04 2.04 0 0 0-1.758-.241 2.02 2.02 0 0 0-1.261 1.234c-.054.134-4.763 13.403-7.621 20.755-1.703 4.36-4.521 4.763-5.836 4.709-2.187-3.314-8.774-12.679-14.207-13.497-1.329-.201-2.55.081-3.569.792-.832-2.603-2.147-5.125-3.448-7.607l-.014-.027Zm10.143 42.932c-1.865-1.57-3.233-7.245-3.998-12.853a32.316 32.316 0 0 0 5.984 5.393c.469 1.396 1.65 5.219 2.616 10.519a24.596 24.596 0 0 1-4.602-3.046v-.013Zm9.874 22.472c.993-17.441-4.105-31.34-4.319-31.917a2.014 2.014 0 0 0-.765-.966c-7.607-5.112-10.599-12.021-10.854-16.368-.054-.845 0-1.623.121-2.321.013-.081.04-.148.04-.228.255-1.127.738-2.026 1.435-2.63.134-.12.309-.228.725-.161 3.059.456 8.814 7.554 11.913 12.451a1.99 1.99 0 0 0 1.168.858c2.683.725 8.492.201 11.323-7.03 2.147-5.514 5.327-14.315 6.829-18.501 3.582 2.147 11.256 6.319 20.715 9.123 9.74 2.885 18.729 3.488 26.685 1.852-.282 4.722-1.154 15.187-3.73 25.625-3.072 12.45-9.244 27.409-21.198 28.053-23.693 1.301-31.73-19.225-32.065-20.124a2.005 2.005 0 0 0-2.589-1.181 2.006 2.006 0 0 0-1.18 2.589c.094.242 8.814 22.795 33.768 22.795.752 0 1.516-.014 2.294-.068a19.27 19.27 0 0 0 3.69-.563c-.094 4.226 1.409 9.552 7.352 11.9 0 1.167.027 2.536.04 4.079-31.595 25.075-56.402 2.857-60.923-1.704a94.08 94.08 0 0 1 .858-4.307l1.235-.51c5.34-2.213 7.07-4.722 7.419-10.733l.013-.013ZM113.47 374.62c5.823-131.56 22.057-145.553 23.52-146.56.228-.053.241-.107.455-.281 15.711-12.397 29.503-21.976 40.813-29.207-3.676 9.968-6.131 31.246 2.254 76.311-5.97 1.127-10.519 6.373-10.519 12.665 0 7.111 5.783 12.893 12.893 12.893 7.111 0 12.893-5.782 12.893-12.893 0-6.534-4.897-11.94-11.202-12.772-12.464-66.585-.779-79.29 1.207-80.914.309-.187.604-.362.899-.536l4.964 36.237-7.969 8.882a2 2 0 0 0-.376 2.079l27.611 69.912c3.474 21.506 8.398 45.991 15.254 73.669h-22.982l-30.186-20.822c-13.041-110.416-29.235-128.058-29.919-128.756a2.013 2.013 0 0 0-2.844-.027 2.013 2.013 0 0 0-.027 2.844c.161.161 15.993 17.442 28.899 127.307a2 2 0 0 0 .858 1.422l31.461 21.708 36.908 25.464c-4.521 3.971-13.993 14.959-15.348 38.089-.456.241-.818.67-.979 1.194a2.016 2.016 0 0 0 .832 2.254c-.014.697-.027 1.422-.027 2.146-68.503-22.217-105.572-76.472-109.409-82.335l.066.027Zm69.443-95.94c4.897 0 8.868 3.985 8.868 8.868 0 4.884-3.984 8.868-8.868 8.868-4.883 0-8.868-3.984-8.868-8.868 0-4.883 3.985-8.868 8.868-8.868Zm44.14 173.217c.872-15.348 5.527-24.994 9.565-30.562 3.247.147 11.981-.322 20.97-8.358 6.413-5.729 13.564-11.122 18.447-14.651a6.643 6.643 0 0 1 7.07-.47l20.608 11.029c3.126 1.677 4.91 5.165 4.414 8.68l-2.562 18.407a6 6 0 0 1-2.737 4.24 5.866 5.866 0 0 1-4.951.63c-11.35-3.649-19.199-4.615-23.358-2.898-2.079.872-4.159 2.616-6.547 4.629-7.258 6.118-18.112 15.254-40.906 9.324h-.013Zm73.4-1.704c-15.912 1.57-25.585-2.589-29.543-4.856 1.986-1.664 3.703-3.086 5.125-3.677 3.113-1.287 10.613-.187 20.581 3.006a9.911 9.911 0 0 0 8.331-1.047 9.99 9.99 0 0 0 4.589-7.084l2.562-18.407c.51-3.635-.63-7.244-2.951-9.941l7.727 1.516c.134.027.255.04.389.04.523 0 1.047-.214 1.422-.59l5.89-5.89c5.608 1.825 9.458 6.547 10.129 7.419 4.589 5.93 6.226 12.343 6.642 17.589-3.556 3.462-21.467 20.004-40.88 21.922h-.013Zm12.101-45.427c2.469-1.463 4.83-2.12 7.03-2.2l-2.992 2.991-4.025-.791h-.013Zm23.224 33.661a109.195 109.195 0 0 0 5.594-4.669c-.147 2.281-.469 3.998-.657 4.857-.55.134-1.959.295-4.937-.201v.013Zm9.566-3.408c.59-6.252.121-16.971-7.473-26.792-5.863-7.58-15.456-12.37-25.129-8.076l9.029-28.926c.027-.107.054-.214.067-.322l19.239-138.187 30.213 132.512a28.229 28.229 0 0 1-.281 13.631c-3.676 13.483-13.095 44.019-25.679 56.174l.014-.014Z\"\n fill=\"#000\"\n />\n <path\n d=\"M237.947 128.753c.443 0 .885-.147 1.261-.442.121-.094 1.744-1.369 4.185-1.932a2.733 2.733 0 0 0-.321 1.288c0 1.395.979 2.522 2.2 2.522s2.2-1.127 2.2-2.522c0-.55-.161-1.06-.416-1.476a9.927 9.927 0 0 1 3.207 1.006 2.011 2.011 0 0 0 1.798-3.596c-8.224-4.118-15.081 1.342-15.376 1.584a2.01 2.01 0 0 0 1.275 3.568h-.013Zm28.764-2.737c.443 0 .899-.147 1.274-.456.027-.027 1.892-1.503 4.642-1.959-.295.43-.469.966-.469 1.543 0 1.395.979 2.522 2.2 2.522s2.201-1.127 2.201-2.522c0-.55-.161-1.06-.429-1.476a9.842 9.842 0 0 1 2.428.832 2.01 2.01 0 0 0 1.798-3.595c-7.97-3.985-14.624 1.301-14.893 1.529a2.02 2.02 0 0 0-.295 2.831c.402.483.98.738 1.556.738l-.013.013Z\"\n fill=\"#000\"\n />\n </>\n );\n};\n\nexport default DoctorMedium;\n"],"names":["DoctorMedium","color","palette","React"],"mappings":";AAKA,MAAMA,IAAmD,CAAC,EAAE,OAAAC,QAAY;AACtE,QAAMC,KAAW,MAAe;AAC9B,YAAQD,GAAO;AAAA,MACb,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX;AACS,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,IAEb;AAAA,EAAA;AAGF,SAEIE,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,MACL,eAAY;AAAA,IAAA;AAAA,EAEd,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,IAAA;AAAA,EAEhB,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,IAAA;AAAA,EAEhB,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAAA,CAET;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"DoctorMedium.js","sources":["../../../src/components/Illustrations/DoctorMedium.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Palette } from './Doctor';\nimport { BaseSvgIllustrationProps } from '../Illustration';\n\nconst DoctorMedium: React.FC<BaseSvgIllustrationProps> = ({ color, svgProperties, title }) => {\n const palette = ((): Palette => {\n switch (color) {\n case 'blueberry':\n return {\n hair: '#00687F',\n shirt: '#00AEC7',\n };\n case 'cherry':\n return {\n hair: '#BA2025',\n shirt: '#F1593C',\n };\n default:\n return {\n hair: '#989693',\n shirt: '#D6D4D3',\n };\n }\n })();\n\n return (\n <svg {...svgProperties}>\n {title}\n <path\n d=\"M274.049 181.694s42.516 16.999 66.357 39.94l31.636 140.053 2.482 10.263-2.482 12.169s-13.215 41.738-27.705 54.631c0 0 1.503 3.407-11.162 0l10.867-8.842s-3.341-20.62-11.793-24.35c-8.452-3.716-10.867-4.642-10.867-4.642l-3.73 5.997-8.278-1.369 6.735-19.56-52.108.429 5.527-45.884 2.214-54.577 2.307-71.079v-33.179Zm-63.539-3.073s-3.622 17.321-4.226 31.824c-.603 14.503 0 41.684 0 41.684l5.233 52.766 16.917 80.068-25.383 1.087 38.263 26.578S224.597 427.935 225 458.94c0 0-27.785-5.165-65.243-33.5-37.459-28.322-47.521-51.478-47.521-51.478l3.824-62.976 4.427-37.109 8.05-34.641 5.031-11.484 52.766-36.372 24.163-12.772.013.013Z\"\n fill=\"#fff\"\n data-testid=\"doctor-medium\"\n />\n <path\n d=\"M209.061 189.637s12.518 10.156 23.13 12.316c10.612 2.16 16.676-.201 27.57-3.542 10.894-3.34 14.289-8.787 14.289-8.787s-2.241 154.863-7.902 178.852l-2.161 17.924h-33.943l-11.148-46.662-7.849-39.726-2.777-27.959-2.24-46.917 1.73-29.073 1.315-6.426h-.014Z\"\n fill={palette.shirt}\n />\n <path\n d=\"m204.312 132.269 9.713 8.291 2.361 14.758-9.096-5.729-2.978-17.32Zm-7.487-30.161 6.735 14.329 3.865-1.248 5.352 3.368 7.473 10.223 5.112-.497 4.36-6.855 7.607-19.32s10.961 6.735 21.064 9.714c10.089 2.991 24.176 2.616 24.176 2.616s12.343-2.496 17.441-6.977c5.098-4.481 2.495-15.455 2.495-15.455l-9.713-19.816-14.087-14.704-10.223-5.233h-13.953l-18.582 6.856-13.188 6.6-8.599 1.249-5.112.872-8.225 6.735-4.99 10.089-1.355 7.848 2.361 9.593-.014.013Z\"\n fill={palette.hair}\n />\n <path\n d=\"M255.589 149.589c.094 0 .174 0 .268-.014l8.332-1.113a2.008 2.008 0 0 0 1.73-2.214l-1.422-12.906a2.02 2.02 0 0 0-2.226-1.785 2.02 2.02 0 0 0-1.785 2.228l1.207 10.947-6.385.859a2.014 2.014 0 0 0 .254 4.011l.027-.013Z\"\n fill=\"#000\"\n />\n <path\n d=\"M436.024 384.118h-62.278c.416-1.462.818-2.884 1.18-4.212a32.249 32.249 0 0 0 .322-15.59l-32.654-143.219v-.026a2.604 2.604 0 0 0-.229-.564c-.013-.027-.04-.054-.054-.094a2.086 2.086 0 0 0-.402-.443s-.013-.026-.027-.026c-17.937-13.9-33.446-23.707-45.065-30.281a4.96 4.96 0 0 0-1.18-.671 243.688 243.688 0 0 0-4.414-2.428 1.688 1.688 0 0 0-.484-.255c-9.351-5.004-15.146-7.379-16.206-7.808a1.883 1.883 0 0 0-.953-.215c-.604 0-1.167.295-1.543.778-.04.054-.08.094-.12.148-.014.027-.027.067-.054.094-.054.08-.094.174-.134.255-.014.04-.014.08-.027.12a1.746 1.746 0 0 0-.067.255c0 .067-.001.148-.014.215 0 .054-.013.107-.013.161v.282c-1.865-1.315-4.092-3.985-3.112-8.962 17.91-9.808 20.553-48.46 20.915-56.563 4.602-1.476 8.815-3.757 12.558-6.883 4.199-3.501 4.669-10.236 1.328-19.44-6.346-17.535-24.377-38.72-37.284-38.746h-.107c-18.166 0-28.926 5.97-36.774 10.317-5.273 2.925-9.432 5.232-13.886 4.776-4.387-.443-8.761 1.154-12.638 4.656-7.017 6.332-10.814 16.998-10.814 23.814 0 5.58 2.604 10.545 4.898 14.918 2.053 3.931 3.997 7.648 3.823 11.176a13.44 13.44 0 0 0-.201 3.327c.107 1.879.59 4.039 1.503 6.306a1.934 1.934 0 0 0-.094.684c.148 3.046 1.1 18.474 6.077 22.647 2.737 2.307 5.071 3.434 6.628 4.186.362.174.778.375 1.02.51.08.161.188.295.308.415.51 4.213.778 8.976.496 14.047-.214 3.837-.791 5.192-3.354 6.507 0-.067.014-.134.014-.201v-.188c0-.067 0-.134-.027-.201a.758.758 0 0 0-.027-.175.974.974 0 0 0-.067-.214c-.013-.04-.013-.081-.04-.121 0-.013-.014-.027-.027-.04a1.409 1.409 0 0 0-.108-.201c-.026-.054-.053-.094-.08-.135-.04-.053-.094-.107-.134-.161-.04-.04-.081-.094-.121-.134a1.25 1.25 0 0 1-.147-.121l-.162-.12-.16-.081c-.067-.04-.135-.067-.202-.094-.013 0-.026-.013-.04-.013-.04-.014-.08-.014-.12-.027a1.46 1.46 0 0 0-.229-.054c-.054 0-.107 0-.16-.013h-.229c-.054 0-.107 0-.161.013a.602.602 0 0 0-.214.041c-.067.013-.121.04-.175.053-.053.014-.093.027-.147.041-.148.067-8.372 3.595-22.62 12.021a1.945 1.945 0 0 0-.456.268c-.859.51-1.731 1.033-2.63 1.57h-.027c-.214.093-.59.295-1.086.67-12.545 7.648-28.953 18.636-48.191 33.796-3.287 1.865-19.856 17.83-25.692 150.584-.014.402.08.805.294 1.154.081.134 1.959 3.099 5.582 7.888H76.012A2.01 2.01 0 0 0 74 386.104a2.01 2.01 0 0 0 2.012 2.012h41.926c.161 0 .309-.027.456-.053 15.335 19.185 50.915 56.616 105.935 73.574h.067c.175.041.349.081.537.081h.053c.188 0 .35-.04.524-.094.04 0 .08-.027.107-.04.174-.067.349-.148.496-.255l.027-.027c.148-.107.269-.242.376-.376.027-.027.054-.053.067-.094.107-.147.188-.322.255-.509 0-.014.013-.027.027-.041 0-.04.013-.08.027-.121l.039-.201c0-.067.014-.147.014-.214v-.108a114.54 114.54 0 0 1-.027-3.689c5.179 1.274 9.808 1.838 13.953 1.838 12.866 0 21.05-5.233 26.766-9.781 3.099 2.04 11.511 6.507 25.88 6.507 2.294 0 4.749-.12 7.338-.375 11.686-1.154 22.607-7.004 30.656-12.625.148.08.309.148.497.188 2.938.671 5.366 1.006 7.285 1.006 2.361 0 3.917-.523 4.709-1.529 12.96-8.372 22.821-34.105 28.563-53.102h63.473a2.01 2.01 0 0 0 2.012-2.012 2.01 2.01 0 0 0-2.012-2.013l-.014.067Zm-128.608 19.628-7.54-1.476-14.879-7.955a10.642 10.642 0 0 0-11.323.751c-4.95 3.582-12.236 9.069-18.77 14.905-5.688 5.085-11.148 6.708-14.731 7.178 1.57-1.543 2.63-2.227 2.671-2.254.59-.349.952-.979.965-1.664a2.027 2.027 0 0 0-.872-1.717l-33.889-23.384h103.238l-4.87 15.603v.013ZM195.792 229.952l-5.325-38.853c7.875-4.629 13.765-7.674 17.32-9.405-2.737 11.363-8.331 45.414.563 111.207l-20.808-52.685 7.768-8.641a2.04 2.04 0 0 0 .496-1.623h-.014Zm14.195-37.619c5.152 4.441 16.73 12.625 31.985 12.625 8.854 0 18.943-2.778 29.73-10.626.161 36.184-.363 133.894-10.009 189.786h-31.34c-26.739-107.531-23.921-167.139-20.352-191.785h-.014Zm84.442.617c1.113.926 5.165 5.635 5.554 24.552-1.409 1.61-4.682 6.131-7.231 15.429l-5.769-9.177 4.642-32.374c.899.497 1.851 1.02 2.804 1.57Zm-11.552 30.965c-.067.469.041.952.296 1.355l7.03 11.162-16.167 54.631c2.066-49.063 1.744-95.537 1.61-107.706 2.509 1.114 6.681 3.059 12.209 5.984l-4.964 34.56-.014.014Zm30.657 160.203h-47.775c3.635-21.345 5.969-48.58 7.459-76.164 0-.013.013-.027.026-.053l16.422-55.503c-.657 9.753-.416 21.922 1.435 37.109a2.016 2.016 0 0 0 2 1.771h6.359a2.01 2.01 0 0 0 2.012-2.013 2.01 2.01 0 0 0-2.012-2.012h-4.575c-5.098-43.938 3.931-61.259 7.299-66.008 4.4 4.481 17.347 19.641 20.271 45.119h-6.252v-7.057a2.01 2.01 0 0 0-2.012-2.013 2.01 2.01 0 0 0-2.013 2.013v7.057h-3.837v-7.057a2.01 2.01 0 0 0-2.012-2.013 2.01 2.01 0 0 0-2.012 2.013v7.057h-4.777a2.01 2.01 0 0 0-2.012 2.012 2.01 2.01 0 0 0 2.012 2.013h23.291c.322 4.722.309 9.78-.174 15.16h-2.321a2.01 2.01 0 0 0-2.013 2.012 2.01 2.01 0 0 0 2.013 2.013h4.146a2.006 2.006 0 0 0 1.998-1.798c.658-6.238.738-12.048.403-17.454a2.013 2.013 0 0 0 1.543-1.946c0-1.06-.819-1.918-1.865-1.999-3.099-29.422-18.931-45.655-22.553-49.009-.201-9.834-1.395-16.274-2.817-20.487 10.317 6.172 22.995 14.543 37.283 25.545l-20.567 147.739-4.346 13.94-.027.013ZM200.233 106.657c-2.173-4.159-4.427-8.466-4.427-13.054 0-5.903 3.623-15.55 9.472-20.822 3.046-2.75 6.239-3.971 9.526-3.636 5.702.59 10.598-2.12 16.247-5.26 7.888-4.373 17.695-9.82 34.814-9.82h.108c10.827 0 27.745 20.192 33.501 36.09 2.629 7.258 2.575 12.718-.135 14.986a33.457 33.457 0 0 1-12.262 6.52 1.84 1.84 0 0 0-.483.148c-7.741 2.119-16.69 1.69-26.766-1.275-12.343-3.636-21.787-9.928-21.881-9.995a2.04 2.04 0 0 0-1.758-.241 2.02 2.02 0 0 0-1.261 1.234c-.054.134-4.763 13.403-7.621 20.755-1.703 4.36-4.521 4.763-5.836 4.709-2.187-3.314-8.774-12.679-14.207-13.497-1.329-.201-2.55.081-3.569.792-.832-2.603-2.147-5.125-3.448-7.607l-.014-.027Zm10.143 42.932c-1.865-1.57-3.233-7.245-3.998-12.853a32.316 32.316 0 0 0 5.984 5.393c.469 1.396 1.65 5.219 2.616 10.519a24.596 24.596 0 0 1-4.602-3.046v-.013Zm9.874 22.472c.993-17.441-4.105-31.34-4.319-31.917a2.014 2.014 0 0 0-.765-.966c-7.607-5.112-10.599-12.021-10.854-16.368-.054-.845 0-1.623.121-2.321.013-.081.04-.148.04-.228.255-1.127.738-2.026 1.435-2.63.134-.12.309-.228.725-.161 3.059.456 8.814 7.554 11.913 12.451a1.99 1.99 0 0 0 1.168.858c2.683.725 8.492.201 11.323-7.03 2.147-5.514 5.327-14.315 6.829-18.501 3.582 2.147 11.256 6.319 20.715 9.123 9.74 2.885 18.729 3.488 26.685 1.852-.282 4.722-1.154 15.187-3.73 25.625-3.072 12.45-9.244 27.409-21.198 28.053-23.693 1.301-31.73-19.225-32.065-20.124a2.005 2.005 0 0 0-2.589-1.181 2.006 2.006 0 0 0-1.18 2.589c.094.242 8.814 22.795 33.768 22.795.752 0 1.516-.014 2.294-.068a19.27 19.27 0 0 0 3.69-.563c-.094 4.226 1.409 9.552 7.352 11.9 0 1.167.027 2.536.04 4.079-31.595 25.075-56.402 2.857-60.923-1.704a94.08 94.08 0 0 1 .858-4.307l1.235-.51c5.34-2.213 7.07-4.722 7.419-10.733l.013-.013ZM113.47 374.62c5.823-131.56 22.057-145.553 23.52-146.56.228-.053.241-.107.455-.281 15.711-12.397 29.503-21.976 40.813-29.207-3.676 9.968-6.131 31.246 2.254 76.311-5.97 1.127-10.519 6.373-10.519 12.665 0 7.111 5.783 12.893 12.893 12.893 7.111 0 12.893-5.782 12.893-12.893 0-6.534-4.897-11.94-11.202-12.772-12.464-66.585-.779-79.29 1.207-80.914.309-.187.604-.362.899-.536l4.964 36.237-7.969 8.882a2 2 0 0 0-.376 2.079l27.611 69.912c3.474 21.506 8.398 45.991 15.254 73.669h-22.982l-30.186-20.822c-13.041-110.416-29.235-128.058-29.919-128.756a2.013 2.013 0 0 0-2.844-.027 2.013 2.013 0 0 0-.027 2.844c.161.161 15.993 17.442 28.899 127.307a2 2 0 0 0 .858 1.422l31.461 21.708 36.908 25.464c-4.521 3.971-13.993 14.959-15.348 38.089-.456.241-.818.67-.979 1.194a2.016 2.016 0 0 0 .832 2.254c-.014.697-.027 1.422-.027 2.146-68.503-22.217-105.572-76.472-109.409-82.335l.066.027Zm69.443-95.94c4.897 0 8.868 3.985 8.868 8.868 0 4.884-3.984 8.868-8.868 8.868-4.883 0-8.868-3.984-8.868-8.868 0-4.883 3.985-8.868 8.868-8.868Zm44.14 173.217c.872-15.348 5.527-24.994 9.565-30.562 3.247.147 11.981-.322 20.97-8.358 6.413-5.729 13.564-11.122 18.447-14.651a6.643 6.643 0 0 1 7.07-.47l20.608 11.029c3.126 1.677 4.91 5.165 4.414 8.68l-2.562 18.407a6 6 0 0 1-2.737 4.24 5.866 5.866 0 0 1-4.951.63c-11.35-3.649-19.199-4.615-23.358-2.898-2.079.872-4.159 2.616-6.547 4.629-7.258 6.118-18.112 15.254-40.906 9.324h-.013Zm73.4-1.704c-15.912 1.57-25.585-2.589-29.543-4.856 1.986-1.664 3.703-3.086 5.125-3.677 3.113-1.287 10.613-.187 20.581 3.006a9.911 9.911 0 0 0 8.331-1.047 9.99 9.99 0 0 0 4.589-7.084l2.562-18.407c.51-3.635-.63-7.244-2.951-9.941l7.727 1.516c.134.027.255.04.389.04.523 0 1.047-.214 1.422-.59l5.89-5.89c5.608 1.825 9.458 6.547 10.129 7.419 4.589 5.93 6.226 12.343 6.642 17.589-3.556 3.462-21.467 20.004-40.88 21.922h-.013Zm12.101-45.427c2.469-1.463 4.83-2.12 7.03-2.2l-2.992 2.991-4.025-.791h-.013Zm23.224 33.661a109.195 109.195 0 0 0 5.594-4.669c-.147 2.281-.469 3.998-.657 4.857-.55.134-1.959.295-4.937-.201v.013Zm9.566-3.408c.59-6.252.121-16.971-7.473-26.792-5.863-7.58-15.456-12.37-25.129-8.076l9.029-28.926c.027-.107.054-.214.067-.322l19.239-138.187 30.213 132.512a28.229 28.229 0 0 1-.281 13.631c-3.676 13.483-13.095 44.019-25.679 56.174l.014-.014Z\"\n fill=\"#000\"\n />\n <path\n d=\"M237.947 128.753c.443 0 .885-.147 1.261-.442.121-.094 1.744-1.369 4.185-1.932a2.733 2.733 0 0 0-.321 1.288c0 1.395.979 2.522 2.2 2.522s2.2-1.127 2.2-2.522c0-.55-.161-1.06-.416-1.476a9.927 9.927 0 0 1 3.207 1.006 2.011 2.011 0 0 0 1.798-3.596c-8.224-4.118-15.081 1.342-15.376 1.584a2.01 2.01 0 0 0 1.275 3.568h-.013Zm28.764-2.737c.443 0 .899-.147 1.274-.456.027-.027 1.892-1.503 4.642-1.959-.295.43-.469.966-.469 1.543 0 1.395.979 2.522 2.2 2.522s2.201-1.127 2.201-2.522c0-.55-.161-1.06-.429-1.476a9.842 9.842 0 0 1 2.428.832 2.01 2.01 0 0 0 1.798-3.595c-7.97-3.985-14.624 1.301-14.893 1.529a2.02 2.02 0 0 0-.295 2.831c.402.483.98.738 1.556.738l-.013.013Z\"\n fill=\"#000\"\n />\n </svg>\n );\n};\n\nexport default DoctorMedium;\n"],"names":["DoctorMedium","color","svgProperties","title","palette","React"],"mappings":";AAKA,MAAMA,IAAmD,CAAC,EAAE,OAAAC,GAAO,eAAAC,GAAe,OAAAC,QAAY;AAC5F,QAAMC,KAAW,MAAe;AAC9B,YAAQH,GAAO;AAAA,MACb,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX;AACS,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,IAEb;AAAA,EAAA;AAGF,SACGI,gBAAAA,EAAA,cAAA,OAAA,EAAK,GAAGH,KACNC,GACDE,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,MACL,eAAY;AAAA,IAAA;AAAA,EAEd,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,IAAA;AAAA,EAEhB,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,IAAA;AAAA,EAEhB,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAAA,CAET;AAEJ;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import a from "react";
|
|
2
|
-
const
|
|
2
|
+
const h = ({ color: l, svgProperties: e, title: t }) => {
|
|
3
3
|
const c = (() => {
|
|
4
4
|
switch (l) {
|
|
5
5
|
case "blueberry":
|
|
@@ -19,7 +19,7 @@ const t = ({ color: l }) => {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
})();
|
|
22
|
-
return /* @__PURE__ */ a.createElement(
|
|
22
|
+
return /* @__PURE__ */ a.createElement("svg", { ...e }, t, /* @__PURE__ */ a.createElement("g", { clipPath: "url(#Color=Blueberry, Size=Small__a)" }, /* @__PURE__ */ a.createElement(
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
25
25
|
d: "m83.57 54.35 1.077 5.542-3.489-1.694-1.334-3.283-.308-3.694 4.053 3.13Zm-.616-8.824 2.719 3.95 2.463-.462.82-1.436 2.207-5.798 1.129-2.668 4.925 2.668 3.848 1.283 4.926.975 4.617-.308 4.208-1.385 3.026-1.386.924-1.847v-2.155l-.924-3.642-1.59-2.874-2.257-3.54-2.36-3.027-3.438-3.13L104.965 19h-5.029l-3.848 1.026-4.617 1.95-3.335 1.898-3.13 1.129h-2.72l-2.462.82-1.95 1.9-1.436 2.718-1.283 4.002.257 3.387 2.462 4.515.719 2.873 1.898-1.488 2.463 1.796Z",
|
|
@@ -55,6 +55,6 @@ const t = ({ color: l }) => {
|
|
|
55
55
|
)), /* @__PURE__ */ a.createElement("defs", null, /* @__PURE__ */ a.createElement("clipPath", { id: "Color=Blueberry, Size=Small__a" }, /* @__PURE__ */ a.createElement("path", { fill: "#fff", d: "M0 0h200v200H0z" }))));
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
h as default
|
|
59
59
|
};
|
|
60
60
|
//# sourceMappingURL=DoctorSmall.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DoctorSmall.js","sources":["../../../src/components/Illustrations/DoctorSmall.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Palette } from './Doctor';\nimport { BaseSvgIllustrationProps } from '../Illustration';\n\nconst DoctorSmall: React.FC<BaseSvgIllustrationProps> = ({ color }) => {\n const palette = ((): Palette => {\n switch (color) {\n case 'blueberry':\n return {\n hair: '#00687F',\n shirt: '#00AEC7',\n };\n case 'cherry':\n return {\n hair: '#BA2025',\n shirt: '#F1593C',\n };\n default:\n return {\n hair: '#989693',\n shirt: '#D6D4D3',\n };\n }\n })();\n\n return (\n <>\n <g clipPath=\"url(#Color=Blueberry, Size=Small__a)\">\n <path\n d=\"m83.57 54.35 1.077 5.542-3.489-1.694-1.334-3.283-.308-3.694 4.053 3.13Zm-.616-8.824 2.719 3.95 2.463-.462.82-1.436 2.207-5.798 1.129-2.668 4.925 2.668 3.848 1.283 4.926.975 4.617-.308 4.208-1.385 3.026-1.386.924-1.847v-2.155l-.924-3.642-1.59-2.874-2.257-3.54-2.36-3.027-3.438-3.13L104.965 19h-5.029l-3.848 1.026-4.617 1.95-3.335 1.898-3.13 1.129h-2.72l-2.462.82-1.95 1.9-1.436 2.718-1.283 4.002.257 3.387 2.462 4.515.719 2.873 1.898-1.488 2.463 1.796Z\"\n fill={palette.hair}\n data-testid=\"doctor-small\"\n />\n <path\n d=\"m84.006 75.403-2.998-2.363-.94 7.33v20.07L82 116.649l2.215 13.287 1.696 9.423 3.44 12.438h13.521l1.461-10.554.989-11.637.707-11.355.471-13.758.405-30.536-3.365 2.303-4.516 2.05c-1.182.226-3.625.678-3.94.678h-3.517l-2.655-.678-4.906-2.907Z\"\n fill={palette.shirt}\n />\n <path\n d=\"M71.582 74.903c3.643-2.65 8.28-4.554 10.143-5.175l-1.2 7.25-.41 5.373v9.75l.238 9.857.671 8.687.867 6.737 1.69 8.645.823 5.285 1.408 7.194 2.015 7.929 1.49 5.36h-10.44l14.943 10.392-2.632 3.108-1.871 3.52-1.173 3.867-.508 4.44-.253 3.71-4.63-1.427-6.31-2.568-6.818-3.773-8.244-5.708-6.691-5.422-5.676-5.677-4.63-5.866-1.965-2.885 1.014-15.221 2.442-22.768 1.078-7.293 2.06-7.864 1.872-4.978 1.966-1.903 4.597-3.266 4.508-3.1c1.69-.966 5.983-3.56 9.626-6.21Zm35.05 17.869.411-22.618 7.778 3.51 4.528 2.86 7.712 5.047 6.565 4.658 4.484 19.65 4.571 20.191 3.814 16.53.563 2.469-.196 2.579-1.473 4.592-3.249 9.078-2.275 5.112-3.315 5.091-2.08 1.69-2.383.326-2.036-.889 4.419-3.336v-1.062l-.628-3.249-1.04-2.492-1.624-2.144-1.712-1.538-2.729-1.322-2.666 2.86-3.444-.78.629-1.257 1.992-6.533H102.71l1.127-6.964.52-3.357.802-10.356.433-5.091.52-10.118.325-8.232.195-14.905Z\"\n fill=\"#fff\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M102.423 18.127c1.358-.043 2.788.07 3.918.554 2.059.883 4.095 2.383 7.06 5.735 3.006 3.4 5.287 8.001 5.909 10.754.293 1.296.499 2.536.289 3.696-.222 1.224-.882 2.254-2.082 3.187-1.163.902-2.558 1.64-4.229 2.15-.11 1.734-.376 5.097-.728 7.198-.478 2.844-1.512 6.176-2.174 8.057-.696 1.976-2.094 4.245-3.328 5.548a8.448 8.448 0 0 1-2.135 1.649c-.149 1.345.189 2.219.601 2.773.186.25.396.447.601.597a.924.924 0 0 1 1.187-.718c.502.157 1.433.587 2.531 1.13 1.128.559 2.507 1.274 3.948 2.041 2.88 1.534 6.03 3.287 7.937 4.422 1.929 1.148 4.717 3.101 7.067 4.788 1.082.777 2.077 1.502 2.863 2.075l.21.152a161.605 161.605 0 0 0 1.311.947l.093.065.031.02c.258.155.525.342.767.607a.925.925 0 0 1 .354.485c.189.326.324.7.421 1.135l10.385 45.784.004.019c.287 1.398.74 3.552 1.167 5.472.213.961.418 1.859.592 2.572.18.741.311 1.217.376 1.384.528 1.373.51 2.921.439 4.34-.043.819-.293 1.911-.565 2.915-.114.421-.236.839-.356 1.235h24.664a.926.926 0 1 1 0 1.853h-25.259c-.643 1.916-2.7 7.841-4.142 11.098-1.568 3.54-3.196 5.855-4.329 7.304-.606.776-1.421 1.543-2.178 2.13a10.69 10.69 0 0 1-.746.534.939.939 0 0 1-.173.107c-.065.04-.129.078-.192.114-.32.182-.713.37-1.09.416-.253.03-.558.014-.824-.011a15.2 15.2 0 0 1-.923-.122 29.547 29.547 0 0 1-1.698-.326.786.786 0 0 1-.098-.027c-1.43 1.058-5.3 3.524-9.931 4.591-4.841 1.114-8.666.303-10.863-.162a33.597 33.597 0 0 0-.491-.104c-1.67-.342-3.29-1.262-4.106-1.818-.645.504-1.259.96-1.712 1.275-.893.621-2.212 1.395-4.191 1.933-1.9.517-3.572.765-5.013.622-.932-.092-3.612-.499-5.26-.757-.018.494-.02.956-.012 1.392a.929.929 0 0 1-1.163.914c-1.54-.405-4.912-1.519-8.743-3.177-3.86-1.672-10.41-5.382-14.132-7.955-3.73-2.58-8.546-6.608-12.647-10.63-2.07-2.03-4.305-4.593-6.144-6.875-.188-.234-.372-.465-.552-.693a.99.99 0 0 1-.174.016H28.447a.927.927 0 0 1 0-1.853h15.08c-.886-1.193-1.56-2.188-1.885-2.798a.926.926 0 0 1-.108-.466c.079-2.401.471-10.169.982-15.749.51-5.561 2.077-20.42 3.138-27.222.538-3.446 1.462-6.888 2.287-9.536a72.474 72.474 0 0 1 1.11-3.299c.297-.81.54-1.412.654-1.627.345-.645 1.002-1.82 2.583-3.102.758-.614 4.721-3.42 8.63-6.15 3.91-2.732 7.88-5.468 8.657-5.939 1.495-.905 6.153-3.708 11.726-6.198a.927.927 0 0 1 1.25.53l.163-.06a6.83 6.83 0 0 0 .52-.22c.132-.063.18-.096.18-.096.152-.15.716-1.013.656-2.763-.01-.255-.013-.527-.017-.82-.015-1.022-.033-2.308-.28-4.14-.476-.24-1.481-.755-2.032-1.082-.842-.5-1.699-1.357-2.363-2.686-.175-.349-.314-.867-.43-1.383a31.374 31.374 0 0 1-.343-1.843 74.44 74.44 0 0 1-.482-3.64.922.922 0 0 1 .104-.534c-.211-.675-.45-1.548-.514-2.47a6.28 6.28 0 0 1 .053-1.407.924.924 0 0 1-.11-.527c-.001.009.002-.034-.007-.144a4.533 4.533 0 0 0-.057-.425c-.065-.36-.186-.86-.405-1.491-.265-.764-.827-1.91-1.4-3.08l-.024-.047a66.107 66.107 0 0 1-.794-1.66c-.222-.487-.424-.971-.52-1.346-.35-1.378-.212-2.98.432-5.28.684-2.444 2.365-4.567 2.829-5.124l.061-.074c.51-.62 2.203-2.682 5.071-2.682 1.21 0 1.91-.092 2.37-.19a6.412 6.412 0 0 0 .668-.182c.148-.047.322-.101.498-.143.064-.014.249-.082.586-.238a30.73 30.73 0 0 0 1.15-.574c.471-.244.956-.502 1.464-.772.497-.264 1.016-.54 1.564-.825 2.199-1.147 5.02-2.07 7.328-2.554 1.16-.243 2.572-.454 3.953-.499Zm-23.319 25.17a1.914 1.914 0 0 1 1.198-.498c.503-.026.975.137 1.371.347.784.415 1.555 1.162 2.211 1.926a19.98 19.98 0 0 1 1.762 2.42 14.42 14.42 0 0 1 .649 1.156c.723-.109 1.328-.42 1.745-1.193.267-.496.867-2.008 1.534-3.785.654-1.743 1.34-3.653 1.773-4.879a.927.927 0 0 1 1.245-.541c1.01.441 2.054.983 3.028 1.496l.259.136c.888.467 1.705.898 2.423 1.222 1.574.712 5.095 2.027 9.222 2.027 4.144 0 6.939-1.054 8.855-2.543.909-.705 1.27-1.357 1.395-2.053.138-.757.018-1.672-.272-2.956-.544-2.408-2.661-6.736-5.49-9.934-2.868-3.244-4.691-4.527-6.402-5.26-.755-.324-1.86-.446-3.128-.405-1.244.04-2.546.233-3.63.46-2.18.458-4.834 1.33-6.853 2.383-.49.256-1.021.538-1.536.811-.536.285-1.055.56-1.495.789-.452.235-.87.445-1.223.61-.33.152-.673.298-.945.362-.103.024-.2.054-.346.1-.032.01-.068.02-.106.033-.199.061-.44.133-.749.199-.618.132-1.454.23-2.757.23-1.973 0-3.164 1.435-3.667 2.04l-.041.05c-.434.521-1.895 2.392-2.468 4.436-.612 2.187-.652 3.412-.42 4.323.05.197.187.546.41 1.038.217.476.486 1.027.772 1.61l.064.13c.541 1.104 1.143 2.331 1.446 3.205.061.176.117.346.166.509Zm1.242 9.869c.029.193.058.385.089.575.102.639.212 1.24.322 1.732.117.521.217.835.28.96.518 1.037 1.14 1.617 1.65 1.92.185.11.435.247.701.39a56.028 56.028 0 0 0-.922-3.877 17.762 17.762 0 0 1-2.12-1.7Zm.14 17.846a108.167 108.167 0 0 0-8.724 4.636.924.924 0 0 1-.349.667l-.019.018a.948.948 0 0 0-.05.053 2.13 2.13 0 0 0-.155.204c-.123.18-.27.437-.42.782-.301.69-.61 1.715-.773 3.137-.058.515-.12 1.012-.18 1.502-.386 3.11-.74 5.975-.21 11.454.46 4.727 1.462 10.804 2.013 13.853a4.933 4.933 0 0 1 3.325 1.926c.86 1.124 1.243 2.533 1.243 3.764 0 1.402-.751 2.601-1.734 3.429-.984.828-2.285 1.363-3.582 1.411-2.659.097-4.988-1.933-5.224-4.763-.238-2.85 1.474-4.298 2.523-4.998.507-.337 1.082-.544 1.584-.665-.563-3.141-1.538-9.094-1.993-13.778-.55-5.687-.175-8.724.215-11.864.06-.488.121-.978.179-1.482.122-1.066.32-1.961.554-2.7a768.255 768.255 0 0 0-6.73 4.657c-3.949 2.758-7.833 5.51-8.523 6.07-1.316 1.067-1.833 2.006-2.115 2.535l-.013.028-.039.086c-.032.074-.073.172-.122.295-.098.245-.226.576-.374.983a70.646 70.646 0 0 0-1.082 3.213c-.81 2.597-1.706 5.945-2.225 9.27-1.052 6.741-2.615 21.55-3.124 27.105-.49 5.349-.87 12.749-.966 15.384.538.92 1.849 2.728 3.539 4.826 1.811 2.249 3.998 4.754 5.998 6.716 4.04 3.962 8.776 7.919 12.404 10.428 3.636 2.514 10.08 6.162 13.814 7.778 2.959 1.281 5.62 2.223 7.32 2.75.05-1.933.306-4.287.955-7.336.41-1.928 1.175-4.027 2.195-5.909.793-1.463 1.762-2.836 2.874-3.895a3725.869 3725.869 0 0 0-14.159-9.884l-8.772-6.1-2.817-1.957-1.056-.733s-.001-.001.527-.762l-.528.761a.927.927 0 0 1-.39-.641c-.51-3.902-1.699-12.847-2.386-17.44-.856-5.721-2.65-14.341-3.7-18.502-1.064-4.216-2.834-10.672-5.472-14.667a.927.927 0 1 1 1.547-1.022c2.841 4.302 4.672 11.075 5.722 15.236 1.064 4.215 2.87 12.895 3.736 18.68.668 4.459 1.803 12.981 2.337 17.067l.72.501c.676.469 1.645 1.141 2.818 1.957l8.534 5.934a.919.919 0 0 1 .448-.115h8.468c-.85-2.888-2.247-7.909-3.03-11.711-.734-3.567-1.572-8.269-2.466-13.284-.475-2.665-.965-5.419-1.465-8.136-1.454-7.918-2.1-19.284-2.019-22.475.023-.866.02-2.252.017-3.906-.003-1.312-.006-2.794.003-4.321.02-3.406.1-7.03.389-9.261.32-2.468.704-5.019.984-6.789Zm8.81 81.736h32.711l-1.819 5.733-2.364-.54-.032-.006-.99-.189c-1.921-1.011-4.159-2.218-5.201-2.864-1.973-1.223-3.876-.522-4.64.043l-.004.002c-.682.509-2.77 2.13-5.753 4.61-3.66 3.043-5.393 3.75-6.375 4.054a5.77 5.77 0 0 1-.895.185c.204-.186.41-.355.62-.507a.926.926 0 0 0-.006-1.502c-1.478-1.061-7.097-4.982-12.895-9.019h7.642Zm2.971 12.959a16.96 16.96 0 0 0-1.016 1.653 20.787 20.787 0 0 0-2.012 5.411c-.407 1.913-.65 3.526-.785 4.917 1.64.258 4.417.68 5.32.769 1.117.11 2.537-.075 4.344-.566 1.73-.47 2.857-1.135 3.62-1.666.8-.556 2.179-1.617 3.274-2.553 1.216-1.04 2.575-1.67 3.694-1.783 1.025-.106 2.583.101 3.495.291.971.201 2.601.638 3.788 1.1.536.21.882.309 1.186.322.274.013.578-.042 1.015-.275.271-.145.53-.423.745-.793.214-.367.34-.747.386-.988.027-.141.066-.331.113-.565.217-1.065.625-3.063.975-5.725.126-.965-.182-2.04-.7-2.974a6.273 6.273 0 0 0-.825-1.16c-.29-.316-.523-.483-.647-.541l-.034-.016c-.556-.286-1.312-.678-2.141-1.114-1.933-1.016-4.307-2.292-5.438-2.993-1.157-.718-2.227-.288-2.561-.043-.65.484-2.71 2.083-5.674 4.547-3.776 3.14-5.722 4-7.01 4.4-1.054.327-2.446.368-2.999.355a1.035 1.035 0 0 1-.113-.01Zm28.512-5.189c1.13.063 3.094.707 3.094.707.307.07.628-.02.854-.24l2.45-2.387c.233.083.454.187.662.316 2.678 1.658 3.916 3.076 4.615 5.078.073.205.141.399.209.586.32.893.586 1.636.752 2.67.064.393.113.832.142 1.336a1248.942 1248.942 0 0 0-4.436 3.64c-.771.64-4.747 3.415-9.569 4.525-4.432 1.02-7.903.287-10.077-.172a52.162 52.162 0 0 0-.489-.103c-1.09-.224-2.21-.78-2.96-1.232.065-.053.128-.107.191-.161 1.015-.867 2.032-1.282 2.677-1.347.738-.076 2.072.083 2.93.261.901.187 2.427.597 3.491 1.013.564.22 1.149.419 1.778.447.66.029 1.294-.131 1.971-.494.679-.362 1.157-.951 1.474-1.494.253-.436.433-.892.539-1.287.987-5.94 2.283-8.521-.298-11.662Zm14.654 8.621a.926.926 0 0 0-.01-.344 15.658 15.658 0 0 0-.176-1.842c-.197-1.217-.527-2.134-.852-3.036l-.19-.536c-.885-2.534-2.49-4.247-5.391-6.044-1.364-.845-2.967-.943-4.324-.786-.668.078-1.305.221-1.869.389l3.543-11.166a.851.851 0 0 0 .035-.153l7.619-54.596 9.602 42.334c.289 1.405.743 3.563 1.171 5.492.214.966.422 1.878.601 2.609.171.705.33 1.309.447 1.61.371.968.389 2.155.316 3.58-.03.602-.23 1.526-.501 2.524-.266.977-.58 1.953-.803 2.633-.45 1.368-2.687 7.879-4.197 11.288-1.491 3.371-3.031 5.555-4.093 6.913-.27.346-.603.702-.958 1.039.035-.706.044-1.337.03-1.908Zm-1.883 1.847-1.787 1.464a13.026 13.026 0 0 0 1.027.144c.251.023.385.022.428.016l.003-.001c.017-.004.088-.027.221-.093.049-.554.085-1.063.108-1.53Zm-.997-84.314a2.163 2.163 0 0 0-.204-.136c-.18-.108-.781-.545-1.555-1.109l-.225-.165c-.787-.573-1.778-1.295-2.855-2.068-2.356-1.692-5.084-3.6-6.934-4.7a133.38 133.38 0 0 0-2.615-1.507c.073.234.144.486.212.757.404 1.605.732 3.9.795 7.064 1.142 1.033 3.235 3.356 4.882 6.574 2.244 4.382 3.301 8.112 3.577 9.649.134.759.382 2.616.512 4.776.13 2.151.148 4.672-.203 6.728a.928.928 0 0 1-.915.771h-1.487a.927.927 0 1 1 0-1.855h.684c.201-1.701.181-3.709.071-5.532-.126-2.099-.366-3.884-.488-4.562-.238-1.336-1.232-4.892-3.401-9.13-1.339-2.615-2.986-4.575-4.033-5.622-.588.8-1.129 1.658-1.607 2.78-.642 1.508-1.19 3.536-1.542 6.58-.643 5.564-.112 11.583.261 15.806l.028.309h1.663a.928.928 0 0 1 0 1.855h-2.513a.927.927 0 0 1-.923-.848l-.103-1.161c-.372-4.203-.921-10.41-.254-16.175.366-3.165.947-5.376 1.678-7.091.675-1.588 1.464-2.713 2.261-3.737-.057-3.1-.376-5.276-.741-6.727-.189-.75-.388-1.296-.564-1.67a3.11 3.11 0 0 0-.227-.418c-.066-.1-.103-.133-.1-.13a.917.917 0 0 1-.298-.53c-.821-.449-1.656-.9-2.47-1.333a154.164 154.164 0 0 0-3.899-2.016 51.58 51.58 0 0 0-1.101-.53c-.062 2.788-.147 9.399-.227 16.084l-.086 7.36c-.062 5.332-.111 9.606-.13 10.333-.054 2.073-.648 16.813-.866 19.681l-.054.714c-.284 3.758-1.103 14.63-1.645 18.354a358.947 358.947 0 0 1-1.063 6.8h18.745l1.779-5.607 8.18-58.616Zm-30.583 64.223H90.006c-.818-2.745-2.33-8.115-3.148-12.085-.73-3.544-1.56-8.202-2.45-13.198-.476-2.671-.97-5.438-1.473-8.184-1.432-7.792-2.068-19.03-1.99-22.091.024-.884.02-2.318.018-4.006-.003-1.313-.005-2.779.003-4.258.02-3.427.101-6.936.373-9.034.131-1.011.274-2.038.415-3.018a22.318 22.318 0 0 0 3.99 2.764c2.286 1.24 5.133 2.258 8.208 2.248 5.02-.016 9.539-2.439 12.041-4.275-.049 3.276-.102 7.58-.154 11.873l-.086 7.41c-.062 5.307-.111 9.544-.129 10.257-.054 2.067-.648 16.769-.862 19.589l-.053.708c-.285 3.775-1.1 14.582-1.632 18.233a362.431 362.431 0 0 1-1.107 7.067Zm4.062-77.552.023-1.262a4.57 4.57 0 0 1-2.019-1.547c-.583-.785-.983-1.83-1.002-3.155-.41.1-.842.174-1.297.215-2.239.206-4.43-.283-5.733-.768-1.226-.456-3.22-1.25-4.95-2.934-.816-.795-1.656-1.71-2.349-2.646-.682-.922-1.272-1.93-1.517-2.907a.927.927 0 0 1 1.799-.45c.157.63.581 1.407 1.209 2.254.616.834 1.383 1.673 2.151 2.42 1.439 1.4 3.122 2.086 4.304 2.526 1.105.411 3.014.834 4.916.66 1.818-.168 3.138-.955 4.145-2.018 1.047-1.106 2.312-3.147 2.925-4.89.648-1.837 1.642-5.055 2.094-7.747.303-1.8.543-4.633.668-6.436a21.708 21.708 0 0 1-3.875.327c-4.49 0-8.284-1.422-9.986-2.191-.772-.35-1.64-.807-2.514-1.267l-.267-.14a65.353 65.353 0 0 0-2.002-1.021 274.356 274.356 0 0 1-1.445 3.955c-.647 1.723-1.297 3.38-1.639 4.014-.994 1.842-2.67 2.19-3.961 2.214a.927.927 0 0 1-.919-.706l-.003-.01a1.885 1.885 0 0 0-.05-.132 4.925 4.925 0 0 0-.149-.32 12.606 12.606 0 0 0-.519-.912 18.063 18.063 0 0 0-1.592-2.188c-.613-.715-1.202-1.248-1.672-1.497-.231-.122-.361-.136-.408-.134h-.004c-.01 0-.03 0-.082.059-.644.745-.814 1.625-.75 2.552.064.907.345 1.775.582 2.508l.035.107c.165.512.63 1.151 1.332 1.838.683.667 1.51 1.299 2.27 1.803.185.124.32.31.38.524 1.672 6.011 1.716 9.093 1.745 11.076.004.29.008.559.016.808.074 2.124-.598 3.595-1.266 4.205-.188.17-.433.3-.615.388-.206.1-.44.196-.668.282-.359.137-.736.263-1.033.355a280.51 280.51 0 0 0-.253 1.624c.837.886 2.451 2.243 4.54 3.376 2.111 1.146 4.65 2.032 7.319 2.024 5.428-.017 10.332-3.232 12.077-4.828l.009-.008Zm16.352 85.639a9.523 9.523 0 0 1 2.32-.59l.03-.003-.94.916-1.41-.323ZM70.853 109.12c-.32.014-1.11.146-1.655.51-.83.553-1.858 1.453-1.704 3.3.156 1.867 1.662 3.125 3.31 3.065.854-.031 1.765-.396 2.454-.976.69-.581 1.075-1.301 1.075-2.011 0-.883-.283-1.881-.861-2.637-.554-.723-1.39-1.246-2.62-1.251Zm38.112-61.187c-1.838-.932-3.675-.065-4.354.5a.928.928 0 0 1-1.185-1.427c.982-.815 3.619-2.126 6.378-.726a.927.927 0 1 1-.839 1.653Zm-14.027.746c-.863.183-1.58.57-1.945.84a.927.927 0 1 1-1.106-1.487c.564-.419 1.523-.924 2.666-1.166 1.153-.245 2.551-.233 3.913.474a.927.927 0 0 1-.854 1.646c-.886-.46-1.823-.487-2.674-.307Zm7.419 1.647a.927.927 0 0 1 1.02.824l.549 5.176a.927.927 0 0 1-.763 1.011l-3.529.613a.927.927 0 0 1-.317-1.826l2.674-.465-.458-4.313a.927.927 0 0 1 .824-1.02Z\"\n fill=\"#000\"\n />\n <path\n d=\"M96.789 49.243a1.03 1.03 0 1 1-2.06 0 1.03 1.03 0 0 1 2.06 0Zm11.564-.984a1.03 1.03 0 1 1-2.06 0 1.03 1.03 0 0 1 2.06 0Z\"\n fill=\"#000\"\n />\n </g>\n <defs>\n <clipPath id=\"Color=Blueberry, Size=Small__a\">\n <path fill=\"#fff\" d=\"M0 0h200v200H0z\" />\n </clipPath>\n </defs>\n </>\n );\n};\n\nexport default DoctorSmall;\n"],"names":["DoctorSmall","color","palette","React"],"mappings":";AAKA,MAAMA,IAAkD,CAAC,EAAE,OAAAC,QAAY;AACrE,QAAMC,KAAW,MAAe;AAC9B,YAAQD,GAAO;AAAA,MACb,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX;AACS,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,IAEb;AAAA,EAAA;AAGF,SAEIE,gBAAAA,EAAA,cAAAA,EAAA,UAAA,MAAAA,gBAAAA,EAAA,cAAC,KAAE,EAAA,UAAS,uCACV,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,MACd,eAAY;AAAA,IAAA;AAAA,EAEd,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,IAAA;AAAA,EAEhB,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,UAAS;AAAA,MACT,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAAA,CAET,GACAA,gBAAAA,EAAA,cAAC,QACC,MAAAA,gBAAAA,EAAA,cAAC,cAAS,IAAG,iCAAA,GACVA,gBAAAA,EAAA,cAAA,QAAA,EAAK,MAAK,QAAO,GAAE,kBAAkB,CAAA,CACxC,CACF,CACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"DoctorSmall.js","sources":["../../../src/components/Illustrations/DoctorSmall.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Palette } from './Doctor';\nimport { BaseSvgIllustrationProps } from '../Illustration';\n\nconst DoctorSmall: React.FC<BaseSvgIllustrationProps> = ({ color, svgProperties, title }) => {\n const palette = ((): Palette => {\n switch (color) {\n case 'blueberry':\n return {\n hair: '#00687F',\n shirt: '#00AEC7',\n };\n case 'cherry':\n return {\n hair: '#BA2025',\n shirt: '#F1593C',\n };\n default:\n return {\n hair: '#989693',\n shirt: '#D6D4D3',\n };\n }\n })();\n\n return (\n <svg {...svgProperties}>\n {title}\n <g clipPath=\"url(#Color=Blueberry, Size=Small__a)\">\n <path\n d=\"m83.57 54.35 1.077 5.542-3.489-1.694-1.334-3.283-.308-3.694 4.053 3.13Zm-.616-8.824 2.719 3.95 2.463-.462.82-1.436 2.207-5.798 1.129-2.668 4.925 2.668 3.848 1.283 4.926.975 4.617-.308 4.208-1.385 3.026-1.386.924-1.847v-2.155l-.924-3.642-1.59-2.874-2.257-3.54-2.36-3.027-3.438-3.13L104.965 19h-5.029l-3.848 1.026-4.617 1.95-3.335 1.898-3.13 1.129h-2.72l-2.462.82-1.95 1.9-1.436 2.718-1.283 4.002.257 3.387 2.462 4.515.719 2.873 1.898-1.488 2.463 1.796Z\"\n fill={palette.hair}\n data-testid=\"doctor-small\"\n />\n <path\n d=\"m84.006 75.403-2.998-2.363-.94 7.33v20.07L82 116.649l2.215 13.287 1.696 9.423 3.44 12.438h13.521l1.461-10.554.989-11.637.707-11.355.471-13.758.405-30.536-3.365 2.303-4.516 2.05c-1.182.226-3.625.678-3.94.678h-3.517l-2.655-.678-4.906-2.907Z\"\n fill={palette.shirt}\n />\n <path\n d=\"M71.582 74.903c3.643-2.65 8.28-4.554 10.143-5.175l-1.2 7.25-.41 5.373v9.75l.238 9.857.671 8.687.867 6.737 1.69 8.645.823 5.285 1.408 7.194 2.015 7.929 1.49 5.36h-10.44l14.943 10.392-2.632 3.108-1.871 3.52-1.173 3.867-.508 4.44-.253 3.71-4.63-1.427-6.31-2.568-6.818-3.773-8.244-5.708-6.691-5.422-5.676-5.677-4.63-5.866-1.965-2.885 1.014-15.221 2.442-22.768 1.078-7.293 2.06-7.864 1.872-4.978 1.966-1.903 4.597-3.266 4.508-3.1c1.69-.966 5.983-3.56 9.626-6.21Zm35.05 17.869.411-22.618 7.778 3.51 4.528 2.86 7.712 5.047 6.565 4.658 4.484 19.65 4.571 20.191 3.814 16.53.563 2.469-.196 2.579-1.473 4.592-3.249 9.078-2.275 5.112-3.315 5.091-2.08 1.69-2.383.326-2.036-.889 4.419-3.336v-1.062l-.628-3.249-1.04-2.492-1.624-2.144-1.712-1.538-2.729-1.322-2.666 2.86-3.444-.78.629-1.257 1.992-6.533H102.71l1.127-6.964.52-3.357.802-10.356.433-5.091.52-10.118.325-8.232.195-14.905Z\"\n fill=\"#fff\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M102.423 18.127c1.358-.043 2.788.07 3.918.554 2.059.883 4.095 2.383 7.06 5.735 3.006 3.4 5.287 8.001 5.909 10.754.293 1.296.499 2.536.289 3.696-.222 1.224-.882 2.254-2.082 3.187-1.163.902-2.558 1.64-4.229 2.15-.11 1.734-.376 5.097-.728 7.198-.478 2.844-1.512 6.176-2.174 8.057-.696 1.976-2.094 4.245-3.328 5.548a8.448 8.448 0 0 1-2.135 1.649c-.149 1.345.189 2.219.601 2.773.186.25.396.447.601.597a.924.924 0 0 1 1.187-.718c.502.157 1.433.587 2.531 1.13 1.128.559 2.507 1.274 3.948 2.041 2.88 1.534 6.03 3.287 7.937 4.422 1.929 1.148 4.717 3.101 7.067 4.788 1.082.777 2.077 1.502 2.863 2.075l.21.152a161.605 161.605 0 0 0 1.311.947l.093.065.031.02c.258.155.525.342.767.607a.925.925 0 0 1 .354.485c.189.326.324.7.421 1.135l10.385 45.784.004.019c.287 1.398.74 3.552 1.167 5.472.213.961.418 1.859.592 2.572.18.741.311 1.217.376 1.384.528 1.373.51 2.921.439 4.34-.043.819-.293 1.911-.565 2.915-.114.421-.236.839-.356 1.235h24.664a.926.926 0 1 1 0 1.853h-25.259c-.643 1.916-2.7 7.841-4.142 11.098-1.568 3.54-3.196 5.855-4.329 7.304-.606.776-1.421 1.543-2.178 2.13a10.69 10.69 0 0 1-.746.534.939.939 0 0 1-.173.107c-.065.04-.129.078-.192.114-.32.182-.713.37-1.09.416-.253.03-.558.014-.824-.011a15.2 15.2 0 0 1-.923-.122 29.547 29.547 0 0 1-1.698-.326.786.786 0 0 1-.098-.027c-1.43 1.058-5.3 3.524-9.931 4.591-4.841 1.114-8.666.303-10.863-.162a33.597 33.597 0 0 0-.491-.104c-1.67-.342-3.29-1.262-4.106-1.818-.645.504-1.259.96-1.712 1.275-.893.621-2.212 1.395-4.191 1.933-1.9.517-3.572.765-5.013.622-.932-.092-3.612-.499-5.26-.757-.018.494-.02.956-.012 1.392a.929.929 0 0 1-1.163.914c-1.54-.405-4.912-1.519-8.743-3.177-3.86-1.672-10.41-5.382-14.132-7.955-3.73-2.58-8.546-6.608-12.647-10.63-2.07-2.03-4.305-4.593-6.144-6.875-.188-.234-.372-.465-.552-.693a.99.99 0 0 1-.174.016H28.447a.927.927 0 0 1 0-1.853h15.08c-.886-1.193-1.56-2.188-1.885-2.798a.926.926 0 0 1-.108-.466c.079-2.401.471-10.169.982-15.749.51-5.561 2.077-20.42 3.138-27.222.538-3.446 1.462-6.888 2.287-9.536a72.474 72.474 0 0 1 1.11-3.299c.297-.81.54-1.412.654-1.627.345-.645 1.002-1.82 2.583-3.102.758-.614 4.721-3.42 8.63-6.15 3.91-2.732 7.88-5.468 8.657-5.939 1.495-.905 6.153-3.708 11.726-6.198a.927.927 0 0 1 1.25.53l.163-.06a6.83 6.83 0 0 0 .52-.22c.132-.063.18-.096.18-.096.152-.15.716-1.013.656-2.763-.01-.255-.013-.527-.017-.82-.015-1.022-.033-2.308-.28-4.14-.476-.24-1.481-.755-2.032-1.082-.842-.5-1.699-1.357-2.363-2.686-.175-.349-.314-.867-.43-1.383a31.374 31.374 0 0 1-.343-1.843 74.44 74.44 0 0 1-.482-3.64.922.922 0 0 1 .104-.534c-.211-.675-.45-1.548-.514-2.47a6.28 6.28 0 0 1 .053-1.407.924.924 0 0 1-.11-.527c-.001.009.002-.034-.007-.144a4.533 4.533 0 0 0-.057-.425c-.065-.36-.186-.86-.405-1.491-.265-.764-.827-1.91-1.4-3.08l-.024-.047a66.107 66.107 0 0 1-.794-1.66c-.222-.487-.424-.971-.52-1.346-.35-1.378-.212-2.98.432-5.28.684-2.444 2.365-4.567 2.829-5.124l.061-.074c.51-.62 2.203-2.682 5.071-2.682 1.21 0 1.91-.092 2.37-.19a6.412 6.412 0 0 0 .668-.182c.148-.047.322-.101.498-.143.064-.014.249-.082.586-.238a30.73 30.73 0 0 0 1.15-.574c.471-.244.956-.502 1.464-.772.497-.264 1.016-.54 1.564-.825 2.199-1.147 5.02-2.07 7.328-2.554 1.16-.243 2.572-.454 3.953-.499Zm-23.319 25.17a1.914 1.914 0 0 1 1.198-.498c.503-.026.975.137 1.371.347.784.415 1.555 1.162 2.211 1.926a19.98 19.98 0 0 1 1.762 2.42 14.42 14.42 0 0 1 .649 1.156c.723-.109 1.328-.42 1.745-1.193.267-.496.867-2.008 1.534-3.785.654-1.743 1.34-3.653 1.773-4.879a.927.927 0 0 1 1.245-.541c1.01.441 2.054.983 3.028 1.496l.259.136c.888.467 1.705.898 2.423 1.222 1.574.712 5.095 2.027 9.222 2.027 4.144 0 6.939-1.054 8.855-2.543.909-.705 1.27-1.357 1.395-2.053.138-.757.018-1.672-.272-2.956-.544-2.408-2.661-6.736-5.49-9.934-2.868-3.244-4.691-4.527-6.402-5.26-.755-.324-1.86-.446-3.128-.405-1.244.04-2.546.233-3.63.46-2.18.458-4.834 1.33-6.853 2.383-.49.256-1.021.538-1.536.811-.536.285-1.055.56-1.495.789-.452.235-.87.445-1.223.61-.33.152-.673.298-.945.362-.103.024-.2.054-.346.1-.032.01-.068.02-.106.033-.199.061-.44.133-.749.199-.618.132-1.454.23-2.757.23-1.973 0-3.164 1.435-3.667 2.04l-.041.05c-.434.521-1.895 2.392-2.468 4.436-.612 2.187-.652 3.412-.42 4.323.05.197.187.546.41 1.038.217.476.486 1.027.772 1.61l.064.13c.541 1.104 1.143 2.331 1.446 3.205.061.176.117.346.166.509Zm1.242 9.869c.029.193.058.385.089.575.102.639.212 1.24.322 1.732.117.521.217.835.28.96.518 1.037 1.14 1.617 1.65 1.92.185.11.435.247.701.39a56.028 56.028 0 0 0-.922-3.877 17.762 17.762 0 0 1-2.12-1.7Zm.14 17.846a108.167 108.167 0 0 0-8.724 4.636.924.924 0 0 1-.349.667l-.019.018a.948.948 0 0 0-.05.053 2.13 2.13 0 0 0-.155.204c-.123.18-.27.437-.42.782-.301.69-.61 1.715-.773 3.137-.058.515-.12 1.012-.18 1.502-.386 3.11-.74 5.975-.21 11.454.46 4.727 1.462 10.804 2.013 13.853a4.933 4.933 0 0 1 3.325 1.926c.86 1.124 1.243 2.533 1.243 3.764 0 1.402-.751 2.601-1.734 3.429-.984.828-2.285 1.363-3.582 1.411-2.659.097-4.988-1.933-5.224-4.763-.238-2.85 1.474-4.298 2.523-4.998.507-.337 1.082-.544 1.584-.665-.563-3.141-1.538-9.094-1.993-13.778-.55-5.687-.175-8.724.215-11.864.06-.488.121-.978.179-1.482.122-1.066.32-1.961.554-2.7a768.255 768.255 0 0 0-6.73 4.657c-3.949 2.758-7.833 5.51-8.523 6.07-1.316 1.067-1.833 2.006-2.115 2.535l-.013.028-.039.086c-.032.074-.073.172-.122.295-.098.245-.226.576-.374.983a70.646 70.646 0 0 0-1.082 3.213c-.81 2.597-1.706 5.945-2.225 9.27-1.052 6.741-2.615 21.55-3.124 27.105-.49 5.349-.87 12.749-.966 15.384.538.92 1.849 2.728 3.539 4.826 1.811 2.249 3.998 4.754 5.998 6.716 4.04 3.962 8.776 7.919 12.404 10.428 3.636 2.514 10.08 6.162 13.814 7.778 2.959 1.281 5.62 2.223 7.32 2.75.05-1.933.306-4.287.955-7.336.41-1.928 1.175-4.027 2.195-5.909.793-1.463 1.762-2.836 2.874-3.895a3725.869 3725.869 0 0 0-14.159-9.884l-8.772-6.1-2.817-1.957-1.056-.733s-.001-.001.527-.762l-.528.761a.927.927 0 0 1-.39-.641c-.51-3.902-1.699-12.847-2.386-17.44-.856-5.721-2.65-14.341-3.7-18.502-1.064-4.216-2.834-10.672-5.472-14.667a.927.927 0 1 1 1.547-1.022c2.841 4.302 4.672 11.075 5.722 15.236 1.064 4.215 2.87 12.895 3.736 18.68.668 4.459 1.803 12.981 2.337 17.067l.72.501c.676.469 1.645 1.141 2.818 1.957l8.534 5.934a.919.919 0 0 1 .448-.115h8.468c-.85-2.888-2.247-7.909-3.03-11.711-.734-3.567-1.572-8.269-2.466-13.284-.475-2.665-.965-5.419-1.465-8.136-1.454-7.918-2.1-19.284-2.019-22.475.023-.866.02-2.252.017-3.906-.003-1.312-.006-2.794.003-4.321.02-3.406.1-7.03.389-9.261.32-2.468.704-5.019.984-6.789Zm8.81 81.736h32.711l-1.819 5.733-2.364-.54-.032-.006-.99-.189c-1.921-1.011-4.159-2.218-5.201-2.864-1.973-1.223-3.876-.522-4.64.043l-.004.002c-.682.509-2.77 2.13-5.753 4.61-3.66 3.043-5.393 3.75-6.375 4.054a5.77 5.77 0 0 1-.895.185c.204-.186.41-.355.62-.507a.926.926 0 0 0-.006-1.502c-1.478-1.061-7.097-4.982-12.895-9.019h7.642Zm2.971 12.959a16.96 16.96 0 0 0-1.016 1.653 20.787 20.787 0 0 0-2.012 5.411c-.407 1.913-.65 3.526-.785 4.917 1.64.258 4.417.68 5.32.769 1.117.11 2.537-.075 4.344-.566 1.73-.47 2.857-1.135 3.62-1.666.8-.556 2.179-1.617 3.274-2.553 1.216-1.04 2.575-1.67 3.694-1.783 1.025-.106 2.583.101 3.495.291.971.201 2.601.638 3.788 1.1.536.21.882.309 1.186.322.274.013.578-.042 1.015-.275.271-.145.53-.423.745-.793.214-.367.34-.747.386-.988.027-.141.066-.331.113-.565.217-1.065.625-3.063.975-5.725.126-.965-.182-2.04-.7-2.974a6.273 6.273 0 0 0-.825-1.16c-.29-.316-.523-.483-.647-.541l-.034-.016c-.556-.286-1.312-.678-2.141-1.114-1.933-1.016-4.307-2.292-5.438-2.993-1.157-.718-2.227-.288-2.561-.043-.65.484-2.71 2.083-5.674 4.547-3.776 3.14-5.722 4-7.01 4.4-1.054.327-2.446.368-2.999.355a1.035 1.035 0 0 1-.113-.01Zm28.512-5.189c1.13.063 3.094.707 3.094.707.307.07.628-.02.854-.24l2.45-2.387c.233.083.454.187.662.316 2.678 1.658 3.916 3.076 4.615 5.078.073.205.141.399.209.586.32.893.586 1.636.752 2.67.064.393.113.832.142 1.336a1248.942 1248.942 0 0 0-4.436 3.64c-.771.64-4.747 3.415-9.569 4.525-4.432 1.02-7.903.287-10.077-.172a52.162 52.162 0 0 0-.489-.103c-1.09-.224-2.21-.78-2.96-1.232.065-.053.128-.107.191-.161 1.015-.867 2.032-1.282 2.677-1.347.738-.076 2.072.083 2.93.261.901.187 2.427.597 3.491 1.013.564.22 1.149.419 1.778.447.66.029 1.294-.131 1.971-.494.679-.362 1.157-.951 1.474-1.494.253-.436.433-.892.539-1.287.987-5.94 2.283-8.521-.298-11.662Zm14.654 8.621a.926.926 0 0 0-.01-.344 15.658 15.658 0 0 0-.176-1.842c-.197-1.217-.527-2.134-.852-3.036l-.19-.536c-.885-2.534-2.49-4.247-5.391-6.044-1.364-.845-2.967-.943-4.324-.786-.668.078-1.305.221-1.869.389l3.543-11.166a.851.851 0 0 0 .035-.153l7.619-54.596 9.602 42.334c.289 1.405.743 3.563 1.171 5.492.214.966.422 1.878.601 2.609.171.705.33 1.309.447 1.61.371.968.389 2.155.316 3.58-.03.602-.23 1.526-.501 2.524-.266.977-.58 1.953-.803 2.633-.45 1.368-2.687 7.879-4.197 11.288-1.491 3.371-3.031 5.555-4.093 6.913-.27.346-.603.702-.958 1.039.035-.706.044-1.337.03-1.908Zm-1.883 1.847-1.787 1.464a13.026 13.026 0 0 0 1.027.144c.251.023.385.022.428.016l.003-.001c.017-.004.088-.027.221-.093.049-.554.085-1.063.108-1.53Zm-.997-84.314a2.163 2.163 0 0 0-.204-.136c-.18-.108-.781-.545-1.555-1.109l-.225-.165c-.787-.573-1.778-1.295-2.855-2.068-2.356-1.692-5.084-3.6-6.934-4.7a133.38 133.38 0 0 0-2.615-1.507c.073.234.144.486.212.757.404 1.605.732 3.9.795 7.064 1.142 1.033 3.235 3.356 4.882 6.574 2.244 4.382 3.301 8.112 3.577 9.649.134.759.382 2.616.512 4.776.13 2.151.148 4.672-.203 6.728a.928.928 0 0 1-.915.771h-1.487a.927.927 0 1 1 0-1.855h.684c.201-1.701.181-3.709.071-5.532-.126-2.099-.366-3.884-.488-4.562-.238-1.336-1.232-4.892-3.401-9.13-1.339-2.615-2.986-4.575-4.033-5.622-.588.8-1.129 1.658-1.607 2.78-.642 1.508-1.19 3.536-1.542 6.58-.643 5.564-.112 11.583.261 15.806l.028.309h1.663a.928.928 0 0 1 0 1.855h-2.513a.927.927 0 0 1-.923-.848l-.103-1.161c-.372-4.203-.921-10.41-.254-16.175.366-3.165.947-5.376 1.678-7.091.675-1.588 1.464-2.713 2.261-3.737-.057-3.1-.376-5.276-.741-6.727-.189-.75-.388-1.296-.564-1.67a3.11 3.11 0 0 0-.227-.418c-.066-.1-.103-.133-.1-.13a.917.917 0 0 1-.298-.53c-.821-.449-1.656-.9-2.47-1.333a154.164 154.164 0 0 0-3.899-2.016 51.58 51.58 0 0 0-1.101-.53c-.062 2.788-.147 9.399-.227 16.084l-.086 7.36c-.062 5.332-.111 9.606-.13 10.333-.054 2.073-.648 16.813-.866 19.681l-.054.714c-.284 3.758-1.103 14.63-1.645 18.354a358.947 358.947 0 0 1-1.063 6.8h18.745l1.779-5.607 8.18-58.616Zm-30.583 64.223H90.006c-.818-2.745-2.33-8.115-3.148-12.085-.73-3.544-1.56-8.202-2.45-13.198-.476-2.671-.97-5.438-1.473-8.184-1.432-7.792-2.068-19.03-1.99-22.091.024-.884.02-2.318.018-4.006-.003-1.313-.005-2.779.003-4.258.02-3.427.101-6.936.373-9.034.131-1.011.274-2.038.415-3.018a22.318 22.318 0 0 0 3.99 2.764c2.286 1.24 5.133 2.258 8.208 2.248 5.02-.016 9.539-2.439 12.041-4.275-.049 3.276-.102 7.58-.154 11.873l-.086 7.41c-.062 5.307-.111 9.544-.129 10.257-.054 2.067-.648 16.769-.862 19.589l-.053.708c-.285 3.775-1.1 14.582-1.632 18.233a362.431 362.431 0 0 1-1.107 7.067Zm4.062-77.552.023-1.262a4.57 4.57 0 0 1-2.019-1.547c-.583-.785-.983-1.83-1.002-3.155-.41.1-.842.174-1.297.215-2.239.206-4.43-.283-5.733-.768-1.226-.456-3.22-1.25-4.95-2.934-.816-.795-1.656-1.71-2.349-2.646-.682-.922-1.272-1.93-1.517-2.907a.927.927 0 0 1 1.799-.45c.157.63.581 1.407 1.209 2.254.616.834 1.383 1.673 2.151 2.42 1.439 1.4 3.122 2.086 4.304 2.526 1.105.411 3.014.834 4.916.66 1.818-.168 3.138-.955 4.145-2.018 1.047-1.106 2.312-3.147 2.925-4.89.648-1.837 1.642-5.055 2.094-7.747.303-1.8.543-4.633.668-6.436a21.708 21.708 0 0 1-3.875.327c-4.49 0-8.284-1.422-9.986-2.191-.772-.35-1.64-.807-2.514-1.267l-.267-.14a65.353 65.353 0 0 0-2.002-1.021 274.356 274.356 0 0 1-1.445 3.955c-.647 1.723-1.297 3.38-1.639 4.014-.994 1.842-2.67 2.19-3.961 2.214a.927.927 0 0 1-.919-.706l-.003-.01a1.885 1.885 0 0 0-.05-.132 4.925 4.925 0 0 0-.149-.32 12.606 12.606 0 0 0-.519-.912 18.063 18.063 0 0 0-1.592-2.188c-.613-.715-1.202-1.248-1.672-1.497-.231-.122-.361-.136-.408-.134h-.004c-.01 0-.03 0-.082.059-.644.745-.814 1.625-.75 2.552.064.907.345 1.775.582 2.508l.035.107c.165.512.63 1.151 1.332 1.838.683.667 1.51 1.299 2.27 1.803.185.124.32.31.38.524 1.672 6.011 1.716 9.093 1.745 11.076.004.29.008.559.016.808.074 2.124-.598 3.595-1.266 4.205-.188.17-.433.3-.615.388-.206.1-.44.196-.668.282-.359.137-.736.263-1.033.355a280.51 280.51 0 0 0-.253 1.624c.837.886 2.451 2.243 4.54 3.376 2.111 1.146 4.65 2.032 7.319 2.024 5.428-.017 10.332-3.232 12.077-4.828l.009-.008Zm16.352 85.639a9.523 9.523 0 0 1 2.32-.59l.03-.003-.94.916-1.41-.323ZM70.853 109.12c-.32.014-1.11.146-1.655.51-.83.553-1.858 1.453-1.704 3.3.156 1.867 1.662 3.125 3.31 3.065.854-.031 1.765-.396 2.454-.976.69-.581 1.075-1.301 1.075-2.011 0-.883-.283-1.881-.861-2.637-.554-.723-1.39-1.246-2.62-1.251Zm38.112-61.187c-1.838-.932-3.675-.065-4.354.5a.928.928 0 0 1-1.185-1.427c.982-.815 3.619-2.126 6.378-.726a.927.927 0 1 1-.839 1.653Zm-14.027.746c-.863.183-1.58.57-1.945.84a.927.927 0 1 1-1.106-1.487c.564-.419 1.523-.924 2.666-1.166 1.153-.245 2.551-.233 3.913.474a.927.927 0 0 1-.854 1.646c-.886-.46-1.823-.487-2.674-.307Zm7.419 1.647a.927.927 0 0 1 1.02.824l.549 5.176a.927.927 0 0 1-.763 1.011l-3.529.613a.927.927 0 0 1-.317-1.826l2.674-.465-.458-4.313a.927.927 0 0 1 .824-1.02Z\"\n fill=\"#000\"\n />\n <path\n d=\"M96.789 49.243a1.03 1.03 0 1 1-2.06 0 1.03 1.03 0 0 1 2.06 0Zm11.564-.984a1.03 1.03 0 1 1-2.06 0 1.03 1.03 0 0 1 2.06 0Z\"\n fill=\"#000\"\n />\n </g>\n <defs>\n <clipPath id=\"Color=Blueberry, Size=Small__a\">\n <path fill=\"#fff\" d=\"M0 0h200v200H0z\" />\n </clipPath>\n </defs>\n </svg>\n );\n};\n\nexport default DoctorSmall;\n"],"names":["DoctorSmall","color","svgProperties","title","palette","React"],"mappings":";AAKA,MAAMA,IAAkD,CAAC,EAAE,OAAAC,GAAO,eAAAC,GAAe,OAAAC,QAAY;AAC3F,QAAMC,KAAW,MAAe;AAC9B,YAAQH,GAAO;AAAA,MACb,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX,KAAK;AACI,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,MAEX;AACS,eAAA;AAAA,UACL,MAAM;AAAA,UACN,OAAO;AAAA,QAAA;AAAA,IAEb;AAAA,EAAA;AAIA,SAAAI,gBAAAA,EAAA,cAAC,SAAK,GAAGH,EAAA,GACNC,GACAE,gBAAAA,EAAA,cAAA,KAAA,EAAE,UAAS,uCACV,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,MACd,eAAY;AAAA,IAAA;AAAA,EAEd,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD,EAAQ;AAAA,IAAA;AAAA,EAEhB,GAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,UAAS;AAAA,MACT,UAAS;AAAA,MACT,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAEP,GAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,IAAA;AAAA,EAAA,CAET,GACAA,gBAAAA,EAAA,cAAC,QACC,MAAAA,gBAAAA,EAAA,cAAC,cAAS,IAAG,iCAAA,GACVA,gBAAAA,EAAA,cAAA,QAAA,EAAK,MAAK,QAAO,GAAE,kBAAkB,CAAA,CACxC,CACF,CACF;AAEJ;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgIllustrationProps } from '../Illustration';
|
|
3
|
+
export interface Palette {
|
|
4
|
+
hair: string;
|
|
5
|
+
shirt: string;
|
|
6
|
+
}
|
|
7
|
+
declare const FacialRecognitionFingerprint: React.FC<SvgIllustrationProps>;
|
|
8
|
+
export default FacialRecognitionFingerprint;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import o from "react";
|
|
2
|
+
import n from "./FacialRecognitionFingerprintMedium.js";
|
|
3
|
+
import { getIllustration as a } from "../Illustration/utils.js";
|
|
4
|
+
const p = ({ size: t = 512, color: e, ...i }) => {
|
|
5
|
+
const r = /* @__PURE__ */ o.createElement(n, { color: e, ...i });
|
|
6
|
+
return a({ size: t, medium: r });
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
p as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=FacialRecognitionFingerprint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FacialRecognitionFingerprint.js","sources":["../../../src/components/Illustrations/FacialRecognitionFingerprint.tsx"],"sourcesContent":["import React from 'react';\n\nimport FacialRecognitionFingerprintMedium from './FacialRecognitionFingerprintMedium';\nimport { SvgIllustrationProps } from '../Illustration';\nimport { getIllustration } from '../Illustration/utils';\n\nexport interface Palette {\n hair: string;\n shirt: string;\n}\n\nconst FacialRecognitionFingerprint: React.FC<SvgIllustrationProps> = ({ size = 512, color, ...rest }) => {\n const medium = <FacialRecognitionFingerprintMedium color={color} {...rest} />;\n\n return getIllustration({ size, medium });\n};\n\nexport default FacialRecognitionFingerprint;\n"],"names":["FacialRecognitionFingerprint","size","color","rest","medium","React","FacialRecognitionFingerprintMedium","getIllustration"],"mappings":";;;AAWM,MAAAA,IAA+D,CAAC,EAAE,MAAAC,IAAO,KAAK,OAAAC,GAAO,GAAGC,QAAW;AACvG,QAAMC,IAASC,gBAAAA,EAAA,cAACC,GAAmC,EAAA,OAAAJ,GAAe,GAAGC,EAAM,CAAA;AAE3E,SAAOI,EAAgB,EAAE,MAAAN,GAAM,QAAAG,EAAQ,CAAA;AACzC;"}
|