@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -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
- }
@@ -1,146 +0,0 @@
1
- .options {
2
- display: flex;
3
- flex-wrap: wrap;
4
- align-items: center;
5
-
6
- @include desktop {
7
- flex-wrap: nowrap;
8
- }
9
-
10
- .field {
11
- margin: 15px 20px 15px 0;
12
- min-width: 70px;
13
-
14
- &:last-child {
15
- margin: 15px 0 15px 0;
16
- }
17
-
18
- input[type=radio] {
19
- @include checkradio;
20
-
21
- + label {
22
- border: 1px solid currentColor;
23
- border-radius: $radius-small;
24
- color: getColor('font');
25
- font-weight: $weight-medium;
26
- padding: 6px 15px;
27
-
28
- &::before {
29
- border-radius: 100%;
30
- border-width: 2px;
31
- border-color: currentColor;
32
- min-width: 12px;
33
- min-height: 12px;
34
- }
35
- }
36
-
37
- &:checked + label {
38
- color: getColor('alternate');
39
- border-color: currentColor;
40
- border-width: 2px;
41
-
42
- &::before {
43
- content: "";
44
- mask-image: url('./assets/icons/all/check.svg');
45
- background-color: getColor('alternate');
46
- border-width: 0;
47
- width: 20px;
48
- height: 20px;
49
- margin: 0 6px 0 -4px;
50
- mask-size: 20px;
51
- }
52
- }
53
-
54
- &[disabled] + label {
55
- cursor: not-allowed;
56
- color: getColor('grey');
57
- border-color: currentColor;
58
-
59
- &::before {
60
- border-color: currentColor;
61
- }
62
- }
63
- }
64
-
65
- &.has-icon {
66
- input[type=radio] {
67
- + label {
68
- padding-right: 45px;
69
-
70
- .icon {
71
- position: absolute;
72
- right: 15px;
73
- top: 50%;
74
- transform: translateY(-50%);
75
- height: 20px;
76
- width: 20px;
77
- }
78
- }
79
-
80
- &:checked + label {
81
- .icon {
82
- color: getColor('alternate');
83
- }
84
- }
85
-
86
- &[disabled] + label {
87
- .icon {
88
- color: getColor('grey');
89
- }
90
- }
91
- }
92
- }
93
-
94
- &.is-multiline {
95
- min-width: 120px;
96
-
97
- input[type=radio] {
98
- + label {
99
- padding-top: 55px;
100
- justify-content: center;
101
- flex-direction: column;
102
-
103
- &::before {
104
- position: absolute;
105
- top: 15px;
106
- left: 15px;
107
- }
108
-
109
- &.is-descriptive > span:not(.icon) {
110
- font-size: $text-12;
111
- font-weight: $weight-medium;
112
- }
113
-
114
- .icon {
115
- position: absolute;
116
- top: 0;
117
- font-size:30px;
118
- width:100%;
119
- }
120
- }
121
-
122
- &:checked + label {
123
- color: getColor('alternate');
124
-
125
- &::before {
126
- margin-top: -5px;
127
- }
128
-
129
- }
130
-
131
- &[disabled] + label {
132
- color: getColor('grey');
133
- }
134
- }
135
- }
136
- }
137
-
138
- &.is-inverted {
139
- input[type=radio]:checked {
140
- + label {
141
- border-color: getColor('font');
142
- color: getColor('font');
143
- }
144
- }
145
- }
146
- }
@@ -1,101 +0,0 @@
1
- $text-levels: (
2
- ($text-16, $text-20, $text-16),
3
- ($text-14, $text-18, $text-16),
4
- ($text-12, $text-15, $text-16),
5
- ($text-10, $text-12, $text-16)
6
- );
7
- $text-levels-mobile: (
8
- ($text-16, $text-20, $text-8),
9
- ($text-14, $text-18, $text-8),
10
- ($text-12, $text-15, $text-8),
11
- ($text-10, $text-12, $text-8)
12
- );
13
-
14
-
15
- .paragraph {
16
- &.text {
17
- @each $text-level in $text-levels {
18
- $i: index($text-levels, $text-level);
19
- $font-size: nth($text-level, 1);
20
- $line-height: nth($text-level, 2);
21
- $margin-bottom: nth($text-level, 3);
22
-
23
- &.is-level-#{$i} {
24
- font-size: $font-size;
25
- line-height: $line-height;
26
- font-family: $family-primary;
27
- margin-bottom: $margin-bottom;
28
- }
29
-
30
- &.is-inverted {
31
- color: getColor('background');
32
- }
33
- }
34
-
35
- @include mobile {
36
- @each $text-level-mobile in $text-levels-mobile {
37
- $i: index($text-levels-mobile, $text-level-mobile);
38
- $margin-bottom: nth($text-level-mobile, 3);
39
-
40
- &.is-level-#{$i} {
41
- margin-bottom: $margin-bottom;
42
- }
43
- }
44
- }
45
-
46
- &.is-wrapped {
47
- word-break: break-word;
48
- }
49
-
50
- &.bold {
51
- font-weight: $weight-bold;
52
- }
53
- }
54
- }
55
-
56
-
57
- .paragraph,
58
- .text {
59
- & a.link:not([disabled]),
60
- a {
61
- padding: $spacing-1;
62
- margin: -4px;
63
- text-decoration: underline;
64
- font-size: unset;
65
- font-weight: $weight-medium;
66
-
67
- &::after {
68
- content: none;
69
- }
70
-
71
- &.is-static::after {
72
- margin-bottom: 0;
73
- }
74
- }
75
- }
76
-
77
- .paragraph:not(:last-child) {
78
- margin-bottom: 10px;
79
- }
80
-
81
- .span {
82
- font-style: inherit;
83
- font-weight: inherit;
84
- }
85
-
86
- .strong {
87
- color: inherit;
88
- font-weight: $weight-bold;
89
- }
90
-
91
- .sup {
92
- line-height: 0;
93
- position: relative;
94
- vertical-align: baseline;
95
- top: -0.4em;
96
- font-size: 0.7em;
97
- }
98
-
99
- .small {
100
- font-size: 0.875em;
101
- }
@@ -1,67 +0,0 @@
1
- @include checkbox-and-radio('radio');
2
-
3
- .radios {
4
- width: 100%;
5
- column-gap: 16px;
6
- display: flex;
7
- flex-wrap: wrap;
8
-
9
- &.is-vertical {
10
- row-gap: 16px;
11
- }
12
-
13
- @include mobile {
14
- &:not(.is-mobile){
15
- display: block;
16
- }
17
- }
18
-
19
- &.is-centered,
20
- &.has-text-centered,
21
- .has-text-centered & {
22
- justify-content: center;
23
- }
24
- }
25
-
26
- .radio,
27
- .radio-tile {
28
- input:checked ~ label.radio-label {
29
- &:after {
30
- content: '';
31
- width: 12px;
32
- height: 12px;
33
- }
34
- }
35
-
36
- label.radio-label {
37
- &:before,
38
- &:after {
39
- border-radius: 50%;
40
- }
41
- }
42
- }
43
-
44
- .radio {
45
- input:checked ~ label.radio-label {
46
- &:after {
47
- left: 3px;
48
- }
49
- }
50
- }
51
-
52
- .radio-tile {
53
- input:checked ~ label.radio-label {
54
- &:after {
55
- top: 18px;
56
- right: 18px;
57
- }
58
- }
59
-
60
- input:checked:disabled ~ label.radio-label {
61
- &:after {
62
- background-color: getColor('grey');
63
- top: 19px;
64
- right: 19px;
65
- }
66
- }
67
- }