@trilogy-ds/styles 0.0.7-beta-v4 → 0.0.7-esm-cjs

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.
Files changed (98) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/_all.scss +2 -2
  5. package/framework/src/base/_all.scss +1 -1
  6. package/framework/src/base/_color.scss +0 -21
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +5 -0
  9. package/framework/src/base/_helpers.scss +21 -6
  10. package/framework/src/base/_loading.scss +2 -2
  11. package/framework/src/base/_reset.scss +6 -1
  12. package/framework/src/components/_accordion.scss +4 -3
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +135 -117
  15. package/framework/src/{elements → components}/_box.scss +9 -11
  16. package/framework/src/components/_breadcrumb.scss +17 -31
  17. package/framework/src/{elements → components}/_button.scss +12 -4
  18. package/framework/src/components/_card.scss +26 -9
  19. package/framework/src/{elements → components}/_checkbox.scss +30 -1
  20. package/framework/src/components/_countdown.scss +1 -1
  21. package/framework/src/components/_divider.scss +16 -0
  22. package/framework/src/components/_flex-box.scss +240 -0
  23. package/framework/src/{elements/_all.scss → components/_index.scss} +27 -12
  24. package/framework/src/{elements → components}/_link.scss +9 -3
  25. package/framework/src/components/_list.scss +66 -0
  26. package/framework/src/components/_modal.scss +32 -11
  27. package/framework/src/components/_otp.scss +2 -2
  28. package/framework/src/components/_pagination.scss +5 -2
  29. package/framework/src/components/_price.scss +28 -2
  30. package/framework/src/{elements → components}/_radio.scss +4 -3
  31. package/framework/src/components/_segmented-control.scss +9 -5
  32. package/framework/src/components/_select.scss +131 -0
  33. package/framework/src/components/_stepper.scss +1 -1
  34. package/framework/src/{elements → components}/_sticker.scss +13 -1
  35. package/framework/src/{elements → components}/_switch.scss +7 -7
  36. package/framework/src/{elements → components}/_table.scss +9 -10
  37. package/framework/src/components/_tabs.scss +66 -28
  38. package/framework/src/{elements → components}/_tag.scss +1 -17
  39. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  40. package/framework/src/components/_textarea.scss +46 -0
  41. package/framework/src/components/_timeline.scss +1 -1
  42. package/framework/src/{elements → components}/_title.scss +10 -0
  43. package/framework/src/components/alert/_index.scss +2 -0
  44. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  45. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  46. package/framework/src/{elements → components/input}/_form.scss +10 -11
  47. package/framework/src/components/input/_index.scss +4 -0
  48. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  49. package/framework/src/components/progress/_index.scss +2 -0
  50. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  51. package/framework/src/{elements → components/progress}/_progress.scss +3 -3
  52. package/framework/src/elements/_index.scss +5 -0
  53. package/framework/src/elements/_other.scss +0 -4
  54. package/framework/src/grid/_columns.scss +5 -9
  55. package/framework/src/layout/_hero.scss +4 -0
  56. package/framework/src/layout/_section.scss +5 -0
  57. package/framework/src/theming/common_partials.scss +1 -1
  58. package/framework/src/trilogy-mangled.scss +3 -3
  59. package/framework/src/trilogy.scss +2 -2
  60. package/framework/src/utilities/_background.scss +3 -1
  61. package/framework/src/utilities/_derived-variables.scss +0 -92
  62. package/framework/src/utilities/_initial-variables.scss +3 -111
  63. package/framework/src/utilities/_pre.scss +3 -1
  64. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  65. package/framework/src/utilities/mixins/_delete.scss +86 -0
  66. package/framework/src/utilities/mixins/_index.scss +11 -0
  67. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  68. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  69. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  70. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  71. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  72. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  73. package/framework/src/utilities/mixins/_state.scss +25 -0
  74. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  75. package/framework/src/utilities/mixins/_utils.scss +24 -0
  76. package/framework/src/utilities/variables/_animation.scss +2 -0
  77. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +43 -0
  78. package/framework/src/utilities/variables/_font.scss +97 -0
  79. package/framework/src/utilities/variables/_index.scss +6 -0
  80. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  81. package/framework/src/utilities/variables/_shadow.scss +3 -0
  82. package/framework/src/utilities/variables/_zindex.scss +14 -0
  83. package/package.json +1 -1
  84. package/framework/src/components/_all.scss +0 -24
  85. package/framework/src/elements/_autocomplete.scss +0 -32
  86. package/framework/src/elements/_list.scss +0 -62
  87. package/framework/src/elements/_select.scss +0 -96
  88. package/framework/src/elements/_textarea.scss +0 -133
  89. package/framework/src/utilities/_mixins.scss +0 -643
  90. /package/framework/src/{elements → components}/_badge.scss +0 -0
  91. /package/framework/src/{elements → components}/_chips.scss +0 -0
  92. /package/framework/src/{elements → components}/_container.scss +0 -0
  93. /package/framework/src/{elements → components}/_icon.scss +0 -0
  94. /package/framework/src/{elements → components}/_image.scss +0 -0
  95. /package/framework/src/{elements → components}/_loader.scss +0 -0
  96. /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
  97. /package/framework/src/{elements → components/input}/_input-gauge.scss +0 -0
  98. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -1,643 +0,0 @@
1
- @use "sass:string";
2
- @import "./initial-variables";
3
-
4
- %delete {
5
- @extend %unselectable;
6
-
7
- -moz-appearance: none;
8
- -webkit-appearance: none;
9
- background-color: rgba(black, 0.2);
10
- border: none;
11
- border-radius: 9999px;
12
- cursor: pointer;
13
- display: inline-block;
14
- flex-grow: 0;
15
- flex-shrink: 0;
16
- font-size: 0;
17
- height: 20px;
18
- max-height: 20px;
19
- max-width: 20px;
20
- min-height: 20px;
21
- min-width: 20px;
22
- outline: none;
23
- position: relative;
24
- vertical-align: top;
25
- width: 20px;
26
-
27
- &::before,
28
- &::after {
29
- background-color: #fff;
30
- content: '';
31
- display: block;
32
- left: 50%;
33
- position: absolute;
34
- top: 50%;
35
- transform: translateX(-50%) translateY(-50%) rotate(45deg);
36
- transform-origin: center center;
37
- }
38
-
39
- &::before {
40
- height: 2px;
41
- width: 50%;
42
- }
43
-
44
- &::after {
45
- height: 50%;
46
- width: 2px;
47
- }
48
-
49
- &:hover,
50
- &:focus {
51
- background-color: rgba(black, 0.3);
52
- }
53
-
54
- &:active {
55
- background-color: rgba(black, 0.4);
56
- }
57
-
58
- // Sizes
59
- &.is-small {
60
- height: 16px;
61
- max-height: 16px;
62
- max-width: 16px;
63
- min-height: 16px;
64
- min-width: 16px;
65
- width: 16px;
66
- }
67
-
68
- &.is-medium {
69
- height: 24px;
70
- max-height: 24px;
71
- max-width: 24px;
72
- min-height: 24px;
73
- min-width: 24px;
74
- width: 24px;
75
- }
76
-
77
- &.is-large {
78
- height: 32px;
79
- max-height: 32px;
80
- max-width: 32px;
81
- min-height: 32px;
82
- min-width: 32px;
83
- width: 32px;
84
- }
85
- }
86
-
87
- %unselectable {
88
- -webkit-touch-callout: none;
89
- -webkit-user-select: none;
90
- -moz-user-select: none;
91
- -ms-user-select: none;
92
- user-select: none;
93
- }
94
-
95
- @mixin delete {
96
- @extend %delete;
97
- }
98
-
99
- @mixin arrow( $direction: 'down') {
100
- background-color: currentColor;
101
- @if $direction == 'up' {
102
- content: "";
103
- mask-image: url('./assets/icons/all/arrow-up.svg');
104
- } @else if $direction == 'left' {
105
- content: "";
106
- mask-image: url('./assets/icons/all/arrow-left.svg');
107
- } @else if $direction == 'right' {
108
- content: "";
109
- mask-image: url('./assets/icons/all/arrow-right.svg');
110
- } @else {
111
- content: "";
112
- mask-image: url('./assets/icons/all/arrow-down.svg');
113
- }
114
-
115
- min-width: 15px;
116
- min-height: 15px;
117
- mask-size: 15px;
118
- position: absolute;
119
- display: inline-block;
120
- }
121
-
122
- @mixin block {
123
- &:not(:last-child) {
124
- margin-bottom: 15px;
125
- }
126
- }
127
-
128
- @mixin clearfix {
129
- &::after {
130
- clear: both;
131
- content: ' ';
132
- display: table;
133
- }
134
- }
135
-
136
- @mixin center($width, $height: 0) {
137
- position: absolute;
138
-
139
- @if $height != 0 {
140
- left: calc(50% - (#{$width} / 2));
141
- top: calc(50% - (#{$height} / 2));
142
- } @else {
143
- left: calc(50% - (#{$width} / 2));
144
- top: calc(50% - (#{$width} / 2));
145
- }
146
- }
147
-
148
- @mixin spinner {
149
- animation: spinAround 500ms infinite linear;
150
- border: 2px solid getColor('neutral-fade');
151
- border-radius: 290486px;
152
- border-right-color: transparent;
153
- border-top-color: transparent;
154
- content: '';
155
- display: block;
156
- height: 1em;
157
- position: relative;
158
- width: 1em;
159
- }
160
-
161
- @mixin overflow-touch {
162
- -webkit-overflow-scrolling: touch;
163
- }
164
-
165
- @mixin label-states {
166
- &:focus,
167
- &:active,
168
- &:hover {
169
- @include hover();
170
- }
171
- }
172
-
173
- @mixin overlay($offset: 0) {
174
- position: absolute;
175
- top: $offset;
176
- bottom: $offset;
177
- left: $offset;
178
- right: $offset;
179
- }
180
-
181
- @mixin placeholder {
182
- $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input';
183
-
184
- @each $placeholder in $placeholders {
185
- &:#{$placeholder}-placeholder {
186
- @content;
187
- }
188
- }
189
- }
190
-
191
- @mixin unselectable {
192
- @extend %unselectable;
193
- }
194
-
195
- @mixin ui-icon {
196
- font-family: trilogy-all;
197
- font-style: normal;
198
- font-weight: normal;
199
- display: inline-block;
200
- text-decoration: inherit;
201
- margin-right: 0.2em;
202
- text-align: center;
203
-
204
- /* For safety - reset parent styles, that can break glyph codes*/
205
- font-variant: normal;
206
- text-transform: none;
207
-
208
- /* fix buttons height, for twitter bootstrap */
209
- line-height: 1em;
210
-
211
- /* remove if not needed */
212
- margin-left: 0.2em;
213
-
214
- /* Font smoothing. That was taken from TWBS */
215
- -webkit-font-smoothing: antialiased;
216
- -moz-osx-font-smoothing: grayscale;
217
- }
218
-
219
- // Responsiveness
220
- @mixin from($device) {
221
- @media screen and (min-width: $device) {
222
- @content;
223
- }
224
- }
225
-
226
- @mixin until($device) {
227
- @media screen and (max-width: $device - 1px) {
228
- @content;
229
- }
230
- }
231
-
232
- @mixin mobile {
233
- @media screen and (max-width: $tablet - 1px) {
234
- @content;
235
- }
236
- }
237
-
238
- @mixin tablet {
239
- @media screen and (min-width: $tablet), print {
240
- @content;
241
- }
242
- }
243
-
244
- @mixin tablet-only {
245
- @media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
246
- @content;
247
- }
248
- }
249
-
250
- @mixin touch {
251
- @media screen and (max-width: $desktop - 1px) {
252
- @content;
253
- }
254
- }
255
-
256
- @mixin desktop {
257
- @media screen and (min-width: $desktop) {
258
- @content;
259
- }
260
- }
261
-
262
- @mixin desktop-only {
263
- @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
264
- @content;
265
- }
266
- }
267
-
268
- @mixin until-widescreen {
269
- @media screen and (max-width: $widescreen - 1px) {
270
- @content;
271
- }
272
- }
273
-
274
- @mixin widescreen {
275
- @media screen and (min-width: $widescreen) {
276
- @content;
277
- }
278
- }
279
-
280
- @mixin widescreen-only {
281
- @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) {
282
- @content;
283
- }
284
- }
285
-
286
- @mixin until-fullhd {
287
- @media screen and (max-width: $fullhd - 1px) {
288
- @content;
289
- }
290
- }
291
-
292
- @mixin fullhd {
293
- @media screen and (min-width: $fullhd) {
294
- @content;
295
- }
296
- }
297
-
298
- @mixin all-desktop-only {
299
- @media screen and (min-width: $desktop) and (max-width: $fullhd - 1px) {
300
- @content;
301
- }
302
- }
303
-
304
- @mixin ellipsis() {
305
- white-space: nowrap;
306
- overflow-x: hidden;
307
- text-overflow: ellipsis;
308
- }
309
-
310
- @mixin text-tags() {
311
- a,
312
- span,
313
- p,
314
- i,
315
- strong,
316
- h1,
317
- h2,
318
- h3,
319
- h4,
320
- h5,
321
- label,
322
- h6 {
323
- @content;
324
- }
325
- }
326
-
327
- @mixin heading-tags() {
328
- h1,
329
- h2,
330
- h3,
331
- h4,
332
- h5,
333
- h6 {
334
- @content;
335
- }
336
- }
337
-
338
- @mixin apply-shadow-box {
339
- box-shadow: $shadow;
340
- }
341
-
342
- @mixin apply-colors($property: 'color') {
343
- @each $name, $pair in $colors-brand-functionnal {
344
- $color: getColor($name);
345
- $brandName: getColorBrandName($name);
346
- &.is-#{$brandName} {
347
- #{$property}: $color;
348
- }
349
- }
350
- }
351
-
352
- @mixin pattern-light($size, $x-pos: top, $y-pos: center) {
353
- background-size: $size;
354
- background-position: $x-pos $y-pos;
355
- }
356
-
357
- @mixin pattern-dark($size, $x-pos: top, $y-pos: center) {
358
- background: linear-gradient(#1b3650, getColor('accent'));
359
- background-size: auto, $size, auto;
360
- background-position: top left, $x-pos $y-pos, top left;
361
- }
362
-
363
- // import sass bulma
364
- @mixin input {
365
- @include control;
366
- height: 56px;
367
- background-color: getColor('background');
368
- border-color: getColor('neutral');
369
- color: getColor('font');
370
-
371
- @include placeholder {
372
- color: getColor('font') !important;
373
- filter: grayscale(100%);
374
- opacity: 1 !important;
375
- transition: all 0.2s ease-out;
376
- }
377
-
378
- @include hover();
379
- }
380
-
381
- @mixin checkbox-and-radio($type) {
382
- //TILES WRAPPER
383
- .#{$type}-tiles {
384
- display: flex;
385
- gap: 16px;
386
- flex-wrap: wrap;
387
- }
388
-
389
- //BOTH
390
- .#{$type},
391
- .#{$type}-tile {
392
- position: relative;
393
-
394
- label.#{$type}-label {
395
- cursor: pointer;
396
- font-size: 14px;
397
-
398
- &:before,
399
- &:after {
400
- content: '';
401
- position: absolute;
402
- width: 18px;
403
- height: 18px;
404
- }
405
-
406
- &:before {
407
- border: var(--border);
408
- }
409
- }
410
-
411
- input {
412
- opacity: 0;
413
- position: absolute;
414
- outline: none;
415
-
416
- &:checked ~ label.#{$type}-label {
417
- border-color: getColor('main');
418
-
419
- &:before {
420
- border-color: getColor('main');
421
- }
422
-
423
- &:after {
424
- background-color: getColor('main');
425
- }
426
- }
427
- &:focus-visible ~ label.#{$type}-label:before {
428
- outline: 1px solid;
429
- }
430
-
431
- &:disabled,
432
- &:disabled:checked {
433
- & ~ label.#{$type}-label {
434
- &:after {
435
- background-color: getColor('disabled-fade');
436
- }
437
- }
438
- }
439
-
440
- &:disabled {
441
- & ~ label.#{$type}-label {
442
- &:after {
443
- background-color: transparent;
444
- }
445
- }
446
- }
447
- }
448
- }
449
-
450
- // SIMPLE WITH LABEL ONLY
451
- .#{$type} {
452
- display: flex;
453
- align-items: center;
454
- margin: 6px 8px;
455
- width: fit-content;
456
-
457
- input:disabled,
458
- input:disabled:checked {
459
- & ~ label.#{$type}-label {
460
- @include disabledRulesWithoutBG;
461
- }
462
- }
463
-
464
- label.#{$type}-label {
465
- padding: 4px;
466
- padding-left: 34px;
467
-
468
- &:before,
469
- &:after {
470
- top: 50%;
471
- transform: translateY(-50%);
472
- left: 0;
473
- }
474
- }
475
-
476
- &:hover &:not(disabled) {
477
- label.#{$type}-label {
478
- &:before {
479
- @include hoverRules();
480
- }
481
- }
482
- }
483
-
484
- &:focus {
485
- border: 2px;
486
- border-color: getColor('main');
487
- }
488
- }
489
-
490
- //TILE ONLY
491
- .#{$type}-tile {
492
- position: relative;
493
- max-width: 160px;
494
- display: inline-block;
495
- text-align: center;
496
-
497
- input:disabled,
498
- input:disabled:checked {
499
- & ~ label.#{$type}-label {
500
- @include disabledRules;
501
- }
502
- }
503
- &:has(input:focus-visible) label.#{$type}-label{
504
- outline: 1px solid;
505
- }
506
-
507
- &:first-child {
508
- margin-left: 0;
509
- }
510
-
511
- &:last-child {
512
- margin-right: 0;
513
- }
514
-
515
- label.#{$type}-label {
516
- display: block;
517
- position: relative;
518
- padding: 40px 16px 16px;
519
- border: var(--border);
520
- border-radius: var(--radius);
521
- box-sizing: border-box;
522
- background-color: getColor('background');
523
-
524
- &:before {
525
- top: 16px;
526
- right: 16px;
527
- }
528
-
529
- span.#{$type}-title {
530
- font-weight: bold;
531
- width: 100%;
532
- display: block;
533
- font-size: 16px;
534
- }
535
- }
536
-
537
- input {
538
- &:not(:disabled):not(:checked) ~ label.radio-label {
539
- @include label-states;
540
- }
541
-
542
- &:not(:disabled) ~ label.checkbox-label {
543
- @include label-states;
544
- }
545
-
546
- &:checked:not(:disabled) ~ label.#{$type}-label {
547
- border-color: getColor('main');
548
- border-width: 2px;
549
- padding: 15px;
550
- padding-top: 39px;
551
-
552
- &:before {
553
- top: 15px;
554
- right: 15px;
555
- }
556
-
557
- span.#{$type}-title {
558
- color: getColor('main');
559
- }
560
- }
561
-
562
- &:disabled {
563
- & ~ label.#{$type}-label {
564
- &:before {
565
- border-color: getColor('disabled') !important;
566
- }
567
- }
568
- }
569
-
570
- &:disabled:checked ~ label.#{$type}-label {
571
- .checkbox-title {
572
- color: getColor('disabled');
573
- }
574
- }
575
- }
576
-
577
- &.is-horizontal {
578
- display: flex;
579
- justify-content: space-between;
580
- align-items: center;
581
- max-width: unset;
582
- width: 100%;
583
- position: relative;
584
-
585
- &.is-narrow {
586
- width: fit-content;
587
- }
588
-
589
- input {
590
- &:checked:not(:disabled) ~ label.#{$type}-label {
591
- padding: 15px;
592
- padding-right: 47px;
593
- }
594
-
595
- }
596
-
597
- label.#{$type}-label {
598
- width: 100%;
599
- display: flex;
600
- align-items: center;
601
- justify-content: flex-start;
602
- text-align: left;
603
- padding: 16px 48px 16px 16px;
604
-
605
- &:before,
606
- &:after {
607
- top: 50% !important;
608
- transform: translateY(-50%);
609
- }
610
- }
611
-
612
- .icon {
613
- margin-right: 16px;
614
- }
615
- }
616
- }
617
- }
618
-
619
- @mixin hoverRules {
620
- background-color: getColor('main-fade');
621
- }
622
-
623
- @mixin hover {
624
- &:hover:not(.is-disabled):not(:focus) {
625
- @include hoverRules();
626
- }
627
- &:focus:not(.is-disabled), &:focus-visible:not(.is-disabled) {
628
- border: 2px solid currentColor;
629
- }
630
- }
631
-
632
- @mixin disabledRulesWithoutBG {
633
- border-color: getColor('disabled') !important;
634
- box-shadow: none !important;
635
- color: getColor('disabled') !important;
636
- cursor: not-allowed !important;
637
- filter: grayscale(1);
638
- }
639
-
640
- @mixin disabledRules {
641
- background-color: getColor('disabled-fade') !important;
642
- @include disabledRulesWithoutBG;
643
- }