react-jupiter 6.0.0-beta.6 → 6.0.0-beta.7
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/icon/iconFont.js +250 -2
- package/icon/index.js +9 -4
- package/package.json +1 -1
package/icon/iconFont.js
CHANGED
|
@@ -1,8 +1,256 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _styledComponents=require("styled-components"),_icomoon=_interopRequireDefault(require("../../docs/assets/fonts/icomoon.woff"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.legacyIconMap=exports.default=void 0;var _styledComponents=require("styled-components"),_icomoon=_interopRequireDefault(require("../../docs/assets/fonts/icomoon.woff"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}const
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
legacyIconMap=exports.legacyIconMap={
|
|
5
|
+
refresh:"ArrowPath",
|
|
6
|
+
"account-balance-wallet":"Wallet",
|
|
7
|
+
"account-box":"UserCircle",
|
|
8
|
+
"account-circle":"UserCircle",
|
|
9
|
+
"add-a-photo":"Camera",
|
|
10
|
+
"add-alert":"BellAlert",
|
|
11
|
+
"add-box":"PlusCircle",
|
|
12
|
+
"add-circle-outline":"PlusCircle",
|
|
13
|
+
"add-circle":"PlusCircle",
|
|
14
|
+
"add-photo-alternate":"Photo",
|
|
15
|
+
add:"Plus",
|
|
16
|
+
"alarm-add":"BellPlus",// Not in Heroicons, fallback to 'Bell'
|
|
17
|
+
"alarm-off":"BellSlash",// Not in Heroicons, fallback to 'Bell'
|
|
18
|
+
"alarm-on":"Bell",
|
|
19
|
+
alarm:"Bell",
|
|
20
|
+
apps:"Squares2X2",
|
|
21
|
+
"arrow-back":"ArrowLeft",
|
|
22
|
+
"arrow-backward-ios":"ChevronLeft",
|
|
23
|
+
"arrow-downward":"ArrowDown",
|
|
24
|
+
"arrow-drop-down-circle":"ChevronDown",
|
|
25
|
+
"arrow-drop-down":"ChevronDown",
|
|
26
|
+
"arrow-drop-up":"ChevronUp",
|
|
27
|
+
"arrow-forward-ios":"ChevronRight",
|
|
28
|
+
"arrow-forward":"ArrowRight",
|
|
29
|
+
"arrow-left":"ArrowLeft",
|
|
30
|
+
"arrow-right":"ArrowRight",
|
|
31
|
+
"arrow-upward":"ArrowUp",
|
|
32
|
+
"aspect-ratio":"RectangleGroup",
|
|
33
|
+
assessment:"ChartBar",
|
|
34
|
+
"assignment-ind":"Identification",
|
|
35
|
+
assignment:"DocumentText",
|
|
36
|
+
attachment:"PaperClip",
|
|
37
|
+
attendees:"UserGroup",
|
|
38
|
+
autorenew:"ArrowPath",
|
|
39
|
+
backup:"CloudArrowUp",
|
|
40
|
+
block:"NoSymbol",
|
|
41
|
+
"bluetooth-connected":"Signal",
|
|
42
|
+
"bluetooth-disabled":"SignalSlash",
|
|
43
|
+
"bluetooth-searching":"MagnifyingGlassCircle",
|
|
44
|
+
bluetooth:"Signal",
|
|
45
|
+
"bookmark-border":"Bookmark",
|
|
46
|
+
bookmark:"Bookmark",
|
|
47
|
+
bookmarks:"BookmarkSquare",
|
|
48
|
+
build:"WrenchScrewdriver",
|
|
49
|
+
cake:"Cake",
|
|
50
|
+
"calendar-today":"CalendarDays",
|
|
51
|
+
"call-end":"PhoneXMark",
|
|
52
|
+
"call-message":"ChatBubbleLeftRight",
|
|
53
|
+
call:"Phone",
|
|
54
|
+
"camera-alt":"Camera",
|
|
55
|
+
cancel:"XMark",
|
|
56
|
+
"card-giftcard":"Gift",
|
|
57
|
+
categories:"Squares2X2",
|
|
58
|
+
category:"Squares2X2",
|
|
59
|
+
"chat-bubble":"ChatBubbleLeft",
|
|
60
|
+
chat:"ChatBubbleLeft",
|
|
61
|
+
"check-box-outline-blank":"Square2Stack",
|
|
62
|
+
"check-box":"CheckSquare",
|
|
63
|
+
"check-circle-outline":"CheckCircle",
|
|
64
|
+
"check-circle":"CheckCircle",
|
|
65
|
+
check:"Check",
|
|
66
|
+
"chevron-left":"ChevronLeft",
|
|
67
|
+
"chevron-right":"ChevronRight",
|
|
68
|
+
close:"XMark",
|
|
69
|
+
"cloud-circle":"Cloud",
|
|
70
|
+
"cloud-done":"CloudCheck",
|
|
71
|
+
"cloud-download":"CloudArrowDown",
|
|
72
|
+
"cloud-off":"CloudSlash",
|
|
73
|
+
"cloud-queue":"Cloud",
|
|
74
|
+
"cloud-upload":"CloudArrowUp",
|
|
75
|
+
cloud:"Cloud",
|
|
76
|
+
code:"CodeBracket",
|
|
77
|
+
colleague:"UserGroup",
|
|
78
|
+
commute:null,// No direct match
|
|
79
|
+
copyright:null,// No direct match
|
|
80
|
+
create:"PencilSquare",
|
|
81
|
+
"credit-card":"CreditCard",
|
|
82
|
+
"crop-rotate":"Crop",
|
|
83
|
+
dashboard:"Squares2X2",
|
|
84
|
+
"delete-outline":"Trash",
|
|
85
|
+
"delete-sweep":"Trash",
|
|
86
|
+
delete:"Trash",
|
|
87
|
+
description:"DocumentText",
|
|
88
|
+
dialpad:"Squares2X2",
|
|
89
|
+
drafts:"InboxStack",
|
|
90
|
+
email:"Envelope",
|
|
91
|
+
equalizer:"AdjustmentsHorizontal",
|
|
92
|
+
"error-outline":"ExclamationCircle",
|
|
93
|
+
error:"ExclamationCircle",
|
|
94
|
+
"event-seat":null,// No direct match
|
|
95
|
+
event:"CalendarDays",
|
|
96
|
+
"exit-to-app":"ArrowRightOnRectangle",
|
|
97
|
+
"expand-less":"ChevronUp",
|
|
98
|
+
"expand-more":"ChevronDown",
|
|
99
|
+
"facebook-alt":"Facebook",// Not in Heroicons, use custom or null
|
|
100
|
+
facebook:"Facebook",// Not in Heroicons, use custom or null
|
|
101
|
+
"favorite-border":"Heart",
|
|
102
|
+
favorite:"Heart",
|
|
103
|
+
file:"Document",
|
|
104
|
+
fingerprint:"FingerPrint",
|
|
105
|
+
follower:"UserGroup",
|
|
106
|
+
forum:"ChatBubbleLeftRight",
|
|
107
|
+
"get-app":"ArrowDownTray",
|
|
108
|
+
"google-alt":null,// Not in Heroicons
|
|
109
|
+
"google-plus-alt":null,// Not in Heroicons
|
|
110
|
+
"google-plus":null,// Not in Heroicons
|
|
111
|
+
google:null,// Not in Heroicons
|
|
112
|
+
"gps-fixed":"MapPin",
|
|
113
|
+
"gps-not-fixed":"MapPin",
|
|
114
|
+
"gps-off":"MapPin",
|
|
115
|
+
group:"UserGroup",
|
|
116
|
+
"headset-mic":"Microphone",
|
|
117
|
+
headset:"Headphones",
|
|
118
|
+
"help-outline":"QuestionMarkCircle",
|
|
119
|
+
help:"QuestionMarkCircle",
|
|
120
|
+
"highlight-off":"XCircle",
|
|
121
|
+
history:"Clock",
|
|
122
|
+
home:"Home",
|
|
123
|
+
"hourglass-empty":"Clock",
|
|
124
|
+
"hourglass-full":"Clock",
|
|
125
|
+
"ic-content-copy":"DocumentDuplicate",
|
|
126
|
+
"import-contacts":"ArrowDownTray",
|
|
127
|
+
"indeterminate-check-box":"MinusCircle",
|
|
128
|
+
info:"InformationCircle",
|
|
129
|
+
"instagram-alt":null,// Not in Heroicons
|
|
130
|
+
instagram:null,// Not in Heroicons
|
|
131
|
+
"keyboard-backspace":"ArrowLeft",
|
|
132
|
+
"keyboard-voice":"Microphone",
|
|
133
|
+
keyboard:"CommandLine",
|
|
134
|
+
language:"GlobeAlt",
|
|
135
|
+
"link-off":"LinkSlash",
|
|
136
|
+
link:"Link",
|
|
137
|
+
"linkedin-alt":null,// Not in Heroicons
|
|
138
|
+
linkedin:null,// Not in Heroicons
|
|
139
|
+
"local-offer":"Tag",
|
|
140
|
+
"location-off":"MapPin",
|
|
141
|
+
"location-on":"MapPin",
|
|
142
|
+
"lock-open":"LockOpen",
|
|
143
|
+
lock:"LockClosed",
|
|
144
|
+
loop:"ArrowPath",
|
|
145
|
+
loyalty:"Tag",
|
|
146
|
+
"mail-outline":"Envelope",
|
|
147
|
+
mail:"Envelope",
|
|
148
|
+
menu:"Bars3",
|
|
149
|
+
"mic-none":"Microphone",
|
|
150
|
+
"mic-off":"MicrophoneSlash",
|
|
151
|
+
mic:"Microphone",
|
|
152
|
+
"mood-bad":"FaceFrown",
|
|
153
|
+
mood:"FaceSmile",
|
|
154
|
+
"more-horiz":"EllipsisHorizontal",
|
|
155
|
+
"more-vert":"EllipsisVertical",
|
|
156
|
+
"not-interested":"NoSymbol",
|
|
157
|
+
"note-add":"DocumentPlus",
|
|
158
|
+
note:"DocumentText",
|
|
159
|
+
"notification-important":"BellAlert",
|
|
160
|
+
"notifications-active":"BellAlert",
|
|
161
|
+
"notifications-none":"Bell",
|
|
162
|
+
"notifications-off":"BellSlash",
|
|
163
|
+
"notifications-paused":"BellSlash",
|
|
164
|
+
notifications:"Bell",
|
|
165
|
+
"offline-pin":"CheckCircle",
|
|
166
|
+
"ondemand-video":"PlayCircle",
|
|
167
|
+
"outlined-flag":"Flag",
|
|
168
|
+
partner:"UserGroup",
|
|
169
|
+
"pause-circle-outline":"PauseCircle",
|
|
170
|
+
"perm-contact-calendar":"CalendarDays",
|
|
171
|
+
"perm-identity":"User",
|
|
172
|
+
place:"MapPin",
|
|
173
|
+
"play-arrow":"Play",
|
|
174
|
+
"play-circle-filled":"PlayCircle",
|
|
175
|
+
"play-circle-outline":"PlayCircle",
|
|
176
|
+
"playlist-add-check":"CheckCircle",
|
|
177
|
+
"playlist-add":"PlusCircle",
|
|
178
|
+
"playlist-play":"Play",
|
|
179
|
+
print:"Printer",
|
|
180
|
+
"query-builder":"Clock",
|
|
181
|
+
"question-answer":"ChatBubbleLeftRight",
|
|
182
|
+
"radio-button-checked":"CheckCircle",
|
|
183
|
+
"radio-button-unchecked":"Circle",
|
|
184
|
+
"remove-circle-outline":"MinusCircle",
|
|
185
|
+
"remove-circle":"MinusCircle",
|
|
186
|
+
"remove-red-eye-2":"EyeSlash",
|
|
187
|
+
"remove-red-eye":"EyeSlash",
|
|
188
|
+
"report-problem":"ExclamationTriangle",
|
|
189
|
+
restore:"ArrowUturnLeft",
|
|
190
|
+
search:"MagnifyingGlass",
|
|
191
|
+
send:"PaperAirplane",
|
|
192
|
+
"sentiment-dissatisfied":"FaceFrown",
|
|
193
|
+
"sentiment-satisfied":"FaceSmile",
|
|
194
|
+
"sentiment-very-dissatisfied":"FaceFrown",
|
|
195
|
+
"sentiment-very-satisfied":"FaceSmile",
|
|
196
|
+
setting:"Cog6Tooth",
|
|
197
|
+
"settings-applications":"Cog6Tooth",
|
|
198
|
+
"settings-ethernet":"Cog6Tooth",
|
|
199
|
+
share:"Share",
|
|
200
|
+
"shopping-cart":"ShoppingCart",
|
|
201
|
+
smartphone:"DevicePhoneMobile",
|
|
202
|
+
"sort-by-alpha":"BarsArrowDown",
|
|
203
|
+
speaker:"SpeakerWave",
|
|
204
|
+
"star-border":"Star",
|
|
205
|
+
"star-half":"Star",
|
|
206
|
+
star:"Star",
|
|
207
|
+
"stay-current-landscape":"DeviceTablet",
|
|
208
|
+
"stay-current-portrait":"DeviceTablet",
|
|
209
|
+
Subtraction:null,// No direct match
|
|
210
|
+
"supervised-user-circle":"UserGroup",
|
|
211
|
+
"supervisor-account":"UserGroup",
|
|
212
|
+
"tablet-android":"DeviceTablet",
|
|
213
|
+
tablet:"DeviceTablet",
|
|
214
|
+
"telegram-alt":null,// Not in Heroicons
|
|
215
|
+
telegram:null,// Not in Heroicons
|
|
216
|
+
textsms:"ChatBubbleLeft",
|
|
217
|
+
theaters:"Film",
|
|
218
|
+
"thumb-down-alt":"HandThumbDown",
|
|
219
|
+
"thumb-down":"HandThumbDown",
|
|
220
|
+
"thumb-up-alt":"HandThumbUp",
|
|
221
|
+
"thumb-up":"HandThumbUp",
|
|
222
|
+
ticket:"Ticket",
|
|
223
|
+
today:"CalendarDays",
|
|
224
|
+
"toggle-off":"ToggleLeft",
|
|
225
|
+
"toggle-on":"ToggleRight",
|
|
226
|
+
"touch-app":"HandRaised",
|
|
227
|
+
tv:"Tv",
|
|
228
|
+
"twitter-alt":null,// Not in Heroicons
|
|
229
|
+
twitter:null,// Not in Heroicons
|
|
230
|
+
update:"ArrowPath",
|
|
231
|
+
"verified-user":"ShieldCheck",
|
|
232
|
+
"view-carousel":"Squares2X2",
|
|
233
|
+
"visibility-off":"EyeSlash",
|
|
234
|
+
visibility:"Eye",
|
|
235
|
+
"volume-down":"SpeakerWave",
|
|
236
|
+
"volume-mute":"SpeakerXMark",
|
|
237
|
+
"volume-off":"SpeakerXMark",
|
|
238
|
+
"volume-up":"SpeakerWave",
|
|
239
|
+
"vpn-key":"Key",
|
|
240
|
+
warning:"ExclamationTriangle",
|
|
241
|
+
"watch-later":"Clock",
|
|
242
|
+
watch:"Clock",
|
|
243
|
+
"Whatsapp-alt":null,// Not in Heroicons
|
|
244
|
+
"where-to-vote":"MapPin",
|
|
245
|
+
"work-off":"Briefcase",
|
|
246
|
+
"work-outline":"Briefcase",
|
|
247
|
+
work:"Briefcase",
|
|
248
|
+
"zoom-in":"MagnifyingGlassPlus",
|
|
249
|
+
"zoom-out-map":"Map",
|
|
250
|
+
"zoom-out":"MagnifyingGlassMinus"
|
|
251
|
+
},
|
|
4
252
|
|
|
5
|
-
|
|
253
|
+
FontStyle=(0,_styledComponents.createGlobalStyle)`
|
|
6
254
|
@font-face {
|
|
7
255
|
font-family: 'Jupiterico';
|
|
8
256
|
src: url(${_icomoon.default}) format('woff'); /* Updated path based on staticDirs */
|
package/icon/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireDefault(require("react")),_tailwindMerge=require("tailwind-merge"),HeroIcons=_interopRequireWildcard(require("@heroicons/react/24/outline")),HeroIconsSolid=_interopRequireWildcard(require("@heroicons/react/24/solid"));function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(b,c){if(!c&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var d=_getRequireWildcardCache(c);if(d&&d.has(b))return d.get(b);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in b)if("default"!=a&&{}.hasOwnProperty.call(b,a)){var g=f?Object.getOwnPropertyDescriptor(b,a):null;g&&(g.get||g.set)?Object.defineProperty(e,a,g):e[a]=b[a]}return e.default=b,d&&d.set(b,e),e}function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)({}).hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(null,arguments)}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireDefault(require("react")),_tailwindMerge=require("tailwind-merge"),HeroIcons=_interopRequireWildcard(require("@heroicons/react/24/outline")),HeroIconsSolid=_interopRequireWildcard(require("@heroicons/react/24/solid")),_iconFont=require("./iconFont");function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(b,c){if(!c&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var d=_getRequireWildcardCache(c);if(d&&d.has(b))return d.get(b);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in b)if("default"!=a&&{}.hasOwnProperty.call(b,a)){var g=f?Object.getOwnPropertyDescriptor(b,a):null;g&&(g.get||g.set)?Object.defineProperty(e,a,g):e[a]=b[a]}return e.default=b,d&&d.set(b,e),e}function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)({}).hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(null,arguments)}
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
|
|
@@ -80,6 +81,10 @@ const
|
|
|
80
81
|
|
|
81
82
|
|
|
82
83
|
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
83
88
|
|
|
84
89
|
|
|
85
90
|
|
|
@@ -95,13 +100,13 @@ width:j,
|
|
|
95
100
|
height:j
|
|
96
101
|
},
|
|
97
102
|
|
|
98
|
-
m=(()=>{
|
|
103
|
+
m=(()=>{// Use the mapping if available, otherwise fallback to the original name
|
|
104
|
+
const a=_iconFont.legacyIconMap[b]||b,c=a.split("-").map((a)=>a.charAt(0).toUpperCase()+a.slice(1)).join("")+"Icon",d="solid"===i?HeroIconsSolid:HeroIcons;// Convert to Heroicons PascalCase convention
|
|
105
|
+
return d[c]})();// Map old color values to new color tokens
|
|
99
106
|
// Get the appropriate Heroicon component
|
|
100
107
|
// Apply styles and colors
|
|
101
108
|
return m?/*#__PURE__*/
|
|
102
109
|
|
|
103
|
-
|
|
104
|
-
|
|
105
110
|
_react.default.createElement("div",_extends({
|
|
106
111
|
className:(0,_tailwindMerge.twMerge)("inline-block",d),
|
|
107
112
|
onClick:f,
|