@ama-pt/agora-design-system 0.1.6 → 0.1.7

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.
@@ -20,19 +20,18 @@ export * from './string-to-boolean';
20
20
  export declare function stringToBoolean(value: boolean | string | 'true' | 'false' | undefined): boolean;
21
21
 
22
22
  import React, { ReactNode } from 'react';
23
- import { ButtonAppearence, ButtonSizes, ButtonVariant } from './types';
24
23
  import './button.scss';
25
24
  export interface ButtonProps extends React.ComponentPropsWithRef<'button'> {
26
25
  /**
27
- * The Button appearence.
26
+ * The Button appearence. Define the Button Shape.
28
27
  * @defaultValue 'solid'
29
28
  */
30
- appearence?: ButtonAppearence;
29
+ appearence?: 'solid' | 'outline' | 'link';
31
30
  /**
32
- * The variant of the button.
31
+ * The variant of the button. This variants will define the background and border color of the given Button.
33
32
  * @defaultValue 'primary'
34
33
  */
35
- variant?: ButtonVariant;
34
+ variant?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'neutral' | 'white';
36
35
  /**
37
36
  * Indicates if this Button should be fluid.
38
37
  * @defaultValue 'false'
@@ -42,7 +41,7 @@ export interface ButtonProps extends React.ComponentPropsWithRef<'button'> {
42
41
  * Indicates the size of the Button.
43
42
  * @defaultValue 'default'
44
43
  */
45
- size?: ButtonSizes;
44
+ size?: 'default' | 'small';
46
45
  /**
47
46
  * Indicates if this Button will have any icon.
48
47
  * @defaultValue false
@@ -85,25 +84,6 @@ export default MemoButton;
85
84
 
86
85
  export { Button } from './button';
87
86
 
88
- /**
89
- * Button Variants, this variants will define the background and border color
90
- * of the given Button.
91
- */
92
- export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'neutral' | 'white';
93
- /**
94
- * Define the button Size.
95
- */
96
- export type ButtonSizes = 'default' | 'small';
97
- /**
98
- * Define the Button Shape.
99
- */
100
- export type ButtonAppearence = 'solid' | 'outline' | 'link';
101
- export type IconWrapperType = {
102
- icon: string;
103
- iconHover: string;
104
- iconAltText?: string;
105
- };
106
-
107
87
  import React from 'react';
108
88
  import './checkbox.scss';
109
89
  export interface CheckboxProps extends React.ComponentPropsWithRef<'input'> {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ama-pt/agora-design-system",
3
3
  "description": "Ágora Design system",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "module": "dist/components/index.js",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "files": [
@@ -1 +0,0 @@
1
- export {};