@pzh-ui/css 0.0.28 → 0.0.31
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 +18 -0
- package/config/index.js +3 -0
- package/package.json +2 -2
- package/src/tailwind.css +58 -6
- package/src/tailwind.src.css +7 -0
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
# `css`
|
|
2
2
|
|
|
3
3
|
This package contains default styling for projects whitin Provincie Zuid-Holland.
|
|
4
|
+
|
|
5
|
+
We use the [Tailwind framework](https://tailwindcss.com/) to style the components. In order to apply the correct styles, install [@pzh-ui/css](https://www.npmjs.com/package/@pzh-ui/css) in your project.
|
|
6
|
+
|
|
7
|
+
`npm install @pzh-ui/css`
|
|
8
|
+
|
|
9
|
+
After installing the dependency, you can start using the styles as follows:
|
|
10
|
+
|
|
11
|
+
```jsx
|
|
12
|
+
// tailwind.config.js
|
|
13
|
+
module.exports = {
|
|
14
|
+
presets: [require('@pzh-ui/css/config')],
|
|
15
|
+
content: [
|
|
16
|
+
'./src/**/*.{js,jsx,ts,tsx}',
|
|
17
|
+
'./node_modules/@pzh-ui/components/dist/**/*.{js,jsx,ts,tsx}',
|
|
18
|
+
'./public/index.html',
|
|
19
|
+
],
|
|
20
|
+
}
|
|
21
|
+
```
|
package/config/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pzh-ui/css",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"description": "Contains default styling for projects whitin Provincie Zuid-Holland.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@tailwindcss/line-clamp": "^0.3.1",
|
|
20
20
|
"react-datepicker": "^4.7.0"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "7ad20a4be9e43b9ff5af00763b51aef9fc002ddc",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"tailwindcss": "^3.0.23"
|
|
25
25
|
}
|
package/src/tailwind.css
CHANGED
|
@@ -723,6 +723,18 @@ select{
|
|
|
723
723
|
right: 0px;
|
|
724
724
|
}
|
|
725
725
|
|
|
726
|
+
.top-0{
|
|
727
|
+
top: 0px;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.top-\[192px\]{
|
|
731
|
+
top: 192px;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.top-\[288px\]{
|
|
735
|
+
top: 288px;
|
|
736
|
+
}
|
|
737
|
+
|
|
726
738
|
.bottom-0{
|
|
727
739
|
bottom: 0px;
|
|
728
740
|
}
|
|
@@ -731,10 +743,6 @@ select{
|
|
|
731
743
|
left: 0px;
|
|
732
744
|
}
|
|
733
745
|
|
|
734
|
-
.top-0{
|
|
735
|
-
top: 0px;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
746
|
.-left-\[9999px\]{
|
|
739
747
|
left: -9999px;
|
|
740
748
|
}
|
|
@@ -764,6 +772,11 @@ select{
|
|
|
764
772
|
margin-right: auto;
|
|
765
773
|
}
|
|
766
774
|
|
|
775
|
+
.my-2{
|
|
776
|
+
margin-top: 0.5rem;
|
|
777
|
+
margin-bottom: 0.5rem;
|
|
778
|
+
}
|
|
779
|
+
|
|
767
780
|
.mr-2{
|
|
768
781
|
margin-right: 0.5rem;
|
|
769
782
|
}
|
|
@@ -792,8 +805,8 @@ select{
|
|
|
792
805
|
margin-left: 1rem;
|
|
793
806
|
}
|
|
794
807
|
|
|
795
|
-
.mt-
|
|
796
|
-
margin-top: 0.
|
|
808
|
+
.mt-1{
|
|
809
|
+
margin-top: 0.25rem;
|
|
797
810
|
}
|
|
798
811
|
|
|
799
812
|
.-mt-8{
|
|
@@ -812,6 +825,10 @@ select{
|
|
|
812
825
|
margin-bottom: 0.5rem;
|
|
813
826
|
}
|
|
814
827
|
|
|
828
|
+
.mt-2{
|
|
829
|
+
margin-top: 0.5rem;
|
|
830
|
+
}
|
|
831
|
+
|
|
815
832
|
.ml-1{
|
|
816
833
|
margin-left: 0.25rem;
|
|
817
834
|
}
|
|
@@ -852,6 +869,14 @@ select{
|
|
|
852
869
|
height: 36px;
|
|
853
870
|
}
|
|
854
871
|
|
|
872
|
+
.h-\[96px\]{
|
|
873
|
+
height: 96px;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.h-px{
|
|
877
|
+
height: 1px;
|
|
878
|
+
}
|
|
879
|
+
|
|
855
880
|
.h-4{
|
|
856
881
|
height: 1rem;
|
|
857
882
|
}
|
|
@@ -868,6 +893,10 @@ select{
|
|
|
868
893
|
width: 1.5rem;
|
|
869
894
|
}
|
|
870
895
|
|
|
896
|
+
.w-\[96px\]{
|
|
897
|
+
width: 96px;
|
|
898
|
+
}
|
|
899
|
+
|
|
871
900
|
.w-full{
|
|
872
901
|
width: 100%;
|
|
873
902
|
}
|
|
@@ -993,6 +1022,11 @@ select{
|
|
|
993
1022
|
border-color: rgb(22 17 59 / var(--tw-border-opacity));
|
|
994
1023
|
}
|
|
995
1024
|
|
|
1025
|
+
.border-pzh-red{
|
|
1026
|
+
--tw-border-opacity: 1;
|
|
1027
|
+
border-color: rgb(209 31 61 / var(--tw-border-opacity));
|
|
1028
|
+
}
|
|
1029
|
+
|
|
996
1030
|
.border-opacity-35{
|
|
997
1031
|
--tw-border-opacity: 0.35;
|
|
998
1032
|
}
|
|
@@ -1001,6 +1035,10 @@ select{
|
|
|
1001
1035
|
--tw-border-opacity: 0.1;
|
|
1002
1036
|
}
|
|
1003
1037
|
|
|
1038
|
+
.border-opacity-100{
|
|
1039
|
+
--tw-border-opacity: 1;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1004
1042
|
.bg-pzh-blue{
|
|
1005
1043
|
--tw-bg-opacity: 1;
|
|
1006
1044
|
background-color: rgb(40 31 107 / var(--tw-bg-opacity));
|
|
@@ -1021,6 +1059,11 @@ select{
|
|
|
1021
1059
|
background-color: rgb(0 128 77 / var(--tw-bg-opacity));
|
|
1022
1060
|
}
|
|
1023
1061
|
|
|
1062
|
+
.bg-pzh-cool-gray-light{
|
|
1063
|
+
--tw-bg-opacity: 1;
|
|
1064
|
+
background-color: rgb(191 191 191 / var(--tw-bg-opacity));
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1024
1067
|
.bg-pzh-cool-gray-dark{
|
|
1025
1068
|
--tw-bg-opacity: 1;
|
|
1026
1069
|
background-color: rgb(92 92 92 / var(--tw-bg-opacity));
|
|
@@ -1218,6 +1261,10 @@ select{
|
|
|
1218
1261
|
font-style: italic;
|
|
1219
1262
|
}
|
|
1220
1263
|
|
|
1264
|
+
.leading-\[30px\]{
|
|
1265
|
+
line-height: 30px;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1221
1268
|
.leading-normal{
|
|
1222
1269
|
line-height: 1.5;
|
|
1223
1270
|
}
|
|
@@ -1513,6 +1560,11 @@ h6,
|
|
|
1513
1560
|
--tw-text-opacity: 0.55;
|
|
1514
1561
|
}
|
|
1515
1562
|
|
|
1563
|
+
.pzh-form-error, .pzh-form-checkbox.pzh-form-error + span:before, .pzh-form-radio:checked.pzh-form-error + span:before, .pzh-form-radio:not(:checked).pzh-form-error + span:before{
|
|
1564
|
+
--tw-border-opacity: 1;
|
|
1565
|
+
border-color: rgb(209 31 61 / var(--tw-border-opacity));
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1516
1568
|
.pzh-form-radio:checked + span:before, .pzh-form-radio:not(:checked) + span:before{
|
|
1517
1569
|
position: absolute;
|
|
1518
1570
|
left: 0px;
|
package/src/tailwind.src.css
CHANGED
|
@@ -65,6 +65,13 @@ h6,
|
|
|
65
65
|
@apply block w-full pt-[15px] pb-[11px] placeholder-pzh-blue-dark placeholder-opacity-55 text-pzh-blue-dark border border-pzh-blue-dark border-opacity-35 rounded appearance-none leading-none focus:outline-none hover:border-gray-500 focus:border-pzh-blue-light disabled:border-pzh-blue-dark disabled:border-opacity-10 disabled:bg-pzh-gray disabled:text-opacity-55;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
.pzh-form-error,
|
|
69
|
+
.pzh-form-checkbox.pzh-form-error + span:before,
|
|
70
|
+
.pzh-form-radio:checked.pzh-form-error + span:before,
|
|
71
|
+
.pzh-form-radio:not(:checked).pzh-form-error + span:before {
|
|
72
|
+
@apply border-pzh-red;
|
|
73
|
+
}
|
|
74
|
+
|
|
68
75
|
.pzh-form-radio:checked + span:before,
|
|
69
76
|
.pzh-form-radio:not(:checked) + span:before {
|
|
70
77
|
@apply absolute left-0 top-0 w-[24px] h-[24px] border-pzh-blue-dark border border-opacity-35 bg-pzh-form rounded-full;
|