toggle-components-library 1.33.0-beta.8 → 1.33.0-beta.9

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.
@@ -16,38 +16,37 @@ table.toggle-table {
16
16
  border-radius:0;
17
17
  border:none;
18
18
  .toggle-input{
19
- margin-top:11px;
20
- padding:1px 3px 1px 3px;
21
- font-size:14px;
22
- height:1.5rem;
19
+ margin-top:11px;
20
+ padding:1px 3px 1px 3px;
21
+ font-size:14px;
22
+ height:1.5rem;
23
23
  }
24
24
  .toggle-input-label{
25
- display: none;
25
+ display: none;
26
26
  }
27
27
  .toggle-date-input-container{
28
- .toggle-date-input-calendar-icon{
29
- .toggle-input{
30
- background:transparent;
31
- padding:3px 1rem 3px 0.1rem;
32
- margin-top: 10px;
33
- }
34
- }
35
- .toggle-clear{
36
- display: none;
28
+ .toggle-date-input-calendar-icon{
29
+ .toggle-input{
30
+ background:transparent;
31
+ padding:3px 1rem 3px 0.1rem;
32
+ margin-top: 10px;
37
33
  }
34
+ }
35
+ .toggle-clear{
36
+ display: none;
37
+ }
38
38
  }
39
39
 
40
40
  }
41
41
 
42
42
  thead {
43
43
  th.toggle-table-th {
44
- //padding: 0 10px 20px 0;
45
44
  padding: 0;
46
45
  border: none;
47
46
  text-align: left;
48
- @include toggle-global-font-config;
49
- font-weight: bold;
50
- font-size: $toggle-font-size-small;
47
+ @include toggle-global-font-config;
48
+ font-weight: bold;
49
+ font-size: $toggle-font-size-small;
51
50
 
52
51
  &:hover {
53
52
  .search {
@@ -76,7 +75,6 @@ table.toggle-table {
76
75
  text-indent: 1px;
77
76
  text-overflow: '';
78
77
 
79
- //background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
80
78
  background-size: 15px;
81
79
  padding : 0.5rem 0rem 0.5rem 1rem;
82
80
  }
@@ -98,52 +96,52 @@ table.toggle-table {
98
96
  }
99
97
 
100
98
  td.toggle-tablee-td {
101
- @include toggle-global-font-config;
99
+ @include toggle-global-font-config;
102
100
 
103
- font-size: $toggle-font-size-small;
104
- padding: 1rem 0;
105
- padding-left:1rem;
101
+ font-size: $toggle-font-size-small;
102
+ padding: 1rem 0;
103
+ padding-left:1rem;
106
104
 
107
- cursor: pointer;
108
- vertical-align: middle;
109
- text-overflow: ellipsis;
110
- overflow: hidden;
111
- max-width: 80px;
112
- border: none;
113
- text-align: left;
105
+ cursor: pointer;
106
+ vertical-align: middle;
107
+ text-overflow: ellipsis;
108
+ overflow: hidden;
109
+ max-width: 80px;
110
+ border: none;
111
+ text-align: left;
114
112
 
115
- &:has(.toggle-three-dots-container) {
116
- overflow: inherit;
117
- text-align: right;
118
- }
113
+ &:has(.toggle-three-dots-container) {
114
+ overflow: inherit;
115
+ text-align: right;
116
+ }
119
117
  }
120
118
 
121
119
 
122
120
  tr.toggle-tablee-tr {
123
121
 
124
- &:hover {
125
- background-color: #FFF;
126
- .arrow-order {
127
- display: block;
128
- }
129
- }
130
- td.toggle-tablee-td:first-child {
131
- border-top-left-radius: 10px;
132
- border-bottom-left-radius: 10px;
122
+ &:hover {
123
+ background-color: #FFF;
124
+ .arrow-order {
125
+ display: block;
133
126
  }
127
+ }
128
+ td.toggle-tablee-td:first-child {
129
+ border-top-left-radius: 10px;
130
+ border-bottom-left-radius: 10px;
131
+ }
134
132
 
135
- td.toggle-tablee-td:last-child {
136
- border-top-right-radius: 10px;
137
- border-bottom-right-radius: 10px;
138
- }
133
+ td.toggle-tablee-td:last-child {
134
+ border-top-right-radius: 10px;
135
+ border-bottom-right-radius: 10px;
136
+ }
139
137
 
140
- td.toggle-tablee-td {
141
- .toggle-button {
142
- &.neutral {
143
- padding: 0.2rem 0.9rem 0.2rem 0.9rem;
144
- }
145
- }
138
+ td.toggle-tablee-td {
139
+ .toggle-button {
140
+ &.neutral {
141
+ padding: 0.2rem 0.9rem 0.2rem 0.9rem;
142
+ }
146
143
  }
144
+ }
147
145
 
148
146
 
149
147
  }
@@ -152,13 +150,13 @@ table.toggle-table {
152
150
 
153
151
  .toggle-date-input-calendar-icon{
154
152
  &:after{
155
- content: '';
153
+ content: '';
156
154
  }
157
155
  .toggle-input{
158
- font-size: 12px;
159
- padding-right:0px !important;
156
+ font-size: 12px;
157
+ padding-right:0px !important;
160
158
  }
161
- }
159
+ }
162
160
 
163
161
  }
164
162
 
@@ -166,141 +164,141 @@ table.toggle-table {
166
164
 
167
165
 
168
166
  .toggle-table-any-search-active {
169
- .toggle-table-th-inner {
170
- height:74px;
171
- }
167
+ .toggle-table-th-inner {
168
+ height:74px;
169
+ }
172
170
  }
173
171
  .toggle-table-th-inner {
174
- line-height: 1em;
175
- position: relative;
176
- display: block;
177
- height: 50px;
178
- margin: 0 4px 8px 4px;
179
- padding: 10px;
180
- border:1px solid transparent;
181
- border-radius: 4px;
182
- box-sizing:border-box;
183
- transition: height .5s;
184
-
185
- .toggle-table-search-active & {
186
- z-index: 25;
187
- //overflow: hidden;
188
- background-color: white;
189
- border:1px solid #FFA300;
190
- input {
191
- cursor: text;
192
- pointer-events: auto;
193
- }
194
- .toggle-table-close-search {
195
- display: inline-block;
196
- }
172
+ line-height: 1em;
173
+ position: relative;
174
+ display: block;
175
+ height: 50px;
176
+ margin: 0 4px 8px 4px;
177
+ padding: 10px;
178
+ border:1px solid transparent;
179
+ border-radius: 4px;
180
+ box-sizing:border-box;
181
+ transition: height .5s;
182
+
183
+ .toggle-table-search-active & {
184
+ z-index: 25;
185
+ //overflow: hidden;
186
+ background-color: white;
187
+ border:1px solid #FFA300;
188
+ input {
189
+ cursor: text;
190
+ pointer-events: auto;
197
191
  }
198
- .toggle-table-searchable & {
199
- cursor: pointer;
200
- .toggle-table-th-title {
201
- position: relative;
202
- display: inline-block;
203
- &:after {
204
- display: block;
205
- content:'';
206
- position: absolute;
207
- right: -15px;
208
- top: 3px;
209
- background: url(../assets/icons/search.svg) no-repeat;
210
- width: 10px;
211
- height: 10px;
212
- opacity: 0.3;
213
- }
214
- }
215
- &:hover .toggle-table-th-title:after {
216
- opacity: 1;
217
- }
192
+ .toggle-table-close-search {
193
+ display: inline-block;
218
194
  }
219
- .toggle-table-searchable.toggle-table-search-active & {
220
- .toggle-table-th-title:after {
221
- display: none;
222
- }
195
+ }
196
+ .toggle-table-searchable & {
197
+ cursor: pointer;
198
+ .toggle-table-th-title {
199
+ position: relative;
200
+ display: inline-block;
201
+ &:after {
202
+ display: block;
203
+ content:'';
204
+ position: absolute;
205
+ right: -15px;
206
+ top: 3px;
207
+ background: url(../assets/icons/search.svg) no-repeat;
208
+ width: 10px;
209
+ height: 10px;
210
+ opacity: 0.3;
211
+ }
212
+ }
213
+ &:hover .toggle-table-th-title:after {
214
+ opacity: 1;
215
+ }
216
+ }
217
+ .toggle-table-searchable.toggle-table-search-active & {
218
+ .toggle-table-th-title:after {
219
+ display: none;
223
220
  }
221
+ }
224
222
  }
225
223
 
226
224
 
227
225
  .toggle-table-close-search {
228
- position: absolute;
229
- top: 12px;
230
- right: 10px;
231
- display: block;
232
- opacity: 0.3;
233
- cursor:pointer;
226
+ position: absolute;
227
+ top: 12px;
228
+ right: 10px;
229
+ display: block;
230
+ opacity: 0.3;
231
+ cursor:pointer;
234
232
  }
235
233
  .toggle-table-close-search {
236
- background: url(../assets/icons/grey_cross.svg) no-repeat;
237
- width: 12px;
238
- height: 12px;
239
- display: none;
240
- float: right;
241
- &:hover {
242
- opacity: 1;
243
- }
234
+ background: url(../assets/icons/grey_cross.svg) no-repeat;
235
+ width: 12px;
236
+ height: 12px;
237
+ display: none;
238
+ float: right;
239
+ &:hover {
240
+ opacity: 1;
241
+ }
244
242
  }
245
243
 
246
244
  .arrow-order {
247
- background: url(/img/icons/arrow-right-blue-small.svg);
248
- position: absolute;
249
- top: 50%;
250
- margin-top: -10px;
251
- right: 15px;
252
- width: 20px;
253
- height: 20px;
254
- display: none;
245
+ background: url(/img/icons/arrow-right-blue-small.svg);
246
+ position: absolute;
247
+ top: 50%;
248
+ margin-top: -10px;
249
+ right: 15px;
250
+ width: 20px;
251
+ height: 20px;
252
+ display: none;
255
253
  }
256
254
 
257
255
 
258
256
 
259
257
  .toggle-pagination {
260
258
 
261
- ul, li {
262
- list-style: none;
263
- }
264
- ul {
265
- margin: 0;
266
- padding: 0;
267
- li {
268
- float: left;
269
-
270
- button {
271
- border: none;
272
- cursor: pointer;
273
- padding: 0 10px;
274
- color: #354B64;
275
- background-color: transparent;
276
- &:disabled {
277
- color: rgba(24, 158, 209, 0.7);
278
- font-weight: bold;
279
- }
280
- }
281
-
282
- .toggle-pagination-prev, .toggle-pagination-next {
283
- text-indent: -99999px;
284
- width: 25px;
285
- height: 25px;
286
- }
287
-
288
- .toggle-pagination-prev{
289
- background: url(../assets/icons/arrow-left-blue.svg) no-repeat;
290
- margin-right: 10px;
291
-
292
- &:hover {
293
- background: url(../assets/icons/arrow-left-blue-hover.svg) no-repeat;
294
- }
295
- }
296
-
297
- .toggle-pagination-next{
298
- background: url(../assets/icons/arrow-right-blue.svg) no-repeat;
299
- margin-left: 10px;
300
- &:hover {
301
- background: url(../assets/icons/arrow-right-blue-hover.svg) no-repeat;
302
- }
303
- }
259
+ ul, li {
260
+ list-style: none;
261
+ }
262
+ ul {
263
+ margin: 0;
264
+ padding: 0;
265
+ li {
266
+ float: left;
267
+
268
+ button {
269
+ border: none;
270
+ cursor: pointer;
271
+ padding: 0 10px;
272
+ color: #354B64;
273
+ background-color: transparent;
274
+ &:disabled {
275
+ color: rgba(24, 158, 209, 0.7);
276
+ font-weight: bold;
277
+ }
278
+ }
279
+
280
+ .toggle-pagination-prev, .toggle-pagination-next {
281
+ text-indent: -99999px;
282
+ width: 25px;
283
+ height: 25px;
284
+ }
285
+
286
+ .toggle-pagination-prev{
287
+ background: url(../assets/icons/arrow-left-blue.svg) no-repeat;
288
+ margin-right: 10px;
289
+
290
+ &:hover {
291
+ background: url(../assets/icons/arrow-left-blue-hover.svg) no-repeat;
304
292
  }
293
+ }
294
+
295
+ .toggle-pagination-next{
296
+ background: url(../assets/icons/arrow-right-blue.svg) no-repeat;
297
+ margin-left: 10px;
298
+ &:hover {
299
+ background: url(../assets/icons/arrow-right-blue-hover.svg) no-repeat;
300
+ }
301
+ }
305
302
  }
303
+ }
306
304
  }
@@ -21,6 +21,5 @@
21
21
  @import "./includes/_as_metrics.scss";
22
22
  @import "./includes/_as_threedots.scss";
23
23
  @import "./includes/_as_boosters.scss";
24
- @import "./includes/_as_statusbar.scss";
25
24
  @import "./includes/_as_cards.scss";
26
25
  @import "./includes/_as_carousels.scss";
@@ -1,48 +0,0 @@
1
- <template>
2
- <div :class="['toggle-status-bar-container', statusColours, statusSize]">
3
- <label class="toggle-status-bar-label">
4
- <span class="toggle-status-bar-dot" v-if="showDot">&#9679;</span>
5
- {{ statusName }}
6
- </label>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- export default {
12
- name: 'StatusBar',
13
- props: {
14
- status: {
15
- type: String,
16
- required: true,
17
- validator: function (value) {
18
- return ['draft', 'processing', 'complete', 'inactive', 'active'].indexOf(value) !== -1;
19
- }
20
- },
21
- size: {
22
- type: String,
23
- required: false,
24
- validator: function (value) {
25
- return ['small'].indexOf(value) !== -1;
26
- }
27
- }
28
- },
29
- computed: {
30
- // Capitalise the first letter of the status
31
- statusName() {
32
- return this.status.charAt(0).toUpperCase() + this.status.slice(1);
33
- },
34
- // Add the status to the class name
35
- statusColours() {
36
- return 'toggle-status-bar-' + this.status;
37
- },
38
- // Add the size to the class name
39
- statusSize() {
40
- return 'toggle-status-bar-' + this.size;
41
- },
42
- // Show the dot if the status is active or processing
43
- showDot() {
44
- return this.status === 'active' || this.status === 'processing';
45
- }
46
- }
47
- }
48
- </script>
@@ -1,67 +0,0 @@
1
- .toggle-status-bar-container {
2
- font-family: $toggle-font-family;
3
- font-size: 16px !important;
4
- display: flex;
5
- justify-content: center;
6
- align-items: center;
7
- height: 50px;
8
- width: 100%;
9
- border-radius: 7px;
10
- }
11
-
12
- .toggle-status-bar-small {
13
- height: 35px;
14
- }
15
-
16
- // Draft colours
17
- .toggle-status-bar-draft {
18
- background-color: #FFB88D;
19
-
20
- .toggle-status-bar-label {
21
- color: #A34308;
22
- }
23
- }
24
-
25
- // Processing colours
26
- .toggle-status-bar-processing {
27
- background-color: #D7E9F2;
28
-
29
- .toggle-status-bar-label {
30
- color: #269BE3;
31
- }
32
- }
33
-
34
- // Complete colours
35
- .toggle-status-bar-complete {
36
- background-color: #B3E49F;
37
-
38
- .toggle-status-bar-label {
39
- color: #3BB40B;
40
- }
41
- }
42
-
43
- // Inactive colours
44
- .toggle-status-bar-inactive {
45
- background-color: #D7E9F2;
46
-
47
- .toggle-status-bar-label {
48
- color: #269BE3;
49
- }
50
- }
51
-
52
- // Active colours
53
- .toggle-status-bar-active {
54
- background-color: #D7E9F2;
55
- border: 1px solid #FF4848;
56
-
57
- .toggle-status-bar-label {
58
- color: #FF4848;
59
- }
60
- }
61
-
62
- .toggle-status-bar-dot {
63
- font-size: 20px;
64
- margin: 0 3px 0 0;
65
- float: none !important;
66
- padding: 0 !important;
67
- }