sag_components 1.0.2 → 1.0.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.
@@ -21,12 +21,12 @@ var _default = {
21
21
  description: "text inside of the button",
22
22
  defaultValue: ""
23
23
  },
24
- style: {
24
+ shape: {
25
25
  control: {
26
26
  type: "radio"
27
27
  },
28
28
  options: ["contained", "outlined", "text"],
29
- description: "style of the button"
29
+ description: "shape of the button"
30
30
  },
31
31
  size: {
32
32
  control: {
@@ -57,7 +57,7 @@ var SmallContainedStyle = Template.bind({});
57
57
  exports.SmallContainedStyle = SmallContainedStyle;
58
58
  SmallContainedStyle.args = {
59
59
  text: "Confirm",
60
- style: "contained",
60
+ shape: "contained",
61
61
  size: "small",
62
62
  disabled: false
63
63
  };
@@ -66,7 +66,7 @@ exports.DisabledContainedStyle = DisabledContainedStyle;
66
66
  DisabledContainedStyle.args = {
67
67
  size: "small",
68
68
  text: "Confirm",
69
- style: "contained",
69
+ shape: "contained",
70
70
  disabled: true
71
71
  };
72
72
  var MediumOutlinedStyle = Template.bind({});
@@ -74,7 +74,7 @@ exports.MediumOutlinedStyle = MediumOutlinedStyle;
74
74
  MediumOutlinedStyle.args = {
75
75
  text: "Confirm",
76
76
  size: "medium",
77
- style: "outlined",
77
+ shape: "outlined",
78
78
  disabled: false
79
79
  };
80
80
  var LargeTextStyle = Template.bind({});
@@ -82,6 +82,6 @@ exports.LargeTextStyle = LargeTextStyle;
82
82
  LargeTextStyle.args = {
83
83
  text: "Confirm",
84
84
  size: "large",
85
- style: "text",
85
+ shape: "text",
86
86
  disabled: false
87
87
  };
@@ -10,10 +10,10 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _Button = _interopRequireDefault(require("@mui/material/Button"));
12
12
  var _Stack = _interopRequireDefault(require("@mui/material/Stack"));
13
- var _excluded = ["text", "style", "size", "disabled", "onClick"];
13
+ var _excluded = ["text", "shape", "size", "disabled", "onClick"];
14
14
  var Button = function Button(_ref) {
15
15
  var text = _ref.text,
16
- style = _ref.style,
16
+ shape = _ref.shape,
17
17
  size = _ref.size,
18
18
  disabled = _ref.disabled,
19
19
  _onClick = _ref.onClick,
@@ -25,7 +25,7 @@ var Button = function Button(_ref) {
25
25
  sx: {
26
26
  textTransform: 'none'
27
27
  },
28
- variant: style,
28
+ variant: shape,
29
29
  size: size,
30
30
  disabled: disabled ? true : false,
31
31
  onClick: function onClick(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -15,10 +15,10 @@ export default {
15
15
  defaultValue: "",
16
16
  },
17
17
 
18
- style: {
18
+ shape: {
19
19
  control: { type: "radio" },
20
20
  options: ["contained", "outlined", "text"],
21
- description: "style of the button",
21
+ description: "shape of the button",
22
22
  },
23
23
 
24
24
  size: {
@@ -46,7 +46,7 @@ const Template = (args) => <Button {...args} />;
46
46
  export const SmallContainedStyle = Template.bind({});
47
47
  SmallContainedStyle.args = {
48
48
  text: "Confirm",
49
- style: "contained",
49
+ shape: "contained",
50
50
  size: "small",
51
51
  disabled: false,
52
52
  };
@@ -56,7 +56,7 @@ export const DisabledContainedStyle = Template.bind({});
56
56
  DisabledContainedStyle.args = {
57
57
  size: "small",
58
58
  text: "Confirm",
59
- style: "contained",
59
+ shape: "contained",
60
60
  disabled: true,
61
61
  };
62
62
 
@@ -64,7 +64,7 @@ export const MediumOutlinedStyle = Template.bind({});
64
64
  MediumOutlinedStyle.args = {
65
65
  text: "Confirm",
66
66
  size: "medium",
67
- style: "outlined",
67
+ shape: "outlined",
68
68
  disabled: false,
69
69
  };
70
70
 
@@ -73,7 +73,7 @@ export const LargeTextStyle = Template.bind({});
73
73
  LargeTextStyle.args = {
74
74
  text: "Confirm",
75
75
  size: "large",
76
- style: "text",
76
+ shape: "text",
77
77
  disabled: false,
78
78
  };
79
79
 
@@ -2,13 +2,13 @@ import * as React from "react";
2
2
  import MUIButton from "@mui/material/Button";
3
3
  import Stack from "@mui/material/Stack";
4
4
 
5
- export const Button = ({text, style, size, disabled, onClick, ...props}) => {
5
+ export const Button = ({text, shape, size, disabled, onClick, ...props}) => {
6
6
 
7
7
  return (
8
8
  <Stack direction="row" spacing={2}>
9
9
  <MUIButton
10
10
  sx={{ textTransform: 'none'}}
11
- variant={style}
11
+ variant={shape}
12
12
  size={size}
13
13
  disabled={disabled ? true : false}
14
14
  onClick={(event) => {
package/decs.d.ts DELETED
File without changes
package/src/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export function Button({ text, style, size, disabled, onClick, ...props }: {
2
- [x: string]: any;
3
- text: any;
4
- style: any;
5
- size: any;
6
- disabled: any;
7
- onClick: any;
8
- }): any;
9
- export default Button;
10
-
package/tsconfig.json DELETED
File without changes