@helsenorge/designsystem-react 15.5.0 → 15.6.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/lib/AnchorLink.js.map +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/CHANGELOG.md +21 -0
- package/lib/Checkbox.js +5 -3
- package/lib/Checkbox.js.map +1 -1
- package/lib/Checkbox2.js.map +1 -1
- package/lib/CheckboxMarker.js.map +1 -1
- package/lib/Chip.js.map +1 -1
- package/lib/Close.js.map +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/DrawerNavigation.js.map +1 -1
- package/lib/Duolist.js.map +1 -1
- package/lib/ElementHeader.js.map +1 -1
- package/lib/ElementHeaderText.js.map +1 -1
- package/lib/ErrorWrapper.js +2 -1
- package/lib/ErrorWrapper.js.map +1 -1
- package/lib/Expander.js +2 -1
- package/lib/Expander.js.map +1 -1
- package/lib/FilterButton.js.map +1 -1
- package/lib/FilterButtonAndChipsWrapper.js.map +1 -1
- package/lib/FilterDrawer.js.map +1 -1
- package/lib/FilterLinkList.js +2 -1
- package/lib/FilterLinkList.js.map +1 -1
- package/lib/FilterOverviewSearch.js.map +1 -1
- package/lib/FilterResultCountAndSortWrapper.js.map +1 -1
- package/lib/FilterSearch.js.map +1 -1
- package/lib/FormFieldTag.js.map +1 -1
- package/lib/FormGroup.js +9 -2
- package/lib/FormGroup.js.map +1 -1
- package/lib/FormLayout.js +9 -1
- package/lib/FormLayout.js.map +1 -1
- package/lib/HelpDetails.js.map +1 -1
- package/lib/HelpTriggerIcon.js.map +1 -1
- package/lib/HelpTriggerStandalone.js.map +1 -1
- package/lib/Highlighter.js.map +1 -1
- package/lib/HorizontalScroll.js.map +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/Illustration.js.map +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/LazyIcon.js.map +1 -1
- package/lib/LazyIllustration.js.map +1 -1
- package/lib/LinkList.js +31 -28
- package/lib/LinkList.js.map +1 -1
- package/lib/List.js +4 -2
- package/lib/List.js.map +1 -1
- package/lib/ListEditMode.js +5 -4
- package/lib/ListEditMode.js.map +1 -1
- package/lib/LoaderSpinner.js.map +1 -1
- package/lib/MaxCharacters.js.map +1 -1
- package/lib/PanelTitle.js.map +1 -1
- package/lib/PopOver.js +5 -2
- package/lib/PopOver.js.map +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/RadioButton.js.map +1 -1
- package/lib/RadioMarker.js +11 -10
- package/lib/RadioMarker.js.map +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/SingleSelectItem.js.map +1 -1
- package/lib/Slider.js +0 -2
- package/lib/Slider.js.map +1 -1
- package/lib/Spacer.js +16 -15
- package/lib/Spacer.js.map +1 -1
- package/lib/StatusDot.js.map +1 -1
- package/lib/StatusDotList.js.map +1 -1
- package/lib/StepButtons.js.map +1 -1
- package/lib/TabList.js.map +1 -1
- package/lib/TabPanel.js +2 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/TableBody.js +2 -1
- package/lib/TableBody.js.map +1 -1
- package/lib/TableCell.js +2 -1
- package/lib/TableCell.js.map +1 -1
- package/lib/TableExpandedRow.js +6 -3
- package/lib/TableExpandedRow.js.map +1 -1
- package/lib/TableExpanderCell.js +2 -1
- package/lib/TableExpanderCell.js.map +1 -1
- package/lib/TableHead.js +7 -6
- package/lib/TableHead.js.map +1 -1
- package/lib/TableHeadCell.js.map +1 -1
- package/lib/TableRow.js +7 -5
- package/lib/TableRow.js.map +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Title.js +20 -17
- package/lib/Title.js.map +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/Toggle.js +176 -0
- package/lib/Toggle.js.map +1 -0
- package/lib/VisualCheckbox.js.map +1 -1
- package/lib/VisualRadio.js.map +1 -1
- package/lib/components/ArticleTeaser/index.js.map +1 -1
- package/lib/components/Close/styles.module.scss +2 -2
- package/lib/components/Dropdown/index.js.map +1 -1
- package/lib/components/DropdownOld/index.js.map +1 -1
- package/lib/components/EmptyState/index.js +1 -3
- package/lib/components/EmptyState/index.js.map +1 -1
- package/lib/components/ExpanderHierarchy/index.js +2 -1
- package/lib/components/ExpanderHierarchy/index.js.map +1 -1
- package/lib/components/ExpanderList/index.js +7 -6
- package/lib/components/ExpanderList/index.js.map +1 -1
- package/lib/components/EyebrowHeader/index.js.map +1 -1
- package/lib/components/FavoriteButton/index.js +9 -7
- package/lib/components/FavoriteButton/index.js.map +1 -1
- package/lib/components/FormGroup/styles.module.scss +15 -3
- package/lib/components/FormGroup/styles.module.scss.d.ts +2 -0
- package/lib/components/FormLayout/styles.module.scss +9 -1
- package/lib/components/FormLayout/styles.module.scss.d.ts +2 -0
- package/lib/components/HelpBubble/index.js.map +1 -1
- package/lib/components/HelpExpanderInline/index.js.map +1 -1
- package/lib/components/HelpExpanderStandalone/index.js.map +1 -1
- package/lib/components/HelpPanel/HelpPanel.d.ts +2 -2
- package/lib/components/HelpPanel/index.js +49 -9
- package/lib/components/HelpPanel/index.js.map +1 -1
- package/lib/components/HelpPanel/styles.module.scss +66 -2
- package/lib/components/HelpPanel/styles.module.scss.d.ts +8 -0
- package/lib/components/HelpTeaser/HelpTeaser.d.ts +5 -2
- package/lib/components/HelpTeaser/index.js +59 -14
- package/lib/components/HelpTeaser/index.js.map +1 -1
- package/lib/components/HelpTeaser/styles.module.scss +105 -2
- package/lib/components/HelpTeaser/styles.module.scss.d.ts +6 -0
- package/lib/components/HelpTooltip/index.js +6 -3
- package/lib/components/HelpTooltip/index.js.map +1 -1
- package/lib/components/HelpTriggerInline/index.js.map +1 -1
- package/lib/components/HighlightPanel/index.js +79 -1
- package/lib/components/HighlightPanel/index.js.map +1 -0
- package/lib/components/Icons/AlarmClock.js.map +1 -1
- package/lib/components/Icons/Bus.js.map +1 -1
- package/lib/components/Illustrations/BabyMobile.js +5 -4
- package/lib/components/Illustrations/BabyMobile.js.map +1 -1
- package/lib/components/Illustrations/BabyMobileMedium.js.map +1 -1
- package/lib/components/Illustrations/Child.js +5 -4
- package/lib/components/Illustrations/Child.js.map +1 -1
- package/lib/components/Illustrations/ChildMedium.js.map +1 -1
- package/lib/components/Illustrations/Doctor.js +10 -8
- package/lib/components/Illustrations/Doctor.js.map +1 -1
- package/lib/components/Illustrations/DoctorMedium.js.map +1 -1
- package/lib/components/Illustrations/DoctorSmall.js.map +1 -1
- package/lib/components/Illustrations/EyeContact.js +5 -4
- package/lib/components/Illustrations/EyeContact.js.map +1 -1
- package/lib/components/Illustrations/EyeContactMedium.js.map +1 -1
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js +5 -4
- package/lib/components/Illustrations/FacialRecognitionFingerprint.js.map +1 -1
- package/lib/components/Illustrations/FacialRecognitionFingerprintMedium.js.map +1 -1
- package/lib/components/Illustrations/GiveBabyFood.js +5 -4
- package/lib/components/Illustrations/GiveBabyFood.js.map +1 -1
- package/lib/components/Illustrations/GiveBabyFoodMedium.js.map +1 -1
- package/lib/components/Illustrations/HealthcarePersonnel.js +10 -8
- package/lib/components/Illustrations/HealthcarePersonnel.js.map +1 -1
- package/lib/components/Illustrations/HealthcarePersonnelMedium.js.map +1 -1
- package/lib/components/Illustrations/HealthcarePersonnelSmall.js.map +1 -1
- package/lib/components/Illustrations/ReadLetters.js +5 -4
- package/lib/components/Illustrations/ReadLetters.js.map +1 -1
- package/lib/components/Illustrations/ReadLettersMedium.js.map +1 -1
- package/lib/components/Illustrations/SkinToSkin.js +5 -4
- package/lib/components/Illustrations/SkinToSkin.js.map +1 -1
- package/lib/components/Illustrations/SkinToSkinMedium.js.map +1 -1
- package/lib/components/Illustrations/Stork.js +5 -4
- package/lib/components/Illustrations/Stork.js.map +1 -1
- package/lib/components/Illustrations/StorkMedium.js.map +1 -1
- package/lib/components/Illustrations/Stroller.js +5 -4
- package/lib/components/Illustrations/Stroller.js.map +1 -1
- package/lib/components/Illustrations/StrollerMedium.js.map +1 -1
- package/lib/components/Illustrations/Support2.js +5 -4
- package/lib/components/Illustrations/Support2.js.map +1 -1
- package/lib/components/Illustrations/Support2Medium.js.map +1 -1
- package/lib/components/Illustrations/Thinking.js +5 -4
- package/lib/components/Illustrations/Thinking.js.map +1 -1
- package/lib/components/Illustrations/ThinkingMedium.js.map +1 -1
- package/lib/components/InfoTeaser/index.js +71 -1
- package/lib/components/InfoTeaser/index.js.map +1 -0
- package/lib/components/Loader/index.js +14 -13
- package/lib/components/Loader/index.js.map +1 -1
- package/lib/components/Logo/index.js.map +1 -1
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/NotificationPanel/index.js +7 -4
- package/lib/components/NotificationPanel/index.js.map +1 -1
- package/lib/components/Panel/index.js +17 -16
- package/lib/components/Panel/index.js.map +1 -1
- package/lib/components/PanelList/index.js.map +1 -1
- package/lib/components/PopMenu/index.js.map +1 -1
- package/lib/components/Progressbar/index.js +6 -5
- package/lib/components/Progressbar/index.js.map +1 -1
- package/lib/components/PromoPanel/index.js.map +1 -1
- package/lib/components/RadioButton/styles.module.scss +6 -6
- package/lib/components/ServiceMessage/index.js +2 -1
- package/lib/components/ServiceMessage/index.js.map +1 -1
- package/lib/components/SharingStatus/index.js.map +1 -1
- package/lib/components/Step/index.js.map +1 -1
- package/lib/components/Stepper/index.js +4 -2
- package/lib/components/Stepper/index.js.map +1 -1
- package/lib/components/StickyNote/index.js.map +1 -1
- package/lib/components/Table/index.js +2 -5
- package/lib/components/Table/index.js.map +1 -1
- package/lib/components/Tabs/index.js.map +1 -1
- package/lib/components/Tag/index.js +2 -1
- package/lib/components/Tag/index.js.map +1 -1
- package/lib/components/TagList/index.js.map +1 -1
- package/lib/components/Tile/index.js +5 -4
- package/lib/components/Tile/index.js.map +1 -1
- package/lib/components/ToastList/index.js +2 -1
- package/lib/components/ToastList/index.js.map +1 -1
- package/lib/components/Toggle/index.js +1 -172
- package/lib/components/Validation/index.js.map +1 -1
- package/lib/components/VisualCheckboxCloud/index.js.map +1 -1
- package/lib/components/VisualCheckboxGroup/index.js.map +1 -1
- package/lib/components/VisualContentgroupWithImage/index.js.map +1 -1
- package/lib/components/VisualRadioCloud/index.js.map +1 -1
- package/lib/components/VisualRadioGroup/index.js.map +1 -1
- package/lib/floating-ui.react.js +91 -111
- package/lib/floating-ui.react.js.map +1 -1
- package/lib/getFilterChips.js.map +1 -1
- package/lib/resourceHelper2.js +22 -0
- package/lib/resourceHelper2.js.map +1 -0
- package/lib/theme/spacers.js +2 -2
- package/lib/theme/spacers.js.map +1 -1
- package/lib/utils/formSpacing.d.ts +3 -0
- package/lib/utils/formSpacing.js +16 -0
- package/lib/utils/formSpacing.js.map +1 -0
- package/lib/utils2.js.map +1 -1
- package/package.json +1 -1
- package/lib/HighlightPanel.js +0 -80
- package/lib/HighlightPanel.js.map +0 -1
- package/lib/InfoTeaser.js +0 -89
- package/lib/InfoTeaser.js.map +0 -1
- package/lib/components/Toggle/index.js.map +0 -1
|
@@ -1,17 +1,57 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconSize } from "../../constants.js";
|
|
2
|
+
import { t as Icon_default } from "../../Icon.js";
|
|
3
|
+
import { useIsMobileBreakpoint } from "../../hooks/useIsMobileBreakpoint.js";
|
|
4
|
+
import Title_default from "../Title/index.js";
|
|
2
5
|
import HandWaving from "../Icons/HandWaving.js";
|
|
3
6
|
import classNames from "classnames";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
8
|
import styles from "./styles.module.scss";
|
|
6
9
|
//#region src/components/HelpPanel/HelpPanel.tsx
|
|
7
10
|
var HelpPanel = ({ className, variant = "normal", testId, children, title }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const isMobile = useIsMobileBreakpoint();
|
|
12
|
+
const containerClassName = classNames(styles["help-panel"], {
|
|
13
|
+
[styles["help-panel--compact"]]: variant === "compact",
|
|
14
|
+
[styles["help-panel--subdued"]]: variant === "subdued"
|
|
15
|
+
}, className);
|
|
16
|
+
const renderContent = () => {
|
|
17
|
+
const titleElement = title && /* @__PURE__ */ jsx(Title_default, {
|
|
18
|
+
testId: "titleId",
|
|
19
|
+
htmlMarkup: "h2",
|
|
20
|
+
appearance: "title6",
|
|
21
|
+
children: title
|
|
22
|
+
});
|
|
23
|
+
const iconSize = isMobile ? IconSize.XSmall : IconSize.Small;
|
|
24
|
+
if (variant === "compact") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
25
|
+
className: classNames(styles["help-panel__icon"], styles["help-panel__icon--compact"]),
|
|
26
|
+
children: /* @__PURE__ */ jsx(Icon_default, {
|
|
27
|
+
svgIcon: HandWaving,
|
|
28
|
+
size: iconSize
|
|
29
|
+
})
|
|
30
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: classNames(styles["help-panel__content"], styles["help-panel__content--compact"]),
|
|
32
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
33
|
+
className: styles["help-panel__title-wrapper"],
|
|
34
|
+
children: titleElement
|
|
35
|
+
}), children]
|
|
36
|
+
})] });
|
|
37
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: styles["help-panel__icon"],
|
|
39
|
+
children: /* @__PURE__ */ jsx(Icon_default, {
|
|
40
|
+
svgIcon: HandWaving,
|
|
41
|
+
size: iconSize
|
|
42
|
+
})
|
|
43
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: styles["help-panel__content"],
|
|
45
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: styles["help-panel__title-wrapper"],
|
|
47
|
+
children: titleElement
|
|
48
|
+
}), children]
|
|
49
|
+
})] });
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: containerClassName,
|
|
53
|
+
"data-testid": testId,
|
|
54
|
+
children: renderContent()
|
|
15
55
|
});
|
|
16
56
|
};
|
|
17
57
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpPanel/HelpPanel.tsx","../../../src/components/HelpPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpPanel/HelpPanel.tsx","../../../src/components/HelpPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { useIsMobileBreakpoint } from '@helsenorge/designsystem-react/hooks/useIsMobileBreakpoint';\n\nimport Icon, { IconSize } from '../Icon';\nimport HandWaving from '../Icons/HandWaving';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HelpPanelVariants = 'normal' | 'compact' | 'subdued';\n\nexport interface HelpPanelProps {\n /** The content of the component */\n children: React.ReactNode;\n /** If set the compact styling will be used */\n variant?: HelpPanelVariants;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets title if needed */\n title?: string;\n}\n\nconst HelpPanel: React.FC<HelpPanelProps> = ({ className, variant = 'normal', testId, children, title }) => {\n const isMobile = useIsMobileBreakpoint();\n\n const containerClassName = classNames(\n styles['help-panel'],\n {\n [styles['help-panel--compact']]: variant === 'compact',\n [styles['help-panel--subdued']]: variant === 'subdued',\n },\n className\n );\n\n const renderContent = (): React.ReactNode => {\n const titleElement = title && (\n <Title testId=\"titleId\" htmlMarkup={'h2'} appearance={'title6'}>\n {title}\n </Title>\n );\n\n const iconSize = isMobile ? IconSize.XSmall : IconSize.Small;\n\n if (variant === 'compact') {\n return (\n <>\n <div className={classNames(styles['help-panel__icon'], styles['help-panel__icon--compact'])}>\n <Icon svgIcon={HandWaving} size={iconSize} />\n </div>\n <div className={classNames(styles['help-panel__content'], styles['help-panel__content--compact'])}>\n {title && <div className={styles['help-panel__title-wrapper']}>{titleElement}</div>}\n {children}\n </div>\n </>\n );\n }\n\n return (\n <>\n <div className={styles['help-panel__icon']}>{<Icon svgIcon={HandWaving} size={iconSize} />}</div>\n <div className={styles['help-panel__content']}>\n <div className={styles['help-panel__title-wrapper']}>{titleElement}</div>\n {children}\n </div>\n </>\n );\n };\n\n return (\n <div className={containerClassName} data-testid={testId}>\n {renderContent()}\n </div>\n );\n};\n\nexport default HelpPanel;\n","import HelpPanel from './HelpPanel';\nexport * from './HelpPanel';\nexport default HelpPanel;\n"],"mappings":";;;;;;;;;AAyBA,IAAM,aAAuC,EAAE,WAAW,UAAU,UAAU,QAAQ,UAAU,YAAY;CAC1G,MAAM,WAAW,sBAAsB;CAEvC,MAAM,qBAAqB,WACzB,OAAO,eACP;GACG,OAAO,yBAAyB,YAAY;GAC5C,OAAO,yBAAyB,YAAY;CAC/C,GACA,SACF;CAEA,MAAM,sBAAuC;EAC3C,MAAM,eAAe,SACnB,oBAAC,eAAD;GAAO,QAAO;GAAU,YAAY;GAAM,YAAY;GACnD,UAAA;EACI,CAAA;EAGT,MAAM,WAAW,WAAW,SAAS,SAAS,SAAS;EAEvD,IAAI,YAAY,WACd,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;GAAK,WAAW,WAAW,OAAO,qBAAqB,OAAO,4BAA4B;GACxF,UAAA,oBAAC,cAAD;IAAM,SAAS;IAAY,MAAM;GAAW,CAAA;EACzC,CAAA,GACL,qBAAC,OAAD;GAAK,WAAW,WAAW,OAAO,wBAAwB,OAAO,+BAA+B;GAAhG,UAAA,CACG,SAAS,oBAAC,OAAD;IAAK,WAAW,OAAO;IAA+B,UAAA;GAAkB,CAAA,GACjF,QACE;EACL,CAAA,CAAA,EAAA,CAAA;EAIN,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;GAAK,WAAW,OAAO;GAAsB,UAAA,oBAAC,cAAD;IAAM,SAAS;IAAY,MAAM;GAAW,CAAA;EAAO,CAAA,GAChG,qBAAC,OAAD;GAAK,WAAW,OAAO;GAAvB,UAAA,CACE,oBAAC,OAAD;IAAK,WAAW,OAAO;IAA+B,UAAA;GAAkB,CAAA,GACvE,QACE;EACL,CAAA,CAAA,EAAA,CAAA;CAEN;CAEA,OACE,oBAAC,OAAD;EAAK,WAAW;EAAoB,eAAa;EAC9C,UAAA,cAAc;CACZ,CAAA;AAET;;;AC1EA,IAAA,oBAAe"}
|
|
@@ -1,6 +1,70 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../scss/font-mixins' as fonts;
|
|
3
|
+
@use '../../scss/screen-reader' as *;
|
|
4
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
1
5
|
@import '../../scss/supernova/styles/colors.css';
|
|
6
|
+
@import '../../scss/supernova/styles/spacers.css';
|
|
2
7
|
|
|
3
8
|
.help-panel {
|
|
4
|
-
|
|
5
|
-
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
padding: var(--core-space-xs) var(--core-space-xs) var(--core-space-m);
|
|
12
|
+
background-color: var(--color-help-background-normal);
|
|
13
|
+
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
14
|
+
|
|
15
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
16
|
+
padding: var(--core-space-s) var(--core-space-s) var(--core-space-m);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
20
|
+
padding: var(--core-space-s) var(--core-space-m) var(--core-space-m);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--compact {
|
|
24
|
+
padding: var(--core-space-2xs) var(--core-space-s);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--subdued {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--white {
|
|
32
|
+
background-color: var(--color-base-background-white);
|
|
33
|
+
border: 1px solid var(--color-base-border-onlight-subtle);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__content {
|
|
37
|
+
@include fonts.help-text;
|
|
38
|
+
|
|
39
|
+
margin-top: 0.625rem;
|
|
40
|
+
|
|
41
|
+
&--compact {
|
|
42
|
+
margin-top: 0.625rem;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__icon {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
gap: var(--core-space-xs);
|
|
49
|
+
margin-right: var(--core-space-3xs);
|
|
50
|
+
margin-bottom: 0;
|
|
51
|
+
|
|
52
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
53
|
+
margin-right: var(--core-space-2xs);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
57
|
+
margin-right: var(--core-space-s);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&--compact {
|
|
61
|
+
margin-right: var(--core-space-2xs);
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__title-wrapper {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
6
70
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
'help-panel': string;
|
|
3
|
+
'help-panel__content': string;
|
|
4
|
+
'help-panel__content--compact': string;
|
|
5
|
+
'help-panel__icon': string;
|
|
6
|
+
'help-panel__icon--compact': string;
|
|
7
|
+
'help-panel__title-wrapper': string;
|
|
8
|
+
'help-panel--compact': string;
|
|
9
|
+
'help-panel--subdued': string;
|
|
10
|
+
'help-panel--white': string;
|
|
3
11
|
};
|
|
4
12
|
|
|
5
13
|
export type ClassNames = keyof Styles;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { HNDesignsystemInfoTeaser } from '../../resources/Resources';
|
|
2
|
-
import { InfoTeaserTags } from '../InfoTeaser';
|
|
3
2
|
import { TitleTags } from '../Title';
|
|
3
|
+
export type HelpTeaserVariants = 'normal' | 'subdued';
|
|
4
|
+
export type HelpTeaserTags = 'div' | 'section' | 'aside' | 'article';
|
|
4
5
|
export interface HelpTeaserProps {
|
|
5
6
|
/** What's in the box? */
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
/** Override the default max height for collapsed teaser. Default is 12.25rem */
|
|
8
9
|
collapsedMaxHeight?: string;
|
|
9
10
|
/** Changes the underlying element of the wrapper */
|
|
10
|
-
htmlMarkup?:
|
|
11
|
+
htmlMarkup?: HelpTeaserTags;
|
|
11
12
|
/** Resources for component */
|
|
12
13
|
resources?: Partial<HNDesignsystemInfoTeaser>;
|
|
13
14
|
/** Sets the data-testid attribute */
|
|
@@ -16,6 +17,8 @@ export interface HelpTeaserProps {
|
|
|
16
17
|
title: string;
|
|
17
18
|
/** Markup props for title */
|
|
18
19
|
titleHtmlMarkup?: TitleTags;
|
|
20
|
+
/** Sets the visual variant */
|
|
21
|
+
variant?: HelpTeaserVariants;
|
|
19
22
|
}
|
|
20
23
|
declare const HelpTeaser: React.FC<HelpTeaserProps>;
|
|
21
24
|
export default HelpTeaser;
|
|
@@ -1,21 +1,66 @@
|
|
|
1
|
+
import { IconSize, LanguageLocales } from "../../constants.js";
|
|
2
|
+
import { t as Icon_default } from "../../Icon.js";
|
|
3
|
+
import { useLanguage } from "../../hooks/useLanguage.js";
|
|
4
|
+
import { useIsMobileBreakpoint } from "../../hooks/useIsMobileBreakpoint.js";
|
|
5
|
+
import Title_default from "../Title/index.js";
|
|
6
|
+
import { useExpand } from "../../hooks/useExpand.js";
|
|
1
7
|
import HandWaving from "../Icons/HandWaving.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
8
|
+
import { t as getResources } from "../../resourceHelper2.js";
|
|
9
|
+
import classNames from "classnames";
|
|
10
|
+
import { useId } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
12
|
import styles from "./styles.module.scss";
|
|
5
13
|
//#region src/components/HelpTeaser/HelpTeaser.tsx
|
|
6
14
|
var HelpTeaser = (props) => {
|
|
7
|
-
const { children, htmlMarkup, resources, testId, title, titleHtmlMarkup, collapsedMaxHeight } = props;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const { children, htmlMarkup, resources, testId, title, titleHtmlMarkup, collapsedMaxHeight, variant = "normal" } = props;
|
|
16
|
+
const [isExpanded, setIsExpanded] = useExpand(false);
|
|
17
|
+
const { language } = useLanguage(LanguageLocales.NORWEGIAN);
|
|
18
|
+
const defaultResources = getResources(language);
|
|
19
|
+
const helpTeaserTextId = useId();
|
|
20
|
+
const isMobile = useIsMobileBreakpoint();
|
|
21
|
+
const mergedResources = {
|
|
22
|
+
...defaultResources,
|
|
23
|
+
...resources
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ jsxs(htmlMarkup ?? "div", {
|
|
26
|
+
className: styles.wrapper,
|
|
27
|
+
"data-testid": testId,
|
|
28
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: classNames(styles.helpteaser, {
|
|
30
|
+
[styles["helpteaser--collapsed"]]: !isExpanded,
|
|
31
|
+
[styles["helpteaser--subdued"]]: variant === "subdued"
|
|
32
|
+
}),
|
|
33
|
+
style: { maxHeight: !isExpanded ? collapsedMaxHeight ?? "12.25rem" : void 0 },
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx(Icon_default, {
|
|
36
|
+
svgIcon: HandWaving,
|
|
37
|
+
size: isMobile ? IconSize.XSmall : IconSize.Small,
|
|
38
|
+
className: styles["helpteaser__icon"]
|
|
39
|
+
}),
|
|
40
|
+
title && typeof title !== "undefined" && /* @__PURE__ */ jsx(Title_default, {
|
|
41
|
+
testId: "titleId",
|
|
42
|
+
htmlMarkup: titleHtmlMarkup ?? "h2",
|
|
43
|
+
appearance: "title6",
|
|
44
|
+
className: styles["helpteaser__title"],
|
|
45
|
+
children: title
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: styles["helpteaser__text"],
|
|
49
|
+
"aria-hidden": isExpanded ? false : true,
|
|
50
|
+
id: helpTeaserTextId,
|
|
51
|
+
children
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
className: styles["helpteaser__button"],
|
|
57
|
+
onClick: () => {
|
|
58
|
+
setIsExpanded(!isExpanded);
|
|
59
|
+
},
|
|
60
|
+
"aria-expanded": isExpanded,
|
|
61
|
+
"aria-controls": helpTeaserTextId,
|
|
62
|
+
children: isExpanded ? mergedResources.expandButtonOpen : mergedResources.expandButtonClose
|
|
63
|
+
})]
|
|
19
64
|
});
|
|
20
65
|
};
|
|
21
66
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTeaser/HelpTeaser.tsx","../../../src/components/HelpTeaser/index.ts"],"sourcesContent":["import type { HNDesignsystemInfoTeaser } from '../../resources/Resources';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTeaser/HelpTeaser.tsx","../../../src/components/HelpTeaser/index.ts"],"sourcesContent":["import { useId } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { HNDesignsystemInfoTeaser } from '../../resources/Resources';\nimport type { TitleTags } from '../Title';\n\nimport { useIsMobileBreakpoint } from '@helsenorge/designsystem-react/hooks/useIsMobileBreakpoint';\n\nimport { LanguageLocales } from '../../constants';\nimport { useExpand } from '../../hooks/useExpand';\nimport { useLanguage } from '../../hooks/useLanguage';\nimport Icon, { IconSize } from '../Icon';\nimport HandWaving from '../Icons/HandWaving';\nimport { getResources } from '../InfoTeaser/resourceHelper';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HelpTeaserVariants = 'normal' | 'subdued';\nexport type HelpTeaserTags = 'div' | 'section' | 'aside' | 'article';\n\nexport interface HelpTeaserProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Override the default max height for collapsed teaser. Default is 12.25rem */\n collapsedMaxHeight?: string;\n /** Changes the underlying element of the wrapper */\n htmlMarkup?: HelpTeaserTags;\n /** Resources for component */\n resources?: Partial<HNDesignsystemInfoTeaser>;\n /** Sets the data-testid attribute */\n testId?: string;\n /** Title on top of the component */\n title: string;\n /** Markup props for title */\n titleHtmlMarkup?: TitleTags;\n /** Sets the visual variant */\n variant?: HelpTeaserVariants;\n}\n\nconst HelpTeaser: React.FC<HelpTeaserProps> = props => {\n const { children, htmlMarkup, resources, testId, title, titleHtmlMarkup, collapsedMaxHeight, variant = 'normal' } = props;\n\n const [isExpanded, setIsExpanded] = useExpand(false);\n const { language } = useLanguage<LanguageLocales>(LanguageLocales.NORWEGIAN);\n const defaultResources = getResources(language);\n const helpTeaserTextId = useId();\n const isMobile = useIsMobileBreakpoint();\n\n const mergedResources: HNDesignsystemInfoTeaser = {\n ...defaultResources,\n ...resources,\n };\n\n const WrapperTag = htmlMarkup ?? 'div';\n\n return (\n <WrapperTag className={styles.wrapper} data-testid={testId}>\n <div\n className={classNames(styles.helpteaser, {\n [styles['helpteaser--collapsed']]: !isExpanded,\n [styles['helpteaser--subdued']]: variant === 'subdued',\n })}\n style={{ maxHeight: !isExpanded ? (collapsedMaxHeight ?? '12.25rem') : undefined }}\n >\n <Icon svgIcon={HandWaving} size={isMobile ? IconSize.XSmall : IconSize.Small} className={styles['helpteaser__icon']} />\n {title && typeof title !== 'undefined' && (\n <Title testId=\"titleId\" htmlMarkup={titleHtmlMarkup ?? 'h2'} appearance=\"title6\" className={styles['helpteaser__title']}>\n {title}\n </Title>\n )}\n <div className={styles['helpteaser__text']} aria-hidden={isExpanded ? false : true} id={helpTeaserTextId}>\n {children}\n </div>\n </div>\n <button\n type=\"button\"\n className={styles['helpteaser__button']}\n onClick={() => {\n setIsExpanded(!isExpanded);\n }}\n aria-expanded={isExpanded}\n aria-controls={helpTeaserTextId}\n >\n {isExpanded ? mergedResources.expandButtonOpen : mergedResources.expandButtonClose}\n </button>\n </WrapperTag>\n );\n};\n\nexport default HelpTeaser;\n","import HelpTeaser from './HelpTeaser';\nexport * from './HelpTeaser';\nexport default HelpTeaser;\n"],"mappings":";;;;;;;;;;;;;AAyCA,IAAM,cAAwC,UAAS;CACrD,MAAM,EAAE,UAAU,YAAY,WAAW,QAAQ,OAAO,iBAAiB,oBAAoB,UAAU,aAAa;CAEpH,MAAM,CAAC,YAAY,iBAAiB,UAAU,KAAK;CACnD,MAAM,EAAE,aAAa,YAA6B,gBAAgB,SAAS;CAC3E,MAAM,mBAAmB,aAAa,QAAQ;CAC9C,MAAM,mBAAmB,MAAM;CAC/B,MAAM,WAAW,sBAAsB;CAEvC,MAAM,kBAA4C;EAChD,GAAG;EACH,GAAG;CACL;CAIA,OACE,qBAHiB,cAAc,OAG/B;EAAY,WAAW,OAAO;EAAS,eAAa;EAApD,UAAA,CACE,qBAAC,OAAD;GACE,WAAW,WAAW,OAAO,YAAY;KACtC,OAAO,2BAA2B,CAAC;KACnC,OAAO,yBAAyB,YAAY;GAC/C,CAAC;GACD,OAAO,EAAE,WAAW,CAAC,aAAc,sBAAsB,aAAc,KAAA,EAAU;GALnF,UAAA;IAOE,oBAAC,cAAD;KAAM,SAAS;KAAY,MAAM,WAAW,SAAS,SAAS,SAAS;KAAO,WAAW,OAAO;IAAsB,CAAA;IACrH,SAAS,OAAO,UAAU,eACzB,oBAAC,eAAD;KAAO,QAAO;KAAU,YAAY,mBAAmB;KAAM,YAAW;KAAS,WAAW,OAAO;KAChG,UAAA;IACI,CAAA;IAET,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAqB,eAAa,aAAa,QAAQ;KAAM,IAAI;KACrF;IACE,CAAA;GACF;EACL,CAAA,GAAA,oBAAC,UAAD;GACE,MAAK;GACL,WAAW,OAAO;GAClB,eAAe;IACb,cAAc,CAAC,UAAU;GAC3B;GACA,iBAAe;GACf,iBAAe;GAEd,UAAA,aAAa,gBAAgB,mBAAmB,gBAAgB;EAC3D,CAAA,CACE;;AAEhB;;;ACvFA,IAAA,qBAAe"}
|
|
@@ -1,14 +1,111 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../scss/font-mixins' as fonts;
|
|
3
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
1
4
|
@import '../../scss/supernova/styles/colors.css';
|
|
5
|
+
@import '../../scss/supernova/styles/spacers.css';
|
|
6
|
+
|
|
7
|
+
.wrapper {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
.helpteaser {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: [icon] auto [content] 1fr;
|
|
14
|
+
width: 100%;
|
|
15
|
+
overflow: hidden;
|
|
4
16
|
background-color: var(--color-help-background-normal);
|
|
5
17
|
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
18
|
+
padding: var(--core-space-xs) var(--core-space-xs) var(--core-space-m);
|
|
19
|
+
|
|
20
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
21
|
+
padding: var(--core-space-s) var(--core-space-s) var(--core-space-m);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
25
|
+
padding: var(--core-space-s) var(--core-space-s) var(--core-space-l);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
29
|
+
padding: var(--core-space-s) var(--core-space-m) var(--core-space-l);
|
|
30
|
+
}
|
|
6
31
|
|
|
7
|
-
|
|
8
|
-
background:
|
|
32
|
+
&--subdued {
|
|
33
|
+
background-color: var(--color-base-background-white);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--collapsed {
|
|
37
|
+
&::after {
|
|
38
|
+
content: '';
|
|
39
|
+
position: absolute;
|
|
40
|
+
height: 5.875rem;
|
|
41
|
+
background: linear-gradient(180deg, #f4ecfe40 0%, #f4ecfe 80%);
|
|
42
|
+
|
|
43
|
+
/* 1px på hver side for å ikke ligge over border */
|
|
44
|
+
bottom: 1px;
|
|
45
|
+
left: 1px;
|
|
46
|
+
width: calc(100% - 2px);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--collapsed#{&}--subdued {
|
|
51
|
+
&::after {
|
|
52
|
+
background: linear-gradient(180deg, #fff6 0%, #fff 80%);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__title {
|
|
57
|
+
grid-column: content;
|
|
58
|
+
grid-row: 1;
|
|
59
|
+
align-self: center;
|
|
60
|
+
padding: var(--core-space-2xs) 0;
|
|
61
|
+
|
|
62
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
63
|
+
padding-top: 0.62rem;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__icon {
|
|
68
|
+
grid-column: icon;
|
|
69
|
+
grid-row: 1;
|
|
70
|
+
align-self: center;
|
|
71
|
+
margin-right: var(--core-space-3xs);
|
|
72
|
+
|
|
73
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
74
|
+
margin-right: var(--core-space-2xs);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
78
|
+
margin-right: var(--core-space-s);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__text {
|
|
83
|
+
@include fonts.help-text;
|
|
84
|
+
|
|
85
|
+
grid-column: content;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
height: inherit;
|
|
9
88
|
}
|
|
10
89
|
|
|
11
90
|
&__button {
|
|
91
|
+
position: absolute;
|
|
92
|
+
right: calc(50%);
|
|
93
|
+
border: none;
|
|
94
|
+
width: fit-content;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
border-radius: 1.25rem;
|
|
97
|
+
color: var(--core-color-white, #fff);
|
|
98
|
+
padding: 0.375rem 1rem;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 50%;
|
|
101
|
+
transform: translateX(-50%) translateY(50%);
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
|
|
104
|
+
/* @todo Mobile/HelpTriggerText */
|
|
105
|
+
font-size: 1rem;
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
line-height: 120%; // 1.2rem
|
|
12
109
|
background-color: var(--color-help-graphics-normal);
|
|
13
110
|
|
|
14
111
|
&:hover {
|
|
@@ -18,5 +115,11 @@
|
|
|
18
115
|
&:active {
|
|
19
116
|
background-color: var(--color-help-graphics-dark);
|
|
20
117
|
}
|
|
118
|
+
|
|
119
|
+
&:focus-visible {
|
|
120
|
+
border: 1px solid var(--color-base-graphics-ondark);
|
|
121
|
+
outline: none;
|
|
122
|
+
box-shadow: 0 0 0 3px var(--color-base-graphics-onlight);
|
|
123
|
+
}
|
|
21
124
|
}
|
|
22
125
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
helpteaser: string;
|
|
3
3
|
helpteaser__button: string;
|
|
4
|
+
helpteaser__icon: string;
|
|
5
|
+
helpteaser__text: string;
|
|
6
|
+
helpteaser__title: string;
|
|
7
|
+
'helpteaser--collapsed': string;
|
|
8
|
+
'helpteaser--subdued': string;
|
|
9
|
+
wrapper: string;
|
|
4
10
|
};
|
|
5
11
|
|
|
6
12
|
export type ClassNames = keyof Styles;
|
|
@@ -13,10 +13,13 @@ var HelpTooltip = ({ children, description, testId }) => {
|
|
|
13
13
|
elements: { reference: wordRef.current },
|
|
14
14
|
onOpenChange: setShowTooltip
|
|
15
15
|
});
|
|
16
|
+
const hover = useHover(context, { move: false });
|
|
17
|
+
const focus = useFocus(context);
|
|
18
|
+
const dismiss = useDismiss(context);
|
|
16
19
|
const { getReferenceProps } = useInteractions([
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
hover,
|
|
21
|
+
focus,
|
|
22
|
+
dismiss
|
|
20
23
|
]);
|
|
21
24
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DictionaryTrigger_default, {
|
|
22
25
|
ref: wordRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTooltip/HelpTooltip.tsx","../../../src/components/HelpTooltip/index.ts"],"sourcesContent":["import { useState, useRef, useId } from 'react';\n\nimport { useFloating, useHover, useFocus, useDismiss, useInteractions, FloatingDelayGroup } from '@floating-ui/react';\n\nimport DictionaryTrigger from '../DictionaryTrigger';\nimport PopOver from '../PopOver';\n\nexport interface HelpTooltipProps {\n /** Ordet som skal ha en tilhørende tooltip. Det skal bare sendes inn string som children. Er satt til ReactNode for å kunne brukes i CMSet. */\n children: React.ReactNode;\n /** Teksten som skal vises i boblen som åpnes */\n description: React.ReactNode;\n /** Valgfri test-id */\n testId?: string;\n}\n\nexport const HelpTooltip: React.FC<HelpTooltipProps> = ({ children, description, testId }) => {\n const popoverId = useId();\n const [showTooltip, setShowTooltip] = useState(false);\n\n const wordRef = useRef<HTMLButtonElement>(null);\n const { refs, context } = useFloating({\n open: showTooltip,\n elements: {\n reference: wordRef.current,\n },\n onOpenChange: setShowTooltip,\n });\n\n const hover = useHover(context, { move: false });\n const focus = useFocus(context);\n const dismiss = useDismiss(context);\n\n const { getReferenceProps } = useInteractions([hover, focus, dismiss]);\n\n return (\n <>\n <DictionaryTrigger ref={wordRef} {...getReferenceProps()} selected={showTooltip} aria-describedby={popoverId} data-testid={testId}>\n {children}\n </DictionaryTrigger>\n <PopOver role=\"tooltip\" ref={refs.setFloating} id={popoverId} show={showTooltip} testId={testId} controllerRef={wordRef}>\n {description}\n </PopOver>\n </>\n );\n};\n\nexport const HelpTooltipDelayGroup = FloatingDelayGroup;\n\nexport default HelpTooltip;\n","import HelpTooltip from './HelpTooltip';\nexport * from './HelpTooltip';\nexport default HelpTooltip;\n"],"mappings":";;;;;;AAgBA,IAAa,eAA2C,EAAE,UAAU,aAAa,aAAa;CAC5F,MAAM,YAAY,MAAM;CACxB,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CAEpD,MAAM,UAAU,OAA0B,IAAI;CAC9C,MAAM,EAAE,MAAM,YAAY,YAAY;EACpC,MAAM;EACN,UAAU,EACR,WAAW,QAAQ,QACrB;EACA,cAAc;CAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTooltip/HelpTooltip.tsx","../../../src/components/HelpTooltip/index.ts"],"sourcesContent":["import { useState, useRef, useId } from 'react';\n\nimport { useFloating, useHover, useFocus, useDismiss, useInteractions, FloatingDelayGroup } from '@floating-ui/react';\n\nimport DictionaryTrigger from '../DictionaryTrigger';\nimport PopOver from '../PopOver';\n\nexport interface HelpTooltipProps {\n /** Ordet som skal ha en tilhørende tooltip. Det skal bare sendes inn string som children. Er satt til ReactNode for å kunne brukes i CMSet. */\n children: React.ReactNode;\n /** Teksten som skal vises i boblen som åpnes */\n description: React.ReactNode;\n /** Valgfri test-id */\n testId?: string;\n}\n\nexport const HelpTooltip: React.FC<HelpTooltipProps> = ({ children, description, testId }) => {\n const popoverId = useId();\n const [showTooltip, setShowTooltip] = useState(false);\n\n const wordRef = useRef<HTMLButtonElement>(null);\n const { refs, context } = useFloating({\n open: showTooltip,\n elements: {\n reference: wordRef.current,\n },\n onOpenChange: setShowTooltip,\n });\n\n const hover = useHover(context, { move: false });\n const focus = useFocus(context);\n const dismiss = useDismiss(context);\n\n const { getReferenceProps } = useInteractions([hover, focus, dismiss]);\n\n return (\n <>\n <DictionaryTrigger ref={wordRef} {...getReferenceProps()} selected={showTooltip} aria-describedby={popoverId} data-testid={testId}>\n {children}\n </DictionaryTrigger>\n <PopOver role=\"tooltip\" ref={refs.setFloating} id={popoverId} show={showTooltip} testId={testId} controllerRef={wordRef}>\n {description}\n </PopOver>\n </>\n );\n};\n\nexport const HelpTooltipDelayGroup = FloatingDelayGroup;\n\nexport default HelpTooltip;\n","import HelpTooltip from './HelpTooltip';\nexport * from './HelpTooltip';\nexport default HelpTooltip;\n"],"mappings":";;;;;;AAgBA,IAAa,eAA2C,EAAE,UAAU,aAAa,aAAa;CAC5F,MAAM,YAAY,MAAM;CACxB,MAAM,CAAC,aAAa,kBAAkB,SAAS,KAAK;CAEpD,MAAM,UAAU,OAA0B,IAAI;CAC9C,MAAM,EAAE,MAAM,YAAY,YAAY;EACpC,MAAM;EACN,UAAU,EACR,WAAW,QAAQ,QACrB;EACA,cAAc;CAChB,CAAC;CAED,MAAM,QAAQ,SAAS,SAAS,EAAE,MAAM,MAAM,CAAC;CAC/C,MAAM,QAAQ,SAAS,OAAO;CAC9B,MAAM,UAAU,WAAW,OAAO;CAElC,MAAM,EAAE,sBAAsB,gBAAgB;EAAC;EAAO;EAAO;CAAO,CAAC;CAErE,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,2BAAD;EAAmB,KAAK;EAAS,GAAI,kBAAkB;EAAG,UAAU;EAAa,oBAAkB;EAAW,eAAa;EACxH;CACgB,CAAA,GACnB,oBAAC,iBAAD;EAAS,MAAK;EAAU,KAAK,KAAK;EAAa,IAAI;EAAW,MAAM;EAAqB;EAAQ,eAAe;EAC7G,UAAA;CACM,CAAA,CACT,EAAA,CAAA;AAEN;AAEA,IAAa,wBAAwB;;;AC7CrC,IAAA,sBAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTriggerInline/HelpTriggerInline.tsx","../../../src/components/HelpTriggerInline/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { HelpTriggerWeights } from '../HelpTriggerIcon';\n\nimport { AnalyticsId } from '../../constants';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { isMutableRefObject, mergeRefs } from '../../utils/refs';\nimport { HelpTriggerIconInternal } from '../HelpTriggerIcon';\n\nimport styles from './styles.module.scss';\n\nexport interface HelpTriggerInlineProps extends Pick<\n React.InputHTMLAttributes<HTMLButtonElement>,\n 'onClick' | 'aria-haspopup' | 'aria-controls' | 'aria-expanded'\n> {\n /**\n * Sets aria-label of the trigger. ariaLabel or ariaLabelledById MUST be set!\n */\n ariaLabel?: string;\n /**\n * Sets aria-labelledby of the trigger. ariaLabel or ariaLabelledById MUST be set!\n */\n ariaLabelledById?: string;\n /** Sets the text content of the HelpTriggerInline. */\n children: string;\n /**\n * Sets the colors of the help trigger. Default: normal.\n */\n weight?: HelpTriggerWeights;\n /**\n * Classname will be applied to the button element.\n */\n className?: string;\n /**\n * Optional test id.\n */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLButtonElement | null>;\n}\n\nconst HelpTriggerInline: React.FC<HelpTriggerInlineProps> = props => {\n const { ariaLabel, ariaLabelledById, children, className, testId, weight = 'normal', ref, ...rest } = props;\n const ariaLabelAttributes = getAriaLabelAttributes({ label: ariaLabel, id: ariaLabelledById });\n const helpTriggerInlineStyles = classNames(styles['help-trigger-inline'], className);\n const { refObject, isHovered } = usePseudoClasses<HTMLButtonElement>(isMutableRefObject(ref) ? ref : null);\n\n return (\n <button\n aria-label={ariaLabel}\n type=\"button\"\n data-testid={testId}\n data-analyticsid={AnalyticsId.HelpTriggerInline}\n className={helpTriggerInlineStyles}\n ref={mergeRefs([refObject, ref])}\n {...ariaLabelAttributes}\n {...rest}\n >\n <span className={styles['help-trigger-inline__text']}>{children}</span>\n <HelpTriggerIconInternal weight={weight} size={'inherit'} htmlMarkup={'span'} isHovered={isHovered} />\n </button>\n );\n};\n\nHelpTriggerInline.displayName = 'HelpTriggerInline';\n\nexport default HelpTriggerInline;\n","import HelpTriggerInline from './HelpTriggerInline';\nexport * from './HelpTriggerInline';\nexport default HelpTriggerInline;\n"],"mappings":";;;;;;;;;AA0CA,IAAM,qBAAsD,UAAS;CACnE,MAAM,EAAE,WAAW,kBAAkB,UAAU,WAAW,QAAQ,SAAS,UAAU,KAAK,GAAG,SAAS;CACtG,MAAM,sBAAsB,uBAAuB;EAAE,OAAO;EAAW,IAAI;CAAiB,CAAC;CAC7F,MAAM,0BAA0B,WAAW,OAAO,wBAAwB,SAAS;CACnF,MAAM,EAAE,WAAW,cAAc,iBAAoC,mBAAmB,GAAG,IAAI,MAAM,IAAI;CAEzG,OACE,qBAAC,UAAD;EACE,cAAY;EACZ,MAAK;EACL,eAAa;EACb,oBAAkB,YAAY;EAC9B,WAAW;EACX,KAAK,UAAU,CAAC,WAAW,GAAG,CAAC;EAC/B,GAAI;EACJ,GAAI;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTriggerInline/HelpTriggerInline.tsx","../../../src/components/HelpTriggerInline/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { HelpTriggerWeights } from '../HelpTriggerIcon';\n\nimport { AnalyticsId } from '../../constants';\nimport { usePseudoClasses } from '../../hooks/usePseudoClasses';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport { isMutableRefObject, mergeRefs } from '../../utils/refs';\nimport { HelpTriggerIconInternal } from '../HelpTriggerIcon';\n\nimport styles from './styles.module.scss';\n\nexport interface HelpTriggerInlineProps extends Pick<\n React.InputHTMLAttributes<HTMLButtonElement>,\n 'onClick' | 'aria-haspopup' | 'aria-controls' | 'aria-expanded'\n> {\n /**\n * Sets aria-label of the trigger. ariaLabel or ariaLabelledById MUST be set!\n */\n ariaLabel?: string;\n /**\n * Sets aria-labelledby of the trigger. ariaLabel or ariaLabelledById MUST be set!\n */\n ariaLabelledById?: string;\n /** Sets the text content of the HelpTriggerInline. */\n children: string;\n /**\n * Sets the colors of the help trigger. Default: normal.\n */\n weight?: HelpTriggerWeights;\n /**\n * Classname will be applied to the button element.\n */\n className?: string;\n /**\n * Optional test id.\n */\n testId?: string;\n /** Ref passed to the component */\n ref?: React.Ref<HTMLButtonElement | null>;\n}\n\nconst HelpTriggerInline: React.FC<HelpTriggerInlineProps> = props => {\n const { ariaLabel, ariaLabelledById, children, className, testId, weight = 'normal', ref, ...rest } = props;\n const ariaLabelAttributes = getAriaLabelAttributes({ label: ariaLabel, id: ariaLabelledById });\n const helpTriggerInlineStyles = classNames(styles['help-trigger-inline'], className);\n const { refObject, isHovered } = usePseudoClasses<HTMLButtonElement>(isMutableRefObject(ref) ? ref : null);\n\n return (\n <button\n aria-label={ariaLabel}\n type=\"button\"\n data-testid={testId}\n data-analyticsid={AnalyticsId.HelpTriggerInline}\n className={helpTriggerInlineStyles}\n ref={mergeRefs([refObject, ref])}\n {...ariaLabelAttributes}\n {...rest}\n >\n <span className={styles['help-trigger-inline__text']}>{children}</span>\n <HelpTriggerIconInternal weight={weight} size={'inherit'} htmlMarkup={'span'} isHovered={isHovered} />\n </button>\n );\n};\n\nHelpTriggerInline.displayName = 'HelpTriggerInline';\n\nexport default HelpTriggerInline;\n","import HelpTriggerInline from './HelpTriggerInline';\nexport * from './HelpTriggerInline';\nexport default HelpTriggerInline;\n"],"mappings":";;;;;;;;;AA0CA,IAAM,qBAAsD,UAAS;CACnE,MAAM,EAAE,WAAW,kBAAkB,UAAU,WAAW,QAAQ,SAAS,UAAU,KAAK,GAAG,SAAS;CACtG,MAAM,sBAAsB,uBAAuB;EAAE,OAAO;EAAW,IAAI;CAAiB,CAAC;CAC7F,MAAM,0BAA0B,WAAW,OAAO,wBAAwB,SAAS;CACnF,MAAM,EAAE,WAAW,cAAc,iBAAoC,mBAAmB,GAAG,IAAI,MAAM,IAAI;CAEzG,OACE,qBAAC,UAAD;EACE,cAAY;EACZ,MAAK;EACL,eAAa;EACb,oBAAkB,YAAY;EAC9B,WAAW;EACX,KAAK,UAAU,CAAC,WAAW,GAAG,CAAC;EAC/B,GAAI;EACJ,GAAI;EARN,UAAA,CAUE,oBAAC,QAAD;GAAM,WAAW,OAAO;GAA+B;EAAe,CAAA,GACtE,oBAAC,yBAAD;GAAiC;GAAQ,MAAM;GAAW,YAAY;GAAmB;EAAY,CAAA,CAC/F;;AAEZ;AAEA,kBAAkB,cAAc;;;AC/DhC,IAAA,4BAAe"}
|
|
@@ -1,2 +1,80 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnalyticsId, IconSize } from "../../constants.js";
|
|
2
|
+
import { t as Icon_default } from "../../Icon.js";
|
|
3
|
+
import { t as LazyIcon_default } from "../../LazyIcon.js";
|
|
4
|
+
import { Breakpoint, useBreakpoint } from "../../hooks/useBreakpoint.js";
|
|
5
|
+
import Title_default from "../Title/index.js";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import styles from "./styles.module.scss";
|
|
9
|
+
//#region src/components/HighlightPanel/HighlightPanel.tsx
|
|
10
|
+
var HighlightPanel = (props) => {
|
|
11
|
+
const { children, color = "white", testId, svgIcon, htmlMarkup = "div", className, variant = "normal", title, titleHtmlMarkup = "h2" } = props;
|
|
12
|
+
const breakpoint = useBreakpoint();
|
|
13
|
+
const containerClassName = classNames(styles.highlightpanel, styles[`highlightpanel--${color}`], svgIcon && styles["highlightpanel--has-icon"], className, { [styles["highlightpanel--compact"]]: variant === "compact" });
|
|
14
|
+
const renderContent = () => {
|
|
15
|
+
const titleElement = title && /* @__PURE__ */ jsx(Title_default, {
|
|
16
|
+
testId: "titleId",
|
|
17
|
+
htmlMarkup: titleHtmlMarkup,
|
|
18
|
+
appearance: variant === "compact" ? "title6" : "title4",
|
|
19
|
+
children: title
|
|
20
|
+
});
|
|
21
|
+
if (svgIcon) {
|
|
22
|
+
const iconSize = IconSize.Small;
|
|
23
|
+
if (variant === "compact") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: classNames(styles.highlightpanel__icon, styles["highlightpanel__icon--compact"]),
|
|
25
|
+
children: typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon_default, {
|
|
26
|
+
iconName: svgIcon,
|
|
27
|
+
size: iconSize
|
|
28
|
+
}) : /* @__PURE__ */ jsx(Icon_default, {
|
|
29
|
+
svgIcon,
|
|
30
|
+
size: iconSize
|
|
31
|
+
})
|
|
32
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
33
|
+
className: classNames(styles.highlightpanel__content, styles["highlightpanel__content--compact"]),
|
|
34
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
35
|
+
className: styles["highlightpanel__title-wrapper"],
|
|
36
|
+
children: titleElement
|
|
37
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: styles["highlightpanel__content__children--compact"],
|
|
39
|
+
children
|
|
40
|
+
})]
|
|
41
|
+
})] });
|
|
42
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: styles.highlightpanel__icon,
|
|
44
|
+
children: [typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon_default, {
|
|
45
|
+
iconName: svgIcon,
|
|
46
|
+
size: iconSize
|
|
47
|
+
}) : /* @__PURE__ */ jsx(Icon_default, {
|
|
48
|
+
svgIcon,
|
|
49
|
+
size: iconSize
|
|
50
|
+
}), title && breakpoint < Breakpoint.md && /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: styles["highlightpanel__title-wrapper"],
|
|
52
|
+
children: titleElement
|
|
53
|
+
})]
|
|
54
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: styles.highlightpanel__content,
|
|
56
|
+
children: [title && breakpoint >= Breakpoint.md && /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: styles["highlightpanel__title-wrapper"],
|
|
58
|
+
children: titleElement
|
|
59
|
+
}), children]
|
|
60
|
+
})] });
|
|
61
|
+
}
|
|
62
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [title && /* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: styles.highlightpanel__content,
|
|
64
|
+
children: /* @__PURE__ */ jsx("div", { children: titleElement })
|
|
65
|
+
}), children] });
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ jsx(htmlMarkup, {
|
|
68
|
+
className: containerClassName,
|
|
69
|
+
"data-testid": testId,
|
|
70
|
+
"data-analyticsid": AnalyticsId.HighlightPanel,
|
|
71
|
+
children: renderContent()
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/HighlightPanel/index.ts
|
|
76
|
+
var HighlightPanel_default = HighlightPanel;
|
|
77
|
+
//#endregion
|
|
2
78
|
export { HighlightPanel_default as default };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HighlightPanel/HighlightPanel.tsx","../../../src/components/HighlightPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { PaletteNames } from '../../theme/palette';\nimport type { SvgIcon } from '../Icon';\nimport type { IconName } from '../Icons/IconNames';\nimport type { TitleTags } from '../Title';\n\nimport { useBreakpoint, Breakpoint } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport Icon, { IconSize } from '../Icon';\nimport LazyIcon from '../LazyIcon';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HighlightPanelColors = Extract<PaletteNames, 'white' | 'neutral' | 'blueberry' | 'cherry'>;\n\nexport type HighlightPanelTags = Exclude<\n keyof HTMLElementTagNameMap,\n 'dir' | 'font' | 'frame' | 'frameset' | 'marquee' | 'applet' | 'basefont' | 'search'\n>;\n\nexport type HighlightPanelVariants = 'normal' | 'compact';\n\nexport interface HighlightPanelProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Changes the background color. Default: white */\n color?: HighlightPanelColors;\n /** Adds an icon to the highlightpanel. */\n svgIcon?: SvgIcon | IconName;\n /** Changes the underlying element. Default: div */\n htmlMarkup?: HighlightPanelTags;\n /** Adds custom classes to the element. */\n className?: string;\n /** Uses the compact styling if set to compact */\n variant?: HighlightPanelVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Element that is set after the icon-element in the DOM, often a title-element */\n title?: string;\n /** Markup props for title */\n titleHtmlMarkup?: TitleTags;\n}\n\nconst HighlightPanel: React.FC<HighlightPanelProps> = props => {\n const {\n children,\n color = 'white',\n testId,\n svgIcon,\n htmlMarkup = 'div',\n className,\n variant = 'normal',\n title,\n titleHtmlMarkup = 'h2',\n } = props;\n const breakpoint = useBreakpoint();\n\n const containerClassName = classNames(\n styles.highlightpanel,\n styles[`highlightpanel--${color}`],\n svgIcon && styles['highlightpanel--has-icon'],\n className,\n { [styles['highlightpanel--compact']]: variant === 'compact' }\n );\n\n const renderContent = (): React.ReactNode => {\n const titleElement = title && (\n <Title testId=\"titleId\" htmlMarkup={titleHtmlMarkup} appearance={variant === 'compact' ? 'title6' : 'title4'}>\n {title}\n </Title>\n );\n\n if (svgIcon) {\n const iconSize = IconSize.Small;\n\n if (variant === 'compact') {\n return (\n <>\n <div className={classNames(styles.highlightpanel__icon, styles['highlightpanel__icon--compact'])}>\n {typeof svgIcon === 'string' ? <LazyIcon iconName={svgIcon} size={iconSize} /> : <Icon svgIcon={svgIcon} size={iconSize} />}\n </div>\n <div className={classNames(styles.highlightpanel__content, styles['highlightpanel__content--compact'])}>\n {title && <div className={styles['highlightpanel__title-wrapper']}>{titleElement}</div>}\n <div className={styles['highlightpanel__content__children--compact']}>{children}</div>\n </div>\n </>\n );\n }\n\n return (\n <>\n <div className={styles.highlightpanel__icon}>\n {typeof svgIcon === 'string' ? <LazyIcon iconName={svgIcon} size={iconSize} /> : <Icon svgIcon={svgIcon} size={iconSize} />}\n {title && breakpoint < Breakpoint.md && <div className={styles['highlightpanel__title-wrapper']}>{titleElement}</div>}\n </div>\n <div className={styles.highlightpanel__content}>\n {title && breakpoint >= Breakpoint.md && <div className={styles['highlightpanel__title-wrapper']}>{titleElement}</div>}\n {children}\n </div>\n </>\n );\n }\n\n return (\n <>\n {title && (\n <div className={styles.highlightpanel__content}>\n <div>{titleElement}</div>\n </div>\n )}\n {children}\n </>\n );\n };\n\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={containerClassName} data-testid={testId} data-analyticsid={AnalyticsId.HighlightPanel}>\n {renderContent()}\n </CustomTag>\n );\n};\n\nexport default HighlightPanel;\n","import HighlightPanel from './HighlightPanel';\nexport * from './HighlightPanel';\nexport default HighlightPanel;\n"],"mappings":";;;;;;;;;AA6CA,IAAM,kBAAgD,UAAS;CAC7D,MAAM,EACJ,UACA,QAAQ,SACR,QACA,SACA,aAAa,OACb,WACA,UAAU,UACV,OACA,kBAAkB,SAChB;CACJ,MAAM,aAAa,cAAc;CAEjC,MAAM,qBAAqB,WACzB,OAAO,gBACP,OAAO,mBAAmB,UAC1B,WAAW,OAAO,6BAClB,WACA,GAAG,OAAO,6BAA6B,YAAY,UAAU,CAC/D;CAEA,MAAM,sBAAuC;EAC3C,MAAM,eAAe,SACnB,oBAAC,eAAD;GAAO,QAAO;GAAU,YAAY;GAAiB,YAAY,YAAY,YAAY,WAAW;GACjG,UAAA;EACI,CAAA;EAGT,IAAI,SAAS;GACX,MAAM,WAAW,SAAS;GAE1B,IAAI,YAAY,WACd,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;IAAK,WAAW,WAAW,OAAO,sBAAsB,OAAO,gCAAgC;IAC5F,UAAA,OAAO,YAAY,WAAW,oBAAC,kBAAD;KAAU,UAAU;KAAS,MAAM;IAAW,CAAA,IAAI,oBAAC,cAAD;KAAe;KAAS,MAAM;IAAW,CAAA;GACvH,CAAA,GACL,qBAAC,OAAD;IAAK,WAAW,WAAW,OAAO,yBAAyB,OAAO,mCAAmC;IAArG,UAAA,CACG,SAAS,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAmC,UAAA;IAAkB,CAAA,GACtF,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAgD;IAAc,CAAA,CAClF;GACL,CAAA,CAAA,EAAA,CAAA;GAIN,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,qBAAC,OAAD;IAAK,WAAW,OAAO;IAAvB,UAAA,CACG,OAAO,YAAY,WAAW,oBAAC,kBAAD;KAAU,UAAU;KAAS,MAAM;IAAW,CAAA,IAAI,oBAAC,cAAD;KAAe;KAAS,MAAM;IAAW,CAAA,GACzH,SAAS,aAAa,WAAW,MAAM,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAmC,UAAA;IAAkB,CAAA,CACjH;GACL,CAAA,GAAA,qBAAC,OAAD;IAAK,WAAW,OAAO;IAAvB,UAAA,CACG,SAAS,cAAc,WAAW,MAAM,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAmC,UAAA;IAAkB,CAAA,GACpH,QACE;GACL,CAAA,CAAA,EAAA,CAAA;EAEN;EAEA,OACE,qBAAA,UAAA,EAAA,UAAA,CACG,SACC,oBAAC,OAAD;GAAK,WAAW,OAAO;GACrB,UAAA,oBAAC,OAAD,EAAA,UAAM,aAAkB,CAAA;EACrB,CAAA,GAEN,QACD,EAAA,CAAA;CAEN;CAIA,OACE,oBAAC,YAAD;EAAW,WAAW;EAAoB,eAAa;EAAQ,oBAAkB,YAAY;EAC1F,UAAA,cAAc;CACN,CAAA;AAEf;;;AC1HA,IAAA,yBAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmClock.js","names":[],"sources":["../../../src/components/Icons/AlarmClock.tsx"],"sourcesContent":["import type { SvgPathProps } from '../Icon';\n\nimport { getIcon } from '../Icon/utils';\n\nconst AlarmClock: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <g fillRule=\"evenodd\">\n <path d=\"M24.65 25.937h-4.88v-1.3h3.58v-4.862h1.3zM16.272 36.651l-.954-.883 2.632-2.845.954.883zM31.728 36.651l-2.632-2.845.954-.883 2.632 2.845z\" />\n <path d=\"M24 14.602c-5.447 0-9.879 4.432-9.879 9.88 0 5.446 4.432 9.877 9.879 9.877 5.447 0 9.878-4.43 9.878-9.878 0-5.447-4.431-9.879-9.878-9.879m0 21.057c-6.164 0-11.179-5.015-11.179-11.178 0-6.164 5.015-11.179 11.179-11.179 6.164 0 11.178 5.015 11.178 11.18 0 6.162-5.014 11.177-11.178 11.177\" />\n <path d=\"M16.287 12.44h-.005a3.418 3.418 0 00-2.435 1.013 3.435 3.435 0 00.557 5.306 11.19 11.19 0 014.936-4.43 3.407 3.407 0 00-3.053-1.89zm-1.33 8.03l-.556-.241a4.74 4.74 0 01-2.859-4.336 4.707 4.707 0 011.384-3.357 4.715 4.715 0 013.354-1.396h.007c2.08 0 3.892 1.344 4.513 3.346l.18.579-.565.219a9.885 9.885 0 00-5.178 4.649l-.28.538zm13.704-6.14a11.179 11.179 0 014.935 4.428 3.438 3.438 0 001.563-2.879 3.45 3.45 0 00-3.446-3.44h-.006a3.407 3.407 0 00-3.046 1.89zm4.382 6.14l-.28-.537a9.884 9.884 0 00-5.178-4.649l-.563-.22.179-.578a4.713 4.713 0 014.504-3.346h.008a4.75 4.75 0 014.745 4.737 4.738 4.738 0 01-2.86 4.35l-.555.242z\" />\n </g>\n );\n\n const normalHover = (\n <g fillRule=\"evenodd\">\n <path d=\"M24.65 25.937h-4.88v-1.3h3.58v-4.862h1.3zM16.272 36.651l-.954-.883 2.632-2.845.954.883zM31.728 36.651l-2.632-2.845.954-.883 2.632 2.845z\" />\n <path d=\"M24 14.602c-5.447 0-9.88 4.432-9.88 9.88 0 5.446 4.433 9.877 9.88 9.877 5.447 0 9.878-4.43 9.878-9.878 0-5.447-4.431-9.879-9.878-9.879m0 21.057c-6.164 0-11.18-5.015-11.18-11.178 0-6.164 5.016-11.179 11.18-11.179s11.178 5.015 11.178 11.18c0 6.162-5.014 11.177-11.178 11.177\" />\n <path d=\"M28.66 14.329a11.184 11.184 0 014.936 4.43 3.437 3.437 0 00-1.878-6.319h-.006a3.407 3.407 0 00-3.052 1.889zm4.383 6.142l-.28-.538a9.88 9.88 0 00-5.179-4.649l-.564-.22.18-.578c.621-2.002 2.434-3.346 4.512-3.346h.008a4.715 4.715 0 013.354 1.396 4.71 4.71 0 011.384 3.357 4.742 4.742 0 01-2.859 4.336l-.556.242zm7.718-7.195l-1.3-.008c.014-2.44-1.794-5.082-4.737-5.1l.008-1.3c3.746.022 6.047 3.343 6.03 6.408\" />\n <path d=\"M43.778 13.225l-1.3-.008c.011-1.962-.72-3.954-2.006-5.465-.99-1.163-2.744-2.552-5.477-2.568l.008-1.299c2.516.014 4.81 1.088 6.46 3.024 1.484 1.744 2.328 4.046 2.315 6.316m-27.491-.785h-.005a3.418 3.418 0 00-2.435 1.013 3.435 3.435 0 00.557 5.306 11.179 11.179 0 014.936-4.43 3.407 3.407 0 00-3.053-1.89zm-1.33 8.03l-.556-.241a4.74 4.74 0 01-2.86-4.336 4.707 4.707 0 011.385-3.357 4.715 4.715 0 013.354-1.396h.007c2.079 0 3.892 1.344 4.513 3.346l.179.579-.564.219a9.882 9.882 0 00-5.178 4.649l-.28.538zm-7.718-7.194c-.018-3.065 2.283-6.386 6.03-6.407l.008 1.3c-2.944.017-4.752 2.66-4.738 5.099l-1.3.008z\" />\n <path d=\"M4.254 13.006c-.025-4.378 3.256-9.122 8.6-9.152l.007 1.3c-4.54.025-7.328 4.092-7.307 7.844l-1.3.008z\" />\n </g>\n );\n\n const xSmall = (\n <path\n fillRule=\"evenodd\"\n d=\"M23.869 33.994c-5.32 0-9.646-4.326-9.646-9.644a9.588 9.588 0 011.98-5.83c.03-.04.06-.082.09-.12a9.601 9.601 0 011.07-1.15l.13-.118a9.554 9.554 0 011.375-1.013 9.573 9.573 0 015-1.413 9.577 9.577 0 014.997 1.41l.108.066a9.63 9.63 0 011.397 1.066c.387.354.747.737 1.072 1.15.032.04.061.082.092.122a9.576 9.576 0 011.98 5.83c0 5.318-4.327 9.644-9.645 9.644zM12.945 15.76a3.187 3.187 0 01.936-2.272 3.19 3.19 0 012.27-.944h.006c1.137 0 2.158.599 2.726 1.549-.028.012-.05.031-.077.044a11.47 11.47 0 00-2.445 1.64c-.08.07-.156.14-.233.21-.32.297-.628.61-.913.942-.03.035-.062.065-.091.1-.312.372-.596.769-.859 1.18-.019.028-.043.053-.062.084a3.196 3.196 0 01-1.258-2.533zm18.632-3.216h.005c.855 0 1.66.332 2.266.936a3.196 3.196 0 01-.315 4.811c-.019-.03-.044-.056-.063-.087-.264-.41-.548-.806-.86-1.178l-.082-.09c-.29-.337-.6-.653-.925-.954l-.223-.203a11.462 11.462 0 00-2.445-1.64c-.027-.013-.053-.032-.08-.046a3.165 3.165 0 012.722-1.549zm3.705 11.807c0-1.593-.33-3.11-.923-4.488a4.95 4.95 0 00.738-7.635 4.947 4.947 0 00-3.515-1.452h-.008a4.926 4.926 0 00-4.37 2.661 11.37 11.37 0 00-6.67 0 4.924 4.924 0 00-4.377-2.661h-.009a4.945 4.945 0 00-3.519 1.464 4.94 4.94 0 00-1.454 3.523 4.968 4.968 0 002.202 4.101 11.33 11.33 0 00-.922 4.487c0 3.686 1.763 6.96 4.484 9.048l-1.925 2.08 1.299 1.2 2.122-2.294a11.34 11.34 0 005.434 1.379c1.965 0 3.817-.5 5.434-1.379l2.12 2.294 1.3-1.2-1.926-2.08c2.72-2.088 4.485-5.362 4.485-9.048zm-12.297-.078h-3.346v1.768h5.114v-6.395h-1.768v4.627z\"\n />\n );\n\n const xSmallHover = (\n <path\n fillRule=\"evenodd\"\n d=\"M33.534 18.292c-.021-.033-.048-.062-.07-.095-.26-.404-.539-.795-.847-1.162-.037-.043-.077-.082-.114-.125a11.665 11.665 0 00-1.134-1.14 11.395 11.395 0 00-2.434-1.632c-.028-.013-.053-.032-.08-.046a3.168 3.168 0 012.725-1.549h.006a3.192 3.192 0 012.27.944 3.198 3.198 0 01-.322 4.805zm-9.666 15.702c-5.318 0-9.644-4.326-9.644-9.644a9.578 9.578 0 011.98-5.83l.09-.121a9.623 9.623 0 011.072-1.15 9.615 9.615 0 011.5-1.128 9.58 9.58 0 015.002-1.415 9.58 9.58 0 014.996 1.41l.111.067c.447.28.868.598 1.262.944l.142.129a9.7 9.7 0 011.058 1.137c.036.045.07.093.105.139a9.573 9.573 0 011.97 5.818c0 5.318-4.326 9.644-9.644 9.644zM12.945 15.759a3.213 3.213 0 013.204-3.216h.007c1.138 0 2.158.599 2.727 1.549-.026.012-.048.03-.075.043a11.458 11.458 0 00-3.595 2.796c-.028.033-.06.063-.087.096-.313.373-.597.77-.861 1.18-.02.03-.043.056-.062.085a3.196 3.196 0 01-1.258-2.533zm23.616.003a4.947 4.947 0 00-1.453-3.523 4.945 4.945 0 00-3.52-1.464h-.008c-1.87 0-3.53 1.04-4.378 2.661a11.355 11.355 0 00-3.334-.499c-1.16 0-2.278.176-3.333.5a4.926 4.926 0 00-4.38-2.662h-.008a4.986 4.986 0 00-4.97 4.987 4.963 4.963 0 002.2 4.101 11.352 11.352 0 00-.921 4.487c0 3.686 1.763 6.959 4.483 9.048l-1.925 2.079 1.297 1.202 2.123-2.295c1.617.88 3.469 1.38 5.434 1.38 1.966 0 3.816-.5 5.433-1.38l2.124 2.295 1.297-1.202-1.925-2.08c2.72-2.088 4.484-5.361 4.484-9.047 0-1.593-.33-3.109-.922-4.487a4.963 4.963 0 002.202-4.101zm2.661-7.097c-1.18-1.383-2.82-2.152-4.62-2.162l-.01 1.768c1.638.01 2.689.844 3.284 1.541a5.158 5.158 0 011.218 3.323l1.77.01a6.96 6.96 0 00-1.642-4.48zM13.137 6.503c-3.892.022-6.282 3.466-6.264 6.643l1.768-.01c-.013-2.327 1.707-4.849 4.504-4.865l-.008-1.768zm9.846 17.768h-3.345v1.769h5.115v-6.395h-1.77v4.626z\"\n />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default AlarmClock;\n"],"mappings":";;;AAIA,IAAM,cAAsC,EAAE,MAAM,gBAAkD;CAiCpG,OAAO,QAAQ;EAAE;EAAM;EAAW,QA/BhC,qBAAC,KAAD;GAAG,UAAS;
|
|
1
|
+
{"version":3,"file":"AlarmClock.js","names":[],"sources":["../../../src/components/Icons/AlarmClock.tsx"],"sourcesContent":["import type { SvgPathProps } from '../Icon';\n\nimport { getIcon } from '../Icon/utils';\n\nconst AlarmClock: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <g fillRule=\"evenodd\">\n <path d=\"M24.65 25.937h-4.88v-1.3h3.58v-4.862h1.3zM16.272 36.651l-.954-.883 2.632-2.845.954.883zM31.728 36.651l-2.632-2.845.954-.883 2.632 2.845z\" />\n <path d=\"M24 14.602c-5.447 0-9.879 4.432-9.879 9.88 0 5.446 4.432 9.877 9.879 9.877 5.447 0 9.878-4.43 9.878-9.878 0-5.447-4.431-9.879-9.878-9.879m0 21.057c-6.164 0-11.179-5.015-11.179-11.178 0-6.164 5.015-11.179 11.179-11.179 6.164 0 11.178 5.015 11.178 11.18 0 6.162-5.014 11.177-11.178 11.177\" />\n <path d=\"M16.287 12.44h-.005a3.418 3.418 0 00-2.435 1.013 3.435 3.435 0 00.557 5.306 11.19 11.19 0 014.936-4.43 3.407 3.407 0 00-3.053-1.89zm-1.33 8.03l-.556-.241a4.74 4.74 0 01-2.859-4.336 4.707 4.707 0 011.384-3.357 4.715 4.715 0 013.354-1.396h.007c2.08 0 3.892 1.344 4.513 3.346l.18.579-.565.219a9.885 9.885 0 00-5.178 4.649l-.28.538zm13.704-6.14a11.179 11.179 0 014.935 4.428 3.438 3.438 0 001.563-2.879 3.45 3.45 0 00-3.446-3.44h-.006a3.407 3.407 0 00-3.046 1.89zm4.382 6.14l-.28-.537a9.884 9.884 0 00-5.178-4.649l-.563-.22.179-.578a4.713 4.713 0 014.504-3.346h.008a4.75 4.75 0 014.745 4.737 4.738 4.738 0 01-2.86 4.35l-.555.242z\" />\n </g>\n );\n\n const normalHover = (\n <g fillRule=\"evenodd\">\n <path d=\"M24.65 25.937h-4.88v-1.3h3.58v-4.862h1.3zM16.272 36.651l-.954-.883 2.632-2.845.954.883zM31.728 36.651l-2.632-2.845.954-.883 2.632 2.845z\" />\n <path d=\"M24 14.602c-5.447 0-9.88 4.432-9.88 9.88 0 5.446 4.433 9.877 9.88 9.877 5.447 0 9.878-4.43 9.878-9.878 0-5.447-4.431-9.879-9.878-9.879m0 21.057c-6.164 0-11.18-5.015-11.18-11.178 0-6.164 5.016-11.179 11.18-11.179s11.178 5.015 11.178 11.18c0 6.162-5.014 11.177-11.178 11.177\" />\n <path d=\"M28.66 14.329a11.184 11.184 0 014.936 4.43 3.437 3.437 0 00-1.878-6.319h-.006a3.407 3.407 0 00-3.052 1.889zm4.383 6.142l-.28-.538a9.88 9.88 0 00-5.179-4.649l-.564-.22.18-.578c.621-2.002 2.434-3.346 4.512-3.346h.008a4.715 4.715 0 013.354 1.396 4.71 4.71 0 011.384 3.357 4.742 4.742 0 01-2.859 4.336l-.556.242zm7.718-7.195l-1.3-.008c.014-2.44-1.794-5.082-4.737-5.1l.008-1.3c3.746.022 6.047 3.343 6.03 6.408\" />\n <path d=\"M43.778 13.225l-1.3-.008c.011-1.962-.72-3.954-2.006-5.465-.99-1.163-2.744-2.552-5.477-2.568l.008-1.299c2.516.014 4.81 1.088 6.46 3.024 1.484 1.744 2.328 4.046 2.315 6.316m-27.491-.785h-.005a3.418 3.418 0 00-2.435 1.013 3.435 3.435 0 00.557 5.306 11.179 11.179 0 014.936-4.43 3.407 3.407 0 00-3.053-1.89zm-1.33 8.03l-.556-.241a4.74 4.74 0 01-2.86-4.336 4.707 4.707 0 011.385-3.357 4.715 4.715 0 013.354-1.396h.007c2.079 0 3.892 1.344 4.513 3.346l.179.579-.564.219a9.882 9.882 0 00-5.178 4.649l-.28.538zm-7.718-7.194c-.018-3.065 2.283-6.386 6.03-6.407l.008 1.3c-2.944.017-4.752 2.66-4.738 5.099l-1.3.008z\" />\n <path d=\"M4.254 13.006c-.025-4.378 3.256-9.122 8.6-9.152l.007 1.3c-4.54.025-7.328 4.092-7.307 7.844l-1.3.008z\" />\n </g>\n );\n\n const xSmall = (\n <path\n fillRule=\"evenodd\"\n d=\"M23.869 33.994c-5.32 0-9.646-4.326-9.646-9.644a9.588 9.588 0 011.98-5.83c.03-.04.06-.082.09-.12a9.601 9.601 0 011.07-1.15l.13-.118a9.554 9.554 0 011.375-1.013 9.573 9.573 0 015-1.413 9.577 9.577 0 014.997 1.41l.108.066a9.63 9.63 0 011.397 1.066c.387.354.747.737 1.072 1.15.032.04.061.082.092.122a9.576 9.576 0 011.98 5.83c0 5.318-4.327 9.644-9.645 9.644zM12.945 15.76a3.187 3.187 0 01.936-2.272 3.19 3.19 0 012.27-.944h.006c1.137 0 2.158.599 2.726 1.549-.028.012-.05.031-.077.044a11.47 11.47 0 00-2.445 1.64c-.08.07-.156.14-.233.21-.32.297-.628.61-.913.942-.03.035-.062.065-.091.1-.312.372-.596.769-.859 1.18-.019.028-.043.053-.062.084a3.196 3.196 0 01-1.258-2.533zm18.632-3.216h.005c.855 0 1.66.332 2.266.936a3.196 3.196 0 01-.315 4.811c-.019-.03-.044-.056-.063-.087-.264-.41-.548-.806-.86-1.178l-.082-.09c-.29-.337-.6-.653-.925-.954l-.223-.203a11.462 11.462 0 00-2.445-1.64c-.027-.013-.053-.032-.08-.046a3.165 3.165 0 012.722-1.549zm3.705 11.807c0-1.593-.33-3.11-.923-4.488a4.95 4.95 0 00.738-7.635 4.947 4.947 0 00-3.515-1.452h-.008a4.926 4.926 0 00-4.37 2.661 11.37 11.37 0 00-6.67 0 4.924 4.924 0 00-4.377-2.661h-.009a4.945 4.945 0 00-3.519 1.464 4.94 4.94 0 00-1.454 3.523 4.968 4.968 0 002.202 4.101 11.33 11.33 0 00-.922 4.487c0 3.686 1.763 6.96 4.484 9.048l-1.925 2.08 1.299 1.2 2.122-2.294a11.34 11.34 0 005.434 1.379c1.965 0 3.817-.5 5.434-1.379l2.12 2.294 1.3-1.2-1.926-2.08c2.72-2.088 4.485-5.362 4.485-9.048zm-12.297-.078h-3.346v1.768h5.114v-6.395h-1.768v4.627z\"\n />\n );\n\n const xSmallHover = (\n <path\n fillRule=\"evenodd\"\n d=\"M33.534 18.292c-.021-.033-.048-.062-.07-.095-.26-.404-.539-.795-.847-1.162-.037-.043-.077-.082-.114-.125a11.665 11.665 0 00-1.134-1.14 11.395 11.395 0 00-2.434-1.632c-.028-.013-.053-.032-.08-.046a3.168 3.168 0 012.725-1.549h.006a3.192 3.192 0 012.27.944 3.198 3.198 0 01-.322 4.805zm-9.666 15.702c-5.318 0-9.644-4.326-9.644-9.644a9.578 9.578 0 011.98-5.83l.09-.121a9.623 9.623 0 011.072-1.15 9.615 9.615 0 011.5-1.128 9.58 9.58 0 015.002-1.415 9.58 9.58 0 014.996 1.41l.111.067c.447.28.868.598 1.262.944l.142.129a9.7 9.7 0 011.058 1.137c.036.045.07.093.105.139a9.573 9.573 0 011.97 5.818c0 5.318-4.326 9.644-9.644 9.644zM12.945 15.759a3.213 3.213 0 013.204-3.216h.007c1.138 0 2.158.599 2.727 1.549-.026.012-.048.03-.075.043a11.458 11.458 0 00-3.595 2.796c-.028.033-.06.063-.087.096-.313.373-.597.77-.861 1.18-.02.03-.043.056-.062.085a3.196 3.196 0 01-1.258-2.533zm23.616.003a4.947 4.947 0 00-1.453-3.523 4.945 4.945 0 00-3.52-1.464h-.008c-1.87 0-3.53 1.04-4.378 2.661a11.355 11.355 0 00-3.334-.499c-1.16 0-2.278.176-3.333.5a4.926 4.926 0 00-4.38-2.662h-.008a4.986 4.986 0 00-4.97 4.987 4.963 4.963 0 002.2 4.101 11.352 11.352 0 00-.921 4.487c0 3.686 1.763 6.959 4.483 9.048l-1.925 2.079 1.297 1.202 2.123-2.295c1.617.88 3.469 1.38 5.434 1.38 1.966 0 3.816-.5 5.433-1.38l2.124 2.295 1.297-1.202-1.925-2.08c2.72-2.088 4.484-5.361 4.484-9.047 0-1.593-.33-3.109-.922-4.487a4.963 4.963 0 002.202-4.101zm2.661-7.097c-1.18-1.383-2.82-2.152-4.62-2.162l-.01 1.768c1.638.01 2.689.844 3.284 1.541a5.158 5.158 0 011.218 3.323l1.77.01a6.96 6.96 0 00-1.642-4.48zM13.137 6.503c-3.892.022-6.282 3.466-6.264 6.643l1.768-.01c-.013-2.327 1.707-4.849 4.504-4.865l-.008-1.768zm9.846 17.768h-3.345v1.769h5.115v-6.395h-1.77v4.626z\"\n />\n );\n\n return getIcon({ size, isHovered, normal, normalHover, xSmall, xSmallHover });\n};\n\nexport default AlarmClock;\n"],"mappings":";;;AAIA,IAAM,cAAsC,EAAE,MAAM,gBAAkD;CAiCpG,OAAO,QAAQ;EAAE;EAAM;EAAW,QA/BhC,qBAAC,KAAD;GAAG,UAAS;GAAZ,UAAA;IACE,oBAAC,QAAD,EAAM,GAAE,2IAA4I,CAAA;IACpJ,oBAAC,QAAD,EAAM,GAAE,iSAAkS,CAAA;IAC1S,oBAAC,QAAD,EAAM,GAAE,onBAAqnB,CAAA;GAC5nB;EA2B6B,CAAA;EAAQ,aAvBxC,qBAAC,KAAD;GAAG,UAAS;GAAZ,UAAA;IACE,oBAAC,QAAD,EAAM,GAAE,2IAA4I,CAAA;IACpJ,oBAAC,QAAD,EAAM,GAAE,mRAAoR,CAAA;IAC5R,oBAAC,QAAD,EAAM,GAAE,uZAAwZ,CAAA;IACha,oBAAC,QAAD,EAAM,GAAE,6lBAA8lB,CAAA;IACtmB,oBAAC,QAAD,EAAM,GAAE,uGAAwG,CAAA;GAC/G;EAiBqC,CAAA;EAAa,QAbrD,oBAAC,QAAD;GACE,UAAS;GACT,GAAE;EACH,CAUoD;EAAQ,aAN7D,oBAAC,QAAD;GACE,UAAS;GACT,GAAE;EACH,CAG4D;CAAY,CAAC;AAC9E"}
|