urfu-ui-kit-vanilla 1.0.66 → 1.0.68
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/README.md +5 -1
- package/package.json +1 -1
- package/src/main.css +31 -25
- package/src/main.ts +1 -11
package/README.md
CHANGED
|
@@ -8,4 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
4. Для публикации актуальных версий в npm нужно иметь права соавтора на пакет в npmjs.com. Публикация актуальной версии производится посредством выполнения команды npm publish в терминале. Для успешной отправки изменений должна быть указана актуальная версия проекта в поле "version" файла package.json. Файлы для публикации определены в поле "files" файла package.json.
|
|
10
10
|
|
|
11
|
-
5. Для публикации актуальной версии на сервер (ссылочный метод использования библиотеки) данный проект собирается и содержимое папки dist помещается в папку с актуальным номером версии (v[номер], пример: v1 - первая версия библиотеки) папки public проекта u-library-review. Не забывайте обновлять актуальный номер версии в документации (https://uikit.my1.urfu.ru/). Файлы для сборки определены в поле "include" файла tsconfig.json.
|
|
11
|
+
5. Для публикации актуальной версии на сервер (ссылочный метод использования библиотеки) данный проект собирается и содержимое папки dist помещается в папку с актуальным номером версии (v[номер], пример: v1 - первая версия библиотеки) папки public проекта u-library-review. Не забывайте обновлять актуальный номер версии в документации (https://uikit.my1.urfu.ru/). Файлы для сборки определены в поле "include" файла tsconfig.json.
|
|
12
|
+
|
|
13
|
+
Доработки:
|
|
14
|
+
1. u-switch: для градиента сделать плавный переход фона
|
|
15
|
+
2.
|
package/package.json
CHANGED
package/src/main.css
CHANGED
|
@@ -1607,6 +1607,7 @@ button {
|
|
|
1607
1607
|
height: 26px;
|
|
1608
1608
|
position: relative;
|
|
1609
1609
|
border-radius: 16px;
|
|
1610
|
+
transition: all 0.2s ease-in-out;
|
|
1610
1611
|
background-color: #D3D3D3;
|
|
1611
1612
|
}
|
|
1612
1613
|
.u-switch__point::after {
|
|
@@ -1621,12 +1622,6 @@ button {
|
|
|
1621
1622
|
background-color: #FFFFFF;
|
|
1622
1623
|
transition: all 0.2s ease-in-out;
|
|
1623
1624
|
}
|
|
1624
|
-
.u-switch.u-switch-text-left div {
|
|
1625
|
-
margin-left: 12px;
|
|
1626
|
-
}
|
|
1627
|
-
.u-switch.u-switch-text-right div {
|
|
1628
|
-
margin-right: 12px;
|
|
1629
|
-
}
|
|
1630
1625
|
.u-switch-gradient {
|
|
1631
1626
|
cursor: pointer;
|
|
1632
1627
|
display: flex;
|
|
@@ -1641,10 +1636,12 @@ button {
|
|
|
1641
1636
|
}
|
|
1642
1637
|
.u-switch-gradient input:disabled + div {
|
|
1643
1638
|
cursor: not-allowed;
|
|
1644
|
-
background: #D3D3D3;
|
|
1639
|
+
background-image: linear-gradient(0, #D3D3D3 100%, #D3D3D3 100%, #D3D3D3 100%);
|
|
1645
1640
|
}
|
|
1646
1641
|
.u-switch-gradient input:checked + .u-switch-gradient__point {
|
|
1647
|
-
background: linear-gradient(270deg, #FF2D7F -0.71%, #FB3727 47.63%, #FEEA0F 100%);
|
|
1642
|
+
background-image: linear-gradient(270deg, #FF2D7F -0.71%, #FB3727 47.63%, #FEEA0F 100%);
|
|
1643
|
+
animation-name: from;
|
|
1644
|
+
animation-duration: 0.2s;
|
|
1648
1645
|
}
|
|
1649
1646
|
.u-switch-gradient__point {
|
|
1650
1647
|
cursor: pointer;
|
|
@@ -1652,7 +1649,10 @@ button {
|
|
|
1652
1649
|
height: 26px;
|
|
1653
1650
|
position: relative;
|
|
1654
1651
|
border-radius: 16px;
|
|
1655
|
-
|
|
1652
|
+
transition: all 0.2s ease-in-out;
|
|
1653
|
+
animation-name: to;
|
|
1654
|
+
animation-duration: 0.2s;
|
|
1655
|
+
background-image: linear-gradient(0, #D3D3D3 100%, #D3D3D3 100%, #D3D3D3 100%);
|
|
1656
1656
|
}
|
|
1657
1657
|
.u-switch-gradient__point::after {
|
|
1658
1658
|
content: "";
|
|
@@ -1666,15 +1666,29 @@ button {
|
|
|
1666
1666
|
background-color: #FFFFFF;
|
|
1667
1667
|
transition: all 0.2s ease-in-out;
|
|
1668
1668
|
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1669
|
+
@keyframes to {
|
|
1670
|
+
0% {
|
|
1671
|
+
background: linear-gradient(270deg, #FF2D7F -0.71%, #FB3727 47.63%, #FEEA0F 100%);
|
|
1672
|
+
}
|
|
1673
|
+
100% {
|
|
1674
|
+
background: linear-gradient(0, #D3D3D3 100%, #D3D3D3 100%, #D3D3D3 100%);
|
|
1675
|
+
}
|
|
1671
1676
|
}
|
|
1672
|
-
|
|
1673
|
-
|
|
1677
|
+
@keyframes from {
|
|
1678
|
+
0% {
|
|
1679
|
+
background: linear-gradient(0, #D3D3D3 100%, #D3D3D3 100%, #D3D3D3 100%);
|
|
1680
|
+
}
|
|
1681
|
+
100% {
|
|
1682
|
+
background: linear-gradient(270deg, #FF2D7F -0.71%, #FB3727 47.63%, #FEEA0F 100%);
|
|
1683
|
+
}
|
|
1674
1684
|
}
|
|
1675
1685
|
.u-radio {
|
|
1676
1686
|
cursor: pointer;
|
|
1677
1687
|
display: flex;
|
|
1688
|
+
align-items: center;
|
|
1689
|
+
column-gap: 10px;
|
|
1690
|
+
font-size: 14px;
|
|
1691
|
+
line-height: 20px;
|
|
1678
1692
|
}
|
|
1679
1693
|
.u-radio input {
|
|
1680
1694
|
display: none;
|
|
@@ -1701,15 +1715,13 @@ button {
|
|
|
1701
1715
|
background-repeat: no-repeat;
|
|
1702
1716
|
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%3Crect x='0.5' y='0.5' width='15' height='15' rx='7.5' stroke='%23D3D3D3'/%3E%3C/svg%3E%0A");
|
|
1703
1717
|
}
|
|
1704
|
-
.u-radio.u-radio-text-left div {
|
|
1705
|
-
margin-left: 12px;
|
|
1706
|
-
}
|
|
1707
|
-
.u-radio.u-radio-text-right div {
|
|
1708
|
-
margin-right: 12px;
|
|
1709
|
-
}
|
|
1710
1718
|
.u-checkbox {
|
|
1711
1719
|
cursor: pointer;
|
|
1712
1720
|
display: flex;
|
|
1721
|
+
align-items: center;
|
|
1722
|
+
column-gap: 10px;
|
|
1723
|
+
font-size: 14px;
|
|
1724
|
+
line-height: 20px;
|
|
1713
1725
|
}
|
|
1714
1726
|
.u-checkbox input {
|
|
1715
1727
|
display: none;
|
|
@@ -1736,12 +1748,6 @@ button {
|
|
|
1736
1748
|
background-repeat: no-repeat;
|
|
1737
1749
|
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%3Crect x='0.5' y='0.5' width='15' height='15' rx='1.5' fill='white' stroke='%23D3D3D3'/%3E%3C/svg%3E ");
|
|
1738
1750
|
}
|
|
1739
|
-
.u-checkbox.u-checkbox-text-left div {
|
|
1740
|
-
margin-left: 12px;
|
|
1741
|
-
}
|
|
1742
|
-
.u-checkbox.u-checkbox-text-right div {
|
|
1743
|
-
margin-right: 12px;
|
|
1744
|
-
}
|
|
1745
1751
|
.u-accordion {
|
|
1746
1752
|
border-left: 4px solid #748AB9;
|
|
1747
1753
|
padding-left: 20px;
|
package/src/main.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
// import AirDatepicker from 'air-datepicker';
|
|
2
|
-
// import 'air-datepicker/air-datepicker.css';
|
|
3
1
|
import "./main.css";
|
|
4
2
|
// import "./main.less";
|
|
5
|
-
// import "./js/upward.js"
|
|
6
|
-
|
|
7
|
-
// new AirDatepicker('#airdatepicker', {
|
|
8
|
-
// toggleSelected: true,
|
|
9
|
-
// range: true,
|
|
10
|
-
// position: "bottom right",
|
|
11
|
-
// inline: true,
|
|
12
|
-
// })
|
|
13
|
-
|
|
3
|
+
// import "./js/upward.js"
|