paris 0.4.2 → 0.4.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # paris
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 49f9ee4: Prop typing fixes
8
+
3
9
  ## 0.4.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "paris",
3
3
  "author": "Sanil Chawla <sanil@slingshot.fm> (https://sanil.co)",
4
4
  "description": "Paris is Slingshot's React design system. It's a collection of reusable components, design tokens, and guidelines that help us build consistent, accessible, and performant user interfaces.",
5
- "version": "0.4.2",
5
+ "version": "0.4.3",
6
6
  "homepage": "https://paris.slingshot.fm",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -65,7 +65,7 @@ export type ButtonProps = {
65
65
  *
66
66
  * This should be text. When Button shape is `circle` or `square`, the action description should still be passed here for screen readers.
67
67
  */
68
- children: string;
68
+ children: ReactNode | ReactNode[];
69
69
  } & Omit<AriaButtonProps, 'children' | 'disabled' | 'onClick'>;
70
70
 
71
71
  /**
@@ -105,7 +105,7 @@ export const Button: FC<ButtonProps> = ({
105
105
  )}
106
106
  aria-disabled={disabled ?? false}
107
107
  type={type}
108
- aria-details={children}
108
+ aria-details={typeof children === 'string' ? children : undefined}
109
109
  onClick={!disabled && !href ? onClick : () => {}}
110
110
  disabled={false}
111
111
  {...href ? {
@@ -1,4 +1,4 @@
1
- import type { FC } from 'react';
1
+ import type { FC, ReactNode } from 'react';
2
2
  import { useId } from 'react';
3
3
  import * as RadixCheckbox from '@radix-ui/react-checkbox';
4
4
  import styles from './Checkbox.module.scss';
@@ -9,7 +9,7 @@ export type CheckboxProps = {
9
9
  onChange?: (checked: boolean | 'indeterminate') => void;
10
10
  disabled?: boolean;
11
11
  /** The contents of the Checkbox. */
12
- children?: string;
12
+ children?: ReactNode | ReactNode[];
13
13
  };
14
14
 
15
15
  /**