@veeqo/ui 14.0.5 → 14.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/styled.d.ts +5 -1
- package/dist/components/Action/Action.cjs +67 -0
- package/dist/components/Action/Action.cjs.map +1 -0
- package/dist/components/Action/Action.d.ts +67 -0
- package/dist/components/Action/Action.js +61 -0
- package/dist/components/Action/Action.js.map +1 -0
- package/dist/components/Action/index.d.ts +2 -0
- package/dist/components/Action/styles/base.module.scss.cjs +9 -0
- package/dist/components/Action/styles/base.module.scss.cjs.map +1 -0
- package/dist/components/Action/styles/base.module.scss.js +7 -0
- package/dist/components/Action/styles/base.module.scss.js.map +1 -0
- package/dist/components/Action/styles/button.module.scss.cjs +9 -0
- package/dist/components/Action/styles/button.module.scss.cjs.map +1 -0
- package/dist/components/Action/styles/button.module.scss.js +7 -0
- package/dist/components/Action/styles/button.module.scss.js.map +1 -0
- package/dist/components/Action/styles/link.module.scss.cjs +9 -0
- package/dist/components/Action/styles/link.module.scss.cjs.map +1 -0
- package/dist/components/Action/styles/link.module.scss.js +7 -0
- package/dist/components/Action/styles/link.module.scss.js.map +1 -0
- package/dist/components/Action/types.d.ts +26 -0
- package/dist/components/Action/utils.cjs +42 -0
- package/dist/components/Action/utils.cjs.map +1 -0
- package/dist/components/Action/utils.d.ts +13 -0
- package/dist/components/Action/utils.js +39 -0
- package/dist/components/Action/utils.js.map +1 -0
- package/dist/components/Anchor/Anchor.cjs +3 -1
- package/dist/components/Anchor/Anchor.cjs.map +1 -1
- package/dist/components/Anchor/Anchor.d.ts +2 -0
- package/dist/components/Anchor/Anchor.js +3 -1
- package/dist/components/Anchor/Anchor.js.map +1 -1
- package/dist/components/Anchor/Anchor.module.scss.cjs +2 -2
- package/dist/components/Anchor/Anchor.module.scss.cjs.map +1 -1
- package/dist/components/Anchor/Anchor.module.scss.js +2 -2
- package/dist/components/Anchor/Anchor.module.scss.js.map +1 -1
- package/dist/components/Banner/styled.d.ts +5 -1
- package/dist/components/Button/Button.cjs +4 -0
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +12 -0
- package/dist/components/Button/Button.js +4 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/DataTable/utils/alignmentToFlex.d.ts +1 -1
- package/dist/components/DimensionsInput/DimensionsInput.d.ts +22 -22
- package/dist/components/FeatureBanner/FeatureBanner.d.ts +1 -1
- package/dist/components/FilterTag/styled.d.ts +5 -1
- package/dist/components/Flex/FlexCol/FlexCol.d.ts +2 -2
- package/dist/components/Flex/FlexRow/FlexRow.d.ts +2 -2
- package/dist/components/LegacyDataTable/SpecificState/styled.d.ts +11 -2
- package/dist/components/Pagination/styled.d.ts +24 -24
- package/dist/components/PhoneInput/index.d.ts +22 -22
- package/dist/components/Search/Search.d.ts +22 -22
- package/dist/components/Search/styled.d.ts +22 -22
- package/dist/components/Stack/Stack.cjs +2 -4
- package/dist/components/Stack/Stack.cjs.map +1 -1
- package/dist/components/Stack/Stack.js +2 -4
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Text/Text.cjs +27 -27
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.d.ts +11 -2
- package/dist/components/Text/Text.js +25 -25
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.module.scss.cjs +9 -0
- package/dist/components/Text/Text.module.scss.cjs.map +1 -0
- package/dist/components/Text/Text.module.scss.js +7 -0
- package/dist/components/Text/Text.module.scss.js.map +1 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/textVariants.cjs +14 -0
- package/dist/components/Text/textVariants.cjs.map +1 -0
- package/dist/components/Text/textVariants.js +12 -0
- package/dist/components/Text/textVariants.js.map +1 -0
- package/dist/components/Text/types.d.ts +7 -8
- package/dist/components/Text/utils.cjs +2 -2
- package/dist/components/Text/utils.cjs.map +1 -1
- package/dist/components/Text/utils.d.ts +3 -2
- package/dist/components/Text/utils.js +2 -2
- package/dist/components/Text/utils.js.map +1 -1
- package/dist/components/TextField/TextField.d.ts +22 -22
- package/dist/components/TextField/index.d.ts +22 -22
- package/dist/components/ToastsLayout/components/styled.d.ts +6 -1
- package/dist/components/View/View.cjs +3 -3
- package/dist/components/View/View.cjs.map +1 -1
- package/dist/components/View/View.js +3 -3
- package/dist/components/View/View.js.map +1 -1
- package/dist/components/View/styled.cjs +11 -11
- package/dist/components/View/styled.cjs.map +1 -1
- package/dist/components/View/styled.d.ts +27 -8
- package/dist/components/View/styled.js +11 -11
- package/dist/components/View/styled.js.map +1 -1
- package/dist/components/ViewTab/ViewTab.d.ts +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/theme/scss/text.module.scss.cjs +9 -0
- package/dist/theme/scss/text.module.scss.cjs.map +1 -0
- package/dist/theme/scss/text.module.scss.js +7 -0
- package/dist/theme/scss/text.module.scss.js.map +1 -0
- package/dist/utils/getContextAwareLink.cjs +43 -0
- package/dist/utils/getContextAwareLink.cjs.map +1 -0
- package/dist/utils/getContextAwareLink.d.ts +27 -0
- package/dist/utils/getContextAwareLink.js +41 -0
- package/dist/utils/getContextAwareLink.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +3 -1
|
@@ -10,7 +10,11 @@ declare const Right: import("styled-components").StyledComponent<any, any, objec
|
|
|
10
10
|
*/
|
|
11
11
|
declare const AccordionSummary: import("styled-components").StyledComponent<"summary", any, {}, never>;
|
|
12
12
|
declare const Top: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
declare const Description: import("styled-components").StyledComponent<
|
|
13
|
+
declare const Description: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
14
|
+
as?: import("../Text").ValidTextTag | undefined;
|
|
15
|
+
muted?: boolean | undefined;
|
|
16
|
+
variant?: "body" | "button" | "link" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholder" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
|
|
17
|
+
} & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
14
18
|
declare const AccordionContent: import("styled-components").StyledComponent<import("framer-motion").CustomDomComponent<{
|
|
15
19
|
[x: string]: any;
|
|
16
20
|
[x: number]: any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var getContextAwareLink = require('../../utils/getContextAwareLink.cjs');
|
|
5
|
+
var Loader = require('../Loader/Loader.cjs');
|
|
6
|
+
var LaunchIcon = require('../../icons/design-system/components/LaunchIcon.cjs');
|
|
7
|
+
var utils = require('./utils.cjs');
|
|
8
|
+
var button_module = require('./styles/button.module.scss.cjs');
|
|
9
|
+
var FlexRow = require('../Flex/FlexRow/FlexRow.cjs');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
17
|
+
*/
|
|
18
|
+
const Action = React.forwardRef(({ appearance, as, href, target, rel, allowedHostnames, className, variant, disabled, compact, iconSlot, children, hideExternalLinkIcon, loading, type = 'button', ...otherProps }, ref) => {
|
|
19
|
+
const isSemanticLink = !!href;
|
|
20
|
+
const defaultAppearance = isSemanticLink ? 'link' : 'button';
|
|
21
|
+
const visualAppearance = appearance || defaultAppearance;
|
|
22
|
+
const classNames = React.useMemo(() => utils.getAppearanceClasses(visualAppearance, {
|
|
23
|
+
className,
|
|
24
|
+
variant,
|
|
25
|
+
disabled,
|
|
26
|
+
compact,
|
|
27
|
+
iconSlot,
|
|
28
|
+
children,
|
|
29
|
+
}), [visualAppearance, className, variant, disabled, compact, iconSlot, children]);
|
|
30
|
+
const { linkProps, showExternalIcon } = getContextAwareLink.getContextAwareLink({
|
|
31
|
+
href,
|
|
32
|
+
target,
|
|
33
|
+
rel,
|
|
34
|
+
allowedHostnames,
|
|
35
|
+
});
|
|
36
|
+
const shouldShowExternalIcon = showExternalIcon && !hideExternalLinkIcon;
|
|
37
|
+
// This assignment is needed to allow TypeScript to infer the correct type for `as`
|
|
38
|
+
// and to ensure we can pass the correct props to the component without a type error.
|
|
39
|
+
const Component = as || (isSemanticLink ? 'a' : 'button');
|
|
40
|
+
// If a custom component is specified via `as`, render that component
|
|
41
|
+
if (as) {
|
|
42
|
+
return (React__default.default.createElement(Component, { ...otherProps, ref: ref, className: classNames, disabled: disabled, loading: loading, type: type, ...linkProps },
|
|
43
|
+
iconSlot,
|
|
44
|
+
children,
|
|
45
|
+
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null)));
|
|
46
|
+
}
|
|
47
|
+
// Render as an Anchor if type is a navigate action
|
|
48
|
+
if (isSemanticLink) {
|
|
49
|
+
return (React__default.default.createElement("a", { ...otherProps, ref: ref, className: classNames, ...linkProps },
|
|
50
|
+
iconSlot,
|
|
51
|
+
children,
|
|
52
|
+
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null)));
|
|
53
|
+
}
|
|
54
|
+
// Otherwise, render as a Button
|
|
55
|
+
return (React__default.default.createElement("button", { ...otherProps, ref: ref,
|
|
56
|
+
// eslint-disable-next-line react/button-has-type
|
|
57
|
+
type: type || 'button', className: classNames, disabled: disabled, "aria-busy": loading },
|
|
58
|
+
React__default.default.createElement(FlexRow.FlexRow, { gap: "sm", flexWrap: "nowrap", className: loading ? button_module.hideContent : undefined },
|
|
59
|
+
iconSlot,
|
|
60
|
+
children,
|
|
61
|
+
shouldShowExternalIcon && React__default.default.createElement(LaunchIcon.ReactComponent, null)),
|
|
62
|
+
loading && (React__default.default.createElement("div", { className: button_module.loadingWrapper, "aria-label": "Loading" },
|
|
63
|
+
React__default.default.createElement(Loader.Loader, null)))));
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
exports.Action = Action;
|
|
67
|
+
//# sourceMappingURL=Action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.cjs","sources":["../../../src/components/Action/Action.tsx"],"sourcesContent":["import React, { useMemo, forwardRef } from 'react';\nimport { getContextAwareLink } from '../../utils/getContextAwareLink';\nimport { Loader } from '../Loader';\nimport { LaunchIcon } from '../../icons';\nimport { getAppearanceClasses } from './utils';\nimport { ActionProps } from './types';\n\nimport buttonStyles from './styles/button.module.scss';\nimport { FlexRow } from '../Flex/FlexRow';\n\n/**\n * Action component for rendering buttons or links with various styles and behaviors.\n */\nexport const Action = 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 compact,\n iconSlot,\n children,\n hideExternalLinkIcon,\n loading,\n type = 'button',\n ...otherProps\n }: ActionProps<C>,\n ref: React.Ref<HTMLElement>,\n ) => {\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 compact,\n iconSlot,\n children,\n }),\n [visualAppearance, className, variant, disabled, compact, 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 {...linkProps}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\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 {...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 </FlexRow>\n {loading && (\n <div className={buttonStyles.loadingWrapper} aria-label=\"Loading\">\n <Loader />\n </div>\n )}\n </button>\n );\n },\n);\n"],"names":["forwardRef","useMemo","getAppearanceClasses","getContextAwareLink","React","LaunchIcon","FlexRow","buttonStyles","Loader"],"mappings":";;;;;;;;;;;;;;AAUA;;AAEG;MACU,MAAM,GAAGA,gBAAU,CAC9B,CACE,EACE,UAAU,EACV,EAAE,EACF,IAAI,EACJ,MAAM,EACN,GAAG,EACH,gBAAgB,EAChB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,IAAI,GAAG,QAAQ,EACf,GAAG,UAAU,EACE,EACjB,GAA2B,KACzB;AACF,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,OAAO;QACP,QAAQ;QACR,QAAQ;AACT,KAAA,CAAC,EACJ,CAAC,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAC9E;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;QACN,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,GACN,SAAS,EAAA;YAEZ,QAAQ;YACR,QAAQ;AACR,YAAA,sBAAsB,IAAIA,sBAAA,CAAA,aAAA,CAACC,yBAAU,EAAA,IAAA,CAAG,CAC/B;AAEf,IAAA;;AAGD,IAAA,IAAI,cAAc,EAAE;AAClB,QAAA,QACED,sBAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAA,GACM,UAAU,EACd,GAAG,EAAE,GAAmC,EACxC,SAAS,EAAE,UAAU,EAAA,GACjB,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,CAACE,eAAO,IACN,GAAG,EAAC,IAAI,EACR,QAAQ,EAAC,QAAQ,EACjB,SAAS,EAAE,OAAO,GAAGC,aAAY,CAAC,WAAW,GAAG,SAAS,EAAA;YAExD,QAAQ;YACR,QAAQ;AACR,YAAA,sBAAsB,IAAIH,sBAAA,CAAA,aAAA,CAACC,yBAAU,EAAA,IAAA,CAAG,CACjC;QACT,OAAO,KACND,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEG,aAAY,CAAC,cAAc,EAAA,YAAA,EAAa,SAAS,EAAA;AAC/D,YAAAH,sBAAA,CAAA,aAAA,CAACI,aAAM,EAAA,IAAA,CAAG,CACN,CACP,CACM;AAEb,CAAC;;;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
4
|
+
*/
|
|
5
|
+
export declare const Action: React.ForwardRefExoticComponent<(Omit<{
|
|
6
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
7
|
+
as?: React.ElementType<any> | undefined;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
12
|
+
*/
|
|
13
|
+
compact?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
iconSlot?: React.ReactNode;
|
|
16
|
+
loading?: boolean | undefined;
|
|
17
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
18
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
19
|
+
} & 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 {
|
|
20
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
21
|
+
as?: C | undefined;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
className?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
26
|
+
*/
|
|
27
|
+
compact?: boolean | undefined;
|
|
28
|
+
disabled?: boolean | undefined;
|
|
29
|
+
iconSlot?: React.ReactNode;
|
|
30
|
+
loading?: boolean | undefined;
|
|
31
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
32
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
33
|
+
}> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
34
|
+
href: string;
|
|
35
|
+
allowedHostnames?: string[] | undefined;
|
|
36
|
+
hideExternalLinkIcon?: boolean | undefined;
|
|
37
|
+
}, "ref"> | Omit<{
|
|
38
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
39
|
+
as?: React.ElementType<any> | undefined;
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
44
|
+
*/
|
|
45
|
+
compact?: boolean | undefined;
|
|
46
|
+
disabled?: boolean | undefined;
|
|
47
|
+
iconSlot?: React.ReactNode;
|
|
48
|
+
loading?: boolean | undefined;
|
|
49
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
50
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
51
|
+
} & 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 {
|
|
52
|
+
appearance?: import("./types").ActionAppearance | undefined;
|
|
53
|
+
as?: C | undefined;
|
|
54
|
+
children?: React.ReactNode;
|
|
55
|
+
className?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
58
|
+
*/
|
|
59
|
+
compact?: boolean | undefined;
|
|
60
|
+
disabled?: boolean | undefined;
|
|
61
|
+
iconSlot?: React.ReactNode;
|
|
62
|
+
loading?: boolean | undefined;
|
|
63
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
64
|
+
variant?: import("./types").ActionVariant | undefined;
|
|
65
|
+
}> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
66
|
+
href?: undefined;
|
|
67
|
+
}, "ref">) & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React__default, { forwardRef, useMemo } from 'react';
|
|
2
|
+
import { getContextAwareLink } from '../../utils/getContextAwareLink.js';
|
|
3
|
+
import { Loader } from '../Loader/Loader.js';
|
|
4
|
+
import { ReactComponent as LaunchIcon } from '../../icons/design-system/components/LaunchIcon.js';
|
|
5
|
+
import { getAppearanceClasses } from './utils.js';
|
|
6
|
+
import buttonStyles from './styles/button.module.scss.js';
|
|
7
|
+
import { FlexRow } from '../Flex/FlexRow/FlexRow.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Action component for rendering buttons or links with various styles and behaviors.
|
|
11
|
+
*/
|
|
12
|
+
const Action = forwardRef(({ appearance, as, href, target, rel, allowedHostnames, className, variant, disabled, compact, iconSlot, children, hideExternalLinkIcon, loading, type = 'button', ...otherProps }, ref) => {
|
|
13
|
+
const isSemanticLink = !!href;
|
|
14
|
+
const defaultAppearance = isSemanticLink ? 'link' : 'button';
|
|
15
|
+
const visualAppearance = appearance || defaultAppearance;
|
|
16
|
+
const classNames = useMemo(() => getAppearanceClasses(visualAppearance, {
|
|
17
|
+
className,
|
|
18
|
+
variant,
|
|
19
|
+
disabled,
|
|
20
|
+
compact,
|
|
21
|
+
iconSlot,
|
|
22
|
+
children,
|
|
23
|
+
}), [visualAppearance, className, variant, disabled, compact, iconSlot, children]);
|
|
24
|
+
const { linkProps, showExternalIcon } = getContextAwareLink({
|
|
25
|
+
href,
|
|
26
|
+
target,
|
|
27
|
+
rel,
|
|
28
|
+
allowedHostnames,
|
|
29
|
+
});
|
|
30
|
+
const shouldShowExternalIcon = showExternalIcon && !hideExternalLinkIcon;
|
|
31
|
+
// This assignment is needed to allow TypeScript to infer the correct type for `as`
|
|
32
|
+
// and to ensure we can pass the correct props to the component without a type error.
|
|
33
|
+
const Component = as || (isSemanticLink ? 'a' : 'button');
|
|
34
|
+
// If a custom component is specified via `as`, render that component
|
|
35
|
+
if (as) {
|
|
36
|
+
return (React__default.createElement(Component, { ...otherProps, ref: ref, className: classNames, disabled: disabled, loading: loading, type: type, ...linkProps },
|
|
37
|
+
iconSlot,
|
|
38
|
+
children,
|
|
39
|
+
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null)));
|
|
40
|
+
}
|
|
41
|
+
// Render as an Anchor if type is a navigate action
|
|
42
|
+
if (isSemanticLink) {
|
|
43
|
+
return (React__default.createElement("a", { ...otherProps, ref: ref, className: classNames, ...linkProps },
|
|
44
|
+
iconSlot,
|
|
45
|
+
children,
|
|
46
|
+
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null)));
|
|
47
|
+
}
|
|
48
|
+
// Otherwise, render as a Button
|
|
49
|
+
return (React__default.createElement("button", { ...otherProps, ref: ref,
|
|
50
|
+
// eslint-disable-next-line react/button-has-type
|
|
51
|
+
type: type || 'button', className: classNames, disabled: disabled, "aria-busy": loading },
|
|
52
|
+
React__default.createElement(FlexRow, { gap: "sm", flexWrap: "nowrap", className: loading ? buttonStyles.hideContent : undefined },
|
|
53
|
+
iconSlot,
|
|
54
|
+
children,
|
|
55
|
+
shouldShowExternalIcon && React__default.createElement(LaunchIcon, null)),
|
|
56
|
+
loading && (React__default.createElement("div", { className: buttonStyles.loadingWrapper, "aria-label": "Loading" },
|
|
57
|
+
React__default.createElement(Loader, null)))));
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export { Action };
|
|
61
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","sources":["../../../src/components/Action/Action.tsx"],"sourcesContent":["import React, { useMemo, forwardRef } from 'react';\nimport { getContextAwareLink } from '../../utils/getContextAwareLink';\nimport { Loader } from '../Loader';\nimport { LaunchIcon } from '../../icons';\nimport { getAppearanceClasses } from './utils';\nimport { ActionProps } from './types';\n\nimport buttonStyles from './styles/button.module.scss';\nimport { FlexRow } from '../Flex/FlexRow';\n\n/**\n * Action component for rendering buttons or links with various styles and behaviors.\n */\nexport const Action = 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 compact,\n iconSlot,\n children,\n hideExternalLinkIcon,\n loading,\n type = 'button',\n ...otherProps\n }: ActionProps<C>,\n ref: React.Ref<HTMLElement>,\n ) => {\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 compact,\n iconSlot,\n children,\n }),\n [visualAppearance, className, variant, disabled, compact, 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 {...linkProps}\n >\n {iconSlot}\n {children}\n {shouldShowExternalIcon && <LaunchIcon />}\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 {...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 </FlexRow>\n {loading && (\n <div className={buttonStyles.loadingWrapper} aria-label=\"Loading\">\n <Loader />\n </div>\n )}\n </button>\n );\n },\n);\n"],"names":["React"],"mappings":";;;;;;;;AAUA;;AAEG;MACU,MAAM,GAAG,UAAU,CAC9B,CACE,EACE,UAAU,EACV,EAAE,EACF,IAAI,EACJ,MAAM,EACN,GAAG,EACH,gBAAgB,EAChB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,IAAI,GAAG,QAAQ,EACf,GAAG,UAAU,EACE,EACjB,GAA2B,KACzB;AACF,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,OAAO;QACP,QAAQ;QACR,QAAQ;AACT,KAAA,CAAC,EACJ,CAAC,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAC9E;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;QACN,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,GACN,SAAS,EAAA;YAEZ,QAAQ;YACR,QAAQ;AACR,YAAA,sBAAsB,IAAIA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA,CAAG,CAC/B;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,GACjB,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;AACR,YAAA,sBAAsB,IAAIA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,IAAA,CAAG,CACjC;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,IAAA,CAAG,CACN,CACP,CACM;AAEb,CAAC;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ___$insertStyle = require('../../../_virtual/____insertStyle.cjs');
|
|
4
|
+
|
|
5
|
+
___$insertStyle("._reset_lpn7m_1 {\n appearance: none;\n border: 0;\n background-color: transparent;\n padding: unset;\n font: inherit;\n text-decoration: none;\n text-align: start;\n color: inherit;\n}\n._reset_lpn7m_1:hover {\n cursor: pointer;\n}");
|
|
6
|
+
var baseStyles = {"reset":"_reset_lpn7m_1"};
|
|
7
|
+
|
|
8
|
+
module.exports = baseStyles;
|
|
9
|
+
//# sourceMappingURL=base.module.scss.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.module.scss.cjs","sources":["../../../../src/components/Action/styles/base.module.scss"],"sourcesContent":[".reset {\n appearance: none;\n border: 0;\n background-color: transparent;\n padding: unset;\n font: inherit;\n text-decoration: none;\n text-align: start;\n color: inherit;\n\n &:hover {\n cursor: pointer;\n }\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,mPAAA;AACA,iBAAA,CAAA,OAAA,CAAA,gBAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import insertStyle from '../../../_virtual/____insertStyle.js';
|
|
2
|
+
|
|
3
|
+
insertStyle("._reset_lpn7m_1 {\n appearance: none;\n border: 0;\n background-color: transparent;\n padding: unset;\n font: inherit;\n text-decoration: none;\n text-align: start;\n color: inherit;\n}\n._reset_lpn7m_1:hover {\n cursor: pointer;\n}");
|
|
4
|
+
var baseStyles = {"reset":"_reset_lpn7m_1"};
|
|
5
|
+
|
|
6
|
+
export { baseStyles as default };
|
|
7
|
+
//# sourceMappingURL=base.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.module.scss.js","sources":["../../../../src/components/Action/styles/base.module.scss"],"sourcesContent":[".reset {\n appearance: none;\n border: 0;\n background-color: transparent;\n padding: unset;\n font: inherit;\n text-decoration: none;\n text-align: start;\n color: inherit;\n\n &:hover {\n cursor: pointer;\n }\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,mPAAA;AACA,iBAAA,CAAA,OAAA,CAAA,gBAAA;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ___$insertStyle = require('../../../_virtual/____insertStyle.cjs');
|
|
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":"_button_cb9np_166","icon":"_icon_cb9np_399","iconOnly":"_iconOnly_cb9np_402","compact":"_compact_cb9np_407","primary":"_primary_cb9np_427","destructive":"_destructive_cb9np_441","flat":"_flat_cb9np_449","disabled":"_disabled_cb9np_465","hideContent":"_hideContent_cb9np_469","loadingWrapper":"_loadingWrapper_cb9np_472"};
|
|
7
|
+
|
|
8
|
+
module.exports = buttonStyles;
|
|
9
|
+
//# sourceMappingURL=button.module.scss.cjs.map
|
|
@@ -0,0 +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-dark);\n --highlight-color: var(--colors-secondary-blue-light);\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(--sizes-sm);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n\n height: var(--sizes-10);\n padding-left: var(--sizes-md);\n padding-right: var(--sizes-md);\n border-radius: var(--sizes-sm);\n\n @include text.body;\n /* Default button */\n\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: 0 1px 3px rgba(55, 66, 77, 15%);\n color: var(--accent-color);\n\n /* Icon Slot */\n svg:first-child {\n width: var(--sizes-5);\n height: var(--sizes-5);\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 box-shadow: 0 0 0 var(--outline-width) var(--highlight-color);\n outline: 0;\n }\n\n &: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\n &.icon {\n padding-left: var(--sizes-base);\n }\n\n &.iconOnly {\n width: var(--sizes-10);\n padding-left: var(--sizes-2);\n padding-right: var(--sizes-2);\n }\n\n &.compact {\n --outline-width: 2px;\n\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 svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n }\n\n &.icon {\n padding-left: var(--sizes-sm);\n }\n\n &.iconOnly {\n width: var(--sizes-8);\n padding-left: var(--sizes-sm);\n padding-right: var(--sizes-sm);\n }\n }\n\n &.primary {\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\n background-color: var(--accent-color);\n border-color: var(--accent-color);\n color: white;\n\n &:hover {\n --accent-color: var(--colors-secondary-blue-dark);\n }\n\n &:active {\n --accent-color: 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-dark);\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-secondary-blue-base);\n\n &:hover {\n background-color: var(--colors-neutral-grey-light);\n }\n\n &: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\n &:focus-visible {\n box-shadow: 0 0 0 var(--outline-width) var(--colors-secondary-blue-light);\n outline: 0;\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 }\n}\n\n.button: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}\n"],"names":[],"mappings":";;;;AAGE,eAAA,CAAA,kplBAAA;AACA,mBAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,gBAAA,CAAA,2BAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import insertStyle from '../../../_virtual/____insertStyle.js';
|
|
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":"_button_cb9np_166","icon":"_icon_cb9np_399","iconOnly":"_iconOnly_cb9np_402","compact":"_compact_cb9np_407","primary":"_primary_cb9np_427","destructive":"_destructive_cb9np_441","flat":"_flat_cb9np_449","disabled":"_disabled_cb9np_465","hideContent":"_hideContent_cb9np_469","loadingWrapper":"_loadingWrapper_cb9np_472"};
|
|
5
|
+
|
|
6
|
+
export { buttonStyles as default };
|
|
7
|
+
//# sourceMappingURL=button.module.scss.js.map
|
|
@@ -0,0 +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-dark);\n --highlight-color: var(--colors-secondary-blue-light);\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(--sizes-sm);\n flex-shrink: 0;\n border: var(--sizes-line) solid;\n white-space: nowrap;\n\n height: var(--sizes-10);\n padding-left: var(--sizes-md);\n padding-right: var(--sizes-md);\n border-radius: var(--sizes-sm);\n\n @include text.body;\n /* Default button */\n\n border-color: var(--colors-neutral-grey-dark);\n background-color: white;\n box-shadow: 0 1px 3px rgba(55, 66, 77, 15%);\n color: var(--accent-color);\n\n /* Icon Slot */\n svg:first-child {\n width: var(--sizes-5);\n height: var(--sizes-5);\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 box-shadow: 0 0 0 var(--outline-width) var(--highlight-color);\n outline: 0;\n }\n\n &: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\n &.icon {\n padding-left: var(--sizes-base);\n }\n\n &.iconOnly {\n width: var(--sizes-10);\n padding-left: var(--sizes-2);\n padding-right: var(--sizes-2);\n }\n\n &.compact {\n --outline-width: 2px;\n\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 svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n }\n\n &.icon {\n padding-left: var(--sizes-sm);\n }\n\n &.iconOnly {\n width: var(--sizes-8);\n padding-left: var(--sizes-sm);\n padding-right: var(--sizes-sm);\n }\n }\n\n &.primary {\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\n background-color: var(--accent-color);\n border-color: var(--accent-color);\n color: white;\n\n &:hover {\n --accent-color: var(--colors-secondary-blue-dark);\n }\n\n &:active {\n --accent-color: 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-dark);\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-secondary-blue-base);\n\n &:hover {\n background-color: var(--colors-neutral-grey-light);\n }\n\n &: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\n &:focus-visible {\n box-shadow: 0 0 0 var(--outline-width) var(--colors-secondary-blue-light);\n outline: 0;\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 }\n}\n\n.button: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}\n"],"names":["___$insertStyle"],"mappings":";;AAGEA,WAAA,CAAA,kplBAAA;AACA,mBAAA,CAAA,QAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,SAAA,CAAA,oBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,aAAA,CAAA,wBAAA,CAAA,gBAAA,CAAA,2BAAA;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ___$insertStyle = require('../../../_virtual/____insertStyle.cjs');
|
|
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":"_link_16v1v_188","compact":"_compact_16v1v_363"};
|
|
7
|
+
|
|
8
|
+
module.exports = linkStyles;
|
|
9
|
+
//# sourceMappingURL=link.module.scss.cjs.map
|
|
@@ -0,0 +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(--sizes-xs);\n\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n & svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n vertical-align: middle;\n flex-shrink: 0;\n }\n\n &.compact {\n svg {\n width: var(--sizes-3);\n height: var(--sizes-3);\n }\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}\n"],"names":[],"mappings":";;;;AAGE,eAAA,CAAA,i/eAAA;AACA,iBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,SAAA,CAAA,oBAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import insertStyle from '../../../_virtual/____insertStyle.js';
|
|
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":"_link_16v1v_188","compact":"_compact_16v1v_363"};
|
|
5
|
+
|
|
6
|
+
export { linkStyles as default };
|
|
7
|
+
//# sourceMappingURL=link.module.scss.js.map
|
|
@@ -0,0 +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(--sizes-xs);\n\n color: var(--colors-secondary-blue-base);\n text-decoration: underline;\n & svg {\n width: var(--sizes-base);\n height: var(--sizes-base);\n vertical-align: middle;\n flex-shrink: 0;\n }\n\n &.compact {\n svg {\n width: var(--sizes-3);\n height: var(--sizes-3);\n }\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}\n"],"names":["___$insertStyle"],"mappings":";;AAGEA,WAAA,CAAA,i/eAAA;AACA,iBAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,SAAA,CAAA,oBAAA;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export type ActionAppearance = 'button' | 'link' | 'unstyled';
|
|
3
|
+
export type ActionVariant = 'default' | 'destructive' | 'primary' | 'primaryDestructive' | 'flat';
|
|
4
|
+
type BaseActionProps<C extends React.ElementType> = {
|
|
5
|
+
appearance?: ActionAppearance;
|
|
6
|
+
as?: C;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
compact?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
iconSlot?: React.ReactNode;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
type?: 'button' | 'submit' | 'reset';
|
|
14
|
+
variant?: ActionVariant;
|
|
15
|
+
};
|
|
16
|
+
export type LinkActionProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
17
|
+
href: string;
|
|
18
|
+
allowedHostnames?: string[];
|
|
19
|
+
hideExternalLinkIcon?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type ButtonActionProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
22
|
+
href?: never;
|
|
23
|
+
};
|
|
24
|
+
export type ActionOwnProps = LinkActionProps | ButtonActionProps;
|
|
25
|
+
export type ActionProps<C extends React.ElementType> = BaseActionProps<C> & Omit<React.ComponentPropsWithoutRef<C>, keyof BaseActionProps<C> | keyof ActionOwnProps> & ActionOwnProps;
|
|
26
|
+
export {};
|