@atom-learning/components 1.7.0 → 1.7.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/CHANGELOG.md +0 -7
- package/dist/components/file-input/FileInput.d.ts +8 -0
- package/dist/components/file-input/FileInput.js +1 -0
- package/dist/components/file-input/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/docgen.json +1 -1
- package/dist/docs/FileInput.mdx +45 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
# [1.7.0](https://github.com/Atom-Learning/components/compare/v1.6.7...v1.7.0) (2022-04-11)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* add semantic release ([#317](https://github.com/Atom-Learning/components/issues/317)) ([ee23573](https://github.com/Atom-Learning/components/commit/ee23573740c9a395160c34dac79f9465841c0f1b))
|
|
7
|
-
|
|
8
1
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
9
2
|
|
|
10
3
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledButton } from '../button';
|
|
3
|
+
export declare type FileInputProps = React.FC<typeof StyledButton & {
|
|
4
|
+
accept?: string;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
onSelect: (selection: FileList | null) => void;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const FileInput: FileInputProps;
|
|
@@ -0,0 +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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileInput } from './FileInput';
|
|
@@ -21,6 +21,7 @@ export { Heading } from './heading';
|
|
|
21
21
|
export { Icon } from './icon';
|
|
22
22
|
export { Image } from './image';
|
|
23
23
|
export { Input } from './input';
|
|
24
|
+
export { FileInput } from './file-input';
|
|
24
25
|
export { InputField } from './input-field';
|
|
25
26
|
export { Label } from './label';
|
|
26
27
|
export { Link, StyledLink } from './link';
|