@revolugo/common 6.12.1-beta.16 → 6.12.1-beta.18

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.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/src/icons/index.ts +211 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolugo/common",
3
- "version": "6.12.1-beta.16",
3
+ "version": "6.12.1-beta.18",
4
4
  "private": false,
5
5
  "description": "Revolugo common",
6
6
  "author": "Revolugo",
@@ -14,6 +14,7 @@
14
14
  "./constants": "./src/constants/index.ts",
15
15
  "./currencies": "./src/currencies/index.ts",
16
16
  "./http": "./src/http/index.ts",
17
+ "./icons": "./src/icons/index.ts",
17
18
  "./map": "./src/map/index.ts",
18
19
  "./models": "./src/models/index.ts",
19
20
  "./types": "./src/types/index.ts",
@@ -0,0 +1,211 @@
1
+ export const ICONS_NAME = Object.freeze({
2
+ airplane: 'ph:airplane',
3
+ archive: 'ph:archive',
4
+ arrowDown: 'ph:arrow-down',
5
+ arrowRight: 'ph:arrow-right',
6
+ baby: 'ph:baby',
7
+ bag: 'ph:bag',
8
+ bank: 'ph:bank',
9
+ bed: 'ph:bed',
10
+ bell: 'ph:bell',
11
+ bicycle: 'ph:bicycle',
12
+ book: 'ph:book',
13
+ bookOpen: 'ph:book-open',
14
+ bowlingBall: 'ph:bowling-ball',
15
+ building: 'ph:building',
16
+ buildings: 'ph:buildings',
17
+ bus: 'ph:bus',
18
+ cake: 'ph:cake',
19
+ calculator: 'ph:calculator',
20
+ calendar: 'ph:calendar-blank',
21
+ car: 'ph:car',
22
+ caretDown: 'ph:caret-down',
23
+ caretRight: 'ph:caret-right',
24
+ caretUp: 'ph:caret-up',
25
+ caretUpDown: 'ph:caret-up-down',
26
+ chair: 'ph:chair',
27
+ chalkboard: 'ph:chalkboard',
28
+ champagne: 'ph:champagne',
29
+ chatOff: 'ph:chat-circle-slash',
30
+ check: 'ph:check',
31
+ checkCircle: 'ph:check-circle',
32
+ checkFat: 'ph:check-fat',
33
+ checks: 'ph:checks',
34
+ cheers: 'ph:cheers',
35
+ church: 'ph:church',
36
+ circle: 'ph:circle',
37
+ circleNotch: 'ph:circle-notch',
38
+ clock: 'ph:clock',
39
+ close: 'ph:x',
40
+ closeCircle: 'ph:x-circle',
41
+ cloud: 'ph:cloud',
42
+ cloudDown: 'ph:cloud-arrow-down',
43
+ cloudUp: 'ph:cloud-arrow-up',
44
+ coffee: 'ph:coffee',
45
+ coinVertical: 'ph:coin-vertical',
46
+ comment: 'ph:chat-teardrop',
47
+ copy: 'ph:copy',
48
+ cross: 'ph:cross',
49
+ desktop: 'ph:desktop',
50
+ deviceMobile: 'ph:device-mobile',
51
+ deviceTablet: 'ph:device-tablet',
52
+ diceSix: 'ph:dice-six',
53
+ doorOpen: 'ph:door-open',
54
+ dotsThree: 'ph:dots-three',
55
+ download: 'ph:download-simple',
56
+ egg: 'ph:egg',
57
+ elevator: 'ph:elevator',
58
+ envelope: 'ph:envelope',
59
+ euro: 'ph:currency-eur',
60
+ exclamation: 'ph:exclamation-mark',
61
+ expand: 'ph:arrows-out-simple',
62
+ external: 'ph:arrow-square-out',
63
+ eye: 'ph:eye',
64
+ eyeClosed: 'ph:eye-closed',
65
+ eyeSlash: 'ph:eye-slash',
66
+ file: 'ph:file',
67
+ fileJpg: 'ph:file-jpg',
68
+ filePdf: 'ph:file-pdf',
69
+ filePng: 'ph:file-png',
70
+ fileSearch: 'ph:file-search',
71
+ fileText: 'ph:file-text',
72
+ fileXls: 'ph:file-xls',
73
+ filmReel: 'ph:film-reel',
74
+ fire: 'ph:fire',
75
+ fish: 'ph:fish',
76
+ flag: 'ph:flag',
77
+ floppyDisk: 'ph:floppy-disk',
78
+ flower: 'ph:flower',
79
+ forkKnife: 'ph:fork-knife',
80
+ gameController: 'ph:game-controller',
81
+ gasPump: 'ph:gas-pump',
82
+ gavel: 'ph:gavel',
83
+ gear: 'ph:gear',
84
+ globe: 'ph:globe',
85
+ graph: 'ph:graph',
86
+ gym: 'ph:barbell',
87
+ hammer: 'ph:hammer',
88
+ handPeace: 'ph:hand-peace',
89
+ heart: 'ph:heart',
90
+ hospital: 'ph:hospital',
91
+ house: 'ph:house',
92
+ idBadge: 'ph:identification-badge',
93
+ image: 'ph:image',
94
+ images: 'ph:images',
95
+ info: 'ph:info',
96
+ key: 'ph:key',
97
+ leaf: 'ph:leaf',
98
+ lightning: 'ph:lightning',
99
+ link: 'ph:link',
100
+ linkBreak: 'ph:link-break',
101
+ lock: 'ph:lock',
102
+ lockKey: 'ph:lock-key',
103
+ lockKeyOpen: 'ph:lock-key-open',
104
+ lockOpen: 'ph:lock-open',
105
+ magnifyingGlass: 'ph:magnifying-glass',
106
+ mapPin: 'ph:map-pin',
107
+ mapPinArea: 'ph:map-pin-area',
108
+ mapPinSimpleArea: 'ph:map-pin-simple-area',
109
+ medical: 'ph:first-aid-kit',
110
+ minus: 'ph:minus',
111
+ minusCircle: 'ph:minus-circle',
112
+ money: 'ph:money',
113
+ mosque: 'ph:mosque',
114
+ musicNotes: 'ph:music-notes',
115
+ note: 'ph:note',
116
+ paintBrush: 'ph:paint-brush',
117
+ palette: 'ph:palette',
118
+ paperPlaneTilt: 'ph:paper-plane-tilt',
119
+ parkingSign: 'ph:letter-circle-p',
120
+ pauseCircle: 'ph:pause-circle',
121
+ pawPrint: 'ph:paw-print',
122
+ pencil: 'ph:pencil',
123
+ phone: 'ph:phone',
124
+ pill: 'ph:pill',
125
+ plus: 'ph:plus',
126
+ plusCircle: 'ph:plus-circle',
127
+ policeCar: 'ph:police-car',
128
+ praying: 'ph:hands-praying',
129
+ questionMark: 'ph:question-mark',
130
+ refresh: 'ph:arrows-counter-clockwise',
131
+ running: 'ph:person-simple-run',
132
+ scissors: 'ph:scissors',
133
+ shield: 'ph:shield',
134
+ shirt: 'ph:shirt-folded',
135
+ shoppingCart: 'ph:shopping-cart',
136
+ shrink: 'ph:arrows-in-simple',
137
+ signOut: 'ph:sign-out',
138
+ sneakerMove: 'ph:sneaker-move',
139
+ soccerBall: 'ph:soccer-ball',
140
+ spinner: 'ph:spinner',
141
+ star: 'ph:star',
142
+ starHalf: 'ph:star-half',
143
+ stethoscope: 'ph:stethoscope',
144
+ stop: 'ph:stop',
145
+ storefront: 'ph:storefront',
146
+ student: 'ph:student',
147
+ subway: 'ph:subway',
148
+ synagogue: 'ph:synagogue',
149
+ tShirt: 'ph:t-shirt',
150
+ taxi: 'ph:taxi',
151
+ tent: 'ph:tent',
152
+ thumbsUp: 'ph:thumbs-up',
153
+ tooth: 'ph:tooth',
154
+ train: 'ph:train',
155
+ trash: 'ph:trash',
156
+ tree: 'ph:tree',
157
+ trendDown: 'ph:trend-down',
158
+ trendUp: 'ph:trend-up',
159
+ truck: 'ph:truck',
160
+ upload: 'ph:upload-simple',
161
+ uploadThick: 'ph:arrow-fat-line-up',
162
+ user: 'ph:user',
163
+ users: 'ph:users',
164
+ usersThree: 'ph:users-three',
165
+ van: 'ph:van',
166
+ walking: 'ph:person-simple-walk',
167
+ warning: 'ph:warning',
168
+ warningCircle: 'ph:warning-circle',
169
+ wifiHigh: 'ph:wifi-high',
170
+ wifiSlash: 'ph:wifi-slash',
171
+ wine: 'ph:wine',
172
+ wrench: 'ph:wrench',
173
+ })
174
+
175
+ export const ICON_NAMES = Object.keys(ICONS_NAME)
176
+
177
+ export const ICONS_TO_FA_ICONS: Partial<
178
+ Record<keyof typeof ICONS_NAME, string>
179
+ > = {
180
+ baby: 'child',
181
+ bus: 'bus',
182
+ clock: 'clock',
183
+ coffee: 'mug-saucer',
184
+ euro: 'euro-sign',
185
+ handPeace: 'hand-peace',
186
+ heart: 'heart',
187
+ house: 'house',
188
+ idBadge: 'id-badge',
189
+ leaf: 'leaf',
190
+ running: 'person-running',
191
+ shirt: 'shirt',
192
+ star: 'star',
193
+ van: 'van-shuttle',
194
+ }
195
+
196
+ export const FA_ICONS_TO_ICONS = {
197
+ bus: ICONS_NAME.bus,
198
+ child: ICONS_NAME.baby,
199
+ clock: ICONS_NAME.clock,
200
+ 'euro-sign': ICONS_NAME.euro,
201
+ 'hand-peace': ICONS_NAME.handPeace,
202
+ heart: ICONS_NAME.heart,
203
+ house: ICONS_NAME.house,
204
+ 'id-badge': ICONS_NAME.idBadge,
205
+ leaf: ICONS_NAME.leaf,
206
+ 'mug-hot': ICONS_NAME.coffee,
207
+ 'person-running': ICONS_NAME.running,
208
+ shirt: ICONS_NAME.shirt,
209
+ star: ICONS_NAME.star,
210
+ 'van-shuttle': ICONS_NAME.van,
211
+ }