@snack-uikit/modal 0.10.2 → 0.10.3-preview-47f53a8c.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.
@@ -23,5 +23,5 @@ export function Modal(_a) {
23
23
  const aligns = getAlignProps({ align, size });
24
24
  const buttonsSize = getButtonsSize({ align, size });
25
25
  const picture = getPicture({ size, picture: pictureProp });
26
- return (_jsxs(ModalCustom, Object.assign({ open: open, onClose: onClose, size: size, mode: mode, className: className }, rest, { children: [_jsx(ModalCustom.Header, { title: _jsx(TruncateString, { text: title }), titleTooltip: titleTooltip, subtitle: subtitle, picture: picture, align: aligns.header }), Boolean(content) && _jsx(ModalCustom.Body, { content: content, align: aligns.body }), _jsx(ModalCustom.Footer, { actions: _jsxs(_Fragment, { children: [_jsx(ButtonFilled, Object.assign({}, approveButton, { size: buttonsSize, className: styles.footerButton, "data-test-id": TEST_IDS.approveButton })), cancelButton && (_jsx(ButtonOutline, Object.assign({}, cancelButton, { size: buttonsSize, className: styles.footerButton, "data-test-id": TEST_IDS.cancelButton }))), additionalButton && (_jsx(ButtonSimple, Object.assign({}, additionalButton, { size: buttonsSize, className: styles.footerButton, "data-test-id": TEST_IDS.additionalButton })))] }), disclaimer: disclaimer && (_jsxs(_Fragment, { children: [_jsx(Typography.SansBodyS, { "data-test-id": TEST_IDS.disclaimerText, children: disclaimer.text }), disclaimer.link && (_jsx(Link, Object.assign({ external: true }, disclaimer.link, { size: 's', "data-test-id": TEST_IDS.disclaimerLink })))] })), align: aligns.footer, className: styles.modalFooter })] })));
26
+ return (_jsxs(ModalCustom, Object.assign({ open: open, onClose: onClose, size: size, mode: mode, className: className }, rest, { children: [_jsx(ModalCustom.Header, { title: _jsx(TruncateString, { text: title }), titleTooltip: titleTooltip, subtitle: subtitle, picture: picture, align: aligns.header }), Boolean(content) && _jsx(ModalCustom.Body, { content: content, align: aligns.body }), _jsx(ModalCustom.Footer, { actions: _jsxs(_Fragment, { children: [_jsx(ButtonFilled, Object.assign({ appearance: 'primary' }, approveButton, { size: buttonsSize, className: styles.footerButton, "data-test-id": TEST_IDS.approveButton })), cancelButton && (_jsx(ButtonOutline, Object.assign({ appearance: 'neutral' }, cancelButton, { size: buttonsSize, className: styles.footerButton, "data-test-id": TEST_IDS.cancelButton }))), additionalButton && (_jsx(ButtonSimple, Object.assign({ appearance: 'neutral' }, additionalButton, { size: buttonsSize, className: styles.footerButton, "data-test-id": TEST_IDS.additionalButton })))] }), disclaimer: disclaimer && (_jsxs(_Fragment, { children: [_jsx(Typography.SansBodyS, { "data-test-id": TEST_IDS.disclaimerText, children: disclaimer.text }), disclaimer.link && (_jsx(Link, Object.assign({ external: true }, disclaimer.link, { size: 's', "data-test-id": TEST_IDS.disclaimerLink })))] })), align: aligns.footer, className: styles.modalFooter })] })));
27
27
  }
@@ -17,5 +17,5 @@ import { CONTENT_ALIGN, TEST_IDS } from '../../constants';
17
17
  import styles from './styles.module.css';
18
18
  export function ModalBody(_a) {
19
19
  var { content, align = CONTENT_ALIGN.Default, className } = _a, rest = __rest(_a, ["content", "align", "className"]);
20
- return (_jsx(Scroll, Object.assign({ size: 'm', className: cn(styles.modalBody, className) }, extractSupportProps(rest), { "data-align": align, "data-test-id": TEST_IDS.content, children: content })));
20
+ return (_jsx(Scroll, Object.assign({ size: 'm', barHideStrategy: 'never', className: cn(styles.modalBody, className) }, extractSupportProps(rest), { "data-align": align, "data-test-id": TEST_IDS.content, children: content })));
21
21
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Modal",
7
- "version": "0.10.2",
7
+ "version": "0.10.3-preview-47f53a8c.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -47,5 +47,5 @@
47
47
  "devDependencies": {
48
48
  "@types/react-modal": "3.16.0"
49
49
  },
50
- "gitHead": "a24da7478c0b00f3e60d821466c31b2e9d57a719"
50
+ "gitHead": "723f99961ed1419c6740e0c7d3b2c4728e816886"
51
51
  }
@@ -49,6 +49,7 @@ export function Modal({
49
49
  actions={
50
50
  <>
51
51
  <ButtonFilled
52
+ appearance='primary'
52
53
  {...approveButton}
53
54
  size={buttonsSize}
54
55
  className={styles.footerButton}
@@ -57,6 +58,7 @@ export function Modal({
57
58
 
58
59
  {cancelButton && (
59
60
  <ButtonOutline
61
+ appearance='neutral'
60
62
  {...cancelButton}
61
63
  size={buttonsSize}
62
64
  className={styles.footerButton}
@@ -66,6 +68,7 @@ export function Modal({
66
68
 
67
69
  {additionalButton && (
68
70
  <ButtonSimple
71
+ appearance='neutral'
69
72
  {...additionalButton}
70
73
  size={buttonsSize}
71
74
  className={styles.footerButton}
@@ -20,6 +20,7 @@ export function ModalBody({ content, align = CONTENT_ALIGN.Default, className, .
20
20
  return (
21
21
  <Scroll
22
22
  size='m'
23
+ barHideStrategy='never'
23
24
  className={cn(styles.modalBody, className)}
24
25
  {...extractSupportProps(rest)}
25
26
  data-align={align}