react-jupiter 6.0.0-beta.9 → 6.1.1

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/index.js CHANGED
@@ -1,7 +1,8 @@
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)}
1
+ "use strict";
2
2
 
3
3
 
4
4
 
5
+ var _legacyIcons=require("./legacyIcons");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Icon=void 0;var _react=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_tailwindMerge=require("tailwind-merge");require("./assets/styles.css");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}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 _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)}
5
6
 
6
7
 
7
8
 
@@ -12,20 +13,28 @@
12
13
 
13
14
 
14
15
 
16
+ /**
17
+ * KeenIcon component for rendering Keenicons font icons.
18
+ *
19
+ * @param {Object} props
20
+ * @param {string} props.icon - The icon name (e.g., 'refresh')
21
+ * @param {'duotone'|'filled'|'solid'|'outline'} [props.style] - The icon style
22
+ * @param {string} [props.className] - Additional CSS classes
23
+ */
24
+ const Icon=exports.Icon=/*#__PURE__*/(0,_react.forwardRef)(function(a,
15
25
 
16
26
 
17
27
 
18
28
 
19
- const Icon=(a)=>
20
29
 
21
30
 
22
31
 
23
32
 
24
33
 
25
34
 
35
+ b)
36
+ {let{name:c,size:i="md",color:d,className:e,style:f,onClick:g,variant:j="solid",...h}=a;
26
37
 
27
-
28
- {let{name:b,size:h="md",color:c,className:d,style:e,onClick:f,variant:i="outline",...g}=a;
29
38
  // Map old size values to new size values in pixels
30
39
  const
31
40
 
@@ -75,47 +84,24 @@ const
75
84
 
76
85
 
77
86
 
87
+ k=(()=>"xs"===i?12:"sm"===i?16:"md"===i?20:"lg"===i?24:"xl"===i?32:"2xl"===i?40:"number"==typeof i?i:20)(),
88
+ l=(()=>"white"===d?"white":"black"===d?"#000000":"gray"===d?"#6B7280":"darkGray"===d?"#374151":"darkBlue"===d?"#6941C6":"red"===d?"#EF4444":"green"===d?"#10B981":"yellow"===d?"#F59E0B":"blue"===d?"#3B82F6":d)(),
89
+ m=_legacyIcons.legacyIconMap[c]||c,
78
90
 
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
- j=(()=>"xs"===h?12:"sm"===h?16:"md"===h?20:"lg"===h?24:"xl"===h?32:"2xl"===h?40:"number"==typeof h?h:20)(),
94
- k=(()=>"white"===c?"white":"black"===c?"#000000":"gray"===c?"#6B7280":"darkGray"===c?"#374151":"darkBlue"===c?"#6941C6":"red"===c?"#EF4444":"green"===c?"#10B981":"yellow"===c?"#F59E0B":"blue"===c?"#3B82F6":c)(),
95
-
96
- l={
97
- ...e,
98
- color:k,
99
- width:j,
100
- height:j
101
- },
102
-
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
106
- // Get the appropriate Heroicon component
91
+ n={
92
+ ...f,
93
+ color:l,
94
+ fontSize:k
95
+ };// Map old color values to new color tokens
107
96
  // Apply styles and colors
108
- return m?/*#__PURE__*/
109
-
110
- _react.default.createElement("div",_extends({
111
- className:(0,_tailwindMerge.twMerge)("inline-block",d),
112
- onClick:f,
113
- "aria-hidden":"true"},
114
- g),/*#__PURE__*/
115
-
116
- _react.default.createElement(m,{style:l})
117
- ):(console.log(`Icon "${m}" not found in Heroicons`),null)
118
-
119
- };var _default=exports.default=
97
+ return(/*#__PURE__*/
98
+ _react.default.createElement("i",_extends({
99
+ ref:b},
100
+ h,{
101
+ className:(0,_tailwindMerge.twMerge)(`ki-${j}`,`ki-${m}`,e),
102
+ style:n})
103
+ ))
104
+
105
+ });var _default=exports.default=
120
106
 
121
107
  Icon;
@@ -0,0 +1,214 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.legacyIconMap=void 0;const legacyIconMap=exports.legacyIconMap={
2
+ refresh:"arrows-circle",
3
+ "account-balance-wallet":"wallet",
4
+ "account-box":"user-square",
5
+ "account-circle":"profile-circle",
6
+ "add-a-photo":"picture",
7
+ "add-alert":"notification-bing",
8
+ "add-box":"plus-square",
9
+ "add-circle-outline":"plus-circle",
10
+ "add-circle":"plus-circle",
11
+ "add-photo-alternate":"picture",
12
+ "icon-add":"plus-square",
13
+ "alarm-add":"timer",
14
+ "alarm-off":"timer",
15
+ "alarm-on":"timer",
16
+ alarm:"timer",
17
+ apps:"element-2",
18
+ "arrow-back":"arrow-left",
19
+ "arrow-backward-ios":"left",
20
+ "arrow-downward":"arrow-down",
21
+ "arrow-drop-down-circle":"down-square",
22
+ "arrow-drop-down":"down",
23
+ "arrow-drop-up":"up",
24
+ "arrow-forward-ios":"right",
25
+ "arrow-forward":"arrow-right",
26
+ "arrow-left":"left",
27
+ "arrow-right":"right",
28
+ "arrow-upward":"arrow-up",
29
+ "aspect-ratio":"maximize",
30
+ ssessment:"chart-simple",
31
+ "assignment-ind":"badge",
32
+ assignment:"notepad",
33
+ attachment:"paper-clip",
34
+ attendees:"profile-user",
35
+ autorenew:"arrows-circle",
36
+ backup:"cloud-add",
37
+ block:"minus-circle",
38
+ "bluetooth-connected":"bluetooth",
39
+ "bluetooth-disabled":"bluetooth",
40
+ "bluetooth-searching":"bluetooth",
41
+ bluetooth:"bluetooth",
42
+ "bookmark-border":"heart",
43
+ bookmark:"heart",
44
+ bookmarks:"heart",
45
+ build:"wrench",
46
+ "calendar-today":"calendar-2",
47
+ "call-end":"phone",
48
+ "call-message":"message-text",
49
+ call:"phone",
50
+ "camera-alt":"picture",
51
+ cancel:"cross-circle",
52
+ giftcard:"gift",
53
+ categories:"category",
54
+ category:"category",
55
+ "chat-bubble":"message-text",
56
+ chat:"message-text",
57
+ "check-box":"check-square",
58
+ "check-circle-outline":"check-circle",
59
+ "check-circle":"check-circle",
60
+ check:"check",
61
+ "chevron-left":"left",
62
+ "chevron-right":"right",
63
+ close:"cross",
64
+ "cloud-circle":"cloud",
65
+ "cloud-done":"cloud",
66
+ "cloud-download":"cloud-download",
67
+ "cloud-queue":"cloud",
68
+ "cloud-upload":"cloud-add",
69
+ cloud:"cloud",
70
+ code:"code",
71
+ colleague:"crown",
72
+ commute:"car-2",
73
+ copyright:"celsius",
74
+ create:"pencil",
75
+ "credit-card":"credit-cart",
76
+ "crop-rotate":"design-frame",
77
+ dashboard:"element-1",
78
+ "delete-outline":"trash",
79
+ "delete-sweep":"trash",
80
+ delete:"trash",
81
+ description:"notepad",
82
+ dialpad:"abstract-29",
83
+ drafts:"clipboard",
84
+ email:"directbox-default",
85
+ equalizer:"chart-simple",
86
+ "error-outline":"information-5",
87
+ error:"information-5",
88
+ event:"calendar-2",
89
+ "exit-to-app":"exit-left",
90
+ "expand-less":"up",
91
+ "expand-more":"down",
92
+ "facebook-alt":"facebook",
93
+ facebook:"facebook",
94
+ "favorite-border":"heart",
95
+ favorite:"heart",
96
+ file:"file",
97
+ fingerprint:"password-check",
98
+ follower:"profile-user",
99
+ forum:"messages",
100
+ "get-app":"arrow-down",
101
+ "google-alt":"google",
102
+ google:"google",
103
+ "gps-fixed":"geolocation",
104
+ "gps-not-fixed":"geolocation",
105
+ "gps-off":"geolocation",
106
+ group:"profile-user",
107
+ "headset-mic":"message-question",
108
+ headset:"message-question",
109
+ "help-outline":"question",
110
+ help:"question",
111
+ "highlight-off":"cross-circle",
112
+ history:"text-align-right",
113
+ home:"home",
114
+ "hourglass-empty":"watch",
115
+ "hourglass-full":"watch",
116
+ "ic-content-copy":"copy",
117
+ "import-contacts":"notepad",
118
+ "indeterminate-check-box":"minus-square",
119
+ info:"information-2",
120
+ "instagram-alt":"instagram",
121
+ instagram:"instagram",
122
+ "keyboard-backspace":"black-left",
123
+ keyboard:"keyboard",
124
+ language:"abstract-39",
125
+ "link-off":"disconnect",
126
+ link:"fasten",
127
+ "local-offer":"price-tag",
128
+ "location-off":"geolocation",
129
+ "location-on":"geolocation",
130
+ lock:"lock-2",
131
+ loop:"arrows-circle",
132
+ loyalty:"like-2",
133
+ "mail-outline":"directbox-default",
134
+ mail:"directbox-default",
135
+ menu:"menu",
136
+ mood:"happy-emoji",
137
+ "more-horiz":"dots-horizontal",
138
+ "more-vert":"dots-vertical",
139
+ "not-interested":"minus-circle",
140
+ "note-add":"add-notepad",
141
+ note:"notepad",
142
+ "notification-important":"notification-on",
143
+ "notifications-active":"notification-on",
144
+ "notifications-none":"notification",
145
+ notifications:"notification",
146
+ "offline-pin":"check-circle",
147
+ "outlined-flag":"flag",
148
+ partner:"star",
149
+ "perm-contact-calendar":"user",
150
+ "perm-identity":"user",
151
+ place:"geolocation",
152
+ "play-arrow":"to-right",
153
+ "play-circle-filled":"to-right",
154
+ "play-circle-outline":"to-right",
155
+ "playlist-add-check":"burger-menu-4",
156
+ "playlist-add":"burger-menu-4",
157
+ "playlist-play":"burger-menu-4",
158
+ print:"printer",
159
+ "query-builder":"time",
160
+ "question-answer":"messages",
161
+ "radio-button-checked":"check-circle",
162
+ "remove-circle-outline":"minus-circle",
163
+ "remove-circle":"minus-circle",
164
+ "remove-red-eye-2":"eye",
165
+ "remove-red-eye":"eye",
166
+ "report-problem":"information-5",
167
+ restore:"arrows-circle",
168
+ search:"magnifier",
169
+ send:"send",
170
+ setting:"setting",
171
+ "settings-applications":"setting",
172
+ "settings-ethernet":"setting",
173
+ share:"share",
174
+ "shopping-cart":"handcart",
175
+ smartphone:"phone",
176
+ "sort-by-alpha":"sort",
177
+ speaker:"user-square",
178
+ "star-border":"star",
179
+ star:"star",
180
+ "stay-current-portrait":"phone",
181
+ "supervised-user-circle":"profile-user",
182
+ "supervisor-account":"profile-user",
183
+ "tablet-android":"tablet",
184
+ tablet:"tablet",
185
+ "telegram-alt":"send",
186
+ telegram:"send",
187
+ textsms:"message-text",
188
+ "thumb-down-alt":"dislike",
189
+ "thumb-down":"dislike",
190
+ "thumb-up-alt":"like",
191
+ "thumb-up":"like",
192
+ ticket:"price-tag",
193
+ today:"calendar-2",
194
+ "toggle-off":"toggle-off-circle",
195
+ "toggle-on":"toggle-on-circle",
196
+ "touch-app":"mouse-square",
197
+ tv:"screen",
198
+ "twitter-alt":"twitter",
199
+ twitter:"twitter",
200
+ update:"arrows-circle",
201
+ "verified-user":"verify",
202
+ "view-carousel":"slider-horizontal",
203
+ "visibility-off":"eye-slash",
204
+ visibility:"eye",
205
+ "vpn-key":"key",
206
+ warning:"information-5",
207
+ "watch-later":"time",
208
+ watch:"electronic-clock",
209
+ "Whatsapp-alt":"whatsapp",
210
+ "where-to-vote":"geolocation",
211
+ "zoom-in":"plus-circle",
212
+ "zoom-out-map":"maximize",
213
+ "zoom-out":"minus-circle"
214
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-jupiter",
3
- "version": "6.0.0-beta.9",
3
+ "version": "6.1.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -11,9 +11,9 @@
11
11
  "styled-component"
12
12
  ],
13
13
  "contributors": [
14
+ "@mehranshiri",
14
15
  "@arashmanteghi",
15
- "https://github.com/marzzy",
16
- "@mehranshiri"
16
+ "https://github.com/marzzy"
17
17
  ],
18
18
  "publishConfig": {
19
19
  "access": "public"