@nimbus-ds/checkbox 1.1.0 → 1.2.0

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  The Checkbox component allows us to choose one or several options from a selection list.
4
4
 
5
+ ## 2022-09-27
6
+
7
+ ### 💡 Others
8
+
9
+ - Adjusted component native typing for InputHTMLAttributes. ([#30](https://github.com/TiendaNube/nimbus-design-system/pull/30) by [@juniorconquista](https://github.com/juniorconquista))
10
+
5
11
  ## 2022-09-24
6
12
 
7
13
  ### 💡 Others
package/README.md CHANGED
@@ -48,14 +48,6 @@ To facilitate navigation for people with some kind of visual or cognitive limita
48
48
 
49
49
  Radio Button - Can be used to select options in settings or filters, where only a single choice is allowed.
50
50
 
51
- ## Implementation
52
-
53
- **Install** the component via terminal.
54
-
55
- ```bash
56
- npm install @nimbus-ds/checkbox
57
- ```
58
-
59
51
  ## Usage
60
52
 
61
53
  View docs [here](https://nimbus.nuvemshop.com.br/documentation/atomic-components/checkbox).
@@ -1,9 +1,9 @@
1
- import { HTMLAttributes } from "react";
1
+ import { InputHTMLAttributes } from "react";
2
2
  import { Skeleton } from "./components";
3
3
  export interface CheckboxComponents {
4
4
  Skeleton: typeof Skeleton;
5
5
  }
6
- export interface CheckboxProps extends HTMLAttributes<HTMLInputElement> {
6
+ export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
7
7
  /** Checkbox name */
8
8
  name: string;
9
9
  /** Checkbox color */
@@ -2,4 +2,4 @@ import React from "react";
2
2
  import { ComponentMeta, ComponentStory } from "@storybook/react";
3
3
  declare const _default: ComponentMeta<React.FC<import("./skeleton.types").SkeletonProps>>;
4
4
  export default _default;
5
- export declare const Label: ComponentStory<React.FC<import("./skeleton.types").SkeletonProps>>;
5
+ export declare const checkbox: ComponentStory<React.FC<import("./skeleton.types").SkeletonProps>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/checkbox",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@nimbus-ds/icon": "1.2.0",
22
22
  "@nimbus-ds/skeleton": "1.1.0",
23
- "@nimbus-ds/styles": "3.0.0",
23
+ "@nimbus-ds/styles": "3.1.0",
24
24
  "@nimbus-ds/text": "4.0.0"
25
25
  },
26
26
  "peerDependencies": {