@moda/om 16.1.0 → 16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda/om",
3
- "version": "16.1.0",
3
+ "version": "16.1.1",
4
4
  "description": "Moda Operandi design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -18,8 +18,8 @@ export const Default = () => (
18
18
  { children: 'Remember me', checked: true },
19
19
  { children: 'Disabled', disabled: true },
20
20
  { children: 'Disabled', checked: true, disabled: true },
21
- { children: 'Filtering/Circle', showCheckedUsing: 'circle' },
22
- { children: 'Disabled', showCheckedUsing: 'circle', checked: true, disabled: true },
21
+ { children: 'Filtering/Circle', checkIcon: 'circle' },
22
+ { children: 'Disabled', checkIcon: 'circle', checked: true, disabled: true },
23
23
  { children: <Text color='code-red'>Important!</Text> }
24
24
  ]}
25
25
  >
@@ -15,7 +15,7 @@ export type ShowCheckedUsing = 'checkmark' | 'circle';
15
15
 
16
16
  export type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
17
17
  children?: JSX.Element | string;
18
- showCheckedUsing?: ShowCheckedUsing;
18
+ checkIcon?: ShowCheckedUsing;
19
19
  };
20
20
 
21
21
  export const Checkbox: React.FC<CheckboxProps> = ({
@@ -26,7 +26,7 @@ export const Checkbox: React.FC<CheckboxProps> = ({
26
26
  value,
27
27
  onChange,
28
28
  disabled,
29
- showCheckedUsing = 'checkmark',
29
+ checkIcon = 'checkmark',
30
30
  ...rest
31
31
  }) => {
32
32
  const [isChecked, setIsChecked] = useState(checked ?? defaultChecked ?? false);
@@ -59,9 +59,9 @@ export const Checkbox: React.FC<CheckboxProps> = ({
59
59
  >
60
60
  {isChecked && (
61
61
  <>
62
- {showCheckedUsing === 'checkmark' && <CheckmarkIcon {...CHECKED_ITEM_PROPS} />}
62
+ {checkIcon === 'checkmark' && <CheckmarkIcon {...CHECKED_ITEM_PROPS} />}
63
63
 
64
- {showCheckedUsing === 'circle' && <CircleIcon {...CHECKED_ITEM_PROPS} />}
64
+ {checkIcon === 'circle' && <CircleIcon {...CHECKED_ITEM_PROPS} />}
65
65
  </>
66
66
  )}
67
67
  </span>