@tmf_ciclica/ciclicastorybook 1.0.0
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/.storybook/main.js +21 -0
- package/.storybook/preview.jsx +31 -0
- package/README.md +8 -0
- package/eslint.config.js +38 -0
- package/index.html +13 -0
- package/package.json +67 -0
- package/public/vite.svg +1 -0
- package/src/App.css +0 -0
- package/src/App.jsx +36 -0
- package/src/_variables.scss +56 -0
- package/src/assets/img/arrowDown.svg +3 -0
- package/src/assets/img/closeIcon.svg +4 -0
- package/src/assets/img/copyIcon.svg +17 -0
- package/src/assets/img/deleteIcon.svg +6 -0
- package/src/assets/img/eyeActiveIcon.svg +6 -0
- package/src/assets/img/eyeNotActiveIcon.svg +8 -0
- package/src/assets/img/filtersIcon.svg +6 -0
- package/src/assets/img/langarrow.png +0 -0
- package/src/assets/img/pause.svg +5 -0
- package/src/assets/img/play.svg +4 -0
- package/src/assets/img/processingIcon.svg +20 -0
- package/src/assets/img/sample-image.png +0 -0
- package/src/assets/img/sample2.png +0 -0
- package/src/assets/img/world.svg +3 -0
- package/src/assets/mapStyles/mapStyle.js +781 -0
- package/src/components/AmbitSelector/AmbitItem/AmbitItem.jsx +74 -0
- package/src/components/AmbitSelector/AmbitItem/AmbitItem.module.scss +27 -0
- package/src/components/AmbitSelector/AmbitSelector.jsx +68 -0
- package/src/components/AmbitSelector/AmbitSelector.module.scss +29 -0
- package/src/components/AmbitSelector/AmbitSelector.stories.jsx +21 -0
- package/src/components/ButtonsList/ButtonsList.jsx +92 -0
- package/src/components/ButtonsList/ButtonsList.module.scss +37 -0
- package/src/components/ButtonsList/ButtonsList.stories.jsx +55 -0
- package/src/components/DropdownList/DropdownList.jsx +69 -0
- package/src/components/DropdownList/DropdownList.module.scss +20 -0
- package/src/components/DropdownList/DropdownList.stories.jsx +22 -0
- package/src/components/DropdownList/DropdownListExample/DropDownListExample.jsx +33 -0
- package/src/components/DropdownList/DropdownListExample/DropdownListExample.stories.jsx +11 -0
- package/src/components/EditAmbit/EditAmbit.jsx +7 -0
- package/src/components/FiltersAmbit/AppliedFilters/AppliedFilters.jsx +57 -0
- package/src/components/FiltersAmbit/AppliedFilters/AppliedFilters.module.scss +13 -0
- package/src/components/FiltersAmbit/AppliedFilters/AppliedFilters.stories.jsx +47 -0
- package/src/components/FiltersAmbit/FiltersAmbit.jsx +58 -0
- package/src/components/FiltersAmbit/FiltersAmbit.module.scss +28 -0
- package/src/components/FiltersAmbit/FiltersAmbit.stories.jsx +36 -0
- package/src/components/FiltersAmbit/GeographicFilters/GeographicalFilters.jsx +33 -0
- package/src/components/FiltersAmbit/GeographicFilters/GeographicalFilters.module.scss +13 -0
- package/src/components/FiltersAmbit/GeographicFilters/GeographicalFilters.stories.jsx +47 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFilters.jsx +83 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFilters.module.scss +8 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFilters.stories.jsx +17 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersCategory/TematicalFiltersCategory.jsx +60 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersInput/AbsoluteSlider/AbsoluteSlider.jsx +61 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersInput/AbsoluteSlider/AbsoluteSlider.module.scss +45 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersInput/CategoryCheckbox/CategoryChackbox.module.scss +18 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersInput/CategoryCheckbox/CategoryCheckbox.jsx +47 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersInput/TematicalFiltersInput.jsx +267 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersInput/TematicalFiltersInput.module.scss +31 -0
- package/src/components/FiltersAmbit/TematicalFilters/TematicalFiltersSubcat/TematicalFiltersSubcat.jsx +58 -0
- package/src/components/FiltersAmbit/useAmbitStore.jsx +10 -0
- package/src/components/Graphic/BarChart/BarChart.jsx +146 -0
- package/src/components/Graphic/BarChart/BarChart.module.scss +5 -0
- package/src/components/Graphic/BarChart/BarChart.stories.jsx +18 -0
- package/src/components/Graphic/Graphic.jsx +55 -0
- package/src/components/Graphic/Graphic.module.scss +12 -0
- package/src/components/Graphic/Graphic.stories.jsx +25 -0
- package/src/components/IndicatorsList/Indicator/Indicator.jsx +180 -0
- package/src/components/IndicatorsList/Indicator/Indicator.module.scss +46 -0
- package/src/components/IndicatorsList/IndicatorSubCategory/IndicatorSubCategory.jsx +76 -0
- package/src/components/IndicatorsList/IndicatorSubCategory/IndicatorSubCategory.module.scss +12 -0
- package/src/components/IndicatorsList/IndicatorsCategory/IndicatorsCategory.jsx +122 -0
- package/src/components/IndicatorsList/IndicatorsCategory/IndicatorsCategory.module.scss +20 -0
- package/src/components/IndicatorsList/IndicatorsList.jsx +173 -0
- package/src/components/IndicatorsList/IndicatorsList.module.scss +10 -0
- package/src/components/IndicatorsList/IndicatorsList.stories.jsx +263 -0
- package/src/components/LangSelector/LangSelector.jsx +70 -0
- package/src/components/LangSelector/LangSelector.module.scss +41 -0
- package/src/components/LangSelector/LangSelector.stories.jsx +27 -0
- package/src/components/Legend/Legend.jsx +132 -0
- package/src/components/Legend/Legend.module.scss +121 -0
- package/src/components/Legend/Legend.stories.jsx +53 -0
- package/src/components/LogoApp/LogoApp.jsx +33 -0
- package/src/components/LogoApp/LogoApp.module.scss +7 -0
- package/src/components/LogoApp/LogoApp.stories.jsx +27 -0
- package/src/components/MapboxMap/MapboxMap.jsx +160 -0
- package/src/components/MapboxMap/MapboxMap.module.scss +4 -0
- package/src/components/MapboxMap/MapboxMap.stories.jsx +57 -0
- package/src/components/MaplibreMap/MaplibreMap.jsx +166 -0
- package/src/components/MaplibreMap/MaplibreMap.module.scss +5 -0
- package/src/components/MaplibreMap/MaplibreMap.stories.jsx +55 -0
- package/src/components/SectionBar/SectionBar.jsx +41 -0
- package/src/components/SectionBar/SectionBar.module.scss +40 -0
- package/src/components/SectionBar/SectionBar.stories.jsx +35 -0
- package/src/components/TimeSlider/TimeSlider.jsx +147 -0
- package/src/components/TimeSlider/TimeSlider.module.scss +63 -0
- package/src/components/TimeSlider/TimeSlider.stories.jsx +9 -0
- package/src/components/Tooltip/Tooltip.jsx +40 -0
- package/src/components/Tooltip/Tooltip.module.scss +141 -0
- package/src/components/Tooltip/Tooltip.stories.jsx +51 -0
- package/src/components/TopNavMenu/TopNavMenu.jsx +62 -0
- package/src/components/TopNavMenu/TopNavMenu.module.scss +21 -0
- package/src/components/TopNavMenu/TopNavMenu.stories.jsx +20 -0
- package/src/components/UserMenuTrigger/UserMenuTrigger.jsx +47 -0
- package/src/components/UserMenuTrigger/UserMenuTrigger.module.scss +5 -0
- package/src/components/UserMenuTrigger/UserMenuTrigger.stories.jsx +33 -0
- package/src/components/index.jsx +17 -0
- package/src/constants/indicators.js +1371 -0
- package/src/constants/mapTexts.js +161 -0
- package/src/constants/textLayers.js +639 -0
- package/src/constants/topNavMenuOptions.js +14 -0
- package/src/i18n.js +19 -0
- package/src/index.js +2 -0
- package/src/index.scss +87 -0
- package/src/locales/ca.json +8 -0
- package/src/locales/es.json +15 -0
- package/src/main.jsx +10 -0
- package/src/sections/HeaderSection/HeaderSection.jsx +51 -0
- package/src/sections/HeaderSection/HeaderSection.module.scss +33 -0
- package/src/sections/HeaderSection/HeaderSection.stories.jsx +61 -0
- package/src/sections/RightSidebar/RightSidebar.jsx +35 -0
- package/src/sections/RightSidebar/RightSidebar.module.scss +39 -0
- package/src/sections/RightSidebar/RightSidebar.stories.jsx +21 -0
- package/src/sections/index.js +2 -0
- package/src/store/index.js +1 -0
- package/src/store/mapSlice/index.js +1 -0
- package/src/store/mapSlice/mapSlice.js +30 -0
- package/src/store/rightBarSlice/index.js +1 -0
- package/src/store/rightBarSlice/rightBarSlice.js +28 -0
- package/src/store/routerSlice/index.js +1 -0
- package/src/store/routerSlice/routerSlice.js +14 -0
- package/src/store/store.js +14 -0
- package/src/store/userSlice/index.js +1 -0
- package/src/store/userSlice/userSlice.js +22 -0
- package/vite.config.js +36 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export const textLayers = [
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
{
|
|
5
|
+
|
|
6
|
+
"layout": {
|
|
7
|
+
"symbol-placement": "line",
|
|
8
|
+
"text-field": "{name_en}",
|
|
9
|
+
"text-font": [
|
|
10
|
+
"Open Sans Semibold",
|
|
11
|
+
"Arial Unicode MS Bold"
|
|
12
|
+
],
|
|
13
|
+
"text-transform": "uppercase",
|
|
14
|
+
"text-letter-spacing": 0.1,
|
|
15
|
+
"text-size": {
|
|
16
|
+
"base": 1.4,
|
|
17
|
+
"stops": [
|
|
18
|
+
[
|
|
19
|
+
10,
|
|
20
|
+
8
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
20,
|
|
24
|
+
14
|
|
25
|
+
]
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"filter": [
|
|
30
|
+
"all",
|
|
31
|
+
[
|
|
32
|
+
"==",
|
|
33
|
+
"$type",
|
|
34
|
+
"LineString"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"in",
|
|
38
|
+
"class",
|
|
39
|
+
"motorway",
|
|
40
|
+
"primary",
|
|
41
|
+
"secondary",
|
|
42
|
+
"tertiary",
|
|
43
|
+
"trunk",
|
|
44
|
+
"street",
|
|
45
|
+
"street_limited"
|
|
46
|
+
]
|
|
47
|
+
],
|
|
48
|
+
"type": "symbol",
|
|
49
|
+
"source": "mapbox",
|
|
50
|
+
"id": "road_major_label",
|
|
51
|
+
"paint": {
|
|
52
|
+
"text-color": "#888",
|
|
53
|
+
"text-halo-color": "rgba(255,255,255,1)",
|
|
54
|
+
"text-halo-width": 2
|
|
55
|
+
},
|
|
56
|
+
"source-layer": "road_label"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
|
|
60
|
+
"minzoom": 8,
|
|
61
|
+
"layout": {
|
|
62
|
+
"text-field": "{name_en}",
|
|
63
|
+
"text-font": [
|
|
64
|
+
"PT Sans Regular",
|
|
65
|
+
"Arial Unicode MS Regular"
|
|
66
|
+
],
|
|
67
|
+
"text-max-width": 6,
|
|
68
|
+
"text-size": {
|
|
69
|
+
"stops": [
|
|
70
|
+
[
|
|
71
|
+
6,
|
|
72
|
+
8
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
12,
|
|
76
|
+
12
|
|
77
|
+
]
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"text-transform": "uppercase"
|
|
81
|
+
},
|
|
82
|
+
"filter": [
|
|
83
|
+
"all",
|
|
84
|
+
[
|
|
85
|
+
"==",
|
|
86
|
+
"$type",
|
|
87
|
+
"Point"
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
"in",
|
|
91
|
+
"type",
|
|
92
|
+
"town",
|
|
93
|
+
"village",
|
|
94
|
+
"hamlet",
|
|
95
|
+
"suburb",
|
|
96
|
+
"neighbourhood",
|
|
97
|
+
"island"
|
|
98
|
+
]
|
|
99
|
+
],
|
|
100
|
+
"type": "symbol",
|
|
101
|
+
"source": "mapbox",
|
|
102
|
+
"id": "place_label_other",
|
|
103
|
+
"paint": {
|
|
104
|
+
"text-color": "#888",
|
|
105
|
+
"text-halo-color": "rgba(255,255,255,1)",
|
|
106
|
+
"text-halo-width": 1,
|
|
107
|
+
"text-halo-blur": 1
|
|
108
|
+
},
|
|
109
|
+
"source-layer": "place_label"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
|
|
113
|
+
"layout": {
|
|
114
|
+
"text-field": "{name_en}",
|
|
115
|
+
"text-font": [
|
|
116
|
+
"PT Sans Regular",
|
|
117
|
+
"Arial Unicode MS Regular"
|
|
118
|
+
],
|
|
119
|
+
"text-transform": "uppercase",
|
|
120
|
+
"text-max-width": 10,
|
|
121
|
+
"text-size": {
|
|
122
|
+
"stops": [
|
|
123
|
+
[
|
|
124
|
+
3,
|
|
125
|
+
10
|
|
126
|
+
],
|
|
127
|
+
[
|
|
128
|
+
8,
|
|
129
|
+
14
|
|
130
|
+
]
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"maxzoom": 16,
|
|
135
|
+
"filter": [
|
|
136
|
+
"all",
|
|
137
|
+
[
|
|
138
|
+
"==",
|
|
139
|
+
"$type",
|
|
140
|
+
"Point"
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
"==",
|
|
144
|
+
"type",
|
|
145
|
+
"city"
|
|
146
|
+
]
|
|
147
|
+
],
|
|
148
|
+
"type": "symbol",
|
|
149
|
+
"source": "mapbox",
|
|
150
|
+
"id": "place_label_city",
|
|
151
|
+
"paint": {
|
|
152
|
+
"text-color": "#777",
|
|
153
|
+
"text-halo-color": "rgba(255,255,255,1)",
|
|
154
|
+
"text-halo-width": 1,
|
|
155
|
+
"text-halo-blur": 1
|
|
156
|
+
},
|
|
157
|
+
"source-layer": "place_label"
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
]
|