urfu-ui-kit-vanilla 1.0.40 → 1.0.42
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/package.json +9 -3
- package/src/js/upward.js +11 -0
- package/src/main.css +133 -3
- package/src/main.ts +10 -0
package/package.json
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"description": "UrFU UI-Kit for Vanilla Web",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.42",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"start": "vite
|
|
9
|
+
"start": "vite",
|
|
10
10
|
"build": "vite build",
|
|
11
11
|
"preview": "vite preview"
|
|
12
12
|
},
|
|
@@ -19,5 +19,11 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"air-datepicker": "^3.3.5"
|
|
21
21
|
},
|
|
22
|
-
"files": [
|
|
22
|
+
"files": [
|
|
23
|
+
"src/main.ts",
|
|
24
|
+
"src/js/*",
|
|
25
|
+
"src/main.css",
|
|
26
|
+
"src/ui-icons.css",
|
|
27
|
+
"src/fonts/*"
|
|
28
|
+
]
|
|
23
29
|
}
|
package/src/js/upward.js
ADDED
package/src/main.css
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
@import "ui-icons.css";
|
|
2
2
|
@import "ui-icons.css";
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Montserrat';
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf) format('truetype');
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'Montserrat';
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format('truetype');
|
|
16
|
+
}
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: 'Montserrat';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format('truetype');
|
|
23
|
+
}
|
|
3
24
|
* {
|
|
4
25
|
box-sizing: border-box;
|
|
5
26
|
}
|
|
@@ -1523,13 +1544,21 @@ button {
|
|
|
1523
1544
|
transition-duration: 0.15s;
|
|
1524
1545
|
transition-timing-function: ease-in-out;
|
|
1525
1546
|
background-color: transparent;
|
|
1526
|
-
color: #
|
|
1547
|
+
color: #A7A7A7;
|
|
1548
|
+
border-bottom: 1px solid #A7A7A7;
|
|
1549
|
+
}
|
|
1550
|
+
.u-tab-line:hover {
|
|
1551
|
+
color: #748AB9;
|
|
1552
|
+
background-color: #F2F3F5;
|
|
1553
|
+
border-bottom: 1px solid #748AB9;
|
|
1554
|
+
border-top-left-radius: 10px;
|
|
1555
|
+
border-top-right-radius: 10px;
|
|
1527
1556
|
}
|
|
1528
|
-
.u-tab-line:hover,
|
|
1529
1557
|
.u-tab-line:focus,
|
|
1530
1558
|
.u-tab-line.u-tab-active {
|
|
1531
1559
|
color: #1E4391;
|
|
1532
1560
|
border-bottom: 2px solid #1E4391;
|
|
1561
|
+
background-color: transparent;
|
|
1533
1562
|
}
|
|
1534
1563
|
.u-tab-line-secondary {
|
|
1535
1564
|
cursor: pointer;
|
|
@@ -1770,7 +1799,7 @@ button {
|
|
|
1770
1799
|
white-space: nowrap;
|
|
1771
1800
|
font-size: 10px;
|
|
1772
1801
|
line-height: 1.6;
|
|
1773
|
-
font-weight:
|
|
1802
|
+
font-weight: 600;
|
|
1774
1803
|
height: 20px;
|
|
1775
1804
|
padding: 0 8px;
|
|
1776
1805
|
border-radius: 8px;
|
|
@@ -2997,6 +3026,107 @@ button {
|
|
|
2997
3026
|
.u-collapsible-menu-action-hide ~ .u-collapsible-menu-body .u-collapsible-menu-list {
|
|
2998
3027
|
visibility: hidden;
|
|
2999
3028
|
}
|
|
3029
|
+
.u-card {
|
|
3030
|
+
position: relative;
|
|
3031
|
+
background-color: #fff;
|
|
3032
|
+
display: flex;
|
|
3033
|
+
flex-direction: column;
|
|
3034
|
+
flex-wrap: wrap;
|
|
3035
|
+
height: 100%;
|
|
3036
|
+
justify-content: space-between;
|
|
3037
|
+
min-height: 188px;
|
|
3038
|
+
padding: 20px 20px 62px;
|
|
3039
|
+
color: #1e4391;
|
|
3040
|
+
font-size: 24px;
|
|
3041
|
+
font-weight: 600;
|
|
3042
|
+
line-height: 28px;
|
|
3043
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='30' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 13-.638-2.825a1 1 0 0 0-1.51-.625l-2.448 1.546L3.45 8.647a1 1 0 0 0-.625-1.509L0 6.5l2.825-.638a1 1 0 0 0 .625-1.51L1.904 1.905 4.353 3.45a1 1 0 0 0 1.509-.625L6.5 0l.638 2.825a1 1 0 0 0 1.51.625l2.448-1.546L9.55 4.353a1 1 0 0 0 .625 1.509L13 6.5l-2.825.638a1 1 0 0 0-.625 1.51l1.546 2.448L8.647 9.55a1 1 0 0 0-1.509.625L6.5 13ZM21.5 32l-.708-1.395a27.59 27.59 0 0 0-.462-.89 13 13 0 0 0-5.045-5.045 27.59 27.59 0 0 0-.89-.462L13 23.5l1.395-.708c.45-.228.675-.342.89-.462a13 13 0 0 0 5.045-5.045c.12-.215.234-.44.462-.89L21.5 15l.708 1.395c.228.45.342.675.462.89a13 13 0 0 0 5.045 5.045c.215.12.44.234.89.462L30 23.5l-1.395.708c-.45.228-.675.342-.89.462a13 13 0 0 0-5.045 5.045c-.12.215-.234.44-.462.89L21.5 32Z' fill='%231E4391'/%3E%3C/svg%3E");
|
|
3044
|
+
background-repeat: no-repeat;
|
|
3045
|
+
background-position: bottom 20px left 20px;
|
|
3046
|
+
}
|
|
3047
|
+
.u-card:hover {
|
|
3048
|
+
background-color: #2951B6;
|
|
3049
|
+
color: #FFFFFF;
|
|
3050
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='30' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 13-.638-2.825a1 1 0 0 0-1.51-.625l-2.448 1.546L3.45 8.647a1 1 0 0 0-.625-1.509L0 6.5l2.825-.638a1 1 0 0 0 .625-1.51L1.904 1.905 4.353 3.45a1 1 0 0 0 1.509-.625L6.5 0l.638 2.825a1 1 0 0 0 1.51.625l2.448-1.546L9.55 4.353a1 1 0 0 0 .625 1.509L13 6.5l-2.825.638a1 1 0 0 0-.625 1.51l1.546 2.448L8.647 9.55a1 1 0 0 0-1.509.625L6.5 13ZM21.5 32l-.708-1.395a27.59 27.59 0 0 0-.462-.89 13 13 0 0 0-5.045-5.045 27.59 27.59 0 0 0-.89-.462L13 23.5l1.395-.708c.45-.228.675-.342.89-.462a13 13 0 0 0 5.045-5.045c.12-.215.234-.44.462-.89L21.5 15l.708 1.395c.228.45.342.675.462.89a13 13 0 0 0 5.045 5.045c.215.12.44.234.89.462L30 23.5l-1.395.708c-.45.228-.675.342-.89.462a13 13 0 0 0-5.045 5.045c-.12.215-.234.44-.462.89L21.5 32Z' fill='%23FFF'/%3E%3C/svg%3E");
|
|
3051
|
+
}
|
|
3052
|
+
.u-card:hover .u-card-action {
|
|
3053
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.143 3 6 5-6 5' stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 8H1' stroke='%23FFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
3054
|
+
}
|
|
3055
|
+
.u-card-action {
|
|
3056
|
+
cursor: pointer;
|
|
3057
|
+
position: absolute;
|
|
3058
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.143 3 6 5-6 5' stroke='%231E4391' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 8H1' stroke='%231E4391' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
3059
|
+
background-repeat: no-repeat;
|
|
3060
|
+
height: 16px;
|
|
3061
|
+
width: 16px;
|
|
3062
|
+
bottom: 20px;
|
|
3063
|
+
right: 20px;
|
|
3064
|
+
}
|
|
3065
|
+
.u-card-second {
|
|
3066
|
+
position: relative;
|
|
3067
|
+
background-color: #2951B6;
|
|
3068
|
+
display: flex;
|
|
3069
|
+
flex-direction: column;
|
|
3070
|
+
color: #fff;
|
|
3071
|
+
flex-wrap: wrap;
|
|
3072
|
+
height: 100%;
|
|
3073
|
+
justify-content: space-between;
|
|
3074
|
+
min-height: 188px;
|
|
3075
|
+
padding: 20px 20px 62px;
|
|
3076
|
+
font-size: 24px;
|
|
3077
|
+
font-weight: 600;
|
|
3078
|
+
line-height: 28px;
|
|
3079
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='30' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 13-.638-2.825a1 1 0 0 0-1.51-.625l-2.448 1.546L3.45 8.647a1 1 0 0 0-.625-1.509L0 6.5l2.825-.638a1 1 0 0 0 .625-1.51L1.904 1.905 4.353 3.45a1 1 0 0 0 1.509-.625L6.5 0l.638 2.825a1 1 0 0 0 1.51.625l2.448-1.546L9.55 4.353a1 1 0 0 0 .625 1.509L13 6.5l-2.825.638a1 1 0 0 0-.625 1.51l1.546 2.448L8.647 9.55a1 1 0 0 0-1.509.625L6.5 13ZM21.5 32l-.708-1.395a27.59 27.59 0 0 0-.462-.89 13 13 0 0 0-5.045-5.045 27.59 27.59 0 0 0-.89-.462L13 23.5l1.395-.708c.45-.228.675-.342.89-.462a13 13 0 0 0 5.045-5.045c.12-.215.234-.44.462-.89L21.5 15l.708 1.395c.228.45.342.675.462.89a13 13 0 0 0 5.045 5.045c.215.12.44.234.89.462L30 23.5l-1.395.708c-.45.228-.675.342-.89.462a13 13 0 0 0-5.045 5.045c-.12.215-.234.44-.462.89L21.5 32Z' fill='%23FFF'/%3E%3C/svg%3E");
|
|
3080
|
+
background-repeat: no-repeat;
|
|
3081
|
+
background-position: bottom 20px left 20px;
|
|
3082
|
+
}
|
|
3083
|
+
.u-card-second:hover {
|
|
3084
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='30' height='32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.5 13-.638-2.825a1 1 0 0 0-1.51-.625l-2.448 1.546L3.45 8.647a1 1 0 0 0-.625-1.509L0 6.5l2.825-.638a1 1 0 0 0 .625-1.51L1.904 1.905 4.353 3.45a1 1 0 0 0 1.509-.625L6.5 0l.638 2.825a1 1 0 0 0 1.51.625l2.448-1.546L9.55 4.353a1 1 0 0 0 .625 1.509L13 6.5l-2.825.638a1 1 0 0 0-.625 1.51l1.546 2.448L8.647 9.55a1 1 0 0 0-1.509.625L6.5 13ZM21.5 32l-.708-1.395a27.59 27.59 0 0 0-.462-.89 13 13 0 0 0-5.045-5.045 27.59 27.59 0 0 0-.89-.462L13 23.5l1.395-.708c.45-.228.675-.342.89-.462a13 13 0 0 0 5.045-5.045c.12-.215.234-.44.462-.89L21.5 15l.708 1.395c.228.45.342.675.462.89a13 13 0 0 0 5.045 5.045c.215.12.44.234.89.462L30 23.5l-1.395.708c-.45.228-.675.342-.89.462a13 13 0 0 0-5.045 5.045c-.12.215-.234.44-.462.89L21.5 32Z' fill='%23FF2D7F'/%3E%3C/svg%3E");
|
|
3085
|
+
background-color: #fff;
|
|
3086
|
+
color: #1e4391;
|
|
3087
|
+
}
|
|
3088
|
+
.u-card-second:hover .u-card-second-action {
|
|
3089
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.143 3 6 5-6 5' stroke='%23FF2D7F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 8H1' stroke='%23FF2D7F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
3090
|
+
}
|
|
3091
|
+
.u-card-second-action {
|
|
3092
|
+
cursor: pointer;
|
|
3093
|
+
position: absolute;
|
|
3094
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.143 3 6 5-6 5' stroke='%23FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 8H1' stroke='%23FFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
3095
|
+
background-repeat: no-repeat;
|
|
3096
|
+
height: 16px;
|
|
3097
|
+
width: 16px;
|
|
3098
|
+
bottom: 20px;
|
|
3099
|
+
right: 20px;
|
|
3100
|
+
}
|
|
3101
|
+
.u-upward {
|
|
3102
|
+
position: fixed;
|
|
3103
|
+
bottom: 700px;
|
|
3104
|
+
right: 25px;
|
|
3105
|
+
width: 62px;
|
|
3106
|
+
height: 62px;
|
|
3107
|
+
background-image: url("data:image/svg+xml, %3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.6402 7.7682C13.2159 8.12176 12.5853 8.06444 12.2318 7.64016L7.99997 2.56202L3.7682 7.64016C3.41463 8.06444 2.78407 8.12176 2.35979 7.7682C1.93551 7.41463 1.87819 6.78407 2.23175 6.35979L7.23174 0.359791C7.42174 0.131798 7.70318 -2.47955e-05 7.99996 -2.47955e-05C8.29674 -2.47955e-05 8.57819 0.131797 8.76819 0.359789L13.7682 6.35979C14.1218 6.78407 14.0644 7.41463 13.6402 7.7682Z' fill='%231E4391'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 2.14258C8.55228 2.14258 9 2.59029 9 3.14258L9 14.1426C9 14.6949 8.55229 15.1426 8 15.1426C7.44772 15.1426 7 14.6949 7 14.1426L7 3.14258C7 2.59029 7.44772 2.14258 8 2.14258Z' fill='%231E4391'/%3E%3C/svg%3E%0A");
|
|
3108
|
+
background-repeat: no-repeat;
|
|
3109
|
+
background-position: center;
|
|
3110
|
+
box-shadow: 0px 0px 6px rgba(111, 127, 150, 0.25);
|
|
3111
|
+
cursor: pointer;
|
|
3112
|
+
visibility: hidden;
|
|
3113
|
+
opacity: 0;
|
|
3114
|
+
z-index: 100;
|
|
3115
|
+
border-radius: 50%;
|
|
3116
|
+
transition: 0.5s;
|
|
3117
|
+
background-color: #E7F2FF;
|
|
3118
|
+
border: 1px solid #E3EAF1;
|
|
3119
|
+
filter: drop-shadow(0px 0px 6px rgba(111, 127, 150, 0.25));
|
|
3120
|
+
}
|
|
3121
|
+
.u-upward.active {
|
|
3122
|
+
bottom: 25px;
|
|
3123
|
+
visibility: visible;
|
|
3124
|
+
opacity: 1;
|
|
3125
|
+
}
|
|
3126
|
+
.u-upward:hover {
|
|
3127
|
+
border: 1px solid #CAD1E1;
|
|
3128
|
+
filter: drop-shadow(0px 0px 6px rgba(111, 127, 150, 0.25));
|
|
3129
|
+
}
|
|
3000
3130
|
.bg-gradient-main {
|
|
3001
3131
|
background: linear-gradient(270deg, #FF2D7F -0.71%, #FB3727 47.63%, #FEEA0F 100%);
|
|
3002
3132
|
}
|
package/src/main.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// import AirDatepicker from 'air-datepicker';
|
|
2
|
+
// import 'air-datepicker/air-datepicker.css';
|
|
3
|
+
import "./main.css";
|
|
4
|
+
import "./js/upward.js"
|
|
5
|
+
|
|
6
|
+
// new AirDatepicker('#airdatepicker', {
|
|
7
|
+
// toggleSelected: true,
|
|
8
|
+
// range: true,
|
|
9
|
+
// position: "bottom right",
|
|
10
|
+
// })
|