@pareto-engineering/design-system 2.0.0-alpha.18 → 2.0.0-alpha.21
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/dist/cjs/a/Conversation/styles.scss +1 -13
- package/dist/cjs/a/index.js +8 -0
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
- package/dist/cjs/c/ContentSlides/styles.scss +4 -4
- package/dist/es/a/Conversation/styles.scss +1 -13
- package/dist/es/a/index.js +1 -0
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
- package/dist/es/c/ContentSlides/styles.scss +4 -4
- package/package.json +1 -1
- package/src/__snapshots__/Storyshots.test.js.snap +437 -4
- package/src/stories/a/SnapScroller.stories.jsx +98 -0
- package/src/stories/c/ContentSlides.stories.jsx +154 -2
- package/src/ui/a/Conversation/styles.scss +1 -13
- package/src/ui/a/SnapScroller/SnapScroller.jsx +83 -0
- package/src/ui/a/SnapScroller/index.js +2 -0
- package/src/ui/a/SnapScroller/styles.scss +38 -0
- package/src/ui/a/index.js +1 -0
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +1 -1
- package/src/ui/c/ContentSlides/styles.scss +4 -4
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
$default-padding: var(--u);
|
|
8
8
|
$default-conversation-background: var(--y);
|
|
9
|
-
$default-message-max-width: calc(100% - #{$default-padding});
|
|
9
|
+
$default-message-max-width: calc(100% - 4 * #{$default-padding});
|
|
10
10
|
$default-message-min-width: 12em;
|
|
11
11
|
$default-message-border: var(--theme-border);
|
|
12
12
|
$triangle-border-size: 15px;
|
|
@@ -147,15 +147,3 @@ $triangle-after-side:25px;
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
//@keyframes fadeIn {
|
|
152
|
-
// from {
|
|
153
|
-
// opacity: 0;
|
|
154
|
-
// transform: translate3d(0, 50%, 0);
|
|
155
|
-
// }
|
|
156
|
-
//
|
|
157
|
-
// to {
|
|
158
|
-
// opacity: 1;
|
|
159
|
-
// transform: translate3d(0, 0, 0);
|
|
160
|
-
// }
|
|
161
|
-
//}
|
package/dist/cjs/a/index.js
CHANGED
|
@@ -153,6 +153,12 @@ Object.defineProperty(exports, "OvalIllustration", {
|
|
|
153
153
|
return _OvalIllustration.OvalIllustration;
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "SnapScroller", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _SnapScroller.SnapScroller;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
156
162
|
Object.defineProperty(exports, "BackgroundGradient", {
|
|
157
163
|
enumerable: true,
|
|
158
164
|
get: function get() {
|
|
@@ -204,4 +210,6 @@ var _Shapes = require("./Shapes");
|
|
|
204
210
|
|
|
205
211
|
var _OvalIllustration = require("./OvalIllustration");
|
|
206
212
|
|
|
213
|
+
var _SnapScroller = require("./SnapScroller");
|
|
214
|
+
|
|
207
215
|
var _BackgroundGradient = require("./BackgroundGradient");
|
|
@@ -14,7 +14,7 @@ $class-navigator:navigator;
|
|
|
14
14
|
$default-sidebar-width:minmax(250px, 330px);
|
|
15
15
|
$default-border:none;//2px solid var(--grid);
|
|
16
16
|
$default-border-radius:var(--theme-border-radius);
|
|
17
|
-
$default-content-background:var(--
|
|
17
|
+
$default-content-background: var(--background1);
|
|
18
18
|
$default-padding:var(--u);
|
|
19
19
|
|
|
20
20
|
$mobile-content-margin:6em;
|
|
@@ -61,7 +61,6 @@ $mobile-content-margin:6em;
|
|
|
61
61
|
|
|
62
62
|
//.#{$class-main-container} {
|
|
63
63
|
main {
|
|
64
|
-
background: var(--dark-y);
|
|
65
64
|
overflow: hidden;
|
|
66
65
|
position: relative;
|
|
67
66
|
|
|
@@ -79,7 +78,7 @@ $mobile-content-margin:6em;
|
|
|
79
78
|
.#{bem.$element-content} {
|
|
80
79
|
background: $default-content-background;
|
|
81
80
|
|
|
82
|
-
border:
|
|
81
|
+
border: var(--theme-border);
|
|
83
82
|
border-radius: $default-border-radius;
|
|
84
83
|
max-width: 600px;
|
|
85
84
|
padding: $default-padding;
|
|
@@ -108,8 +107,9 @@ $mobile-content-margin:6em;
|
|
|
108
107
|
|
|
109
108
|
.#{$class-horizontal-menu} {
|
|
110
109
|
background: $default-content-background;
|
|
111
|
-
border-bottom:
|
|
110
|
+
border-bottom: var(--theme-border);
|
|
112
111
|
color: var(--heading);
|
|
112
|
+
z-index: 1;
|
|
113
113
|
|
|
114
114
|
.#{bem.$element-content} {
|
|
115
115
|
display: grid;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
$default-padding: var(--u);
|
|
8
8
|
$default-conversation-background: var(--y);
|
|
9
|
-
$default-message-max-width: calc(100% - #{$default-padding});
|
|
9
|
+
$default-message-max-width: calc(100% - 4 * #{$default-padding});
|
|
10
10
|
$default-message-min-width: 12em;
|
|
11
11
|
$default-message-border: var(--theme-border);
|
|
12
12
|
$triangle-border-size: 15px;
|
|
@@ -147,15 +147,3 @@ $triangle-after-side:25px;
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
//@keyframes fadeIn {
|
|
152
|
-
// from {
|
|
153
|
-
// opacity: 0;
|
|
154
|
-
// transform: translate3d(0, 50%, 0);
|
|
155
|
-
// }
|
|
156
|
-
//
|
|
157
|
-
// to {
|
|
158
|
-
// opacity: 1;
|
|
159
|
-
// transform: translate3d(0, 0, 0);
|
|
160
|
-
// }
|
|
161
|
-
//}
|
package/dist/es/a/index.js
CHANGED
|
@@ -20,4 +20,5 @@ export { DotInfo } from "./DotInfo";
|
|
|
20
20
|
export { Timestamp } from "./Timestamp";
|
|
21
21
|
export { Shapes } from "./Shapes";
|
|
22
22
|
export { OvalIllustration } from "./OvalIllustration";
|
|
23
|
+
export { SnapScroller } from "./SnapScroller";
|
|
23
24
|
export { BackgroundGradient } from "./BackgroundGradient";
|
|
@@ -14,7 +14,7 @@ $class-navigator:navigator;
|
|
|
14
14
|
$default-sidebar-width:minmax(250px, 330px);
|
|
15
15
|
$default-border:none;//2px solid var(--grid);
|
|
16
16
|
$default-border-radius:var(--theme-border-radius);
|
|
17
|
-
$default-content-background:var(--
|
|
17
|
+
$default-content-background: var(--background1);
|
|
18
18
|
$default-padding:var(--u);
|
|
19
19
|
|
|
20
20
|
$mobile-content-margin:6em;
|
|
@@ -61,7 +61,6 @@ $mobile-content-margin:6em;
|
|
|
61
61
|
|
|
62
62
|
//.#{$class-main-container} {
|
|
63
63
|
main {
|
|
64
|
-
background: var(--dark-y);
|
|
65
64
|
overflow: hidden;
|
|
66
65
|
position: relative;
|
|
67
66
|
|
|
@@ -79,7 +78,7 @@ $mobile-content-margin:6em;
|
|
|
79
78
|
.#{bem.$element-content} {
|
|
80
79
|
background: $default-content-background;
|
|
81
80
|
|
|
82
|
-
border:
|
|
81
|
+
border: var(--theme-border);
|
|
83
82
|
border-radius: $default-border-radius;
|
|
84
83
|
max-width: 600px;
|
|
85
84
|
padding: $default-padding;
|
|
@@ -108,8 +107,9 @@ $mobile-content-margin:6em;
|
|
|
108
107
|
|
|
109
108
|
.#{$class-horizontal-menu} {
|
|
110
109
|
background: $default-content-background;
|
|
111
|
-
border-bottom:
|
|
110
|
+
border-bottom: var(--theme-border);
|
|
112
111
|
color: var(--heading);
|
|
112
|
+
z-index: 1;
|
|
113
113
|
|
|
114
114
|
.#{bem.$element-content} {
|
|
115
115
|
display: grid;
|
package/package.json
CHANGED
|
@@ -1871,6 +1871,160 @@ exports[`Storyshots a/Shapes Triangle 1`] = `
|
|
|
1871
1871
|
|
|
1872
1872
|
exports[`Storyshots a/SiteContext Base 1`] = `"Sample SiteContext"`;
|
|
1873
1873
|
|
|
1874
|
+
exports[`Storyshots a/SnapScroller Base 1`] = `
|
|
1875
|
+
<div
|
|
1876
|
+
className="base snap-scroller u1 pv-u"
|
|
1877
|
+
style={
|
|
1878
|
+
Object {
|
|
1879
|
+
"background": "var(--background4)",
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
>
|
|
1883
|
+
<div
|
|
1884
|
+
className="card"
|
|
1885
|
+
style={
|
|
1886
|
+
Object {
|
|
1887
|
+
"background": "var(--background1)",
|
|
1888
|
+
"height": "400px",
|
|
1889
|
+
"minWidth": "330px",
|
|
1890
|
+
"padding": "var(--u)",
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
>
|
|
1894
|
+
Some content here
|
|
1895
|
+
</div>
|
|
1896
|
+
<div
|
|
1897
|
+
className="card"
|
|
1898
|
+
style={
|
|
1899
|
+
Object {
|
|
1900
|
+
"background": "var(--background1)",
|
|
1901
|
+
"height": "400px",
|
|
1902
|
+
"minWidth": "330px",
|
|
1903
|
+
"padding": "var(--u)",
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
>
|
|
1907
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam quis ornare lacus. Maecenas eu mollis erat. Donec pretium blandit vulputate. Fusce scelerisque nibh non euismod condimentum. Aenean non neque sem.
|
|
1908
|
+
</div>
|
|
1909
|
+
<div
|
|
1910
|
+
className="card"
|
|
1911
|
+
style={
|
|
1912
|
+
Object {
|
|
1913
|
+
"background": "var(--background1)",
|
|
1914
|
+
"height": "400px",
|
|
1915
|
+
"minWidth": "330px",
|
|
1916
|
+
"padding": "var(--u)",
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
>
|
|
1920
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Phasellus pretium feugiat lorem nec varius.
|
|
1921
|
+
</div>
|
|
1922
|
+
<div
|
|
1923
|
+
className="card"
|
|
1924
|
+
style={
|
|
1925
|
+
Object {
|
|
1926
|
+
"background": "var(--background1)",
|
|
1927
|
+
"height": "400px",
|
|
1928
|
+
"minWidth": "330px",
|
|
1929
|
+
"padding": "var(--u)",
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
>
|
|
1933
|
+
Nam quis enim egestas, posuere felis ut, egestas tellus. Nulla facilisi. Pellentesque euismod bibendum ex ac euismod. Etiam rutrum quam nec nisi bibendum, sodales facilisis nunc dapibus. Nullam molestie magna efficitur dapibus pharetra.
|
|
1934
|
+
</div>
|
|
1935
|
+
<div
|
|
1936
|
+
className="card"
|
|
1937
|
+
style={
|
|
1938
|
+
Object {
|
|
1939
|
+
"background": "var(--background1)",
|
|
1940
|
+
"height": "400px",
|
|
1941
|
+
"minWidth": "330px",
|
|
1942
|
+
"padding": "var(--u)",
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
>
|
|
1946
|
+
Sed quis lacinia lacus. Nam id faucibus nisi, quis imperdiet erat. Sed ac iaculis elit.
|
|
1947
|
+
</div>
|
|
1948
|
+
</div>
|
|
1949
|
+
`;
|
|
1950
|
+
|
|
1951
|
+
exports[`Storyshots a/SnapScroller No Scroll On Desktop 1`] = `
|
|
1952
|
+
<div
|
|
1953
|
+
className="base snap-scroller u1 pv-u desktop-no-scroll"
|
|
1954
|
+
style={
|
|
1955
|
+
Object {
|
|
1956
|
+
"background": "var(--background4)",
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
>
|
|
1960
|
+
<div
|
|
1961
|
+
className="card"
|
|
1962
|
+
style={
|
|
1963
|
+
Object {
|
|
1964
|
+
"background": "var(--background1)",
|
|
1965
|
+
"height": "400px",
|
|
1966
|
+
"padding": "var(--u)",
|
|
1967
|
+
"width": "330px",
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
>
|
|
1971
|
+
Some content here
|
|
1972
|
+
</div>
|
|
1973
|
+
<div
|
|
1974
|
+
className="card"
|
|
1975
|
+
style={
|
|
1976
|
+
Object {
|
|
1977
|
+
"background": "var(--background1)",
|
|
1978
|
+
"height": "400px",
|
|
1979
|
+
"padding": "var(--u)",
|
|
1980
|
+
"width": "330px",
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
>
|
|
1984
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam quis ornare lacus. Maecenas eu mollis erat. Donec pretium blandit vulputate. Fusce scelerisque nibh non euismod condimentum. Aenean non neque sem.
|
|
1985
|
+
</div>
|
|
1986
|
+
<div
|
|
1987
|
+
className="card"
|
|
1988
|
+
style={
|
|
1989
|
+
Object {
|
|
1990
|
+
"background": "var(--background1)",
|
|
1991
|
+
"height": "400px",
|
|
1992
|
+
"padding": "var(--u)",
|
|
1993
|
+
"width": "330px",
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
>
|
|
1997
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Phasellus pretium feugiat lorem nec varius.
|
|
1998
|
+
</div>
|
|
1999
|
+
<div
|
|
2000
|
+
className="card"
|
|
2001
|
+
style={
|
|
2002
|
+
Object {
|
|
2003
|
+
"background": "var(--background1)",
|
|
2004
|
+
"height": "400px",
|
|
2005
|
+
"padding": "var(--u)",
|
|
2006
|
+
"width": "330px",
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
>
|
|
2010
|
+
Nam quis enim egestas, posuere felis ut, egestas tellus. Nulla facilisi. Pellentesque euismod bibendum ex ac euismod. Etiam rutrum quam nec nisi bibendum, sodales facilisis nunc dapibus. Nullam molestie magna efficitur dapibus pharetra.
|
|
2011
|
+
</div>
|
|
2012
|
+
<div
|
|
2013
|
+
className="card"
|
|
2014
|
+
style={
|
|
2015
|
+
Object {
|
|
2016
|
+
"background": "var(--background1)",
|
|
2017
|
+
"height": "400px",
|
|
2018
|
+
"padding": "var(--u)",
|
|
2019
|
+
"width": "330px",
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
>
|
|
2023
|
+
Sed quis lacinia lacus. Nam id faucibus nisi, quis imperdiet erat. Sed ac iaculis elit.
|
|
2024
|
+
</div>
|
|
2025
|
+
</div>
|
|
2026
|
+
`;
|
|
2027
|
+
|
|
1874
2028
|
exports[`Storyshots a/Spinner Base 1`] = `
|
|
1875
2029
|
<div
|
|
1876
2030
|
className="y-background1 b-y"
|
|
@@ -8413,7 +8567,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
|
|
|
8413
8567
|
}
|
|
8414
8568
|
>
|
|
8415
8569
|
<div
|
|
8416
|
-
className="base content-slides y-background1 u1 md-u2"
|
|
8570
|
+
className="base content-slides y-background1 b-dark-y u1 md-u2"
|
|
8417
8571
|
>
|
|
8418
8572
|
<nav
|
|
8419
8573
|
className="sidebar"
|
|
@@ -8562,7 +8716,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
|
|
|
8562
8716
|
Welcome
|
|
8563
8717
|
</span>
|
|
8564
8718
|
<svg
|
|
8565
|
-
className="base svg base logo x-
|
|
8719
|
+
className="base svg base logo x-paragraph xs-h sm-h"
|
|
8566
8720
|
height="2em"
|
|
8567
8721
|
preserveAspectRatio="xMinYMin meet"
|
|
8568
8722
|
version="1.1"
|
|
@@ -8785,8 +8939,287 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
|
|
|
8785
8939
|
|
|
8786
8940
|
exports[`Storyshots c/ContentSlides Simple 1`] = `
|
|
8787
8941
|
<div
|
|
8788
|
-
className="base content-slides y-background1 simple u1 md-u2"
|
|
8942
|
+
className="base content-slides y-background1 b-dark-y simple u1 md-u2"
|
|
8943
|
+
>
|
|
8944
|
+
<div
|
|
8945
|
+
className="horizontal-menu"
|
|
8946
|
+
>
|
|
8947
|
+
<div
|
|
8948
|
+
className="base progress-bar modifierAttached x-main2 y-background1 b-dark-y"
|
|
8949
|
+
data-length="50%"
|
|
8950
|
+
style={
|
|
8951
|
+
Object {
|
|
8952
|
+
"--height": ".4em",
|
|
8953
|
+
"--progress": 40,
|
|
8954
|
+
}
|
|
8955
|
+
}
|
|
8956
|
+
/>
|
|
8957
|
+
<div
|
|
8958
|
+
className="elementContent"
|
|
8959
|
+
>
|
|
8960
|
+
<div
|
|
8961
|
+
className="left"
|
|
8962
|
+
/>
|
|
8963
|
+
<div
|
|
8964
|
+
className="title"
|
|
8965
|
+
>
|
|
8966
|
+
<span
|
|
8967
|
+
className="md-h lg-h"
|
|
8968
|
+
>
|
|
8969
|
+
Welcome
|
|
8970
|
+
</span>
|
|
8971
|
+
<svg
|
|
8972
|
+
className="base svg base logo x-paragraph xs-h sm-h"
|
|
8973
|
+
height="2em"
|
|
8974
|
+
preserveAspectRatio="xMinYMin meet"
|
|
8975
|
+
version="1.1"
|
|
8976
|
+
viewBox="0 0 688 250"
|
|
8977
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8978
|
+
>
|
|
8979
|
+
<use
|
|
8980
|
+
className=""
|
|
8981
|
+
href="/logo_parts.svg#logo__p"
|
|
8982
|
+
id="logo__p"
|
|
8983
|
+
style={
|
|
8984
|
+
Object {
|
|
8985
|
+
"style": undefined,
|
|
8986
|
+
}
|
|
8987
|
+
}
|
|
8988
|
+
/>
|
|
8989
|
+
<use
|
|
8990
|
+
className=""
|
|
8991
|
+
href="/logo_parts.svg#logo__areto"
|
|
8992
|
+
id="logo__areto"
|
|
8993
|
+
style={
|
|
8994
|
+
Object {
|
|
8995
|
+
"style": undefined,
|
|
8996
|
+
}
|
|
8997
|
+
}
|
|
8998
|
+
/>
|
|
8999
|
+
<use
|
|
9000
|
+
className=""
|
|
9001
|
+
href="/logo_parts.svg#logo__t"
|
|
9002
|
+
id="logo__t"
|
|
9003
|
+
style={
|
|
9004
|
+
Object {
|
|
9005
|
+
"style": undefined,
|
|
9006
|
+
}
|
|
9007
|
+
}
|
|
9008
|
+
/>
|
|
9009
|
+
</svg>
|
|
9010
|
+
</div>
|
|
9011
|
+
</div>
|
|
9012
|
+
</div>
|
|
9013
|
+
|
|
9014
|
+
<main>
|
|
9015
|
+
<div
|
|
9016
|
+
className="modifierActive slide"
|
|
9017
|
+
>
|
|
9018
|
+
<div
|
|
9019
|
+
className="wrapper"
|
|
9020
|
+
>
|
|
9021
|
+
<div
|
|
9022
|
+
className="content"
|
|
9023
|
+
>
|
|
9024
|
+
<div
|
|
9025
|
+
className="base title"
|
|
9026
|
+
>
|
|
9027
|
+
<h1
|
|
9028
|
+
className="small heading"
|
|
9029
|
+
>
|
|
9030
|
+
Welcome
|
|
9031
|
+
</h1>
|
|
9032
|
+
<p
|
|
9033
|
+
className="subtitle"
|
|
9034
|
+
>
|
|
9035
|
+
Welcome to this site. We hope you will have an amazing experience here.
|
|
9036
|
+
</p>
|
|
9037
|
+
</div>
|
|
9038
|
+
<div
|
|
9039
|
+
className="navigator"
|
|
9040
|
+
>
|
|
9041
|
+
<span />
|
|
9042
|
+
<button
|
|
9043
|
+
className="base button x-main2 next x-main1 modifierCompact"
|
|
9044
|
+
disabled={false}
|
|
9045
|
+
onClick={[Function]}
|
|
9046
|
+
type="button"
|
|
9047
|
+
>
|
|
9048
|
+
Next
|
|
9049
|
+
</button>
|
|
9050
|
+
</div>
|
|
9051
|
+
</div>
|
|
9052
|
+
</div>
|
|
9053
|
+
</div>
|
|
9054
|
+
<div
|
|
9055
|
+
className="slide"
|
|
9056
|
+
>
|
|
9057
|
+
<div
|
|
9058
|
+
className="wrapper"
|
|
9059
|
+
>
|
|
9060
|
+
<div
|
|
9061
|
+
className="content"
|
|
9062
|
+
>
|
|
9063
|
+
<div
|
|
9064
|
+
className="base title"
|
|
9065
|
+
>
|
|
9066
|
+
<h1
|
|
9067
|
+
className="small heading"
|
|
9068
|
+
>
|
|
9069
|
+
Part 2
|
|
9070
|
+
</h1>
|
|
9071
|
+
<p
|
|
9072
|
+
className="subtitle"
|
|
9073
|
+
>
|
|
9074
|
+
Welcome to this site. We hope you will have an amazing experience here.
|
|
9075
|
+
</p>
|
|
9076
|
+
</div>
|
|
9077
|
+
<p>
|
|
9078
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas, non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus, enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus. Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget, porta placerat leo. Donec scelerisque enim risus, in pharetra purus fringilla eu. Cras placerat ac enim viverra rhoncus. Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat. Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus. Nullam vel porttitor mi, ut vestibulum arcu.
|
|
9079
|
+
|
|
9080
|
+
</p>
|
|
9081
|
+
<p>
|
|
9082
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas, non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus, enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus. Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget, porta placerat leo. Donec scelerisque enim risus, in pharetra purus fringilla eu. Cras placerat ac enim viverra rhoncus. Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat. Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus. Nullam vel porttitor mi, ut vestibulum arcu.
|
|
9083
|
+
|
|
9084
|
+
</p>
|
|
9085
|
+
<p>
|
|
9086
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas, non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus, enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus. Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget, porta placerat leo. Donec scelerisque enim risus, in pharetra purus fringilla eu. Cras placerat ac enim viverra rhoncus. Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat. Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus. Nullam vel porttitor mi, ut vestibulum arcu.
|
|
9087
|
+
|
|
9088
|
+
</p>
|
|
9089
|
+
<p>
|
|
9090
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas, non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus, enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus. Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget, porta placerat leo. Donec scelerisque enim risus, in pharetra purus fringilla eu. Cras placerat ac enim viverra rhoncus. Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat. Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus. Nullam vel porttitor mi, ut vestibulum arcu.
|
|
9091
|
+
|
|
9092
|
+
</p>
|
|
9093
|
+
<div
|
|
9094
|
+
className="navigator"
|
|
9095
|
+
>
|
|
9096
|
+
<span />
|
|
9097
|
+
<button
|
|
9098
|
+
className="base button x-main2 next x-main1 modifierCompact"
|
|
9099
|
+
disabled={false}
|
|
9100
|
+
onClick={[Function]}
|
|
9101
|
+
type="button"
|
|
9102
|
+
>
|
|
9103
|
+
Next
|
|
9104
|
+
</button>
|
|
9105
|
+
</div>
|
|
9106
|
+
</div>
|
|
9107
|
+
</div>
|
|
9108
|
+
</div>
|
|
9109
|
+
<div
|
|
9110
|
+
className="slide"
|
|
9111
|
+
>
|
|
9112
|
+
<div
|
|
9113
|
+
className="wrapper"
|
|
9114
|
+
>
|
|
9115
|
+
<div
|
|
9116
|
+
className="content"
|
|
9117
|
+
>
|
|
9118
|
+
<div
|
|
9119
|
+
className="base title"
|
|
9120
|
+
>
|
|
9121
|
+
<h1
|
|
9122
|
+
className="small heading"
|
|
9123
|
+
>
|
|
9124
|
+
Part 3
|
|
9125
|
+
</h1>
|
|
9126
|
+
<p
|
|
9127
|
+
className="subtitle"
|
|
9128
|
+
>
|
|
9129
|
+
Welcome to this site. We hope you will have an amazing experience here.
|
|
9130
|
+
</p>
|
|
9131
|
+
</div>
|
|
9132
|
+
<div
|
|
9133
|
+
className="navigator"
|
|
9134
|
+
>
|
|
9135
|
+
<span />
|
|
9136
|
+
<button
|
|
9137
|
+
className="base button x-main2 next x-main1 modifierCompact"
|
|
9138
|
+
disabled={false}
|
|
9139
|
+
onClick={[Function]}
|
|
9140
|
+
type="button"
|
|
9141
|
+
>
|
|
9142
|
+
Next
|
|
9143
|
+
</button>
|
|
9144
|
+
</div>
|
|
9145
|
+
</div>
|
|
9146
|
+
</div>
|
|
9147
|
+
</div>
|
|
9148
|
+
<div
|
|
9149
|
+
className="slide"
|
|
9150
|
+
>
|
|
9151
|
+
<div
|
|
9152
|
+
className="wrapper"
|
|
9153
|
+
>
|
|
9154
|
+
<div
|
|
9155
|
+
className="content"
|
|
9156
|
+
>
|
|
9157
|
+
<div
|
|
9158
|
+
className="base title"
|
|
9159
|
+
>
|
|
9160
|
+
<h1
|
|
9161
|
+
className="small heading"
|
|
9162
|
+
>
|
|
9163
|
+
Part 4
|
|
9164
|
+
</h1>
|
|
9165
|
+
<p
|
|
9166
|
+
className="subtitle"
|
|
9167
|
+
>
|
|
9168
|
+
Welcome to this site. We hope you will have an amazing experience here.
|
|
9169
|
+
</p>
|
|
9170
|
+
</div>
|
|
9171
|
+
<div
|
|
9172
|
+
className="navigator"
|
|
9173
|
+
>
|
|
9174
|
+
<span />
|
|
9175
|
+
<button
|
|
9176
|
+
className="base button x-main2 next x-main1 modifierCompact"
|
|
9177
|
+
disabled={false}
|
|
9178
|
+
onClick={[Function]}
|
|
9179
|
+
type="button"
|
|
9180
|
+
>
|
|
9181
|
+
Next
|
|
9182
|
+
</button>
|
|
9183
|
+
</div>
|
|
9184
|
+
</div>
|
|
9185
|
+
</div>
|
|
9186
|
+
</div>
|
|
9187
|
+
</main>
|
|
9188
|
+
</div>
|
|
9189
|
+
`;
|
|
9190
|
+
|
|
9191
|
+
exports[`Storyshots c/ContentSlides With Background Shape 1`] = `
|
|
9192
|
+
<div
|
|
9193
|
+
className="base content-slides y-background4 b-light-y simple u1 md-u2"
|
|
8789
9194
|
>
|
|
9195
|
+
<div
|
|
9196
|
+
className="base shapes"
|
|
9197
|
+
style={
|
|
9198
|
+
Object {
|
|
9199
|
+
"--horizontal-align": "flex-start",
|
|
9200
|
+
"--overflow": "hidden",
|
|
9201
|
+
"--shape-height": "65em",
|
|
9202
|
+
"--vertical-align": "center",
|
|
9203
|
+
}
|
|
9204
|
+
}
|
|
9205
|
+
>
|
|
9206
|
+
<div
|
|
9207
|
+
className="spiral"
|
|
9208
|
+
>
|
|
9209
|
+
<div
|
|
9210
|
+
className="circle-one"
|
|
9211
|
+
/>
|
|
9212
|
+
<div
|
|
9213
|
+
className="circle-two"
|
|
9214
|
+
/>
|
|
9215
|
+
<div
|
|
9216
|
+
className="circle-three"
|
|
9217
|
+
/>
|
|
9218
|
+
<div
|
|
9219
|
+
className="circle-four"
|
|
9220
|
+
/>
|
|
9221
|
+
</div>
|
|
9222
|
+
</div>
|
|
8790
9223
|
<div
|
|
8791
9224
|
className="horizontal-menu"
|
|
8792
9225
|
>
|
|
@@ -8815,7 +9248,7 @@ exports[`Storyshots c/ContentSlides Simple 1`] = `
|
|
|
8815
9248
|
Welcome
|
|
8816
9249
|
</span>
|
|
8817
9250
|
<svg
|
|
8818
|
-
className="base svg base logo x-
|
|
9251
|
+
className="base svg base logo x-paragraph xs-h sm-h"
|
|
8819
9252
|
height="2em"
|
|
8820
9253
|
preserveAspectRatio="xMinYMin meet"
|
|
8821
9254
|
version="1.1"
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { SnapScroller } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/SnapScroller',
|
|
8
|
+
component :SnapScroller,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:SnapScroller.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
backgroundColor:{ control: 'color' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const Base = () => {
|
|
21
|
+
// eslint-disable-next-line react/prop-types
|
|
22
|
+
const Card = ({ children }) => (
|
|
23
|
+
<div
|
|
24
|
+
className="card"
|
|
25
|
+
style={{
|
|
26
|
+
background:'var(--background1)', minWidth:'330px', height:'400px', padding:'var(--u)',
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
{ children }
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<SnapScroller style={{ background: 'var(--background4)' }} className="u1 pv-u">
|
|
36
|
+
<Card>
|
|
37
|
+
Some content here
|
|
38
|
+
</Card>
|
|
39
|
+
<Card>
|
|
40
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam quis ornare lacus.
|
|
41
|
+
Maecenas eu mollis erat. Donec pretium blandit vulputate. Fusce scelerisque nibh
|
|
42
|
+
non euismod condimentum. Aenean non neque sem.
|
|
43
|
+
</Card>
|
|
44
|
+
<Card>
|
|
45
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
|
|
46
|
+
Phasellus pretium feugiat lorem nec varius.
|
|
47
|
+
</Card>
|
|
48
|
+
<Card>
|
|
49
|
+
Nam quis enim egestas, posuere felis ut, egestas tellus. Nulla facilisi.
|
|
50
|
+
Pellentesque euismod bibendum ex ac euismod. Etiam rutrum quam nec nisi bibendum,
|
|
51
|
+
sodales facilisis nunc dapibus. Nullam molestie magna efficitur dapibus pharetra.
|
|
52
|
+
</Card>
|
|
53
|
+
<Card>
|
|
54
|
+
Sed quis lacinia lacus. Nam id faucibus nisi, quis imperdiet erat. Sed ac iaculis elit.
|
|
55
|
+
</Card>
|
|
56
|
+
</SnapScroller>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export const NoScrollOnDesktop = () => {
|
|
61
|
+
// eslint-disable-next-line react/prop-types
|
|
62
|
+
const Card = ({ children }) => (
|
|
63
|
+
<div
|
|
64
|
+
className="card"
|
|
65
|
+
style={{
|
|
66
|
+
background:'var(--background1)', width:'330px', height:'400px', padding:'var(--u)',
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
{ children }
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<SnapScroller style={{ background: 'var(--background4)' }} className="u1 pv-u" noScrollOnDesktop>
|
|
76
|
+
<Card>
|
|
77
|
+
Some content here
|
|
78
|
+
</Card>
|
|
79
|
+
<Card>
|
|
80
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam quis ornare lacus.
|
|
81
|
+
Maecenas eu mollis erat. Donec pretium blandit vulputate. Fusce scelerisque nibh
|
|
82
|
+
non euismod condimentum. Aenean non neque sem.
|
|
83
|
+
</Card>
|
|
84
|
+
<Card>
|
|
85
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
|
|
86
|
+
Phasellus pretium feugiat lorem nec varius.
|
|
87
|
+
</Card>
|
|
88
|
+
<Card>
|
|
89
|
+
Nam quis enim egestas, posuere felis ut, egestas tellus. Nulla facilisi. Pellentesque
|
|
90
|
+
euismod bibendum ex ac euismod. Etiam rutrum quam nec nisi bibendum, sodales facilisis
|
|
91
|
+
nunc dapibus. Nullam molestie magna efficitur dapibus pharetra.
|
|
92
|
+
</Card>
|
|
93
|
+
<Card>
|
|
94
|
+
Sed quis lacinia lacus. Nam id faucibus nisi, quis imperdiet erat. Sed ac iaculis elit.
|
|
95
|
+
</Card>
|
|
96
|
+
</SnapScroller>
|
|
97
|
+
)
|
|
98
|
+
}
|
|
@@ -4,6 +4,7 @@ import * as React from 'react'
|
|
|
4
4
|
import {
|
|
5
5
|
ContentSlides,
|
|
6
6
|
SiteContextProvider,
|
|
7
|
+
Shapes,
|
|
7
8
|
useContentSlides,
|
|
8
9
|
Title,
|
|
9
10
|
Logo,
|
|
@@ -74,7 +75,7 @@ export const Base = () => {
|
|
|
74
75
|
|
|
75
76
|
return (
|
|
76
77
|
<div className={`ui-${userTheme}`} style={{ height: '100%' }}>
|
|
77
|
-
<ContentSlides className="y-background1" steps={steps}>
|
|
78
|
+
<ContentSlides className="y-background1 b-dark-y" steps={steps}>
|
|
78
79
|
<ContentSlides.Sidebar
|
|
79
80
|
header={(
|
|
80
81
|
<Logo color="paragraph" />
|
|
@@ -341,7 +342,158 @@ export const Simple = () => {
|
|
|
341
342
|
)
|
|
342
343
|
}
|
|
343
344
|
return (
|
|
344
|
-
<ContentSlides className="y-background1" steps={steps} simple>
|
|
345
|
+
<ContentSlides className="y-background1 b-dark-y" steps={steps} simple>
|
|
346
|
+
<Main />
|
|
347
|
+
</ContentSlides>
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export const WithBackgroundShape = () => {
|
|
352
|
+
const steps = [
|
|
353
|
+
{
|
|
354
|
+
id :'welcome',
|
|
355
|
+
title :'Welcome',
|
|
356
|
+
progress:40,
|
|
357
|
+
location:'welcome',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
id :'plan',
|
|
361
|
+
title :'Choose your plan',
|
|
362
|
+
progress:60,
|
|
363
|
+
location:'select-plan',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id :'details',
|
|
367
|
+
title :'Personal details',
|
|
368
|
+
progress:70,
|
|
369
|
+
location:'personal-details',
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
id :'payment',
|
|
373
|
+
title :'Payment',
|
|
374
|
+
progress:90,
|
|
375
|
+
location:'payment',
|
|
376
|
+
},
|
|
377
|
+
]
|
|
378
|
+
|
|
379
|
+
const Main = () => {
|
|
380
|
+
const { isLastStep } = useContentSlides()
|
|
381
|
+
|
|
382
|
+
return (
|
|
383
|
+
<>
|
|
384
|
+
<ContentSlides.HorizontalMenu hideBackIcon={isLastStep} />
|
|
385
|
+
{' '}
|
|
386
|
+
<main>
|
|
387
|
+
<ContentSlides.Slide
|
|
388
|
+
index={0}
|
|
389
|
+
>
|
|
390
|
+
<Title
|
|
391
|
+
heading="Welcome"
|
|
392
|
+
headingAs="h1"
|
|
393
|
+
headingClassName="small"
|
|
394
|
+
subtitle="Welcome to this site. We hope you will have an amazing experience here."
|
|
395
|
+
/>
|
|
396
|
+
<ContentSlides.Navigator />
|
|
397
|
+
</ContentSlides.Slide
|
|
398
|
+
>
|
|
399
|
+
<ContentSlides.Slide
|
|
400
|
+
index={1}
|
|
401
|
+
>
|
|
402
|
+
<Title
|
|
403
|
+
heading="Part 2"
|
|
404
|
+
headingAs="h1"
|
|
405
|
+
headingClassName="small"
|
|
406
|
+
subtitle="Welcome to this site. We hope you will have an amazing experience here."
|
|
407
|
+
/>
|
|
408
|
+
<p>
|
|
409
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
|
|
410
|
+
non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
|
|
411
|
+
enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
|
|
412
|
+
Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
|
|
413
|
+
porta placerat leo.
|
|
414
|
+
Donec scelerisque enim risus, in pharetra purus fringilla eu.
|
|
415
|
+
Cras placerat ac enim viverra rhoncus.
|
|
416
|
+
Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
|
|
417
|
+
Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
|
|
418
|
+
Nullam vel porttitor mi, ut vestibulum arcu.
|
|
419
|
+
{' '}
|
|
420
|
+
</p>
|
|
421
|
+
<p>
|
|
422
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
|
|
423
|
+
non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
|
|
424
|
+
enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
|
|
425
|
+
Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
|
|
426
|
+
porta placerat leo.
|
|
427
|
+
Donec scelerisque enim risus, in pharetra purus fringilla eu.
|
|
428
|
+
Cras placerat ac enim viverra rhoncus.
|
|
429
|
+
Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
|
|
430
|
+
Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
|
|
431
|
+
Nullam vel porttitor mi, ut vestibulum arcu.
|
|
432
|
+
{' '}
|
|
433
|
+
</p>
|
|
434
|
+
<p>
|
|
435
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
|
|
436
|
+
non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
|
|
437
|
+
enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
|
|
438
|
+
Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
|
|
439
|
+
porta placerat leo.
|
|
440
|
+
Donec scelerisque enim risus, in pharetra purus fringilla eu.
|
|
441
|
+
Cras placerat ac enim viverra rhoncus.
|
|
442
|
+
Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
|
|
443
|
+
Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
|
|
444
|
+
Nullam vel porttitor mi, ut vestibulum arcu.
|
|
445
|
+
{' '}
|
|
446
|
+
</p>
|
|
447
|
+
<p>
|
|
448
|
+
In ut sollicitudin elit. Maecenas tempor ex aliquet enim egestas,
|
|
449
|
+
non sollicitudin mi tempor. Pellentesque fermentum, massa in cursus faucibus,
|
|
450
|
+
enim tortor fringilla ligula, sit amet tincidunt neque orci et tellus.
|
|
451
|
+
Nam dignissim tristique justo. Cras nulla sem, dictum pellentesque libero eget,
|
|
452
|
+
porta placerat leo.
|
|
453
|
+
Donec scelerisque enim risus, in pharetra purus fringilla eu.
|
|
454
|
+
Cras placerat ac enim viverra rhoncus.
|
|
455
|
+
Cras sagittis euismod orci eget aliquam. Nulla et mi non enim aliquam consequat.
|
|
456
|
+
Cras volutpat porta convallis. Mauris ullamcorper vitae sapien ac rhoncus.
|
|
457
|
+
Nullam vel porttitor mi, ut vestibulum arcu.
|
|
458
|
+
{' '}
|
|
459
|
+
</p>
|
|
460
|
+
|
|
461
|
+
<ContentSlides.Navigator />
|
|
462
|
+
</ContentSlides.Slide>
|
|
463
|
+
<ContentSlides.Slide
|
|
464
|
+
index={2}
|
|
465
|
+
>
|
|
466
|
+
<Title
|
|
467
|
+
heading="Part 3"
|
|
468
|
+
headingAs="h1"
|
|
469
|
+
headingClassName="small"
|
|
470
|
+
subtitle="Welcome to this site. We hope you will have an amazing experience here."
|
|
471
|
+
/>
|
|
472
|
+
<ContentSlides.Navigator />
|
|
473
|
+
</ContentSlides.Slide>
|
|
474
|
+
<ContentSlides.Slide
|
|
475
|
+
index={3}
|
|
476
|
+
>
|
|
477
|
+
<Title
|
|
478
|
+
heading="Part 4"
|
|
479
|
+
headingAs="h1"
|
|
480
|
+
headingClassName="small"
|
|
481
|
+
subtitle="Welcome to this site. We hope you will have an amazing experience here."
|
|
482
|
+
/>
|
|
483
|
+
<ContentSlides.Navigator />
|
|
484
|
+
</ContentSlides.Slide>
|
|
485
|
+
</main>
|
|
486
|
+
</>
|
|
487
|
+
)
|
|
488
|
+
}
|
|
489
|
+
return (
|
|
490
|
+
<ContentSlides className="y-background4 b-light-y" steps={steps} simple>
|
|
491
|
+
<Shapes
|
|
492
|
+
height="65em"
|
|
493
|
+
verticalAlign="center"
|
|
494
|
+
horizontalAlign="flex-start"
|
|
495
|
+
shape="spiral"
|
|
496
|
+
/>
|
|
345
497
|
<Main />
|
|
346
498
|
</ContentSlides>
|
|
347
499
|
)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
$default-padding: var(--u);
|
|
8
8
|
$default-conversation-background: var(--y);
|
|
9
|
-
$default-message-max-width: calc(100% - #{$default-padding});
|
|
9
|
+
$default-message-max-width: calc(100% - 4 * #{$default-padding});
|
|
10
10
|
$default-message-min-width: 12em;
|
|
11
11
|
$default-message-border: var(--theme-border);
|
|
12
12
|
$triangle-border-size: 15px;
|
|
@@ -147,15 +147,3 @@ $triangle-after-side:25px;
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
//@keyframes fadeIn {
|
|
152
|
-
// from {
|
|
153
|
-
// opacity: 0;
|
|
154
|
-
// transform: translate3d(0, 50%, 0);
|
|
155
|
-
// }
|
|
156
|
-
//
|
|
157
|
-
// to {
|
|
158
|
-
// opacity: 1;
|
|
159
|
-
// transform: translate3d(0, 0, 0);
|
|
160
|
-
// }
|
|
161
|
-
//}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { useLayoutEffect } from 'react'
|
|
5
|
+
|
|
6
|
+
import PropTypes from 'prop-types'
|
|
7
|
+
|
|
8
|
+
import styleNames from '@pareto-engineering/bem'
|
|
9
|
+
|
|
10
|
+
// Local Definitions
|
|
11
|
+
|
|
12
|
+
const baseClassName = styleNames.base
|
|
13
|
+
|
|
14
|
+
const componentClassName = 'snap-scroller'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* This is the component description.
|
|
18
|
+
*/
|
|
19
|
+
const SnapScroller = ({
|
|
20
|
+
id,
|
|
21
|
+
className:userClassName,
|
|
22
|
+
style,
|
|
23
|
+
children,
|
|
24
|
+
noScrollOnDesktop,
|
|
25
|
+
// ...otherProps
|
|
26
|
+
}) => {
|
|
27
|
+
useLayoutEffect(() => {
|
|
28
|
+
import('./styles.scss')
|
|
29
|
+
}, [])
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
id={id}
|
|
34
|
+
className={[
|
|
35
|
+
|
|
36
|
+
baseClassName,
|
|
37
|
+
|
|
38
|
+
componentClassName,
|
|
39
|
+
userClassName,
|
|
40
|
+
noScrollOnDesktop && 'desktop-no-scroll',
|
|
41
|
+
]
|
|
42
|
+
.filter((e) => e)
|
|
43
|
+
.join(' ')}
|
|
44
|
+
style={style}
|
|
45
|
+
// {...otherProps}
|
|
46
|
+
>
|
|
47
|
+
{children}
|
|
48
|
+
</div>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
SnapScroller.propTypes = {
|
|
53
|
+
/**
|
|
54
|
+
* The HTML id for this element
|
|
55
|
+
*/
|
|
56
|
+
id:PropTypes.string,
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The HTML class names for this element
|
|
60
|
+
*/
|
|
61
|
+
className:PropTypes.string,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The React-written, css properties for this element.
|
|
65
|
+
*/
|
|
66
|
+
style:PropTypes.objectOf(PropTypes.string),
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The children JSX
|
|
70
|
+
*/
|
|
71
|
+
children:PropTypes.node,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Whether to snap scroll on desktop (false will enable a flexbox)
|
|
75
|
+
*/
|
|
76
|
+
noScrollOnDesktop:PropTypes.bool,
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
SnapScroller.defaultProps = {
|
|
80
|
+
noScrollOnDesktop:false,
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default SnapScroller
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@aztlan/stylebook/src/mixins";
|
|
5
|
+
@use "@aztlan/stylebook/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-spacing:var(--spacing, var(--u));
|
|
8
|
+
|
|
9
|
+
.#{bem.$base}.snap-scroller {
|
|
10
|
+
display: flex;
|
|
11
|
+
-ms-overflow-style: none; /* for Internet Explorer, Edge */
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
scroll-padding: calc(#{$default-spacing} *2);
|
|
14
|
+
scroll-snap-type: x mandatory;
|
|
15
|
+
scrollbar-width: none;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
> * {
|
|
19
|
+
&:first-child {
|
|
20
|
+
margin-left: $default-spacing;
|
|
21
|
+
}
|
|
22
|
+
display: inline-block;
|
|
23
|
+
margin-right: $default-spacing;
|
|
24
|
+
scroll-snap-align: start;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@include mixins.media($from:$sm-md) {
|
|
29
|
+
&.desktop-no-scroll {
|
|
30
|
+
overflow: auto;
|
|
31
|
+
-ms-overflow-style: unset; /* for Internet Explorer, Edge */
|
|
32
|
+
scroll-snap-type: none;
|
|
33
|
+
scrollbar-width: unset;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
package/src/ui/a/index.js
CHANGED
|
@@ -25,4 +25,5 @@ export { DotInfo } from './DotInfo'
|
|
|
25
25
|
export { Timestamp } from './Timestamp'
|
|
26
26
|
export { Shapes } from './Shapes'
|
|
27
27
|
export { OvalIllustration } from './OvalIllustration'
|
|
28
|
+
export { SnapScroller } from './SnapScroller'
|
|
28
29
|
export { BackgroundGradient } from './BackgroundGradient'
|
|
@@ -14,7 +14,7 @@ $class-navigator:navigator;
|
|
|
14
14
|
$default-sidebar-width:minmax(250px, 330px);
|
|
15
15
|
$default-border:none;//2px solid var(--grid);
|
|
16
16
|
$default-border-radius:var(--theme-border-radius);
|
|
17
|
-
$default-content-background:var(--
|
|
17
|
+
$default-content-background: var(--background1);
|
|
18
18
|
$default-padding:var(--u);
|
|
19
19
|
|
|
20
20
|
$mobile-content-margin:6em;
|
|
@@ -61,7 +61,6 @@ $mobile-content-margin:6em;
|
|
|
61
61
|
|
|
62
62
|
//.#{$class-main-container} {
|
|
63
63
|
main {
|
|
64
|
-
background: var(--dark-y);
|
|
65
64
|
overflow: hidden;
|
|
66
65
|
position: relative;
|
|
67
66
|
|
|
@@ -79,7 +78,7 @@ $mobile-content-margin:6em;
|
|
|
79
78
|
.#{bem.$element-content} {
|
|
80
79
|
background: $default-content-background;
|
|
81
80
|
|
|
82
|
-
border:
|
|
81
|
+
border: var(--theme-border);
|
|
83
82
|
border-radius: $default-border-radius;
|
|
84
83
|
max-width: 600px;
|
|
85
84
|
padding: $default-padding;
|
|
@@ -108,8 +107,9 @@ $mobile-content-margin:6em;
|
|
|
108
107
|
|
|
109
108
|
.#{$class-horizontal-menu} {
|
|
110
109
|
background: $default-content-background;
|
|
111
|
-
border-bottom:
|
|
110
|
+
border-bottom: var(--theme-border);
|
|
112
111
|
color: var(--heading);
|
|
112
|
+
z-index: 1;
|
|
113
113
|
|
|
114
114
|
.#{bem.$element-content} {
|
|
115
115
|
display: grid;
|