Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7bc6ea4
Scrollbar implementation (#258)
stefashkaa Jul 21, 2021
e993ecf
fix storybook build scss (#260)
Nikita-Polyakov Jul 21, 2021
fc99cbd
Add an item in the installation instructions with the addition of ele…
Sociopacific Jul 21, 2021
78fa8fe
Merge pull request #262 from soramitsu/feature/add-element-ui-types-i…
Sociopacific Jul 21, 2021
055b7c4
Fix select arrow icon
Sociopacific Jul 22, 2021
2ee27db
Merge pull request #263 from soramitsu/fix/fix-select-arrow-icon
Sociopacific Jul 22, 2021
ca4dcaa
Improve build config (#264)
stefashkaa Jul 22, 2021
7825b3f
Fix customization page (#266)
stefashkaa Jul 22, 2021
269e3f7
Improve build config (#268)
stefashkaa Jul 26, 2021
263b952
Fix UI issues part 1 (#269)
stefashkaa Jul 27, 2021
48e4b4b
add style fixes for input button tabs (#270)
Nikita-Polyakov Jul 27, 2021
0f22278
Fix readme (#271)
stefashkaa Jul 28, 2021
c294da7
PW-239: Bridge Design Update (#273)
alexnatalia Jul 28, 2021
44b620f
Add dark theme (#275)
stefashkaa Aug 2, 2021
3505bfc
Fix theming issues (#276)
stefashkaa Aug 2, 2021
a76834d
Border Radiuses and Sizes Fixing (#272)
alexnatalia Aug 2, 2021
b8e7f20
Neumorphic switch in storybook (#278)
stefashkaa Aug 3, 2021
bef0ae8
update components styles (#280)
Nikita-Polyakov Aug 3, 2021
dcbe95f
Fixed button storybook typograhy behaviour. (#282)
alexnatalia Aug 4, 2021
1941c2f
Add switch theme function (#283)
stefashkaa Aug 4, 2021
28d81ab
fix action button (#285)
Nikita-Polyakov Aug 4, 2021
6ea8e2a
Fixed icons colors. (#287)
alexnatalia Aug 4, 2021
b395663
fix action button style (#289)
Nikita-Polyakov Aug 5, 2021
ddd273c
fix box-shadow (#292)
Nikita-Polyakov Aug 5, 2021
3f6afeb
Added tertiary SDivider type. (#291)
alexnatalia Aug 5, 2021
4615eca
Update UI Lib version. (#293)
alexnatalia Aug 5, 2021
8889d5e
Fix message box and dialog styles (#296)
stefashkaa Aug 5, 2021
ddf5bd4
add table empty-text color (#295)
Nikita-Polyakov Aug 6, 2021
9c54b55
Improve theme switch for storybook layouts (#298)
stefashkaa Aug 9, 2021
af52c27
tooltip close delay & hide after props (#300)
Nikita-Polyakov Aug 9, 2021
c1a8a0c
Fix dialog close state (#301)
stefashkaa Aug 10, 2021
dd0c0b6
Float input improvemens (#303)
Nikita-Polyakov Aug 10, 2021
e5526cc
Fix/buttons shadows (#305)
Nikita-Polyakov Aug 12, 2021
68f5c22
change styles for cart tabs & form item error input (#308)
Nikita-Polyakov Aug 12, 2021
cd1932b
PW-15: Image Lazy Loading (#306)
alexnatalia Aug 13, 2021
5e325d8
Neumorphic Tooltip Styles Fix (#310)
alexnatalia Aug 16, 2021
4bc2d38
Merge branch 'develop' into release/1.0.18
Aug 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@soramitsu/soramitsu-js-ui",
"version": "1.0.17",
"version": "1.0.18",
"private": false,
"publishConfig": {
"registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"
Expand Down
56 changes: 29 additions & 27 deletions src/stories/SImage.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ export default {

export const configurable = () => ({
components: { SImage },
template: `<s-image
:src="src"
:fit="fit"
:alt="alt"
:lazy="lazy"
:z-index="zIndex"
:has-skeleton="hasSkeleton"
:animated="animated"
style="height: 300px;"
/>`,
template: `
<s-image
:src="src"
:fit="fit"
:alt="alt"
:lazy="lazy"
:z-index="zIndex"
:has-skeleton="hasSkeleton"
:animated="animated"
style="height: 300px;"
/>`,
props: {
src: {
default: text('Src', 'https://picsum.photos/1024')
Expand Down Expand Up @@ -47,23 +48,24 @@ export const configurable = () => ({

export const LazyImages = () => ({
components: { SImage },
template: `<div style="width: 100%; overflow-y: auto; height: 300px;">
<s-image :src="imageSrc + '?random=1'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=2'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=3'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=4'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=5'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=6'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=7'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=8'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=9'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=10'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=11'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=12'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=13'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=14'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=15'" lazy style="height: inherit;" />
</div>`,
template: `
<div style="width: 100%; overflow-y: auto; height: 300px;">
<s-image :src="imageSrc + '?random=1'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=2'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=3'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=4'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=5'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=6'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=7'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=8'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=9'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=10'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=11'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=12'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=13'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=14'" lazy style="height: inherit;" />
<s-image :src="imageSrc + '?random=15'" lazy style="height: inherit;" />
</div>`,
data: () => ({
imageSrc: 'https://picsum.photos/1024/300'
})
Expand Down
58 changes: 30 additions & 28 deletions src/stories/SSkeleton.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,28 @@ export const configurable = () => ({
SSkeletonItem,
SImage
},
template: `<div class="s-flex" style="flex: 1; flex-direction: column;">
<s-skeleton
:animated="animated"
:count="count"
:loading="loading"
:rows="2"
:throttle="throttle"
style="width: 100%;"
>
<template #template>
<s-skeleton-item element="image" />
<s-skeleton-item element="p" />
<s-skeleton-item element="p" />
</template>
<template>
<s-image :src="src" :lazy="lazy" :has-skeleton="false" />
<p class="p3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class="p3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</template>
</s-skeleton>
</div>`,
template: `
<div class="s-flex" style="flex: 1; flex-direction: column;">
<s-skeleton
:animated="animated"
:count="count"
:loading="loading"
:rows="2"
:throttle="throttle"
style="width: 100%;"
>
<template #template>
<s-skeleton-item element="image" />
<s-skeleton-item element="p" />
<s-skeleton-item element="p" />
</template>
<template>
<s-image :src="src" :lazy="lazy" :has-skeleton="false" />
<p class="p3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class="p3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</template>
</s-skeleton>
</div>`,
props: {
animated: {
default: boolean('Animated', true)
Expand Down Expand Up @@ -67,13 +68,14 @@ export const SkeletonItem = () => ({
SSkeleton,
SSkeletonItem
},
template: `<div class="s-flex" style="flex: 1; flex-direction: column;">
<s-skeleton animated loading style="width: 100%;">
<template #template>
<s-skeleton-item :element="element" />
</template>
</s-skeleton>
</div>`,
template: `
<div class="s-flex" style="flex: 1; flex-direction: column;">
<s-skeleton animated loading style="width: 100%;">
<template #template>
<s-skeleton-item :element="element" />
</template>
</s-skeleton>
</div>`,
props: {
element: {
default: select('Element', Object.values(SkeletonItemElement), SkeletonItemElement.TEXT)
Expand Down
5 changes: 4 additions & 1 deletion src/stories/STooltip.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,17 @@ export const withDifferentPlacement = () => ({
components: { STooltip, SButton, SRow, SMain },
template: `<s-main style="padding: 40px 80px;">
<s-row v-for="placements in items" :key="placements[0]" style="padding-bottom: 20px;">
<s-tooltip v-for="placement in placements" :key="placement" :placement="placement" :content="placement">
<s-tooltip v-for="placement in placements" :border-radius="borderRadius" :key="placement" :placement="placement" :content="placement">
<s-button>{{ placement }}</s-button>
</s-tooltip>
</s-row>
</s-main>`,
props: {
items: {
default: () => differentPlacementData
},
borderRadius: {
default: select('BorderRadius', Object.values(BorderRadius), BorderRadius.SMALL)
}
}
})
Expand Down
57 changes: 56 additions & 1 deletion src/styles/neumorphism/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $neu-tooltip-max-width: 236px !default;
$neu-tooltip-padding: 6px 8px !default;
$neu-tooltip-line-height: 12px !default;
$neu-tooltip-background-color: var(--s-color-base-content-secondary) !default;
$neu-tooltip-arrow-shift: calc(var(--s-border-radius-mini) / 4);
$neu-tooltip-arrow-width: 8px;

.el-tooltip__popper.neumorphic {
max-width: $neu-tooltip-max-width;
Expand Down Expand Up @@ -38,16 +40,69 @@ $neu-tooltip-background-color: var(--s-color-base-content-secondary) !default;
&[x-placement^="right"] .popper__arrow {
border-right-color: $neu-tooltip-background-color;
border-bottom-color: transparent;
border-right-width: $neu-tooltip-arrow-width;
&::after {
border-right-color: inherit;
}
}
&[x-placement^="left"] .popper__arrow {
border-left-color: $neu-tooltip-background-color;
border-bottom-color: transparent;
border-left-width: $neu-tooltip-arrow-width;
&::after {
border-left-color: inherit;
}
}
}
}
&.s-border-radius {
&-mini {
&[x-placement^="right"],
&[x-placement^="right-start"],
&[x-placement^="left"],
&[x-placement^="left-start"] {
.popper__arrow {
margin-top: $neu-tooltip-arrow-shift;
}
}
&[x-placement^="right-end"],
&[x-placement^="left-end"] {
.popper__arrow {
margin-bottom: $neu-tooltip-arrow-shift;
}
}
}
&-small {
&[x-placement^="right"],
&[x-placement^="right-start"],
&[x-placement^="left"],
&[x-placement^="left-start"] {
.popper__arrow {
margin-top: calc(#{$neu-tooltip-arrow-shift} / 2);
}
}
&[x-placement^="right-end"],
&[x-placement^="left-end"] {
.popper__arrow {
margin-bottom: calc(#{$neu-tooltip-arrow-shift} / 2);
}
}
}
&-medium,
&-big {
&[x-placement^="right"],
&[x-placement^="right-start"],
&[x-placement^="left"],
&[x-placement^="left-start"] {
.popper__arrow {
margin-top: -2px;
}
}
&[x-placement^="right-end"],
&[x-placement^="left-end"] {
.popper__arrow {
margin-bottom: -2px;
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/styles/option.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.s-option {
padding-left: $s-basic-spacing * 2;
padding-right: $s-basic-spacing * 2;
}
}
2 changes: 1 addition & 1 deletion src/styles/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@
.el-table--enable-row-hover.s-hierarchical-table-level:not(.s-hierarchical-table-level--last) .el-table__body tr.s-hierarchical-table-row:hover > td {
background: transparent;
}
}
}