@atom-learning/components 1.7.2 → 1.7.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,9 +1,9 @@
1
- ## [1.7.2](https://github.com/Atom-Learning/components/compare/v1.7.1...v1.7.2) (2022-04-13)
1
+ ## [1.7.3](https://github.com/Atom-Learning/components/compare/v1.7.2...v1.7.3) (2022-04-13)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * showing toast on top of modal overlay ([2413824](https://github.com/Atom-Learning/components/commit/2413824f3220e6888373e048c925b7454b2fbe77))
6
+ * file input using wrong icon and spacing ([b1a0c2e](https://github.com/Atom-Learning/components/commit/b1a0c2e74301caa9b8f3c900f4fbee21ad555ae9))
7
7
 
8
8
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
9
9
 
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { StyledButton } from '../button';
3
- export declare type FileInputProps = React.FC<typeof StyledButton & {
2
+ import { Button } from '../button';
3
+ export declare type FileInputProps = React.ComponentProps<typeof Button> & {
4
+ onSelect: (selection: FileList | null) => void;
4
5
  accept?: string;
5
6
  multiple?: boolean;
6
- onSelect: (selection: FileList | null) => void;
7
- }>;
8
- export declare const FileInput: FileInputProps;
7
+ };
8
+ export declare const FileInput: React.FC<FileInputProps>;
@@ -1 +1 @@
1
- import{Download as s}from"@atom-learning/icons";import{createElement as e}from"react";import{Button as f}from"../button/Button.js";import{Icon as c}from"../icon/Icon.js";const t=({accept:o,children:n,multiple:r=!1,onSelect:i,...l})=>{const a=m=>{const{files:p}=m.target;i(p)};return e(f,{as:"label",...l},e("input",{type:"file",onChange:a,accept:o,multiple:r,hidden:!0}),e(c,{is:s}),n)};t.displayName="FileInput";export{t as FileInput};
1
+ import{Upload as s}from"@atom-learning/icons";import{createElement as e}from"react";import{Button as f}from"../button/Button.js";import{Icon as c}from"../icon/Icon.js";const t=({accept:o,children:n,multiple:r=!1,onSelect:i,...l})=>{const p=a=>{const{files:m}=a.target;i(m)};return e(f,{as:"label",...l},e(c,{is:s}),n,e("input",{type:"file",onChange:p,accept:o,multiple:r,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};