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