Skip to content

Commit

Permalink
Merge pull request #3 from ApptiveDev/develop/publish
Browse files Browse the repository at this point in the history
Develop/publish
  • Loading branch information
cla6shade authored Oct 1, 2024
2 parents 0327bfb + d7d03b2 commit 93736ac
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@apptivedev/apptive-passport-design",
"name": "@apptive-dev/apptive-passport-design",
"version": "0.1.0",
"type": "module",
"main": "dist/apptive-passport-design.umd.cjs",
"module": "dist/apptive-passport-design.js",
"types:": "dist/index.d.ts",
"main": "apptive-passport-design.umd.cjs",
"module": "apptive-passport-design.js",
"types": "index.d.ts",
"files": [
"dist"
],
Expand Down
6 changes: 3 additions & 3 deletions src/components/checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import { InputHTMLAttributes } from 'react';
import { CSSObject } from '@emotion/react';
import useCheckboxStyle from '@components/checkbox/useCheckboxStyle';

interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
type?: 'checkbox';
css?: CSSObject;
defaultChecked?: boolean;
checked?: boolean;
}

function Radio({ type = 'checkbox', ...rest }: RadioProps) {
function Checkbox({ type = 'checkbox', ...rest }: CheckboxProps) {
const { checkboxStyle } = useCheckboxStyle();

return (
<input type={type} css={checkboxStyle} {...rest} />
);
}

export default Radio;
export default Checkbox;
17 changes: 16 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import Button from '@components/button';
import Checkbox from '@components/checkbox';
import Radio from '@components/radio';
import Input from '@components/input';
import Select from '@components/select';
import Switch from '@components/switch';
import Tag from '@components/tag';
import TextArea from '@components/textarea';
import Label from '@components/label';

export {
// eslint-disable-next-line import/prefer-default-export
Button,
Checkbox,
Radio,
Input,
Select,
Switch,
Tag,
TextArea,
Label,
};
3 changes: 2 additions & 1 deletion tsconfig.dts.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"emitDeclarationOnly": true,
"outDir": "dist",
},
"include": ["src"]
"include": ["src"],
"exclude": ["**/*.stories.*"],
}
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ __metadata:
languageName: node
linkType: hard

"@apptivedev/apptive-passport-design@workspace:.":
"@apptive-dev/apptive-passport-design@workspace:.":
version: 0.0.0-use.local
resolution: "@apptivedev/apptive-passport-design@workspace:."
resolution: "@apptive-dev/apptive-passport-design@workspace:."
dependencies:
"@chromatic-com/storybook": "npm:1.9.0"
"@emotion/react": "npm:^11.13.3"
Expand Down

0 comments on commit 93736ac

Please sign in to comment.