boflow-components 1.0.2 → 1.0.3
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/App.js +89 -4
- package/dist/components/Button/button.css +37 -13
- package/package.json +1 -1
package/dist/App.js
CHANGED
|
@@ -180,15 +180,15 @@ const App = ()=>/*#__PURE__*/ jsxs("div", {
|
|
|
180
180
|
children: [
|
|
181
181
|
/*#__PURE__*/ jsx(Button, {
|
|
182
182
|
size: ButtonSize.Small,
|
|
183
|
-
label: "Small
|
|
183
|
+
label: "Small Primary"
|
|
184
184
|
}),
|
|
185
185
|
/*#__PURE__*/ jsx(Button, {
|
|
186
186
|
size: ButtonSize.Medium,
|
|
187
|
-
label: "Medium
|
|
187
|
+
label: "Medium Primary"
|
|
188
188
|
}),
|
|
189
189
|
/*#__PURE__*/ jsx(Button, {
|
|
190
190
|
size: ButtonSize.Big,
|
|
191
|
-
label: "Big
|
|
191
|
+
label: "Big Primary"
|
|
192
192
|
}),
|
|
193
193
|
/*#__PURE__*/ jsx(Button, {
|
|
194
194
|
size: ButtonSize.Medium,
|
|
@@ -300,7 +300,92 @@ const App = ()=>/*#__PURE__*/ jsxs("div", {
|
|
|
300
300
|
}),
|
|
301
301
|
/*#__PURE__*/ jsx(Button, {
|
|
302
302
|
size: ButtonSize.Medium,
|
|
303
|
-
label: "Disabled
|
|
303
|
+
label: "Disabled Primary",
|
|
304
|
+
disabled: true
|
|
305
|
+
})
|
|
306
|
+
]
|
|
307
|
+
}),
|
|
308
|
+
/*#__PURE__*/ jsxs("div", {
|
|
309
|
+
style: {
|
|
310
|
+
display: 'flex',
|
|
311
|
+
flexWrap: 'wrap',
|
|
312
|
+
gap: '1rem',
|
|
313
|
+
alignItems: 'center',
|
|
314
|
+
marginTop: '1rem'
|
|
315
|
+
},
|
|
316
|
+
children: [
|
|
317
|
+
/*#__PURE__*/ jsx(Button, {
|
|
318
|
+
size: ButtonSize.Small,
|
|
319
|
+
primary: false,
|
|
320
|
+
label: "Small Secondary"
|
|
321
|
+
}),
|
|
322
|
+
/*#__PURE__*/ jsx(Button, {
|
|
323
|
+
size: ButtonSize.Medium,
|
|
324
|
+
primary: false,
|
|
325
|
+
label: "Medium Secondary"
|
|
326
|
+
}),
|
|
327
|
+
/*#__PURE__*/ jsx(Button, {
|
|
328
|
+
size: ButtonSize.Big,
|
|
329
|
+
primary: false,
|
|
330
|
+
label: "Big Secondary"
|
|
331
|
+
}),
|
|
332
|
+
/*#__PURE__*/ jsx(Button, {
|
|
333
|
+
size: ButtonSize.Medium,
|
|
334
|
+
primary: false,
|
|
335
|
+
label: "With Icons",
|
|
336
|
+
leftIcon: /*#__PURE__*/ jsxs("svg", {
|
|
337
|
+
width: "16",
|
|
338
|
+
height: "16",
|
|
339
|
+
viewBox: "0 0 24 24",
|
|
340
|
+
fill: "none",
|
|
341
|
+
stroke: "currentColor",
|
|
342
|
+
strokeWidth: "2",
|
|
343
|
+
strokeLinecap: "round",
|
|
344
|
+
strokeLinejoin: "round",
|
|
345
|
+
children: [
|
|
346
|
+
/*#__PURE__*/ jsx("title", {
|
|
347
|
+
children: "Arrow Left"
|
|
348
|
+
}),
|
|
349
|
+
/*#__PURE__*/ jsx("line", {
|
|
350
|
+
x1: "19",
|
|
351
|
+
y1: "12",
|
|
352
|
+
x2: "5",
|
|
353
|
+
y2: "12"
|
|
354
|
+
}),
|
|
355
|
+
/*#__PURE__*/ jsx("polyline", {
|
|
356
|
+
points: "12 19 5 12 12 5"
|
|
357
|
+
})
|
|
358
|
+
]
|
|
359
|
+
}),
|
|
360
|
+
rightIcon: /*#__PURE__*/ jsxs("svg", {
|
|
361
|
+
width: "16",
|
|
362
|
+
height: "16",
|
|
363
|
+
viewBox: "0 0 24 24",
|
|
364
|
+
fill: "none",
|
|
365
|
+
stroke: "currentColor",
|
|
366
|
+
strokeWidth: "2",
|
|
367
|
+
strokeLinecap: "round",
|
|
368
|
+
strokeLinejoin: "round",
|
|
369
|
+
children: [
|
|
370
|
+
/*#__PURE__*/ jsx("title", {
|
|
371
|
+
children: "Arrow Right"
|
|
372
|
+
}),
|
|
373
|
+
/*#__PURE__*/ jsx("line", {
|
|
374
|
+
x1: "5",
|
|
375
|
+
y1: "12",
|
|
376
|
+
x2: "19",
|
|
377
|
+
y2: "12"
|
|
378
|
+
}),
|
|
379
|
+
/*#__PURE__*/ jsx("polyline", {
|
|
380
|
+
points: "12 5 19 12 12 19"
|
|
381
|
+
})
|
|
382
|
+
]
|
|
383
|
+
})
|
|
384
|
+
}),
|
|
385
|
+
/*#__PURE__*/ jsx(Button, {
|
|
386
|
+
size: ButtonSize.Medium,
|
|
387
|
+
primary: false,
|
|
388
|
+
label: "Disabled Secondary",
|
|
304
389
|
disabled: true
|
|
305
390
|
})
|
|
306
391
|
]
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
font-family: Inter Tight, sans-serif;
|
|
8
8
|
font-weight: 500;
|
|
9
9
|
line-height: 1.4;
|
|
10
|
-
transition:
|
|
10
|
+
transition: background-color .2s ease-in-out, border-color .2s ease-in-out, color .2s ease-in-out, box-shadow .2s ease-in-out;
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -33,39 +33,63 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.bo-button--primary {
|
|
36
|
-
border: 1px solid var(--primary-500, #131313);
|
|
37
|
-
background: linear-gradient(180deg, var(--primary-400, #424242) 0%, var(--primary-500, #131313) 100%);
|
|
38
36
|
color: #fff;
|
|
37
|
+
background-color: #131313;
|
|
38
|
+
background-image: linear-gradient(#424242 0%, #131313 100%);
|
|
39
|
+
border: 1px solid #131313;
|
|
39
40
|
border-radius: 10px;
|
|
40
41
|
box-shadow: inset 4px 4px 8px #fff6, 0 0 1px #0000001a, 0 2px 4px #0003;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
.bo-button--primary:hover:not(:disabled) {
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
background-image: linear-gradient(#717171 0%, #424242 100%);
|
|
46
|
+
border: 1px solid #a1a1a1;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.bo-button--primary:active:not(:disabled) {
|
|
49
50
|
box-shadow: none;
|
|
50
|
-
background: #
|
|
51
|
-
|
|
51
|
+
background-color: #1a1b25;
|
|
52
|
+
background-image: none;
|
|
53
|
+
border-color: #1a1b25;
|
|
52
54
|
border-radius: 10px;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
.bo-button--primary:disabled {
|
|
56
|
-
|
|
57
|
-
color: var(--neutral-7, #a4acb9);
|
|
58
|
+
color: #a4acb9;
|
|
58
59
|
box-shadow: none;
|
|
59
60
|
cursor: not-allowed;
|
|
61
|
+
background-color: #eceff3;
|
|
62
|
+
background-image: none;
|
|
60
63
|
border: 1px solid #0000;
|
|
61
64
|
border-radius: 10px;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
.bo-button--secondary {
|
|
65
|
-
color: #
|
|
66
|
-
background
|
|
67
|
-
border:
|
|
68
|
+
color: #131313;
|
|
69
|
+
background: none;
|
|
70
|
+
border: 1px solid #a4acb9;
|
|
68
71
|
border-radius: 10px;
|
|
69
|
-
box-shadow:
|
|
72
|
+
box-shadow: 0 0 1px #0000001a, 0 2px 4px #0003;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.bo-button--secondary:hover:not(:disabled) {
|
|
76
|
+
color: #fff;
|
|
77
|
+
background: #131313;
|
|
78
|
+
border-color: #131313;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bo-button--secondary:active:not(:disabled) {
|
|
82
|
+
color: #fff;
|
|
83
|
+
box-shadow: none;
|
|
84
|
+
background: #424242;
|
|
85
|
+
border-color: #424242;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.bo-button--secondary:disabled {
|
|
89
|
+
color: #a4acb9;
|
|
90
|
+
box-shadow: none;
|
|
91
|
+
cursor: not-allowed;
|
|
92
|
+
background: #eceff3;
|
|
93
|
+
border-color: #0000;
|
|
70
94
|
}
|
|
71
95
|
|