@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.
- package/.buildpacks +2 -0
- package/.circleci/config.yml +22 -0
- package/.gitattributes +7 -0
- package/.github/workflows/auto-merge.yml +26 -0
- package/.github/workflows/deploy-storybook.yml +21 -0
- package/.github/workflows/npm-publish.yml +23 -0
- package/.github/workflows/on-dev-merge.yml +33 -0
- package/.nvmrc +1 -0
- package/.prettierignore +1 -0
- package/.prettierrc.json +12 -0
- package/.storybook/fonts.css +1 -0
- package/.storybook/main.js +10 -0
- package/.storybook/manager.js +6 -0
- package/.storybook/preview.js +37 -0
- package/.storybook/storybook-custom-theme.js +37 -0
- package/CHANGELOG.md +469 -0
- package/CNAME +1 -0
- package/LICENSE.md +9 -0
- package/README.md +58 -0
- package/addon/components/pix-background-header.hbs +7 -0
- package/addon/components/pix-background-header.js +5 -0
- package/addon/components/pix-banner.hbs +16 -0
- package/addon/components/pix-banner.js +43 -0
- package/addon/components/pix-block.hbs +5 -0
- package/addon/components/pix-block.js +11 -0
- package/addon/components/pix-button-base.js +27 -0
- package/addon/components/pix-button-link.hbs +16 -0
- package/addon/components/pix-button-link.js +10 -0
- package/addon/components/pix-button-upload.hbs +11 -0
- package/addon/components/pix-button-upload.js +20 -0
- package/addon/components/pix-button.hbs +43 -0
- package/addon/components/pix-button.js +54 -0
- package/addon/components/pix-collapsible.hbs +29 -0
- package/addon/components/pix-collapsible.js +27 -0
- package/addon/components/pix-filter-banner.hbs +28 -0
- package/addon/components/pix-filter-banner.js +13 -0
- package/addon/components/pix-icon-button.hbs +11 -0
- package/addon/components/pix-icon-button.js +33 -0
- package/addon/components/pix-input-code.hbs +24 -0
- package/addon/components/pix-input-code.js +133 -0
- package/addon/components/pix-input-password.hbs +43 -0
- package/addon/components/pix-input-password.js +34 -0
- package/addon/components/pix-input.hbs +30 -0
- package/addon/components/pix-input.js +26 -0
- package/addon/components/pix-message.hbs +8 -0
- package/addon/components/pix-message.js +30 -0
- package/addon/components/pix-multi-select.hbs +70 -0
- package/addon/components/pix-multi-select.js +162 -0
- package/addon/components/pix-progress-gauge.hbs +19 -0
- package/addon/components/pix-progress-gauge.js +29 -0
- package/addon/components/pix-radio-button.hbs +12 -0
- package/addon/components/pix-radio-button.js +5 -0
- package/addon/components/pix-return-to.hbs +15 -0
- package/addon/components/pix-return-to.js +20 -0
- package/addon/components/pix-select.hbs +55 -0
- package/addon/components/pix-select.js +58 -0
- package/addon/components/pix-selectable-tag.hbs +10 -0
- package/addon/components/pix-selectable-tag.js +13 -0
- package/addon/components/pix-stars.hbs +16 -0
- package/addon/components/pix-stars.js +27 -0
- package/addon/components/pix-tag.hbs +3 -0
- package/addon/components/pix-tag.js +11 -0
- package/addon/components/pix-textarea.hbs +21 -0
- package/addon/components/pix-textarea.js +17 -0
- package/addon/components/pix-tooltip-deprecated.hbs +18 -0
- package/addon/components/pix-tooltip-deprecated.js +26 -0
- package/addon/components/pix-tooltip.hbs +18 -0
- package/addon/components/pix-tooltip.js +17 -0
- package/addon/styles/_breakpoints.scss +17 -0
- package/addon/styles/_colors.scss +87 -0
- package/addon/styles/_fonts.scss +10 -0
- package/addon/styles/_form.scss +68 -0
- package/addon/styles/_pix-background-header.scss +20 -0
- package/addon/styles/_pix-banner.scss +67 -0
- package/addon/styles/_pix-block.scss +29 -0
- package/addon/styles/_pix-button-base.scss +137 -0
- package/addon/styles/_pix-button-link.scss +4 -0
- package/addon/styles/_pix-button-upload.scss +5 -0
- package/addon/styles/_pix-button.scss +40 -0
- package/addon/styles/_pix-collapsible.scss +82 -0
- package/addon/styles/_pix-filter-banner.scss +74 -0
- package/addon/styles/_pix-icon-button.scss +60 -0
- package/addon/styles/_pix-input-code.scss +71 -0
- package/addon/styles/_pix-input-password.scss +68 -0
- package/addon/styles/_pix-input.scss +93 -0
- package/addon/styles/_pix-message.scss +35 -0
- package/addon/styles/_pix-multi-select.scss +182 -0
- package/addon/styles/_pix-progress-gauge.scss +119 -0
- package/addon/styles/_pix-radio-button.scss +72 -0
- package/addon/styles/_pix-return-to.scss +64 -0
- package/addon/styles/_pix-select.scss +71 -0
- package/addon/styles/_pix-selectable-tag.scss +86 -0
- package/addon/styles/_pix-stars.scss +43 -0
- package/addon/styles/_pix-tag.scss +69 -0
- package/addon/styles/_pix-textarea.scss +39 -0
- package/addon/styles/_pix-tooltip.scss +196 -0
- package/addon/styles/_reset-css.scss +36 -0
- package/addon/styles/_spacing.scss +9 -0
- package/addon/styles/addon.scss +41 -0
- package/app/components/pix-background-header.js +1 -0
- package/app/components/pix-banner.js +1 -0
- package/app/components/pix-block.js +1 -0
- package/app/components/pix-button-link.js +1 -0
- package/app/components/pix-button-upload.js +1 -0
- package/app/components/pix-button.js +1 -0
- package/app/components/pix-collapsible.js +1 -0
- package/app/components/pix-filter-banner.js +1 -0
- package/app/components/pix-icon-button.js +1 -0
- package/app/components/pix-input-code.js +1 -0
- package/app/components/pix-input-password.js +1 -0
- package/app/components/pix-input.js +1 -0
- package/app/components/pix-message.js +1 -0
- package/app/components/pix-multi-select.js +1 -0
- package/app/components/pix-progress-gauge.js +1 -0
- package/app/components/pix-radio-button.js +1 -0
- package/app/components/pix-return-to.js +1 -0
- package/app/components/pix-select.js +1 -0
- package/app/components/pix-selectable-tag.js +1 -0
- package/app/components/pix-stars.js +1 -0
- package/app/components/pix-tag.js +1 -0
- package/app/components/pix-textarea.js +1 -0
- package/app/components/pix-tooltip-deprecated.js +1 -0
- package/app/components/pix-tooltip.js +1 -0
- package/app/stories/form.stories.js +91 -0
- package/app/stories/form.stories.mdx +16 -0
- package/app/stories/pix-background-header.stories.js +19 -0
- package/app/stories/pix-background-header.stories.mdx +36 -0
- package/app/stories/pix-banner.stories.js +89 -0
- package/app/stories/pix-banner.stories.mdx +107 -0
- package/app/stories/pix-block.stories.js +20 -0
- package/app/stories/pix-block.stories.mdx +44 -0
- package/app/stories/pix-button-link.stories.js +125 -0
- package/app/stories/pix-button-link.stories.mdx +57 -0
- package/app/stories/pix-button-upload.stories.js +85 -0
- package/app/stories/pix-button-upload.stories.mdx +39 -0
- package/app/stories/pix-button.stories.js +253 -0
- package/app/stories/pix-button.stories.mdx +99 -0
- package/app/stories/pix-collapsible.stories.js +56 -0
- package/app/stories/pix-collapsible.stories.mdx +39 -0
- package/app/stories/pix-filter-banner.stories.js +51 -0
- package/app/stories/pix-filter-banner.stories.mdx +33 -0
- package/app/stories/pix-icon-button.stories.js +95 -0
- package/app/stories/pix-icon-button.stories.mdx +90 -0
- package/app/stories/pix-input-code.stories.js +74 -0
- package/app/stories/pix-input-code.stories.mdx +46 -0
- package/app/stories/pix-input-password.stories.js +89 -0
- package/app/stories/pix-input-password.stories.mdx +69 -0
- package/app/stories/pix-input.stories.js +94 -0
- package/app/stories/pix-input.stories.mdx +57 -0
- package/app/stories/pix-message.stories.js +57 -0
- package/app/stories/pix-message.stories.mdx +71 -0
- package/app/stories/pix-multi-select.stories.js +199 -0
- package/app/stories/pix-multi-select.stories.mdx +55 -0
- package/app/stories/pix-progress-gauge.stories.js +78 -0
- package/app/stories/pix-progress-gauge.stories.mdx +43 -0
- package/app/stories/pix-radio-button.stories.js +71 -0
- package/app/stories/pix-radio-button.stories.mdx +49 -0
- package/app/stories/pix-return-to.stories.js +45 -0
- package/app/stories/pix-return-to.stories.mdx +41 -0
- package/app/stories/pix-select.stories.js +140 -0
- package/app/stories/pix-select.stories.mdx +57 -0
- package/app/stories/pix-selectable-tag.stories.js +91 -0
- package/app/stories/pix-selectable-tag.stories.mdx +55 -0
- package/app/stories/pix-stars.stories.js +43 -0
- package/app/stories/pix-stars.stories.mdx +35 -0
- package/app/stories/pix-tag.stories.js +56 -0
- package/app/stories/pix-tag.stories.mdx +46 -0
- package/app/stories/pix-textarea.stories.js +59 -0
- package/app/stories/pix-textarea.stories.mdx +36 -0
- package/app/stories/pix-tooltip-deprecated.stories.js +136 -0
- package/app/stories/pix-tooltip-deprecated.stories.mdx +143 -0
- package/app/stories/pix-tooltip.stories.js +157 -0
- package/app/stories/pix-tooltip.stories.mdx +183 -0
- package/app/styles/app.scss +0 -0
- package/config/environment.js +5 -0
- package/docs/architecture.stories.mdx +106 -0
- package/docs/assets/accessibility-storybook.png +0 -0
- package/docs/assets/screen-pix-storybook.png +0 -0
- package/docs/breaking-changes.stories.mdx +90 -0
- package/docs/changelog.stories.mdx +6 -0
- package/docs/create-component.stories.mdx +118 -0
- package/docs/design-system.stories.mdx +20 -0
- package/docs/good-practices-a11y.stories.mdx +48 -0
- package/docs/good-practices-design.stories.mdx +71 -0
- package/docs/good-practices-responsive.stories.mdx +51 -0
- package/docs/good-practices-style-css.stories.mdx +40 -0
- package/docs/good-practices-tests.stories.mdx +9 -0
- package/docs/make-a-release.stories.mdx +66 -0
- package/docs/pull_request_template.md +14 -0
- package/docs/storybook.stories.mdx +44 -0
- package/docs/use-component.stories.mdx +89 -0
- package/docs/use-install.stories.mdx +37 -0
- package/index.js +5 -0
- package/package.json +121 -0
- package/scalingo.json +17 -0
- 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,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';
|