@rolster/styles-foundations 2.6.10 → 2.6.11

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.
@@ -1,408 +0,0 @@
1
- // Rolster Technology Datatable Component
2
- // v2.6.6
3
- // @license MIT
4
- // Author: Rolster Developers
5
- // Created: 20/Mar/2018
6
- // Updated: 16/Dic/2025
7
-
8
- @mixin datatable_cell_vars() {
9
- --rlc-field-box-body-background: transparent;
10
- --rlc-field-box-body-background-focused: transparent;
11
- --rlc-field-box-body-background-disabled: transparent;
12
- --rlc-field-box-body-padding: 0rem;
13
- --rlc-field-box-body-border: none;
14
- --rlc-field-box-body-border-focused: none;
15
- --rlc-field-box-body-border-error: none;
16
- --rlc-field-box-body-border-disabled: none;
17
- --rlc-field-box-body-shadow: none;
18
- --rlc-field-box-body-shadow-error: none;
19
- --rlc-field-box-action-background: transparent;
20
-
21
- --rlc-field-list-control-font-size: var(--pvt-datatable-font-size);
22
- --rlc-field-list-control-font-weight: var(--rls-font-weight-medium);
23
- --rlc-field-list-control-letter-spacing: var(--rls-body-letter-spacing);
24
- --rlc-field-list-element-padding: var(--rls-sizing-x4);
25
- --rlc-field-list-suggestions-bottom: var(--rls-sizing-x24);
26
- --rlc-field-list-suggestions-top: var(--rls-sizing-x24);
27
-
28
- --rlc-poster-font-size: var(--pvt-datatable-font-size);
29
- --rlc-poster-width: calc(100% - var(--rls-sizing-x2));
30
- --rlc-poster-height: var(--rls-sizing-x8);
31
- --rlc-poster-padding: var(--rls-sizing-x2);
32
- }
33
-
34
- @mixin datatable_cell_control() {
35
- --rlc-action-ripple-dimension: var(--rls-sizing-x16);
36
- --rlc-action-ripple-position: -8rem;
37
-
38
- --rlc-avatar-radius: var(--rls-sizing-x3);
39
- --rlc-avatar-width: var(--rls-sizing-x16);
40
- --rlc-avatar-height: var(--rls-sizing-x16);
41
- --rlc-avatar-font-size: var(--pvt-datatable-font-size);
42
-
43
- --rlc-image-width: var(--rls-sizing-x12);
44
- --rlc-image-height: var(--rls-sizing-x12);
45
-
46
- --rlc-switch-max-width: var(--rls-sizing-x16);
47
- --rlc-switch-component-height: var(--rls-sizing-x8);
48
- --rlc-switch-element-width: var(--rls-sizing-x6);
49
- --rlc-switch-element-height: var(--rls-sizing-x4);
50
- --rlc-switch-element-radius: var(--rls-sizing-x4);
51
-
52
- display: flex;
53
- justify-content: center;
54
- align-items: center;
55
- width: var(--rls-sizing-x24);
56
- padding: 0rem;
57
-
58
- & > img {
59
- width: var(--rls-sizing-x12);
60
- }
61
- }
62
-
63
- @mixin datatable_cell_styles() {
64
- &--contained {
65
- overflow: hidden;
66
- }
67
-
68
- &--control {
69
- @include datatable_cell_control();
70
- }
71
-
72
- &.rls-align-center {
73
- justify-content: center;
74
- }
75
-
76
- & > span {
77
- display: block;
78
- width: 100%;
79
- white-space: nowrap;
80
- text-overflow: ellipsis;
81
- overflow: hidden;
82
- }
83
-
84
- & > p {
85
- padding: var(--rls-sizing-x2) 0rem;
86
- }
87
-
88
- .rls-field-list {
89
- --rlc-field-box-body-padding: var(--rls-sizing-x4) 0rem;
90
- --rlc-field-box-action-dimension: var(--rls-sizing-x10);
91
- }
92
-
93
- .rls-poster {
94
- overflow: hidden;
95
- text-overflow: ellipsis;
96
- white-space: nowrap;
97
- }
98
-
99
- & > a {
100
- &:hover {
101
- color: var(--rls-app-color-700);
102
- text-decoration: underline;
103
- }
104
- }
105
- }
106
-
107
- .rls-datatable {
108
- --pvt-datatable-font-size: var(
109
- --rlc-datatable-font-size,
110
- var(--rls-label-font-size)
111
- );
112
-
113
- --pvt-datatable-letter-spacing: var(
114
- --rlc-datatable-letter-spacing,
115
- var(--rls-label-letter-spacing)
116
- );
117
-
118
- --pvt-datatable-font-color: var(
119
- --rlc-datatable-font-color,
120
- var(--rls-app-color-900)
121
- );
122
-
123
- --pvt-datatable-header-background: var(
124
- --rlc-datatable-header-background,
125
- var(--rls-app-color-100)
126
- );
127
-
128
- --pvt-datatable-record-background: var(
129
- --rlc-datatable-record-background,
130
- transparent
131
- );
132
-
133
- --pvt-datatable-padding-component: 0rem;
134
- --pvt-datatable-padding-scroll: var(--rlc-datatable-padding-scroll, 0rem);
135
- --pvt-datatable-header-padding-right: var(--pvt-datatable-padding-scroll);
136
- --pvt-datatable-floating-background: var(--rls-app-color-100);
137
-
138
- --rlc-amount-font-size: var(--pvt-datatable-font-size);
139
- --rlc-amount-width: 100%;
140
-
141
- --rlc-badge-padding: 0.5rem 1.5rem;
142
-
143
- --rlc-ballot-padding: 0rem;
144
- --rlc-ballot-component-row-gap: var(--rls-sizing-x1);
145
- --rlc-ballot-title-letter-spacing: var(--rls-smalltext-letter-spacing);
146
- --rlc-ballot-title-font-size: var(--rls-smalltext-font-size);
147
- --rlc-ballot-title-height: var(--rls-smalltext-line-height);
148
- --rlc-ballot-subtitle-letter-spacing: var(--rls-overline-letter-spacing);
149
- --rlc-ballot-subtitle-font-size: var(--rls-overline-font-size);
150
- --rlc-ballot-subtitle-height: var(--rls-overline-line-height);
151
-
152
- --rlc-field-box-body-background: transparent;
153
- --rlc-field-box-padding: 0rem;
154
- --rlc-field-box-width: 100%;
155
- --rlc-field-box-error-display: none;
156
- --rlc-field-box-label-display: none;
157
-
158
- --rlc-input-font-size: var(--pvt-datatable-font-size);
159
- --rlc-input-letter-spacing: var(--pvt-datatable-letter-spacing);
160
-
161
- --rlc-skeleton-text-column-gap: var(--rls-sizing-x2);
162
-
163
- position: relative;
164
- display: flex;
165
- width: 100%;
166
- height: var(--rlc-datatable-height, auto);
167
- flex-direction: column;
168
- row-gap: var(--rls-sizing-x6);
169
- border-radius: var(--rls-sizing-x4);
170
- box-sizing: border-box;
171
-
172
- &--scrolleable {
173
- --pvt-datatable-padding-scroll: var(--rls-sizing-x4);
174
-
175
- --pvt-datatable-header-padding-right: calc(
176
- var(--pvt-datatable-padding-scroll) +
177
- var(--rlc-datatable-width-scroll, var(--rls-sizing-x4))
178
- );
179
-
180
- --pvt-datatable-padding-component: 0rem
181
- calc(var(--pvt-datatable-padding-scroll) + 5rem) 0rem 0rem;
182
- }
183
-
184
- &__toolbar {
185
- display: flex;
186
- flex: 0 0 auto;
187
- column-gap: var(--rls-sizing-x6);
188
- padding: var(--pvt-datatable-padding-component);
189
- box-sizing: border-box;
190
- background: var(--pvt-datatable-header-background);
191
- border-radius: var(--rls-sizing-x4);
192
- }
193
-
194
- &__table {
195
- display: flex;
196
- flex: 1 1 auto;
197
-
198
- & > table {
199
- display: flex;
200
- flex-direction: column;
201
- row-gap: var(--rls-sizing-x4);
202
- border-spacing: 0;
203
- border-collapse: collapse;
204
- }
205
- }
206
-
207
- &__head {
208
- width: 100%;
209
- padding-right: var(--pvt-datatable-header-padding-right);
210
- box-sizing: border-box;
211
- }
212
-
213
- &__header {
214
- display: flex;
215
- column-gap: var(--rls-sizing-x6);
216
- padding: 0rem var(--rls-sizing-x6);
217
- box-sizing: border-box;
218
- background: var(--pvt-datatable-header-background);
219
- border: var(--rls-app-border-1-200);
220
- border-radius: var(--rls-sizing-x4);
221
-
222
- .rls-poster {
223
- width: calc(100% - var(--rls-sizing-x2));
224
- margin: auto 0rem;
225
- overflow: hidden;
226
- text-overflow: ellipsis;
227
- white-space: nowrap;
228
- }
229
- }
230
-
231
- &__title {
232
- position: relative;
233
- display: flex;
234
- height: var(--rls-sizing-x20);
235
- line-height: var(--rls-sizing-x20);
236
- color: var(--rls-app-color-700);
237
- font-weight: var(
238
- --rlc-datatable-header-font-weight,
239
- var(--rls-font-weight-semibold)
240
- );
241
- font-size: var(--pvt-datatable-font-size);
242
- letter-spacing: var(--pvt-datatable-letter-spacing);
243
- text-align: left;
244
- overflow: hidden;
245
- white-space: nowrap;
246
-
247
- &--control {
248
- @include datatable_cell_control();
249
- }
250
-
251
- & > span {
252
- display: block;
253
- width: 100%;
254
- text-overflow: ellipsis;
255
- overflow: hidden;
256
- }
257
- }
258
-
259
- &__body {
260
- display: flex;
261
- flex-direction: column;
262
- row-gap: var(--rls-sizing-x6);
263
- padding-right: var(--pvt-datatable-padding-scroll);
264
- box-sizing: border-box;
265
- overflow-y: var(--rlc-datatable-body-overflow, initial);
266
- max-height: var(--rlc-datatable-body-max-height, initial);
267
- }
268
-
269
- &__subheader,
270
- &__record,
271
- &__totals {
272
- position: relative;
273
- display: flex;
274
- column-gap: var(--rls-sizing-x6);
275
- padding: 0rem var(--rls-sizing-x6);
276
- box-sizing: border-box;
277
- background: var(--pvt-datatable-record-background);
278
- border: var(--rls-app-border-1-200);
279
- border-radius: var(--rls-sizing-x4);
280
-
281
- &--success {
282
- --pvt-datatable-floating-background: var(--rls-success-color-100);
283
-
284
- background: var(--rls-success-color-050);
285
- border: var(--rls-success-border-1-200);
286
- }
287
-
288
- &--info {
289
- --pvt-datatable-floating-background: var(--rls-info-color-100);
290
-
291
- background: var(--rls-info-color-050);
292
- border: var(--rls-info-border-1-200);
293
- }
294
-
295
- &--warning {
296
- --pvt-datatable-floating-background: var(--rls-warning-color-100);
297
-
298
- background: var(--rls-warning-color-050);
299
- border: var(--rls-warning-border-1-200);
300
- }
301
-
302
- &--error {
303
- --pvt-datatable-floating-background: var(--rls-danger-color-100);
304
-
305
- background: var(--rls-danger-color-050);
306
- border: var(--rls-danger-border-1-200);
307
- }
308
-
309
- &--contained {
310
- overflow: hidden;
311
- }
312
- }
313
-
314
- &__subheader {
315
- position: sticky;
316
- top: 0px;
317
- z-index: var(--rls-z-index-4);
318
- background: rgba(241, 238, 247, 0.8);
319
- backdrop-filter: blur(2px);
320
- }
321
-
322
- &__cell,
323
- &__data {
324
- @include datatable_cell_vars();
325
-
326
- position: relative;
327
- display: flex;
328
- align-items: center;
329
- cursor: default;
330
- text-align: left;
331
- min-height: var(--rls-sizing-x20);
332
- font-weight: var(--rls-font-weight-regular);
333
- color: var(--pvt-datatable-font-color);
334
- font-size: var(--pvt-datatable-font-size);
335
- letter-spacing: var(--pvt-datatable-letter-spacing);
336
-
337
- @include datatable_cell_styles();
338
- }
339
-
340
- &__floating {
341
- --pvt-action-tooltip-left: 0;
342
- --pvt-action-tooltip-right: initial;
343
- --pvt-action-tooltip-transform: translate(
344
- calc(-100% - var(--rls-sizing-x4))
345
- );
346
-
347
- position: absolute;
348
- display: flex;
349
- left: initial;
350
- right: 0;
351
- height: 100%;
352
- column-gap: 4rem;
353
- align-items: center;
354
- z-index: var(--rls-z-index-2);
355
- padding: 0rem var(--rls-sizing-x6);
356
- background: var(--pvt-datatable-floating-background);
357
- border-right: none;
358
- transform: translateX(calc(100% - var(--rls-sizing-x4)));
359
- transition: transform 240ms var(--rls-standard-curve);
360
-
361
- &:hover {
362
- transform: translateX(0);
363
- }
364
-
365
- &--invested {
366
- --pvt-action-tooltip-left: initial;
367
- --pvt-action-tooltip-right: 0;
368
- --pvt-action-tooltip-transform: translate(
369
- calc(100% + var(--rls-sizing-x4))
370
- );
371
-
372
- right: initial;
373
- left: 0;
374
- transform: translateX(calc(-100% + var(--rls-sizing-x4)));
375
- }
376
-
377
- &[rls-theme] {
378
- background: var(--rls-theme-color-050);
379
- }
380
-
381
- .rls-button-action__tooltip {
382
- top: 0;
383
- left: var(--pvt-action-tooltip-left);
384
- right: var(--pvt-action-tooltip-right);
385
- transform: var(--pvt-action-tooltip-transform);
386
- z-index: var(--rls-z-index-2);
387
- }
388
- }
389
-
390
- &__summary {
391
- --pvt-datatable-record-background: var(--rls-app-color-100);
392
-
393
- flex: 0 0 auto;
394
- padding-right: var(--pvt-datatable-header-padding-right);
395
- box-sizing: border-box;
396
- }
397
-
398
- &__footer {
399
- --pvt-datatable-record-background: var(--rls-app-color-100);
400
-
401
- position: relative;
402
- flex: 0 0 auto;
403
- width: 100%;
404
- padding: var(--pvt-datatable-padding-component);
405
- box-sizing: border-box;
406
- overflow: hidden;
407
- }
408
- }