@latte-macchiat-io/latte-vanilla-components 0.0.231 → 0.0.233

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.231",
3
+ "version": "0.0.233",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -5,6 +5,7 @@ import { useState } from 'react';
5
5
 
6
6
  import { modal, modalContentCloseButton, modalContentRecipe, type ModalVariants } from './styles.css';
7
7
 
8
+ import { themeContract } from '../../theme/contract.css';
8
9
  import { Actions } from '../Actions';
9
10
  import { Button } from '../Button';
10
11
  import { Icon } from '../Icon';
@@ -30,7 +31,7 @@ export const Modal = ({ triggerLabel, className, children, align, withCloseButto
30
31
  <div className={clsx(modalContentRecipe({ align }), className)}>
31
32
  {withCloseButton && (
32
33
  <button type="button" aria-label="Close modal" className={modalContentCloseButton} onClick={() => setIsOpen(false)}>
33
- <Icon icon="close" />
34
+ <Icon icon="close" color={themeContract.modal.closeButtonColor} />
34
35
  </button>
35
36
  )}
36
37
  {children}
@@ -18,6 +18,7 @@ export const themeModalLight = {
18
18
  modal: {
19
19
  ...themeModalBase.modal,
20
20
  backgroundColor: '#000000',
21
+ closeButtonColor: '#000000',
21
22
  overlayBackgroundColor: '#000000',
22
23
  },
23
24
  };
@@ -26,6 +27,7 @@ export const themeModalDark = {
26
27
  modal: {
27
28
  ...themeModalBase.modal,
28
29
  backgroundColor: '#000000',
30
+ closeButtonColor: '#000000',
29
31
  overlayBackgroundColor: '#000000',
30
32
  },
31
33
  };
@@ -545,6 +545,7 @@ export const themeContract = createGlobalThemeContract({
545
545
  overlayBlur: 'latte-modal-overlayBlur',
546
546
  overlayBackgroundColor: 'latte-modal-overlayBackgroundColor',
547
547
 
548
+ closeButtonColor: 'latte-modal-closeButtonColor',
548
549
  closeButtonRightPosition: {
549
550
  mobile: 'latte-modal-closeButtonRightPosition-mobile',
550
551
  sm: 'latte-modal-closeButtonRightPosition-sm',