Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Commit bedc361

Browse files
committed
Build css
1 parent b47b12e commit bedc361

File tree

5 files changed

+74
-8
lines changed

5 files changed

+74
-8
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
with:
1515
node-version: '20.x'
1616
registry-url: 'https://registry.npmjs.org'
17-
- run: npm ci
18-
- run: npm publish --access public
17+
- run:
18+
npm ci
19+
npm npm build-css
20+
npm publish --access public
1921
env:
2022
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ yarn-error.log*
3838
*.tsbuildinfo
3939
next-env.d.ts
4040

41-
src/app/style.scss
41+
# src/app/style.scss

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@canopassoftware/react-file-upload",
3-
"version": "1.1.29",
3+
"version": "1.1.30",
44
"description": "Show the preview of file and manage files data to upload",
55
"private": false,
66
"main": "/src/app/index.js",

src/app/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
exports.MultipleFileUpload = exports.SingleFileUpload = void 0;
44
require("../../dist/css/output.css");
55
require("../../dist/css/style.scss");
6-
var singleFileUpload_tsx_1 = require("./components/singleFileUpload.tsx");
7-
exports.SingleFileUpload = singleFileUpload_tsx_1.default;
8-
var multipleFileUpload_tsx_1 = require("./components/multipleFileUpload.tsx");
9-
exports.MultipleFileUpload = multipleFileUpload_tsx_1.default;
6+
var singleFileUpload_js_1 = require("./components/singleFileUpload.js");
7+
exports.SingleFileUpload = singleFileUpload_js_1.default;
8+
var multipleFileUpload_js_1 = require("./components/multipleFileUpload.js");
9+
exports.MultipleFileUpload = multipleFileUpload_js_1.default;

src/app/style.scss

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
@mixin gradient-striped($color: rgba(255, 255, 255, 0.15), $angle: 45deg) {
2+
background-image: -webkit-linear-gradient(
3+
$angle,
4+
$color 25%,
5+
transparent 25%,
6+
transparent 50%,
7+
$color 50%,
8+
$color 75%,
9+
transparent 75%,
10+
transparent
11+
);
12+
background-image: -o-linear-gradient(
13+
$angle,
14+
$color 25%,
15+
transparent 25%,
16+
transparent 50%,
17+
$color 50%,
18+
$color 75%,
19+
transparent 75%,
20+
transparent
21+
);
22+
background-image: linear-gradient(
23+
$angle,
24+
$color 25%,
25+
transparent 25%,
26+
transparent 50%,
27+
$color 50%,
28+
$color 75%,
29+
transparent 75%,
30+
transparent
31+
);
32+
}
33+
34+
@-webkit-keyframes progress-bar-stripes {
35+
from {
36+
background-position: 40px 0;
37+
}
38+
to {
39+
background-position: 0 0;
40+
}
41+
}
42+
43+
@keyframes progress-bar-stripes {
44+
from {
45+
background-position: 40px 0;
46+
}
47+
to {
48+
background-position: 0 0;
49+
}
50+
}
51+
52+
@mixin animation($animation) {
53+
-webkit-animation: $animation;
54+
-o-animation: $animation;
55+
animation: $animation;
56+
}
57+
.progress.active .progress-bar {
58+
@include animation(progress-bar-stripes 2s linear infinite);
59+
}
60+
.progress-striped .progress-bar {
61+
@include gradient-striped;
62+
background-size: 40px 40px;
63+
}
64+

0 commit comments

Comments
 (0)