Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!refactor: use Popper.js instead of Tether, update deps #574

Merged
merged 1 commit into from Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1,162 changes: 580 additions & 582 deletions package-lock.json

Large diffs are not rendered by default.

501 changes: 236 additions & 265 deletions packages/babel-plugin-veui/package-lock.json

Large diffs are not rendered by default.

370 changes: 165 additions & 205 deletions packages/babel-preset-veui/package-lock.json

Large diffs are not rendered by default.

548 changes: 284 additions & 264 deletions packages/veui-loader/package-lock.json

Large diffs are not rendered by default.

1,510 changes: 755 additions & 755 deletions packages/veui-theme-dls-icons/package-lock.json

Large diffs are not rendered by default.

60 changes: 49 additions & 11 deletions packages/veui-theme-dls/components/region-picker.less
Expand Up @@ -88,43 +88,81 @@
content: "";
display: block;
position: absolute;
bottom: -5px;
left: -8px;
width: ~"calc(100% + 8px)";
height: 10px;
background-color: #fff;
}

&::after {
bottom: -10px;
left: 20px;
&-overlay {
margin-top: -16px;
}

.tether-element-attached-bottom + &-overlay &,
.tether-element-attached-bottom + [data-tether-id] + &-overlay & {
[x-placement*="top"] + &-overlay & {
&::before {
top: -15px;
bottom: auto;
}

&::after {
top: -20px;
bottom: auto;
}
}
[x-placement*="bottom"] + &-overlay & {
&::before {
bottom: -5px;
}
&::after {
bottom: -10px;
}
}

[x-placement*="start"] + &-overlay & {
&::before {
left: -8px;
}

&::after {
left: 20px;
}
}

[x-placement*="end"] + &-overlay & {
&::before {
right: 0;
}

&::after {
right: 20px;
}
}
}
}

&-units {
display: table;
margin: 10px 0 0 -8px;
background-color: #fff;
border-top: 1px solid @veui-gray-color-8;
z-index: 0;
.veui-overlay-shadow();

.tether-element-attached-bottom & {
margin: 0 0 10px -8px;
[x-placement*="top"] & {
margin-top: 0;
margin-bottom: 10px;
}

[x-placement*="bottom"] & {
margin-top: 10px;
margin-bottom: 0;
}

[x-placement*="start"] & {
margin-right: 0;
margin-left: -8px;
}

[x-placement*="end"] & {
margin-right: -8px;
margin-left: 0;
}
}

Expand Down
20 changes: 12 additions & 8 deletions packages/veui-theme-dls/components/tooltip.less
Expand Up @@ -80,22 +80,22 @@
}
}

.tether-element-attached-top.tether-target-attached-bottom & {
[x-placement*="bottom"] & {
margin-top: @gap;
.make-direction(top);
}

.tether-element-attached-right.tether-target-attached-left & {
[x-placement*="left"] & {
margin-right: @gap;
.make-direction(right);
}

.tether-element-attached-bottom.tether-target-attached-top & {
[x-placement*="top"] & {
margin-bottom: @gap;
.make-direction(bottom);
}

.tether-element-attached-left.tether-target-attached-right & {
[x-placement*="right"] & {
margin-left: @gap;
.make-direction(left);
}
Expand Down Expand Up @@ -127,19 +127,23 @@
}
}

.tether-element-attached-top.tether-target-attached-top & {
[x-placement="right-start"] &,
[x-placement="left-start"] & {
.make-align(top);
}

.tether-element-attached-right.tether-target-attached-right & {
[x-placement="top-end"] &,
[x-placement="bottom-end"] & {
.make-align(right);
}

.tether-element-attached-bottom.tether-target-attached-bottom & {
[x-placement="right-end"] &,
[x-placement="left-end"] & {
.make-align(bottom);
}

.tether-element-attached-left.tether-target-attached-left & {
[x-placement="top-start"] &,
[x-placement="bottom-start"] & {
.make-align(left);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/veui-theme-dls/dropdown.less
Expand Up @@ -42,8 +42,8 @@
transform: scaleY(0);
}

.tether-element-attached-bottom.@{veui-prefix}-overlay-enter-active &,
.tether-element-attached-bottom.@{veui-prefix}-overlay-leave-active & {
[x-placement*="top"].@{veui-prefix}-overlay-enter-active &,
[x-placement*="top"].@{veui-prefix}-overlay-leave-active & {
transform-origin: 50% 100%;
}

Expand Down
30 changes: 15 additions & 15 deletions packages/veui-theme-dls/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.