@pareto-engineering/design-system 2.0.0-alpha.4 → 2.0.0-alpha.8

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.
@@ -783,6 +783,39 @@ exports[`Storyshots a/LoadingCircle Base 1`] = `
783
783
  </div>
784
784
  `;
785
785
 
786
+ exports[`Storyshots a/OvalIllustration With Background 1`] = `
787
+ <div
788
+ className="base oval-illustration right"
789
+ >
790
+ <div
791
+ className="oval-background y-background3"
792
+ />
793
+ <div
794
+ className="illustration"
795
+ >
796
+ <img
797
+ alt="illustration"
798
+ src="https://www.azernews.az/media/pictures/company_picture.jpg"
799
+ />
800
+ </div>
801
+ </div>
802
+ `;
803
+
804
+ exports[`Storyshots a/OvalIllustration Without Background 1`] = `
805
+ <div
806
+ className="base oval-illustration left"
807
+ >
808
+ <div
809
+ className="illustration"
810
+ >
811
+ <img
812
+ alt="illustration"
813
+ src="https://www.azernews.az/media/pictures/company_picture.jpg"
814
+ />
815
+ </div>
816
+ </div>
817
+ `;
818
+
786
819
  exports[`Storyshots a/People Base 1`] = `
787
820
  <div
788
821
  className="x-background1 b-x v1 p-v"
@@ -1146,6 +1179,379 @@ exports[`Storyshots a/SVG Stroke 1`] = `
1146
1179
  </svg>
1147
1180
  `;
1148
1181
 
1182
+ exports[`Storyshots a/Shapes Circle 1`] = `
1183
+ <div
1184
+ className="y-background5 b-light-y"
1185
+ style={
1186
+ Object {
1187
+ "height": "1000px",
1188
+ "overflow": "hidden",
1189
+ "position": "relative",
1190
+ }
1191
+ }
1192
+ >
1193
+ <div
1194
+ className="base shapes"
1195
+ style={
1196
+ Object {
1197
+ "--horizontal-align": "center",
1198
+ "--overflow": "hidden",
1199
+ "--shape-height": "30em",
1200
+ "--vertical-align": "flex-end",
1201
+ }
1202
+ }
1203
+ >
1204
+ <div
1205
+ className="circle"
1206
+ />
1207
+ </div>
1208
+ </div>
1209
+ `;
1210
+
1211
+ exports[`Storyshots a/Shapes Diamonds 1`] = `
1212
+ <div
1213
+ className="y-background4 b-light-y"
1214
+ style={
1215
+ Object {
1216
+ "height": "1000px",
1217
+ "overflow": "hidden",
1218
+ "position": "relative",
1219
+ }
1220
+ }
1221
+ >
1222
+ <div
1223
+ className="base shapes"
1224
+ style={
1225
+ Object {
1226
+ "--horizontal-align": "center",
1227
+ "--overflow": "hidden",
1228
+ "--shape-height": "30em",
1229
+ "--vertical-align": "flex-end",
1230
+ }
1231
+ }
1232
+ >
1233
+ <div
1234
+ className="diamonds"
1235
+ >
1236
+ <div
1237
+ className="top-right"
1238
+ />
1239
+ <div
1240
+ className="bottom-left"
1241
+ />
1242
+ <div
1243
+ className="bottom-right"
1244
+ />
1245
+ </div>
1246
+ </div>
1247
+ </div>
1248
+ `;
1249
+
1250
+ exports[`Storyshots a/Shapes Ellipse 1`] = `
1251
+ <div
1252
+ className="y-main3 b-light-y"
1253
+ style={
1254
+ Object {
1255
+ "height": "1000px",
1256
+ "overflow": "hidden",
1257
+ "position": "relative",
1258
+ }
1259
+ }
1260
+ >
1261
+ <div
1262
+ className="base shapes"
1263
+ style={
1264
+ Object {
1265
+ "--horizontal-align": "center",
1266
+ "--overflow": "hidden",
1267
+ "--shape-height": "30em",
1268
+ "--vertical-align": "flex-end",
1269
+ }
1270
+ }
1271
+ >
1272
+ <div
1273
+ className="ellipse"
1274
+ />
1275
+ </div>
1276
+ </div>
1277
+ `;
1278
+
1279
+ exports[`Storyshots a/Shapes Ellipses 1`] = `
1280
+ <div
1281
+ className="y-background4 b-light-y"
1282
+ style={
1283
+ Object {
1284
+ "height": "1000px",
1285
+ "overflow": "hidden",
1286
+ "position": "relative",
1287
+ }
1288
+ }
1289
+ >
1290
+ <div
1291
+ className="base shapes"
1292
+ style={
1293
+ Object {
1294
+ "--horizontal-align": "center",
1295
+ "--overflow": "hidden",
1296
+ "--shape-height": "30em",
1297
+ "--vertical-align": "flex-end",
1298
+ }
1299
+ }
1300
+ >
1301
+ <div
1302
+ className="ellipses"
1303
+ >
1304
+ <div
1305
+ className="first"
1306
+ />
1307
+ <div
1308
+ className="second"
1309
+ />
1310
+ </div>
1311
+ </div>
1312
+ </div>
1313
+ `;
1314
+
1315
+ exports[`Storyshots a/Shapes Half Circle 1`] = `
1316
+ <div
1317
+ className="y-background4 b-light-y"
1318
+ style={
1319
+ Object {
1320
+ "height": "1000px",
1321
+ "overflow": "hidden",
1322
+ "position": "relative",
1323
+ }
1324
+ }
1325
+ >
1326
+ <div
1327
+ className="base shapes"
1328
+ style={
1329
+ Object {
1330
+ "--horizontal-align": "center",
1331
+ "--overflow": "hidden",
1332
+ "--shape-height": "30em",
1333
+ "--vertical-align": "flex-end",
1334
+ }
1335
+ }
1336
+ >
1337
+ <div
1338
+ className="half-circle"
1339
+ />
1340
+ </div>
1341
+ </div>
1342
+ `;
1343
+
1344
+ exports[`Storyshots a/Shapes Half Ellipse 1`] = `
1345
+ <div
1346
+ className="y-background3 b-light-y"
1347
+ style={
1348
+ Object {
1349
+ "height": "1000px",
1350
+ "overflow": "hidden",
1351
+ "position": "relative",
1352
+ }
1353
+ }
1354
+ >
1355
+ <div
1356
+ className="base shapes"
1357
+ style={
1358
+ Object {
1359
+ "--horizontal-align": "center",
1360
+ "--overflow": "hidden",
1361
+ "--shape-height": "25em",
1362
+ "--vertical-align": "flex-end",
1363
+ }
1364
+ }
1365
+ >
1366
+ <div
1367
+ className="half-ellipse"
1368
+ />
1369
+ </div>
1370
+ </div>
1371
+ `;
1372
+
1373
+ exports[`Storyshots a/Shapes Half Ellipses 1`] = `
1374
+ <div
1375
+ className="y-background3 b-light-y"
1376
+ style={
1377
+ Object {
1378
+ "height": "1000px",
1379
+ "overflow": "hidden",
1380
+ "position": "relative",
1381
+ }
1382
+ }
1383
+ >
1384
+ <div
1385
+ className="base shapes"
1386
+ style={
1387
+ Object {
1388
+ "--horizontal-align": "center",
1389
+ "--overflow": "hidden",
1390
+ "--shape-height": "25em",
1391
+ "--vertical-align": "flex-end",
1392
+ }
1393
+ }
1394
+ >
1395
+ <div
1396
+ className="half-ellipses"
1397
+ >
1398
+ <div
1399
+ className="up"
1400
+ />
1401
+ <div
1402
+ className="down"
1403
+ />
1404
+ </div>
1405
+ </div>
1406
+ </div>
1407
+ `;
1408
+
1409
+ exports[`Storyshots a/Shapes Rectangles 1`] = `
1410
+ <div
1411
+ className="y-background5 b-light-y"
1412
+ style={
1413
+ Object {
1414
+ "height": "1000px",
1415
+ "overflow": "hidden",
1416
+ "position": "relative",
1417
+ }
1418
+ }
1419
+ >
1420
+ <div
1421
+ className="base shapes"
1422
+ style={
1423
+ Object {
1424
+ "--horizontal-align": "center",
1425
+ "--overflow": "hidden",
1426
+ "--shape-height": "30em",
1427
+ "--vertical-align": "flex-end",
1428
+ }
1429
+ }
1430
+ >
1431
+ <div
1432
+ className="rectangles"
1433
+ >
1434
+ <div
1435
+ className="top"
1436
+ />
1437
+ <div
1438
+ className="center"
1439
+ />
1440
+ <div
1441
+ className="bottom"
1442
+ />
1443
+ </div>
1444
+ </div>
1445
+ </div>
1446
+ `;
1447
+
1448
+ exports[`Storyshots a/Shapes Rotated Ellipses 1`] = `
1449
+ <div
1450
+ className="y-background5 b-light-y"
1451
+ style={
1452
+ Object {
1453
+ "height": "1000px",
1454
+ "overflow": "hidden",
1455
+ "position": "relative",
1456
+ }
1457
+ }
1458
+ >
1459
+ <div
1460
+ className="base shapes"
1461
+ style={
1462
+ Object {
1463
+ "--horizontal-align": "center",
1464
+ "--overflow": "hidden",
1465
+ "--shape-height": "60em",
1466
+ "--vertical-align": "center",
1467
+ }
1468
+ }
1469
+ >
1470
+ <div
1471
+ className="rotated-ellipses"
1472
+ >
1473
+ <div
1474
+ className="ellipse-one"
1475
+ />
1476
+ <div
1477
+ className="ellipse-two"
1478
+ />
1479
+ </div>
1480
+ </div>
1481
+ </div>
1482
+ `;
1483
+
1484
+ exports[`Storyshots a/Shapes Spiral 1`] = `
1485
+ <div
1486
+ className="y-background6 b-light-y"
1487
+ style={
1488
+ Object {
1489
+ "height": "1000px",
1490
+ "overflow": "hidden",
1491
+ "position": "relative",
1492
+ }
1493
+ }
1494
+ >
1495
+ <div
1496
+ className="base shapes"
1497
+ style={
1498
+ Object {
1499
+ "--horizontal-align": "center",
1500
+ "--overflow": "hidden",
1501
+ "--shape-height": "100em",
1502
+ "--vertical-align": "center",
1503
+ }
1504
+ }
1505
+ >
1506
+ <div
1507
+ className="spiral"
1508
+ >
1509
+ <div
1510
+ className="circle-one"
1511
+ />
1512
+ <div
1513
+ className="circle-two"
1514
+ />
1515
+ <div
1516
+ className="circle-three"
1517
+ />
1518
+ <div
1519
+ className="circle-four"
1520
+ />
1521
+ </div>
1522
+ </div>
1523
+ </div>
1524
+ `;
1525
+
1526
+ exports[`Storyshots a/Shapes Triangle 1`] = `
1527
+ <div
1528
+ className="y-background6 b-light-y"
1529
+ style={
1530
+ Object {
1531
+ "height": "1000px",
1532
+ "overflow": "hidden",
1533
+ "position": "relative",
1534
+ }
1535
+ }
1536
+ >
1537
+ <div
1538
+ className="base shapes"
1539
+ style={
1540
+ Object {
1541
+ "--horizontal-align": "center",
1542
+ "--overflow": "hidden",
1543
+ "--shape-height": "30em",
1544
+ "--vertical-align": "flex-end",
1545
+ }
1546
+ }
1547
+ >
1548
+ <div
1549
+ className="triangle"
1550
+ />
1551
+ </div>
1552
+ </div>
1553
+ `;
1554
+
1149
1555
  exports[`Storyshots a/SiteContext Base 1`] = `"Sample SiteContext"`;
1150
1556
 
1151
1557
  exports[`Storyshots a/Spinner Base 1`] = `
@@ -5985,6 +6391,62 @@ exports[`Storyshots b/Page Item Type 1`] = `
5985
6391
  </main>
5986
6392
  `;
5987
6393
 
6394
+ exports[`Storyshots b/Page Sections With Background 1`] = `
6395
+ <main
6396
+ className="base page"
6397
+ id="with-sections"
6398
+ >
6399
+ <section
6400
+ className="base section y-success b-light-y"
6401
+ id="with-sections_s1"
6402
+ style={
6403
+ Object {
6404
+ "alignItems": "center",
6405
+ "display": "flex",
6406
+ "height": "30em",
6407
+ "justifyContent": "center",
6408
+ }
6409
+ }
6410
+ >
6411
+ <figure
6412
+ className="base quote x-paragraph"
6413
+ >
6414
+ <blockquote
6415
+ className="blockquote uc"
6416
+ >
6417
+ <p
6418
+ className="quotation c-x md-s0 s-1"
6419
+ >
6420
+ Pareto was like having a full-time employee without having to hire somebody. That’s how I would explain it. An on-call, on-demand full-time employee.
6421
+ </p>
6422
+ </blockquote>
6423
+ <figcaption
6424
+ className="figcaption"
6425
+ >
6426
+ <cite>
6427
+ Austen Spoonts
6428
+ </cite>
6429
+ </figcaption>
6430
+ </figure>
6431
+ <div
6432
+ className="base shapes"
6433
+ style={
6434
+ Object {
6435
+ "--horizontal-align": "center",
6436
+ "--overflow": "hidden",
6437
+ "--shape-height": "30em",
6438
+ "--vertical-align": "flex-end",
6439
+ }
6440
+ }
6441
+ >
6442
+ <div
6443
+ className="triangle"
6444
+ />
6445
+ </div>
6446
+ </section>
6447
+ </main>
6448
+ `;
6449
+
5988
6450
  exports[`Storyshots b/Page With Sections 1`] = `
5989
6451
  <main
5990
6452
  className="base page"
@@ -0,0 +1,36 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import { OvalIllustration } from 'ui'
5
+
6
+ export default {
7
+ title :'a/OvalIllustration',
8
+ component :OvalIllustration,
9
+ subcomponents:{
10
+ // Item:OvalIllustration.Item
11
+ },
12
+ decorators:[
13
+ // storyfn => <div className="">{ storyfn() }</div>,
14
+ ],
15
+ argTypes:{
16
+ backgroundColor:{ control: 'color' },
17
+ },
18
+ }
19
+
20
+ export const WithBackground = () => (
21
+ <OvalIllustration
22
+ backgroundColor="background3"
23
+ src="https://www.azernews.az/media/pictures/company_picture.jpg"
24
+ alt="illustration"
25
+ ovalBackground
26
+ layout="right"
27
+ />
28
+ )
29
+
30
+ export const WithoutBackground = () => (
31
+ <OvalIllustration
32
+ src="https://www.azernews.az/media/pictures/company_picture.jpg"
33
+ alt="illustration"
34
+ layout="left"
35
+ />
36
+ )
@@ -0,0 +1,125 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react'
3
+
4
+ import { Shapes } from 'ui'
5
+
6
+ export default {
7
+ title :'a/Shapes',
8
+ component :Shapes,
9
+ subcomponents:{
10
+ // Item:Shapes.Item
11
+ },
12
+ decorators:[
13
+ // storyfn => <div className="">{ storyfn() }</div>,
14
+ ],
15
+ argTypes:{
16
+ verticalAlign :{ control: 'select' },
17
+ horizontalAlign:{ control: 'select' },
18
+ shape :{ control: 'select' },
19
+ height :{ control: 'text' },
20
+ color :{ control: 'text' },
21
+ },
22
+ }
23
+
24
+ // eslint-disable-next-line react/prop-types
25
+ const Template = ({ color, ...rest }) => (
26
+ <div
27
+ className={`y-${color} b-light-y`}
28
+ style={{
29
+ height:'1000px', position:'relative', overflow:'hidden',
30
+ }}
31
+ >
32
+ <Shapes {...rest} />
33
+ </div>
34
+ )
35
+
36
+ export const Triangle = Template.bind({})
37
+ Triangle.args = {
38
+ height :'30em',
39
+ verticalAlign :'flex-end',
40
+ horizontalAlign:'center',
41
+ color :'background6',
42
+ shape :'triangle',
43
+ }
44
+
45
+ export const HalfEllipses = Template.bind({})
46
+ HalfEllipses.args = {
47
+ height :'25em',
48
+ verticalAlign:'flex-end',
49
+ color :'background3',
50
+ shape :'half-ellipses',
51
+ }
52
+
53
+ export const Ellipse = Template.bind({})
54
+ Ellipse.args = {
55
+ height :'30em',
56
+ verticalAlign:'flex-end',
57
+ color :'main3',
58
+ shape :'ellipse',
59
+ }
60
+
61
+ export const HalfEllipse = Template.bind({})
62
+ HalfEllipse.args = {
63
+ height :'25em',
64
+ verticalAlign:'flex-end',
65
+ color :'background3',
66
+ shape :'half-ellipse',
67
+ }
68
+
69
+ export const Diamonds = Template.bind({})
70
+ Diamonds.args = {
71
+ height :'30em',
72
+ verticalAlign:'flex-end',
73
+ color :'background4',
74
+ shape :'diamonds',
75
+ }
76
+
77
+ export const Rectangles = Template.bind({})
78
+ Rectangles.args = {
79
+ height :'30em',
80
+ verticalAlign:'flex-end',
81
+ color :'background5',
82
+ shape :'rectangles',
83
+ }
84
+
85
+ export const Circle = Template.bind({})
86
+ Circle.args = {
87
+ height :'30em',
88
+ verticalAlign:'flex-end',
89
+ color :'background5',
90
+ shape :'circle',
91
+ }
92
+
93
+ export const HalfCircle = Template.bind({})
94
+ HalfCircle.args = {
95
+ height :'30em',
96
+ verticalAlign:'flex-end',
97
+ color :'background4',
98
+ shape :'half-circle',
99
+ }
100
+
101
+ export const Ellipses = Template.bind({})
102
+ Ellipses.args = {
103
+ height :'30em',
104
+ verticalAlign:'flex-end',
105
+ color :'background4',
106
+ shape :'ellipses',
107
+ }
108
+
109
+ export const Spiral = Template.bind({})
110
+ Spiral.args = {
111
+ height :'100em',
112
+ verticalAlign :'center',
113
+ horizontalAlign:'center',
114
+ color :'background6',
115
+ shape :'spiral',
116
+ }
117
+
118
+ export const RotatedEllipses = Template.bind({})
119
+ RotatedEllipses.args = {
120
+ height :'60em',
121
+ verticalAlign :'center',
122
+ horizontalAlign:'center',
123
+ color :'background5',
124
+ shape :'rotated-ellipses',
125
+ }
@@ -1,7 +1,7 @@
1
1
  /* @pareto-engineering/generator-front 1.0.0 */
2
2
  import * as React from 'react'
3
3
 
4
- import { Page } from 'ui'
4
+ import { Page, Quote } from 'ui'
5
5
 
6
6
  export default {
7
7
  title :'b/Page',
@@ -57,3 +57,29 @@ export const WithSections = () => (
57
57
  </Page.Section>
58
58
  </Page>
59
59
  )
60
+
61
+ export const SectionsWithBackground = () => (
62
+ <Page
63
+ id="with-sections"
64
+ >
65
+ <Page.Section
66
+ id="s1"
67
+ backgroundShape="triangle"
68
+ backgroundHeight="30em"
69
+ backgroundVerticalAlign="flex-end"
70
+ backgroundHorizontalAlign="center"
71
+ className="y-success b-light-y"
72
+ style={{
73
+ height :'30em',
74
+ display :'flex',
75
+ justifyContent:'center',
76
+ alignItems :'center',
77
+ }}
78
+ >
79
+ <Quote author="Austen Spoonts" color="paragraph">
80
+ Pareto was like having a full-time employee without having to hire somebody.
81
+ That’s how I would explain it. An on-call, on-demand full-time employee.
82
+ </Quote>
83
+ </Page.Section>
84
+ </Page>
85
+ )