@amboss/design-system 4.7.0 → 4.8.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/build/cjs/components/Content/ContentBrandName/ContentBrandName.d.ts +33 -0
- package/build/cjs/components/Content/ContentBrandName/ContentBrandName.js +1 -0
- package/build/cjs/components/Content/ContentCaseText/ContentCaseText.d.ts +9 -0
- package/build/cjs/components/Content/ContentCaseText/ContentCaseText.js +1 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitation.d.ts +26 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitation.js +1 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitationLink.d.ts +16 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitationLink.js +1 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitationLookupLink.d.ts +15 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitationLookupLink.js +1 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitationTitle.d.ts +8 -0
- package/build/cjs/components/Content/ContentCitation/ContentCitationTitle.js +1 -0
- package/build/cjs/index.d.ts +10 -0
- package/build/cjs/index.js +1 -1
- package/build/cjs/web-tokens/assets/icons.json +4 -0
- package/build/cjs/web-tokens/assets/icons16.json +4 -0
- package/build/esm/components/Content/ContentBrandName/ContentBrandName.d.ts +33 -0
- package/build/esm/components/Content/ContentBrandName/ContentBrandName.js +1 -0
- package/build/esm/components/Content/ContentCaseText/ContentCaseText.d.ts +9 -0
- package/build/esm/components/Content/ContentCaseText/ContentCaseText.js +1 -0
- package/build/esm/components/Content/ContentCitation/ContentCitation.d.ts +26 -0
- package/build/esm/components/Content/ContentCitation/ContentCitation.js +1 -0
- package/build/esm/components/Content/ContentCitation/ContentCitationLink.d.ts +16 -0
- package/build/esm/components/Content/ContentCitation/ContentCitationLink.js +1 -0
- package/build/esm/components/Content/ContentCitation/ContentCitationLookupLink.d.ts +15 -0
- package/build/esm/components/Content/ContentCitation/ContentCitationLookupLink.js +1 -0
- package/build/esm/components/Content/ContentCitation/ContentCitationTitle.d.ts +8 -0
- package/build/esm/components/Content/ContentCitation/ContentCitationTitle.js +1 -0
- package/build/esm/index.d.ts +10 -0
- package/build/esm/index.js +1 -1
- package/build/esm/web-tokens/assets/icons.json +4 -0
- package/build/esm/web-tokens/assets/icons16.json +4 -0
- package/package.json +8 -8
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ForbiddenProp } from "../../../types/type-helpers";
|
|
3
|
+
export type ContentBrandNameProps = {
|
|
4
|
+
/** The brand name as marked in the content, e.g. "Aspirin®", optionally wrapping a link */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
"data-e2e-test-id"?: string;
|
|
7
|
+
} & ({
|
|
8
|
+
/**
|
|
9
|
+
* The user may not see brand names (HWG). The name is blurred, cannot be
|
|
10
|
+
* selected or focused, ignores pointer events and is hidden from
|
|
11
|
+
* assistive technology; the root keeps pointer events so a consumer can
|
|
12
|
+
* attach an explanatory popover. Copied text is not masked here; the
|
|
13
|
+
* consumer owns clipboard masking.
|
|
14
|
+
*/
|
|
15
|
+
isCensored: true;
|
|
16
|
+
/**
|
|
17
|
+
* Localised text announced in place of the hidden name, e.g. "brand name
|
|
18
|
+
* hidden". Required while censored: the blur only conveys "withheld"
|
|
19
|
+
* visually, and hiding content from assistive technology requires an
|
|
20
|
+
* equivalent to be exposed (WCAG 1.3.1, WAI-ARIA aria-hidden rules).
|
|
21
|
+
*/
|
|
22
|
+
censoredLabel: string;
|
|
23
|
+
} | {
|
|
24
|
+
isCensored: false;
|
|
25
|
+
censoredLabel?: ForbiddenProp<"Fix: `censoredLabel` applies only when `isCensored` is true.">;
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* A drug brand name inside content text, censored for users without a
|
|
29
|
+
* confirmed healthcare profession. The ref and any extra props land on the
|
|
30
|
+
* root span for anchoring and measuring; the root is not interactive, so a
|
|
31
|
+
* keyboard-operable explanation needs a focusable trigger from the consumer.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ContentBrandName: React.ForwardRefExoticComponent<ContentBrandNameProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ContentBrandName",{enumerable:!0,get:function(){return ContentBrandName}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_ScreenReaderText=require("../../Utilities/ScreenReaderText/ScreenReaderText"),ORIGINAL_TABINDEX_ATTRIBUTE="data-ds-censored-tabindex",removeFromTabOrder=element=>{element.hasAttribute(ORIGINAL_TABINDEX_ATTRIBUTE)||(element.setAttribute(ORIGINAL_TABINDEX_ATTRIBUTE,element.getAttribute("tabindex")??""),element.setAttribute("tabindex","-1"))},restoreTabOrder=root=>{root.querySelectorAll(`[${ORIGINAL_TABINDEX_ATTRIBUTE}]`).forEach(element=>{let originalTabIndex=element.getAttribute(ORIGINAL_TABINDEX_ATTRIBUTE);originalTabIndex?element.setAttribute("tabindex",originalTabIndex):element.removeAttribute("tabindex"),element.removeAttribute(ORIGINAL_TABINDEX_ATTRIBUTE)})},StyledBrandName=(0,_styled.default)("span",{target:"e1m4wjkh0",label:"StyledBrandName"})(({isCensored})=>({...isCensored&&{display:"inline-block",userSelect:"none"}})),StyledBrandNameText=(0,_styled.default)("span",{target:"e1m4wjkh1",label:"StyledBrandNameText"})(({isCensored})=>({...isCensored&&{filter:"blur(5px)",pointerEvents:"none"}})),ContentBrandName=_react.default.forwardRef(({children,isCensored,censoredLabel,"data-e2e-test-id":dataE2eTestId,...rest},ref)=>{let blockDescendantFocus=(0,_react.useCallback)(node=>{node&&(node.toggleAttribute("inert",isCensored),"boolean"!=typeof node.inert&&(isCensored?node.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(removeFromTabOrder):restoreTabOrder(node)))},[isCensored]);return _react.default.createElement(StyledBrandName,{ref:ref,"data-ds-id":"ContentBrandName","data-e2e-test-id":dataE2eTestId,isCensored:isCensored,...rest},_react.default.createElement(StyledBrandNameText,{ref:blockDescendantFocus,isCensored:isCensored,"aria-hidden":isCensored||void 0,onFocusCapture:isCensored?event=>{event.target instanceof HTMLElement&&(removeFromTabOrder(event.target),event.target.blur())}:void 0},children),isCensored&&_react.default.createElement(_ScreenReaderText.ScreenReaderText,{as:"span"},censoredLabel))});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCaseTextProps = {
|
|
3
|
+
/** Already-rendered case description: ContentHeading, ContentText, ContentList */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Forwarded so the block can serve as a `styled()` target */
|
|
6
|
+
className?: string;
|
|
7
|
+
"data-e2e-test-id"?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function ContentCaseText({ children, className, "data-e2e-test-id": dataE2eTestId, }: ContentCaseTextProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ContentCaseText",{enumerable:!0,get:function(){return ContentCaseText}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),StyledCaseText=(0,/*#__PURE__*/_interop_require_default._(require("@emotion/styled")).default)("div",{target:"eo3vtj70",label:"StyledCaseText"})(({theme})=>({position:"relative",padding:theme.variables.size.spacing.m,borderRadius:theme.variables.size.borderRadius.s,backgroundColor:theme.values.color.background.secondary.default,'& > [data-ds-id="ContentHeading"]:first-child':{marginTop:0},"& > :last-child":{marginBottom:0}}));function ContentCaseText({children,className,"data-e2e-test-id":dataE2eTestId}){return _react.default.createElement(StyledCaseText,{className:className,"data-ds-id":"ContentCaseText","data-e2e-test-id":dataE2eTestId},children)}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TextProps } from "../../Typography/Text";
|
|
3
|
+
import type { ContentColor } from "../types";
|
|
4
|
+
import { ContentCitationLink } from "./ContentCitationLink";
|
|
5
|
+
import { ContentCitationLookupLink } from "./ContentCitationLookupLink";
|
|
6
|
+
import { ContentCitationTitle } from "./ContentCitationTitle";
|
|
7
|
+
export type ContentCitationProps = {
|
|
8
|
+
/** The composed citation: text, `ContentCitation.Title`, `ContentCitation.Link`, `ContentCitation.LookupLink` */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Text color, as on ContentText */
|
|
11
|
+
color?: ContentColor | TextProps["color"];
|
|
12
|
+
/** Provides additional line-height, as on ContentText */
|
|
13
|
+
isSpacedOut?: boolean;
|
|
14
|
+
as?: TextProps["as"];
|
|
15
|
+
"data-e2e-test-id"?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* One bibliographic citation as content text. The consumer composes the
|
|
19
|
+
* wording, punctuation and order; the parts provide the visual treatment.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ContentCitation({ children, color, isSpacedOut, as, "data-e2e-test-id": dataE2eTestId, }: ContentCitationProps): React.ReactElement;
|
|
22
|
+
export declare namespace ContentCitation {
|
|
23
|
+
var Title: typeof ContentCitationTitle;
|
|
24
|
+
var Link: typeof ContentCitationLink;
|
|
25
|
+
var LookupLink: typeof ContentCitationLookupLink;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ContentCitation",{enumerable:!0,get:function(){return ContentCitation}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_default")._(require("react")),_ContentText=require("../ContentText/ContentText"),_ContentCitationLink=require("./ContentCitationLink"),_ContentCitationLookupLink=require("./ContentCitationLookupLink");function ContentCitation({children,color,isSpacedOut=!1,as,"data-e2e-test-id":dataE2eTestId}){return _react.default.createElement(_ContentText.ContentText,{"data-ds-id":"ContentCitation","data-e2e-test-id":dataE2eTestId,color:color,isSpacedOut:isSpacedOut,as:as},children)}ContentCitation.Title=require("./ContentCitationTitle").ContentCitationTitle,ContentCitation.Link=_ContentCitationLink.ContentCitationLink,ContentCitation.LookupLink=_ContentCitationLookupLink.ContentCitationLookupLink;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCitationLinkProps = {
|
|
3
|
+
/** Link text: the work title, DOI or URL */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
7
|
+
/**
|
|
8
|
+
* Visually hidden, localised cue that the link opens in a new tab, e.g.
|
|
9
|
+
* "(opens in a new tab)". Appended to the link's accessible name.
|
|
10
|
+
*/
|
|
11
|
+
newTabLabel?: string;
|
|
12
|
+
"data-e2e-test-id"?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const CITATION_LINK_ICON_BASELINE_OFFSET = "-1px";
|
|
15
|
+
/** A link inside a citation (title, DOI, URL), opening in a new tab. */
|
|
16
|
+
export declare function ContentCitationLink({ children, href, onClick, newTabLabel, "data-e2e-test-id": dataE2eTestId, }: ContentCitationLinkProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get CITATION_LINK_ICON_BASELINE_OFFSET(){return CITATION_LINK_ICON_BASELINE_OFFSET},get ContentCitationLink(){return ContentCitationLink}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_ContentLink=require("../ContentLink/ContentLink"),_Icon=require("../../Icon/Icon"),_ScreenReaderText=require("../../Utilities/ScreenReaderText/ScreenReaderText"),CITATION_LINK_ICON_BASELINE_OFFSET="-1px",StyledLinkText=(0,_styled.default)("span",{target:"e18a1ij30",label:"StyledLinkText"})({overflowWrap:["break-word","anywhere"]}),StyledCitationLink=(0,_styled.default)("span",{target:"e18a1ij31",label:"StyledCitationLink"})(({theme})=>({marginRight:theme.variables.size.spacing.xs,"& svg":{marginLeft:theme.variables.size.spacing.xxs,marginBottom:CITATION_LINK_ICON_BASELINE_OFFSET}}));function ContentCitationLink({children,href,onClick,newTabLabel,"data-e2e-test-id":dataE2eTestId}){let linkRef=(0,_react.useRef)(null);return _react.default.createElement(StyledCitationLink,{ref:linkRef,"data-ds-id":"ContentCitationLink"},_react.default.createElement(_ContentLink.ContentLink,{href:href,target:"_blank",rel:"noopener noreferrer",color:"primary",onClick:onClick,"data-e2e-test-id":dataE2eTestId},_react.default.createElement(StyledLinkText,null,children),newTabLabel&&_react.default.createElement(_ScreenReaderText.ScreenReaderText,{as:"span"}," ",newTabLabel),_react.default.createElement(_Icon.Icon,{inline:!0,name:"external-link",size:"s",color:"tertiary",hoverable:linkRef})))}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCitationLookupLinkProps = {
|
|
3
|
+
/** Link text, e.g. "Open in Read by QxMD" */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
7
|
+
/**
|
|
8
|
+
* Visually hidden, localised cue that the link opens in a new tab, e.g.
|
|
9
|
+
* "(opens in a new tab)". Appended to the link's accessible name.
|
|
10
|
+
*/
|
|
11
|
+
newTabLabel?: string;
|
|
12
|
+
"data-e2e-test-id"?: string;
|
|
13
|
+
};
|
|
14
|
+
/** Accent-coloured lookup after the citation, e.g. an external literature search. */
|
|
15
|
+
export declare function ContentCitationLookupLink({ children, href, onClick, newTabLabel, "data-e2e-test-id": dataE2eTestId, }: ContentCitationLookupLinkProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ContentCitationLookupLink",{enumerable:!0,get:function(){return ContentCitationLookupLink}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_ContentLink=require("../ContentLink/ContentLink"),_Icon=require("../../Icon/Icon"),_ScreenReaderText=require("../../Utilities/ScreenReaderText/ScreenReaderText"),_ContentCitationLink=require("./ContentCitationLink"),StyledLookupLink=(0,_styled.default)("span",{target:"exd44bo0",label:"StyledLookupLink"})(({theme})=>({whiteSpace:"nowrap","& svg":{marginLeft:theme.variables.size.spacing.xxs,marginBottom:_ContentCitationLink.CITATION_LINK_ICON_BASELINE_OFFSET}}));function ContentCitationLookupLink({children,href,onClick,newTabLabel,"data-e2e-test-id":dataE2eTestId}){return _react.default.createElement(StyledLookupLink,{"data-ds-id":"ContentCitationLookupLink"},_react.default.createElement(_ContentLink.ContentLink,{href:href,target:"_blank",rel:"noopener noreferrer",color:"accent",onClick:onClick,"data-e2e-test-id":dataE2eTestId},_react.default.createElement("span",null,children),newTabLabel&&_react.default.createElement(_ScreenReaderText.ScreenReaderText,{as:"span"}," ",newTabLabel),_react.default.createElement(_Icon.Icon,{inline:!0,name:"external-link",size:"s",color:"inherit"})))}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCitationTitleProps = {
|
|
3
|
+
/** Title of the cited work or periodical */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
"data-e2e-test-id"?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Title of a cited work or periodical, rendered in italics. */
|
|
8
|
+
export declare function ContentCitationTitle({ children, "data-e2e-test-id": dataE2eTestId, }: ContentCitationTitleProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ContentCitationTitle",{enumerable:!0,get:function(){return ContentCitationTitle}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),StyledCite=(0,/*#__PURE__*/_interop_require_default._(require("@emotion/styled")).default)("cite",{target:"e1w99dcz0",label:"StyledCite"})({fontStyle:"italic"});function ContentCitationTitle({children,"data-e2e-test-id":dataE2eTestId}){return _react.default.createElement(StyledCite,{"data-ds-id":"ContentCitationTitle","data-e2e-test-id":dataE2eTestId},children)}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -29,6 +29,14 @@ export * from "./components/Composite/FilterDialog/FilterDialog";
|
|
|
29
29
|
export * from "./components/Container";
|
|
30
30
|
export * from "./components/Content/ContentBadge/ContentBadge";
|
|
31
31
|
export * from "./components/Content/ContentBox/ContentBox";
|
|
32
|
+
export * from "./components/Content/ContentBrandName/ContentBrandName";
|
|
33
|
+
export * from "./components/Content/ContentBox/constants";
|
|
34
|
+
export type { ContentBoxColorVariant, ContentBoxType, } from "./components/Content/ContentBox/types";
|
|
35
|
+
export * from "./components/Content/ContentCaseText/ContentCaseText";
|
|
36
|
+
export * from "./components/Content/ContentCitation/ContentCitation";
|
|
37
|
+
export { ContentCitationLink, type ContentCitationLinkProps, } from "./components/Content/ContentCitation/ContentCitationLink";
|
|
38
|
+
export * from "./components/Content/ContentCitation/ContentCitationLookupLink";
|
|
39
|
+
export * from "./components/Content/ContentCitation/ContentCitationTitle";
|
|
32
40
|
export * from "./components/Content/ContentCheckbox/ContentCheckbox";
|
|
33
41
|
export * from "./components/Content/ContentFontResizer";
|
|
34
42
|
export * from "./components/Content/ContentHeading/ContentHeading";
|
|
@@ -72,6 +80,8 @@ export * from "./components/Image/Image";
|
|
|
72
80
|
export * from "./components/Inline/Inline";
|
|
73
81
|
export * from "./components/InlineMessage/InlineMessage";
|
|
74
82
|
export * from "./components/InteractiveBox/InteractiveBox";
|
|
83
|
+
export * from "./components/Kbd/Kbd";
|
|
84
|
+
export * from "./components/KbdGroup/KbdGroup";
|
|
75
85
|
export * from "./components/Layout";
|
|
76
86
|
export * from "./components/Lightbox/Lightbox";
|
|
77
87
|
export * from "./components/Link/Link";
|
package/build/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get CacheProvider(){return _react.CacheProvider},get ThemeProvider(){return _react.ThemeProvider},get createCache(){return _cache.default},get dark(){return dark},get light(){return light}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _export_star=require("@swc/helpers/_/_export_star"),_interop_require_default=require("@swc/helpers/_/_interop_require_default"),_visualConfig=require("./web-tokens/visualConfig"),_cache=/*#__PURE__*/_interop_require_default._(require("@emotion/cache")),_react=require("@emotion/react");_export_star._(require("./components/AccessCardItem/AccessCardItem"),exports),_export_star._(require("./components/AIButton/AIButton"),exports),_export_star._(require("./components/AIFloatingButton/AIFloatingButton"),exports),_export_star._(require("./components/Avatar/Avatar"),exports),_export_star._(require("./components/AvatarGroup/AvatarGroup"),exports),_export_star._(require("./components/Badge/Badge"),exports),_export_star._(require("./components/BinaryFeedback/BinaryFeedback"),exports),_export_star._(require("./components/Box/Box"),exports),_export_star._(require("./components/BulkActionsToolbar/BulkActionsToolbar"),exports),_export_star._(require("./components/Button/Button"),exports),_export_star._(require("./components/Callout/Callout"),exports),_export_star._(require("./components/Card/Card"),exports),_export_star._(require("./components/Card/CardBox/CardBox"),exports),_export_star._(require("./components/CatalogCard/CatalogCard"),exports),_export_star._(require("./components/ChatMessage"),exports),_export_star._(require("./components/ChatResponse"),exports),_export_star._(require("./components/CheckboxCard/CheckboxCard"),exports),_export_star._(require("./components/Collapsible/Collapsible"),exports),_export_star._(require("./components/ColorIndicator/ColorIndicator"),exports),_export_star._(require("./components/ColorPicker/ColorPicker"),exports),_export_star._(require("./components/Column/Columns"),exports),_export_star._(require("./components/Composite/FilterDialog/FilterDialog"),exports),_export_star._(require("./components/Container"),exports),_export_star._(require("./components/Content/ContentBadge/ContentBadge"),exports),_export_star._(require("./components/Content/ContentBox/ContentBox"),exports),_export_star._(require("./components/Content/ContentCheckbox/ContentCheckbox"),exports),_export_star._(require("./components/Content/ContentFontResizer"),exports),_export_star._(require("./components/Content/ContentHeading/ContentHeading"),exports),_export_star._(require("./components/Content/ContentLink/ContentLink"),exports),_export_star._(require("./components/Content/ContentList"),exports),_export_star._(require("./components/Content/ContentPictogramButton/ContentPictogramButton"),exports),_export_star._(require("./components/Content/ContentTable"),exports),_export_star._(require("./components/Content/ContentTableModal/ContentTableModal"),exports),_export_star._(require("./components/Content/ContentText/ContentText"),exports),_export_star._(require("./components/Content/DosageButton"),exports),_export_star._(require("./components/Content/ReferenceButton"),exports),_export_star._(require("./components/CountButton/CountButton"),exports),_export_star._(require("./components/DataTable"),exports),_export_star._(require("./components/DataTable/DataTableToolbar/DataTableToolbar"),exports),_export_star._(require("./components/Divider/Divider"),exports),_export_star._(require("./components/DropdownMenu/DropdownMenu"),exports),_export_star._(require("./components/EntityList"),exports),_export_star._(require("./components/EntityTree"),exports),_export_star._(require("./components/Form/Checkbox/Checkbox"),exports),_export_star._(require("./components/Form/Combobox/Combobox"),exports),_export_star._(require("./components/Form/DateInput/DateInput"),exports),_export_star._(require("./components/Form/DatePicker"),exports),_export_star._(require("./components/Form/FormFieldGroup/FormFieldGroup"),exports),_export_star._(require("./components/Form/Input"),exports),_export_star._(require("./components/Form/MaskedInput/MaskedInput"),exports),_export_star._(require("./components/Form/PasswordInput"),exports),_export_star._(require("./components/Form/Radio/Radio"),exports),_export_star._(require("./components/Form/RadioButton/RadioButton"),exports),_export_star._(require("./components/Form/RangeInput/RangeInput"),exports),_export_star._(require("./components/Form/SearchInput/SearchInput"),exports),_export_star._(require("./components/Form/SegmentedControl/SegmentedControl"),exports),_export_star._(require("./components/Form/Select"),exports),_export_star._(require("./components/Form/Textarea/Textarea"),exports),_export_star._(require("./components/Form/Toggle/Toggle"),exports),_export_star._(require("./components/Form/ToggleButton/ToggleButton"),exports),_export_star._(require("./components/Form/ToolbarToggle/ToolbarToggle"),exports),_export_star._(require("./components/Grid/Grid"),exports),_export_star._(require("./components/Icon/Icon"),exports),_export_star._(require("./components/IconTile/IconTile"),exports),_export_star._(require("./components/Image/Image"),exports),_export_star._(require("./components/Inline/Inline"),exports),_export_star._(require("./components/InlineMessage/InlineMessage"),exports),_export_star._(require("./components/InteractiveBox/InteractiveBox"),exports),_export_star._(require("./components/Layout"),exports),_export_star._(require("./components/Lightbox/Lightbox"),exports),_export_star._(require("./components/Link/Link"),exports),_export_star._(require("./components/LoadingSpinner/LoadingSpinner"),exports),_export_star._(require("./components/Logo/Logo"),exports),_export_star._(require("./components/MediaItem"),exports),_export_star._(require("./components/MediaViewerBar/MediaViewerBar"),exports),_export_star._(require("./components/MediaViewerCarousel/MediaViewerCarousel"),exports),_export_star._(require("./components/NavBar"),exports),_export_star._(require("./components/Notification/Notification"),exports),_export_star._(require("./components/Pagination/Pagination"),exports),_export_star._(require("./components/Patterns/ButtonGroup/ButtonGroup"),exports),_export_star._(require("./components/Patterns/EmptyState/EmptyState"),exports),_export_star._(require("./components/Patterns/Modal/Modal"),exports),_export_star._(require("./components/PictogramButton/PictogramButton"),exports),_export_star._(require("./components/Popover/Popover"),exports),_export_star._(require("./components/ProgressBar/ProgressBar"),exports),_export_star._(require("./components/PromptButton/PromptButton"),exports),_export_star._(require("./components/PromptButtonGroup/PromptButtonGroup"),exports),_export_star._(require("./components/PromptInput/PromptInput"),exports),_export_star._(require("./components/QBankRichText/QBankRichText"),exports),_export_star._(require("./components/RadioCard/RadioCard"),exports),_export_star._(require("./components/RangePopover/RangePopover"),exports),_export_star._(require("./components/RoundButton/RoundButton"),exports),_export_star._(require("./components/SearchResult/SearchResult"),exports),_export_star._(require("./components/SegmentedProgressBar/SegmentedProgressBar"),exports),_export_star._(require("./components/Sheet/Sheet"),exports),_export_star._(require("./components/SplashCard/SplashCard"),exports),_export_star._(require("./components/SplashCardMedia/SplashCardMedia"),exports),_export_star._(require("./components/Stack/Stack"),exports),_export_star._(require("./components/StatusIndicator/StatusIndicator"),exports),_export_star._(require("./components/SubThemeProvider/SubThemeProvider"),exports),_export_star._(require("./components/Tabs/Tabs"),exports),_export_star._(require("./components/Tag/Tag"),exports),_export_star._(require("./components/TagGroup/TagGroup"),exports),_export_star._(require("./components/Toast"),exports),_export_star._(require("./components/Toggletip/Toggletip"),exports),_export_star._(require("./components/Tooltip/Tooltip"),exports),_export_star._(require("./components/Tutorialtip/Tutorialtip"),exports),_export_star._(require("./components/Typography/Header"),exports),_export_star._(require("./components/Typography/StyledText/StyledText"),exports),_export_star._(require("./components/Typography/Text"),exports),_export_star._(require("./components/Typography/TextClamped/TextClamped"),exports),_export_star._(require("./components/UserHighlightTooltip/UserHighlightTooltip"),exports),_export_star._(require("./components/Utilities/AnimatedBorder/useAnimatedBorder"),exports),_export_star._(require("./components/Utilities/ContainerQuery/ContainerQuery"),exports),_export_star._(require("./components/Utilities/Expandable/Expandable"),exports),_export_star._(require("./components/Utilities/ScreenReaderText/ScreenReaderText"),exports),_export_star._(require("./shared/useSelectionRange"),exports);const{dark,light}=_visualConfig.ambossVisualConfiguration;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get CacheProvider(){return _react.CacheProvider},get ContentCitationLink(){return _ContentCitationLink.ContentCitationLink},get ThemeProvider(){return _react.ThemeProvider},get createCache(){return _cache.default},get dark(){return dark},get light(){return light}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _export_star=require("@swc/helpers/_/_export_star"),_interop_require_default=require("@swc/helpers/_/_interop_require_default"),_visualConfig=require("./web-tokens/visualConfig"),_cache=/*#__PURE__*/_interop_require_default._(require("@emotion/cache")),_react=require("@emotion/react");_export_star._(require("./components/AccessCardItem/AccessCardItem"),exports),_export_star._(require("./components/AIButton/AIButton"),exports),_export_star._(require("./components/AIFloatingButton/AIFloatingButton"),exports),_export_star._(require("./components/Avatar/Avatar"),exports),_export_star._(require("./components/AvatarGroup/AvatarGroup"),exports),_export_star._(require("./components/Badge/Badge"),exports),_export_star._(require("./components/BinaryFeedback/BinaryFeedback"),exports),_export_star._(require("./components/Box/Box"),exports),_export_star._(require("./components/BulkActionsToolbar/BulkActionsToolbar"),exports),_export_star._(require("./components/Button/Button"),exports),_export_star._(require("./components/Callout/Callout"),exports),_export_star._(require("./components/Card/Card"),exports),_export_star._(require("./components/Card/CardBox/CardBox"),exports),_export_star._(require("./components/CatalogCard/CatalogCard"),exports),_export_star._(require("./components/ChatMessage"),exports),_export_star._(require("./components/ChatResponse"),exports),_export_star._(require("./components/CheckboxCard/CheckboxCard"),exports),_export_star._(require("./components/Collapsible/Collapsible"),exports),_export_star._(require("./components/ColorIndicator/ColorIndicator"),exports),_export_star._(require("./components/ColorPicker/ColorPicker"),exports),_export_star._(require("./components/Column/Columns"),exports),_export_star._(require("./components/Composite/FilterDialog/FilterDialog"),exports),_export_star._(require("./components/Container"),exports),_export_star._(require("./components/Content/ContentBadge/ContentBadge"),exports),_export_star._(require("./components/Content/ContentBox/ContentBox"),exports),_export_star._(require("./components/Content/ContentBrandName/ContentBrandName"),exports),_export_star._(require("./components/Content/ContentBox/constants"),exports),_export_star._(require("./components/Content/ContentCaseText/ContentCaseText"),exports),_export_star._(require("./components/Content/ContentCitation/ContentCitation"),exports);const _ContentCitationLink=require("./components/Content/ContentCitation/ContentCitationLink");_export_star._(require("./components/Content/ContentCitation/ContentCitationLookupLink"),exports),_export_star._(require("./components/Content/ContentCitation/ContentCitationTitle"),exports),_export_star._(require("./components/Content/ContentCheckbox/ContentCheckbox"),exports),_export_star._(require("./components/Content/ContentFontResizer"),exports),_export_star._(require("./components/Content/ContentHeading/ContentHeading"),exports),_export_star._(require("./components/Content/ContentLink/ContentLink"),exports),_export_star._(require("./components/Content/ContentList"),exports),_export_star._(require("./components/Content/ContentPictogramButton/ContentPictogramButton"),exports),_export_star._(require("./components/Content/ContentTable"),exports),_export_star._(require("./components/Content/ContentTableModal/ContentTableModal"),exports),_export_star._(require("./components/Content/ContentText/ContentText"),exports),_export_star._(require("./components/Content/DosageButton"),exports),_export_star._(require("./components/Content/ReferenceButton"),exports),_export_star._(require("./components/CountButton/CountButton"),exports),_export_star._(require("./components/DataTable"),exports),_export_star._(require("./components/DataTable/DataTableToolbar/DataTableToolbar"),exports),_export_star._(require("./components/Divider/Divider"),exports),_export_star._(require("./components/DropdownMenu/DropdownMenu"),exports),_export_star._(require("./components/EntityList"),exports),_export_star._(require("./components/EntityTree"),exports),_export_star._(require("./components/Form/Checkbox/Checkbox"),exports),_export_star._(require("./components/Form/Combobox/Combobox"),exports),_export_star._(require("./components/Form/DateInput/DateInput"),exports),_export_star._(require("./components/Form/DatePicker"),exports),_export_star._(require("./components/Form/FormFieldGroup/FormFieldGroup"),exports),_export_star._(require("./components/Form/Input"),exports),_export_star._(require("./components/Form/MaskedInput/MaskedInput"),exports),_export_star._(require("./components/Form/PasswordInput"),exports),_export_star._(require("./components/Form/Radio/Radio"),exports),_export_star._(require("./components/Form/RadioButton/RadioButton"),exports),_export_star._(require("./components/Form/RangeInput/RangeInput"),exports),_export_star._(require("./components/Form/SearchInput/SearchInput"),exports),_export_star._(require("./components/Form/SegmentedControl/SegmentedControl"),exports),_export_star._(require("./components/Form/Select"),exports),_export_star._(require("./components/Form/Textarea/Textarea"),exports),_export_star._(require("./components/Form/Toggle/Toggle"),exports),_export_star._(require("./components/Form/ToggleButton/ToggleButton"),exports),_export_star._(require("./components/Form/ToolbarToggle/ToolbarToggle"),exports),_export_star._(require("./components/Grid/Grid"),exports),_export_star._(require("./components/Icon/Icon"),exports),_export_star._(require("./components/IconTile/IconTile"),exports),_export_star._(require("./components/Image/Image"),exports),_export_star._(require("./components/Inline/Inline"),exports),_export_star._(require("./components/InlineMessage/InlineMessage"),exports),_export_star._(require("./components/InteractiveBox/InteractiveBox"),exports),_export_star._(require("./components/Kbd/Kbd"),exports),_export_star._(require("./components/KbdGroup/KbdGroup"),exports),_export_star._(require("./components/Layout"),exports),_export_star._(require("./components/Lightbox/Lightbox"),exports),_export_star._(require("./components/Link/Link"),exports),_export_star._(require("./components/LoadingSpinner/LoadingSpinner"),exports),_export_star._(require("./components/Logo/Logo"),exports),_export_star._(require("./components/MediaItem"),exports),_export_star._(require("./components/MediaViewerBar/MediaViewerBar"),exports),_export_star._(require("./components/MediaViewerCarousel/MediaViewerCarousel"),exports),_export_star._(require("./components/NavBar"),exports),_export_star._(require("./components/Notification/Notification"),exports),_export_star._(require("./components/Pagination/Pagination"),exports),_export_star._(require("./components/Patterns/ButtonGroup/ButtonGroup"),exports),_export_star._(require("./components/Patterns/EmptyState/EmptyState"),exports),_export_star._(require("./components/Patterns/Modal/Modal"),exports),_export_star._(require("./components/PictogramButton/PictogramButton"),exports),_export_star._(require("./components/Popover/Popover"),exports),_export_star._(require("./components/ProgressBar/ProgressBar"),exports),_export_star._(require("./components/PromptButton/PromptButton"),exports),_export_star._(require("./components/PromptButtonGroup/PromptButtonGroup"),exports),_export_star._(require("./components/PromptInput/PromptInput"),exports),_export_star._(require("./components/QBankRichText/QBankRichText"),exports),_export_star._(require("./components/RadioCard/RadioCard"),exports),_export_star._(require("./components/RangePopover/RangePopover"),exports),_export_star._(require("./components/RoundButton/RoundButton"),exports),_export_star._(require("./components/SearchResult/SearchResult"),exports),_export_star._(require("./components/SegmentedProgressBar/SegmentedProgressBar"),exports),_export_star._(require("./components/Sheet/Sheet"),exports),_export_star._(require("./components/SplashCard/SplashCard"),exports),_export_star._(require("./components/SplashCardMedia/SplashCardMedia"),exports),_export_star._(require("./components/Stack/Stack"),exports),_export_star._(require("./components/StatusIndicator/StatusIndicator"),exports),_export_star._(require("./components/SubThemeProvider/SubThemeProvider"),exports),_export_star._(require("./components/Tabs/Tabs"),exports),_export_star._(require("./components/Tag/Tag"),exports),_export_star._(require("./components/TagGroup/TagGroup"),exports),_export_star._(require("./components/Toast"),exports),_export_star._(require("./components/Toggletip/Toggletip"),exports),_export_star._(require("./components/Tooltip/Tooltip"),exports),_export_star._(require("./components/Tutorialtip/Tutorialtip"),exports),_export_star._(require("./components/Typography/Header"),exports),_export_star._(require("./components/Typography/StyledText/StyledText"),exports),_export_star._(require("./components/Typography/Text"),exports),_export_star._(require("./components/Typography/TextClamped/TextClamped"),exports),_export_star._(require("./components/UserHighlightTooltip/UserHighlightTooltip"),exports),_export_star._(require("./components/Utilities/AnimatedBorder/useAnimatedBorder"),exports),_export_star._(require("./components/Utilities/ContainerQuery/ContainerQuery"),exports),_export_star._(require("./components/Utilities/Expandable/Expandable"),exports),_export_star._(require("./components/Utilities/ScreenReaderText/ScreenReaderText"),exports),_export_star._(require("./shared/useSelectionRange"),exports);const{dark,light}=_visualConfig.ambossVisualConfiguration;
|
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"face-neutral": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" d=\"M8.19 10.11c.05.04.1.09.15.12q.09.06.18.09.09.045.18.06c.07.01.14.02.2.02.26 0 .52-.11.71-.29.18-.19.29-.45.29-.71s-.11-.52-.29-.71c-.24-.23-.58-.33-.91-.27q-.09.015-.18.06-.09.03-.18.09l-.15.12q-.135.15-.21.33c-.05.12-.08.25-.08.38s.03.26.08.38c.05.13.12.23.21.33m6.91.29c.26 0 .52-.11.71-.29.18-.19.29-.44.29-.71 0-.13-.03-.26-.08-.38-.05-.13-.12-.23-.21-.33-.37-.37-1.05-.37-1.42 0-.09.1-.16.2-.21.33-.05.12-.08.25-.08.38 0 .27.11.52.29.71.19.18.45.29.71.29M12 21c-4.962 0-9-4.038-9-9 0-4.963 4.038-9 9-9 4.963 0 9 4.037 9 9 0 4.962-4.037 9-9 9m0-20C5.935 1 1 5.934 1 12s4.935 11 11 11 11-4.935 11-11S18.065 1 12 1m4 13.5H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2\"/></svg>",
|
|
88
88
|
"face-sad": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" d=\"M8.9 10.4c-.06 0-.13-.01-.2-.02a.6.6 0 0 1-.18-.06.8.8 0 0 1-.18-.09c-.05-.03-.1-.08-.15-.12-.09-.1-.16-.2-.21-.33a1 1 0 0 1-.08-.38c0-.13.03-.26.08-.38q.075-.18.21-.33l.15-.12q.09-.06.18-.09.09-.045.18-.06c.33-.06.67.04.91.27.18.19.29.45.29.71s-.11.52-.29.71c-.19.18-.45.29-.71.29m6.2 0c-.26 0-.52-.11-.71-.29-.18-.19-.29-.44-.29-.71 0-.13.03-.26.08-.38.05-.13.12-.23.21-.33.37-.37 1.05-.37 1.42 0 .09.1.16.2.21.33.05.12.08.25.08.38 0 .27-.11.52-.29.71-.19.18-.45.29-.71.29M12 3c-4.962 0-9 4.038-9 9s4.038 9 9 9c4.963 0 9-4.038 9-9s-4.037-9-9-9m0 20C5.935 23 1 18.066 1 12S5.935 1 12 1s11 4.935 11 11-4.935 11-11 11m4-5.7a1 1 0 0 1-.707-.293 4.66 4.66 0 0 0-6.586 0 .999.999 0 1 1-1.414-1.414 6.663 6.663 0 0 1 9.414 0A.999.999 0 0 1 16 17.3\"/></svg>",
|
|
89
89
|
"facebook": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"#1877F2\" d=\"M24 12c0-6.627-5.373-12-12-12S0 5.373 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.356c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H15.83c-1.491 0-1.956.925-1.956 1.875V12h3.328l-.532 3.469h-2.796v8.385C19.612 22.954 24 17.99 24 12\"/><path fill=\"#fff\" d=\"M16.671 15.469 17.203 12h-3.328V9.75c0-.949.465-1.875 1.956-1.875h1.513V4.922s-1.374-.234-2.686-.234c-2.741 0-4.533 1.66-4.533 4.668V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47h2.796z\"/></svg>",
|
|
90
|
+
"fc-circle": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M23 12C23 18.075 18.075 23 12 23C5.925 23 1 18.075 1 12C1 5.925 5.925 1 12 1C18.075 1 23 5.925 23 12Z\"/></svg>",
|
|
91
|
+
"fc-diamond": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M1.354 12.354C1.158 12.158 1.158 11.842 1.354 11.646L11.646 1.354C11.842 1.158 12.158 1.158 12.354 1.354L22.646 11.646C22.842 11.842 22.842 12.158 22.646 12.354L12.354 22.646C12.158 22.842 11.842 22.842 11.646 22.646L1.354 12.354Z\"/></svg>",
|
|
92
|
+
"fc-hexagon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M22.841 11.739C22.939 11.899 22.939 12.101 22.841 12.261L17.646 20.761C17.555 20.909 17.394 21 17.22 21H6.78C6.606 21 6.445 20.909 6.354 20.761L1.159 12.261C1.062 12.101 1.062 11.899 1.159 11.739L6.354 3.239C6.445 3.091 6.606 3 6.78 3H17.22C17.394 3 17.555 3.091 17.646 3.239L22.841 11.739Z\"/></svg>",
|
|
93
|
+
"fc-triangle": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M11.567 2.747C11.76 2.415 12.24 2.415 12.433 2.747L22.566 20.25C22.759 20.583 22.518 21 22.133 21H1.867C1.482 21 1.242 20.583 1.435 20.25L11.567 2.747Z\"/></svg>",
|
|
90
94
|
"figma": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"#1ABCFE\" d=\"M12 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0\"/><path fill=\"#0ACF83\" d=\"M4 20a4 4 0 0 1 4-4h4v4a4 4 0 1 1-8 0\"/><path fill=\"#FF7262\" d=\"M12 0v8h4a4 4 0 1 0 0-8z\"/><path fill=\"#F24E1E\" d=\"M4 4a4 4 0 0 0 4 4h4V0H8a4 4 0 0 0-4 4\"/><path fill=\"#A259FF\" d=\"M4 12a4 4 0 0 0 4 4h4V8H8a4 4 0 0 0-4 4\"/></svg>",
|
|
91
95
|
"file-pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M5.457 14.129q.208 0 .36.047a.7.7 0 0 1 .25.134.5.5 0 0 1 .148.21q.05.12.05.27 0 .326-.196.513-.193.187-.612.187h-.565v-1.36zm3.931.019q.303 0 .54.093.242.094.408.268t.256.425.089.565q0 .316-.09.567-.088.252-.255.428-.167.173-.407.267-.239.09-.541.091h-.762v-2.704z\"/><path fill-rule=\"evenodd\" d=\"m14.172 1.016.026.004.048.011q.024.005.047.012.144.045.267.128l.074.056q.038.03.073.066l7 7A1 1 0 0 1 22 9v11a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-1H3a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1h1V4a3 3 0 0 1 3-3h7q.088 0 .172.016M4.2 13.5a.2.2 0 0 0-.2.2v3.6c0 .11.09.2.2.2h.492a.2.2 0 0 0 .2-.2v-1.176h.565q.43 0 .752-.096.32-.099.532-.276a1.1 1.1 0 0 0 .316-.422 1.4 1.4 0 0 0 .104-.54q0-.278-.101-.516a1.04 1.04 0 0 0-.306-.408 1.5 1.5 0 0 0-.533-.27 2.7 2.7 0 0 0-.764-.096zm3.729 0a.2.2 0 0 0-.2.2v3.6c0 .11.09.2.2.2h1.459q.495 0 .904-.148.407-.15.695-.415.292-.264.45-.63.16-.37.16-.808 0-.435-.16-.803a1.8 1.8 0 0 0-.45-.63 2 2 0 0 0-.695-.418 2.6 2.6 0 0 0-.904-.148zm4.523 0a.2.2 0 0 0-.2.2v3.6c0 .11.09.2.2.2h.498a.2.2 0 0 0 .2-.2v-1.396h1.353a.2.2 0 0 0 .2-.2v-.25a.2.2 0 0 0-.2-.201H13.15v-1.105h1.65a.2.2 0 0 0 .2-.2V13.7a.2.2 0 0 0-.2-.2zM15 8h3.586L15 4.414zm1 4a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H6v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10h-6a1 1 0 0 1-1-1V3H7a1 1 0 0 0-1 1v8z\" clip-rule=\"evenodd\"/></svg>",
|
|
92
96
|
"file-text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"/><path d=\"M14 2v6h6m-4 5H8m8 4H8m2-8H8\"/></svg>",
|
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"face-neutral": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"currentColor\" stroke-width=\"2\"/><g fill=\"currentColor\"><circle cx=\"6\" cy=\"6\" r=\"1\"/><circle cx=\"10\" cy=\"6\" r=\"1\"/><path d=\"M5 9a1 1 0 0 0 0 2zm6 2a1 1 0 1 0 0-2zm-6 0h6V9H5z\"/></g></svg>",
|
|
88
88
|
"face-sad": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"currentColor\" stroke-width=\"2\"/><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2\" d=\"M5 10.5c.85-.788 1.885-1.25 3-1.25s2.15.462 3 1.25\"/><g fill=\"currentColor\"><circle cx=\"6\" cy=\"6\" r=\"1\"/><circle cx=\"10\" cy=\"6\" r=\"1\"/></g></svg>",
|
|
89
89
|
"facebook": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"#1877f2\" d=\"M16 8a8 8 0 1 0-9.25 7.903v-5.59H4.719V8H6.75V6.238c0-2.006 1.194-3.113 3.022-3.113.875 0 1.79.156 1.79.156V5.25h-1.008c-.994 0-1.304.617-1.304 1.25V8h2.219l-.355 2.313H9.25v5.59A8 8 0 0 0 16 8\"/><path fill=\"#fff\" d=\"M11.114 10.313 11.47 8H9.25V6.5c0-.633.31-1.25 1.304-1.25h1.009V3.281s-.916-.156-1.791-.156c-1.828 0-3.022 1.107-3.022 3.112V8H4.719v2.313H6.75v5.59c.828.13 1.672.13 2.5 0v-5.59z\"/></svg>",
|
|
90
|
+
"fc-circle": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8Z\"/></svg>",
|
|
91
|
+
"fc-diamond": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M1.354 8.354C1.158 8.158 1.158 7.842 1.354 7.646L7.646 1.354C7.842 1.158 8.158 1.158 8.354 1.354L14.646 7.646C14.842 7.842 14.842 8.158 14.646 8.354L8.354 14.646C8.158 14.842 7.842 14.842 7.646 14.646L1.354 8.354Z\"/></svg>",
|
|
92
|
+
"fc-hexagon": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M14.854 7.749C14.944 7.904 14.945 8.096 14.855 8.251L11.644 13.812C11.555 13.967 11.39 14.062 11.211 14.062H4.789C4.61 14.062 4.445 13.967 4.356 13.812L1.145 8.251C1.055 8.096 1.056 7.904 1.146 7.749L4.355 2.248C4.445 2.094 4.609 2 4.787 2H11.213C11.391 2 11.555 2.094 11.645 2.248L14.854 7.749Z\"/></svg>",
|
|
93
|
+
"fc-triangle": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M7.568 2.74C7.761 2.41 8.239 2.41 8.432 2.74L14.561 13.248C14.756 13.581 14.515 14 14.13 14H1.871C1.485 14 1.244 13.581 1.439 13.248L7.568 2.74Z\"/></svg>",
|
|
90
94
|
"figma": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"#1ABCFE\" d=\"M8.003 8a2.667 2.667 0 1 1 5.334 0 2.667 2.667 0 0 1-5.334 0\"/><path fill=\"#0ACF83\" d=\"M2.67 13.333a2.667 2.667 0 0 1 2.667-2.666h2.666v2.666a2.667 2.667 0 1 1-5.333 0\"/><path fill=\"#FF7262\" d=\"M8.003 0v5.333h2.667a2.667 2.667 0 0 0 0-5.333z\"/><path fill=\"#F24E1E\" d=\"M2.67 2.667a2.667 2.667 0 0 0 2.667 2.666h2.666V0H5.337A2.667 2.667 0 0 0 2.67 2.667\"/><path fill=\"#A259FF\" d=\"M2.67 8a2.667 2.667 0 0 0 2.667 2.667h2.666V5.333H5.337A2.667 2.667 0 0 0 2.67 8\"/></svg>",
|
|
91
95
|
"file-pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\" focusable=\"false\"><path d=\"M2.528 9.472q.152 0 .262.035a.5.5 0 0 1 .182.1.4.4 0 0 1 .108.158.5.5 0 0 1 .036.203.52.52 0 0 1-.142.384q-.141.141-.446.141h-.41V9.472zm2.859.014q.22 0 .393.07a.81.81 0 0 1 .483.52q.065.187.065.423 0 .238-.065.426a.82.82 0 0 1-.482.522 1.1 1.1 0 0 1-.394.067h-.554V9.486z\"/><path fill-rule=\"evenodd\" d=\"M9.438.006a1 1 0 0 1 .632.318l3.667 4A1 1 0 0 1 14 5v8.667a2.334 2.334 0 0 1-2.095 2.321l-.238.012H4.333A2.334 2.334 0 0 1 2 13.667V13H1a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h1V2.333A2.333 2.333 0 0 1 4.333 0h5zM4.333 2A.333.333 0 0 0 4 2.333V8h6.015a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H4v.667c0 .184.15.333.333.333h7.334c.184 0 .333-.15.333-.333V6H9a1 1 0 0 1-1-1V2zM1.669 9a.2.2 0 0 0-.2.2v2.6c0 .11.09.2.2.2h.249a.2.2 0 0 0 .2-.2v-.831h.41q.315 0 .547-.073.234-.074.388-.207a.8.8 0 0 0 .228-.316q.076-.184.077-.405 0-.21-.074-.387a.8.8 0 0 0-.222-.306q-.151-.13-.388-.203A1.9 1.9 0 0 0 2.528 9zm2.71 0a.2.2 0 0 0-.198.2v2.6c0 .11.089.2.199.2h1.007q.36 0 .658-.111.296-.113.506-.31.212-.2.326-.475.117-.276.117-.605 0-.326-.117-.602a1.4 1.4 0 0 0-.326-.473 1.5 1.5 0 0 0-.506-.313A1.9 1.9 0 0 0 5.387 9zm3.292 0a.2.2 0 0 0-.2.2v2.6c0 .11.09.2.2.2h.253a.2.2 0 0 0 .2-.2v-.997h.929a.2.2 0 0 0 .2-.2v-.088a.2.2 0 0 0-.2-.2h-.929v-.829h1.145a.2.2 0 0 0 .2-.2V9.2a.2.2 0 0 0-.2-.2zM10 4h.727L10 3.206z\" clip-rule=\"evenodd\"/></svg>",
|
|
92
96
|
"file-text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"currentColor\" d=\"M11 10v2H5v-2zM5 7v2h6V7zm2-3H5v2h2z\"/><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12 16H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 14 4.828V14a2 2 0 0 1-2 2M9 6h3v8H4V2h4v3a1 1 0 0 0 1 1m1-3.172L11.172 4H10z\" clip-rule=\"evenodd\"/></svg>",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ForbiddenProp } from "../../../types/type-helpers";
|
|
3
|
+
export type ContentBrandNameProps = {
|
|
4
|
+
/** The brand name as marked in the content, e.g. "Aspirin®", optionally wrapping a link */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
"data-e2e-test-id"?: string;
|
|
7
|
+
} & ({
|
|
8
|
+
/**
|
|
9
|
+
* The user may not see brand names (HWG). The name is blurred, cannot be
|
|
10
|
+
* selected or focused, ignores pointer events and is hidden from
|
|
11
|
+
* assistive technology; the root keeps pointer events so a consumer can
|
|
12
|
+
* attach an explanatory popover. Copied text is not masked here; the
|
|
13
|
+
* consumer owns clipboard masking.
|
|
14
|
+
*/
|
|
15
|
+
isCensored: true;
|
|
16
|
+
/**
|
|
17
|
+
* Localised text announced in place of the hidden name, e.g. "brand name
|
|
18
|
+
* hidden". Required while censored: the blur only conveys "withheld"
|
|
19
|
+
* visually, and hiding content from assistive technology requires an
|
|
20
|
+
* equivalent to be exposed (WCAG 1.3.1, WAI-ARIA aria-hidden rules).
|
|
21
|
+
*/
|
|
22
|
+
censoredLabel: string;
|
|
23
|
+
} | {
|
|
24
|
+
isCensored: false;
|
|
25
|
+
censoredLabel?: ForbiddenProp<"Fix: `censoredLabel` applies only when `isCensored` is true.">;
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* A drug brand name inside content text, censored for users without a
|
|
29
|
+
* confirmed healthcare profession. The ref and any extra props land on the
|
|
30
|
+
* root span for anchoring and measuring; the root is not interactive, so a
|
|
31
|
+
* keyboard-operable explanation needs a focusable trigger from the consumer.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ContentBrandName: React.ForwardRefExoticComponent<ContentBrandNameProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React,{useCallback}from"react";import styled from"@emotion/styled";import{ScreenReaderText}from"../../Utilities/ScreenReaderText/ScreenReaderText";let ORIGINAL_TABINDEX_ATTRIBUTE="data-ds-censored-tabindex",removeFromTabOrder=element=>{element.hasAttribute(ORIGINAL_TABINDEX_ATTRIBUTE)||(element.setAttribute(ORIGINAL_TABINDEX_ATTRIBUTE,element.getAttribute("tabindex")??""),element.setAttribute("tabindex","-1"))},restoreTabOrder=root=>{root.querySelectorAll(`[${ORIGINAL_TABINDEX_ATTRIBUTE}]`).forEach(element=>{let originalTabIndex=element.getAttribute(ORIGINAL_TABINDEX_ATTRIBUTE);originalTabIndex?element.setAttribute("tabindex",originalTabIndex):element.removeAttribute("tabindex"),element.removeAttribute(ORIGINAL_TABINDEX_ATTRIBUTE)})},StyledBrandName=styled("span",{target:"e1m4wjkh0",label:"StyledBrandName"})(({isCensored})=>({...isCensored&&{display:"inline-block",userSelect:"none"}})),StyledBrandNameText=styled("span",{target:"e1m4wjkh1",label:"StyledBrandNameText"})(({isCensored})=>({...isCensored&&{filter:"blur(5px)",pointerEvents:"none"}}));export const ContentBrandName=React.forwardRef(({children,isCensored,censoredLabel,"data-e2e-test-id":dataE2eTestId,...rest},ref)=>{let blockDescendantFocus=useCallback(node=>{node&&(node.toggleAttribute("inert",isCensored),"boolean"!=typeof node.inert&&(isCensored?node.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(removeFromTabOrder):restoreTabOrder(node)))},[isCensored]);return React.createElement(StyledBrandName,{ref:ref,"data-ds-id":"ContentBrandName","data-e2e-test-id":dataE2eTestId,isCensored:isCensored,...rest},React.createElement(StyledBrandNameText,{ref:blockDescendantFocus,isCensored:isCensored,"aria-hidden":isCensored||void 0,onFocusCapture:isCensored?event=>{event.target instanceof HTMLElement&&(removeFromTabOrder(event.target),event.target.blur())}:void 0},children),isCensored&&React.createElement(ScreenReaderText,{as:"span"},censoredLabel))});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCaseTextProps = {
|
|
3
|
+
/** Already-rendered case description: ContentHeading, ContentText, ContentList */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Forwarded so the block can serve as a `styled()` target */
|
|
6
|
+
className?: string;
|
|
7
|
+
"data-e2e-test-id"?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function ContentCaseText({ children, className, "data-e2e-test-id": dataE2eTestId, }: ContentCaseTextProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from"react";import styled from"@emotion/styled";let StyledCaseText=styled("div",{target:"eo3vtj70",label:"StyledCaseText"})(({theme})=>({position:"relative",padding:theme.variables.size.spacing.m,borderRadius:theme.variables.size.borderRadius.s,backgroundColor:theme.values.color.background.secondary.default,'& > [data-ds-id="ContentHeading"]:first-child':{marginTop:0},"& > :last-child":{marginBottom:0}}));export function ContentCaseText({children,className,"data-e2e-test-id":dataE2eTestId}){return React.createElement(StyledCaseText,{className:className,"data-ds-id":"ContentCaseText","data-e2e-test-id":dataE2eTestId},children)}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TextProps } from "../../Typography/Text";
|
|
3
|
+
import type { ContentColor } from "../types";
|
|
4
|
+
import { ContentCitationLink } from "./ContentCitationLink";
|
|
5
|
+
import { ContentCitationLookupLink } from "./ContentCitationLookupLink";
|
|
6
|
+
import { ContentCitationTitle } from "./ContentCitationTitle";
|
|
7
|
+
export type ContentCitationProps = {
|
|
8
|
+
/** The composed citation: text, `ContentCitation.Title`, `ContentCitation.Link`, `ContentCitation.LookupLink` */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Text color, as on ContentText */
|
|
11
|
+
color?: ContentColor | TextProps["color"];
|
|
12
|
+
/** Provides additional line-height, as on ContentText */
|
|
13
|
+
isSpacedOut?: boolean;
|
|
14
|
+
as?: TextProps["as"];
|
|
15
|
+
"data-e2e-test-id"?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* One bibliographic citation as content text. The consumer composes the
|
|
19
|
+
* wording, punctuation and order; the parts provide the visual treatment.
|
|
20
|
+
*/
|
|
21
|
+
export declare function ContentCitation({ children, color, isSpacedOut, as, "data-e2e-test-id": dataE2eTestId, }: ContentCitationProps): React.ReactElement;
|
|
22
|
+
export declare namespace ContentCitation {
|
|
23
|
+
var Title: typeof ContentCitationTitle;
|
|
24
|
+
var Link: typeof ContentCitationLink;
|
|
25
|
+
var LookupLink: typeof ContentCitationLookupLink;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from"react";import{ContentText}from"../ContentText/ContentText";import{ContentCitationLink}from"./ContentCitationLink";import{ContentCitationLookupLink}from"./ContentCitationLookupLink";import{ContentCitationTitle}from"./ContentCitationTitle";export function ContentCitation({children,color,isSpacedOut=!1,as,"data-e2e-test-id":dataE2eTestId}){return React.createElement(ContentText,{"data-ds-id":"ContentCitation","data-e2e-test-id":dataE2eTestId,color:color,isSpacedOut:isSpacedOut,as:as},children)}ContentCitation.Title=ContentCitationTitle,ContentCitation.Link=ContentCitationLink,ContentCitation.LookupLink=ContentCitationLookupLink;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCitationLinkProps = {
|
|
3
|
+
/** Link text: the work title, DOI or URL */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
7
|
+
/**
|
|
8
|
+
* Visually hidden, localised cue that the link opens in a new tab, e.g.
|
|
9
|
+
* "(opens in a new tab)". Appended to the link's accessible name.
|
|
10
|
+
*/
|
|
11
|
+
newTabLabel?: string;
|
|
12
|
+
"data-e2e-test-id"?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const CITATION_LINK_ICON_BASELINE_OFFSET = "-1px";
|
|
15
|
+
/** A link inside a citation (title, DOI, URL), opening in a new tab. */
|
|
16
|
+
export declare function ContentCitationLink({ children, href, onClick, newTabLabel, "data-e2e-test-id": dataE2eTestId, }: ContentCitationLinkProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React,{useRef}from"react";import styled from"@emotion/styled";import{ContentLink}from"../ContentLink/ContentLink";import{Icon}from"../../Icon/Icon";import{ScreenReaderText}from"../../Utilities/ScreenReaderText/ScreenReaderText";export const CITATION_LINK_ICON_BASELINE_OFFSET="-1px";let StyledLinkText=styled("span",{target:"e18a1ij30",label:"StyledLinkText"})({overflowWrap:["break-word","anywhere"]}),StyledCitationLink=styled("span",{target:"e18a1ij31",label:"StyledCitationLink"})(({theme})=>({marginRight:theme.variables.size.spacing.xs,"& svg":{marginLeft:theme.variables.size.spacing.xxs,marginBottom:"-1px"}}));export function ContentCitationLink({children,href,onClick,newTabLabel,"data-e2e-test-id":dataE2eTestId}){let linkRef=useRef(null);return React.createElement(StyledCitationLink,{ref:linkRef,"data-ds-id":"ContentCitationLink"},React.createElement(ContentLink,{href:href,target:"_blank",rel:"noopener noreferrer",color:"primary",onClick:onClick,"data-e2e-test-id":dataE2eTestId},React.createElement(StyledLinkText,null,children),newTabLabel&&React.createElement(ScreenReaderText,{as:"span"}," ",newTabLabel),React.createElement(Icon,{inline:!0,name:"external-link",size:"s",color:"tertiary",hoverable:linkRef})))}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCitationLookupLinkProps = {
|
|
3
|
+
/** Link text, e.g. "Open in Read by QxMD" */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
7
|
+
/**
|
|
8
|
+
* Visually hidden, localised cue that the link opens in a new tab, e.g.
|
|
9
|
+
* "(opens in a new tab)". Appended to the link's accessible name.
|
|
10
|
+
*/
|
|
11
|
+
newTabLabel?: string;
|
|
12
|
+
"data-e2e-test-id"?: string;
|
|
13
|
+
};
|
|
14
|
+
/** Accent-coloured lookup after the citation, e.g. an external literature search. */
|
|
15
|
+
export declare function ContentCitationLookupLink({ children, href, onClick, newTabLabel, "data-e2e-test-id": dataE2eTestId, }: ContentCitationLookupLinkProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from"react";import styled from"@emotion/styled";import{ContentLink}from"../ContentLink/ContentLink";import{Icon}from"../../Icon/Icon";import{ScreenReaderText}from"../../Utilities/ScreenReaderText/ScreenReaderText";import{CITATION_LINK_ICON_BASELINE_OFFSET}from"./ContentCitationLink";let StyledLookupLink=styled("span",{target:"exd44bo0",label:"StyledLookupLink"})(({theme})=>({whiteSpace:"nowrap","& svg":{marginLeft:theme.variables.size.spacing.xxs,marginBottom:CITATION_LINK_ICON_BASELINE_OFFSET}}));export function ContentCitationLookupLink({children,href,onClick,newTabLabel,"data-e2e-test-id":dataE2eTestId}){return React.createElement(StyledLookupLink,{"data-ds-id":"ContentCitationLookupLink"},React.createElement(ContentLink,{href:href,target:"_blank",rel:"noopener noreferrer",color:"accent",onClick:onClick,"data-e2e-test-id":dataE2eTestId},React.createElement("span",null,children),newTabLabel&&React.createElement(ScreenReaderText,{as:"span"}," ",newTabLabel),React.createElement(Icon,{inline:!0,name:"external-link",size:"s",color:"inherit"})))}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ContentCitationTitleProps = {
|
|
3
|
+
/** Title of the cited work or periodical */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
"data-e2e-test-id"?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Title of a cited work or periodical, rendered in italics. */
|
|
8
|
+
export declare function ContentCitationTitle({ children, "data-e2e-test-id": dataE2eTestId, }: ContentCitationTitleProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from"react";import styled from"@emotion/styled";let StyledCite=styled("cite",{target:"e1w99dcz0",label:"StyledCite"})({fontStyle:"italic"});export function ContentCitationTitle({children,"data-e2e-test-id":dataE2eTestId}){return React.createElement(StyledCite,{"data-ds-id":"ContentCitationTitle","data-e2e-test-id":dataE2eTestId},children)}
|
package/build/esm/index.d.ts
CHANGED
|
@@ -29,6 +29,14 @@ export * from "./components/Composite/FilterDialog/FilterDialog";
|
|
|
29
29
|
export * from "./components/Container";
|
|
30
30
|
export * from "./components/Content/ContentBadge/ContentBadge";
|
|
31
31
|
export * from "./components/Content/ContentBox/ContentBox";
|
|
32
|
+
export * from "./components/Content/ContentBrandName/ContentBrandName";
|
|
33
|
+
export * from "./components/Content/ContentBox/constants";
|
|
34
|
+
export type { ContentBoxColorVariant, ContentBoxType, } from "./components/Content/ContentBox/types";
|
|
35
|
+
export * from "./components/Content/ContentCaseText/ContentCaseText";
|
|
36
|
+
export * from "./components/Content/ContentCitation/ContentCitation";
|
|
37
|
+
export { ContentCitationLink, type ContentCitationLinkProps, } from "./components/Content/ContentCitation/ContentCitationLink";
|
|
38
|
+
export * from "./components/Content/ContentCitation/ContentCitationLookupLink";
|
|
39
|
+
export * from "./components/Content/ContentCitation/ContentCitationTitle";
|
|
32
40
|
export * from "./components/Content/ContentCheckbox/ContentCheckbox";
|
|
33
41
|
export * from "./components/Content/ContentFontResizer";
|
|
34
42
|
export * from "./components/Content/ContentHeading/ContentHeading";
|
|
@@ -72,6 +80,8 @@ export * from "./components/Image/Image";
|
|
|
72
80
|
export * from "./components/Inline/Inline";
|
|
73
81
|
export * from "./components/InlineMessage/InlineMessage";
|
|
74
82
|
export * from "./components/InteractiveBox/InteractiveBox";
|
|
83
|
+
export * from "./components/Kbd/Kbd";
|
|
84
|
+
export * from "./components/KbdGroup/KbdGroup";
|
|
75
85
|
export * from "./components/Layout";
|
|
76
86
|
export * from "./components/Lightbox/Lightbox";
|
|
77
87
|
export * from "./components/Link/Link";
|
package/build/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ambossVisualConfiguration}from"./web-tokens/visualConfig";export const{dark,light}=ambossVisualConfiguration;export{default as createCache}from"@emotion/cache";export{CacheProvider,ThemeProvider}from"@emotion/react";export*from"./components/AccessCardItem/AccessCardItem";export*from"./components/AIButton/AIButton";export*from"./components/AIFloatingButton/AIFloatingButton";export*from"./components/Avatar/Avatar";export*from"./components/AvatarGroup/AvatarGroup";export*from"./components/Badge/Badge";export*from"./components/BinaryFeedback/BinaryFeedback";export*from"./components/Box/Box";export*from"./components/BulkActionsToolbar/BulkActionsToolbar";export*from"./components/Button/Button";export*from"./components/Callout/Callout";export*from"./components/Card/Card";export*from"./components/Card/CardBox/CardBox";export*from"./components/CatalogCard/CatalogCard";export*from"./components/ChatMessage";export*from"./components/ChatResponse";export*from"./components/CheckboxCard/CheckboxCard";export*from"./components/Collapsible/Collapsible";export*from"./components/ColorIndicator/ColorIndicator";export*from"./components/ColorPicker/ColorPicker";export*from"./components/Column/Columns";export*from"./components/Composite/FilterDialog/FilterDialog";export*from"./components/Container";export*from"./components/Content/ContentBadge/ContentBadge";export*from"./components/Content/ContentBox/ContentBox";export*from"./components/Content/ContentCheckbox/ContentCheckbox";export*from"./components/Content/ContentFontResizer";export*from"./components/Content/ContentHeading/ContentHeading";export*from"./components/Content/ContentLink/ContentLink";export*from"./components/Content/ContentList";export*from"./components/Content/ContentPictogramButton/ContentPictogramButton";export*from"./components/Content/ContentTable";export*from"./components/Content/ContentTableModal/ContentTableModal";export*from"./components/Content/ContentText/ContentText";export*from"./components/Content/DosageButton";export*from"./components/Content/ReferenceButton";export*from"./components/CountButton/CountButton";export*from"./components/DataTable";export*from"./components/DataTable/DataTableToolbar/DataTableToolbar";export*from"./components/Divider/Divider";export*from"./components/DropdownMenu/DropdownMenu";export*from"./components/EntityList";export*from"./components/EntityTree";export*from"./components/Form/Checkbox/Checkbox";export*from"./components/Form/Combobox/Combobox";export*from"./components/Form/DateInput/DateInput";export*from"./components/Form/DatePicker";export*from"./components/Form/FormFieldGroup/FormFieldGroup";export*from"./components/Form/Input";export*from"./components/Form/MaskedInput/MaskedInput";export*from"./components/Form/PasswordInput";export*from"./components/Form/Radio/Radio";export*from"./components/Form/RadioButton/RadioButton";export*from"./components/Form/RangeInput/RangeInput";export*from"./components/Form/SearchInput/SearchInput";export*from"./components/Form/SegmentedControl/SegmentedControl";export*from"./components/Form/Select";export*from"./components/Form/Textarea/Textarea";export*from"./components/Form/Toggle/Toggle";export*from"./components/Form/ToggleButton/ToggleButton";export*from"./components/Form/ToolbarToggle/ToolbarToggle";export*from"./components/Grid/Grid";export*from"./components/Icon/Icon";export*from"./components/IconTile/IconTile";export*from"./components/Image/Image";export*from"./components/Inline/Inline";export*from"./components/InlineMessage/InlineMessage";export*from"./components/InteractiveBox/InteractiveBox";export*from"./components/Layout";export*from"./components/Lightbox/Lightbox";export*from"./components/Link/Link";export*from"./components/LoadingSpinner/LoadingSpinner";export*from"./components/Logo/Logo";export*from"./components/MediaItem";export*from"./components/MediaViewerBar/MediaViewerBar";export*from"./components/MediaViewerCarousel/MediaViewerCarousel";export*from"./components/NavBar";export*from"./components/Notification/Notification";export*from"./components/Pagination/Pagination";export*from"./components/Patterns/ButtonGroup/ButtonGroup";export*from"./components/Patterns/EmptyState/EmptyState";export*from"./components/Patterns/Modal/Modal";export*from"./components/PictogramButton/PictogramButton";export*from"./components/Popover/Popover";export*from"./components/ProgressBar/ProgressBar";export*from"./components/PromptButton/PromptButton";export*from"./components/PromptButtonGroup/PromptButtonGroup";export*from"./components/PromptInput/PromptInput";export*from"./components/QBankRichText/QBankRichText";export*from"./components/RadioCard/RadioCard";export*from"./components/RangePopover/RangePopover";export*from"./components/RoundButton/RoundButton";export*from"./components/SearchResult/SearchResult";export*from"./components/SegmentedProgressBar/SegmentedProgressBar";export*from"./components/Sheet/Sheet";export*from"./components/SplashCard/SplashCard";export*from"./components/SplashCardMedia/SplashCardMedia";export*from"./components/Stack/Stack";export*from"./components/StatusIndicator/StatusIndicator";export*from"./components/SubThemeProvider/SubThemeProvider";export*from"./components/Tabs/Tabs";export*from"./components/Tag/Tag";export*from"./components/TagGroup/TagGroup";export*from"./components/Toast";export*from"./components/Toggletip/Toggletip";export*from"./components/Tooltip/Tooltip";export*from"./components/Tutorialtip/Tutorialtip";export*from"./components/Typography/Header";export*from"./components/Typography/StyledText/StyledText";export*from"./components/Typography/Text";export*from"./components/Typography/TextClamped/TextClamped";export*from"./components/UserHighlightTooltip/UserHighlightTooltip";export*from"./components/Utilities/AnimatedBorder/useAnimatedBorder";export*from"./components/Utilities/ContainerQuery/ContainerQuery";export*from"./components/Utilities/Expandable/Expandable";export*from"./components/Utilities/ScreenReaderText/ScreenReaderText";export*from"./shared/useSelectionRange";
|
|
1
|
+
import{ambossVisualConfiguration}from"./web-tokens/visualConfig";export const{dark,light}=ambossVisualConfiguration;export{default as createCache}from"@emotion/cache";export{CacheProvider,ThemeProvider}from"@emotion/react";export*from"./components/AccessCardItem/AccessCardItem";export*from"./components/AIButton/AIButton";export*from"./components/AIFloatingButton/AIFloatingButton";export*from"./components/Avatar/Avatar";export*from"./components/AvatarGroup/AvatarGroup";export*from"./components/Badge/Badge";export*from"./components/BinaryFeedback/BinaryFeedback";export*from"./components/Box/Box";export*from"./components/BulkActionsToolbar/BulkActionsToolbar";export*from"./components/Button/Button";export*from"./components/Callout/Callout";export*from"./components/Card/Card";export*from"./components/Card/CardBox/CardBox";export*from"./components/CatalogCard/CatalogCard";export*from"./components/ChatMessage";export*from"./components/ChatResponse";export*from"./components/CheckboxCard/CheckboxCard";export*from"./components/Collapsible/Collapsible";export*from"./components/ColorIndicator/ColorIndicator";export*from"./components/ColorPicker/ColorPicker";export*from"./components/Column/Columns";export*from"./components/Composite/FilterDialog/FilterDialog";export*from"./components/Container";export*from"./components/Content/ContentBadge/ContentBadge";export*from"./components/Content/ContentBox/ContentBox";export*from"./components/Content/ContentBrandName/ContentBrandName";export*from"./components/Content/ContentBox/constants";export*from"./components/Content/ContentCaseText/ContentCaseText";export*from"./components/Content/ContentCitation/ContentCitation";export{ContentCitationLink}from"./components/Content/ContentCitation/ContentCitationLink";export*from"./components/Content/ContentCitation/ContentCitationLookupLink";export*from"./components/Content/ContentCitation/ContentCitationTitle";export*from"./components/Content/ContentCheckbox/ContentCheckbox";export*from"./components/Content/ContentFontResizer";export*from"./components/Content/ContentHeading/ContentHeading";export*from"./components/Content/ContentLink/ContentLink";export*from"./components/Content/ContentList";export*from"./components/Content/ContentPictogramButton/ContentPictogramButton";export*from"./components/Content/ContentTable";export*from"./components/Content/ContentTableModal/ContentTableModal";export*from"./components/Content/ContentText/ContentText";export*from"./components/Content/DosageButton";export*from"./components/Content/ReferenceButton";export*from"./components/CountButton/CountButton";export*from"./components/DataTable";export*from"./components/DataTable/DataTableToolbar/DataTableToolbar";export*from"./components/Divider/Divider";export*from"./components/DropdownMenu/DropdownMenu";export*from"./components/EntityList";export*from"./components/EntityTree";export*from"./components/Form/Checkbox/Checkbox";export*from"./components/Form/Combobox/Combobox";export*from"./components/Form/DateInput/DateInput";export*from"./components/Form/DatePicker";export*from"./components/Form/FormFieldGroup/FormFieldGroup";export*from"./components/Form/Input";export*from"./components/Form/MaskedInput/MaskedInput";export*from"./components/Form/PasswordInput";export*from"./components/Form/Radio/Radio";export*from"./components/Form/RadioButton/RadioButton";export*from"./components/Form/RangeInput/RangeInput";export*from"./components/Form/SearchInput/SearchInput";export*from"./components/Form/SegmentedControl/SegmentedControl";export*from"./components/Form/Select";export*from"./components/Form/Textarea/Textarea";export*from"./components/Form/Toggle/Toggle";export*from"./components/Form/ToggleButton/ToggleButton";export*from"./components/Form/ToolbarToggle/ToolbarToggle";export*from"./components/Grid/Grid";export*from"./components/Icon/Icon";export*from"./components/IconTile/IconTile";export*from"./components/Image/Image";export*from"./components/Inline/Inline";export*from"./components/InlineMessage/InlineMessage";export*from"./components/InteractiveBox/InteractiveBox";export*from"./components/Kbd/Kbd";export*from"./components/KbdGroup/KbdGroup";export*from"./components/Layout";export*from"./components/Lightbox/Lightbox";export*from"./components/Link/Link";export*from"./components/LoadingSpinner/LoadingSpinner";export*from"./components/Logo/Logo";export*from"./components/MediaItem";export*from"./components/MediaViewerBar/MediaViewerBar";export*from"./components/MediaViewerCarousel/MediaViewerCarousel";export*from"./components/NavBar";export*from"./components/Notification/Notification";export*from"./components/Pagination/Pagination";export*from"./components/Patterns/ButtonGroup/ButtonGroup";export*from"./components/Patterns/EmptyState/EmptyState";export*from"./components/Patterns/Modal/Modal";export*from"./components/PictogramButton/PictogramButton";export*from"./components/Popover/Popover";export*from"./components/ProgressBar/ProgressBar";export*from"./components/PromptButton/PromptButton";export*from"./components/PromptButtonGroup/PromptButtonGroup";export*from"./components/PromptInput/PromptInput";export*from"./components/QBankRichText/QBankRichText";export*from"./components/RadioCard/RadioCard";export*from"./components/RangePopover/RangePopover";export*from"./components/RoundButton/RoundButton";export*from"./components/SearchResult/SearchResult";export*from"./components/SegmentedProgressBar/SegmentedProgressBar";export*from"./components/Sheet/Sheet";export*from"./components/SplashCard/SplashCard";export*from"./components/SplashCardMedia/SplashCardMedia";export*from"./components/Stack/Stack";export*from"./components/StatusIndicator/StatusIndicator";export*from"./components/SubThemeProvider/SubThemeProvider";export*from"./components/Tabs/Tabs";export*from"./components/Tag/Tag";export*from"./components/TagGroup/TagGroup";export*from"./components/Toast";export*from"./components/Toggletip/Toggletip";export*from"./components/Tooltip/Tooltip";export*from"./components/Tutorialtip/Tutorialtip";export*from"./components/Typography/Header";export*from"./components/Typography/StyledText/StyledText";export*from"./components/Typography/Text";export*from"./components/Typography/TextClamped/TextClamped";export*from"./components/UserHighlightTooltip/UserHighlightTooltip";export*from"./components/Utilities/AnimatedBorder/useAnimatedBorder";export*from"./components/Utilities/ContainerQuery/ContainerQuery";export*from"./components/Utilities/Expandable/Expandable";export*from"./components/Utilities/ScreenReaderText/ScreenReaderText";export*from"./shared/useSelectionRange";
|
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"face-neutral": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" d=\"M8.19 10.11c.05.04.1.09.15.12q.09.06.18.09.09.045.18.06c.07.01.14.02.2.02.26 0 .52-.11.71-.29.18-.19.29-.45.29-.71s-.11-.52-.29-.71c-.24-.23-.58-.33-.91-.27q-.09.015-.18.06-.09.03-.18.09l-.15.12q-.135.15-.21.33c-.05.12-.08.25-.08.38s.03.26.08.38c.05.13.12.23.21.33m6.91.29c.26 0 .52-.11.71-.29.18-.19.29-.44.29-.71 0-.13-.03-.26-.08-.38-.05-.13-.12-.23-.21-.33-.37-.37-1.05-.37-1.42 0-.09.1-.16.2-.21.33-.05.12-.08.25-.08.38 0 .27.11.52.29.71.19.18.45.29.71.29M12 21c-4.962 0-9-4.038-9-9 0-4.963 4.038-9 9-9 4.963 0 9 4.037 9 9 0 4.962-4.037 9-9 9m0-20C5.935 1 1 5.934 1 12s4.935 11 11 11 11-4.935 11-11S18.065 1 12 1m4 13.5H8a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2\"/></svg>",
|
|
88
88
|
"face-sad": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"currentColor\" d=\"M8.9 10.4c-.06 0-.13-.01-.2-.02a.6.6 0 0 1-.18-.06.8.8 0 0 1-.18-.09c-.05-.03-.1-.08-.15-.12-.09-.1-.16-.2-.21-.33a1 1 0 0 1-.08-.38c0-.13.03-.26.08-.38q.075-.18.21-.33l.15-.12q.09-.06.18-.09.09-.045.18-.06c.33-.06.67.04.91.27.18.19.29.45.29.71s-.11.52-.29.71c-.19.18-.45.29-.71.29m6.2 0c-.26 0-.52-.11-.71-.29-.18-.19-.29-.44-.29-.71 0-.13.03-.26.08-.38.05-.13.12-.23.21-.33.37-.37 1.05-.37 1.42 0 .09.1.16.2.21.33.05.12.08.25.08.38 0 .27-.11.52-.29.71-.19.18-.45.29-.71.29M12 3c-4.962 0-9 4.038-9 9s4.038 9 9 9c4.963 0 9-4.038 9-9s-4.037-9-9-9m0 20C5.935 23 1 18.066 1 12S5.935 1 12 1s11 4.935 11 11-4.935 11-11 11m4-5.7a1 1 0 0 1-.707-.293 4.66 4.66 0 0 0-6.586 0 .999.999 0 1 1-1.414-1.414 6.663 6.663 0 0 1 9.414 0A.999.999 0 0 1 16 17.3\"/></svg>",
|
|
89
89
|
"facebook": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"#1877F2\" d=\"M24 12c0-6.627-5.373-12-12-12S0 5.373 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.356c0-3.007 1.792-4.668 4.533-4.668 1.312 0 2.686.234 2.686.234v2.953H15.83c-1.491 0-1.956.925-1.956 1.875V12h3.328l-.532 3.469h-2.796v8.385C19.612 22.954 24 17.99 24 12\"/><path fill=\"#fff\" d=\"M16.671 15.469 17.203 12h-3.328V9.75c0-.949.465-1.875 1.956-1.875h1.513V4.922s-1.374-.234-2.686-.234c-2.741 0-4.533 1.66-4.533 4.668V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47h2.796z\"/></svg>",
|
|
90
|
+
"fc-circle": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M23 12C23 18.075 18.075 23 12 23C5.925 23 1 18.075 1 12C1 5.925 5.925 1 12 1C18.075 1 23 5.925 23 12Z\"/></svg>",
|
|
91
|
+
"fc-diamond": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M1.354 12.354C1.158 12.158 1.158 11.842 1.354 11.646L11.646 1.354C11.842 1.158 12.158 1.158 12.354 1.354L22.646 11.646C22.842 11.842 22.842 12.158 22.646 12.354L12.354 22.646C12.158 22.842 11.842 22.842 11.646 22.646L1.354 12.354Z\"/></svg>",
|
|
92
|
+
"fc-hexagon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M22.841 11.739C22.939 11.899 22.939 12.101 22.841 12.261L17.646 20.761C17.555 20.909 17.394 21 17.22 21H6.78C6.606 21 6.445 20.909 6.354 20.761L1.159 12.261C1.062 12.101 1.062 11.899 1.159 11.739L6.354 3.239C6.445 3.091 6.606 3 6.78 3H17.22C17.394 3 17.555 3.091 17.646 3.239L22.841 11.739Z\"/></svg>",
|
|
93
|
+
"fc-triangle": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M11.567 2.747C11.76 2.415 12.24 2.415 12.433 2.747L22.566 20.25C22.759 20.583 22.518 21 22.133 21H1.867C1.482 21 1.242 20.583 1.435 20.25L11.567 2.747Z\"/></svg>",
|
|
90
94
|
"figma": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" focusable=\"false\"><path fill=\"#1ABCFE\" d=\"M12 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0\"/><path fill=\"#0ACF83\" d=\"M4 20a4 4 0 0 1 4-4h4v4a4 4 0 1 1-8 0\"/><path fill=\"#FF7262\" d=\"M12 0v8h4a4 4 0 1 0 0-8z\"/><path fill=\"#F24E1E\" d=\"M4 4a4 4 0 0 0 4 4h4V0H8a4 4 0 0 0-4 4\"/><path fill=\"#A259FF\" d=\"M4 12a4 4 0 0 0 4 4h4V8H8a4 4 0 0 0-4 4\"/></svg>",
|
|
91
95
|
"file-pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M5.457 14.129q.208 0 .36.047a.7.7 0 0 1 .25.134.5.5 0 0 1 .148.21q.05.12.05.27 0 .326-.196.513-.193.187-.612.187h-.565v-1.36zm3.931.019q.303 0 .54.093.242.094.408.268t.256.425.089.565q0 .316-.09.567-.088.252-.255.428-.167.173-.407.267-.239.09-.541.091h-.762v-2.704z\"/><path fill-rule=\"evenodd\" d=\"m14.172 1.016.026.004.048.011q.024.005.047.012.144.045.267.128l.074.056q.038.03.073.066l7 7A1 1 0 0 1 22 9v11a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-1H3a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1h1V4a3 3 0 0 1 3-3h7q.088 0 .172.016M4.2 13.5a.2.2 0 0 0-.2.2v3.6c0 .11.09.2.2.2h.492a.2.2 0 0 0 .2-.2v-1.176h.565q.43 0 .752-.096.32-.099.532-.276a1.1 1.1 0 0 0 .316-.422 1.4 1.4 0 0 0 .104-.54q0-.278-.101-.516a1.04 1.04 0 0 0-.306-.408 1.5 1.5 0 0 0-.533-.27 2.7 2.7 0 0 0-.764-.096zm3.729 0a.2.2 0 0 0-.2.2v3.6c0 .11.09.2.2.2h1.459q.495 0 .904-.148.407-.15.695-.415.292-.264.45-.63.16-.37.16-.808 0-.435-.16-.803a1.8 1.8 0 0 0-.45-.63 2 2 0 0 0-.695-.418 2.6 2.6 0 0 0-.904-.148zm4.523 0a.2.2 0 0 0-.2.2v3.6c0 .11.09.2.2.2h.498a.2.2 0 0 0 .2-.2v-1.396h1.353a.2.2 0 0 0 .2-.2v-.25a.2.2 0 0 0-.2-.201H13.15v-1.105h1.65a.2.2 0 0 0 .2-.2V13.7a.2.2 0 0 0-.2-.2zM15 8h3.586L15 4.414zm1 4a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H6v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10h-6a1 1 0 0 1-1-1V3H7a1 1 0 0 0-1 1v8z\" clip-rule=\"evenodd\"/></svg>",
|
|
92
96
|
"file-text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" viewBox=\"0 0 24 24\" focusable=\"false\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"/><path d=\"M14 2v6h6m-4 5H8m8 4H8m2-8H8\"/></svg>",
|
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"face-neutral": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"currentColor\" stroke-width=\"2\"/><g fill=\"currentColor\"><circle cx=\"6\" cy=\"6\" r=\"1\"/><circle cx=\"10\" cy=\"6\" r=\"1\"/><path d=\"M5 9a1 1 0 0 0 0 2zm6 2a1 1 0 1 0 0-2zm-6 0h6V9H5z\"/></g></svg>",
|
|
88
88
|
"face-sad": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7\" stroke=\"currentColor\" stroke-width=\"2\"/><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2\" d=\"M5 10.5c.85-.788 1.885-1.25 3-1.25s2.15.462 3 1.25\"/><g fill=\"currentColor\"><circle cx=\"6\" cy=\"6\" r=\"1\"/><circle cx=\"10\" cy=\"6\" r=\"1\"/></g></svg>",
|
|
89
89
|
"facebook": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"#1877f2\" d=\"M16 8a8 8 0 1 0-9.25 7.903v-5.59H4.719V8H6.75V6.238c0-2.006 1.194-3.113 3.022-3.113.875 0 1.79.156 1.79.156V5.25h-1.008c-.994 0-1.304.617-1.304 1.25V8h2.219l-.355 2.313H9.25v5.59A8 8 0 0 0 16 8\"/><path fill=\"#fff\" d=\"M11.114 10.313 11.47 8H9.25V6.5c0-.633.31-1.25 1.304-1.25h1.009V3.281s-.916-.156-1.791-.156c-1.828 0-3.022 1.107-3.022 3.112V8H4.719v2.313H6.75v5.59c.828.13 1.672.13 2.5 0v-5.59z\"/></svg>",
|
|
90
|
+
"fc-circle": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8Z\"/></svg>",
|
|
91
|
+
"fc-diamond": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M1.354 8.354C1.158 8.158 1.158 7.842 1.354 7.646L7.646 1.354C7.842 1.158 8.158 1.158 8.354 1.354L14.646 7.646C14.842 7.842 14.842 8.158 14.646 8.354L8.354 14.646C8.158 14.842 7.842 14.842 7.646 14.646L1.354 8.354Z\"/></svg>",
|
|
92
|
+
"fc-hexagon": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M14.854 7.749C14.944 7.904 14.945 8.096 14.855 8.251L11.644 13.812C11.555 13.967 11.39 14.062 11.211 14.062H4.789C4.61 14.062 4.445 13.967 4.356 13.812L1.145 8.251C1.055 8.096 1.056 7.904 1.146 7.749L4.355 2.248C4.445 2.094 4.609 2 4.787 2H11.213C11.391 2 11.555 2.094 11.645 2.248L14.854 7.749Z\"/></svg>",
|
|
93
|
+
"fc-triangle": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" focusable=\"false\"><path d=\"M7.568 2.74C7.761 2.41 8.239 2.41 8.432 2.74L14.561 13.248C14.756 13.581 14.515 14 14.13 14H1.871C1.485 14 1.244 13.581 1.439 13.248L7.568 2.74Z\"/></svg>",
|
|
90
94
|
"figma": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"#1ABCFE\" d=\"M8.003 8a2.667 2.667 0 1 1 5.334 0 2.667 2.667 0 0 1-5.334 0\"/><path fill=\"#0ACF83\" d=\"M2.67 13.333a2.667 2.667 0 0 1 2.667-2.666h2.666v2.666a2.667 2.667 0 1 1-5.333 0\"/><path fill=\"#FF7262\" d=\"M8.003 0v5.333h2.667a2.667 2.667 0 0 0 0-5.333z\"/><path fill=\"#F24E1E\" d=\"M2.67 2.667a2.667 2.667 0 0 0 2.667 2.666h2.666V0H5.337A2.667 2.667 0 0 0 2.67 2.667\"/><path fill=\"#A259FF\" d=\"M2.67 8a2.667 2.667 0 0 0 2.667 2.667h2.666V5.333H5.337A2.667 2.667 0 0 0 2.67 8\"/></svg>",
|
|
91
95
|
"file-pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\" focusable=\"false\"><path d=\"M2.528 9.472q.152 0 .262.035a.5.5 0 0 1 .182.1.4.4 0 0 1 .108.158.5.5 0 0 1 .036.203.52.52 0 0 1-.142.384q-.141.141-.446.141h-.41V9.472zm2.859.014q.22 0 .393.07a.81.81 0 0 1 .483.52q.065.187.065.423 0 .238-.065.426a.82.82 0 0 1-.482.522 1.1 1.1 0 0 1-.394.067h-.554V9.486z\"/><path fill-rule=\"evenodd\" d=\"M9.438.006a1 1 0 0 1 .632.318l3.667 4A1 1 0 0 1 14 5v8.667a2.334 2.334 0 0 1-2.095 2.321l-.238.012H4.333A2.334 2.334 0 0 1 2 13.667V13H1a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h1V2.333A2.333 2.333 0 0 1 4.333 0h5zM4.333 2A.333.333 0 0 0 4 2.333V8h6.015a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H4v.667c0 .184.15.333.333.333h7.334c.184 0 .333-.15.333-.333V6H9a1 1 0 0 1-1-1V2zM1.669 9a.2.2 0 0 0-.2.2v2.6c0 .11.09.2.2.2h.249a.2.2 0 0 0 .2-.2v-.831h.41q.315 0 .547-.073.234-.074.388-.207a.8.8 0 0 0 .228-.316q.076-.184.077-.405 0-.21-.074-.387a.8.8 0 0 0-.222-.306q-.151-.13-.388-.203A1.9 1.9 0 0 0 2.528 9zm2.71 0a.2.2 0 0 0-.198.2v2.6c0 .11.089.2.199.2h1.007q.36 0 .658-.111.296-.113.506-.31.212-.2.326-.475.117-.276.117-.605 0-.326-.117-.602a1.4 1.4 0 0 0-.326-.473 1.5 1.5 0 0 0-.506-.313A1.9 1.9 0 0 0 5.387 9zm3.292 0a.2.2 0 0 0-.2.2v2.6c0 .11.09.2.2.2h.253a.2.2 0 0 0 .2-.2v-.997h.929a.2.2 0 0 0 .2-.2v-.088a.2.2 0 0 0-.2-.2h-.929v-.829h1.145a.2.2 0 0 0 .2-.2V9.2a.2.2 0 0 0-.2-.2zM10 4h.727L10 3.206z\" clip-rule=\"evenodd\"/></svg>",
|
|
92
96
|
"file-text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 16 16\" focusable=\"false\"><path fill=\"currentColor\" d=\"M11 10v2H5v-2zM5 7v2h6V7zm2-3H5v2h2z\"/><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12 16H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 14 4.828V14a2 2 0 0 1-2 2M9 6h3v8H4V2h4v3a1 1 0 0 0 1 1m1-3.172L11.172 4H10z\" clip-rule=\"evenodd\"/></svg>",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amboss/design-system",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "the design system for AMBOSS products",
|
|
5
5
|
"author": "AMBOSS",
|
|
6
6
|
"license": "ISC",
|
|
@@ -184,12 +184,12 @@
|
|
|
184
184
|
"@auto-it/npm": "^11.1.6",
|
|
185
185
|
"@auto-it/released": "^10.13.2",
|
|
186
186
|
"@emotion/jest": "^11.11.0",
|
|
187
|
-
"@storybook/addon-a11y": "10.
|
|
188
|
-
"@storybook/addon-docs": "10.
|
|
189
|
-
"@storybook/addon-links": "10.
|
|
190
|
-
"@storybook/addon-mcp": "^
|
|
191
|
-
"@storybook/addon-vitest": "10.
|
|
192
|
-
"@storybook/react-vite": "10.
|
|
187
|
+
"@storybook/addon-a11y": "10.6.0",
|
|
188
|
+
"@storybook/addon-docs": "10.6.0",
|
|
189
|
+
"@storybook/addon-links": "10.6.0",
|
|
190
|
+
"@storybook/addon-mcp": "^10.6.0",
|
|
191
|
+
"@storybook/addon-vitest": "10.6.0",
|
|
192
|
+
"@storybook/react-vite": "10.6.0",
|
|
193
193
|
"@swc/cli": "^0.1.65",
|
|
194
194
|
"@swc/core": "~1.11.31",
|
|
195
195
|
"@swc/plugin-emotion": "^9.0.0",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"prettier": "^2.2.1",
|
|
237
237
|
"react": "^18.3.1",
|
|
238
238
|
"react-dom": "^18.3.1",
|
|
239
|
-
"storybook": "10.
|
|
239
|
+
"storybook": "10.6.0",
|
|
240
240
|
"style-dictionary": "^3.8.0",
|
|
241
241
|
"subset-font": "2.5.0",
|
|
242
242
|
"svg-to-pdfkit": "^0.1.8",
|