@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-calendar

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 (143) 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 +1 -52
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +9 -1
  9. package/framework/src/base/_helpers.scss +34 -44
  10. package/framework/src/base/_loading.scss +9 -2
  11. package/framework/src/base/_reset.scss +11 -1
  12. package/framework/src/components/_accordion.scss +55 -89
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +332 -0
  15. package/framework/src/components/_badge.scss +87 -0
  16. package/framework/src/components/_box.scss +168 -0
  17. package/framework/src/components/_breadcrumb.scss +29 -38
  18. package/framework/src/components/_button.scss +79 -0
  19. package/framework/src/components/_calendar.scss +125 -0
  20. package/framework/src/components/_card.scss +33 -87
  21. package/framework/src/components/_checkbox.scss +71 -0
  22. package/framework/src/components/_chips.scss +84 -0
  23. package/framework/src/{elements → components}/_container.scss +7 -39
  24. package/framework/src/components/_countdown.scss +49 -47
  25. package/framework/src/components/_divider.scss +25 -14
  26. package/framework/src/components/_fab.scss +25 -38
  27. package/framework/src/components/_flex-box.scss +457 -0
  28. package/framework/src/{elements → components}/_icon.scss +4 -4
  29. package/framework/src/components/_image.scss +69 -0
  30. package/framework/src/components/_index.scss +48 -0
  31. package/framework/src/components/_link.scss +58 -0
  32. package/framework/src/components/_list.scss +66 -0
  33. package/framework/src/{elements → components}/_loader.scss +2 -2
  34. package/framework/src/components/_modal.scss +182 -158
  35. package/framework/src/components/_otp.scss +11 -30
  36. package/framework/src/components/_pagination.scss +60 -159
  37. package/framework/src/components/_popover.scss +260 -260
  38. package/framework/src/components/_price.scss +140 -165
  39. package/framework/src/components/_product-tour.scss +2 -4
  40. package/framework/src/components/_radio.scss +82 -0
  41. package/framework/src/components/_range.scss +73 -72
  42. package/framework/src/components/_segmented-control.scss +55 -53
  43. package/framework/src/components/_select.scss +131 -0
  44. package/framework/src/components/_stepper.scss +42 -222
  45. package/framework/src/{elements → components}/_sticker.scss +25 -28
  46. package/framework/src/components/_switch.scss +97 -191
  47. package/framework/src/components/_table.scss +244 -0
  48. package/framework/src/components/_tabs.scss +101 -98
  49. package/framework/src/components/_tag.scss +114 -0
  50. package/framework/src/components/_text.scss +55 -0
  51. package/framework/src/components/_textarea.scss +46 -0
  52. package/framework/src/components/_timeline.scss +28 -113
  53. package/framework/src/components/_title.scss +151 -0
  54. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  55. package/framework/src/components/alert/_index.scss +2 -0
  56. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  57. package/framework/src/components/input/_entry.scss +135 -0
  58. package/framework/src/{elements → components/input}/_form.scss +42 -33
  59. package/framework/src/components/input/_index.scss +4 -0
  60. package/framework/src/components/input/_input-gauge.scss +44 -0
  61. package/framework/src/components/input/_input-icons.scss +55 -0
  62. package/framework/src/components/progress/_index.scss +2 -0
  63. package/framework/src/components/progress/_progress-radial.scss +28 -0
  64. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  65. package/framework/src/elements/_index.scss +5 -0
  66. package/framework/src/elements/_other.scss +0 -41
  67. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  68. package/framework/src/grid/_columns.scss +278 -763
  69. package/framework/src/grid/_rows.scss +45 -38
  70. package/framework/src/layout/_all.scss +0 -1
  71. package/framework/src/layout/_hero.scss +92 -214
  72. package/framework/src/layout/_section.scss +10 -29
  73. package/framework/src/theming/_all.scss +3 -0
  74. package/framework/src/theming/buttons_partial.scss +32 -0
  75. package/framework/src/theming/common_partials.scss +10 -0
  76. package/framework/src/theming/links_partial.scss +20 -0
  77. package/framework/src/trilogy-mangled.scss +3 -3
  78. package/framework/src/trilogy.scss +2 -2
  79. package/framework/src/utilities/_a11y.scss +13 -0
  80. package/framework/src/utilities/_all.scss +4 -0
  81. package/framework/src/utilities/_background.scss +21 -0
  82. package/framework/src/utilities/_controls.scss +38 -49
  83. package/framework/src/utilities/_derived-variables.scss +0 -103
  84. package/framework/src/utilities/_initial-variables.scss +4 -144
  85. package/framework/src/utilities/_pre.scss +4 -1
  86. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  87. package/framework/src/utilities/mixins/_delete.scss +86 -0
  88. package/framework/src/utilities/mixins/_index.scss +11 -0
  89. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  90. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  91. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  92. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  93. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  94. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  95. package/framework/src/utilities/mixins/_state.scss +25 -0
  96. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  97. package/framework/src/utilities/mixins/_utils.scss +24 -0
  98. package/framework/src/utilities/variables/_animation.scss +2 -0
  99. package/framework/src/utilities/variables/_color.scss +85 -0
  100. package/framework/src/utilities/variables/_font.scss +97 -0
  101. package/framework/src/utilities/variables/_index.scss +6 -0
  102. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  103. package/framework/src/utilities/variables/_shadow.scss +3 -0
  104. package/framework/src/utilities/variables/_zindex.scss +14 -0
  105. package/package.json +3 -3
  106. package/framework/src/components/_all.scss +0 -30
  107. package/framework/src/components/_autolayout2.scss +0 -38
  108. package/framework/src/components/_disclaimer.scss +0 -84
  109. package/framework/src/components/_dropdown.scss +0 -128
  110. package/framework/src/components/_level.scss +0 -120
  111. package/framework/src/components/_media.scss +0 -64
  112. package/framework/src/components/_menu.scss +0 -213
  113. package/framework/src/components/_progress-radial.scss +0 -23
  114. package/framework/src/components/_search-modal.scss +0 -197
  115. package/framework/src/components/_slices.scss +0 -316
  116. package/framework/src/components/_slider.scss +0 -92
  117. package/framework/src/elements/_all.scss +0 -35
  118. package/framework/src/elements/_badge.scss +0 -81
  119. package/framework/src/elements/_box.scss +0 -267
  120. package/framework/src/elements/_button.scss +0 -192
  121. package/framework/src/elements/_checkbox.scss +0 -39
  122. package/framework/src/elements/_checkradio.scss +0 -173
  123. package/framework/src/elements/_chips.scss +0 -100
  124. package/framework/src/elements/_dot.scss +0 -6
  125. package/framework/src/elements/_entry.scss +0 -109
  126. package/framework/src/elements/_image.scss +0 -59
  127. package/framework/src/elements/_input-gauge.scss +0 -37
  128. package/framework/src/elements/_input-icons.scss +0 -41
  129. package/framework/src/elements/_link.scss +0 -79
  130. package/framework/src/elements/_list.scss +0 -61
  131. package/framework/src/elements/_notification.scss +0 -151
  132. package/framework/src/elements/_options.scss +0 -146
  133. package/framework/src/elements/_paragraph.scss +0 -101
  134. package/framework/src/elements/_radio.scss +0 -67
  135. package/framework/src/elements/_select.scss +0 -315
  136. package/framework/src/elements/_switch.scss +0 -108
  137. package/framework/src/elements/_table.scss +0 -298
  138. package/framework/src/elements/_tag.scss +0 -131
  139. package/framework/src/elements/_textarea.scss +0 -125
  140. package/framework/src/elements/_timeline.scss +0 -283
  141. package/framework/src/elements/_title.scss +0 -139
  142. package/framework/src/layout/_toolbar.scss +0 -100
  143. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,100 +0,0 @@
1
- $chip-radius: 30px !default;
2
-
3
- .chips-list {
4
- align-items: center;
5
- display: inline-flex;
6
- justify-content: flex-start;
7
- margin-bottom: 16px;
8
- flex-wrap: wrap;
9
-
10
- // multi-chips : ajout d'une marge bottom, supprimable par facette
11
- &:not(.is-gapless) {
12
- &:not(:last-child) {
13
- margin-right: 8px;
14
- }
15
-
16
- .chips {
17
- margin-bottom: 10px;
18
- }
19
- }
20
-
21
- // multi-chips : ajout d'une marge à droite de chaque chip
22
- .chips:not(:last-child) {
23
- margin-right: 8px;
24
- }
25
-
26
- // centrage des chips
27
- &.is-centered {
28
- justify-content: center;
29
- }
30
-
31
- &.is-multiple {
32
- .chips.is-active:before {
33
- content: "";
34
- mask-image: url('./assets/icons/all/check.svg');
35
- background-color: getColor('background');
36
- margin-right: 4px;
37
- margin-left: -8px;
38
- width: 20px;
39
- height: 20px;
40
- mask-size: 20px;
41
- }
42
- }
43
-
44
- .chips {
45
- align-items: center;
46
- background-color: getColor('grey-lighter');
47
- border-radius: $chip-radius;
48
- color: getColor('font');
49
- display: inline-flex;
50
- font-weight: 400;
51
- font-size: $size-normal;
52
- height: 32px;
53
- justify-content: center;
54
- line-height: 2;
55
- padding: 6px $spacing-4;
56
- white-space: nowrap;
57
- cursor: pointer;
58
- border: 1px solid getColor('grey-light');
59
-
60
- &:not(.is-disabled) {
61
- &:hover {
62
- background-color: getColor('grey-light');
63
- border: 2px solid currentColor;
64
- color: getColor('alternate');
65
- padding: 5px 15px;
66
- }
67
-
68
- &:focus,
69
- &:focus-visible,
70
- &.is-active {
71
- background-color: getColor('alternate');
72
- color: white;
73
- font-weight: 600;
74
- border: 2px solid getColor('alternate');
75
- padding: 5px 15px;
76
- }
77
- }
78
-
79
- &.is-disabled {
80
- background-color: getColor('grey-disabled');
81
- color: getColor('grey-darker');
82
- cursor: no-drop;
83
- border: 1px solid getColor('grey-disabled');
84
- }
85
-
86
- &.is-inverted {
87
- background-color: white;
88
- color: getColor('alternate');
89
-
90
- &:active,
91
- &:hover,
92
- &:focus,
93
- &:focus-visible,
94
- &.is-active {
95
- background-color: getColor('alternate') !important;
96
- color: getColor('background') !important;
97
- }
98
- }
99
- }
100
- }
@@ -1,6 +0,0 @@
1
- .dot {
2
- display: inline-block;
3
- width: 10px;
4
- height: 10px;
5
- border-radius: 100%;
6
- }
@@ -1,109 +0,0 @@
1
- .input,
2
- .textarea {
3
- @include input;
4
-
5
- padding-left: $spacing-4;
6
- padding-right: $spacing-4;
7
- font-family: $body-family;
8
- font-size: $size-medium;
9
- max-width: 100%;
10
- width: 100%;
11
-
12
- &:focus-visible,
13
- :focus {
14
- outline: 1px auto getColor('alternate');
15
- }
16
-
17
- // Colors
18
- @each $name in $colors-brand-funcionnal {
19
- $color: getColor($name);
20
- $color-invert: invertColor($name);
21
- $brandName: getColorBrandName($name);
22
-
23
- &.is-#{$brandName} {
24
- border: 2px solid $color;
25
- &:focus-visible,
26
- &:hover,
27
- &.is-hovered,
28
- &:focus,
29
- &.is-focused {
30
- outline: 1px auto $color !important;
31
- }
32
- }
33
- }
34
-
35
- // Sizes
36
- &.is-small {
37
- @include control-small;
38
- }
39
-
40
- &.is-large {
41
- @include control-large;
42
- }
43
-
44
- &.is-fullwidth {
45
- display: block;
46
- width: 100%;
47
- }
48
-
49
- &.is-inline {
50
- display: inline;
51
- }
52
-
53
- .icon-status {
54
- color: aqua !important;
55
- }
56
-
57
- & label {
58
- margin-top: 10px;
59
- }
60
- }
61
-
62
- .input {
63
- &::-ms-clear {
64
- display: none;
65
- }
66
-
67
- &.is-small {
68
- height: 24px;
69
- }
70
-
71
- &.is-rounded {
72
- border-radius: $radius-rounded;
73
- padding-left: 1em;
74
- padding-right: 1em;
75
- }
76
-
77
- &.is-static {
78
- background-color: transparent;
79
- border-color: transparent;
80
- padding-left: 0;
81
- padding-right: 0;
82
- }
83
- }
84
-
85
- .textarea {
86
- display: block;
87
- max-width: 100%;
88
- min-width: 100%;
89
- resize: vertical;
90
- padding-top: 15px;
91
-
92
-
93
- &:not([rows]) {
94
- max-height: 600px;
95
- min-height: 120px;
96
- }
97
-
98
- &[rows] {
99
- height: initial;
100
- }
101
-
102
- &.has-fixed-size {
103
- resize: none;
104
- }
105
- }
106
-
107
- .textarea[disabled]:hover {
108
- outline: 1px auto getColor('grey-disabled') !important;
109
- }
@@ -1,59 +0,0 @@
1
- .image {
2
- display: block;
3
- position: relative;
4
-
5
- img {
6
- display: block;
7
- max-width: 100%;
8
-
9
- &.b-loaded {
10
- height: auto;
11
- }
12
- }
13
- }
14
-
15
- .b-lazy {
16
- transition: opacity 250ms ease-in-out;
17
- opacity: 0;
18
-
19
- &.b-loaded {
20
- opacity: 1;
21
-
22
- &.has-bg-image {
23
- &.has-bg-gradient {
24
- &::before {
25
- opacity: 0;
26
- }
27
- }
28
- }
29
- }
30
-
31
- &.has-bg-image {
32
- background-repeat: no-repeat;
33
- background-position: center center;
34
- background-size: cover;
35
- position: absolute;
36
- top: 0;
37
- bottom: 0;
38
- left: 0;
39
- right: 0;
40
- height: 100%;
41
-
42
- &.has-bg-gradient {
43
- z-index: zindex('void');
44
- opacity: 1;
45
-
46
- &::before {
47
- content: '';
48
- opacity: 1;
49
- position: absolute;
50
- top: 0;
51
- left: 0;
52
- right: 0;
53
- bottom: 0;
54
- z-index: zindex('tiny');
55
- transition: opacity 750ms ease-in-out;
56
- }
57
- }
58
- }
59
- }
@@ -1,37 +0,0 @@
1
-
2
- .field .security-gauge-container {
3
- width: 100%;
4
- .security-gauge {
5
- height: 4px;
6
- background: getColor('grey-disabled');
7
- border-radius: 4px;
8
- margin: 8px 0;
9
- .gauge {
10
- height: 100%;
11
- border-radius: 4px;
12
- }
13
- }
14
-
15
- .security-gauge-verifies {
16
- display: flex;
17
- justify-content: space-between;
18
- align-items: center;
19
- .security {
20
- display: flex;
21
- align-items: center;
22
- margin-bottom: 4px;
23
- .icon {
24
- position: relative;
25
- color: getColor('grey');
26
- width: 16px;
27
- margin-right: 8px;
28
- font-size: 16px;
29
- margin-bottom: -1px;
30
-
31
- .is-success {
32
- background-color: getColor('success')
33
- }
34
- }
35
- }
36
- }
37
- }
@@ -1,41 +0,0 @@
1
- .field {
2
-
3
- .has-icons-left {
4
- input {
5
- padding-left: 45px;
6
- }
7
- label {
8
- left: 45px;
9
- }
10
- .icon-left
11
- {
12
- position: absolute;
13
- height: 100%;
14
- width: 45px;
15
- left: 0;
16
-
17
- i {
18
- font-size: 20px;
19
- }
20
- }
21
-
22
-
23
- }
24
-
25
- .has-icons-right {
26
- .icon-right
27
- {
28
- position: absolute;
29
- height: 100%;
30
- width: 45px;
31
- z-index: 10;
32
- right: 0;
33
- left: auto;
34
- i {
35
- font-size: 20px;
36
- }
37
- }
38
- }
39
-
40
-
41
- }
@@ -1,79 +0,0 @@
1
- .link:not([disabled]) {
2
- position: relative;
3
- font-size: 14px;
4
- font-weight: $weight-medium;
5
- color: getColor('alternate');
6
- box-decoration-break: clone;
7
- padding: $spacing-2;
8
- margin: -8px;
9
- text-decoration: underline;
10
- cursor: pointer;
11
-
12
- &:not(p .link) {
13
- text-decoration-line: underline;
14
- text-decoration-style: solid;
15
- text-decoration-thickness: 2px;
16
- text-underline-offset: 4px;
17
- }
18
-
19
- &:hover {
20
- filter: brightness(70%);
21
- }
22
-
23
- &:focus,
24
- &:focus-visible,
25
- &.is-focused,
26
- &:active,
27
- &.is-active {
28
- filter: brightness(50%);
29
- }
30
-
31
- @include desktop {
32
- &:not(.is-static) {
33
- display: inline-flex;
34
- border-bottom-width: 0;
35
- }
36
- }
37
-
38
- &.has-icon {
39
- display: inline-flex;
40
- align-items: center;
41
-
42
- &::after {
43
- width: calc(100% - 48px);
44
- bottom: 5.5px;
45
- }
46
- }
47
-
48
- &.is-static::after {
49
- margin-bottom: 4px;
50
- }
51
-
52
- &.is-inverted {
53
- color: getColor('background');
54
-
55
- &.has-icon {
56
- > .icon {
57
- color: getColor('background');
58
- }
59
- }
60
- }
61
-
62
- @include touch {
63
- white-space: normal !important;
64
- box-decoration-break: clone;
65
- display: inline;
66
- }
67
- }
68
-
69
- @keyframes sliding-link {
70
- 50% {
71
- left: 100%;
72
- right: 0;
73
- }
74
-
75
- 50.01% {
76
- left: 0;
77
- right: 100%;
78
- }
79
- }
@@ -1,61 +0,0 @@
1
- // Bullet list classiques
2
- ul.list , ol.list{
3
- margin-left: 30px;
4
- li {
5
- margin-bottom: 5px;
6
- }
7
- }
8
-
9
- ul.list {
10
- list-style: disc;
11
-
12
- ul.list {
13
- list-style: circle;
14
- }
15
- }
16
-
17
- // Listes avec icônes
18
- ul.icon-list > li {
19
- display: flex;
20
- align-items: center;
21
-
22
- span[disabled] {
23
- opacity: 0.5;
24
- }
25
-
26
- .icon {
27
- flex: none;
28
- }
29
- }
30
-
31
- dl.dl {
32
- dt {
33
- font-weight: $weight-semibold;
34
- margin-bottom: 5px;
35
-
36
- &:not(:first-child) {
37
- margin-top: 20px;
38
- }
39
- }
40
-
41
- dd {
42
- color: getColor('font');
43
- font-size: $size-7;
44
- }
45
-
46
- &:not(:first-child) {
47
- margin-top: 20px;
48
- }
49
-
50
- &.is-alternate {
51
- dt {
52
- color: getColor('font');
53
- font-size: $size-7;
54
- }
55
-
56
- dd {
57
- color: getColor('font');
58
- font-size: $size-6;
59
- }
60
- }
61
- }
@@ -1,151 +0,0 @@
1
- .notification {
2
- cursor: pointer;
3
- transition: box-shadow $animation-duration;
4
-
5
- &:hover,
6
- &:active,
7
- &:focus {
8
- box-shadow: $shadow;
9
- }
10
-
11
- .icon,
12
- .call-to-action {
13
- color: getColor('font');
14
- }
15
-
16
- @include apply-shadow-box();
17
-
18
- padding: 2em 2em;
19
- background-color: getColor('background');
20
- border-radius: $radius;
21
- margin-bottom: 20px;
22
- position: relative;
23
-
24
- @include mobile {
25
- flex-wrap: wrap;
26
- }
27
-
28
- pre code {
29
- background: transparent;
30
- }
31
-
32
- & > .delete {
33
- position: absolute;
34
- right: 5px;
35
- top: 5px;
36
- }
37
-
38
- .call-to-action .button {
39
- background-color: getColor('main');
40
- border-color: getColor('main');
41
- }
42
-
43
- @each $name in $colors-brand-funcionnal {
44
- $brandName: getColorBrandName($name);
45
- $color: getColor($name);
46
- $color-invert: invertColor($name);
47
-
48
- &.is-#{$brandName} {
49
- .icon, .title {
50
- color: $color;
51
- }
52
- .call-to-action .button {
53
- color: $color-invert;
54
- }
55
- }
56
- }
57
-
58
- &.is-banner {
59
- @include desktop {
60
- padding-left: 150px;
61
- padding-right: 150px;
62
- }
63
-
64
- box-shadow: none;
65
- border-radius: 0;
66
- padding: $spacing-4;
67
- margin-bottom: 0;
68
- }
69
-
70
- &:not(.has-description) > .icon {
71
- align-self: center;
72
- }
73
-
74
- &.has-description {
75
- @include mobile {
76
- justify-content: center;
77
- text-align: center;
78
-
79
- .icon {
80
- padding: 0;
81
- margin-bottom: 30px;
82
- }
83
-
84
- .body {
85
- flex: 0 1 auto;
86
- }
87
- }
88
- }
89
-
90
- &.has-body {
91
- display: flex;
92
- }
93
-
94
- > .icon {
95
- flex: none;
96
- align-self: flex-start;
97
- padding-right: 27px;
98
- font-size: 32px;
99
- }
100
-
101
- > .body {
102
- align-self: center;
103
- color: getColor('font');
104
- margin-bottom: 0;
105
- flex-grow: 1;
106
- padding: 1px; /* Fixes flex behavior on Safari mobile */
107
-
108
- @include mobile {
109
- flex: 1;
110
- }
111
- }
112
-
113
- > .call-to-action {
114
- padding-left: 4em;
115
- align-self: center;
116
- flex: none;
117
-
118
- @include mobile {
119
- flex: 0 1 100%;
120
- margin-top: 20px;
121
- padding-left: 0;
122
- }
123
- }
124
-
125
- &.is-small {
126
- box-shadow: none;
127
- padding: 14px;
128
-
129
- > .icon {
130
- padding-right: 10px;
131
- width: 40px;
132
- font-size: 20px;
133
- }
134
-
135
- .title,
136
- .text,
137
- .paragraph {
138
- font-size: $text-14 !important;
139
- text-align: left;
140
- }
141
- color: getColor('font');
142
-
143
- @each $name, $pair in $colors-feedback {
144
- $bg-color: nth($pair, 1);
145
- &.is-#{$name} {
146
- background-color: getColor($bg-color);
147
- }
148
- }
149
-
150
- }
151
- }