@veeqo/ui 14.1.1 → 14.2.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/dist/components/Action/Action.cjs +19 -10
- package/dist/components/Action/Action.cjs.map +1 -1
- package/dist/components/Action/Action.d.ts +64 -17
- package/dist/components/Action/Action.js +19 -11
- package/dist/components/Action/Action.js.map +1 -1
- package/dist/components/Action/styles/button.module.scss.cjs +2 -2
- package/dist/components/Action/styles/button.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/button.module.scss.js +2 -2
- package/dist/components/Action/styles/button.module.scss.js.map +1 -1
- package/dist/components/Action/styles/link.module.scss.cjs +2 -2
- package/dist/components/Action/styles/link.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/link.module.scss.js +2 -2
- package/dist/components/Action/styles/link.module.scss.js.map +1 -1
- package/dist/components/Action/types.d.ts +17 -1
- package/dist/components/Action/utils.cjs +4 -2
- package/dist/components/Action/utils.cjs.map +1 -1
- package/dist/components/Action/utils.d.ts +3 -2
- package/dist/components/Action/utils.js +4 -2
- package/dist/components/Action/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var withTokens = require('../../hoc/withTokens/withTokens.cjs');
|
|
5
|
+
var LaunchIcon = require('../../icons/design-system/components/LaunchIcon.cjs');
|
|
6
|
+
var DropdownIcon = require('../../icons/custom/components/DropdownIcon.cjs');
|
|
4
7
|
var getContextAwareLink = require('../../utils/getContextAwareLink.cjs');
|
|
5
8
|
var Loader = require('../Loader/Loader.cjs');
|
|
6
|
-
var LaunchIcon = require('../../icons/design-system/components/LaunchIcon.cjs');
|
|
7
9
|
var utils = require('./utils.cjs');
|
|
8
|
-
var button_module = require('./styles/button.module.scss.cjs');
|
|
9
10
|
var FlexRow = require('../Flex/FlexRow/FlexRow.cjs');
|
|
11
|
+
var button_module = require('./styles/button.module.scss.cjs');
|
|
10
12
|
|
|
11
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
14
|
|
|
@@ -15,7 +17,8 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
15
17
|
/**
|
|
16
18
|
* Action component for rendering buttons or links with various styles and behaviors.
|
|
17
19
|
*/
|
|
18
|
-
const
|
|
20
|
+
const ActionBase = React.forwardRef(({ appearance, as, href, target, rel, allowedHostnames, className, variant, disabled, dropdown, iconSlot, children, hideExternalLinkIcon, loading, size: sizeProp, type = 'button', ...otherProps }, ref) => {
|
|
21
|
+
const size = sizeProp;
|
|
19
22
|
const isSemanticLink = !!href;
|
|
20
23
|
const defaultAppearance = isSemanticLink ? 'link' : 'button';
|
|
21
24
|
const visualAppearance = appearance || defaultAppearance;
|
|
@@ -23,10 +26,11 @@ const Action = React.forwardRef(({ appearance, as, href, target, rel, allowedHos
|
|
|
23
26
|
className,
|
|
24
27
|
variant,
|
|
25
28
|
disabled,
|
|
26
|
-
|
|
29
|
+
size,
|
|
30
|
+
dropdown,
|
|
27
31
|
iconSlot,
|
|
28
32
|
children,
|
|
29
|
-
}), [visualAppearance, className, variant, disabled,
|
|
33
|
+
}), [visualAppearance, className, variant, disabled, size, dropdown, iconSlot, children]);
|
|
30
34
|
const { linkProps, showExternalIcon } = getContextAwareLink.getContextAwareLink({
|
|
31
35
|
href,
|
|
32
36
|
target,
|
|
@@ -39,14 +43,15 @@ const Action = React.forwardRef(({ appearance, as, href, target, rel, allowedHos
|
|
|
39
43
|
const Component = as || (isSemanticLink ? 'a' : 'button');
|
|
40
44
|
// If a custom component is specified via `as`, render that component
|
|
41
45
|
if (as) {
|
|
42
|
-
return (React__default.default.createElement(Component, { ...otherProps, ref: ref, className: classNames, disabled: disabled, loading: loading, type: type, ...linkProps },
|
|
46
|
+
return (React__default.default.createElement(Component, { ...otherProps, ref: ref, className: classNames, disabled: disabled, loading: loading, type: type, "aria-disabled": loading, ...linkProps },
|
|
43
47
|
iconSlot,
|
|
44
48
|
children,
|
|
45
|
-
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null)
|
|
49
|
+
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null),
|
|
50
|
+
visualAppearance === 'button' && dropdown && React__default.default.createElement(DropdownIcon.DropdownIcon, null)));
|
|
46
51
|
}
|
|
47
52
|
// Render as an Anchor if type is a navigate action
|
|
48
53
|
if (isSemanticLink) {
|
|
49
|
-
return (React__default.default.createElement("a", { ...otherProps, ref: ref, className: classNames, ...linkProps },
|
|
54
|
+
return (React__default.default.createElement("a", { ...otherProps, ref: ref, className: classNames, "aria-disabled": loading, ...linkProps },
|
|
50
55
|
iconSlot,
|
|
51
56
|
children,
|
|
52
57
|
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null)));
|
|
@@ -58,10 +63,14 @@ const Action = React.forwardRef(({ appearance, as, href, target, rel, allowedHos
|
|
|
58
63
|
React__default.default.createElement(FlexRow.FlexRow, { gap: "sm", flexWrap: "nowrap", className: loading ? button_module.hideContent : undefined },
|
|
59
64
|
iconSlot,
|
|
60
65
|
children,
|
|
61
|
-
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null)
|
|
66
|
+
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null),
|
|
67
|
+
visualAppearance === 'button' && dropdown && React__default.default.createElement(DropdownIcon.DropdownIcon, null)),
|
|
62
68
|
loading && (React__default.default.createElement("div", { className: button_module.loadingWrapper, "aria-label": "Loading" },
|
|
63
|
-
React__default.default.createElement(Loader.Loader,
|
|
69
|
+
React__default.default.createElement(Loader.Loader, { className: button_module.loader })))));
|
|
64
70
|
});
|
|
71
|
+
ActionBase.displayName = 'Action';
|
|
72
|
+
const Action = withTokens.withTokens(ActionBase);
|
|
65
73
|
|
|
66
74
|
exports.Action = Action;
|
|
75
|
+
exports.ActionBase = ActionBase;
|
|
67
76
|
//# sourceMappingURL=Action.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.cjs","sources":["../../../src/components/Action/Action.tsx"],"sourcesContent":["import React, {
|
|
1
|
+
{"version":3,"file":"Action.cjs","sources":["../../../src/components/Action/Action.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { withTokens } from '../../hoc/withTokens';\nimport { DropdownIcon, LaunchIcon } from '../../icons';\nimport { getContextAwareLink } from '../../utils/getContextAwareLink';\nimport { Loader } from '../Loader';\nimport { ActionProps } from './types';\nimport { getAppearanceClasses } from './utils';\n\nimport { FlexRow } from '../Flex/FlexRow';\nimport buttonStyles from './styles/button.module.scss';\n\n/**\n * Action component for rendering buttons or links with various styles and behaviors.\n */\nexport const ActionBase = forwardRef(\n <C extends React.ElementType>(\n {\n appearance,\n as,\n href,\n target,\n rel,\n allowedHostnames,\n className,\n variant,\n disabled,\n dropdown,\n iconSlot,\n children,\n hideExternalLinkIcon,\n loading,\n size: sizeProp,\n type = 'button',\n ...otherProps\n }: ActionProps<C>,\n ref: React.Ref<HTMLElement>,\n ) => {\n const size = sizeProp;\n const isSemanticLink = !!href;\n const defaultAppearance = isSemanticLink ? 'link' : 'button';\n const visualAppearance = appearance || defaultAppearance;\n\n const classNames = useMemo(\n () =>\n getAppearanceClasses(visualAppearance, {\n className,\n variant,\n disabled,\n size,\n dropdown,\n iconSlot,\n children,\n }),\n [visualAppearance, className, variant, disabled, size, dropdown, iconSlot, children],\n );\n\n const { linkProps, showExternalIcon } = getContextAwareLink({\n href,\n target,\n rel,\n allowedHostnames,\n });\n\n const shouldShowExternalIcon = showExternalIcon && !hideExternalLinkIcon;\n\n // This assignment is needed to allow TypeScript to infer the correct type for `as`\n // and to ensure we can pass the correct props to the component without a type error.\n const Component = as || (isSemanticLink ? 'a' : 'button');\n\n // If a custom component is specified via `as`, render that component\n if (as) {\n return (\n <Component\n {...otherProps}\n ref={ref}\n className={classNames}\n disabled={disabled}\n loading={loading}\n type={type}\n aria-disabled={loading}\n {...linkProps}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\n {visualAppearance === 'button' && dropdown && <DropdownIcon />}\n </Component>\n );\n }\n\n // Render as an Anchor if type is a navigate action\n if (isSemanticLink) {\n return (\n <a\n {...otherProps}\n ref={ref as React.Ref<HTMLAnchorElement>}\n className={classNames}\n aria-disabled={loading}\n {...linkProps}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\n </a>\n );\n }\n\n // Otherwise, render as a Button\n return (\n <button\n {...otherProps}\n ref={ref as React.Ref<HTMLButtonElement>}\n // eslint-disable-next-line react/button-has-type\n type={type || 'button'}\n className={classNames}\n disabled={disabled}\n aria-busy={loading}\n >\n <FlexRow\n gap=\"sm\"\n flexWrap=\"nowrap\"\n className={loading ? buttonStyles.hideContent : undefined}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\n {visualAppearance === 'button' && dropdown && <DropdownIcon />}\n </FlexRow>\n {loading && (\n <div className={buttonStyles.loadingWrapper} aria-label=\"Loading\">\n <Loader className={buttonStyles.loader} />\n </div>\n )}\n </button>\n );\n },\n);\n\nActionBase.displayName = 'Action';\n\nexport const Action = withTokens(ActionBase);\n"],"names":["forwardRef","useMemo","getAppearanceClasses","getContextAwareLink","React","LaunchIcon","DropdownIcon","FlexRow","buttonStyles","Loader","withTokens"],"mappings":";;;;;;;;;;;;;;;;AAWA;;AAEG;MACU,UAAU,GAAGA,gBAAU,CAClC,CACE,EACE,UAAU,EACV,EAAE,EACF,IAAI,EACJ,MAAM,EACN,GAAG,EACH,gBAAgB,EAChB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,IAAI,EAAE,QAAQ,EACd,IAAI,GAAG,QAAQ,EACf,GAAG,UAAU,EACE,EACjB,GAA2B,KACzB;IACF,MAAM,IAAI,GAAG,QAAQ;AACrB,IAAA,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI;IAC7B,MAAM,iBAAiB,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ;AAC5D,IAAA,MAAM,gBAAgB,GAAG,UAAU,IAAI,iBAAiB;IAExD,MAAM,UAAU,GAAGC,aAAO,CACxB,MACEC,0BAAoB,CAAC,gBAAgB,EAAE;QACrC,SAAS;QACT,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,QAAQ;QACR,QAAQ;QACR,QAAQ;AACT,KAAA,CAAC,EACJ,CAAC,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CACrF;AAED,IAAA,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAGC,uCAAmB,CAAC;QAC1D,IAAI;QACJ,MAAM;QACN,GAAG;QACH,gBAAgB;AACjB,KAAA,CAAC;AAEF,IAAA,MAAM,sBAAsB,GAAG,gBAAgB,IAAI,CAAC,oBAAoB;;;AAIxE,IAAA,MAAM,SAAS,GAAG,EAAE,KAAK,cAAc,GAAG,GAAG,GAAG,QAAQ,CAAC;;AAGzD,IAAA,IAAI,EAAE,EAAE;AACN,QAAA,QACEC,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACJ,UAAU,EACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EAAA,eAAA,EACK,OAAO,EAAA,GAClB,SAAS,EAAA;YAEZ,QAAQ;YACR,QAAQ;YACR,sBAAsB,IAAIA,sBAAA,CAAA,aAAA,CAACC,yBAAU,EAAA,IAAA,CAAG;YACxC,gBAAgB,KAAK,QAAQ,IAAI,QAAQ,IAAID,qCAACE,yBAAY,EAAA,IAAA,CAAG,CACpD;AAEf,IAAA;;AAGD,IAAA,IAAI,cAAc,EAAE;AAClB,QAAA,QACEF,sBAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAA,GACM,UAAU,EACd,GAAG,EAAE,GAAmC,EACxC,SAAS,EAAE,UAAU,EAAA,eAAA,EACN,OAAO,KAClB,SAAS,EAAA;YAEZ,QAAQ;YACR,QAAQ;AACR,YAAA,sBAAsB,IAAIA,sBAAA,CAAA,aAAA,CAACC,yBAAU,EAAA,IAAA,CAAG,CACvC;AAEP,IAAA;;AAGD,IAAA,QACED,sBAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,GACM,UAAU,EACd,GAAG,EAAE,GAAmC;;AAExC,QAAA,IAAI,EAAE,IAAI,IAAI,QAAQ,EACtB,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,QAAQ,eACP,OAAO,EAAA;QAElBA,sBAAA,CAAA,aAAA,CAACG,eAAO,IACN,GAAG,EAAC,IAAI,EACR,QAAQ,EAAC,QAAQ,EACjB,SAAS,EAAE,OAAO,GAAGC,aAAY,CAAC,WAAW,GAAG,SAAS,EAAA;YAExD,QAAQ;YACR,QAAQ;YACR,sBAAsB,IAAIJ,sBAAA,CAAA,aAAA,CAACC,yBAAU,EAAA,IAAA,CAAG;YACxC,gBAAgB,KAAK,QAAQ,IAAI,QAAQ,IAAID,sBAAA,CAAA,aAAA,CAACE,yBAAY,OAAG,CACtD;QACT,OAAO,KACNF,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEI,aAAY,CAAC,cAAc,EAAA,YAAA,EAAa,SAAS,EAAA;AAC/D,YAAAJ,sBAAA,CAAA,aAAA,CAACK,aAAM,EAAA,EAAC,SAAS,EAAED,aAAY,CAAC,MAAM,EAAA,CAAI,CACtC,CACP,CACM;AAEb,CAAC;AAGH,UAAU,CAAC,WAAW,GAAG,QAAQ;MAEpB,MAAM,GAAGE,qBAAU,CAAC,UAAU;;;;;"}
|
|
@@ -2,18 +2,16 @@ import React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Action component for rendering buttons or links with various styles and behaviors.
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const ActionBase: React.ForwardRefExoticComponent<(Omit<{
|
|
6
6
|
appearance?: import("./types").ActionAppearance | undefined;
|
|
7
7
|
as?: React.ElementType<any> | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
className?: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Action component for rendering buttons or links with various styles and behaviors.
|
|
12
|
-
*/
|
|
13
|
-
compact?: boolean | undefined;
|
|
14
10
|
disabled?: boolean | undefined;
|
|
11
|
+
dropdown?: boolean | undefined;
|
|
15
12
|
iconSlot?: React.ReactNode;
|
|
16
13
|
loading?: boolean | undefined;
|
|
14
|
+
size?: import("./types").ActionSize | undefined;
|
|
17
15
|
type?: "button" | "submit" | "reset" | undefined;
|
|
18
16
|
variant?: import("./types").ActionVariant | undefined;
|
|
19
17
|
} & Omit<Omit<any, "ref">, "slot" | "style" | "title" | "href" | "rel" | "placeholder" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof {
|
|
@@ -21,13 +19,11 @@ export declare const Action: React.ForwardRefExoticComponent<(Omit<{
|
|
|
21
19
|
as?: C | undefined;
|
|
22
20
|
children?: React.ReactNode;
|
|
23
21
|
className?: string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Action component for rendering buttons or links with various styles and behaviors.
|
|
26
|
-
*/
|
|
27
|
-
compact?: boolean | undefined;
|
|
28
22
|
disabled?: boolean | undefined;
|
|
23
|
+
dropdown?: boolean | undefined;
|
|
29
24
|
iconSlot?: React.ReactNode;
|
|
30
25
|
loading?: boolean | undefined;
|
|
26
|
+
size?: import("./types").ActionSize | undefined;
|
|
31
27
|
type?: "button" | "submit" | "reset" | undefined;
|
|
32
28
|
variant?: import("./types").ActionVariant | undefined;
|
|
33
29
|
}> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -39,13 +35,11 @@ export declare const Action: React.ForwardRefExoticComponent<(Omit<{
|
|
|
39
35
|
as?: React.ElementType<any> | undefined;
|
|
40
36
|
children?: React.ReactNode;
|
|
41
37
|
className?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Action component for rendering buttons or links with various styles and behaviors.
|
|
44
|
-
*/
|
|
45
|
-
compact?: boolean | undefined;
|
|
46
38
|
disabled?: boolean | undefined;
|
|
39
|
+
dropdown?: boolean | undefined;
|
|
47
40
|
iconSlot?: React.ReactNode;
|
|
48
41
|
loading?: boolean | undefined;
|
|
42
|
+
size?: import("./types").ActionSize | undefined;
|
|
49
43
|
type?: "button" | "submit" | "reset" | undefined;
|
|
50
44
|
variant?: import("./types").ActionVariant | undefined;
|
|
51
45
|
} & Omit<Omit<any, "ref">, "slot" | "style" | "title" | "href" | "rel" | "placeholder" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof {
|
|
@@ -53,15 +47,68 @@ export declare const Action: React.ForwardRefExoticComponent<(Omit<{
|
|
|
53
47
|
as?: C | undefined;
|
|
54
48
|
children?: React.ReactNode;
|
|
55
49
|
className?: string | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Action component for rendering buttons or links with various styles and behaviors.
|
|
58
|
-
*/
|
|
59
|
-
compact?: boolean | undefined;
|
|
60
50
|
disabled?: boolean | undefined;
|
|
51
|
+
dropdown?: boolean | undefined;
|
|
61
52
|
iconSlot?: React.ReactNode;
|
|
62
53
|
loading?: boolean | undefined;
|
|
54
|
+
size?: import("./types").ActionSize | undefined;
|
|
63
55
|
type?: "button" | "submit" | "reset" | undefined;
|
|
64
56
|
variant?: import("./types").ActionVariant | undefined;
|
|
65
57
|
}> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
66
58
|
href?: undefined;
|
|
67
59
|
}, "ref">) & React.RefAttributes<HTMLElement>>;
|
|
60
|
+
export declare const Action: React.ForwardRefExoticComponent<(Omit<Omit<Omit<{
|
|
61
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
62
|
+
as?: React.ElementType<any> | undefined;
|
|
63
|
+
children?: React.ReactNode;
|
|
64
|
+
className?: string | undefined;
|
|
65
|
+
disabled?: boolean | undefined;
|
|
66
|
+
dropdown?: boolean | undefined;
|
|
67
|
+
iconSlot?: React.ReactNode;
|
|
68
|
+
loading?: boolean | undefined;
|
|
69
|
+
size?: import("./types").ActionSize | undefined;
|
|
70
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
71
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
72
|
+
} & Omit<Omit<any, "ref">, "slot" | "style" | "title" | "href" | "rel" | "placeholder" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof {
|
|
73
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
74
|
+
as?: C | undefined;
|
|
75
|
+
children?: React.ReactNode;
|
|
76
|
+
className?: string | undefined;
|
|
77
|
+
disabled?: boolean | undefined;
|
|
78
|
+
dropdown?: boolean | undefined;
|
|
79
|
+
iconSlot?: React.ReactNode;
|
|
80
|
+
loading?: boolean | undefined;
|
|
81
|
+
size?: import("./types").ActionSize | undefined;
|
|
82
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
83
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
84
|
+
}> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
85
|
+
href: string;
|
|
86
|
+
allowedHostnames?: string[] | undefined;
|
|
87
|
+
hideExternalLinkIcon?: boolean | undefined;
|
|
88
|
+
}, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps, "ref"> | Omit<Omit<Omit<{
|
|
89
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
90
|
+
as?: React.ElementType<any> | undefined;
|
|
91
|
+
children?: React.ReactNode;
|
|
92
|
+
className?: string | undefined;
|
|
93
|
+
disabled?: boolean | undefined;
|
|
94
|
+
dropdown?: boolean | undefined;
|
|
95
|
+
iconSlot?: React.ReactNode;
|
|
96
|
+
loading?: boolean | undefined;
|
|
97
|
+
size?: import("./types").ActionSize | undefined;
|
|
98
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
99
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
100
|
+
} & Omit<Omit<any, "ref">, "slot" | "style" | "title" | "href" | "rel" | "placeholder" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof {
|
|
101
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
102
|
+
as?: C | undefined;
|
|
103
|
+
children?: React.ReactNode;
|
|
104
|
+
className?: string | undefined;
|
|
105
|
+
disabled?: boolean | undefined;
|
|
106
|
+
dropdown?: boolean | undefined;
|
|
107
|
+
iconSlot?: React.ReactNode;
|
|
108
|
+
loading?: boolean | undefined;
|
|
109
|
+
size?: import("./types").ActionSize | undefined;
|
|
110
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
111
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
112
|
+
}> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
113
|
+
href?: undefined;
|
|
114
|
+
}, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps, "ref">) & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import React__default, { forwardRef, useMemo } from 'react';
|
|
2
|
+
import { withTokens } from '../../hoc/withTokens/withTokens.js';
|
|
3
|
+
import { ReactComponent as LaunchIcon } from '../../icons/design-system/components/LaunchIcon.js';
|
|
4
|
+
import { DropdownIcon } from '../../icons/custom/components/DropdownIcon.js';
|
|
2
5
|
import { getContextAwareLink } from '../../utils/getContextAwareLink.js';
|
|
3
6
|
import { Loader } from '../Loader/Loader.js';
|
|
4
|
-
import { ReactComponent as LaunchIcon } from '../../icons/design-system/components/LaunchIcon.js';
|
|
5
7
|
import { getAppearanceClasses } from './utils.js';
|
|
6
|
-
import buttonStyles from './styles/button.module.scss.js';
|
|
7
8
|
import { FlexRow } from '../Flex/FlexRow/FlexRow.js';
|
|
9
|
+
import buttonStyles from './styles/button.module.scss.js';
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Action component for rendering buttons or links with various styles and behaviors.
|
|
11
13
|
*/
|
|
12
|
-
const
|
|
14
|
+
const ActionBase = forwardRef(({ appearance, as, href, target, rel, allowedHostnames, className, variant, disabled, dropdown, iconSlot, children, hideExternalLinkIcon, loading, size: sizeProp, type = 'button', ...otherProps }, ref) => {
|
|
15
|
+
const size = sizeProp;
|
|
13
16
|
const isSemanticLink = !!href;
|
|
14
17
|
const defaultAppearance = isSemanticLink ? 'link' : 'button';
|
|
15
18
|
const visualAppearance = appearance || defaultAppearance;
|
|
@@ -17,10 +20,11 @@ const Action = forwardRef(({ appearance, as, href, target, rel, allowedHostnames
|
|
|
17
20
|
className,
|
|
18
21
|
variant,
|
|
19
22
|
disabled,
|
|
20
|
-
|
|
23
|
+
size,
|
|
24
|
+
dropdown,
|
|
21
25
|
iconSlot,
|
|
22
26
|
children,
|
|
23
|
-
}), [visualAppearance, className, variant, disabled,
|
|
27
|
+
}), [visualAppearance, className, variant, disabled, size, dropdown, iconSlot, children]);
|
|
24
28
|
const { linkProps, showExternalIcon } = getContextAwareLink({
|
|
25
29
|
href,
|
|
26
30
|
target,
|
|
@@ -33,14 +37,15 @@ const Action = forwardRef(({ appearance, as, href, target, rel, allowedHostnames
|
|
|
33
37
|
const Component = as || (isSemanticLink ? 'a' : 'button');
|
|
34
38
|
// If a custom component is specified via `as`, render that component
|
|
35
39
|
if (as) {
|
|
36
|
-
return (React__default.createElement(Component, { ...otherProps, ref: ref, className: classNames, disabled: disabled, loading: loading, type: type, ...linkProps },
|
|
40
|
+
return (React__default.createElement(Component, { ...otherProps, ref: ref, className: classNames, disabled: disabled, loading: loading, type: type, "aria-disabled": loading, ...linkProps },
|
|
37
41
|
iconSlot,
|
|
38
42
|
children,
|
|
39
|
-
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null)
|
|
43
|
+
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null),
|
|
44
|
+
visualAppearance === 'button' && dropdown && React__default.createElement(DropdownIcon, null)));
|
|
40
45
|
}
|
|
41
46
|
// Render as an Anchor if type is a navigate action
|
|
42
47
|
if (isSemanticLink) {
|
|
43
|
-
return (React__default.createElement("a", { ...otherProps, ref: ref, className: classNames, ...linkProps },
|
|
48
|
+
return (React__default.createElement("a", { ...otherProps, ref: ref, className: classNames, "aria-disabled": loading, ...linkProps },
|
|
44
49
|
iconSlot,
|
|
45
50
|
children,
|
|
46
51
|
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null)));
|
|
@@ -52,10 +57,13 @@ const Action = forwardRef(({ appearance, as, href, target, rel, allowedHostnames
|
|
|
52
57
|
React__default.createElement(FlexRow, { gap: "sm", flexWrap: "nowrap", className: loading ? buttonStyles.hideContent : undefined },
|
|
53
58
|
iconSlot,
|
|
54
59
|
children,
|
|
55
|
-
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null)
|
|
60
|
+
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null),
|
|
61
|
+
visualAppearance === 'button' && dropdown && React__default.createElement(DropdownIcon, null)),
|
|
56
62
|
loading && (React__default.createElement("div", { className: buttonStyles.loadingWrapper, "aria-label": "Loading" },
|
|
57
|
-
React__default.createElement(Loader,
|
|
63
|
+
React__default.createElement(Loader, { className: buttonStyles.loader })))));
|
|
58
64
|
});
|
|
65
|
+
ActionBase.displayName = 'Action';
|
|
66
|
+
const Action = withTokens(ActionBase);
|
|
59
67
|
|
|
60
|
-
export { Action };
|
|
68
|
+
export { Action, ActionBase };
|
|
61
69
|
//# sourceMappingURL=Action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.js","sources":["../../../src/components/Action/Action.tsx"],"sourcesContent":["import React, {
|
|
1
|
+
{"version":3,"file":"Action.js","sources":["../../../src/components/Action/Action.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { withTokens } from '../../hoc/withTokens';\nimport { DropdownIcon, LaunchIcon } from '../../icons';\nimport { getContextAwareLink } from '../../utils/getContextAwareLink';\nimport { Loader } from '../Loader';\nimport { ActionProps } from './types';\nimport { getAppearanceClasses } from './utils';\n\nimport { FlexRow } from '../Flex/FlexRow';\nimport buttonStyles from './styles/button.module.scss';\n\n/**\n * Action component for rendering buttons or links with various styles and behaviors.\n */\nexport const ActionBase = forwardRef(\n <C extends React.ElementType>(\n {\n appearance,\n as,\n href,\n target,\n rel,\n allowedHostnames,\n className,\n variant,\n disabled,\n dropdown,\n iconSlot,\n children,\n hideExternalLinkIcon,\n loading,\n size: sizeProp,\n type = 'button',\n ...otherProps\n }: ActionProps<C>,\n ref: React.Ref<HTMLElement>,\n ) => {\n const size = sizeProp;\n const isSemanticLink = !!href;\n const defaultAppearance = isSemanticLink ? 'link' : 'button';\n const visualAppearance = appearance || defaultAppearance;\n\n const classNames = useMemo(\n () =>\n getAppearanceClasses(visualAppearance, {\n className,\n variant,\n disabled,\n size,\n dropdown,\n iconSlot,\n children,\n }),\n [visualAppearance, className, variant, disabled, size, dropdown, iconSlot, children],\n );\n\n const { linkProps, showExternalIcon } = getContextAwareLink({\n href,\n target,\n rel,\n allowedHostnames,\n });\n\n const shouldShowExternalIcon = showExternalIcon && !hideExternalLinkIcon;\n\n // This assignment is needed to allow TypeScript to infer the correct type for `as`\n // and to ensure we can pass the correct props to the component without a type error.\n const Component = as || (isSemanticLink ? 'a' : 'button');\n\n // If a custom component is specified via `as`, render that component\n if (as) {\n return (\n <Component\n {...otherProps}\n ref={ref}\n className={classNames}\n disabled={disabled}\n loading={loading}\n type={type}\n aria-disabled={loading}\n {...linkProps}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\n {visualAppearance === 'button' && dropdown && <DropdownIcon />}\n </Component>\n );\n }\n\n // Render as an Anchor if type is a navigate action\n if (isSemanticLink) {\n return (\n <a\n {...otherProps}\n ref={ref as React.Ref<HTMLAnchorElement>}\n className={classNames}\n aria-disabled={loading}\n {...linkProps}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\n </a>\n );\n }\n\n // Otherwise, render as a Button\n return (\n <button\n {...otherProps}\n ref={ref as React.Ref<HTMLButtonElement>}\n // eslint-disable-next-line react/button-has-type\n type={type || 'button'}\n className={classNames}\n disabled={disabled}\n aria-busy={loading}\n >\n <FlexRow\n gap=\"sm\"\n flexWrap=\"nowrap\"\n className={loading ? buttonStyles.hideContent : undefined}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\n {visualAppearance === 'button' && dropdown && <DropdownIcon />}\n </FlexRow>\n {loading && (\n <div className={buttonStyles.loadingWrapper} aria-label=\"Loading\">\n <Loader className={buttonStyles.loader} />\n </div>\n )}\n </button>\n );\n },\n);\n\nActionBase.displayName = 'Action';\n\nexport const Action = withTokens(ActionBase);\n"],"names":["React"],"mappings":";;;;;;;;;;AAWA;;AAEG;MACU,UAAU,GAAG,UAAU,CAClC,CACE,EACE,UAAU,EACV,EAAE,EACF,IAAI,EACJ,MAAM,EACN,GAAG,EACH,gBAAgB,EAChB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,IAAI,EAAE,QAAQ,EACd,IAAI,GAAG,QAAQ,EACf,GAAG,UAAU,EACE,EACjB,GAA2B,KACzB;IACF,MAAM,IAAI,GAAG,QAAQ;AACrB,IAAA,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI;IAC7B,MAAM,iBAAiB,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ;AAC5D,IAAA,MAAM,gBAAgB,GAAG,UAAU,IAAI,iBAAiB;IAExD,MAAM,UAAU,GAAG,OAAO,CACxB,MACE,oBAAoB,CAAC,gBAAgB,EAAE;QACrC,SAAS;QACT,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,QAAQ;QACR,QAAQ;QACR,QAAQ;AACT,KAAA,CAAC,EACJ,CAAC,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CACrF;AAED,IAAA,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,mBAAmB,CAAC;QAC1D,IAAI;QACJ,MAAM;QACN,GAAG;QACH,gBAAgB;AACjB,KAAA,CAAC;AAEF,IAAA,MAAM,sBAAsB,GAAG,gBAAgB,IAAI,CAAC,oBAAoB;;;AAIxE,IAAA,MAAM,SAAS,GAAG,EAAE,KAAK,cAAc,GAAG,GAAG,GAAG,QAAQ,CAAC;;AAGzD,IAAA,IAAI,EAAE,EAAE;AACN,QAAA,QACEA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACJ,UAAU,EACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EAAA,eAAA,EACK,OAAO,EAAA,GAClB,SAAS,EAAA;YAEZ,QAAQ;YACR,QAAQ;YACR,sBAAsB,IAAIA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA,CAAG;YACxC,gBAAgB,KAAK,QAAQ,IAAI,QAAQ,IAAIA,6BAAC,YAAY,EAAA,IAAA,CAAG,CACpD;AAEf,IAAA;;AAGD,IAAA,IAAI,cAAc,EAAE;AAClB,QAAA,QACEA,cAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAA,GACM,UAAU,EACd,GAAG,EAAE,GAAmC,EACxC,SAAS,EAAE,UAAU,EAAA,eAAA,EACN,OAAO,KAClB,SAAS,EAAA;YAEZ,QAAQ;YACR,QAAQ;AACR,YAAA,sBAAsB,IAAIA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA,CAAG,CACvC;AAEP,IAAA;;AAGD,IAAA,QACEA,cAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,GACM,UAAU,EACd,GAAG,EAAE,GAAmC;;AAExC,QAAA,IAAI,EAAE,IAAI,IAAI,QAAQ,EACtB,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,QAAQ,eACP,OAAO,EAAA;QAElBA,cAAA,CAAA,aAAA,CAAC,OAAO,IACN,GAAG,EAAC,IAAI,EACR,QAAQ,EAAC,QAAQ,EACjB,SAAS,EAAE,OAAO,GAAG,YAAY,CAAC,WAAW,GAAG,SAAS,EAAA;YAExD,QAAQ;YACR,QAAQ;YACR,sBAAsB,IAAIA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA,CAAG;YACxC,gBAAgB,KAAK,QAAQ,IAAI,QAAQ,IAAIA,cAAA,CAAA,aAAA,CAAC,YAAY,OAAG,CACtD;QACT,OAAO,KACNA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,YAAY,CAAC,cAAc,EAAA,YAAA,EAAa,SAAS,EAAA;AAC/D,YAAAA,cAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EAAC,SAAS,EAAE,YAAY,CAAC,MAAM,EAAA,CAAI,CACtC,CACP,CACM;AAEb,CAAC;AAGH,UAAU,CAAC,WAAW,GAAG,QAAQ;MAEpB,MAAM,GAAG,UAAU,CAAC,UAAU;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var ___$insertStyle = require('../../../_virtual/____insertStyle.cjs');
|
|
4
4
|
|
|
5
|
-
___$insertStyle("._heading-xxl_cb9np_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_cb9np_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_cb9np_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_cb9np_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_cb9np_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_cb9np_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_cb9np_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_cb9np_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_cb9np_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_cb9np_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_cb9np_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_cb9np_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_cb9np_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_cb9np_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_cb9np_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_cb9np_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_cb9np_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_cb9np_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_cb9np_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_cb9np_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_cb9np_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_cb9np_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_cb9np_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_cb9np_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_cb9np_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_cb9np_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_cb9np_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_cb9np_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_cb9np_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_cb9np_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_cb9np_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._button_cb9np_166 {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-dark);\n --highlight-color: var(--colors-secondary-blue-light);\n /* Structural styles */\n position: relative;\n box-sizing: border-box;\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--sizes-sm);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n height: var(--sizes-10);\n padding-left: var(--sizes-md);\n padding-right: var(--sizes-md);\n border-radius: var(--sizes-sm);\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n /* Default button */\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: 0 1px 3px rgba(55, 66, 77, 0.15);\n color: var(--accent-color);\n /* Icon Slot */\n /* External Icon */\n}\n._button_cb9np_166 svg:first-child {\n width: var(--sizes-5);\n height: var(--sizes-5);\n}\n._button_cb9np_166 svg:last-child:not(:first-child) {\n width: var(--sizes-4);\n height: var(--sizes-4);\n}\n._button_cb9np_166:hover {\n background-color: var(--colors-neutral-grey-lightest);\n cursor: pointer;\n}\n._button_cb9np_166:focus-visible {\n box-shadow: 0 0 0 var(--outline-width) var(--highlight-color);\n outline: 0;\n}\n._button_cb9np_166:active {\n background-color: var(--colors-neutral-grey-lightest);\n border-color: var(--accent-color-dark);\n box-shadow: 0 0 0 var(--outline-width) var(--highlight-color);\n}\n._button_cb9np_166._icon_cb9np_399 {\n padding-left: var(--sizes-base);\n}\n._button_cb9np_166._iconOnly_cb9np_402 {\n width: var(--sizes-10);\n padding-left: var(--sizes-2);\n padding-right: var(--sizes-2);\n}\n._button_cb9np_166._compact_cb9np_407 {\n --outline-width: 2px;\n height: var(--sizes-lg);\n padding-left: var(--sizes-base);\n padding-right: var(--sizes-base);\n border-radius: var(--sizes-xs);\n font-size: var(--text-body-font-size);\n}\n._button_cb9np_166._compact_cb9np_407 svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n}\n._button_cb9np_166._compact_cb9np_407._icon_cb9np_399 {\n padding-left: var(--sizes-sm);\n}\n._button_cb9np_166._compact_cb9np_407._iconOnly_cb9np_402 {\n width: var(--sizes-8);\n padding-left: var(--sizes-sm);\n padding-right: var(--sizes-sm);\n}\n._button_cb9np_166._primary_cb9np_427 {\n --accent-color: var(--colors-secondary-blue-base);\n --accent-color-dark: var(--colors-secondary-blue-dark);\n --highlight-color: var(--colors-secondary-blue-light);\n background-color: var(--accent-color);\n border-color: var(--accent-color);\n color: white;\n}\n._button_cb9np_166._primary_cb9np_427:hover {\n --accent-color: var(--colors-secondary-blue-dark);\n}\n._button_cb9np_166._primary_cb9np_427:active {\n --accent-color: var(--colors-secondary-blue-dark);\n}\n._button_cb9np_166._destructive_cb9np_441 {\n --accent-color: var(--colors-secondary-red-base);\n --accent-color-dark: var(--colors-secondary-red-dark);\n --highlight-color: var(--colors-secondary-red-light);\n}\n._button_cb9np_166._destructive_cb9np_441:hover {\n --accent-color: var(--colors-secondary-red-dark);\n}\n._button_cb9np_166._flat_cb9np_449 {\n border-color: transparent;\n box-shadow: none;\n color: var(--colors-secondary-blue-base);\n}\n._button_cb9np_166._flat_cb9np_449:hover {\n background-color: var(--colors-neutral-grey-light);\n}\n._button_cb9np_166._flat_cb9np_449:active {\n background-color: var(--colors-neutral-grey-light);\n box-shadow: 0 0 0 var(--outline-width) var(--colors-secondary-blue-light);\n}\n._button_cb9np_166._flat_cb9np_449:focus-visible {\n box-shadow: 0 0 0 var(--outline-width) var(--colors-secondary-blue-light);\n outline: 0;\n}\n._button_cb9np_166._flat_cb9np_449._disabled_cb9np_465 {\n background-color: transparent;\n border-color: transparent;\n}\n._button_cb9np_166 ._hideContent_cb9np_469 {\n opacity: 0;\n}\n._button_cb9np_166 ._loadingWrapper_cb9np_472 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n}\n\n._button_cb9np_166:disabled {\n cursor: not-allowed;\n box-shadow: none;\n background-color: var(--colors-neutral-grey-base);\n border-color: var(--colors-neutral-grey-base);\n color: var(--colors-neutral-ink-light);\n}");
|
|
6
|
-
var buttonStyles = {"button":"
|
|
5
|
+
___$insertStyle("._heading-xxl_1dm92_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_1dm92_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_1dm92_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_1dm92_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_1dm92_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_1dm92_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_1dm92_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_1dm92_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_1dm92_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_1dm92_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_1dm92_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_1dm92_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_1dm92_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_1dm92_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_1dm92_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_1dm92_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_1dm92_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_1dm92_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_1dm92_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_1dm92_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_1dm92_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_1dm92_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_1dm92_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_1dm92_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_1dm92_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_1dm92_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_1dm92_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_1dm92_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_1dm92_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_1dm92_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_1dm92_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._button_1dm92_166 {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-base);\n --highlight-color: var(--colors-secondary-blue-light);\n --button-height: var(--sizes-10);\n --button-inline-padding: var(--sizes-base);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-sm);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-base);\n --button-icon-only-width: var(--sizes-10);\n --loader-size: var(--sizes-base);\n /* Structural styles */\n position: relative;\n box-sizing: border-box;\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--button-gap);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n height: var(--button-height);\n padding-inline: var(--button-inline-padding);\n border-radius: var(--button-radius);\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n /* Default button */\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: var(--shadows-sm);\n color: var(--accent-color);\n /* Icon Slot */\n /* External Icon */\n}\n._button_1dm92_166 svg:first-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n}\n._button_1dm92_166 svg:last-child:not(:first-child) {\n width: var(--sizes-4);\n height: var(--sizes-4);\n}\n._button_1dm92_166:hover {\n background-color: var(--colors-neutral-grey-lightest);\n cursor: pointer;\n}\n._button_1dm92_166:focus-visible {\n outline: var(--outline-width) solid var(--highlight-color);\n}\n._button_1dm92_166:active {\n background-color: var(--colors-neutral-grey-lightest);\n border-color: var(--accent-color-dark);\n outline: var(--outline-width) solid var(--highlight-color);\n}\n._button_1dm92_166._icon_1dm92_405 {\n padding-left: var(--button-icon-inline-padding);\n}\n._button_1dm92_166._dropdown_1dm92_408 {\n padding-right: var(--button-icon-inline-padding);\n}\n._button_1dm92_166._iconOnly_1dm92_411 {\n --button-icon-size: var(--sizes-5);\n --accent-color: var(--colors-secondary-blue-base);\n --loader-size: var(--sizes-5);\n height: var(--button-icon-only-width);\n width: var(--button-icon-only-width);\n padding-inline: var(--sizes-2);\n}\n._button_1dm92_166._sm_1dm92_419 {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-lg);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-8);\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n color: var(--accent-color);\n}\n._button_1dm92_166._xs_1dm92_437 {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-md);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-xs);\n --button-icon-size: var(--sizes-3);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-md);\n --loader-size: var(--sizes-3);\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n color: var(--accent-color);\n}\n._button_1dm92_166._xs_1dm92_437._iconOnly_1dm92_411 svg, ._button_1dm92_166._xs_1dm92_437._dropdown_1dm92_408 svg:last-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n}\n._button_1dm92_166._primary_1dm92_461 {\n --accent-color: var(--theme-primary, var(--colors-secondary-blue-base));\n --accent-color-dark: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n --highlight-color: var(--colors-secondary-blue-light);\n background-color: var(--accent-color);\n color: var(--theme-on-primary, white);\n border-color: var(--accent-color);\n}\n._button_1dm92_166._primary_1dm92_461:hover {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n}\n._button_1dm92_166._primary_1dm92_461:active {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n}\n._button_1dm92_166._destructive_1dm92_475 {\n --accent-color: var(--colors-secondary-red-base);\n --accent-color-dark: var(--colors-secondary-red-base);\n --highlight-color: var(--colors-secondary-red-light);\n}\n._button_1dm92_166._destructive_1dm92_475:hover {\n --accent-color: var(--colors-secondary-red-dark);\n}\n._button_1dm92_166._flat_1dm92_483 {\n border-color: transparent;\n box-shadow: none;\n color: var(--colors-neutral-ink-base);\n background-color: unset;\n}\n._button_1dm92_166._flat_1dm92_483:hover {\n background-color: var(--colors-neutral-grey-lightest);\n}\n._button_1dm92_166._flat_1dm92_483:active {\n background-color: var(--colors-neutral-grey-lightest);\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n}\n._button_1dm92_166._flat_1dm92_483:focus-visible {\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n}\n._button_1dm92_166._flat_1dm92_483._disabled_1dm92_499 {\n background-color: transparent;\n border-color: transparent;\n}\n._button_1dm92_166 ._hideContent_1dm92_503 {\n opacity: 0;\n}\n._button_1dm92_166 ._loadingWrapper_1dm92_506 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n}\n._button_1dm92_166 ._loadingWrapper_1dm92_506 > ._loader_1dm92_517 {\n aspect-ratio: 1;\n width: var(--loader-size);\n height: var(--loader-size);\n}\n\n._button_1dm92_166:disabled {\n cursor: not-allowed;\n box-shadow: none;\n background-color: var(--colors-neutral-grey-base);\n color: var(--colors-neutral-ink-light);\n border: none;\n}");
|
|
6
|
+
var buttonStyles = {"heading-xxl":"_heading-xxl_1dm92_1","heading-xl":"_heading-xl_1dm92_12","heading-large":"_heading-large_1dm92_23","heading-medium":"_heading-medium_1dm92_34","heading-small":"_heading-small_1dm92_45","heading-table":"_heading-table_1dm92_56","subheading-large":"_subheading-large_1dm92_67","subheading-medium":"_subheading-medium_1dm92_78","subheading-small":"_subheading-small_1dm92_89","subheading-small-bold":"_subheading-small-bold_1dm92_100","body":"_body_1dm92_111","body-small":"_body-small_1dm92_122","body-bold":"_body-bold_1dm92_133","body-bold-dark":"_body-bold-dark_1dm92_144","body-small-bold":"_body-small-bold_1dm92_155","button":"_button_1dm92_166","button-small":"_button-small_1dm92_177","link-large":"_link-large_1dm92_188","link-medium":"_link-medium_1dm92_199","link":"_link_1dm92_188","link-small":"_link-small_1dm92_221","input-label":"_input-label_1dm92_232","input-label-small":"_input-label-small_1dm92_243","hint-text":"_hint-text_1dm92_254","placeholder":"_placeholder_1dm92_265","placeholder-small":"_placeholder-small_1dm92_276","placeholder-code":"_placeholder-code_1dm92_287","placeholder-code-small":"_placeholder-code-small_1dm92_298","error":"_error_1dm92_309","error-small":"_error-small_1dm92_320","success-small":"_success-small_1dm92_331","icon":"_icon_1dm92_405","dropdown":"_dropdown_1dm92_408","iconOnly":"_iconOnly_1dm92_411","sm":"_sm_1dm92_419","xs":"_xs_1dm92_437","primary":"_primary_1dm92_461","destructive":"_destructive_1dm92_475","flat":"_flat_1dm92_483","disabled":"_disabled_1dm92_499","hideContent":"_hideContent_1dm92_503","loadingWrapper":"_loadingWrapper_1dm92_506","loader":"_loader_1dm92_517"};
|
|
7
7
|
|
|
8
8
|
module.exports = buttonStyles;
|
|
9
9
|
//# sourceMappingURL=button.module.scss.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.module.scss.cjs","sources":["../../../../src/components/Action/styles/button.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.button {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-
|
|
1
|
+
{"version":3,"file":"button.module.scss.cjs","sources":["../../../../src/components/Action/styles/button.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.button {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-base);\n --highlight-color: var(--colors-secondary-blue-light);\n --button-height: var(--sizes-10);\n --button-inline-padding: var(--sizes-base);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-sm);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-base);\n --button-icon-only-width: var(--sizes-10);\n --loader-size: var(--sizes-base);\n\n /* Structural styles */\n position: relative;\n box-sizing: border-box;\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--button-gap);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n\n height: var(--button-height);\n padding-inline: var(--button-inline-padding);\n border-radius: var(--button-radius);\n\n @include text.button;\n /* Default button */\n\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: var(--shadows-sm);\n color: var(--accent-color);\n\n /* Icon Slot */\n svg:first-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n }\n\n /* External Icon */\n svg:last-child:not(:first-child) {\n width: var(--sizes-4);\n height: var(--sizes-4);\n }\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest);\n cursor: pointer;\n }\n\n &:focus-visible {\n outline: var(--outline-width) solid var(--highlight-color);\n }\n\n &:active {\n background-color: var(--colors-neutral-grey-lightest);\n border-color: var(--accent-color-dark);\n outline: var(--outline-width) solid var(--highlight-color);\n }\n\n &.icon {\n padding-left: var(--button-icon-inline-padding);\n }\n\n &.dropdown {\n padding-right: var(--button-icon-inline-padding);\n }\n\n &.iconOnly {\n --button-icon-size: var(--sizes-5);\n --accent-color: var(--colors-secondary-blue-base);\n --loader-size: var(--sizes-5);\n\n height: var(--button-icon-only-width);\n width: var(--button-icon-only-width);\n padding-inline: var(--sizes-2);\n }\n\n &.sm {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-lg);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-8);\n\n @include text.button-small;\n\n color: var(--accent-color);\n }\n\n &.xs {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-md);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-xs);\n --button-icon-size: var(--sizes-3);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-md);\n --loader-size: var(--sizes-3);\n\n @include text.button-small;\n\n color: var(--accent-color);\n\n &.iconOnly svg,\n &.dropdown svg:last-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n }\n }\n\n &.primary {\n --accent-color: var(--theme-primary, var(--colors-secondary-blue-base));\n --accent-color-dark: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n --highlight-color: var(--colors-secondary-blue-light);\n\n background-color: var(--accent-color);\n color: var(--theme-on-primary, white);\n border-color: var(--accent-color);\n\n &:hover {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n }\n\n &:active {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n }\n }\n\n &.destructive {\n --accent-color: var(--colors-secondary-red-base);\n --accent-color-dark: var(--colors-secondary-red-base);\n --highlight-color: var(--colors-secondary-red-light);\n\n &:hover {\n --accent-color: var(--colors-secondary-red-dark);\n }\n }\n\n &.flat {\n border-color: transparent;\n box-shadow: none;\n color: var(--colors-neutral-ink-base);\n background-color: unset;\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest);\n }\n\n &:active {\n background-color: var(--colors-neutral-grey-lightest);\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n }\n\n &:focus-visible {\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n }\n\n &.disabled {\n background-color: transparent;\n border-color: transparent;\n }\n }\n\n .hideContent {\n opacity: 0;\n }\n\n .loadingWrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n > .loader {\n aspect-ratio: 1;\n width: var(--loader-size);\n height: var(--loader-size);\n }\n }\n}\n\n.button:disabled {\n cursor: not-allowed;\n box-shadow: none;\n background-color: var(--colors-neutral-grey-base);\n color: var(--colors-neutral-ink-light);\n border: none;\n}\n"],"names":[],"mappings":";;;;AAGE,eAAA,CAAA,6rpBAAA;AACA,mBAAA,CAAA,aAAA,CAAA,sBAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,0BAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,mBAAA,CAAA,6BAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,uBAAA,CAAA,kCAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,gBAAA,CAAA,2BAAA,CAAA,iBAAA,CAAA,4BAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,cAAA,CAAA,yBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,wBAAA,CAAA,mCAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,eAAA,CAAA,0BAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,IAAA,CAAA,eAAA,CAAA,IAAA,CAAA,eAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,gBAAA,CAAA,2BAAA,CAAA,QAAA,CAAA,mBAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import insertStyle from '../../../_virtual/____insertStyle.js';
|
|
2
2
|
|
|
3
|
-
insertStyle("._heading-xxl_cb9np_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_cb9np_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_cb9np_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_cb9np_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_cb9np_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_cb9np_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_cb9np_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_cb9np_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_cb9np_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_cb9np_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_cb9np_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_cb9np_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_cb9np_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_cb9np_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_cb9np_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_cb9np_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_cb9np_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_cb9np_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_cb9np_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_cb9np_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_cb9np_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_cb9np_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_cb9np_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_cb9np_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_cb9np_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_cb9np_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_cb9np_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_cb9np_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_cb9np_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_cb9np_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_cb9np_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._button_cb9np_166 {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-dark);\n --highlight-color: var(--colors-secondary-blue-light);\n /* Structural styles */\n position: relative;\n box-sizing: border-box;\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--sizes-sm);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n height: var(--sizes-10);\n padding-left: var(--sizes-md);\n padding-right: var(--sizes-md);\n border-radius: var(--sizes-sm);\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n /* Default button */\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: 0 1px 3px rgba(55, 66, 77, 0.15);\n color: var(--accent-color);\n /* Icon Slot */\n /* External Icon */\n}\n._button_cb9np_166 svg:first-child {\n width: var(--sizes-5);\n height: var(--sizes-5);\n}\n._button_cb9np_166 svg:last-child:not(:first-child) {\n width: var(--sizes-4);\n height: var(--sizes-4);\n}\n._button_cb9np_166:hover {\n background-color: var(--colors-neutral-grey-lightest);\n cursor: pointer;\n}\n._button_cb9np_166:focus-visible {\n box-shadow: 0 0 0 var(--outline-width) var(--highlight-color);\n outline: 0;\n}\n._button_cb9np_166:active {\n background-color: var(--colors-neutral-grey-lightest);\n border-color: var(--accent-color-dark);\n box-shadow: 0 0 0 var(--outline-width) var(--highlight-color);\n}\n._button_cb9np_166._icon_cb9np_399 {\n padding-left: var(--sizes-base);\n}\n._button_cb9np_166._iconOnly_cb9np_402 {\n width: var(--sizes-10);\n padding-left: var(--sizes-2);\n padding-right: var(--sizes-2);\n}\n._button_cb9np_166._compact_cb9np_407 {\n --outline-width: 2px;\n height: var(--sizes-lg);\n padding-left: var(--sizes-base);\n padding-right: var(--sizes-base);\n border-radius: var(--sizes-xs);\n font-size: var(--text-body-font-size);\n}\n._button_cb9np_166._compact_cb9np_407 svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n}\n._button_cb9np_166._compact_cb9np_407._icon_cb9np_399 {\n padding-left: var(--sizes-sm);\n}\n._button_cb9np_166._compact_cb9np_407._iconOnly_cb9np_402 {\n width: var(--sizes-8);\n padding-left: var(--sizes-sm);\n padding-right: var(--sizes-sm);\n}\n._button_cb9np_166._primary_cb9np_427 {\n --accent-color: var(--colors-secondary-blue-base);\n --accent-color-dark: var(--colors-secondary-blue-dark);\n --highlight-color: var(--colors-secondary-blue-light);\n background-color: var(--accent-color);\n border-color: var(--accent-color);\n color: white;\n}\n._button_cb9np_166._primary_cb9np_427:hover {\n --accent-color: var(--colors-secondary-blue-dark);\n}\n._button_cb9np_166._primary_cb9np_427:active {\n --accent-color: var(--colors-secondary-blue-dark);\n}\n._button_cb9np_166._destructive_cb9np_441 {\n --accent-color: var(--colors-secondary-red-base);\n --accent-color-dark: var(--colors-secondary-red-dark);\n --highlight-color: var(--colors-secondary-red-light);\n}\n._button_cb9np_166._destructive_cb9np_441:hover {\n --accent-color: var(--colors-secondary-red-dark);\n}\n._button_cb9np_166._flat_cb9np_449 {\n border-color: transparent;\n box-shadow: none;\n color: var(--colors-secondary-blue-base);\n}\n._button_cb9np_166._flat_cb9np_449:hover {\n background-color: var(--colors-neutral-grey-light);\n}\n._button_cb9np_166._flat_cb9np_449:active {\n background-color: var(--colors-neutral-grey-light);\n box-shadow: 0 0 0 var(--outline-width) var(--colors-secondary-blue-light);\n}\n._button_cb9np_166._flat_cb9np_449:focus-visible {\n box-shadow: 0 0 0 var(--outline-width) var(--colors-secondary-blue-light);\n outline: 0;\n}\n._button_cb9np_166._flat_cb9np_449._disabled_cb9np_465 {\n background-color: transparent;\n border-color: transparent;\n}\n._button_cb9np_166 ._hideContent_cb9np_469 {\n opacity: 0;\n}\n._button_cb9np_166 ._loadingWrapper_cb9np_472 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n}\n\n._button_cb9np_166:disabled {\n cursor: not-allowed;\n box-shadow: none;\n background-color: var(--colors-neutral-grey-base);\n border-color: var(--colors-neutral-grey-base);\n color: var(--colors-neutral-ink-light);\n}");
|
|
4
|
-
var buttonStyles = {"button":"
|
|
3
|
+
insertStyle("._heading-xxl_1dm92_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_1dm92_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_1dm92_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_1dm92_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_1dm92_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_1dm92_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_1dm92_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_1dm92_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_1dm92_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_1dm92_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_1dm92_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_1dm92_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_1dm92_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_1dm92_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_1dm92_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_1dm92_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_1dm92_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_1dm92_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_1dm92_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_1dm92_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_1dm92_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_1dm92_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_1dm92_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_1dm92_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_1dm92_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_1dm92_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_1dm92_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_1dm92_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_1dm92_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_1dm92_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_1dm92_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._button_1dm92_166 {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-base);\n --highlight-color: var(--colors-secondary-blue-light);\n --button-height: var(--sizes-10);\n --button-inline-padding: var(--sizes-base);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-sm);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-base);\n --button-icon-only-width: var(--sizes-10);\n --loader-size: var(--sizes-base);\n /* Structural styles */\n position: relative;\n box-sizing: border-box;\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--button-gap);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n height: var(--button-height);\n padding-inline: var(--button-inline-padding);\n border-radius: var(--button-radius);\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n /* Default button */\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: var(--shadows-sm);\n color: var(--accent-color);\n /* Icon Slot */\n /* External Icon */\n}\n._button_1dm92_166 svg:first-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n}\n._button_1dm92_166 svg:last-child:not(:first-child) {\n width: var(--sizes-4);\n height: var(--sizes-4);\n}\n._button_1dm92_166:hover {\n background-color: var(--colors-neutral-grey-lightest);\n cursor: pointer;\n}\n._button_1dm92_166:focus-visible {\n outline: var(--outline-width) solid var(--highlight-color);\n}\n._button_1dm92_166:active {\n background-color: var(--colors-neutral-grey-lightest);\n border-color: var(--accent-color-dark);\n outline: var(--outline-width) solid var(--highlight-color);\n}\n._button_1dm92_166._icon_1dm92_405 {\n padding-left: var(--button-icon-inline-padding);\n}\n._button_1dm92_166._dropdown_1dm92_408 {\n padding-right: var(--button-icon-inline-padding);\n}\n._button_1dm92_166._iconOnly_1dm92_411 {\n --button-icon-size: var(--sizes-5);\n --accent-color: var(--colors-secondary-blue-base);\n --loader-size: var(--sizes-5);\n height: var(--button-icon-only-width);\n width: var(--button-icon-only-width);\n padding-inline: var(--sizes-2);\n}\n._button_1dm92_166._sm_1dm92_419 {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-lg);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-8);\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n color: var(--accent-color);\n}\n._button_1dm92_166._xs_1dm92_437 {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-md);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-xs);\n --button-icon-size: var(--sizes-3);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-md);\n --loader-size: var(--sizes-3);\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n color: var(--accent-color);\n}\n._button_1dm92_166._xs_1dm92_437._iconOnly_1dm92_411 svg, ._button_1dm92_166._xs_1dm92_437._dropdown_1dm92_408 svg:last-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n}\n._button_1dm92_166._primary_1dm92_461 {\n --accent-color: var(--theme-primary, var(--colors-secondary-blue-base));\n --accent-color-dark: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n --highlight-color: var(--colors-secondary-blue-light);\n background-color: var(--accent-color);\n color: var(--theme-on-primary, white);\n border-color: var(--accent-color);\n}\n._button_1dm92_166._primary_1dm92_461:hover {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n}\n._button_1dm92_166._primary_1dm92_461:active {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n}\n._button_1dm92_166._destructive_1dm92_475 {\n --accent-color: var(--colors-secondary-red-base);\n --accent-color-dark: var(--colors-secondary-red-base);\n --highlight-color: var(--colors-secondary-red-light);\n}\n._button_1dm92_166._destructive_1dm92_475:hover {\n --accent-color: var(--colors-secondary-red-dark);\n}\n._button_1dm92_166._flat_1dm92_483 {\n border-color: transparent;\n box-shadow: none;\n color: var(--colors-neutral-ink-base);\n background-color: unset;\n}\n._button_1dm92_166._flat_1dm92_483:hover {\n background-color: var(--colors-neutral-grey-lightest);\n}\n._button_1dm92_166._flat_1dm92_483:active {\n background-color: var(--colors-neutral-grey-lightest);\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n}\n._button_1dm92_166._flat_1dm92_483:focus-visible {\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n}\n._button_1dm92_166._flat_1dm92_483._disabled_1dm92_499 {\n background-color: transparent;\n border-color: transparent;\n}\n._button_1dm92_166 ._hideContent_1dm92_503 {\n opacity: 0;\n}\n._button_1dm92_166 ._loadingWrapper_1dm92_506 {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n}\n._button_1dm92_166 ._loadingWrapper_1dm92_506 > ._loader_1dm92_517 {\n aspect-ratio: 1;\n width: var(--loader-size);\n height: var(--loader-size);\n}\n\n._button_1dm92_166:disabled {\n cursor: not-allowed;\n box-shadow: none;\n background-color: var(--colors-neutral-grey-base);\n color: var(--colors-neutral-ink-light);\n border: none;\n}");
|
|
4
|
+
var buttonStyles = {"heading-xxl":"_heading-xxl_1dm92_1","heading-xl":"_heading-xl_1dm92_12","heading-large":"_heading-large_1dm92_23","heading-medium":"_heading-medium_1dm92_34","heading-small":"_heading-small_1dm92_45","heading-table":"_heading-table_1dm92_56","subheading-large":"_subheading-large_1dm92_67","subheading-medium":"_subheading-medium_1dm92_78","subheading-small":"_subheading-small_1dm92_89","subheading-small-bold":"_subheading-small-bold_1dm92_100","body":"_body_1dm92_111","body-small":"_body-small_1dm92_122","body-bold":"_body-bold_1dm92_133","body-bold-dark":"_body-bold-dark_1dm92_144","body-small-bold":"_body-small-bold_1dm92_155","button":"_button_1dm92_166","button-small":"_button-small_1dm92_177","link-large":"_link-large_1dm92_188","link-medium":"_link-medium_1dm92_199","link":"_link_1dm92_188","link-small":"_link-small_1dm92_221","input-label":"_input-label_1dm92_232","input-label-small":"_input-label-small_1dm92_243","hint-text":"_hint-text_1dm92_254","placeholder":"_placeholder_1dm92_265","placeholder-small":"_placeholder-small_1dm92_276","placeholder-code":"_placeholder-code_1dm92_287","placeholder-code-small":"_placeholder-code-small_1dm92_298","error":"_error_1dm92_309","error-small":"_error-small_1dm92_320","success-small":"_success-small_1dm92_331","icon":"_icon_1dm92_405","dropdown":"_dropdown_1dm92_408","iconOnly":"_iconOnly_1dm92_411","sm":"_sm_1dm92_419","xs":"_xs_1dm92_437","primary":"_primary_1dm92_461","destructive":"_destructive_1dm92_475","flat":"_flat_1dm92_483","disabled":"_disabled_1dm92_499","hideContent":"_hideContent_1dm92_503","loadingWrapper":"_loadingWrapper_1dm92_506","loader":"_loader_1dm92_517"};
|
|
5
5
|
|
|
6
6
|
export { buttonStyles as default };
|
|
7
7
|
//# sourceMappingURL=button.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.module.scss.js","sources":["../../../../src/components/Action/styles/button.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.button {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-
|
|
1
|
+
{"version":3,"file":"button.module.scss.js","sources":["../../../../src/components/Action/styles/button.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.button {\n --outline-width: var(--sizes-xs);\n --accent-color: var(--colors-neutral-ink-base);\n --accent-color-dark: var(--colors-secondary-blue-base);\n --highlight-color: var(--colors-secondary-blue-light);\n --button-height: var(--sizes-10);\n --button-inline-padding: var(--sizes-base);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-sm);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-base);\n --button-icon-only-width: var(--sizes-10);\n --loader-size: var(--sizes-base);\n\n /* Structural styles */\n position: relative;\n box-sizing: border-box;\n appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--button-gap);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n\n height: var(--button-height);\n padding-inline: var(--button-inline-padding);\n border-radius: var(--button-radius);\n\n @include text.button;\n /* Default button */\n\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: var(--shadows-sm);\n color: var(--accent-color);\n\n /* Icon Slot */\n svg:first-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n }\n\n /* External Icon */\n svg:last-child:not(:first-child) {\n width: var(--sizes-4);\n height: var(--sizes-4);\n }\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest);\n cursor: pointer;\n }\n\n &:focus-visible {\n outline: var(--outline-width) solid var(--highlight-color);\n }\n\n &:active {\n background-color: var(--colors-neutral-grey-lightest);\n border-color: var(--accent-color-dark);\n outline: var(--outline-width) solid var(--highlight-color);\n }\n\n &.icon {\n padding-left: var(--button-icon-inline-padding);\n }\n\n &.dropdown {\n padding-right: var(--button-icon-inline-padding);\n }\n\n &.iconOnly {\n --button-icon-size: var(--sizes-5);\n --accent-color: var(--colors-secondary-blue-base);\n --loader-size: var(--sizes-5);\n\n height: var(--button-icon-only-width);\n width: var(--button-icon-only-width);\n padding-inline: var(--sizes-2);\n }\n\n &.sm {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-lg);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-icon-size: var(--sizes-base);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-8);\n\n @include text.button-small;\n\n color: var(--accent-color);\n }\n\n &.xs {\n --outline-width: var(--sizes-xs);\n --button-height: var(--sizes-md);\n --button-inline-padding: var(--sizes-3);\n --button-radius: var(--sizes-xs);\n --button-gap: var(--sizes-xs);\n --button-icon-size: var(--sizes-3);\n --button-icon-inline-padding: var(--sizes-sm);\n --button-icon-only-width: var(--sizes-md);\n --loader-size: var(--sizes-3);\n\n @include text.button-small;\n\n color: var(--accent-color);\n\n &.iconOnly svg,\n &.dropdown svg:last-child {\n width: var(--button-icon-size);\n height: var(--button-icon-size);\n }\n }\n\n &.primary {\n --accent-color: var(--theme-primary, var(--colors-secondary-blue-base));\n --accent-color-dark: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n --highlight-color: var(--colors-secondary-blue-light);\n\n background-color: var(--accent-color);\n color: var(--theme-on-primary, white);\n border-color: var(--accent-color);\n\n &:hover {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n }\n\n &:active {\n --accent-color: var(--theme-primary-hover, var(--colors-secondary-blue-dark));\n }\n }\n\n &.destructive {\n --accent-color: var(--colors-secondary-red-base);\n --accent-color-dark: var(--colors-secondary-red-base);\n --highlight-color: var(--colors-secondary-red-light);\n\n &:hover {\n --accent-color: var(--colors-secondary-red-dark);\n }\n }\n\n &.flat {\n border-color: transparent;\n box-shadow: none;\n color: var(--colors-neutral-ink-base);\n background-color: unset;\n\n &:hover {\n background-color: var(--colors-neutral-grey-lightest);\n }\n\n &:active {\n background-color: var(--colors-neutral-grey-lightest);\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n }\n\n &:focus-visible {\n outline: var(--outline-width) solid var(--colors-secondary-blue-light);\n }\n\n &.disabled {\n background-color: transparent;\n border-color: transparent;\n }\n }\n\n .hideContent {\n opacity: 0;\n }\n\n .loadingWrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 0;\n > .loader {\n aspect-ratio: 1;\n width: var(--loader-size);\n height: var(--loader-size);\n }\n }\n}\n\n.button:disabled {\n cursor: not-allowed;\n box-shadow: none;\n background-color: var(--colors-neutral-grey-base);\n color: var(--colors-neutral-ink-light);\n border: none;\n}\n"],"names":["___$insertStyle"],"mappings":";;AAGEA,WAAA,CAAA,6rpBAAA;AACA,mBAAA,CAAA,aAAA,CAAA,sBAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,0BAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,mBAAA,CAAA,6BAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,uBAAA,CAAA,kCAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,gBAAA,CAAA,2BAAA,CAAA,iBAAA,CAAA,4BAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,cAAA,CAAA,yBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,wBAAA,CAAA,mCAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,eAAA,CAAA,0BAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,IAAA,CAAA,eAAA,CAAA,IAAA,CAAA,eAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,gBAAA,CAAA,2BAAA,CAAA,QAAA,CAAA,mBAAA;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var ___$insertStyle = require('../../../_virtual/____insertStyle.cjs');
|
|
4
4
|
|
|
5
|
-
___$insertStyle("._heading-xxl_16v1v_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_16v1v_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_16v1v_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_16v1v_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_16v1v_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_16v1v_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_16v1v_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_16v1v_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_16v1v_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_16v1v_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_16v1v_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_16v1v_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_16v1v_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_16v1v_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_16v1v_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_16v1v_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_16v1v_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_16v1v_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_16v1v_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_16v1v_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_16v1v_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_16v1v_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_16v1v_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_16v1v_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_16v1v_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_16v1v_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_16v1v_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_16v1v_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_16v1v_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_16v1v_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_16v1v_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._link_16v1v_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n display: inline-flex;\n align-items: center;\n gap: var(--sizes-xs);\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n}\n._link_16v1v_188 svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n vertical-align: middle;\n flex-shrink: 0;\n}\n._link_16v1v_188._compact_16v1v_363 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n._link_16v1v_188._compact_16v1v_363 svg {\n width: var(--sizes-3);\n height: var(--sizes-3);\n}\n._link_16v1v_188:hover {\n text-decoration-thickness: 2px;\n cursor: pointer;\n}\n._link_16v1v_188:focus-visible {\n outline: 0;\n box-shadow: 0 0 0 var(--sizes-xs) white, 0 0 0 var(--sizes-sm) var(--colors-secondary-blue-light);\n border-radius: var(--sizes-xs);\n}");
|
|
6
|
-
var linkStyles = {"link":"
|
|
5
|
+
___$insertStyle("._heading-xxl_1m4o3_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_1m4o3_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_1m4o3_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_1m4o3_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_1m4o3_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_1m4o3_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_1m4o3_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_1m4o3_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_1m4o3_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_1m4o3_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_1m4o3_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_1m4o3_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_1m4o3_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_1m4o3_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_1m4o3_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_1m4o3_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_1m4o3_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_1m4o3_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_1m4o3_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_1m4o3_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_1m4o3_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_1m4o3_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_1m4o3_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_1m4o3_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_1m4o3_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_1m4o3_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_1m4o3_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_1m4o3_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_1m4o3_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_1m4o3_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_1m4o3_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._link_1m4o3_188 {\n --link-icon-size: var(--sizes-base);\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n display: inline-flex;\n align-items: center;\n gap: var(--radius-sm);\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n}\n._link_1m4o3_188 svg {\n width: var(--link-icon-size);\n height: var(--link-icon-size);\n vertical-align: middle;\n flex-shrink: 0;\n}\n._link_1m4o3_188._sm_1m4o3_364, ._link_1m4o3_188._xs_1m4o3_364 {\n --link-icon-size: var(--sizes-3);\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n._link_1m4o3_188:hover {\n text-decoration-thickness: 2px;\n cursor: pointer;\n}\n._link_1m4o3_188:focus-visible {\n outline: 0;\n box-shadow: 0 0 0 var(--sizes-xs) white, 0 0 0 var(--sizes-sm) var(--colors-secondary-blue-light);\n border-radius: var(--sizes-xs);\n}\n._link_1m4o3_188._inherit_1m4o3_384 {\n font-size: inherit;\n line-height: inherit;\n --link-icon-size: 1em;\n}");
|
|
6
|
+
var linkStyles = {"heading-xxl":"_heading-xxl_1m4o3_1","heading-xl":"_heading-xl_1m4o3_12","heading-large":"_heading-large_1m4o3_23","heading-medium":"_heading-medium_1m4o3_34","heading-small":"_heading-small_1m4o3_45","heading-table":"_heading-table_1m4o3_56","subheading-large":"_subheading-large_1m4o3_67","subheading-medium":"_subheading-medium_1m4o3_78","subheading-small":"_subheading-small_1m4o3_89","subheading-small-bold":"_subheading-small-bold_1m4o3_100","body":"_body_1m4o3_111","body-small":"_body-small_1m4o3_122","body-bold":"_body-bold_1m4o3_133","body-bold-dark":"_body-bold-dark_1m4o3_144","body-small-bold":"_body-small-bold_1m4o3_155","button":"_button_1m4o3_166","button-small":"_button-small_1m4o3_177","link-large":"_link-large_1m4o3_188","link-medium":"_link-medium_1m4o3_199","link":"_link_1m4o3_188","link-small":"_link-small_1m4o3_221","input-label":"_input-label_1m4o3_232","input-label-small":"_input-label-small_1m4o3_243","hint-text":"_hint-text_1m4o3_254","placeholder":"_placeholder_1m4o3_265","placeholder-small":"_placeholder-small_1m4o3_276","placeholder-code":"_placeholder-code_1m4o3_287","placeholder-code-small":"_placeholder-code-small_1m4o3_298","error":"_error_1m4o3_309","error-small":"_error-small_1m4o3_320","success-small":"_success-small_1m4o3_331","sm":"_sm_1m4o3_364","xs":"_xs_1m4o3_364","inherit":"_inherit_1m4o3_384"};
|
|
7
7
|
|
|
8
8
|
module.exports = linkStyles;
|
|
9
9
|
//# sourceMappingURL=link.module.scss.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.module.scss.cjs","sources":["../../../../src/components/Action/styles/link.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.link {\n @include text.link;\n display: inline-flex;\n align-items: center;\n gap: var(--
|
|
1
|
+
{"version":3,"file":"link.module.scss.cjs","sources":["../../../../src/components/Action/styles/link.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.link {\n --link-icon-size: var(--sizes-base);\n\n @include text.link;\n display: inline-flex;\n align-items: center;\n gap: var(--radius-sm);\n\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n & svg {\n width: var(--link-icon-size);\n height: var(--link-icon-size);\n vertical-align: middle;\n flex-shrink: 0;\n }\n\n &.sm,\n &.xs {\n --link-icon-size: var(--sizes-3);\n\n @include text.link-small;\n }\n\n &:hover {\n text-decoration-thickness: 2px;\n cursor: pointer;\n }\n\n &:focus-visible {\n outline: 0;\n box-shadow:\n 0 0 0 var(--sizes-xs) white,\n 0 0 0 var(--sizes-sm) var(--colors-secondary-blue-light);\n border-radius: var(--sizes-xs);\n }\n &.inherit {\n font-size: inherit;\n line-height: inherit;\n\n --link-icon-size: 1em;\n }\n}\n"],"names":[],"mappings":";;;;AAGE,eAAA,CAAA,mnfAAA;AACA,iBAAA,CAAA,aAAA,CAAA,sBAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,0BAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,mBAAA,CAAA,6BAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,uBAAA,CAAA,kCAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,gBAAA,CAAA,2BAAA,CAAA,iBAAA,CAAA,4BAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,cAAA,CAAA,yBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,wBAAA,CAAA,mCAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,eAAA,CAAA,0BAAA,CAAA,IAAA,CAAA,eAAA,CAAA,IAAA,CAAA,eAAA,CAAA,SAAA,CAAA,oBAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import insertStyle from '../../../_virtual/____insertStyle.js';
|
|
2
2
|
|
|
3
|
-
insertStyle("._heading-xxl_16v1v_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_16v1v_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_16v1v_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_16v1v_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_16v1v_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_16v1v_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_16v1v_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_16v1v_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_16v1v_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_16v1v_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_16v1v_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_16v1v_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_16v1v_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_16v1v_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_16v1v_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_16v1v_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_16v1v_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_16v1v_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_16v1v_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_16v1v_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_16v1v_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_16v1v_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_16v1v_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_16v1v_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_16v1v_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_16v1v_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_16v1v_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_16v1v_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_16v1v_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_16v1v_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_16v1v_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._link_16v1v_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n display: inline-flex;\n align-items: center;\n gap: var(--sizes-xs);\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n}\n._link_16v1v_188 svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n vertical-align: middle;\n flex-shrink: 0;\n}\n._link_16v1v_188._compact_16v1v_363 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n._link_16v1v_188._compact_16v1v_363 svg {\n width: var(--sizes-3);\n height: var(--sizes-3);\n}\n._link_16v1v_188:hover {\n text-decoration-thickness: 2px;\n cursor: pointer;\n}\n._link_16v1v_188:focus-visible {\n outline: 0;\n box-shadow: 0 0 0 var(--sizes-xs) white, 0 0 0 var(--sizes-sm) var(--colors-secondary-blue-light);\n border-radius: var(--sizes-xs);\n}");
|
|
4
|
-
var linkStyles = {"link":"
|
|
3
|
+
insertStyle("._heading-xxl_1m4o3_1 {\n font-family: var(--text-heading-xxl-font-family);\n font-style: var(--text-heading-xxl-font-style);\n font-weight: var(--text-heading-xxl-font-weight);\n font-size: var(--text-heading-xxl-font-size);\n line-height: var(--text-heading-xxl-line-height);\n color: var(--text-heading-xxl-color);\n text-decoration: var(--text-heading-xxl-text-decoration);\n letter-spacing: var(--text-heading-xxl-letter-spacing);\n}\n\n._heading-xl_1m4o3_12 {\n font-family: var(--text-heading-xl-font-family);\n font-style: var(--text-heading-xl-font-style);\n font-weight: var(--text-heading-xl-font-weight);\n font-size: var(--text-heading-xl-font-size);\n line-height: var(--text-heading-xl-line-height);\n color: var(--text-heading-xl-color);\n text-decoration: var(--text-heading-xl-text-decoration);\n letter-spacing: var(--text-heading-xl-letter-spacing);\n}\n\n._heading-large_1m4o3_23 {\n font-family: var(--text-heading-large-font-family);\n font-style: var(--text-heading-large-font-style);\n font-weight: var(--text-heading-large-font-weight);\n font-size: var(--text-heading-large-font-size);\n line-height: var(--text-heading-large-line-height);\n color: var(--text-heading-large-color);\n text-decoration: var(--text-heading-large-text-decoration);\n letter-spacing: var(--text-heading-large-letter-spacing);\n}\n\n._heading-medium_1m4o3_34 {\n font-family: var(--text-heading-medium-font-family);\n font-style: var(--text-heading-medium-font-style);\n font-weight: var(--text-heading-medium-font-weight);\n font-size: var(--text-heading-medium-font-size);\n line-height: var(--text-heading-medium-line-height);\n color: var(--text-heading-medium-color);\n text-decoration: var(--text-heading-medium-text-decoration);\n letter-spacing: var(--text-heading-medium-letter-spacing);\n}\n\n._heading-small_1m4o3_45 {\n font-family: var(--text-heading-small-font-family);\n font-style: var(--text-heading-small-font-style);\n font-weight: var(--text-heading-small-font-weight);\n font-size: var(--text-heading-small-font-size);\n line-height: var(--text-heading-small-line-height);\n color: var(--text-heading-small-color);\n text-decoration: var(--text-heading-small-text-decoration);\n letter-spacing: var(--text-heading-small-letter-spacing);\n}\n\n._heading-table_1m4o3_56 {\n font-family: var(--text-heading-table-font-family);\n font-style: var(--text-heading-table-font-style);\n font-weight: var(--text-heading-table-font-weight);\n font-size: var(--text-heading-table-font-size);\n line-height: var(--text-heading-table-line-height);\n color: var(--text-heading-table-color);\n text-decoration: var(--text-heading-table-text-decoration);\n letter-spacing: var(--text-heading-table-letter-spacing);\n}\n\n._subheading-large_1m4o3_67 {\n font-family: var(--text-subheading-large-font-family);\n font-style: var(--text-subheading-large-font-style);\n font-weight: var(--text-subheading-large-font-weight);\n font-size: var(--text-subheading-large-font-size);\n line-height: var(--text-subheading-large-line-height);\n color: var(--text-subheading-large-color);\n text-decoration: var(--text-subheading-large-text-decoration);\n letter-spacing: var(--text-subheading-large-letter-spacing);\n}\n\n._subheading-medium_1m4o3_78 {\n font-family: var(--text-subheading-medium-font-family);\n font-style: var(--text-subheading-medium-font-style);\n font-weight: var(--text-subheading-medium-font-weight);\n font-size: var(--text-subheading-medium-font-size);\n line-height: var(--text-subheading-medium-line-height);\n color: var(--text-subheading-medium-color);\n text-decoration: var(--text-subheading-medium-text-decoration);\n letter-spacing: var(--text-subheading-medium-letter-spacing);\n}\n\n._subheading-small_1m4o3_89 {\n font-family: var(--text-subheading-small-font-family);\n font-style: var(--text-subheading-small-font-style);\n font-weight: var(--text-subheading-small-font-weight);\n font-size: var(--text-subheading-small-font-size);\n line-height: var(--text-subheading-small-line-height);\n color: var(--text-subheading-small-color);\n text-decoration: var(--text-subheading-small-text-decoration);\n letter-spacing: var(--text-subheading-small-letter-spacing);\n}\n\n._subheading-small-bold_1m4o3_100 {\n font-family: var(--text-subheading-small-bold-font-family);\n font-style: var(--text-subheading-small-bold-font-style);\n font-weight: var(--text-subheading-small-bold-font-weight);\n font-size: var(--text-subheading-small-bold-font-size);\n line-height: var(--text-subheading-small-bold-line-height);\n color: var(--text-subheading-small-bold-color);\n text-decoration: var(--text-subheading-small-bold-text-decoration);\n letter-spacing: var(--text-subheading-small-bold-letter-spacing);\n}\n\n._body_1m4o3_111 {\n font-family: var(--text-body-font-family);\n font-style: var(--text-body-font-style);\n font-weight: var(--text-body-font-weight);\n font-size: var(--text-body-font-size);\n line-height: var(--text-body-line-height);\n color: var(--text-body-color);\n text-decoration: var(--text-body-text-decoration);\n letter-spacing: var(--text-body-letter-spacing);\n}\n\n._body-small_1m4o3_122 {\n font-family: var(--text-body-small-font-family);\n font-style: var(--text-body-small-font-style);\n font-weight: var(--text-body-small-font-weight);\n font-size: var(--text-body-small-font-size);\n line-height: var(--text-body-small-line-height);\n color: var(--text-body-small-color);\n text-decoration: var(--text-body-small-text-decoration);\n letter-spacing: var(--text-body-small-letter-spacing);\n}\n\n._body-bold_1m4o3_133 {\n font-family: var(--text-body-bold-font-family);\n font-style: var(--text-body-bold-font-style);\n font-weight: var(--text-body-bold-font-weight);\n font-size: var(--text-body-bold-font-size);\n line-height: var(--text-body-bold-line-height);\n color: var(--text-body-bold-color);\n text-decoration: var(--text-body-bold-text-decoration);\n letter-spacing: var(--text-body-bold-letter-spacing);\n}\n\n._body-bold-dark_1m4o3_144 {\n font-family: var(--text-body-bold-dark-font-family);\n font-style: var(--text-body-bold-dark-font-style);\n font-weight: var(--text-body-bold-dark-font-weight);\n font-size: var(--text-body-bold-dark-font-size);\n line-height: var(--text-body-bold-dark-line-height);\n color: var(--text-body-bold-dark-color);\n text-decoration: var(--text-body-bold-dark-text-decoration);\n letter-spacing: var(--text-body-bold-dark-letter-spacing);\n}\n\n._body-small-bold_1m4o3_155 {\n font-family: var(--text-body-small-bold-font-family);\n font-style: var(--text-body-small-bold-font-style);\n font-weight: var(--text-body-small-bold-font-weight);\n font-size: var(--text-body-small-bold-font-size);\n line-height: var(--text-body-small-bold-line-height);\n color: var(--text-body-small-bold-color);\n text-decoration: var(--text-body-small-bold-text-decoration);\n letter-spacing: var(--text-body-small-bold-letter-spacing);\n}\n\n._button_1m4o3_166 {\n font-family: var(--text-button-font-family);\n font-style: var(--text-button-font-style);\n font-weight: var(--text-button-font-weight);\n font-size: var(--text-button-font-size);\n line-height: var(--text-button-line-height);\n color: var(--text-button-color);\n text-decoration: var(--text-button-text-decoration);\n letter-spacing: var(--text-button-letter-spacing);\n}\n\n._button-small_1m4o3_177 {\n font-family: var(--text-button-small-font-family);\n font-style: var(--text-button-small-font-style);\n font-weight: var(--text-button-small-font-weight);\n font-size: var(--text-button-small-font-size);\n line-height: var(--text-button-small-line-height);\n color: var(--text-button-small-color);\n text-decoration: var(--text-button-small-text-decoration);\n letter-spacing: var(--text-button-small-letter-spacing);\n}\n\n._link-large_1m4o3_188 {\n font-family: var(--text-link-large-font-family);\n font-style: var(--text-link-large-font-style);\n font-weight: var(--text-link-large-font-weight);\n font-size: var(--text-link-large-font-size);\n line-height: var(--text-link-large-line-height);\n color: var(--text-link-large-color);\n text-decoration: var(--text-link-large-text-decoration);\n letter-spacing: var(--text-link-large-letter-spacing);\n}\n\n._link-medium_1m4o3_199 {\n font-family: var(--text-link-medium-font-family);\n font-style: var(--text-link-medium-font-style);\n font-weight: var(--text-link-medium-font-weight);\n font-size: var(--text-link-medium-font-size);\n line-height: var(--text-link-medium-line-height);\n color: var(--text-link-medium-color);\n text-decoration: var(--text-link-medium-text-decoration);\n letter-spacing: var(--text-link-medium-letter-spacing);\n}\n\n._link_1m4o3_188 {\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n}\n\n._link-small_1m4o3_221 {\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n\n._input-label_1m4o3_232 {\n font-family: var(--text-input-label-font-family);\n font-style: var(--text-input-label-font-style);\n font-weight: var(--text-input-label-font-weight);\n font-size: var(--text-input-label-font-size);\n line-height: var(--text-input-label-line-height);\n color: var(--text-input-label-color);\n text-decoration: var(--text-input-label-text-decoration);\n letter-spacing: var(--text-input-label-letter-spacing);\n}\n\n._input-label-small_1m4o3_243 {\n font-family: var(--text-input-label-small-font-family);\n font-style: var(--text-input-label-small-font-style);\n font-weight: var(--text-input-label-small-font-weight);\n font-size: var(--text-input-label-small-font-size);\n line-height: var(--text-input-label-small-line-height);\n color: var(--text-input-label-small-color);\n text-decoration: var(--text-input-label-small-text-decoration);\n letter-spacing: var(--text-input-label-small-letter-spacing);\n}\n\n._hint-text_1m4o3_254 {\n font-family: var(--text-hint-text-font-family);\n font-style: var(--text-hint-text-font-style);\n font-weight: var(--text-hint-text-font-weight);\n font-size: var(--text-hint-text-font-size);\n line-height: var(--text-hint-text-line-height);\n color: var(--text-hint-text-color);\n text-decoration: var(--text-hint-text-text-decoration);\n letter-spacing: var(--text-hint-text-letter-spacing);\n}\n\n._placeholder_1m4o3_265 {\n font-family: var(--text-placeholder-font-family);\n font-style: var(--text-placeholder-font-style);\n font-weight: var(--text-placeholder-font-weight);\n font-size: var(--text-placeholder-font-size);\n line-height: var(--text-placeholder-line-height);\n color: var(--text-placeholder-color);\n text-decoration: var(--text-placeholder-text-decoration);\n letter-spacing: var(--text-placeholder-letter-spacing);\n}\n\n._placeholder-small_1m4o3_276 {\n font-family: var(--text-placeholder-small-font-family);\n font-style: var(--text-placeholder-small-font-style);\n font-weight: var(--text-placeholder-small-font-weight);\n font-size: var(--text-placeholder-small-font-size);\n line-height: var(--text-placeholder-small-line-height);\n color: var(--text-placeholder-small-color);\n text-decoration: var(--text-placeholder-small-text-decoration);\n letter-spacing: var(--text-placeholder-small-letter-spacing);\n}\n\n._placeholder-code_1m4o3_287 {\n font-family: var(--text-placeholder-code-font-family);\n font-style: var(--text-placeholder-code-font-style);\n font-weight: var(--text-placeholder-code-font-weight);\n font-size: var(--text-placeholder-code-font-size);\n line-height: var(--text-placeholder-code-line-height);\n color: var(--text-placeholder-code-color);\n text-decoration: var(--text-placeholder-code-text-decoration);\n letter-spacing: var(--text-placeholder-code-letter-spacing);\n}\n\n._placeholder-code-small_1m4o3_298 {\n font-family: var(--text-placeholder-code-small-font-family);\n font-style: var(--text-placeholder-code-small-font-style);\n font-weight: var(--text-placeholder-code-small-font-weight);\n font-size: var(--text-placeholder-code-small-font-size);\n line-height: var(--text-placeholder-code-small-line-height);\n color: var(--text-placeholder-code-small-color);\n text-decoration: var(--text-placeholder-code-small-text-decoration);\n letter-spacing: var(--text-placeholder-code-small-letter-spacing);\n}\n\n._error_1m4o3_309 {\n font-family: var(--text-error-font-family);\n font-style: var(--text-error-font-style);\n font-weight: var(--text-error-font-weight);\n font-size: var(--text-error-font-size);\n line-height: var(--text-error-line-height);\n color: var(--text-error-color);\n text-decoration: var(--text-error-text-decoration);\n letter-spacing: var(--text-error-letter-spacing);\n}\n\n._error-small_1m4o3_320 {\n font-family: var(--text-error-small-font-family);\n font-style: var(--text-error-small-font-style);\n font-weight: var(--text-error-small-font-weight);\n font-size: var(--text-error-small-font-size);\n line-height: var(--text-error-small-line-height);\n color: var(--text-error-small-color);\n text-decoration: var(--text-error-small-text-decoration);\n letter-spacing: var(--text-error-small-letter-spacing);\n}\n\n._success-small_1m4o3_331 {\n font-family: var(--text-success-small-font-family);\n font-style: var(--text-success-small-font-style);\n font-weight: var(--text-success-small-font-weight);\n font-size: var(--text-success-small-font-size);\n line-height: var(--text-success-small-line-height);\n color: var(--text-success-small-color);\n text-decoration: var(--text-success-small-text-decoration);\n letter-spacing: var(--text-success-small-letter-spacing);\n}\n\n._link_1m4o3_188 {\n --link-icon-size: var(--sizes-base);\n font-family: var(--text-link-font-family);\n font-style: var(--text-link-font-style);\n font-weight: var(--text-link-font-weight);\n font-size: var(--text-link-font-size);\n line-height: var(--text-link-line-height);\n color: var(--text-link-color);\n text-decoration: var(--text-link-text-decoration);\n letter-spacing: var(--text-link-letter-spacing);\n display: inline-flex;\n align-items: center;\n gap: var(--radius-sm);\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n}\n._link_1m4o3_188 svg {\n width: var(--link-icon-size);\n height: var(--link-icon-size);\n vertical-align: middle;\n flex-shrink: 0;\n}\n._link_1m4o3_188._sm_1m4o3_364, ._link_1m4o3_188._xs_1m4o3_364 {\n --link-icon-size: var(--sizes-3);\n font-family: var(--text-link-small-font-family);\n font-style: var(--text-link-small-font-style);\n font-weight: var(--text-link-small-font-weight);\n font-size: var(--text-link-small-font-size);\n line-height: var(--text-link-small-line-height);\n color: var(--text-link-small-color);\n text-decoration: var(--text-link-small-text-decoration);\n letter-spacing: var(--text-link-small-letter-spacing);\n}\n._link_1m4o3_188:hover {\n text-decoration-thickness: 2px;\n cursor: pointer;\n}\n._link_1m4o3_188:focus-visible {\n outline: 0;\n box-shadow: 0 0 0 var(--sizes-xs) white, 0 0 0 var(--sizes-sm) var(--colors-secondary-blue-light);\n border-radius: var(--sizes-xs);\n}\n._link_1m4o3_188._inherit_1m4o3_384 {\n font-size: inherit;\n line-height: inherit;\n --link-icon-size: 1em;\n}");
|
|
4
|
+
var linkStyles = {"heading-xxl":"_heading-xxl_1m4o3_1","heading-xl":"_heading-xl_1m4o3_12","heading-large":"_heading-large_1m4o3_23","heading-medium":"_heading-medium_1m4o3_34","heading-small":"_heading-small_1m4o3_45","heading-table":"_heading-table_1m4o3_56","subheading-large":"_subheading-large_1m4o3_67","subheading-medium":"_subheading-medium_1m4o3_78","subheading-small":"_subheading-small_1m4o3_89","subheading-small-bold":"_subheading-small-bold_1m4o3_100","body":"_body_1m4o3_111","body-small":"_body-small_1m4o3_122","body-bold":"_body-bold_1m4o3_133","body-bold-dark":"_body-bold-dark_1m4o3_144","body-small-bold":"_body-small-bold_1m4o3_155","button":"_button_1m4o3_166","button-small":"_button-small_1m4o3_177","link-large":"_link-large_1m4o3_188","link-medium":"_link-medium_1m4o3_199","link":"_link_1m4o3_188","link-small":"_link-small_1m4o3_221","input-label":"_input-label_1m4o3_232","input-label-small":"_input-label-small_1m4o3_243","hint-text":"_hint-text_1m4o3_254","placeholder":"_placeholder_1m4o3_265","placeholder-small":"_placeholder-small_1m4o3_276","placeholder-code":"_placeholder-code_1m4o3_287","placeholder-code-small":"_placeholder-code-small_1m4o3_298","error":"_error_1m4o3_309","error-small":"_error-small_1m4o3_320","success-small":"_success-small_1m4o3_331","sm":"_sm_1m4o3_364","xs":"_xs_1m4o3_364","inherit":"_inherit_1m4o3_384"};
|
|
5
5
|
|
|
6
6
|
export { linkStyles as default };
|
|
7
7
|
//# sourceMappingURL=link.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.module.scss.js","sources":["../../../../src/components/Action/styles/link.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.link {\n @include text.link;\n display: inline-flex;\n align-items: center;\n gap: var(--
|
|
1
|
+
{"version":3,"file":"link.module.scss.js","sources":["../../../../src/components/Action/styles/link.module.scss"],"sourcesContent":["@use '../../../theme/scss/text.module.scss' as text;\n\n.link {\n --link-icon-size: var(--sizes-base);\n\n @include text.link;\n display: inline-flex;\n align-items: center;\n gap: var(--radius-sm);\n\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n & svg {\n width: var(--link-icon-size);\n height: var(--link-icon-size);\n vertical-align: middle;\n flex-shrink: 0;\n }\n\n &.sm,\n &.xs {\n --link-icon-size: var(--sizes-3);\n\n @include text.link-small;\n }\n\n &:hover {\n text-decoration-thickness: 2px;\n cursor: pointer;\n }\n\n &:focus-visible {\n outline: 0;\n box-shadow:\n 0 0 0 var(--sizes-xs) white,\n 0 0 0 var(--sizes-sm) var(--colors-secondary-blue-light);\n border-radius: var(--sizes-xs);\n }\n &.inherit {\n font-size: inherit;\n line-height: inherit;\n\n --link-icon-size: 1em;\n }\n}\n"],"names":["___$insertStyle"],"mappings":";;AAGEA,WAAA,CAAA,mnfAAA;AACA,iBAAA,CAAA,aAAA,CAAA,sBAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,0BAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,eAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,mBAAA,CAAA,6BAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,uBAAA,CAAA,kCAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,gBAAA,CAAA,2BAAA,CAAA,iBAAA,CAAA,4BAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,cAAA,CAAA,yBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,YAAA,CAAA,uBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,mBAAA,CAAA,8BAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA,wBAAA,CAAA,mCAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,eAAA,CAAA,0BAAA,CAAA,IAAA,CAAA,eAAA,CAAA,IAAA,CAAA,eAAA,CAAA,SAAA,CAAA,oBAAA;;;;"}
|
|
@@ -1,21 +1,37 @@
|
|
|
1
1
|
import React, { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
2
|
export type ActionAppearance = 'button' | 'link' | 'unstyled';
|
|
3
3
|
export type ActionVariant = 'default' | 'destructive' | 'primary' | 'primaryDestructive' | 'flat';
|
|
4
|
+
export type ActionSize = 'xs' | 'sm' | 'base';
|
|
4
5
|
type BaseActionProps<C extends React.ElementType> = {
|
|
6
|
+
/** Override the visual appearance independently of the semantic element. Defaults to `'link'` when `href` is provided, `'button'` otherwise. */
|
|
5
7
|
appearance?: ActionAppearance;
|
|
8
|
+
/** Render as a custom component (e.g. a router link) while keeping Action's styling. */
|
|
6
9
|
as?: C;
|
|
10
|
+
/** Content of the action. Omit for icon-only buttons (provide `aria-label` instead). */
|
|
7
11
|
children?: React.ReactNode;
|
|
12
|
+
/** Additional CSS class names applied to the root element. */
|
|
8
13
|
className?: string;
|
|
9
|
-
|
|
14
|
+
/** Disables the action. When rendered as a native `<button>`, this prevents interaction and removes it from the tab order. Other rendered elements may require additional accessibility handling in the implementation. */
|
|
10
15
|
disabled?: boolean;
|
|
16
|
+
/** Renders a dropdown chevron indicator inside the button. */
|
|
17
|
+
dropdown?: boolean;
|
|
18
|
+
/** Icon rendered before the children. Use without `children` for an icon-only button. */
|
|
11
19
|
iconSlot?: React.ReactNode;
|
|
20
|
+
/** Shows a loading spinner for button-style actions, sets `aria-busy="true"` when supported by the rendered element, and may be forwarded to custom components rendered via `as`. */
|
|
12
21
|
loading?: boolean;
|
|
22
|
+
/** Controls the overall dimensions and spacing of the action. */
|
|
23
|
+
size?: ActionSize;
|
|
24
|
+
/** HTML button type attribute. Only applies when rendering as a `<button>`. */
|
|
13
25
|
type?: 'button' | 'submit' | 'reset';
|
|
26
|
+
/** Visual style variant. Only applies to button appearance. */
|
|
14
27
|
variant?: ActionVariant;
|
|
15
28
|
};
|
|
16
29
|
export type LinkActionProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
30
|
+
/** URL that triggers link behaviour, rendering the action as an `<a>` element. */
|
|
17
31
|
href: string;
|
|
32
|
+
/** Hostnames treated as internal — links to other hosts show an external icon. */
|
|
18
33
|
allowedHostnames?: string[];
|
|
34
|
+
/** Hides the external link icon that appears automatically for external URLs. */
|
|
19
35
|
hideExternalLinkIcon?: boolean;
|
|
20
36
|
};
|
|
21
37
|
export type ButtonActionProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -23,14 +23,16 @@ const getAppearanceClasses = (appearance, props) => {
|
|
|
23
23
|
button_module.button,
|
|
24
24
|
...iconClasses,
|
|
25
25
|
props.disabled && button_module.disabled,
|
|
26
|
-
props.
|
|
26
|
+
props.size && props.size !== 'base' && button_module[props.size],
|
|
27
|
+
props.dropdown && button_module.dropdown,
|
|
27
28
|
...getButtonVariantClasses(props.variant),
|
|
28
29
|
]);
|
|
29
30
|
case 'link':
|
|
30
31
|
return buildClassnames.buildClassnames([
|
|
31
32
|
...baseClasses,
|
|
32
33
|
link_module.link,
|
|
33
|
-
props.
|
|
34
|
+
!props.size && link_module.inherit,
|
|
35
|
+
props.size && props.size !== 'base' && link_module[props.size],
|
|
34
36
|
]);
|
|
35
37
|
default:
|
|
36
38
|
return buildClassnames.buildClassnames(baseClasses);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","sources":["../../../src/components/Action/utils.ts"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport baseStyles from './styles/base.module.scss';\nimport buttonStyles from './styles/button.module.scss';\nimport linkStyles from './styles/link.module.scss';\nimport { ActionAppearance, ActionVariant } from './types';\n\ntype AppearanceClassProps = {\n className?: string;\n variant?: ActionVariant;\n disabled?: boolean;\n
|
|
1
|
+
{"version":3,"file":"utils.cjs","sources":["../../../src/components/Action/utils.ts"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport baseStyles from './styles/base.module.scss';\nimport buttonStyles from './styles/button.module.scss';\nimport linkStyles from './styles/link.module.scss';\nimport { ActionAppearance, ActionSize, ActionVariant } from './types';\n\ntype AppearanceClassProps = {\n className?: string;\n variant?: ActionVariant;\n disabled?: boolean;\n size?: ActionSize;\n dropdown?: boolean;\n iconSlot?: React.ReactNode;\n children?: React.ReactNode;\n};\n\nexport const getButtonVariantClasses = (variant?: ActionVariant) =>\n [\n (variant === 'primary' || variant === 'primaryDestructive') && buttonStyles.primary,\n (variant === 'destructive' || variant === 'primaryDestructive') && buttonStyles.destructive,\n variant === 'flat' && buttonStyles.flat,\n ].filter(Boolean);\n\nexport const getAppearanceClasses = (appearance: ActionAppearance, props: AppearanceClassProps) => {\n const baseClasses = [props.className, baseStyles.reset];\n const hasIcon = !!props.iconSlot;\n const isIconOnly = hasIcon && (props.children == null || props.children === '');\n const iconClasses = [hasIcon && buttonStyles.icon, isIconOnly && buttonStyles.iconOnly];\n\n switch (appearance) {\n case 'button':\n return buildClassnames([\n ...baseClasses,\n buttonStyles.button,\n ...iconClasses,\n props.disabled && buttonStyles.disabled,\n props.size && props.size !== 'base' && buttonStyles[props.size],\n props.dropdown && buttonStyles.dropdown,\n ...getButtonVariantClasses(props.variant),\n ]);\n case 'link':\n return buildClassnames([\n ...baseClasses,\n linkStyles.link,\n !props.size && linkStyles.inherit,\n props.size && props.size !== 'base' && linkStyles[props.size],\n ]);\n default:\n return buildClassnames(baseClasses);\n }\n};\n"],"names":["buttonStyles","baseStyles","buildClassnames","linkStyles"],"mappings":";;;;;;;;MAiBa,uBAAuB,GAAG,CAAC,OAAuB,KAC7D;IACE,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,oBAAoB,KAAKA,aAAY,CAAC,OAAO;IACnF,CAAC,OAAO,KAAK,aAAa,IAAI,OAAO,KAAK,oBAAoB,KAAKA,aAAY,CAAC,WAAW;AAC3F,IAAA,OAAO,KAAK,MAAM,IAAIA,aAAY,CAAC,IAAI;AACxC,CAAA,CAAC,MAAM,CAAC,OAAO;MAEL,oBAAoB,GAAG,CAAC,UAA4B,EAAE,KAA2B,KAAI;IAChG,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC,SAAS,EAAEC,WAAU,CAAC,KAAK,CAAC;AACvD,IAAA,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,QAAQ;AAChC,IAAA,MAAM,UAAU,GAAG,OAAO,KAAK,KAAK,CAAC,QAAQ,IAAI,IAAI,IAAI,KAAK,CAAC,QAAQ,KAAK,EAAE,CAAC;AAC/E,IAAA,MAAM,WAAW,GAAG,CAAC,OAAO,IAAID,aAAY,CAAC,IAAI,EAAE,UAAU,IAAIA,aAAY,CAAC,QAAQ,CAAC;AAEvF,IAAA,QAAQ,UAAU;AAChB,QAAA,KAAK,QAAQ;AACX,YAAA,OAAOE,+BAAe,CAAC;AACrB,gBAAA,GAAG,WAAW;AACd,gBAAAF,aAAY,CAAC,MAAM;AACnB,gBAAA,GAAG,WAAW;AACd,gBAAA,KAAK,CAAC,QAAQ,IAAIA,aAAY,CAAC,QAAQ;AACvC,gBAAA,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAIA,aAAY,CAAC,KAAK,CAAC,IAAI,CAAC;AAC/D,gBAAA,KAAK,CAAC,QAAQ,IAAIA,aAAY,CAAC,QAAQ;AACvC,gBAAA,GAAG,uBAAuB,CAAC,KAAK,CAAC,OAAO,CAAC;AAC1C,aAAA,CAAC;AACJ,QAAA,KAAK,MAAM;AACT,YAAA,OAAOE,+BAAe,CAAC;AACrB,gBAAA,GAAG,WAAW;AACd,gBAAAC,WAAU,CAAC,IAAI;AACf,gBAAA,CAAC,KAAK,CAAC,IAAI,IAAIA,WAAU,CAAC,OAAO;AACjC,gBAAA,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAIA,WAAU,CAAC,KAAK,CAAC,IAAI,CAAC;AAC9D,aAAA,CAAC;AACJ,QAAA;AACE,YAAA,OAAOD,+BAAe,CAAC,WAAW,CAAC;AACtC;AACH;;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ActionAppearance, ActionVariant } from './types';
|
|
2
|
+
import { ActionAppearance, ActionSize, ActionVariant } from './types';
|
|
3
3
|
type AppearanceClassProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
variant?: ActionVariant;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
|
|
7
|
+
size?: ActionSize;
|
|
8
|
+
dropdown?: boolean;
|
|
8
9
|
iconSlot?: React.ReactNode;
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
};
|
|
@@ -21,14 +21,16 @@ const getAppearanceClasses = (appearance, props) => {
|
|
|
21
21
|
buttonStyles.button,
|
|
22
22
|
...iconClasses,
|
|
23
23
|
props.disabled && buttonStyles.disabled,
|
|
24
|
-
props.
|
|
24
|
+
props.size && props.size !== 'base' && buttonStyles[props.size],
|
|
25
|
+
props.dropdown && buttonStyles.dropdown,
|
|
25
26
|
...getButtonVariantClasses(props.variant),
|
|
26
27
|
]);
|
|
27
28
|
case 'link':
|
|
28
29
|
return buildClassnames([
|
|
29
30
|
...baseClasses,
|
|
30
31
|
linkStyles.link,
|
|
31
|
-
props.
|
|
32
|
+
!props.size && linkStyles.inherit,
|
|
33
|
+
props.size && props.size !== 'base' && linkStyles[props.size],
|
|
32
34
|
]);
|
|
33
35
|
default:
|
|
34
36
|
return buildClassnames(baseClasses);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/components/Action/utils.ts"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport baseStyles from './styles/base.module.scss';\nimport buttonStyles from './styles/button.module.scss';\nimport linkStyles from './styles/link.module.scss';\nimport { ActionAppearance, ActionVariant } from './types';\n\ntype AppearanceClassProps = {\n className?: string;\n variant?: ActionVariant;\n disabled?: boolean;\n
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/components/Action/utils.ts"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport baseStyles from './styles/base.module.scss';\nimport buttonStyles from './styles/button.module.scss';\nimport linkStyles from './styles/link.module.scss';\nimport { ActionAppearance, ActionSize, ActionVariant } from './types';\n\ntype AppearanceClassProps = {\n className?: string;\n variant?: ActionVariant;\n disabled?: boolean;\n size?: ActionSize;\n dropdown?: boolean;\n iconSlot?: React.ReactNode;\n children?: React.ReactNode;\n};\n\nexport const getButtonVariantClasses = (variant?: ActionVariant) =>\n [\n (variant === 'primary' || variant === 'primaryDestructive') && buttonStyles.primary,\n (variant === 'destructive' || variant === 'primaryDestructive') && buttonStyles.destructive,\n variant === 'flat' && buttonStyles.flat,\n ].filter(Boolean);\n\nexport const getAppearanceClasses = (appearance: ActionAppearance, props: AppearanceClassProps) => {\n const baseClasses = [props.className, baseStyles.reset];\n const hasIcon = !!props.iconSlot;\n const isIconOnly = hasIcon && (props.children == null || props.children === '');\n const iconClasses = [hasIcon && buttonStyles.icon, isIconOnly && buttonStyles.iconOnly];\n\n switch (appearance) {\n case 'button':\n return buildClassnames([\n ...baseClasses,\n buttonStyles.button,\n ...iconClasses,\n props.disabled && buttonStyles.disabled,\n props.size && props.size !== 'base' && buttonStyles[props.size],\n props.dropdown && buttonStyles.dropdown,\n ...getButtonVariantClasses(props.variant),\n ]);\n case 'link':\n return buildClassnames([\n ...baseClasses,\n linkStyles.link,\n !props.size && linkStyles.inherit,\n props.size && props.size !== 'base' && linkStyles[props.size],\n ]);\n default:\n return buildClassnames(baseClasses);\n }\n};\n"],"names":[],"mappings":";;;;;;MAiBa,uBAAuB,GAAG,CAAC,OAAuB,KAC7D;IACE,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,oBAAoB,KAAK,YAAY,CAAC,OAAO;IACnF,CAAC,OAAO,KAAK,aAAa,IAAI,OAAO,KAAK,oBAAoB,KAAK,YAAY,CAAC,WAAW;AAC3F,IAAA,OAAO,KAAK,MAAM,IAAI,YAAY,CAAC,IAAI;AACxC,CAAA,CAAC,MAAM,CAAC,OAAO;MAEL,oBAAoB,GAAG,CAAC,UAA4B,EAAE,KAA2B,KAAI;IAChG,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC;AACvD,IAAA,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,QAAQ;AAChC,IAAA,MAAM,UAAU,GAAG,OAAO,KAAK,KAAK,CAAC,QAAQ,IAAI,IAAI,IAAI,KAAK,CAAC,QAAQ,KAAK,EAAE,CAAC;AAC/E,IAAA,MAAM,WAAW,GAAG,CAAC,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,UAAU,IAAI,YAAY,CAAC,QAAQ,CAAC;AAEvF,IAAA,QAAQ,UAAU;AAChB,QAAA,KAAK,QAAQ;AACX,YAAA,OAAO,eAAe,CAAC;AACrB,gBAAA,GAAG,WAAW;AACd,gBAAA,YAAY,CAAC,MAAM;AACnB,gBAAA,GAAG,WAAW;AACd,gBAAA,KAAK,CAAC,QAAQ,IAAI,YAAY,CAAC,QAAQ;AACvC,gBAAA,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC;AAC/D,gBAAA,KAAK,CAAC,QAAQ,IAAI,YAAY,CAAC,QAAQ;AACvC,gBAAA,GAAG,uBAAuB,CAAC,KAAK,CAAC,OAAO,CAAC;AAC1C,aAAA,CAAC;AACJ,QAAA,KAAK,MAAM;AACT,YAAA,OAAO,eAAe,CAAC;AACrB,gBAAA,GAAG,WAAW;AACd,gBAAA,UAAU,CAAC,IAAI;AACf,gBAAA,CAAC,KAAK,CAAC,IAAI,IAAI,UAAU,CAAC,OAAO;AACjC,gBAAA,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;AAC9D,aAAA,CAAC;AACJ,QAAA;AACE,YAAA,OAAO,eAAe,CAAC,WAAW,CAAC;AACtC;AACH;;;;"}
|