@sybilion/uilib 1.2.24 → 1.3.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/dist/esm/components/ui/Chart/Chart.js +1 -0
- package/dist/esm/components/ui/Chart/components/BaseChartWrapper.js +7 -32
- package/dist/esm/components/ui/Chart/components/ChartEmptyState/ChartEmptyState.js +21 -0
- package/dist/esm/components/ui/Chart/components/ChartEmptyState/ChartEmptyState.styl.js +7 -0
- package/dist/esm/components/ui/Chart/tools/chartPlotGeometry.js +65 -0
- package/dist/esm/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.js +37 -1
- package/dist/esm/components/ui/ChartAreaInteractive/ChartAreaInteractive.js +5 -2
- package/dist/esm/components/ui/ChartAreaInteractive/TimeRangeBrushLayer.js +205 -0
- package/dist/esm/components/ui/ChartAreaInteractive/TimeRangeBrushLayer.styl.js +7 -0
- package/dist/esm/components/ui/ChartAreaInteractive/TimeRangeBrushLayout.helpers.js +37 -0
- package/dist/esm/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.hooks.js +1 -0
- package/dist/esm/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.js +7 -60
- package/dist/esm/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.styl.js +2 -2
- package/dist/esm/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.hooks.js +1 -0
- package/dist/esm/components/ui/ChartAreaInteractive/overlays/useChartYRange.js +2 -4
- package/dist/esm/components/ui/Chat/ChatSheet/ChatSelector.js +1 -1
- package/dist/esm/components/ui/Chat/ChatSheet/ChatSelector.styl.js +1 -1
- package/dist/esm/components/ui/DropdownMenu/DropdownMenu.js +4 -4
- package/dist/esm/components/ui/TimeRangeControls/TimeRangeControls.js +7 -2
- package/dist/esm/components/ui/WorldMap/WorldMap.js +11 -0
- package/dist/esm/components/ui/WorldMap/WorldMap.styl.js +7 -0
- package/dist/esm/components/ui/WorldMap/map.svg.js +3 -0
- package/dist/esm/components/widgets/DriverCard/DriverCard.js +89 -0
- package/dist/esm/components/widgets/DriverCard/DriverCard.styl.js +7 -0
- package/dist/esm/components/widgets/DriverCard/DriverPerformanceChart.js +79 -0
- package/dist/esm/components/widgets/DriverCard/DriverPerformanceChart.styl.js +7 -0
- package/dist/esm/components/widgets/DriverCard/driverPerformanceChartData.js +50 -0
- package/dist/esm/components/widgets/DriverMap/DriverIcon/DriverIcon.constants.json.js +6 -0
- package/dist/esm/components/widgets/DriverMap/DriverIcon/DriverIcon.js +21 -0
- package/dist/esm/components/widgets/DriverMap/DriverIcon/DriverIcon.styl.js +7 -0
- package/dist/esm/components/widgets/DriverMap/DriverMap.helpers.js +107 -0
- package/dist/esm/components/widgets/DriverMap/DriverMap.js +129 -0
- package/dist/esm/components/widgets/DriverMap/DriverMap.styl.js +7 -0
- package/dist/esm/components/widgets/DriverMap/driverCategoryIcon.js +194 -0
- package/dist/esm/components/widgets/DriverMap/driverMapGeography.js +345 -0
- package/dist/esm/components/widgets/DriverMap/driverMapSelection.js +17 -0
- package/dist/esm/hooks/index.js +1 -0
- package/dist/esm/hooks/useEvent.js +0 -2
- package/dist/esm/index.js +7 -0
- package/dist/esm/types/src/components/ui/Chart/Chart.d.ts +1 -0
- package/dist/esm/types/src/components/ui/Chart/components/BaseChartWrapper.d.ts +2 -1
- package/dist/esm/types/src/components/ui/Chart/components/ChartEmptyState/ChartEmptyState.d.ts +14 -0
- package/dist/esm/types/src/components/ui/Chart/tools/chartPlotGeometry.d.ts +30 -0
- package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.d.ts +1 -1
- package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.d.ts +11 -2
- package/dist/esm/types/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.types.d.ts +2 -2
- package/dist/esm/types/src/components/ui/ChartAreaInteractive/TimeRangeBrushLayer.d.ts +15 -0
- package/dist/esm/types/src/components/ui/ChartAreaInteractive/TimeRangeBrushLayout.helpers.d.ts +14 -0
- package/dist/esm/types/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.d.ts +1 -1
- package/dist/esm/types/src/components/ui/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/dist/esm/types/src/components/ui/Page/PageColumns/PageColumns.d.ts +1 -1
- package/dist/esm/types/src/components/ui/TimeRangeControls/TimeRangeControls.d.ts +5 -7
- package/dist/esm/types/src/components/ui/WorldMap/WorldMap.d.ts +4 -0
- package/dist/esm/types/src/components/ui/WorldMap/index.d.ts +2 -0
- package/dist/esm/types/src/components/widgets/DriverCard/DriverCard.d.ts +9 -0
- package/dist/esm/types/src/components/widgets/DriverCard/DriverPerformanceChart.d.ts +5 -0
- package/dist/esm/types/src/components/widgets/DriverCard/driverPerformanceChartData.d.ts +7 -0
- package/dist/esm/types/src/components/widgets/DriverCard/index.d.ts +1 -0
- package/dist/esm/types/src/components/widgets/DriverMap/DriverIcon/DriverIcon.d.ts +17 -0
- package/dist/esm/types/src/components/widgets/DriverMap/DriverMap.d.ts +8 -0
- package/dist/esm/types/src/components/widgets/DriverMap/DriverMap.helpers.d.ts +21 -0
- package/dist/esm/types/src/components/widgets/DriverMap/driverCategoryIcon.d.ts +1 -0
- package/dist/esm/types/src/components/widgets/DriverMap/driverMapGeography.d.ts +80 -0
- package/dist/esm/types/src/components/widgets/DriverMap/driverMapSelection.d.ts +3 -0
- package/dist/esm/types/src/components/widgets/DriverMap/index.d.ts +6 -0
- package/dist/esm/types/src/docs/pages/DriverMapPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/PageColumnsPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/WorldMapPage.d.ts +1 -0
- package/dist/esm/types/src/docs/registry.d.ts +1 -1
- package/dist/esm/types/src/hooks/index.d.ts +1 -0
- package/dist/esm/types/src/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/ui/Chart/Chart.tsx +5 -0
- package/src/components/ui/Chart/components/BaseChartWrapper.tsx +8 -41
- package/src/components/ui/Chart/components/ChartEmptyState/ChartEmptyState.styl +60 -0
- package/src/components/ui/Chart/components/ChartEmptyState/ChartEmptyState.styl.d.ts +15 -0
- package/src/components/ui/Chart/components/ChartEmptyState/ChartEmptyState.tsx +66 -0
- package/src/components/ui/Chart/tools/chartPlotGeometry.ts +89 -0
- package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.ts +44 -2
- package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.tsx +14 -1
- package/src/components/ui/ChartAreaInteractive/ChartAreaInteractive.types.ts +2 -3
- package/src/components/ui/ChartAreaInteractive/TimeRangeBrushLayer.styl +21 -0
- package/src/components/ui/ChartAreaInteractive/TimeRangeBrushLayer.styl.d.ts +9 -0
- package/src/components/ui/ChartAreaInteractive/TimeRangeBrushLayer.tsx +285 -0
- package/src/components/ui/ChartAreaInteractive/TimeRangeBrushLayout.helpers.ts +55 -0
- package/src/components/ui/ChartAreaInteractive/overlays/IntervalsOverlay/IntervalsOverlay.hooks.ts +1 -0
- package/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.styl +2 -7
- package/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.styl.d.ts +0 -1
- package/src/components/ui/ChartAreaInteractive/overlays/PinOverlay/PinOverlay.tsx +7 -71
- package/src/components/ui/ChartAreaInteractive/overlays/ThresholdsOverlay/ThresholdsOverlay.hooks.ts +1 -0
- package/src/components/ui/ChartAreaInteractive/overlays/useChartYRange.ts +2 -3
- package/src/components/ui/Chat/ChatSheet/ChatSelector.styl +3 -1
- package/src/components/ui/Chat/ChatSheet/ChatSelector.tsx +1 -1
- package/src/components/ui/DropdownMenu/DropdownMenu.tsx +4 -0
- package/src/components/ui/Page/PageColumns/PageColumns.tsx +1 -1
- package/src/components/ui/TimeRangeControls/TimeRangeControls.tsx +16 -17
- package/src/components/ui/WorldMap/WorldMap.styl +11 -0
- package/src/components/ui/WorldMap/WorldMap.styl.d.ts +7 -0
- package/src/components/ui/WorldMap/WorldMap.tsx +22 -0
- package/src/components/ui/WorldMap/index.ts +2 -0
- package/src/components/ui/WorldMap/map.svg +4337 -0
- package/src/components/ui/WorldMap/mapAspect.mixin.styl +3 -0
- package/src/components/ui/WorldMap/mapAspect.mixin.styl.d.ts +2 -0
- package/src/components/widgets/DriverCard/DriverCard.styl +169 -0
- package/src/components/widgets/DriverCard/DriverCard.styl.d.ts +40 -0
- package/src/components/widgets/DriverCard/DriverCard.tsx +219 -0
- package/src/components/widgets/DriverCard/DriverPerformanceChart.styl +43 -0
- package/src/components/widgets/DriverCard/DriverPerformanceChart.styl.d.ts +13 -0
- package/src/components/widgets/DriverCard/DriverPerformanceChart.tsx +150 -0
- package/src/components/widgets/DriverCard/driverPerformanceChartData.ts +64 -0
- package/src/components/widgets/DriverCard/index.ts +1 -0
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.constants.json +3 -0
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl +125 -0
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl.d.ts +22 -0
- package/src/components/widgets/DriverMap/DriverIcon/DriverIcon.tsx +79 -0
- package/src/components/widgets/DriverMap/DriverMap.helpers.ts +164 -0
- package/src/components/widgets/DriverMap/DriverMap.styl +50 -0
- package/src/components/widgets/DriverMap/DriverMap.styl.d.ts +12 -0
- package/src/components/widgets/DriverMap/DriverMap.tsx +212 -0
- package/src/components/widgets/DriverMap/driverCategoryIcon.tsx +277 -0
- package/src/components/widgets/DriverMap/driverMapGeography.ts +478 -0
- package/src/components/widgets/DriverMap/driverMapSelection.ts +23 -0
- package/src/components/widgets/DriverMap/index.ts +16 -0
- package/src/docs/config/webpack.config.js +25 -9
- package/src/docs/pages/ChartAreaInteractivePage.tsx +2 -3
- package/src/docs/pages/DriverMapPage.tsx +268 -0
- package/src/docs/pages/PageColumnsPage.tsx +92 -0
- package/src/docs/pages/TimeRangeControlsPage.tsx +2 -3
- package/src/docs/pages/TooltipPage.tsx +14 -10
- package/src/docs/pages/WorldMapPage.styl +14 -0
- package/src/docs/pages/WorldMapPage.styl.d.ts +8 -0
- package/src/docs/pages/WorldMapPage.tsx +26 -0
- package/src/docs/registry.ts +18 -5
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useEvent.ts +0 -2
- package/src/index.ts +3 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChartBarIcon,
|
|
3
|
+
ChartLineIcon,
|
|
4
|
+
CurrencyDollarIcon,
|
|
5
|
+
DatabaseIcon,
|
|
6
|
+
FactoryIcon,
|
|
7
|
+
FlaskIcon,
|
|
8
|
+
ForkKnifeIcon,
|
|
9
|
+
GlobeIcon,
|
|
10
|
+
HardHatIcon,
|
|
11
|
+
HeartIcon,
|
|
12
|
+
HouseIcon,
|
|
13
|
+
IdentificationCardIcon,
|
|
14
|
+
LightningIcon,
|
|
15
|
+
ShoppingCartIcon,
|
|
16
|
+
TShirtIcon,
|
|
17
|
+
ThermometerIcon,
|
|
18
|
+
TreeIcon,
|
|
19
|
+
TruckIcon,
|
|
20
|
+
UsersIcon,
|
|
21
|
+
WalletIcon,
|
|
22
|
+
WrenchIcon,
|
|
23
|
+
} from '@phosphor-icons/react';
|
|
24
|
+
|
|
25
|
+
// Icon mapping based on category
|
|
26
|
+
export const getCategoryIcon = (category: string | undefined | null) => {
|
|
27
|
+
if (!category) {
|
|
28
|
+
return <ChartBarIcon className="h-full w-full" />;
|
|
29
|
+
}
|
|
30
|
+
const categoryLower = category.toLowerCase();
|
|
31
|
+
|
|
32
|
+
// Housing & Real Estate
|
|
33
|
+
if (
|
|
34
|
+
categoryLower.includes('housing') ||
|
|
35
|
+
categoryLower.includes('real estate') ||
|
|
36
|
+
categoryLower.includes('residential') ||
|
|
37
|
+
categoryLower.includes('property')
|
|
38
|
+
)
|
|
39
|
+
return <HouseIcon className="h-full w-full" />;
|
|
40
|
+
|
|
41
|
+
// Construction & Infrastructure
|
|
42
|
+
if (
|
|
43
|
+
categoryLower.includes('construction') ||
|
|
44
|
+
categoryLower.includes('infrastructure') ||
|
|
45
|
+
categoryLower.includes('building') ||
|
|
46
|
+
categoryLower.includes('development') ||
|
|
47
|
+
categoryLower.includes('engineering') ||
|
|
48
|
+
categoryLower.includes('contracting')
|
|
49
|
+
)
|
|
50
|
+
return <HardHatIcon className="h-full w-full" />;
|
|
51
|
+
|
|
52
|
+
// Climate & Environment
|
|
53
|
+
if (
|
|
54
|
+
categoryLower.includes('climate') ||
|
|
55
|
+
categoryLower.includes('weather') ||
|
|
56
|
+
categoryLower.includes('environment') ||
|
|
57
|
+
categoryLower.includes('temperature') ||
|
|
58
|
+
categoryLower.includes('global warming') ||
|
|
59
|
+
categoryLower.includes('pollution') ||
|
|
60
|
+
categoryLower.includes('sustainability') ||
|
|
61
|
+
categoryLower.includes('green')
|
|
62
|
+
)
|
|
63
|
+
return <ThermometerIcon className="h-full w-full" />;
|
|
64
|
+
|
|
65
|
+
// Supply Chain & Trade
|
|
66
|
+
if (
|
|
67
|
+
categoryLower.includes('supply') ||
|
|
68
|
+
categoryLower.includes('trade') ||
|
|
69
|
+
categoryLower.includes('logistics') ||
|
|
70
|
+
categoryLower.includes('transport')
|
|
71
|
+
)
|
|
72
|
+
return <TruckIcon className="h-full w-full" />;
|
|
73
|
+
|
|
74
|
+
// Energy & Power
|
|
75
|
+
if (
|
|
76
|
+
categoryLower.includes('energy') ||
|
|
77
|
+
categoryLower.includes('power') ||
|
|
78
|
+
categoryLower.includes('electricity')
|
|
79
|
+
)
|
|
80
|
+
return <LightningIcon className="h-full w-full" />;
|
|
81
|
+
|
|
82
|
+
// Labor Market & Employment
|
|
83
|
+
if (
|
|
84
|
+
categoryLower.includes('labour') ||
|
|
85
|
+
categoryLower.includes('employment') ||
|
|
86
|
+
categoryLower.includes('jobs') ||
|
|
87
|
+
categoryLower.includes('hiring') ||
|
|
88
|
+
categoryLower.includes('unemployment') ||
|
|
89
|
+
categoryLower.includes('wages') ||
|
|
90
|
+
categoryLower.includes('salary') ||
|
|
91
|
+
categoryLower.includes('job market') ||
|
|
92
|
+
categoryLower.includes('workforce')
|
|
93
|
+
)
|
|
94
|
+
return <IdentificationCardIcon className="h-full w-full" />;
|
|
95
|
+
|
|
96
|
+
// Workforce & Human Resources
|
|
97
|
+
if (
|
|
98
|
+
categoryLower.includes('workforce') ||
|
|
99
|
+
categoryLower.includes('hr') ||
|
|
100
|
+
categoryLower.includes('human resources') ||
|
|
101
|
+
categoryLower.includes('personnel') ||
|
|
102
|
+
categoryLower.includes('staffing') ||
|
|
103
|
+
categoryLower.includes('talent') ||
|
|
104
|
+
categoryLower.includes('recruitment')
|
|
105
|
+
)
|
|
106
|
+
return <UsersIcon className="h-full w-full" />;
|
|
107
|
+
|
|
108
|
+
// Manufacturing & Production
|
|
109
|
+
if (
|
|
110
|
+
categoryLower.includes('volume') ||
|
|
111
|
+
categoryLower.includes('production') ||
|
|
112
|
+
categoryLower.includes('manufacturing') ||
|
|
113
|
+
categoryLower.includes('industry')
|
|
114
|
+
)
|
|
115
|
+
return <FactoryIcon className="h-full w-full" />;
|
|
116
|
+
|
|
117
|
+
// Finance & Economics
|
|
118
|
+
if (
|
|
119
|
+
categoryLower.includes('price') ||
|
|
120
|
+
categoryLower.includes('inflation') ||
|
|
121
|
+
categoryLower.includes('finance') ||
|
|
122
|
+
categoryLower.includes('economy') ||
|
|
123
|
+
categoryLower.includes('gdp')
|
|
124
|
+
)
|
|
125
|
+
return <CurrencyDollarIcon className="h-full w-full" />;
|
|
126
|
+
|
|
127
|
+
// Data & Analytics
|
|
128
|
+
if (
|
|
129
|
+
categoryLower.includes('data') ||
|
|
130
|
+
categoryLower.includes('analytics') ||
|
|
131
|
+
categoryLower.includes('statistics')
|
|
132
|
+
)
|
|
133
|
+
return <DatabaseIcon className="h-full w-full" />;
|
|
134
|
+
|
|
135
|
+
// Global & International
|
|
136
|
+
if (
|
|
137
|
+
categoryLower.includes('global') ||
|
|
138
|
+
categoryLower.includes('international') ||
|
|
139
|
+
categoryLower.includes('world')
|
|
140
|
+
)
|
|
141
|
+
return <GlobeIcon className="h-full w-full" />;
|
|
142
|
+
|
|
143
|
+
// Chemicals & Pharmaceuticals
|
|
144
|
+
if (
|
|
145
|
+
categoryLower.includes('chemical') ||
|
|
146
|
+
categoryLower.includes('pharmaceutical') ||
|
|
147
|
+
categoryLower.includes('medicine') ||
|
|
148
|
+
categoryLower.includes('drug') ||
|
|
149
|
+
categoryLower.includes('compound')
|
|
150
|
+
)
|
|
151
|
+
return <FlaskIcon className="h-full w-full" />;
|
|
152
|
+
|
|
153
|
+
// Food & Agriculture
|
|
154
|
+
if (
|
|
155
|
+
categoryLower.includes('food') ||
|
|
156
|
+
categoryLower.includes('processed') ||
|
|
157
|
+
categoryLower.includes('agriculture') ||
|
|
158
|
+
categoryLower.includes('farming') ||
|
|
159
|
+
categoryLower.includes('crop') ||
|
|
160
|
+
categoryLower.includes('grain') ||
|
|
161
|
+
categoryLower.includes('dairy') ||
|
|
162
|
+
categoryLower.includes('meat')
|
|
163
|
+
)
|
|
164
|
+
return <ForkKnifeIcon className="h-full w-full" />;
|
|
165
|
+
|
|
166
|
+
// Income & Wealth
|
|
167
|
+
if (
|
|
168
|
+
categoryLower.includes('income') ||
|
|
169
|
+
categoryLower.includes('wealth') ||
|
|
170
|
+
categoryLower.includes('salary') ||
|
|
171
|
+
categoryLower.includes('wage') ||
|
|
172
|
+
categoryLower.includes('earnings') ||
|
|
173
|
+
categoryLower.includes('revenue')
|
|
174
|
+
)
|
|
175
|
+
return <WalletIcon className="h-full w-full" />;
|
|
176
|
+
|
|
177
|
+
// Consumption & Retail
|
|
178
|
+
if (
|
|
179
|
+
categoryLower.includes('consumption') ||
|
|
180
|
+
categoryLower.includes('retail') ||
|
|
181
|
+
categoryLower.includes('shopping') ||
|
|
182
|
+
categoryLower.includes('spending') ||
|
|
183
|
+
categoryLower.includes('purchases') ||
|
|
184
|
+
categoryLower.includes('demand')
|
|
185
|
+
)
|
|
186
|
+
return <ShoppingCartIcon className="h-full w-full" />;
|
|
187
|
+
|
|
188
|
+
// Living Conditions & Quality of Life
|
|
189
|
+
if (
|
|
190
|
+
categoryLower.includes('living') ||
|
|
191
|
+
categoryLower.includes('quality') ||
|
|
192
|
+
categoryLower.includes('wellbeing') ||
|
|
193
|
+
categoryLower.includes('health') ||
|
|
194
|
+
categoryLower.includes('social') ||
|
|
195
|
+
categoryLower.includes('welfare') ||
|
|
196
|
+
categoryLower.includes('happiness')
|
|
197
|
+
)
|
|
198
|
+
return <HeartIcon className="h-full w-full" />;
|
|
199
|
+
|
|
200
|
+
// Minerals & Mining
|
|
201
|
+
if (
|
|
202
|
+
categoryLower.includes('mineral') ||
|
|
203
|
+
categoryLower.includes('mining') ||
|
|
204
|
+
categoryLower.includes('ore') ||
|
|
205
|
+
categoryLower.includes('metal') ||
|
|
206
|
+
categoryLower.includes('coal') ||
|
|
207
|
+
categoryLower.includes('gold') ||
|
|
208
|
+
categoryLower.includes('copper') ||
|
|
209
|
+
categoryLower.includes('iron') ||
|
|
210
|
+
categoryLower.includes('aluminum') ||
|
|
211
|
+
categoryLower.includes('lithium')
|
|
212
|
+
)
|
|
213
|
+
return <TreeIcon className="h-full w-full" />;
|
|
214
|
+
|
|
215
|
+
// Textiles & Fibers
|
|
216
|
+
if (
|
|
217
|
+
categoryLower.includes('textile') ||
|
|
218
|
+
categoryLower.includes('fiber') ||
|
|
219
|
+
categoryLower.includes('fabric') ||
|
|
220
|
+
categoryLower.includes('cloth') ||
|
|
221
|
+
categoryLower.includes('cotton') ||
|
|
222
|
+
categoryLower.includes('wool') ||
|
|
223
|
+
categoryLower.includes('silk') ||
|
|
224
|
+
categoryLower.includes('synthetic') ||
|
|
225
|
+
categoryLower.includes('garment') ||
|
|
226
|
+
categoryLower.includes('apparel')
|
|
227
|
+
)
|
|
228
|
+
return <TShirtIcon className="h-full w-full" />;
|
|
229
|
+
|
|
230
|
+
// Crafts & Artisan
|
|
231
|
+
if (
|
|
232
|
+
categoryLower.includes('craft') ||
|
|
233
|
+
categoryLower.includes('artisan') ||
|
|
234
|
+
categoryLower.includes('handmade') ||
|
|
235
|
+
categoryLower.includes('artistic') ||
|
|
236
|
+
categoryLower.includes('creative') ||
|
|
237
|
+
categoryLower.includes('design') ||
|
|
238
|
+
categoryLower.includes('pottery') ||
|
|
239
|
+
categoryLower.includes('woodwork') ||
|
|
240
|
+
categoryLower.includes('jewelry')
|
|
241
|
+
)
|
|
242
|
+
return <WrenchIcon className="h-full w-full" />;
|
|
243
|
+
|
|
244
|
+
// Population & Demographics
|
|
245
|
+
if (
|
|
246
|
+
categoryLower.includes('population') ||
|
|
247
|
+
categoryLower.includes('demographic') ||
|
|
248
|
+
categoryLower.includes('census') ||
|
|
249
|
+
categoryLower.includes('birth') ||
|
|
250
|
+
categoryLower.includes('death') ||
|
|
251
|
+
categoryLower.includes('migration') ||
|
|
252
|
+
categoryLower.includes('immigration') ||
|
|
253
|
+
categoryLower.includes('age') ||
|
|
254
|
+
categoryLower.includes('gender') ||
|
|
255
|
+
categoryLower.includes('ethnicity')
|
|
256
|
+
)
|
|
257
|
+
return <UsersIcon className="h-full w-full" />;
|
|
258
|
+
|
|
259
|
+
// Market Indices & Trading
|
|
260
|
+
if (
|
|
261
|
+
categoryLower.includes('market') ||
|
|
262
|
+
categoryLower.includes('index') ||
|
|
263
|
+
categoryLower.includes('indices') ||
|
|
264
|
+
categoryLower.includes('trading') ||
|
|
265
|
+
categoryLower.includes('stock') ||
|
|
266
|
+
categoryLower.includes('equity') ||
|
|
267
|
+
categoryLower.includes('s&p') ||
|
|
268
|
+
categoryLower.includes('nasdaq') ||
|
|
269
|
+
categoryLower.includes('dow') ||
|
|
270
|
+
categoryLower.includes('ftse') ||
|
|
271
|
+
categoryLower.includes('candlestick')
|
|
272
|
+
)
|
|
273
|
+
return <ChartLineIcon className="h-full w-full" />;
|
|
274
|
+
|
|
275
|
+
// Default fallback
|
|
276
|
+
return <ChartBarIcon className="h-full w-full" />;
|
|
277
|
+
};
|