@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-select {
2
+ @import 'reset-css';
3
+
4
+ position: relative;
5
+
6
+ @mixin pixSelect {
7
+ appearance: none;
8
+ border: 1px $grey-40 solid;
9
+ border-radius: 4px;
10
+ color: $grey-90;
11
+ font-family: $font-roboto;
12
+ font-size: 0.875rem;
13
+ height: 36px;
14
+ max-width: 100%;
15
+ text-overflow: ellipsis;
16
+
17
+ @include hoverFormElement();
18
+ @include focusFormElement();
19
+ @include focusWithinFormElement();
20
+ }
21
+
22
+ select {
23
+ @include pixSelect;
24
+ padding: 0 32px 0 16px;
25
+
26
+ &.pix-select--big {
27
+ height: 44px;
28
+ }
29
+
30
+ &::-ms-expand {
31
+ display: none;
32
+ }
33
+ }
34
+
35
+ input {
36
+ @include pixSelect;
37
+ padding: 0 8px 0 16px;
38
+
39
+ &.pix-select--big {
40
+ height: 44px;
41
+ }
42
+
43
+ // Remove arrow for Chrome
44
+ &::-webkit-calendar-picker-indicator {
45
+ display: none;
46
+ }
47
+
48
+ &.pix-select--is-valid:focus,
49
+ &.pix-select--is-valid:focus-within {
50
+ border-color: $green;
51
+ }
52
+ }
53
+
54
+ &__icon {
55
+ font-size: 11px;
56
+ color: $grey-30;
57
+ right: 10px;
58
+ top: calc(50% - 6px);
59
+ padding: 0 0 2px;
60
+ position: absolute;
61
+ pointer-events: none;
62
+ }
63
+
64
+ &__label {
65
+ @include label();
66
+ }
67
+
68
+ .pix-select__label ~ .pix-select__icon {
69
+ top: calc(50% + 6px);
70
+ }
71
+ }
@@ -0,0 +1,86 @@
1
+ $checkmark-width: 0.625rem;
2
+ $checkmark-width-with-space: $checkmark-width + 0.438rem;
3
+ @mixin checkmarkColor($borderColor) {
4
+
5
+ input[type="checkbox"]:checked + label::before {
6
+ position: absolute;
7
+ top: 6px;
8
+ left: 8px;
9
+ width: $checkmark-width;
10
+ height: 0.3125rem;
11
+ border: 2px solid;
12
+ border-color: $borderColor;
13
+ border-top: none;
14
+ border-right: none;
15
+ transform: rotate(-45deg);
16
+ content: "";
17
+ }
18
+ }
19
+
20
+ .pix-selectable-tag {
21
+ @import 'reset-css';
22
+ display: inline-block;
23
+ text-align: center;
24
+ position: relative;
25
+ padding: 3px calc(8px + #{$checkmark-width-with-space} / 2);
26
+ letter-spacing: 0.009rem;
27
+ border-radius: 0.75rem;
28
+ border: $grey-30 solid 1px;
29
+ color: $grey-60;
30
+ background-color: $white;
31
+ font-family: $font-roboto;
32
+ font-size: 0.8125rem;
33
+ font-weight: $font-normal;
34
+ cursor: pointer;
35
+
36
+ input {
37
+ position: absolute;
38
+ opacity: 0;
39
+ cursor: pointer;
40
+ }
41
+
42
+ label {
43
+ cursor: pointer;
44
+ }
45
+
46
+ &:hover {
47
+ background-color: $grey-22;
48
+ border: $grey-25 solid 1px;
49
+ color: $grey-70;
50
+ }
51
+
52
+ &--checked {
53
+ @include checkmarkColor($grey-70);
54
+ border: $grey-22 solid 1px;
55
+ background-color: $grey-20;
56
+ color: $grey-70;
57
+ padding: 3px 8px;
58
+
59
+ &:hover {
60
+ @include checkmarkColor($grey-70);
61
+ background-color: $grey-22;
62
+ border: $grey-25 solid 1px;
63
+ color: $grey-70;
64
+ }
65
+
66
+ & label {
67
+ padding-left: $checkmark-width-with-space;
68
+ }
69
+ }
70
+
71
+ &:focus-within {
72
+ @include checkmarkColor($white);
73
+ background-color: $blue-zodiac;
74
+ color: $white;
75
+ box-shadow: 0 0 0 1px $blue-zodiac;
76
+ border-color: $white;
77
+ outline: none;
78
+
79
+ &:hover {
80
+ @include checkmarkColor($grey-70);
81
+ color: $grey-70;
82
+ background-color: $grey-22;
83
+ border: $grey-25 solid 1px;
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,43 @@
1
+ .pix-stars {
2
+ @import 'reset-css';
3
+
4
+ > svg {
5
+ width: 36px;
6
+ height: 36px;
7
+ }
8
+
9
+ &--blue > &__acquired {
10
+ fill: $blue;
11
+ }
12
+
13
+ &--blue > &__unacquired {
14
+ fill: #e9eafc;
15
+ }
16
+
17
+ &--grey > &__acquired {
18
+ fill: $grey-40;
19
+ }
20
+ &--grey > &__unacquired {
21
+ fill: white;
22
+ stroke: $grey-40;
23
+ }
24
+
25
+ &__acquired {
26
+ fill: url(#pix-stars-default);
27
+ }
28
+
29
+ &__unacquired {
30
+ fill: #e9eafc;
31
+ }
32
+ }
33
+
34
+ .sr-only {
35
+ position: absolute;
36
+ width: 1px;
37
+ height: 1px;
38
+ padding: 0;
39
+ margin: -1px;
40
+ overflow: hidden;
41
+ clip: rect(0,0,0,0);
42
+ border: 0;
43
+ }
@@ -0,0 +1,69 @@
1
+ .pix-tag {
2
+ @import 'reset-css';
3
+
4
+ display: inline-block;
5
+ text-align: center;
6
+ vertical-align: baseline;
7
+ white-space: nowrap;
8
+ padding: 4px 16px;
9
+
10
+ font-family: $font-roboto;
11
+ font-size: 0.8125rem;
12
+ font-weight: $font-normal;
13
+
14
+ border: 1px solid transparent;
15
+ border-radius: 0.75rem;
16
+
17
+ color: $white;
18
+ background-color: $blue;
19
+
20
+ &--blue-light {
21
+ color: darken($blue, 10%);
22
+ background-color: lighten($blue, 30%);
23
+ }
24
+
25
+ &--green {
26
+ background-color: $green;
27
+ }
28
+
29
+ &--green-light {
30
+ color: $green;
31
+ background-color: lighten($green, 65%);
32
+ }
33
+
34
+ &--purple {
35
+ background-color: $purple;
36
+ }
37
+
38
+ &--purple-light {
39
+ color: darken($purple, 10%);
40
+ background-color: lighten($purple, 30%);
41
+ }
42
+
43
+ &--yellow {
44
+ color: $grey-90;
45
+ background-color: $yellow;
46
+ }
47
+
48
+ &--yellow-light {
49
+ color: darken($yellow, 25%);
50
+ background-color: lighten($yellow, 35%);
51
+ }
52
+
53
+ &--grey {
54
+ color: $grey-15;
55
+ background-color: $grey-60;
56
+ }
57
+
58
+ &--grey-light {
59
+ color: $grey-60;
60
+ background-color: $grey-15;
61
+ }
62
+
63
+ &--compact {
64
+ font-size: 0.6875rem;
65
+ font-weight: $font-medium;
66
+ text-transform: uppercase;
67
+ padding: 4px 13px;
68
+ }
69
+ }
@@ -0,0 +1,39 @@
1
+ .pix-textarea {
2
+ @import 'reset-css';
3
+
4
+ textarea {
5
+ width: 100%;
6
+ border: 1px solid $grey-40;
7
+ border-style: solid;
8
+ border-radius: 4px;
9
+ padding: 10px 16px;
10
+ font-family: $font-roboto;
11
+ color: $grey-90;
12
+ font-size: 0.875rem;
13
+ resize: vertical;
14
+
15
+ @include hoverFormElement();
16
+ @include focusFormElement();
17
+
18
+ &.pix-textarea--error {
19
+ @include formElementInError();
20
+ }
21
+ }
22
+
23
+ p {
24
+ color: $grey-45;
25
+ margin-top: 6px;
26
+ font-size: 12px;
27
+ display: flex;
28
+ flex-direction: row-reverse;
29
+ margin-bottom: 0;
30
+ }
31
+
32
+ &__label{
33
+ @include label();
34
+ }
35
+
36
+ &__error-message {
37
+ @include errorMessage();
38
+ }
39
+ }
@@ -0,0 +1,196 @@
1
+ .pix-tooltip {
2
+ @import 'reset-css';
3
+
4
+ position: relative;
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+
9
+ & > *:first-child:hover + .pix-tooltip__content,
10
+ & > *:first-child:focus + .pix-tooltip__content{
11
+ display: block;
12
+ opacity: 1;
13
+ }
14
+ }
15
+
16
+ .pix-tooltip__content {
17
+ display: none;
18
+ opacity: 0;
19
+ pointer-events: none;
20
+ background-color: $grey-100;
21
+ position: absolute;
22
+ z-index: 100;
23
+ padding: 8px 16px;
24
+ left: auto;
25
+ color: $white;
26
+ font-family: $font-roboto;
27
+ font-size: 0.875rem;
28
+ border-radius: 6px;
29
+ line-height: 1.4rem;
30
+ transition: opacity 0.3s;
31
+
32
+ &--inline {
33
+ white-space: nowrap;
34
+ }
35
+
36
+ &::before {
37
+ content: "";
38
+ position: absolute;
39
+ border-width: 5px;
40
+ border-style: solid;
41
+ }
42
+
43
+ &--wide {
44
+ width: 382px;
45
+ }
46
+
47
+ &--light {
48
+ font-weight: $font-medium;
49
+ background-color: $white;
50
+ color: $grey-60;
51
+ box-shadow: 0px 6px 24px 0px rgba($grey-70, 0.14);
52
+
53
+ &::before {
54
+ border-width: 0px;
55
+ height: 8px;
56
+ width: 8px;
57
+ background-color: $white;
58
+ }
59
+ }
60
+ }
61
+
62
+ .pix-tooltip__content--right {
63
+ left: calc(100% + 10px);
64
+
65
+ &::before {
66
+ top: calc(50% - 5px); // 50% is the height of the parent and 5px the height of the triangle
67
+ left: -10px; // 10px is width of the ::before elmt
68
+ border-color: transparent $grey-100 transparent transparent;
69
+ }
70
+
71
+ &.pix-tooltip__content--light::before {
72
+ left: -5px;
73
+ transform: rotate(315deg);
74
+ border-color: $grey-40 transparent transparent $grey-40;
75
+ }
76
+ }
77
+
78
+ .pix-tooltip__content--top {
79
+ bottom: calc(100% + 10px);
80
+ left: 50%; // 50% here is the parent width
81
+ transform: translate(-50%); // 50% here is the width of this current element
82
+
83
+ &::before {
84
+ top: 100%;
85
+ left: calc(50% - 5px);
86
+ border-color: $grey-100 transparent transparent transparent;
87
+ }
88
+
89
+ &.pix-tooltip__content--light::before {
90
+ top: calc(100% - 5px);
91
+ transform: rotate(225deg);
92
+ border-color: $grey-40 transparent transparent $grey-40;
93
+ }
94
+ }
95
+
96
+ .pix-tooltip__content--top-left {
97
+ bottom: calc(100% + 10px);
98
+ transform: translate(calc(-50% + 22px));
99
+
100
+ &::before {
101
+ top: 100%;
102
+ left: calc(100% - 27px);
103
+ border-color: $grey-100 transparent transparent transparent;
104
+ }
105
+
106
+ &.pix-tooltip__content--light::before {
107
+ top: calc(100% - 5px);
108
+ left: calc(100% - 26px);
109
+ transform: rotate(225deg);
110
+ border-color: $grey-40 transparent transparent $grey-40;
111
+ }
112
+ }
113
+
114
+ .pix-tooltip__content--top-right {
115
+ bottom: calc(100% + 10px);
116
+ transform: translate(calc(50% - 22px));
117
+
118
+ &::before {
119
+ top: 100%;
120
+ border-color: $grey-100 transparent transparent transparent;
121
+ }
122
+
123
+ &.pix-tooltip__content--light::before {
124
+ top: calc(100% - 5px);
125
+ transform: rotate(225deg);
126
+ border-color: $grey-40 transparent transparent $grey-40;
127
+ }
128
+ }
129
+
130
+ .pix-tooltip__content--bottom {
131
+ top: calc(100% + 10px);
132
+ left: 50%;
133
+ transform: translate(-50%);
134
+
135
+ &::before {
136
+ top: -10px;
137
+ left: calc(50% - 5px);
138
+ border-color: transparent transparent $grey-100 transparent;
139
+ }
140
+
141
+ &.pix-tooltip__content--light::before {
142
+ top: -5px;
143
+ transform: rotate(45deg);
144
+ border-color: $grey-40 transparent transparent $grey-40;
145
+ }
146
+ }
147
+
148
+ .pix-tooltip__content--bottom-left {
149
+ top: calc(100% + 10px);
150
+ transform: translate(calc(-50% + 22px));
151
+
152
+ &::before {
153
+ top: -10px;
154
+ left: calc(100% - 27px);
155
+ border-color: transparent transparent $grey-100 transparent;
156
+ }
157
+
158
+ &.pix-tooltip__content--light::before {
159
+ top: -5px;
160
+ left: calc(100% - 26px);
161
+ transform: rotate(45deg);
162
+ border-color: $grey-40 transparent transparent $grey-40;
163
+ }
164
+ }
165
+
166
+ .pix-tooltip__content--bottom-right {
167
+ top: calc(100% + 10px);
168
+ transform: translate(calc(50% - 22px));
169
+
170
+ &::before {
171
+ top: -10px;
172
+ border-color: transparent transparent $grey-100 transparent;
173
+ }
174
+
175
+ &.pix-tooltip__content--light::before {
176
+ top: -5px;
177
+ transform: rotate(45deg);
178
+ border-color: $grey-40 transparent transparent $grey-40;
179
+ }
180
+ }
181
+
182
+ .pix-tooltip__content--left {
183
+ right: calc(100% + 10px);
184
+
185
+ &::before {
186
+ top: calc(50% - 5px);
187
+ right: -10px;
188
+ border-color: transparent transparent transparent $grey-100;
189
+ }
190
+
191
+ &.pix-tooltip__content--light::before {
192
+ right: -5px;
193
+ transform: rotate(135deg);
194
+ border-color: $grey-40 transparent transparent $grey-40;
195
+ }
196
+ }
@@ -0,0 +1,36 @@
1
+ ul, ol, li, form, fieldset, legend
2
+ {
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ h1, h2, h3, h4, h5, h6, p { margin-top: 0; }
8
+
9
+ fieldset,img { border: 0; }
10
+
11
+ legend { color: #000; }
12
+
13
+ li { list-style: none; }
14
+
15
+ sup { vertical-align: text-top; }
16
+
17
+ sub { vertical-align: text-bottom; }
18
+
19
+ table
20
+ {
21
+ border-collapse: collapse;
22
+ border-spacing: 0;
23
+ }
24
+
25
+ caption, th, td
26
+ {
27
+ text-align: left;
28
+ vertical-align: top;
29
+ font-weight: normal;
30
+ }
31
+
32
+ abbr, acronym
33
+ {
34
+ border-bottom: .1em dotted;
35
+ cursor: help;
36
+ }
@@ -0,0 +1,9 @@
1
+ // See https://zeroheight.com/8dd127da7/p/6877af-layout/t/053b83
2
+
3
+ $spacing-xxs: 4px;
4
+ $spacing-xs: 8px;
5
+ $spacing-s: 16px;
6
+ $spacing-m: 24px;
7
+ $spacing-l: 32px;
8
+ $spacing-xl: 40px;
9
+ $spacing-xxl: 48px;
@@ -0,0 +1,41 @@
1
+ @import 'breakpoints';
2
+ @import 'colors';
3
+ @import 'fonts';
4
+ @import 'spacing';
5
+ @import 'form';
6
+ @import 'pix-background-header';
7
+ @import 'pix-banner';
8
+ @import 'pix-block';
9
+ @import 'pix-button-base';
10
+ @import 'pix-button';
11
+ @import 'pix-collapsible';
12
+ @import 'pix-filter-banner';
13
+ @import 'pix-icon-button';
14
+ @import 'pix-message';
15
+ @import 'pix-multi-select';
16
+ @import 'pix-progress-gauge';
17
+ @import 'pix-return-to';
18
+ @import 'pix-select';
19
+ @import 'pix-stars';
20
+ @import 'pix-tag';
21
+ @import 'pix-textarea';
22
+ @import 'pix-tooltip';
23
+ @import 'pix-button-link';
24
+ @import 'pix-button-upload';
25
+ @import 'pix-input';
26
+ @import 'pix-input-password';
27
+ @import 'pix-radio-button';
28
+ @import 'pix-input-code';
29
+ @import 'pix-selectable-tag';
30
+
31
+ html {
32
+ font-size: 16px;
33
+ }
34
+
35
+ body {
36
+ font-family: $font-roboto;
37
+ }
38
+
39
+ * {
40
+ box-sizing: border-box;
41
+ }
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-background-header';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-banner';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-block';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-button-link';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-button-upload';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-button';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-collapsible';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-filter-banner';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-icon-button';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-input-code';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-input-password';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-input';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-message';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-multi-select';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-progress-gauge';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-radio-button';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-return-to';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-select';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-selectable-tag';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-stars';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-tag';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-textarea';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-tooltip-deprecated';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-tooltip';