@solexllc/usx-react 0.1.0 → 0.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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alex
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -1201,10 +1201,11 @@
|
|
|
1201
1201
|
}
|
|
1202
1202
|
function Icon({
|
|
1203
1203
|
name,
|
|
1204
|
+
source = "uswds",
|
|
1204
1205
|
size = 2,
|
|
1205
1206
|
color,
|
|
1206
1207
|
alt = name + " icon",
|
|
1207
|
-
staticUrlPrefix = (typeof window !== "undefined" && window.usxBaseUrl || "/") + "img/sprite.svg#",
|
|
1208
|
+
staticUrlPrefix = (typeof window !== "undefined" && window.usxBaseUrl || "/") + "img/" + (source === "usx" ? "usx-sprite.svg" : "sprite.svg") + "#",
|
|
1208
1209
|
className = "",
|
|
1209
1210
|
...props
|
|
1210
1211
|
}) {
|
package/dist/index.js
CHANGED
|
@@ -1199,10 +1199,11 @@ function Alert({
|
|
|
1199
1199
|
}
|
|
1200
1200
|
function Icon({
|
|
1201
1201
|
name,
|
|
1202
|
+
source = "uswds",
|
|
1202
1203
|
size = 2,
|
|
1203
1204
|
color,
|
|
1204
1205
|
alt = name + " icon",
|
|
1205
|
-
staticUrlPrefix = (typeof window !== "undefined" && window.usxBaseUrl || "/") + "img/sprite.svg#",
|
|
1206
|
+
staticUrlPrefix = (typeof window !== "undefined" && window.usxBaseUrl || "/") + "img/" + (source === "usx" ? "usx-sprite.svg" : "sprite.svg") + "#",
|
|
1206
1207
|
className = "",
|
|
1207
1208
|
...props
|
|
1208
1209
|
}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solexllc/usx-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "React component library for USX.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,13 +24,10 @@
|
|
|
24
24
|
"src",
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "vite build"
|
|
29
|
-
},
|
|
30
27
|
"dependencies": {
|
|
31
|
-
"@solexllc/usx": "
|
|
32
|
-
"@solexllc/usx-theme": "
|
|
33
|
-
"@solexllc/usx-uswds-fixes": "
|
|
28
|
+
"@solexllc/usx": "0.1.1",
|
|
29
|
+
"@solexllc/usx-theme": "0.1.1",
|
|
30
|
+
"@solexllc/usx-uswds-fixes": "0.1.1",
|
|
34
31
|
"classnames": "^2.5.1",
|
|
35
32
|
"prop-types": "^15.8.1"
|
|
36
33
|
},
|
|
@@ -44,5 +41,8 @@
|
|
|
44
41
|
"peerDependencies": {
|
|
45
42
|
"react": ">=17",
|
|
46
43
|
"react-dom": ">=17"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "vite build"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|
|
Binary file
|