@dktunited-techoff/techoff-suite-ui 1.4.3 → 1.4.4

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.
@@ -15,6 +15,9 @@
15
15
  .ts-button > div:last-child {
16
16
  margin-right: 0px;
17
17
  }
18
+ button:disabled {
19
+ cursor: not-allowed;
20
+ }
18
21
  /* ####### */
19
22
  /* BLOCK */
20
23
  .ts-button--block {
@@ -40,34 +43,61 @@
40
43
  }
41
44
  /* ########## */
42
45
  /* VARIANTS */
43
- .ts-button--primary {
46
+ .ts-button--primary:not(:disabled) {
44
47
  background: #3643ba;
45
48
  color: #ffffff;
46
49
  }
47
- /* .ts-button--primary:hover {
48
- background: #00689d;
49
- } */
50
- .ts-button--secondary {
50
+ .ts-button--primary:not(:disabled):hover {
51
+ background: #2e3998;
52
+ }
53
+ .ts-button--primary:not(:disabled):active {
54
+ background: #272f76;
55
+ }
56
+ .ts-button--primary:disabled {
57
+ background: #3643ba61;
58
+ color: #ffffff;
59
+ }
60
+ .ts-button--secondary:not(:disabled) {
51
61
  background: #ebecf7;
52
62
  color: #3643ba;
53
63
  }
54
- /* .ts-button--secondary:hover {
55
- background: #bedeef;
56
- } */
57
- .ts-button--success {
64
+ .ts-button--secondary:not(:disabled):hover {
65
+ background: #e3e3f4;
66
+ }
67
+ .ts-button--secondary:not(:disabled):active {
68
+ background: #d7daf1;
69
+ }
70
+ .ts-button--secondary:disabled {
71
+ background: #3643ba0d;
72
+ color: #3643ba80;
73
+ }
74
+ .ts-button--success:not(:disabled) {
58
75
  background: #02be8a;
59
76
  color: #ffffff;
60
77
  }
61
- .ts-button--success:hover {
78
+ .ts-button--success:not(:disabled):hover {
62
79
  background: #029e73;
80
+ }
81
+ .ts-button--success:not(:disabled):active {
82
+ background: #017f5c;
83
+ }
84
+ .ts-button--success:disabled {
85
+ background: #02be8a61;
63
86
  color: #ffffff;
64
87
  }
65
- .ts-button--ghost {
88
+ .ts-button--ghost:not(:disabled) {
66
89
  background: #ffffff;
67
90
  color: #1d1d1b;
68
91
  }
69
- .ts-button--ghost:hover {
70
- background: #ebecf7;
92
+ .ts-button--ghost:not(:disabled):hover {
93
+ background: #ebecf8;
94
+ }
95
+ .ts-button--ghost:not(:disabled):active {
96
+ background: #d7daf1;
97
+ }
98
+ .ts-button--ghost:disabled {
99
+ background: #ffffff61;
100
+ color: #1d1d1b61;
71
101
  }
72
102
  .ts-button--shadow {
73
103
  box-shadow: 0px 12px 12px 0px #00537d1a;
@@ -38,6 +38,11 @@ export const buttonArgTypes = {
38
38
  description: 'Define if the button is full width',
39
39
  table: { defaultValue: { summary: 'false' } },
40
40
  },
41
+ disabled: {
42
+ control: 'boolean',
43
+ description: 'Define if the button is disabled',
44
+ table: { defaultValue: { summary: 'false' } },
45
+ },
41
46
  rounded: {
42
47
  control: 'boolean',
43
48
  description: 'Define if the button has its corner full rounded',
@@ -60,6 +65,7 @@ Buttons express what action will occur when the users clicks. Buttons are used t
60
65
  size: 'md',
61
66
  variant: 'primary',
62
67
  block: false,
68
+ disabled: false,
63
69
  rounded: false,
64
70
  onClick: () => {},
65
71
  }}
@@ -15,6 +15,9 @@
15
15
  .ts-button > div:last-child {
16
16
  margin-right: 0px;
17
17
  }
18
+ button:disabled {
19
+ cursor: not-allowed;
20
+ }
18
21
  /* ####### */
19
22
  /* BLOCK */
20
23
  .ts-button--block {
@@ -40,34 +43,61 @@
40
43
  }
41
44
  /* ########## */
42
45
  /* VARIANTS */
43
- .ts-button--primary {
46
+ .ts-button--primary:not(:disabled) {
44
47
  background: #3643ba;
45
48
  color: #ffffff;
46
49
  }
47
- /* .ts-button--primary:hover {
48
- background: #00689d;
49
- } */
50
- .ts-button--secondary {
50
+ .ts-button--primary:not(:disabled):hover {
51
+ background: #2e3998;
52
+ }
53
+ .ts-button--primary:not(:disabled):active {
54
+ background: #272f76;
55
+ }
56
+ .ts-button--primary:disabled {
57
+ background: #3643ba61;
58
+ color: #ffffff;
59
+ }
60
+ .ts-button--secondary:not(:disabled) {
51
61
  background: #ebecf7;
52
62
  color: #3643ba;
53
63
  }
54
- /* .ts-button--secondary:hover {
55
- background: #bedeef;
56
- } */
57
- .ts-button--success {
64
+ .ts-button--secondary:not(:disabled):hover {
65
+ background: #e3e3f4;
66
+ }
67
+ .ts-button--secondary:not(:disabled):active {
68
+ background: #d7daf1;
69
+ }
70
+ .ts-button--secondary:disabled {
71
+ background: #3643ba0d;
72
+ color: #3643ba80;
73
+ }
74
+ .ts-button--success:not(:disabled) {
58
75
  background: #02be8a;
59
76
  color: #ffffff;
60
77
  }
61
- .ts-button--success:hover {
78
+ .ts-button--success:not(:disabled):hover {
62
79
  background: #029e73;
80
+ }
81
+ .ts-button--success:not(:disabled):active {
82
+ background: #017f5c;
83
+ }
84
+ .ts-button--success:disabled {
85
+ background: #02be8a61;
63
86
  color: #ffffff;
64
87
  }
65
- .ts-button--ghost {
88
+ .ts-button--ghost:not(:disabled) {
66
89
  background: #ffffff;
67
90
  color: #1d1d1b;
68
91
  }
69
- .ts-button--ghost:hover {
70
- background: #ebecf7;
92
+ .ts-button--ghost:not(:disabled):hover {
93
+ background: #ebecf8;
94
+ }
95
+ .ts-button--ghost:not(:disabled):active {
96
+ background: #d7daf1;
97
+ }
98
+ .ts-button--ghost:disabled {
99
+ background: #ffffff61;
100
+ color: #1d1d1b61;
71
101
  }
72
102
  .ts-button--shadow {
73
103
  box-shadow: 0px 12px 12px 0px #00537d1a;
@@ -38,6 +38,11 @@ export const buttonArgTypes = {
38
38
  description: 'Define if the button is full width',
39
39
  table: { defaultValue: { summary: 'false' } },
40
40
  },
41
+ disabled: {
42
+ control: 'boolean',
43
+ description: 'Define if the button is disabled',
44
+ table: { defaultValue: { summary: 'false' } },
45
+ },
41
46
  rounded: {
42
47
  control: 'boolean',
43
48
  description: 'Define if the button has its corner full rounded',
@@ -60,6 +65,7 @@ Buttons express what action will occur when the users clicks. Buttons are used t
60
65
  size: 'md',
61
66
  variant: 'primary',
62
67
  block: false,
68
+ disabled: false,
63
69
  rounded: false,
64
70
  onClick: () => {},
65
71
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dktunited-techoff/techoff-suite-ui",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib",
6
6
  "module": "esm/index.js",
@@ -15,6 +15,9 @@
15
15
  .ts-button > div:last-child {
16
16
  margin-right: 0px;
17
17
  }
18
+ button:disabled {
19
+ cursor: not-allowed;
20
+ }
18
21
  /* ####### */
19
22
  /* BLOCK */
20
23
  .ts-button--block {
@@ -40,34 +43,61 @@
40
43
  }
41
44
  /* ########## */
42
45
  /* VARIANTS */
43
- .ts-button--primary {
46
+ .ts-button--primary:not(:disabled) {
44
47
  background: #3643ba;
45
48
  color: #ffffff;
46
49
  }
47
- /* .ts-button--primary:hover {
48
- background: #00689d;
49
- } */
50
- .ts-button--secondary {
50
+ .ts-button--primary:not(:disabled):hover {
51
+ background: #2e3998;
52
+ }
53
+ .ts-button--primary:not(:disabled):active {
54
+ background: #272f76;
55
+ }
56
+ .ts-button--primary:disabled {
57
+ background: #3643ba61;
58
+ color: #ffffff;
59
+ }
60
+ .ts-button--secondary:not(:disabled) {
51
61
  background: #ebecf7;
52
62
  color: #3643ba;
53
63
  }
54
- /* .ts-button--secondary:hover {
55
- background: #bedeef;
56
- } */
57
- .ts-button--success {
64
+ .ts-button--secondary:not(:disabled):hover {
65
+ background: #e3e3f4;
66
+ }
67
+ .ts-button--secondary:not(:disabled):active {
68
+ background: #d7daf1;
69
+ }
70
+ .ts-button--secondary:disabled {
71
+ background: #3643ba0d;
72
+ color: #3643ba80;
73
+ }
74
+ .ts-button--success:not(:disabled) {
58
75
  background: #02be8a;
59
76
  color: #ffffff;
60
77
  }
61
- .ts-button--success:hover {
78
+ .ts-button--success:not(:disabled):hover {
62
79
  background: #029e73;
80
+ }
81
+ .ts-button--success:not(:disabled):active {
82
+ background: #017f5c;
83
+ }
84
+ .ts-button--success:disabled {
85
+ background: #02be8a61;
63
86
  color: #ffffff;
64
87
  }
65
- .ts-button--ghost {
88
+ .ts-button--ghost:not(:disabled) {
66
89
  background: #ffffff;
67
90
  color: #1d1d1b;
68
91
  }
69
- .ts-button--ghost:hover {
70
- background: #ebecf7;
92
+ .ts-button--ghost:not(:disabled):hover {
93
+ background: #ebecf8;
94
+ }
95
+ .ts-button--ghost:not(:disabled):active {
96
+ background: #d7daf1;
97
+ }
98
+ .ts-button--ghost:disabled {
99
+ background: #ffffff61;
100
+ color: #1d1d1b61;
71
101
  }
72
102
  .ts-button--shadow {
73
103
  box-shadow: 0px 12px 12px 0px #00537d1a;
@@ -38,6 +38,11 @@ export const buttonArgTypes = {
38
38
  description: 'Define if the button is full width',
39
39
  table: { defaultValue: { summary: 'false' } },
40
40
  },
41
+ disabled: {
42
+ control: 'boolean',
43
+ description: 'Define if the button is disabled',
44
+ table: { defaultValue: { summary: 'false' } },
45
+ },
41
46
  rounded: {
42
47
  control: 'boolean',
43
48
  description: 'Define if the button has its corner full rounded',
@@ -60,6 +65,7 @@ Buttons express what action will occur when the users clicks. Buttons are used t
60
65
  size: 'md',
61
66
  variant: 'primary',
62
67
  block: false,
68
+ disabled: false,
63
69
  rounded: false,
64
70
  onClick: () => {},
65
71
  }}