@gooddata/sdk-ui-kit 10.17.0-alpha.9 → 10.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/EditableLabel/EditableLabel.d.ts +2 -59
- package/esm/EditableLabel/EditableLabel.d.ts.map +1 -1
- package/esm/EditableLabel/EditableLabel.js +143 -162
- package/esm/EditableLabel/EditableLabel.js.map +1 -1
- package/esm/EditableLabel/index.d.ts +1 -2
- package/esm/EditableLabel/index.d.ts.map +1 -1
- package/esm/EditableLabel/index.js +1 -1
- package/esm/EditableLabel/index.js.map +1 -1
- package/esm/EditableLabel/typings.d.ts +1 -0
- package/esm/EditableLabel/typings.d.ts.map +1 -1
- package/esm/EditableLabel/typings.js +1 -1
- package/esm/Icon/Icon.d.ts +1 -1
- package/esm/Icon/Icon.d.ts.map +1 -1
- package/esm/Icon/Icon.js +3 -1
- package/esm/Icon/Icon.js.map +1 -1
- package/esm/Icon/icons/Header.d.ts +7 -0
- package/esm/Icon/icons/Header.d.ts.map +1 -0
- package/esm/Icon/icons/Header.js +12 -0
- package/esm/Icon/icons/Header.js.map +1 -0
- package/esm/Messages/useToastMessage.d.ts +1 -1
- package/esm/Messages/useToastMessage.d.ts.map +1 -1
- package/esm/Messages/useToastMessage.js.map +1 -1
- package/esm/RichText/RichText.d.ts +5 -0
- package/esm/RichText/RichText.d.ts.map +1 -1
- package/esm/RichText/RichText.js +26 -5
- package/esm/RichText/RichText.js.map +1 -1
- package/esm/RichText/RichTextWithTooltip.d.ts.map +1 -1
- package/esm/RichText/RichTextWithTooltip.js +3 -3
- package/esm/RichText/RichTextWithTooltip.js.map +1 -1
- package/esm/Typography/Typography.d.ts +5 -1
- package/esm/Typography/Typography.d.ts.map +1 -1
- package/esm/Typography/Typography.js +1 -1
- package/esm/Typography/Typography.js.map +1 -1
- package/esm/Typography/index.d.ts +1 -1
- package/esm/Typography/index.d.ts.map +1 -1
- package/esm/sdk-ui-kit.d.ts +14 -62
- package/package.json +8 -8
- package/styles/css/dialog.css +4 -7
- package/styles/css/dialog.css.map +1 -1
- package/styles/css/main.css +15 -15
- package/styles/css/main.css.map +1 -1
- package/styles/css/richText.css +3 -0
- package/styles/css/richText.css.map +1 -1
- package/styles/css/typo.css +8 -8
- package/styles/css/typo.css.map +1 -1
- package/styles/scss/dialog.scss +0 -5
- package/styles/scss/richText.scss +4 -0
- package/styles/scss/typo-mixins.scss +3 -3
|
@@ -3,7 +3,7 @@ import { IMessageDefinition } from "./typings.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export type MessageParameters = Pick<IMessageDefinition, "duration" | "intensive" | "values">;
|
|
6
|
+
export type MessageParameters = Pick<IMessageDefinition, "duration" | "intensive" | "values" | "showMore" | "showLess" | "errorDetail">;
|
|
7
7
|
/**
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToastMessage.d.ts","sourceRoot":"","sources":["../../src/Messages/useToastMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"useToastMessage.d.ts","sourceRoot":"","sources":["../../src/Messages/useToastMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAe,MAAM,cAAc,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAChC,kBAAkB,EAClB,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAChF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,iBAAiB,KAAK,MAAM,CAAC;AAEjG;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,cAAc,CAAC;IAC3B,WAAW,EAAE,cAAc,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,mBA0BlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToastMessage.js","sourceRoot":"","sources":["../../src/Messages/useToastMessage.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAqB,OAAO,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"useToastMessage.js","sourceRoot":"","sources":["../../src/Messages/useToastMessage.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAqB,OAAO,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA4B/D;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAwB,EAAE;IACrD,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACzF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,cAAc,GAChB,CAAC,IAAiB,EAAkB,EAAE,CACtC,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;QACjB,IAAI,OAAO,EAAE,MAAM,EAAE,CAAC;YAClB,OAAO,UAAU,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC/F,CAAC;QACD,OAAO,UAAU,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC/E,CAAC,CAAC;IAEN,MAAM,UAAU,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzC,OAAO;QACH,UAAU;QACV,WAAW;QACX,UAAU;QACV,QAAQ;QACR,aAAa;QACb,iBAAiB;KACpB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -10,6 +10,11 @@ export interface IRichTextProps {
|
|
|
10
10
|
editRows?: number;
|
|
11
11
|
emptyElement?: JSX.Element;
|
|
12
12
|
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* If provided, the textarea starts at just 1 row,
|
|
15
|
+
* resizing dynamically up to editRows value.
|
|
16
|
+
*/
|
|
17
|
+
autoResize?: boolean;
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
15
20
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAiB9D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA+HD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAI7C,CAAC"}
|
package/esm/RichText/RichText.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// (C) 2024 GoodData Corporation
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import Markdown from "react-markdown";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { IntlWrapper } from "@gooddata/sdk-ui";
|
|
7
|
+
// lineHeight from CSS, used to calculate max textarea height based on provided row count
|
|
8
|
+
const RICH_TEXT_TEXTAREA_ROW_HEIGHT = 19;
|
|
7
9
|
const RICH_TEXT_PLACEHOLDER = `
|
|
8
10
|
# Heading 1
|
|
9
11
|
**Bold**
|
|
@@ -11,7 +13,7 @@ const RICH_TEXT_PLACEHOLDER = `
|
|
|
11
13
|
[link](http://thisisalink.com)
|
|
12
14
|

|
|
13
15
|
`;
|
|
14
|
-
const RichTextCore = ({ value, onChange, renderMode = "view", editPlaceholder, editRows, emptyElement, className, }) => {
|
|
16
|
+
const RichTextCore = ({ value, onChange, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, }) => {
|
|
15
17
|
return (React.createElement("div", { className: cx([
|
|
16
18
|
"gd-rich-text-content",
|
|
17
19
|
`gd-rich-text-content-${renderMode}`,
|
|
@@ -19,9 +21,10 @@ const RichTextCore = ({ value, onChange, renderMode = "view", editPlaceholder, e
|
|
|
19
21
|
`s-rich-text-${renderMode}`,
|
|
20
22
|
{ "gd-visible-scrollbar": renderMode === "view" },
|
|
21
23
|
className,
|
|
22
|
-
]) }, renderMode === "edit" ? (React.createElement(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows })) : (React.createElement(RichTextView, { value: value, emptyElement: emptyElement }))));
|
|
24
|
+
]) }, renderMode === "edit" ? (React.createElement(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (React.createElement(RichTextView, { value: value, emptyElement: emptyElement }))));
|
|
23
25
|
};
|
|
24
|
-
const RichTextEdit = ({ value, onChange, placeholder, rows = 10 }) => {
|
|
26
|
+
const RichTextEdit = ({ value, onChange, placeholder, rows = 10, autoResize = false, }) => {
|
|
27
|
+
const textareaRef = useRef(null);
|
|
25
28
|
const intl = useIntl();
|
|
26
29
|
const placeholderText = placeholder ?? `${intl.formatMessage({ id: "richText.placeholder" })}\n${RICH_TEXT_PLACEHOLDER}`;
|
|
27
30
|
const moveCaretToEnd = (event) => {
|
|
@@ -29,7 +32,25 @@ const RichTextEdit = ({ value, onChange, placeholder, rows = 10 }) => {
|
|
|
29
32
|
const position = value.length;
|
|
30
33
|
event.target.setSelectionRange(position, position);
|
|
31
34
|
};
|
|
32
|
-
|
|
35
|
+
const handleInput = useCallback(() => {
|
|
36
|
+
if (autoResize) {
|
|
37
|
+
const textarea = textareaRef.current;
|
|
38
|
+
// Reset height to calculate new content height
|
|
39
|
+
textarea.style.height = "auto";
|
|
40
|
+
// Get the scroll height to adjust dynamically
|
|
41
|
+
const scrollHeight = textarea.scrollHeight;
|
|
42
|
+
// Set maxHeight equivalent to the number of provided rows
|
|
43
|
+
const maxHeight = RICH_TEXT_TEXTAREA_ROW_HEIGHT * rows;
|
|
44
|
+
// Apply height up to maxHeight, and allow scrolling if content exceeds it
|
|
45
|
+
textarea.style.height = `${Math.min(scrollHeight, maxHeight)}px`;
|
|
46
|
+
textarea.style.overflowY = scrollHeight > maxHeight ? "scroll" : "hidden";
|
|
47
|
+
}
|
|
48
|
+
}, [autoResize, rows]);
|
|
49
|
+
// the effect will be called just once during initialization to set the textarea height
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
handleInput();
|
|
52
|
+
}, [handleInput]);
|
|
53
|
+
return (React.createElement("textarea", { ref: textareaRef, className: "gd-visible-scrollbar", value: value, autoFocus: true, placeholder: placeholderText, onChange: (event) => onChange(event.target.value), onInput: handleInput, rows: autoResize ? 1 : rows, onFocus: moveCaretToEnd }));
|
|
33
54
|
};
|
|
34
55
|
const ImageComponent = (props) => (React.createElement("img", { style: { maxWidth: "100%" }, ...props }));
|
|
35
56
|
const AnchorComponent = (props) => (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", ...props }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,yFAAyF;AACzF,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEzC,MAAM,qBAAqB,GAAG;;;;;;CAM7B,CAAC;AAoBF,MA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AW,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACjC;
|
|
1
|
+
{"version":3,"file":"RichTextWithTooltip.d.ts","sourceRoot":"","sources":["../../src/RichText/RichTextWithTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAY,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAgBxD;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACjC;AAmDD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAInE,CAAC"}
|
|
@@ -13,12 +13,12 @@ const descriptionMarkdown = (React.createElement(React.Fragment, null,
|
|
|
13
13
|
"* List",
|
|
14
14
|
React.createElement("br", null),
|
|
15
15
|
"[link](http://thisisalink.com)"));
|
|
16
|
-
const RichTextWithTooltipCore = ({ value, onChange, renderMode, editPlaceholder, editRows, emptyElement, className, showTooltip = true, tooltipAlignPoints = alignPoints, tooltipDescription, tooltipMarkdown = descriptionMarkdown, }) => {
|
|
16
|
+
const RichTextWithTooltipCore = ({ value, onChange, renderMode, editPlaceholder, editRows, emptyElement, className, showTooltip = true, tooltipAlignPoints = alignPoints, tooltipDescription, tooltipMarkdown = descriptionMarkdown, autoResize, }) => {
|
|
17
17
|
const intl = useIntl();
|
|
18
18
|
const description = tooltipDescription ?? intl.formatMessage({ id: "richText.tooltip" });
|
|
19
19
|
const Component = useMemo(() => {
|
|
20
|
-
return (React.createElement(RichText, { value: value, onChange: onChange, renderMode: renderMode, editPlaceholder: editPlaceholder, editRows: editRows, emptyElement: emptyElement, className: className }));
|
|
21
|
-
}, [value, onChange, renderMode, editPlaceholder, editRows, emptyElement, className]);
|
|
20
|
+
return (React.createElement(RichText, { value: value, onChange: onChange, renderMode: renderMode, editPlaceholder: editPlaceholder, editRows: editRows, emptyElement: emptyElement, className: className, autoResize: autoResize }));
|
|
21
|
+
}, [value, onChange, renderMode, editPlaceholder, editRows, emptyElement, className, autoResize]);
|
|
22
22
|
if (!showTooltip) {
|
|
23
23
|
return Component;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextWithTooltip.js","sourceRoot":"","sources":["../../src/RichText/RichTextWithTooltip.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,WAAW,GAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AAC5E,MAAM,mBAAmB,GAAG,CACxB;IACI,+BAAM;;IAEN,+BAAM;;IAEN,+BAAM;qCAEP,CACN,CAAC;AAYF,MAAM,uBAAuB,GAAwC,CAAC,EAClE,KAAK,EACL,QAAQ,EACR,UAAU,EACV,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,WAAW,GAAG,IAAI,EAClB,kBAAkB,GAAG,WAAW,EAChC,kBAAkB,EAClB,eAAe,GAAG,mBAAmB,
|
|
1
|
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,EAC1B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,GACxB,CACL,CAAC;IACN,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IAElG,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,CACH,oBAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI;QAC3D,SAAS;QACT,WAAW,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAC,6BAA6B;YAC3E,WAAW;YACX,eAAe,CACX,CACZ,CAAC,CAAC,CAAC,IAAI,CACS,CACxB,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC/E,oBAAC,WAAW;IACR,oBAAC,uBAAuB,OAAK,KAAK,GAAI,CAC5B,CACjB,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export type TypographyTagName = "h1" | "h2" | "h3" | "p";
|
|
2
6
|
/**
|
|
3
7
|
* @internal
|
|
4
8
|
*/
|
|
5
9
|
export interface ITypographyProps {
|
|
6
|
-
tagName:
|
|
10
|
+
tagName: TypographyTagName;
|
|
7
11
|
children: React.ReactNode;
|
|
8
12
|
className?: string;
|
|
9
13
|
onClick?: (e: React.MouseEvent) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;GAEG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAYjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../src/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAkB5B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAA+B,CAAC,KAAK,EAAE,EAAE;IAC5D,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEpE,OAAO,CACH,oBAAC,GAAG,IACA,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,kBAAkB,GAAG,EAAE,EAAE,SAAS,CAAC,EAClE,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,IAEX,QAAQ,CACP,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Typography/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Typography/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
package/esm/sdk-ui-kit.d.ts
CHANGED
|
@@ -597,58 +597,6 @@ export declare const DropdownTabs: React_2.FC<IDropdownTagsProps>;
|
|
|
597
597
|
*/
|
|
598
598
|
export declare const EditableLabel: React_2.ForwardRefExoticComponent<IEditableLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
599
599
|
|
|
600
|
-
/**
|
|
601
|
-
* @internal
|
|
602
|
-
*/
|
|
603
|
-
export declare class EditableLabelInner extends Component<IEditableLabelInnerProps, IEditableLabelState> {
|
|
604
|
-
static defaultProps: {
|
|
605
|
-
children: boolean;
|
|
606
|
-
className: string;
|
|
607
|
-
maxLength: number;
|
|
608
|
-
maxRows: number;
|
|
609
|
-
onCancel: {
|
|
610
|
-
<T>(value: T): T;
|
|
611
|
-
(): undefined;
|
|
612
|
-
};
|
|
613
|
-
onEditingStart: {
|
|
614
|
-
<T>(value: T): T;
|
|
615
|
-
(): undefined;
|
|
616
|
-
};
|
|
617
|
-
onChange: {
|
|
618
|
-
<T>(value: T): T;
|
|
619
|
-
(): undefined;
|
|
620
|
-
};
|
|
621
|
-
placeholder: string;
|
|
622
|
-
scrollToEndOnEditingStart: boolean;
|
|
623
|
-
textareaInOverlay: boolean;
|
|
624
|
-
autofocus: boolean;
|
|
625
|
-
isEditableLabelWidthBasedOnText: boolean;
|
|
626
|
-
};
|
|
627
|
-
private readonly root;
|
|
628
|
-
private readonly textarea;
|
|
629
|
-
private focusTimeout;
|
|
630
|
-
constructor(props: IEditableLabelInnerProps);
|
|
631
|
-
componentDidMount(): void;
|
|
632
|
-
UNSAFE_componentWillReceiveProps(newProps: IEditableLabelProps): void;
|
|
633
|
-
componentWillUnmount(): void;
|
|
634
|
-
onDocumentClick: (e: MouseEvent) => void;
|
|
635
|
-
onSelectStart(e: React_2.MouseEvent): void;
|
|
636
|
-
onKeyDown: (e: React_2.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
637
|
-
onSubmit: () => void;
|
|
638
|
-
onCancel: () => void;
|
|
639
|
-
onChange: (e: React_2.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
640
|
-
edit: (_e?: React_2.MouseEvent<HTMLDivElement>) => void;
|
|
641
|
-
isClickOutsideTextarea(clickedTarget: EventTarget): boolean;
|
|
642
|
-
isMultiLine(): boolean;
|
|
643
|
-
removeListeners(): void;
|
|
644
|
-
measureRootDimensions(): void;
|
|
645
|
-
selectAndFocus: () => void;
|
|
646
|
-
renderTextAreaInOverlay(): ReactNode;
|
|
647
|
-
renderTextarea(style?: {}): ReactNode;
|
|
648
|
-
renderEditableLabelEdit(): ReactNode;
|
|
649
|
-
render(): ReactNode;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
600
|
/**
|
|
653
601
|
* Multiline ellipsis does not exist natively, so this is a simple version of it.
|
|
654
602
|
*
|
|
@@ -1446,7 +1394,7 @@ export declare interface IComponentTableProps<TProps extends object, TProp exten
|
|
|
1446
1394
|
/**
|
|
1447
1395
|
* @internal
|
|
1448
1396
|
*/
|
|
1449
|
-
export declare const Icon: Record<string,
|
|
1397
|
+
export declare const Icon: Record<string, React_2.FC<IIconProps>>;
|
|
1450
1398
|
|
|
1451
1399
|
/**
|
|
1452
1400
|
* @internal
|
|
@@ -1826,13 +1774,6 @@ export declare interface IDropdownTagsProps {
|
|
|
1826
1774
|
onTabSelect?: (tab: ITab) => void;
|
|
1827
1775
|
}
|
|
1828
1776
|
|
|
1829
|
-
/**
|
|
1830
|
-
* @internal
|
|
1831
|
-
*/
|
|
1832
|
-
export declare interface IEditableLabelInnerProps extends IEditableLabelProps {
|
|
1833
|
-
innerRef: React_2.ForwardedRef<HTMLDivElement>;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
1777
|
/**
|
|
1837
1778
|
* @internal
|
|
1838
1779
|
*/
|
|
@@ -1859,6 +1800,7 @@ export declare interface IEditableLabelProps {
|
|
|
1859
1800
|
export declare interface IEditableLabelState {
|
|
1860
1801
|
value: string;
|
|
1861
1802
|
isEditing: boolean;
|
|
1803
|
+
rootWidth: number;
|
|
1862
1804
|
textareaWidth: number;
|
|
1863
1805
|
textareaFontSize?: number;
|
|
1864
1806
|
}
|
|
@@ -3504,6 +3446,11 @@ export declare interface IRichTextProps {
|
|
|
3504
3446
|
editRows?: number;
|
|
3505
3447
|
emptyElement?: JSX.Element;
|
|
3506
3448
|
className?: string;
|
|
3449
|
+
/**
|
|
3450
|
+
* If provided, the textarea starts at just 1 row,
|
|
3451
|
+
* resizing dynamically up to editRows value.
|
|
3452
|
+
*/
|
|
3453
|
+
autoResize?: boolean;
|
|
3507
3454
|
}
|
|
3508
3455
|
|
|
3509
3456
|
/**
|
|
@@ -4061,7 +4008,7 @@ export declare interface IToggleButtonProps {
|
|
|
4061
4008
|
* @internal
|
|
4062
4009
|
*/
|
|
4063
4010
|
export declare interface ITypographyProps {
|
|
4064
|
-
tagName:
|
|
4011
|
+
tagName: TypographyTagName;
|
|
4065
4012
|
children: React_2.ReactNode;
|
|
4066
4013
|
className?: string;
|
|
4067
4014
|
onClick?: (e: React_2.MouseEvent) => void;
|
|
@@ -4298,7 +4245,7 @@ export declare const Message: React_2.FC<IMessageProps>;
|
|
|
4298
4245
|
/**
|
|
4299
4246
|
* @internal
|
|
4300
4247
|
*/
|
|
4301
|
-
export declare type MessageParameters = Pick<IMessageDefinition, "duration" | "intensive" | "values">;
|
|
4248
|
+
export declare type MessageParameters = Pick<IMessageDefinition, "duration" | "intensive" | "values" | "showMore" | "showLess" | "errorDetail">;
|
|
4302
4249
|
|
|
4303
4250
|
/**
|
|
4304
4251
|
* @internal
|
|
@@ -4974,6 +4921,11 @@ export declare type TUTMContent = "main_menu_help_documentation" | "main_menu_he
|
|
|
4974
4921
|
*/
|
|
4975
4922
|
export declare const Typography: React_2.FC<ITypographyProps>;
|
|
4976
4923
|
|
|
4924
|
+
/**
|
|
4925
|
+
* @internal
|
|
4926
|
+
*/
|
|
4927
|
+
export declare type TypographyTagName = "h1" | "h2" | "h3" | "p";
|
|
4928
|
+
|
|
4977
4929
|
/**
|
|
4978
4930
|
* @internal
|
|
4979
4931
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
|
3
|
-
"version": "10.17.0
|
|
3
|
+
"version": "10.17.0",
|
|
4
4
|
"description": "GoodData SDK - UI Building Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"ts-invariant": "^0.7.5",
|
|
64
64
|
"tslib": "^2.5.0",
|
|
65
65
|
"uuid": "^8.3.2",
|
|
66
|
-
"@gooddata/sdk-backend-spi": "10.17.0
|
|
67
|
-
"@gooddata/sdk-model": "10.17.0
|
|
68
|
-
"@gooddata/sdk-ui": "10.17.0
|
|
69
|
-
"@gooddata/sdk-ui-theme-provider": "10.17.0
|
|
70
|
-
"@gooddata/util": "10.17.0
|
|
66
|
+
"@gooddata/sdk-backend-spi": "10.17.0",
|
|
67
|
+
"@gooddata/sdk-model": "10.17.0",
|
|
68
|
+
"@gooddata/sdk-ui": "10.17.0",
|
|
69
|
+
"@gooddata/sdk-ui-theme-provider": "10.17.0",
|
|
70
|
+
"@gooddata/util": "10.17.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
"typescript": "5.3.3",
|
|
127
127
|
"vitest": "1.0.4",
|
|
128
128
|
"vitest-dom": "0.1.1",
|
|
129
|
-
"@gooddata/
|
|
130
|
-
"@gooddata/
|
|
129
|
+
"@gooddata/sdk-backend-mockingbird": "10.17.0",
|
|
130
|
+
"@gooddata/reference-workspace": "10.17.0"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",
|
package/styles/css/dialog.css
CHANGED
|
@@ -120,25 +120,22 @@
|
|
|
120
120
|
white-space: nowrap;
|
|
121
121
|
text-overflow: ellipsis;
|
|
122
122
|
line-height: 1.2;
|
|
123
|
-
color: var(--gd-modal-title-color, var(--gd-palette-complementary-9, #000));
|
|
124
123
|
}
|
|
125
124
|
.gd-dialog-header h2 {
|
|
126
|
-
color: var(--gd-palette-complementary-
|
|
125
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
127
126
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
128
127
|
font-weight: 400;
|
|
129
128
|
font-weight: 700;
|
|
130
129
|
line-height: 26px;
|
|
131
130
|
font-size: 20px;
|
|
132
|
-
color: var(--gd-modal-title-color, var(--gd-palette-complementary-9, #000));
|
|
133
131
|
}
|
|
134
132
|
.gd-dialog-header h3 {
|
|
135
|
-
color: var(--gd-palette-complementary-
|
|
133
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
136
134
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
137
135
|
font-weight: 400;
|
|
138
|
-
font-weight:
|
|
136
|
+
font-weight: 700;
|
|
139
137
|
line-height: 23px;
|
|
140
138
|
font-size: 17px;
|
|
141
|
-
color: var(--gd-modal-title-color, var(--gd-palette-complementary-9, #000));
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
.gd-dialog-header.gd-dialog-header-with-border {
|
|
@@ -146,7 +143,7 @@
|
|
|
146
143
|
}
|
|
147
144
|
|
|
148
145
|
.gd-dialog-icon {
|
|
149
|
-
color: var(--gd-palette-complementary-
|
|
146
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
150
147
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
151
148
|
font-weight: 400;
|
|
152
149
|
font-weight: 700;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../scss/mixins.scss","../scss/Dialog/_variables.scss","../scss/dialog.scss","../scss/variables.scss","../scss/typo-mixins.scss"],"names":[],"mappings":"AA0HA;AA4DA;AClLA;AAAA;AAAA;ACIA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDC8B;;;ACElC;EACI;;;AAGJ;AAAA;EAEI;EACA;EACA;EACA;EACA,WDvBmB;ECwBnB;EACA,cDlBmB;ECmBnB,eDlBoB;ECmBpB,cDlBmB;ECmBnB;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAMA;AAAA;EACI;EACA;EACA;;AAGJ;AAAA;AAAA;AAAA;EAEI;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;EACI,OChCI;;AH4IZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EExGQ;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACI,OCzBU;;;AD+B1B;EACI;;AAEA;AAAA;EAEI;;;AAIR;EACI;;;AAGJ;EFgCI;EACA;EACA,eAHwB;EElBxB;;AAVA;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;EACA;;AAKJ;AAAA;AAAA;EFiBA;EACA;EACA,eAHwB;EEXpB
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../scss/mixins.scss","../scss/Dialog/_variables.scss","../scss/dialog.scss","../scss/variables.scss","../scss/typo-mixins.scss"],"names":[],"mappings":"AA0HA;AA4DA;AClLA;AAAA;AAAA;ACIA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDC8B;;;ACElC;EACI;;;AAGJ;AAAA;EAEI;EACA;EACA;EACA;EACA,WDvBmB;ECwBnB;EACA,cDlBmB;ECmBnB,eDlBoB;ECmBpB,cDlBmB;ECmBnB;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAMA;AAAA;EACI;EACA;EACA;;AAGJ;AAAA;AAAA;AAAA;EAEI;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;EACI,OChCI;;AH4IZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EExGQ;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACI,OCzBU;;;AD+B1B;EACI;;AAEA;AAAA;EAEI;;;AAIR;EACI;;;AAGJ;EFgCI;EACA;EACA,eAHwB;EElBxB;;AAVA;AAAA;AAAA;AAAA;AAAA;AAAA;EAMI;EACA;;AAKJ;AAAA;AAAA;EFiBA;EACA;EACA,eAHwB;EEXpB;;AAGJ;EEpFA,ODMY;ECvBZ,aDuFc;ECnFd;EAIA;EA2BA;EACA;;AFqEA;EExFA,ODMY;ECvBZ,aDuFc;ECnFd;EAIA;EAmCA;EACA;;;AFkEJ;EACI;;;AAGJ;EEjGI,ODMY;ECvBZ,aDuFc;ECnFd;EAIA;EAmBA;EACA;EFyFA;EACA;EACA;;AAEA;EACI,OCxFkB;;;AD4F1B;EACI;;AAEA;EACI;;;AAIR;EACI;EAMA;EACA;;AALA;EACI;;AAMJ;EACI;;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA,OCxGoB;;;AD+GhB;AAAA;AAAA;EACI;;AAGJ;AAAA;AAAA;EACI;;;AAKZ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;AAAA;AAGA;EACI;;AAEA;EACI;EACA;;AAGJ;EACI;EACA;;AAGJ;EACI;;AAGJ;EACI;;;AAIR;AAAA;AAGA;EACI;EACA;;;AAGJ;EAEI;;;AAGJ;EACI;;;AAGJ;EACI;EACA;;AAGI;EACI;;AAGJ;EACI,OC1NY;ED2NZ;;;AAKZ;AAAA;AAEA;EACI;EACA;;AAEA;EAJJ;IAKQ;;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AAGJ;EACI;EACA;EACA;;;AAMA;EACI;EACA;EACA;;AAGJ;EACI;;AAIR;EACI;EACA;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;;AAII;EACI;EACA;;AAIR;EACI;EACA;;AACA;EACI;EACA;;AAEJ;EACI;;AAIR;EACI;EACA;EACA;;AAEA;EAEI;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKZ;EACI;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;EAEA;;AAGJ;EACI;;AAMJ;EACI;EACA;EACA","file":"dialog.css"}
|
package/styles/css/main.css
CHANGED
|
@@ -463,7 +463,7 @@ div {
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
.gd-heading-1 {
|
|
466
|
-
color: var(--gd-palette-complementary-
|
|
466
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
467
467
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
468
468
|
font-weight: 400;
|
|
469
469
|
font-weight: 700;
|
|
@@ -472,7 +472,7 @@ div {
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.gd-heading-2 {
|
|
475
|
-
color: var(--gd-palette-complementary-
|
|
475
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
476
476
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
477
477
|
font-weight: 400;
|
|
478
478
|
font-weight: 700;
|
|
@@ -481,10 +481,10 @@ div {
|
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
.gd-heading-3 {
|
|
484
|
-
color: var(--gd-palette-complementary-
|
|
484
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
485
485
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
486
486
|
font-weight: 400;
|
|
487
|
-
font-weight:
|
|
487
|
+
font-weight: 700;
|
|
488
488
|
line-height: 23px;
|
|
489
489
|
font-size: 17px;
|
|
490
490
|
}
|
|
@@ -526,7 +526,7 @@ div {
|
|
|
526
526
|
margin: 0;
|
|
527
527
|
}
|
|
528
528
|
.gd-typography--h1 {
|
|
529
|
-
color: var(--gd-palette-complementary-
|
|
529
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
530
530
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
531
531
|
font-weight: 400;
|
|
532
532
|
font-weight: 700;
|
|
@@ -534,7 +534,7 @@ div {
|
|
|
534
534
|
font-size: 24px;
|
|
535
535
|
}
|
|
536
536
|
.gd-typography--h2 {
|
|
537
|
-
color: var(--gd-palette-complementary-
|
|
537
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
538
538
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
539
539
|
font-weight: 400;
|
|
540
540
|
font-weight: 700;
|
|
@@ -542,10 +542,10 @@ div {
|
|
|
542
542
|
font-size: 20px;
|
|
543
543
|
}
|
|
544
544
|
.gd-typography--h3 {
|
|
545
|
-
color: var(--gd-palette-complementary-
|
|
545
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
546
546
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
547
547
|
font-weight: 400;
|
|
548
|
-
font-weight:
|
|
548
|
+
font-weight: 700;
|
|
549
549
|
line-height: 23px;
|
|
550
550
|
font-size: 17px;
|
|
551
551
|
}
|
|
@@ -2919,25 +2919,22 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
|
|
|
2919
2919
|
white-space: nowrap;
|
|
2920
2920
|
text-overflow: ellipsis;
|
|
2921
2921
|
line-height: 1.2;
|
|
2922
|
-
color: var(--gd-modal-title-color, var(--gd-palette-complementary-9, #000));
|
|
2923
2922
|
}
|
|
2924
2923
|
.gd-dialog-header h2 {
|
|
2925
|
-
color: var(--gd-palette-complementary-
|
|
2924
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
2926
2925
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
2927
2926
|
font-weight: 400;
|
|
2928
2927
|
font-weight: 700;
|
|
2929
2928
|
line-height: 26px;
|
|
2930
2929
|
font-size: 20px;
|
|
2931
|
-
color: var(--gd-modal-title-color, var(--gd-palette-complementary-9, #000));
|
|
2932
2930
|
}
|
|
2933
2931
|
.gd-dialog-header h3 {
|
|
2934
|
-
color: var(--gd-palette-complementary-
|
|
2932
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
2935
2933
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
2936
2934
|
font-weight: 400;
|
|
2937
|
-
font-weight:
|
|
2935
|
+
font-weight: 700;
|
|
2938
2936
|
line-height: 23px;
|
|
2939
2937
|
font-size: 17px;
|
|
2940
|
-
color: var(--gd-modal-title-color, var(--gd-palette-complementary-9, #000));
|
|
2941
2938
|
}
|
|
2942
2939
|
|
|
2943
2940
|
.gd-dialog-header.gd-dialog-header-with-border {
|
|
@@ -2945,7 +2942,7 @@ a.gd-button-link:hover .gd-button-text, a.gd-button-link-dimmed:hover .gd-button
|
|
|
2945
2942
|
}
|
|
2946
2943
|
|
|
2947
2944
|
.gd-dialog-icon {
|
|
2948
|
-
color: var(--gd-palette-complementary-
|
|
2945
|
+
color: var(--gd-palette-complementary-8, #464e56);
|
|
2949
2946
|
font-family: gdcustomfont, avenir, "Helvetica Neue", arial, sans-serif;
|
|
2950
2947
|
font-weight: 400;
|
|
2951
2948
|
font-weight: 700;
|
|
@@ -10427,6 +10424,9 @@ button.gd-button-primary.gd-upsell-button:active {
|
|
|
10427
10424
|
text-align: left;
|
|
10428
10425
|
margin-bottom: 0;
|
|
10429
10426
|
}
|
|
10427
|
+
.gd-rich-text-content-view p + p {
|
|
10428
|
+
margin-top: 0.625rem;
|
|
10429
|
+
}
|
|
10430
10430
|
.gd-rich-text-content-view hr {
|
|
10431
10431
|
border-top: 0;
|
|
10432
10432
|
border-bottom: 1px solid var(--gd-palette-complementary-3, #dde4eb);
|