@politicalwatch/tipi-uikit 1.0.0-dev
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/.browserslistrc +2 -0
- package/.editorconfig +7 -0
- package/.eslintrc.js +11 -0
- package/.postcssrc.json +5 -0
- package/.prettierrc.js +7 -0
- package/.storybook/main.js +19 -0
- package/.storybook/preview.js +17 -0
- package/.stylelintrc +24 -0
- package/README.md +21 -0
- package/dist/bng-890acecf.mjs +29 -0
- package/dist/coalicioncanaria-6f4c1db4.mjs +18 -0
- package/dist/compromis-5ea8e904.mjs +23 -0
- package/dist/cs-de2f22f8.mjs +21 -0
- package/dist/cup-83f9d201.mjs +25 -0
- package/dist/ehbildu-23275d48.mjs +25 -0
- package/dist/encomu-90f0f0ee.mjs +23 -0
- package/dist/erc-83cebd9f.mjs +33 -0
- package/dist/foroasturias-c86ed9f1.mjs +27 -0
- package/dist/iu-0d57eb1a.mjs +23 -0
- package/dist/jxcat-69202004.mjs +23 -0
- package/dist/maspais-a61a53ef.mjs +21 -0
- package/dist/nuevacanaria-559edad7.mjs +21 -0
- package/dist/pdecat-0ec3db5a.mjs +21 -0
- package/dist/pnv-7f6f4b34.mjs +29 -0
- package/dist/podemos-de793077.mjs +21 -0
- package/dist/pp-13bed712.mjs +25 -0
- package/dist/prc-8a3d42c1.mjs +29 -0
- package/dist/psoe-97af3ccf.mjs +21 -0
- package/dist/style.css +1 -0
- package/dist/sumar-7dfecef0.mjs +29 -0
- package/dist/teruelexiste-7d4a17ab.mjs +21 -0
- package/dist/tipi-uikit.es.js +26196 -0
- package/dist/tipi-uikit.umd.js +134 -0
- package/dist/unidaspodemos-43ae78cc.mjs +18 -0
- package/dist/upn-e7eb332f.mjs +35 -0
- package/dist/vox-64380b40.mjs +25 -0
- package/package.json +57 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/birthday_bg.png +0 -0
- package/src/assets/index.js +64 -0
- package/src/assets/party_logos/bildu.png +0 -0
- package/src/assets/party_logos/bng.png +0 -0
- package/src/assets/party_logos/ca.jpeg +0 -0
- package/src/assets/party_logos/ciudadanos.png +0 -0
- package/src/assets/party_logos/compromis.jpg +0 -0
- package/src/assets/party_logos/cup.png +0 -0
- package/src/assets/party_logos/eajpnv.png +0 -0
- package/src/assets/party_logos/encomupodem.jpg +0 -0
- package/src/assets/party_logos/erc.png +0 -0
- package/src/assets/party_logos/fac.png +0 -0
- package/src/assets/party_logos/icon/bng.svg +4 -0
- package/src/assets/party_logos/icon/coalicioncanaria.svg +7 -0
- package/src/assets/party_logos/icon/compromis.svg +3 -0
- package/src/assets/party_logos/icon/cs.svg +3 -0
- package/src/assets/party_logos/icon/cup.svg +4 -0
- package/src/assets/party_logos/icon/ehbildu.svg +4 -0
- package/src/assets/party_logos/icon/encomu.svg +3 -0
- package/src/assets/party_logos/icon/erc.svg +5 -0
- package/src/assets/party_logos/icon/foroasturias.svg +4 -0
- package/src/assets/party_logos/icon/iu.svg +3 -0
- package/src/assets/party_logos/icon/jxcat.svg +3 -0
- package/src/assets/party_logos/icon/maspais.svg +3 -0
- package/src/assets/party_logos/icon/nuevacanaria.svg +3 -0
- package/src/assets/party_logos/icon/party-error.svg +3 -0
- package/src/assets/party_logos/icon/pdecat.svg +3 -0
- package/src/assets/party_logos/icon/pnv.svg +4 -0
- package/src/assets/party_logos/icon/podemos.svg +3 -0
- package/src/assets/party_logos/icon/pp.svg +4 -0
- package/src/assets/party_logos/icon/prc.svg +5 -0
- package/src/assets/party_logos/icon/psoe.svg +3 -0
- package/src/assets/party_logos/icon/sumar.svg +73 -0
- package/src/assets/party_logos/icon/teruelexiste.svg +3 -0
- package/src/assets/party_logos/icon/unidaspodemos.svg +27 -0
- package/src/assets/party_logos/icon/upn.svg +5 -0
- package/src/assets/party_logos/icon/vox.svg +4 -0
- package/src/assets/party_logos/iu.png +0 -0
- package/src/assets/party_logos/jxcat.png +0 -0
- package/src/assets/party_logos/mas-pais.jpg +0 -0
- package/src/assets/party_logos/nueva_canarias.png +0 -0
- package/src/assets/party_logos/pdecat.png +0 -0
- package/src/assets/party_logos/podemos.jpg +0 -0
- package/src/assets/party_logos/pp.png +0 -0
- package/src/assets/party_logos/prc.png +0 -0
- package/src/assets/party_logos/psc.png +0 -0
- package/src/assets/party_logos/pse-ee.png +0 -0
- package/src/assets/party_logos/psoe.png +0 -0
- package/src/assets/party_logos/teruelexiste.svg +4 -0
- package/src/assets/party_logos/unidaspodemos.png +0 -0
- package/src/assets/party_logos/upn.jpg +0 -0
- package/src/assets/party_logos/vox.png +0 -0
- package/src/assets/svg/icon-advanced.svg +3 -0
- package/src/assets/svg/icon-bell.svg +3 -0
- package/src/assets/svg/icon-birthday.svg +18 -0
- package/src/assets/svg/icon-building.svg +3 -0
- package/src/assets/svg/icon-calendar.svg +4 -0
- package/src/assets/svg/icon-chevron-down.svg +3 -0
- package/src/assets/svg/icon-chevron-left.svg +3 -0
- package/src/assets/svg/icon-chevron-right.svg +3 -0
- package/src/assets/svg/icon-chevron-up.svg +3 -0
- package/src/assets/svg/icon-clock.svg +4 -0
- package/src/assets/svg/icon-close-menu.svg +3 -0
- package/src/assets/svg/icon-close.svg +3 -0
- package/src/assets/svg/icon-conversation.svg +3 -0
- package/src/assets/svg/icon-denied.svg +3 -0
- package/src/assets/svg/icon-document.svg +4 -0
- package/src/assets/svg/icon-download.svg +3 -0
- package/src/assets/svg/icon-error.svg +3 -0
- package/src/assets/svg/icon-footprint.svg +3 -0
- package/src/assets/svg/icon-github.svg +9 -0
- package/src/assets/svg/icon-hamburger.svg +1 -0
- package/src/assets/svg/icon-info.svg +3 -0
- package/src/assets/svg/icon-less.svg +3 -0
- package/src/assets/svg/icon-location.svg +3 -0
- package/src/assets/svg/icon-logout.svg +13 -0
- package/src/assets/svg/icon-mail.svg +4 -0
- package/src/assets/svg/icon-more.svg +5 -0
- package/src/assets/svg/icon-open-blank.svg +3 -0
- package/src/assets/svg/icon-plus.svg +3 -0
- package/src/assets/svg/icon-search.svg +4 -0
- package/src/assets/svg/icon-success.svg +3 -0
- package/src/assets/svg/icon-twitter.svg +3 -0
- package/src/assets/svg/icon-upload.svg +3 -0
- package/src/assets/svg/icons.js +67 -0
- package/src/components/CSVDownload/CSVDownload.vue +146 -0
- package/src/components/Charts/Barchart/d3.barchart.js +484 -0
- package/src/components/Charts/Barchart/d3.barchart.vue +16 -0
- package/src/components/Charts/Sliceschart/d3.sliceschart.js +372 -0
- package/src/components/Charts/Sliceschart/d3.sliceschart.vue +20 -0
- package/src/components/Charts/Sunburst/d3.sunburst.js +412 -0
- package/src/components/Charts/Sunburst/d3.sunburst.vue +23 -0
- package/src/components/Charts/WordsCloud/d3.wordscloud.js +332 -0
- package/src/components/Charts/WordsCloud/d3.wordscloud.vue +16 -0
- package/src/components/Charts/d3.chart.js +242 -0
- package/src/components/Charts/d3.chart.vue +81 -0
- package/src/components/Charts/styles.scss +92 -0
- package/src/components/CongressLink/CongressLink.vue +19 -0
- package/src/components/Deputy/Deputy.vue +106 -0
- package/src/components/Header/Header.vue +19 -0
- package/src/components/Icon/Icon.vue +30 -0
- package/src/components/InitiativeCard/InitiativeCard.vue +94 -0
- package/src/components/InitiativeMeta/InitiativeMeta.vue +79 -0
- package/src/components/Loader/Loader.vue +23 -0
- package/src/components/Message/Message.vue +27 -0
- package/src/components/Navbar/Navbar.vue +117 -0
- package/src/components/Neuron/Neuron.vue +211 -0
- package/src/components/PartyLogo/PartyLogo.vue +58 -0
- package/src/components/PartyLogo/PartyLogoIcon.vue +239 -0
- package/src/components/Results/Results.vue +114 -0
- package/src/components/Splash/Splash.vue +43 -0
- package/src/components/Text/Text.vue +69 -0
- package/src/components/TipiCharts/TipiBarchart.vue +204 -0
- package/src/components/TopicCard/TopicCard.vue +52 -0
- package/src/components/TopicLink/TopicLink.vue +37 -0
- package/src/components/TopicPill/TopicPill.vue +67 -0
- package/src/components/Topics/Topics.vue +79 -0
- package/src/components/TwoCircles/TwoCircles.vue +134 -0
- package/src/components/index.js +57 -0
- package/src/main.js +11 -0
- package/src/stories/CSVDownload.stories.js +245 -0
- package/src/stories/CongressLink.stories.js +21 -0
- package/src/stories/D3BarChart.stories.js +40 -0
- package/src/stories/D3SlicesChart.stories.js +64 -0
- package/src/stories/D3Sunburst.stories.js +293 -0
- package/src/stories/D3WordsCloud.stories.js +64 -0
- package/src/stories/Deputy.stories.js +168 -0
- package/src/stories/Header.stories.js +26 -0
- package/src/stories/Icon.stories.js +25 -0
- package/src/stories/InitiativeCard.stories.js +58 -0
- package/src/stories/InitiativeMeta.stories.js +37 -0
- package/src/stories/Loader.stories.js +25 -0
- package/src/stories/Message.stories.js +49 -0
- package/src/stories/Navbar.stories.js +85 -0
- package/src/stories/Neuron.stories.js +210 -0
- package/src/stories/PartyLogo.stories.js +21 -0
- package/src/stories/PartyLogoIcon.stories.js +21 -0
- package/src/stories/Results.stories.js +350 -0
- package/src/stories/Splash.stories.js +25 -0
- package/src/stories/Text.stories.js +46 -0
- package/src/stories/TopicCard.stories.js +775 -0
- package/src/stories/TopicLink.stories.js +778 -0
- package/src/stories/TopicPill.stories.js +46 -0
- package/src/stories/Topics.stories.js +80 -0
- package/src/stories/TwoCircles.stories.js +144 -0
- package/src/stories/mocks.js +153 -0
- package/src/styles/01_settings/_settings__breakpoints.scss +28 -0
- package/src/styles/01_settings/_settings__colors.scss +30 -0
- package/src/styles/01_settings/_settings__fonts.scss +3 -0
- package/src/styles/01_settings/_settings__icons.scss +0 -0
- package/src/styles/01_settings/_settings__variables.scss +45 -0
- package/src/styles/02_tools/_tools__functions.scss +19 -0
- package/src/styles/02_tools/_tools__mixins.scss +321 -0
- package/src/styles/03_generic/_generic__box-sizing.scss +12 -0
- package/src/styles/03_generic/_generic__global.scss +20 -0
- package/src/styles/03_generic/_generic__normalize.scss +371 -0
- package/src/styles/04_base/_base__anchors.scss +8 -0
- package/src/styles/04_base/_base__blockquotes.scss +10 -0
- package/src/styles/04_base/_base__forms.scss +32 -0
- package/src/styles/04_base/_base__headings.scss +23 -0
- package/src/styles/04_base/_base__images.scss +4 -0
- package/src/styles/04_base/_base__lists.scss +66 -0
- package/src/styles/04_base/_base__paragraphs.scss +11 -0
- package/src/styles/04_base/_base__tables.scss +95 -0
- package/src/styles/05_objects/_objects__columns.scss +29 -0
- package/src/styles/05_objects/_objects__container.scss +19 -0
- package/src/styles/05_objects/_objects__grid.scss +57 -0
- package/src/styles/05_objects/_objects__masonry.scss +11 -0
- package/src/styles/05_objects/_objects__media.scss +24 -0
- package/src/styles/05_objects/_objects__section.scss +21 -0
- package/src/styles/06_components/_components__button.scss +178 -0
- package/src/styles/06_components/_components__congress-link.scss +12 -0
- package/src/styles/06_components/_components__decorator.scss +10 -0
- package/src/styles/06_components/_components__deputy.scss +177 -0
- package/src/styles/06_components/_components__disclaimer.scss +24 -0
- package/src/styles/06_components/_components__forms.scss +454 -0
- package/src/styles/06_components/_components__header.scss +37 -0
- package/src/styles/06_components/_components__icon.scss +27 -0
- package/src/styles/06_components/_components__initiative-card.scss +49 -0
- package/src/styles/06_components/_components__initiative-meta.scss +91 -0
- package/src/styles/06_components/_components__loader.scss +125 -0
- package/src/styles/06_components/_components__menu.scss +110 -0
- package/src/styles/06_components/_components__message.scss +66 -0
- package/src/styles/06_components/_components__navbar.scss +114 -0
- package/src/styles/06_components/_components__party-logo.scss +21 -0
- package/src/styles/06_components/_components__splash.scss +29 -0
- package/src/styles/06_components/_components__text.scss +69 -0
- package/src/styles/06_components/_components__topic-card.scss +40 -0
- package/src/styles/06_components/_components__topic-link.scss +37 -0
- package/src/styles/06_components/_components__topics.scss +107 -0
- package/src/styles/07_trumps/_trumps__borders.scss +1 -0
- package/src/styles/07_trumps/_trumps__colors.scss +3 -0
- package/src/styles/07_trumps/_trumps__grid.scss +1 -0
- package/src/styles/07_trumps/_trumps__helpers.scss +17 -0
- package/src/styles/07_trumps/_trumps__texts.scss +39 -0
- package/src/styles/07_trumps/_trumps__visibility.scss +56 -0
- package/src/styles/main.scss +54 -0
- package/src/utils/index.js +26 -0
- package/svgo.config.js +16 -0
- package/vite.config.js +54 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.c-topic-link {
|
|
2
|
+
|
|
3
|
+
&__image-link {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: rem($spacer-unit * 2);
|
|
8
|
+
margin-bottom: rem($spacer-unit * 2);
|
|
9
|
+
transition: transform 0.3s ease;
|
|
10
|
+
|
|
11
|
+
&::after {
|
|
12
|
+
content: "";
|
|
13
|
+
display: block;
|
|
14
|
+
padding-bottom: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
transform: scale(1.05);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__image {
|
|
23
|
+
max-width: 80%;
|
|
24
|
+
max-height: 80%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__name {
|
|
28
|
+
@include overline;
|
|
29
|
+
|
|
30
|
+
text-align: center;
|
|
31
|
+
|
|
32
|
+
a {
|
|
33
|
+
color: $secondary;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.c-topics {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
|
|
5
|
+
&__topic {
|
|
6
|
+
@include overline;
|
|
7
|
+
|
|
8
|
+
flex: 0 0 auto;
|
|
9
|
+
color: $topic-pill-color;
|
|
10
|
+
padding: rem($spacer-unit);
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
margin: 0 $topic-pill-separator $topic-pill-separator 0;
|
|
13
|
+
|
|
14
|
+
&__small {
|
|
15
|
+
margin-left: 1px;
|
|
16
|
+
float: left;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__label {
|
|
25
|
+
@include overline;
|
|
26
|
+
|
|
27
|
+
color: $secondary;
|
|
28
|
+
margin: 0 0 rem($spacer-unit) 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--extended {
|
|
32
|
+
display: block;
|
|
33
|
+
|
|
34
|
+
.c-topics {
|
|
35
|
+
|
|
36
|
+
&__list {
|
|
37
|
+
margin-top: rem($spacer-unit * 2);
|
|
38
|
+
|
|
39
|
+
&-subtopic {
|
|
40
|
+
margin-top: rem($spacer-unit);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-tags {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
|
|
47
|
+
.c-topics__tag {
|
|
48
|
+
&:hover {
|
|
49
|
+
text-decoration: underline;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-topic {
|
|
55
|
+
margin-bottom: rem($spacer-unit * 4);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__subtopic {
|
|
60
|
+
@include tbody2;
|
|
61
|
+
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
|
|
65
|
+
> .c-topics__link {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
margin: rem($spacer-unit) 0;
|
|
68
|
+
color: $secondary-dark;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
text-decoration: underline;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__tag {
|
|
78
|
+
@include overline;
|
|
79
|
+
|
|
80
|
+
margin-right: rem($spacer-unit);
|
|
81
|
+
margin-bottom: rem($spacer-unit);
|
|
82
|
+
display: inline-block;
|
|
83
|
+
text-transform: none;
|
|
84
|
+
background-color: $secondary-light;
|
|
85
|
+
padding: rem($spacer-unit);
|
|
86
|
+
flex: 0 auto;
|
|
87
|
+
|
|
88
|
+
.c-topics__link {
|
|
89
|
+
color: $secondary-dark;
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
ul {
|
|
96
|
+
margin: 0;
|
|
97
|
+
padding: 0;
|
|
98
|
+
|
|
99
|
+
li {
|
|
100
|
+
|
|
101
|
+
&::before {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@include borders();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@include offsets($grid-fractions);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//Position and align
|
|
2
|
+
|
|
3
|
+
.u-relative {
|
|
4
|
+
position: relative !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.u-block-center {
|
|
8
|
+
margin-left: auto !important;
|
|
9
|
+
margin-right: auto !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include text-aligns();
|
|
13
|
+
|
|
14
|
+
// Margin and sizes
|
|
15
|
+
@include margins();
|
|
16
|
+
@include paddings();
|
|
17
|
+
@include percent-widths();
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.u-text-th1 {
|
|
2
|
+
@include th1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.u-text-th2 {
|
|
6
|
+
@include th2;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.u-text-th3 {
|
|
10
|
+
@include th3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.u-text-th4 {
|
|
14
|
+
@include th4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.u-text-th5 {
|
|
18
|
+
@include th5;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.u-text-th6 {
|
|
22
|
+
@include th6;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.u-text-subtitle {
|
|
26
|
+
@include subtitle;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.u-text-overline {
|
|
30
|
+
@include overline;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.u-text-tbody {
|
|
34
|
+
@include tbody;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.u-text-tbody2 {
|
|
38
|
+
@include tbody2;
|
|
39
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Visibility
|
|
2
|
+
.u-hide {
|
|
3
|
+
display: none !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@each $bp-key, $bp-value in $breakpoints {
|
|
7
|
+
@media (min-width: $bp-value) {
|
|
8
|
+
|
|
9
|
+
.u-hide#{$breakpoint-class}#{$bp-key} {
|
|
10
|
+
display: none !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.u-block {
|
|
16
|
+
display: block !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@each $bp-key, $bp-value in $breakpoints {
|
|
20
|
+
@media (min-width: $bp-value) {
|
|
21
|
+
|
|
22
|
+
.u-block#{$breakpoint-class}#{$bp-key} {
|
|
23
|
+
display: block !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.u-inline-block {
|
|
29
|
+
display: inline-block !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@each $bp-key, $bp-value in $breakpoints {
|
|
33
|
+
@media (min-width: $bp-value) {
|
|
34
|
+
|
|
35
|
+
.u-inline-block#{$breakpoint-class}#{$bp-key} {
|
|
36
|
+
display: inline-block !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.u-inline {
|
|
42
|
+
display: inline !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@each $bp-key, $bp-value in $breakpoints {
|
|
46
|
+
@media (min-width: $bp-value) {
|
|
47
|
+
|
|
48
|
+
.u-inline#{$breakpoint-class}#{$bp-key} {
|
|
49
|
+
display: inline !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.u-hide-overflow {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import "01_settings/settings__variables";
|
|
2
|
+
@import "01_settings/settings__breakpoints";
|
|
3
|
+
@import "01_settings/settings__colors";
|
|
4
|
+
@import "01_settings/settings__fonts";
|
|
5
|
+
@import "01_settings/settings__icons";
|
|
6
|
+
@import "02_tools/tools__functions";
|
|
7
|
+
@import "02_tools/tools__mixins";
|
|
8
|
+
@import "03_generic/generic__normalize";
|
|
9
|
+
@import "03_generic/generic__box-sizing";
|
|
10
|
+
@import "03_generic/generic__global";
|
|
11
|
+
@import "04_base/base__anchors";
|
|
12
|
+
@import "04_base/base__forms";
|
|
13
|
+
@import "04_base/base__headings";
|
|
14
|
+
@import "04_base/base__images";
|
|
15
|
+
@import "04_base/base__lists";
|
|
16
|
+
@import "04_base/base__paragraphs";
|
|
17
|
+
@import "04_base/base__tables";
|
|
18
|
+
@import "04_base/base__blockquotes";
|
|
19
|
+
@import "05_objects/objects__container";
|
|
20
|
+
@import "05_objects/objects__grid";
|
|
21
|
+
@import "05_objects/objects__section";
|
|
22
|
+
@import "05_objects/objects__media";
|
|
23
|
+
@import "05_objects/objects__columns";
|
|
24
|
+
@import "05_objects/objects__masonry";
|
|
25
|
+
|
|
26
|
+
// Components
|
|
27
|
+
@import "06_components/components__congress-link";
|
|
28
|
+
@import "06_components/components__forms";
|
|
29
|
+
@import "06_components/components__header";
|
|
30
|
+
@import "06_components/components__message";
|
|
31
|
+
@import "06_components/components__button";
|
|
32
|
+
@import "06_components/components__icon";
|
|
33
|
+
@import "06_components/components__navbar";
|
|
34
|
+
@import "06_components/components__decorator";
|
|
35
|
+
@import "06_components/components__splash";
|
|
36
|
+
@import "06_components/components__disclaimer";
|
|
37
|
+
@import "06_components/components__menu";
|
|
38
|
+
@import "06_components/components__initiative-card";
|
|
39
|
+
@import "06_components/components__topics";
|
|
40
|
+
@import "06_components/components__text";
|
|
41
|
+
@import "06_components/components__initiative-meta";
|
|
42
|
+
@import "06_components/components__topic-card";
|
|
43
|
+
@import "06_components/components__topic-link";
|
|
44
|
+
@import "06_components/components__deputy";
|
|
45
|
+
@import "06_components/components__loader";
|
|
46
|
+
@import "06_components/components__party-logo";
|
|
47
|
+
|
|
48
|
+
// End components
|
|
49
|
+
@import "07_trumps/trumps__grid";
|
|
50
|
+
@import "07_trumps/trumps__visibility";
|
|
51
|
+
@import "07_trumps/trumps__helpers";
|
|
52
|
+
@import "07_trumps/trumps__colors";
|
|
53
|
+
@import "07_trumps/trumps__texts";
|
|
54
|
+
@import "07_trumps/trumps__borders";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// case insensitive, digits to number interpolation
|
|
2
|
+
export const naturalSort = function (as, bs) {
|
|
3
|
+
let a, b, a1, b1, i = 0,
|
|
4
|
+
L, rx = /(\d+)|(\D+)/g,
|
|
5
|
+
rd = /\d/;
|
|
6
|
+
if (isFinite(as) && isFinite(bs)) return as - bs;
|
|
7
|
+
a = String(as).toLowerCase();
|
|
8
|
+
b = String(bs).toLowerCase();
|
|
9
|
+
if (a === b) return 0;
|
|
10
|
+
if (!(rd.test(a) && rd.test(b))) return a > b ? 1 : -1;
|
|
11
|
+
a = a.match(rx);
|
|
12
|
+
b = b.match(rx);
|
|
13
|
+
L = a.length > b.length ? b.length : a.length;
|
|
14
|
+
while (i < L) {
|
|
15
|
+
a1 = a[i];
|
|
16
|
+
b1 = b[i++];
|
|
17
|
+
if (a1 !== b1) {
|
|
18
|
+
if (isFinite(a1) && isFinite(b1)) {
|
|
19
|
+
if (a1.charAt(0) === "0") a1 = "." + a1;
|
|
20
|
+
if (b1.charAt(0) === "0") b1 = "." + b1;
|
|
21
|
+
return a1 - b1;
|
|
22
|
+
} else return a1 > b1 ? 1 : -1;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return a.length - b.length;
|
|
26
|
+
};
|
package/svgo.config.js
ADDED
package/vite.config.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { fileURLToPath, URL } from "node:url";
|
|
2
|
+
import { resolve } from "path";
|
|
3
|
+
import { defineConfig } from "vite";
|
|
4
|
+
import vue from "@vitejs/plugin-vue";
|
|
5
|
+
import svgLoader from "vite-svg-loader";
|
|
6
|
+
|
|
7
|
+
const svgoConfig = {
|
|
8
|
+
plugins: [
|
|
9
|
+
{
|
|
10
|
+
name: "preset-default",
|
|
11
|
+
params: {
|
|
12
|
+
overrides: {
|
|
13
|
+
removeViewBox: false,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// https://vitejs.dev/config/
|
|
21
|
+
export default defineConfig({
|
|
22
|
+
build: {
|
|
23
|
+
lib: {
|
|
24
|
+
entry: resolve(__dirname, 'src/main.js'),
|
|
25
|
+
name: 'Tipi-UIKIT',
|
|
26
|
+
fileName: (format) => `tipi-uikit.${format}.js`,
|
|
27
|
+
},
|
|
28
|
+
rollupOptions: {
|
|
29
|
+
external: ['vue'],
|
|
30
|
+
output: {
|
|
31
|
+
globals: {
|
|
32
|
+
vue: 'Vue',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
plugins: [
|
|
38
|
+
vue(),
|
|
39
|
+
svgLoader({
|
|
40
|
+
svgoConfig,
|
|
41
|
+
}),
|
|
42
|
+
],
|
|
43
|
+
resolve: {
|
|
44
|
+
alias: {
|
|
45
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
css: {
|
|
49
|
+
preprocessorOptions: {
|
|
50
|
+
scss: {
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
});
|