@1024pix/pix-ui 11.1.0

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 (196) hide show
  1. package/.buildpacks +2 -0
  2. package/.circleci/config.yml +22 -0
  3. package/.gitattributes +7 -0
  4. package/.github/workflows/auto-merge.yml +26 -0
  5. package/.github/workflows/deploy-storybook.yml +21 -0
  6. package/.github/workflows/npm-publish.yml +23 -0
  7. package/.github/workflows/on-dev-merge.yml +33 -0
  8. package/.nvmrc +1 -0
  9. package/.prettierignore +1 -0
  10. package/.prettierrc.json +12 -0
  11. package/.storybook/fonts.css +1 -0
  12. package/.storybook/main.js +10 -0
  13. package/.storybook/manager.js +6 -0
  14. package/.storybook/preview.js +37 -0
  15. package/.storybook/storybook-custom-theme.js +37 -0
  16. package/CHANGELOG.md +469 -0
  17. package/CNAME +1 -0
  18. package/LICENSE.md +9 -0
  19. package/README.md +58 -0
  20. package/addon/components/pix-background-header.hbs +7 -0
  21. package/addon/components/pix-background-header.js +5 -0
  22. package/addon/components/pix-banner.hbs +16 -0
  23. package/addon/components/pix-banner.js +43 -0
  24. package/addon/components/pix-block.hbs +5 -0
  25. package/addon/components/pix-block.js +11 -0
  26. package/addon/components/pix-button-base.js +27 -0
  27. package/addon/components/pix-button-link.hbs +16 -0
  28. package/addon/components/pix-button-link.js +10 -0
  29. package/addon/components/pix-button-upload.hbs +11 -0
  30. package/addon/components/pix-button-upload.js +20 -0
  31. package/addon/components/pix-button.hbs +43 -0
  32. package/addon/components/pix-button.js +54 -0
  33. package/addon/components/pix-collapsible.hbs +29 -0
  34. package/addon/components/pix-collapsible.js +27 -0
  35. package/addon/components/pix-filter-banner.hbs +28 -0
  36. package/addon/components/pix-filter-banner.js +13 -0
  37. package/addon/components/pix-icon-button.hbs +11 -0
  38. package/addon/components/pix-icon-button.js +33 -0
  39. package/addon/components/pix-input-code.hbs +24 -0
  40. package/addon/components/pix-input-code.js +133 -0
  41. package/addon/components/pix-input-password.hbs +43 -0
  42. package/addon/components/pix-input-password.js +34 -0
  43. package/addon/components/pix-input.hbs +30 -0
  44. package/addon/components/pix-input.js +26 -0
  45. package/addon/components/pix-message.hbs +8 -0
  46. package/addon/components/pix-message.js +30 -0
  47. package/addon/components/pix-multi-select.hbs +70 -0
  48. package/addon/components/pix-multi-select.js +162 -0
  49. package/addon/components/pix-progress-gauge.hbs +19 -0
  50. package/addon/components/pix-progress-gauge.js +29 -0
  51. package/addon/components/pix-radio-button.hbs +12 -0
  52. package/addon/components/pix-radio-button.js +5 -0
  53. package/addon/components/pix-return-to.hbs +15 -0
  54. package/addon/components/pix-return-to.js +20 -0
  55. package/addon/components/pix-select.hbs +55 -0
  56. package/addon/components/pix-select.js +58 -0
  57. package/addon/components/pix-selectable-tag.hbs +10 -0
  58. package/addon/components/pix-selectable-tag.js +13 -0
  59. package/addon/components/pix-stars.hbs +16 -0
  60. package/addon/components/pix-stars.js +27 -0
  61. package/addon/components/pix-tag.hbs +3 -0
  62. package/addon/components/pix-tag.js +11 -0
  63. package/addon/components/pix-textarea.hbs +21 -0
  64. package/addon/components/pix-textarea.js +17 -0
  65. package/addon/components/pix-tooltip-deprecated.hbs +18 -0
  66. package/addon/components/pix-tooltip-deprecated.js +26 -0
  67. package/addon/components/pix-tooltip.hbs +18 -0
  68. package/addon/components/pix-tooltip.js +17 -0
  69. package/addon/styles/_breakpoints.scss +17 -0
  70. package/addon/styles/_colors.scss +87 -0
  71. package/addon/styles/_fonts.scss +10 -0
  72. package/addon/styles/_form.scss +68 -0
  73. package/addon/styles/_pix-background-header.scss +20 -0
  74. package/addon/styles/_pix-banner.scss +67 -0
  75. package/addon/styles/_pix-block.scss +29 -0
  76. package/addon/styles/_pix-button-base.scss +137 -0
  77. package/addon/styles/_pix-button-link.scss +4 -0
  78. package/addon/styles/_pix-button-upload.scss +5 -0
  79. package/addon/styles/_pix-button.scss +40 -0
  80. package/addon/styles/_pix-collapsible.scss +82 -0
  81. package/addon/styles/_pix-filter-banner.scss +74 -0
  82. package/addon/styles/_pix-icon-button.scss +60 -0
  83. package/addon/styles/_pix-input-code.scss +71 -0
  84. package/addon/styles/_pix-input-password.scss +68 -0
  85. package/addon/styles/_pix-input.scss +93 -0
  86. package/addon/styles/_pix-message.scss +35 -0
  87. package/addon/styles/_pix-multi-select.scss +182 -0
  88. package/addon/styles/_pix-progress-gauge.scss +119 -0
  89. package/addon/styles/_pix-radio-button.scss +72 -0
  90. package/addon/styles/_pix-return-to.scss +64 -0
  91. package/addon/styles/_pix-select.scss +71 -0
  92. package/addon/styles/_pix-selectable-tag.scss +86 -0
  93. package/addon/styles/_pix-stars.scss +43 -0
  94. package/addon/styles/_pix-tag.scss +69 -0
  95. package/addon/styles/_pix-textarea.scss +39 -0
  96. package/addon/styles/_pix-tooltip.scss +196 -0
  97. package/addon/styles/_reset-css.scss +36 -0
  98. package/addon/styles/_spacing.scss +9 -0
  99. package/addon/styles/addon.scss +41 -0
  100. package/app/components/pix-background-header.js +1 -0
  101. package/app/components/pix-banner.js +1 -0
  102. package/app/components/pix-block.js +1 -0
  103. package/app/components/pix-button-link.js +1 -0
  104. package/app/components/pix-button-upload.js +1 -0
  105. package/app/components/pix-button.js +1 -0
  106. package/app/components/pix-collapsible.js +1 -0
  107. package/app/components/pix-filter-banner.js +1 -0
  108. package/app/components/pix-icon-button.js +1 -0
  109. package/app/components/pix-input-code.js +1 -0
  110. package/app/components/pix-input-password.js +1 -0
  111. package/app/components/pix-input.js +1 -0
  112. package/app/components/pix-message.js +1 -0
  113. package/app/components/pix-multi-select.js +1 -0
  114. package/app/components/pix-progress-gauge.js +1 -0
  115. package/app/components/pix-radio-button.js +1 -0
  116. package/app/components/pix-return-to.js +1 -0
  117. package/app/components/pix-select.js +1 -0
  118. package/app/components/pix-selectable-tag.js +1 -0
  119. package/app/components/pix-stars.js +1 -0
  120. package/app/components/pix-tag.js +1 -0
  121. package/app/components/pix-textarea.js +1 -0
  122. package/app/components/pix-tooltip-deprecated.js +1 -0
  123. package/app/components/pix-tooltip.js +1 -0
  124. package/app/stories/form.stories.js +91 -0
  125. package/app/stories/form.stories.mdx +16 -0
  126. package/app/stories/pix-background-header.stories.js +19 -0
  127. package/app/stories/pix-background-header.stories.mdx +36 -0
  128. package/app/stories/pix-banner.stories.js +89 -0
  129. package/app/stories/pix-banner.stories.mdx +107 -0
  130. package/app/stories/pix-block.stories.js +20 -0
  131. package/app/stories/pix-block.stories.mdx +44 -0
  132. package/app/stories/pix-button-link.stories.js +125 -0
  133. package/app/stories/pix-button-link.stories.mdx +57 -0
  134. package/app/stories/pix-button-upload.stories.js +85 -0
  135. package/app/stories/pix-button-upload.stories.mdx +39 -0
  136. package/app/stories/pix-button.stories.js +253 -0
  137. package/app/stories/pix-button.stories.mdx +99 -0
  138. package/app/stories/pix-collapsible.stories.js +56 -0
  139. package/app/stories/pix-collapsible.stories.mdx +39 -0
  140. package/app/stories/pix-filter-banner.stories.js +51 -0
  141. package/app/stories/pix-filter-banner.stories.mdx +33 -0
  142. package/app/stories/pix-icon-button.stories.js +95 -0
  143. package/app/stories/pix-icon-button.stories.mdx +90 -0
  144. package/app/stories/pix-input-code.stories.js +74 -0
  145. package/app/stories/pix-input-code.stories.mdx +46 -0
  146. package/app/stories/pix-input-password.stories.js +89 -0
  147. package/app/stories/pix-input-password.stories.mdx +69 -0
  148. package/app/stories/pix-input.stories.js +94 -0
  149. package/app/stories/pix-input.stories.mdx +57 -0
  150. package/app/stories/pix-message.stories.js +57 -0
  151. package/app/stories/pix-message.stories.mdx +71 -0
  152. package/app/stories/pix-multi-select.stories.js +199 -0
  153. package/app/stories/pix-multi-select.stories.mdx +55 -0
  154. package/app/stories/pix-progress-gauge.stories.js +78 -0
  155. package/app/stories/pix-progress-gauge.stories.mdx +43 -0
  156. package/app/stories/pix-radio-button.stories.js +71 -0
  157. package/app/stories/pix-radio-button.stories.mdx +49 -0
  158. package/app/stories/pix-return-to.stories.js +45 -0
  159. package/app/stories/pix-return-to.stories.mdx +41 -0
  160. package/app/stories/pix-select.stories.js +140 -0
  161. package/app/stories/pix-select.stories.mdx +57 -0
  162. package/app/stories/pix-selectable-tag.stories.js +91 -0
  163. package/app/stories/pix-selectable-tag.stories.mdx +55 -0
  164. package/app/stories/pix-stars.stories.js +43 -0
  165. package/app/stories/pix-stars.stories.mdx +35 -0
  166. package/app/stories/pix-tag.stories.js +56 -0
  167. package/app/stories/pix-tag.stories.mdx +46 -0
  168. package/app/stories/pix-textarea.stories.js +59 -0
  169. package/app/stories/pix-textarea.stories.mdx +36 -0
  170. package/app/stories/pix-tooltip-deprecated.stories.js +136 -0
  171. package/app/stories/pix-tooltip-deprecated.stories.mdx +143 -0
  172. package/app/stories/pix-tooltip.stories.js +157 -0
  173. package/app/stories/pix-tooltip.stories.mdx +183 -0
  174. package/app/styles/app.scss +0 -0
  175. package/config/environment.js +5 -0
  176. package/docs/architecture.stories.mdx +106 -0
  177. package/docs/assets/accessibility-storybook.png +0 -0
  178. package/docs/assets/screen-pix-storybook.png +0 -0
  179. package/docs/breaking-changes.stories.mdx +90 -0
  180. package/docs/changelog.stories.mdx +6 -0
  181. package/docs/create-component.stories.mdx +118 -0
  182. package/docs/design-system.stories.mdx +20 -0
  183. package/docs/good-practices-a11y.stories.mdx +48 -0
  184. package/docs/good-practices-design.stories.mdx +71 -0
  185. package/docs/good-practices-responsive.stories.mdx +51 -0
  186. package/docs/good-practices-style-css.stories.mdx +40 -0
  187. package/docs/good-practices-tests.stories.mdx +9 -0
  188. package/docs/make-a-release.stories.mdx +66 -0
  189. package/docs/pull_request_template.md +14 -0
  190. package/docs/storybook.stories.mdx +44 -0
  191. package/docs/use-component.stories.mdx +89 -0
  192. package/docs/use-install.stories.mdx +37 -0
  193. package/index.js +5 -0
  194. package/package.json +121 -0
  195. package/scalingo.json +17 -0
  196. package/servers.conf.erb +30 -0
@@ -0,0 +1,71 @@
1
+ .pix-input-code {
2
+ @import 'reset-css';
3
+ display: flex;
4
+
5
+ // hide up/down cursors
6
+ input[type=number] {
7
+ // Firefox
8
+ -moz-appearance: textfield;
9
+
10
+ // The rest
11
+ &::-webkit-inner-spin-button,
12
+ &::-webkit-outer-spin-button {
13
+ -webkit-appearance: none;
14
+ }
15
+ }
16
+
17
+ fieldset legend {
18
+ display: none;
19
+ }
20
+
21
+ #pix-input-code__details-of-use {
22
+ display: none;
23
+ }
24
+
25
+ input:nth-of-type(3n+4) {
26
+ margin-left: 12px;
27
+ }
28
+
29
+ input.pix-input-code__input {
30
+ display: inline-block;
31
+ height: 44px;
32
+ width: 38px;
33
+ padding: 10px 12px 8px;
34
+ background-color: $grey-10;
35
+ border: 1.4px solid $grey-50;
36
+ font-family: $font-roboto;
37
+ font-size: 1.25rem;
38
+ color: $grey-90;
39
+ border-radius: 4px;
40
+ text-align: center;
41
+ outline: none;
42
+
43
+ @include hoverFormElement();
44
+
45
+ &:not(:first-child) {
46
+ margin-left: 4px;
47
+ }
48
+
49
+ &::placeholder {
50
+ color: $grey-50;
51
+ }
52
+
53
+ &:hover {
54
+ border-color: $grey-70;
55
+ }
56
+
57
+ &:active,
58
+ &:focus {
59
+ border-color: $blue;
60
+ background-color: $white;
61
+
62
+ &::placeholder {
63
+ opacity: 0;
64
+ }
65
+ }
66
+
67
+ &.filled {
68
+ background-color: $white;
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,68 @@
1
+ .pix-input-password {
2
+ @import 'reset-css';
3
+
4
+ display: flex;
5
+ flex-direction: column;
6
+ position: relative;
7
+
8
+ &__container {
9
+ position: relative;
10
+ display: flex;
11
+ align-items: center;
12
+ border: 1px solid $grey-40;
13
+ border-radius: $spacing-xxs;
14
+ padding: 1px 0 1px 1px;
15
+
16
+ @include hoverFormElement();
17
+
18
+ &:focus-within {
19
+ border-color: $blue;
20
+ box-shadow: inset 0 0 0 0.6px $blue;
21
+ }
22
+
23
+ input {
24
+ @include input();
25
+ height: 34px;
26
+ border: none;
27
+ outline: none;
28
+ flex-grow: 1;
29
+ }
30
+ }
31
+
32
+ &__with-prefix {
33
+ input {
34
+ padding-left: 0;
35
+ }
36
+ }
37
+
38
+ &__prefix {
39
+ padding: 0 4px 0 8px;
40
+ }
41
+
42
+ &__button {
43
+ &:hover,
44
+ &:active,
45
+ &:focus {
46
+ background-color: transparent;
47
+ color: $grey-90;
48
+ }
49
+ }
50
+
51
+ &__error-container {
52
+ padding-right: $spacing-m;
53
+ @include formElementInError();
54
+ }
55
+
56
+ svg.pix-input-password__error-icon {
57
+ position: absolute;
58
+ bottom: 10px;
59
+ right: 6px;
60
+ color: $white;
61
+ background: $red;
62
+ border-radius: 50%;
63
+ font-size: 0.6rem;
64
+ padding: 2px;
65
+ width: 18px;
66
+ height: 18px;
67
+ }
68
+ }
@@ -0,0 +1,93 @@
1
+ .pix-input {
2
+ @import 'reset-css';
3
+
4
+ display: flex;
5
+ flex-direction: column;
6
+ position: relative;
7
+
8
+ &__label {
9
+ @include label();
10
+ }
11
+
12
+ &__information {
13
+ font-family: $font-roboto;
14
+ font-size: 0.75rem;
15
+ color: $blue-zodiac;
16
+ margin-bottom: 4px;
17
+ }
18
+
19
+ &__container {
20
+ position: relative;
21
+ }
22
+
23
+ svg.pix-input__icon {
24
+ position: absolute;
25
+ bottom: 9px;
26
+ right: 6px;
27
+ color: $grey-25;
28
+ font-size: 1.125rem;
29
+ width: 18px;
30
+ height: 18px;
31
+
32
+ &--left {
33
+ left: 6px;
34
+ }
35
+ }
36
+
37
+ svg ~ svg.pix-input__icon {
38
+ right: calc(6px + 12px + 2px);
39
+ margin-right: 8px;
40
+ }
41
+
42
+ svg.pix-input__error-icon {
43
+ position: absolute;
44
+ bottom: 10px;
45
+ right: 6px;
46
+ color: $white;
47
+ background: $red;
48
+ border-radius: 50%;
49
+ font-size: 0.6rem;
50
+ padding: 2px;
51
+ width: 18px;
52
+ height: 18px;
53
+ }
54
+
55
+ &__error-message {
56
+ @include errorMessage();
57
+ margin-top: 4px;
58
+ bottom: calc(-4px - 1px - 0.75rem);
59
+ }
60
+
61
+ input {
62
+ display: flex;
63
+ height: 36px;
64
+ flex-direction: column;
65
+ justify-content: center;
66
+ border: 1px solid $grey-40;
67
+
68
+ @include input();
69
+ @include hoverFormElement();
70
+ @include focusFormElement();
71
+
72
+ &::placeholder {
73
+ color: $grey-30;
74
+ }
75
+
76
+ &.pix-input__input--error {
77
+ padding-right: 32px;
78
+ @include formElementInError();
79
+ }
80
+
81
+ &.pix-input__input--icon {
82
+ padding-right: 32px;
83
+ }
84
+
85
+ &.pix-input__input--icon.pix-input__input--icon-left {
86
+ padding-left: 32px;
87
+ }
88
+
89
+ &.pix-input__input--error.pix-input__input--icon:not(.pix-input__input--icon-left) {
90
+ padding-right: 32px;
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,35 @@
1
+ .pix-message {
2
+ @import 'reset-css';
3
+
4
+ margin: 0;
5
+ padding: 0.75rem 1rem;
6
+ font-size: 0.875rem;
7
+ border-radius: 4px;
8
+ align-items: center;
9
+ display: flex;
10
+
11
+ &.pix-message--info {
12
+ color: $blue-alert-dark;
13
+ background-color: $blue-alert-light;
14
+ }
15
+ &.pix-message--alert {
16
+ color: $pink-alert-dark;
17
+ background-color: $pink-alert-light;
18
+ }
19
+ &.pix-message--error {
20
+ color: $pink-alert-dark;
21
+ background-color: $pink-alert-light;
22
+ }
23
+ &.pix-message--success {
24
+ color: $green-alert-dark;
25
+ background-color: $green-alert-light;
26
+ }
27
+ &.pix-message--warning {
28
+ color: $yellow-alert-dark;
29
+ background-color: $yellow-alert-light;
30
+ }
31
+
32
+ svg {
33
+ margin-right: 8px;
34
+ }
35
+ }
@@ -0,0 +1,182 @@
1
+ .pix-multi-select {
2
+ display: inline-block;
3
+ position: relative;
4
+ min-width: 250px;
5
+ width: 100%;
6
+
7
+ &__label {
8
+ @include label();
9
+ }
10
+ }
11
+
12
+ .pix-multi-select-header {
13
+ display: flex;
14
+ flex-direction: row;
15
+ align-items: center;
16
+ font-family: $font-roboto;
17
+ font-weight: $font-normal;
18
+ position: relative;
19
+ border: 1px $grey-40 solid;
20
+ height: 36px;
21
+ padding: 0px 32px 0px 16px;
22
+ width: 100%;
23
+ background-color: $white;
24
+ border-radius: 4px;
25
+ outline: none;
26
+ font-size: 0.875rem;
27
+ cursor: pointer;
28
+ color: $grey-90;
29
+
30
+ @include hoverFormElement();
31
+ @include focusWithinFormElement();
32
+
33
+ &--big {
34
+ height: 44px;
35
+ }
36
+
37
+ &__search-icon {
38
+ color: $grey-30;
39
+ }
40
+
41
+ &__title {
42
+ position: absolute;
43
+ opacity: 0;
44
+ width: 0;
45
+ height: 0;
46
+ }
47
+
48
+ input.pix-multi-select-header__search-input {
49
+ height: inherit;
50
+ width: 100%;
51
+ border: none;
52
+ outline: none;
53
+ padding: 0 10px;
54
+ border-radius: 3px;
55
+ font-size: 0.875rem;
56
+ color: $grey-90;
57
+ background: transparent;
58
+ }
59
+
60
+ &__dropdown-icon {
61
+ font-size: 11px;
62
+ color: $grey-30;
63
+ right: 10px;
64
+ top: calc(50% - 6px);
65
+ padding: 0 0 2px;
66
+ position: absolute;
67
+ pointer-events: none;
68
+
69
+ &--expand {
70
+ color: $blue;
71
+ }
72
+ }
73
+ }
74
+
75
+
76
+ .pix-multi-select-list {
77
+ width: 100%;
78
+ margin: 0px;
79
+ z-index: 200;
80
+ background-color: $white;
81
+ position: absolute;
82
+ border-top: none;
83
+ border-radius: 0 0 4px 4px;
84
+ overflow-y: auto;
85
+ max-height: 200px;
86
+ list-style-type: none;
87
+ padding: 0;
88
+ box-shadow: 0px 8px 24px 0px rgba(23, 43, 77, 0.1);
89
+
90
+ &--hidden {
91
+ display: none;
92
+ }
93
+
94
+ &::-webkit-scrollbar {
95
+ width: 11px;
96
+ }
97
+ &::-webkit-scrollbar-track {
98
+ border-radius: 4px;
99
+ border: 1px solid $grey-20;
100
+ background: $white;
101
+ }
102
+ &::-webkit-scrollbar-thumb {
103
+ border-radius: 4px;
104
+ background: $grey-30;
105
+ }
106
+ &::-webkit-scrollbar-thumb:hover {
107
+ background: $grey-35;
108
+ }
109
+
110
+ li.pix-multi-select-list__item {
111
+ font-family: $font-roboto;
112
+ position: relative;
113
+ border-bottom: 1px solid $grey-15;
114
+ list-style: none;
115
+ font-size: 0.9rem;
116
+
117
+ @include hoverFormElement();
118
+
119
+ &--no-result {
120
+ text-align: center;
121
+ padding: 12px 0;
122
+ }
123
+
124
+ &:last-of-type {
125
+ border-bottom: none;
126
+ }
127
+ }
128
+
129
+ &__checkbox {
130
+ position: absolute;
131
+ opacity: 0;
132
+
133
+ & + label {
134
+ position: relative;
135
+ display: flex;
136
+ align-items: center;
137
+ padding: 11px 16px;
138
+ cursor: pointer;
139
+ }
140
+
141
+ & + label:before {
142
+ content: '';
143
+ margin-right: 12px;
144
+ display: inline-block;
145
+ vertical-align: text-top;
146
+ min-width: 16px;
147
+ min-height: 16px;
148
+ border-radius: 4px;
149
+ background: $white;
150
+ border: 1px solid $grey-20;
151
+ }
152
+
153
+ &:checked + label:before {
154
+ background: $blue;
155
+ border-color: $blue;
156
+ }
157
+
158
+ &:checked + label:after {
159
+ position: absolute;
160
+ top: calc(50% - 5px);
161
+ left: 21px;
162
+ width: 7px;
163
+ height: 5px;
164
+ background: transparent;
165
+ border: 2px solid $white;
166
+ border-top: none;
167
+ border-right: none;
168
+ transform: rotate(-45deg);
169
+ content: '';
170
+ }
171
+
172
+ &--searchable {
173
+ & + label {
174
+ padding: 11px 36px;
175
+ }
176
+
177
+ &:checked + label:after {
178
+ left: 41px;
179
+ }
180
+ }
181
+ }
182
+ }
@@ -0,0 +1,119 @@
1
+ .progress-gauge {
2
+ position: relative;
3
+ min-width: 200px;
4
+ width: 100%;
5
+ border-radius: 5px;
6
+
7
+ &__sub-title {
8
+ font-size: 0.813rem;
9
+ font-weight: $font-light;
10
+ color: $yellow;
11
+ margin: 6px 0;
12
+ letter-spacing: 0.4px;
13
+ text-transform: uppercase;
14
+ }
15
+
16
+ &__marker, &__referrer {
17
+ height: 4px;
18
+ border-radius: 5px;
19
+ text-align: right;
20
+ }
21
+
22
+ &__marker {
23
+ margin-top: -4px;
24
+ }
25
+
26
+ &__tooltip-wrapper {
27
+ position: relative;
28
+ }
29
+
30
+ &__tooltip {
31
+ position: absolute;
32
+ min-width: 40px;
33
+ left: 100%;
34
+ transform: translate(-50%);
35
+ bottom: calc(100% + 10px);
36
+ border-radius: 5px;
37
+ text-align: center;
38
+ line-height: normal;
39
+ padding: 4px;
40
+ font-size: 0.8rem;
41
+ font-family: $font-open-sans;
42
+ font-weight: $font-bold;
43
+
44
+ &::before {
45
+ content: '';
46
+ position: absolute;
47
+ left: calc(50% - 4px);
48
+ border-top: 4px solid;
49
+ border-right: 4px solid transparent;
50
+ border-left: 4px solid transparent;
51
+ bottom: -4px;
52
+ }
53
+ }
54
+
55
+ &--white {
56
+ & .progress-gauge__referrer {
57
+ background-color: lighten($blue, 15%);
58
+ }
59
+
60
+ & .progress-gauge__marker {
61
+ background: $white;
62
+ }
63
+
64
+ & .progress-gauge__tooltip {
65
+ background: $white;
66
+ color: $blue;
67
+
68
+ &::before {
69
+ color: $white;
70
+ border-top-color: $white;
71
+ }
72
+ }
73
+
74
+ & .progress-gauge__sub-title {
75
+ color: $white;
76
+ }
77
+ }
78
+
79
+ &--yellow {
80
+ & .progress-gauge__referrer {
81
+ background-color: $grey-20;
82
+ }
83
+
84
+ & .progress-gauge__marker {
85
+ background: $pix-yellow-gradient-right;
86
+ }
87
+
88
+ & .progress-gauge__tooltip {
89
+ background: $pix-yellow-gradient;
90
+ color: $white;
91
+
92
+ &::before {
93
+ color: $yellow;
94
+ border-top-color: $yellow;
95
+ }
96
+ }
97
+
98
+ & .progress-gauge__sub-title {
99
+ color: $yellow;
100
+ }
101
+ }
102
+
103
+ &--tooltip-left {
104
+ & .progress-gauge__tooltip {
105
+ border-bottom-left-radius: 0;
106
+ bottom: calc(100% + 14px);
107
+ transform: none;
108
+ left: 100%;
109
+
110
+ &::before {
111
+ border-top: 8px solid;
112
+ border-right: 8px solid transparent;
113
+ border-left: none;
114
+ left: 0;
115
+ bottom: -8px;
116
+ }
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,72 @@
1
+ .pix-radio-button {
2
+ cursor: pointer;
3
+ font-family: $font-roboto;
4
+ font-size: 0.875rem;
5
+ color: $grey-70;
6
+
7
+ label {
8
+ display: flex;
9
+ align-items: center;
10
+ }
11
+
12
+ input {
13
+ appearance: none;
14
+ position: relative;
15
+ border-radius: 50%;
16
+ width: 18px;
17
+ height: 18px;
18
+ margin: 0 10px 0 0;
19
+ border: 1px solid $grey-70;
20
+ cursor: pointer;
21
+ background-color: transparent;
22
+
23
+ &:hover {
24
+ background-color: $grey-15;
25
+ box-shadow: 0 0 0 8px $grey-15;
26
+ transition: all 0.3s ease;
27
+ }
28
+
29
+ &:focus-visible {
30
+ box-shadow: $white 0 0 0 2px, $blue 0 0 0 4px;
31
+ outline: none;
32
+ }
33
+
34
+ &:active {
35
+ border-color: $blue;
36
+ background-color: transparent;
37
+ box-shadow: none;
38
+ }
39
+
40
+ &:checked {
41
+ border-color: $blue;
42
+
43
+ &:after {
44
+ background-color: $blue;
45
+ border-radius: 50%;
46
+ content: "";
47
+ height: 12px;
48
+ width: 12px;
49
+ position: absolute;
50
+ left: 50%;
51
+ top: 50%;
52
+ transform: translate(-50%, -50%);
53
+ }
54
+ }
55
+
56
+ &:disabled {
57
+ border: 1px solid $grey-45;
58
+ background-color: transparent;
59
+ box-shadow: none;
60
+ cursor: not-allowed;
61
+
62
+ &:checked:after {
63
+ background-color: $grey-25;
64
+ }
65
+ }
66
+ }
67
+
68
+ &--disabled {
69
+ cursor: not-allowed;
70
+ color: $grey-45;
71
+ }
72
+ }
@@ -0,0 +1,64 @@
1
+ .pix-return-to {
2
+ @import 'reset-css';
3
+
4
+ font-size: 1rem;
5
+ font-weight: $font-medium;
6
+ letter-spacing: 0.15px;
7
+ display: inline-flex;
8
+ align-items: center;
9
+ border-bottom: transparent solid 2px;
10
+ text-decoration: none;
11
+
12
+ &__icon {
13
+ position: relative;
14
+ z-index: 3;
15
+ padding: 4px 7px;
16
+ font-size: 1rem;
17
+ }
18
+
19
+ &__icon::before {
20
+ content: '';
21
+ position: absolute;
22
+ z-index: -1;
23
+ width: 100%; height: 100%;
24
+ top: 0; left: 0;
25
+ opacity: 0;
26
+ border-radius: 50%;
27
+ transition: 0.3s ease opacity;
28
+ }
29
+
30
+ &__text { margin-left: 4px; }
31
+
32
+ &:hover, &:active {
33
+ cursor: pointer;
34
+ background-color: transparent;
35
+ border-bottom-color: transparent;
36
+
37
+ ::before { opacity: 0.2; }
38
+ }
39
+
40
+ &:focus-visible {
41
+ background-color: $yellow;
42
+ border-bottom: $grey-100 solid 2px;
43
+
44
+ .pix-return-to__text {
45
+ padding-right: 6px;
46
+ }
47
+ }
48
+
49
+ @mixin coloriseLink($textColor, $textHoverColor, $arrowColor) {
50
+ color: $textColor;
51
+
52
+ .pix-return-to__icon { color: $arrowColor; }
53
+
54
+ &:hover, &:active {
55
+ color: $textHoverColor;
56
+
57
+ ::before { background-color: $arrowColor; }
58
+ }
59
+ }
60
+
61
+ &--white { @include coloriseLink($grey-10, $white, $white); }
62
+ &--black { @include coloriseLink($grey-80, $grey-200, $grey-60); }
63
+ &--blue { @include coloriseLink($communication-dark, $blue-hover, $communication-dark); }
64
+ }