@onehaul/ui 0.1.2 → 0.1.3
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/README.md +12 -0
- package/dist/icons/index.esm.js +2 -0
- package/dist/icons/index.esm.js.map +1 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/index.js.map +1 -0
- package/package.json +14 -2
package/README.md
CHANGED
|
@@ -56,3 +56,15 @@ function App() {
|
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
```
|
|
59
|
+
|
|
60
|
+
## Icons
|
|
61
|
+
|
|
62
|
+
OneHaul UI comes with a set of custom icons that can be imported separately from the main package. The icons are optimized SVGs that can be used as React components.
|
|
63
|
+
|
|
64
|
+
### Installation
|
|
65
|
+
|
|
66
|
+
Icons are included in the main package but are tree-shakeable. You can import them from the `/icons` subpath:
|
|
67
|
+
|
|
68
|
+
```jsx
|
|
69
|
+
import { Home, Search, Language } from '@onehaul/ui/icons';
|
|
70
|
+
```
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"react";import{jsx as e}from"react/jsx-runtime";function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var i=function(t){return e("svg",n(n({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},t),{},{children:e("path",{fill:"#2F2F2F",d:"M4.928 20.643h3.143v-7.857h7.857v7.857h3.143V9.25L12 3.946 4.928 9.25zM2.571 23V8.071L12 1l9.428 7.071V23h-7.857v-7.857h-3.143V23z"})}))},o=function(t){return e("svg",n(n({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},t),{},{children:e("path",{fill:"#2F2F2F",d:"M12 23q-2.255 0-4.262-.866a11.2 11.2 0 0 1-3.507-2.365q-1.498-1.5-2.365-3.506A10.6 10.6 0 0 1 1 12q0-2.283.866-4.276A11.2 11.2 0 0 1 4.231 4.23q1.5-1.498 3.507-2.365A10.6 10.6 0 0 1 12 1q2.283 0 4.276.866a11.2 11.2 0 0 1 3.493 2.365q1.498 1.5 2.365 3.493Q23 9.717 23 12q0 2.255-.866 4.262a11.2 11.2 0 0 1-2.365 3.507 11.2 11.2 0 0 1-3.493 2.365Q14.283 23 12 23m0-2.255q.716-.99 1.238-2.062.522-1.073.852-2.283H9.91q.33 1.21.852 2.283.523 1.072 1.238 2.062m-2.86-.44a15 15 0 0 1-.866-1.884 16 16 0 0 1-.619-2.021H4.41a9.1 9.1 0 0 0 1.994 2.393 7.9 7.9 0 0 0 2.736 1.512m5.72 0a7.9 7.9 0 0 0 2.736-1.512A9.1 9.1 0 0 0 19.59 16.4h-3.245q-.247 1.045-.619 2.021-.37.977-.866 1.884M3.475 14.2h3.74A14.526 14.526 0 0 1 7.05 12a14.5 14.5 0 0 1 .165-2.2h-3.74q-.137.55-.206 1.086A9 9 0 0 0 3.2 12a8.8 8.8 0 0 0 .275 2.2m5.94 0h5.17q.082-.55.124-1.086.04-.537.041-1.114a14.5 14.5 0 0 0-.165-2.2h-5.17q-.082.55-.124 1.086A15 15 0 0 0 9.25 12a14.5 14.5 0 0 0 .165 2.2m7.37 0h3.74q.137-.55.206-1.086A9 9 0 0 0 20.8 12a8.8 8.8 0 0 0-.275-2.2h-3.74q.082.55.124 1.086.04.537.041 1.114a14.5 14.5 0 0 1-.165 2.2m-.44-6.6h3.245a9.1 9.1 0 0 0-1.994-2.392 7.9 7.9 0 0 0-2.736-1.513q.495.907.866 1.884.372.975.619 2.021m-6.435 0h4.18a13 13 0 0 0-.852-2.282A14 14 0 0 0 12 3.254a14 14 0 0 0-1.238 2.063A13 13 0 0 0 9.91 7.6m-5.5 0h3.245q.247-1.045.619-2.021.37-.976.866-1.884a7.9 7.9 0 0 0-2.736 1.512A9.1 9.1 0 0 0 4.41 7.6"})}))},a=function(t){return e("svg",n(n({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},t),{},{children:e("path",{fill:"#2F2F2F",d:"m21.289 23-7.7-7.7a7.45 7.45 0 0 1-4.644 1.589q-3.33 0-5.638-2.307T1 8.944t2.307-5.637T8.944 1q3.33 0 5.638 2.307t2.307 5.637A7.45 7.45 0 0 1 15.3 13.59l7.7 7.7zM8.944 14.444q2.292 0 3.896-1.604t1.604-3.896T12.84 5.05 8.944 3.444 5.05 5.05 3.444 8.944 5.05 12.84t3.895 1.604"})}))};export{i as Home,o as Language,a as Search};
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/icons/Home.jsx","../../src/icons/Language.jsx","../../src/icons/Search.jsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgHome = (props) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <path\n fill=\"#2F2F2F\"\n d=\"M4.928 20.643h3.143v-7.857h7.857v7.857h3.143V9.25L12 3.946 4.928 9.25zM2.571 23V8.071L12 1l9.428 7.071V23h-7.857v-7.857h-3.143V23z\"\n />\n </svg>\n);\nexport default SvgHome;\n\n","import * as React from \"react\";\nconst SvgLanguage = (props) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <path\n fill=\"#2F2F2F\"\n d=\"M12 23q-2.255 0-4.262-.866a11.2 11.2 0 0 1-3.507-2.365q-1.498-1.5-2.365-3.506A10.6 10.6 0 0 1 1 12q0-2.283.866-4.276A11.2 11.2 0 0 1 4.231 4.23q1.5-1.498 3.507-2.365A10.6 10.6 0 0 1 12 1q2.283 0 4.276.866a11.2 11.2 0 0 1 3.493 2.365q1.498 1.5 2.365 3.493Q23 9.717 23 12q0 2.255-.866 4.262a11.2 11.2 0 0 1-2.365 3.507 11.2 11.2 0 0 1-3.493 2.365Q14.283 23 12 23m0-2.255q.716-.99 1.238-2.062.522-1.073.852-2.283H9.91q.33 1.21.852 2.283.523 1.072 1.238 2.062m-2.86-.44a15 15 0 0 1-.866-1.884 16 16 0 0 1-.619-2.021H4.41a9.1 9.1 0 0 0 1.994 2.393 7.9 7.9 0 0 0 2.736 1.512m5.72 0a7.9 7.9 0 0 0 2.736-1.512A9.1 9.1 0 0 0 19.59 16.4h-3.245q-.247 1.045-.619 2.021-.37.977-.866 1.884M3.475 14.2h3.74A14.526 14.526 0 0 1 7.05 12a14.5 14.5 0 0 1 .165-2.2h-3.74q-.137.55-.206 1.086A9 9 0 0 0 3.2 12a8.8 8.8 0 0 0 .275 2.2m5.94 0h5.17q.082-.55.124-1.086.04-.537.041-1.114a14.5 14.5 0 0 0-.165-2.2h-5.17q-.082.55-.124 1.086A15 15 0 0 0 9.25 12a14.5 14.5 0 0 0 .165 2.2m7.37 0h3.74q.137-.55.206-1.086A9 9 0 0 0 20.8 12a8.8 8.8 0 0 0-.275-2.2h-3.74q.082.55.124 1.086.04.537.041 1.114a14.5 14.5 0 0 1-.165 2.2m-.44-6.6h3.245a9.1 9.1 0 0 0-1.994-2.392 7.9 7.9 0 0 0-2.736-1.513q.495.907.866 1.884.372.975.619 2.021m-6.435 0h4.18a13 13 0 0 0-.852-2.282A14 14 0 0 0 12 3.254a14 14 0 0 0-1.238 2.063A13 13 0 0 0 9.91 7.6m-5.5 0h3.245q.247-1.045.619-2.021.37-.976.866-1.884a7.9 7.9 0 0 0-2.736 1.512A9.1 9.1 0 0 0 4.41 7.6\"\n />\n </svg>\n);\nexport default SvgLanguage;\n\n","import * as React from \"react\";\nconst SvgSearch = (props) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <path\n fill=\"#2F2F2F\"\n d=\"m21.289 23-7.7-7.7a7.45 7.45 0 0 1-4.644 1.589q-3.33 0-5.638-2.307T1 8.944t2.307-5.637T8.944 1q3.33 0 5.638 2.307t2.307 5.637A7.45 7.45 0 0 1 15.3 13.59l7.7 7.7zM8.944 14.444q2.292 0 3.896-1.604t1.604-3.896T12.84 5.05 8.944 3.444 5.05 5.05 3.444 8.944 5.05 12.84t3.895 1.604\"\n />\n </svg>\n);\nexport default SvgSearch;\n\n"],"names":["SvgHome$1","props","_jsx","_objectSpread","xmlns","width","height","fill","viewBox","children","d","SvgLanguage$1","SvgSearch$1"],"mappings":"kjCACA,IAeAA,EAfgB,SAACC,GAAK,OACpBC,EAAA,MAAAC,EAAAA,EAAA,CACEC,MAAM,6BACNC,MAAM,MACNC,OAAO,MACPC,KAAK,OACLC,QAAQ,aACJP,GAAK,GAAA,CAAAQ,SAETP,EAAA,OAAA,CACEK,KAAK,UACLG,EAAE,yIAEA,ECERC,EAfoB,SAACV,GAAK,OACxBC,EAAA,MAAAC,EAAAA,EAAA,CACEC,MAAM,6BACNC,MAAM,MACNC,OAAO,MACPC,KAAK,OACLC,QAAQ,aACJP,GAAK,GAAA,CAAAQ,SAETP,EAAA,OAAA,CACEK,KAAK,UACLG,EAAE,g4CAEA,ECERE,EAfkB,SAACX,GAAK,OACtBC,EAAA,MAAAC,EAAAA,EAAA,CACEC,MAAM,6BACNC,MAAM,MACNC,OAAO,MACPC,KAAK,OACLC,QAAQ,aACJP,GAAK,GAAA,CAAAQ,SAETP,EAAA,OAAA,CACEK,KAAK,UACLG,EAAE,yRAEA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("react/jsx-runtime");function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var i=function(t){return e.jsx("svg",n(n({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},t),{},{children:e.jsx("path",{fill:"#2F2F2F",d:"M4.928 20.643h3.143v-7.857h7.857v7.857h3.143V9.25L12 3.946 4.928 9.25zM2.571 23V8.071L12 1l9.428 7.071V23h-7.857v-7.857h-3.143V23z"})}))},o=function(t){return e.jsx("svg",n(n({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},t),{},{children:e.jsx("path",{fill:"#2F2F2F",d:"M12 23q-2.255 0-4.262-.866a11.2 11.2 0 0 1-3.507-2.365q-1.498-1.5-2.365-3.506A10.6 10.6 0 0 1 1 12q0-2.283.866-4.276A11.2 11.2 0 0 1 4.231 4.23q1.5-1.498 3.507-2.365A10.6 10.6 0 0 1 12 1q2.283 0 4.276.866a11.2 11.2 0 0 1 3.493 2.365q1.498 1.5 2.365 3.493Q23 9.717 23 12q0 2.255-.866 4.262a11.2 11.2 0 0 1-2.365 3.507 11.2 11.2 0 0 1-3.493 2.365Q14.283 23 12 23m0-2.255q.716-.99 1.238-2.062.522-1.073.852-2.283H9.91q.33 1.21.852 2.283.523 1.072 1.238 2.062m-2.86-.44a15 15 0 0 1-.866-1.884 16 16 0 0 1-.619-2.021H4.41a9.1 9.1 0 0 0 1.994 2.393 7.9 7.9 0 0 0 2.736 1.512m5.72 0a7.9 7.9 0 0 0 2.736-1.512A9.1 9.1 0 0 0 19.59 16.4h-3.245q-.247 1.045-.619 2.021-.37.977-.866 1.884M3.475 14.2h3.74A14.526 14.526 0 0 1 7.05 12a14.5 14.5 0 0 1 .165-2.2h-3.74q-.137.55-.206 1.086A9 9 0 0 0 3.2 12a8.8 8.8 0 0 0 .275 2.2m5.94 0h5.17q.082-.55.124-1.086.04-.537.041-1.114a14.5 14.5 0 0 0-.165-2.2h-5.17q-.082.55-.124 1.086A15 15 0 0 0 9.25 12a14.5 14.5 0 0 0 .165 2.2m7.37 0h3.74q.137-.55.206-1.086A9 9 0 0 0 20.8 12a8.8 8.8 0 0 0-.275-2.2h-3.74q.082.55.124 1.086.04.537.041 1.114a14.5 14.5 0 0 1-.165 2.2m-.44-6.6h3.245a9.1 9.1 0 0 0-1.994-2.392 7.9 7.9 0 0 0-2.736-1.513q.495.907.866 1.884.372.975.619 2.021m-6.435 0h4.18a13 13 0 0 0-.852-2.282A14 14 0 0 0 12 3.254a14 14 0 0 0-1.238 2.063A13 13 0 0 0 9.91 7.6m-5.5 0h3.245q.247-1.045.619-2.021.37-.976.866-1.884a7.9 7.9 0 0 0-2.736 1.512A9.1 9.1 0 0 0 4.41 7.6"})}))},a=function(t){return e.jsx("svg",n(n({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},t),{},{children:e.jsx("path",{fill:"#2F2F2F",d:"m21.289 23-7.7-7.7a7.45 7.45 0 0 1-4.644 1.589q-3.33 0-5.638-2.307T1 8.944t2.307-5.637T8.944 1q3.33 0 5.638 2.307t2.307 5.637A7.45 7.45 0 0 1 15.3 13.59l7.7 7.7zM8.944 14.444q2.292 0 3.896-1.604t1.604-3.896T12.84 5.05 8.944 3.444 5.05 5.05 3.444 8.944 5.05 12.84t3.895 1.604"})}))};exports.Home=i,exports.Language=o,exports.Search=a;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/icons/Home.jsx","../../src/icons/Language.jsx","../../src/icons/Search.jsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgHome = (props) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <path\n fill=\"#2F2F2F\"\n d=\"M4.928 20.643h3.143v-7.857h7.857v7.857h3.143V9.25L12 3.946 4.928 9.25zM2.571 23V8.071L12 1l9.428 7.071V23h-7.857v-7.857h-3.143V23z\"\n />\n </svg>\n);\nexport default SvgHome;\n\n","import * as React from \"react\";\nconst SvgLanguage = (props) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <path\n fill=\"#2F2F2F\"\n d=\"M12 23q-2.255 0-4.262-.866a11.2 11.2 0 0 1-3.507-2.365q-1.498-1.5-2.365-3.506A10.6 10.6 0 0 1 1 12q0-2.283.866-4.276A11.2 11.2 0 0 1 4.231 4.23q1.5-1.498 3.507-2.365A10.6 10.6 0 0 1 12 1q2.283 0 4.276.866a11.2 11.2 0 0 1 3.493 2.365q1.498 1.5 2.365 3.493Q23 9.717 23 12q0 2.255-.866 4.262a11.2 11.2 0 0 1-2.365 3.507 11.2 11.2 0 0 1-3.493 2.365Q14.283 23 12 23m0-2.255q.716-.99 1.238-2.062.522-1.073.852-2.283H9.91q.33 1.21.852 2.283.523 1.072 1.238 2.062m-2.86-.44a15 15 0 0 1-.866-1.884 16 16 0 0 1-.619-2.021H4.41a9.1 9.1 0 0 0 1.994 2.393 7.9 7.9 0 0 0 2.736 1.512m5.72 0a7.9 7.9 0 0 0 2.736-1.512A9.1 9.1 0 0 0 19.59 16.4h-3.245q-.247 1.045-.619 2.021-.37.977-.866 1.884M3.475 14.2h3.74A14.526 14.526 0 0 1 7.05 12a14.5 14.5 0 0 1 .165-2.2h-3.74q-.137.55-.206 1.086A9 9 0 0 0 3.2 12a8.8 8.8 0 0 0 .275 2.2m5.94 0h5.17q.082-.55.124-1.086.04-.537.041-1.114a14.5 14.5 0 0 0-.165-2.2h-5.17q-.082.55-.124 1.086A15 15 0 0 0 9.25 12a14.5 14.5 0 0 0 .165 2.2m7.37 0h3.74q.137-.55.206-1.086A9 9 0 0 0 20.8 12a8.8 8.8 0 0 0-.275-2.2h-3.74q.082.55.124 1.086.04.537.041 1.114a14.5 14.5 0 0 1-.165 2.2m-.44-6.6h3.245a9.1 9.1 0 0 0-1.994-2.392 7.9 7.9 0 0 0-2.736-1.513q.495.907.866 1.884.372.975.619 2.021m-6.435 0h4.18a13 13 0 0 0-.852-2.282A14 14 0 0 0 12 3.254a14 14 0 0 0-1.238 2.063A13 13 0 0 0 9.91 7.6m-5.5 0h3.245q.247-1.045.619-2.021.37-.976.866-1.884a7.9 7.9 0 0 0-2.736 1.512A9.1 9.1 0 0 0 4.41 7.6\"\n />\n </svg>\n);\nexport default SvgLanguage;\n\n","import * as React from \"react\";\nconst SvgSearch = (props) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n {...props}\n >\n <path\n fill=\"#2F2F2F\"\n d=\"m21.289 23-7.7-7.7a7.45 7.45 0 0 1-4.644 1.589q-3.33 0-5.638-2.307T1 8.944t2.307-5.637T8.944 1q3.33 0 5.638 2.307t2.307 5.637A7.45 7.45 0 0 1 15.3 13.59l7.7 7.7zM8.944 14.444q2.292 0 3.896-1.604t1.604-3.896T12.84 5.05 8.944 3.444 5.05 5.05 3.444 8.944 5.05 12.84t3.895 1.604\"\n />\n </svg>\n);\nexport default SvgSearch;\n\n"],"names":["SvgHome$1","props","_jsx","_objectSpread","xmlns","width","height","fill","viewBox","children","jsx","d","SvgLanguage$1","SvgSearch$1"],"mappings":"onCACA,IAeAA,EAfgB,SAACC,GAAK,OACpBC,MAAA,MAAAC,EAAAA,EAAA,CACEC,MAAM,6BACNC,MAAM,MACNC,OAAO,MACPC,KAAK,OACLC,QAAQ,aACJP,GAAK,GAAA,CAAAQ,SAETP,EAAAQ,IAAA,OAAA,CACEH,KAAK,UACLI,EAAE,yIAEA,ECERC,EAfoB,SAACX,GAAK,OACxBC,MAAA,MAAAC,EAAAA,EAAA,CACEC,MAAM,6BACNC,MAAM,MACNC,OAAO,MACPC,KAAK,OACLC,QAAQ,aACJP,GAAK,GAAA,CAAAQ,SAETP,EAAAQ,IAAA,OAAA,CACEH,KAAK,UACLI,EAAE,g4CAEA,ECERE,EAfkB,SAACZ,GAAK,OACtBC,MAAA,MAAAC,EAAAA,EAAA,CACEC,MAAM,6BACNC,MAAM,MACNC,OAAO,MACPC,KAAK,OACLC,QAAQ,aACJP,GAAK,GAAA,CAAAQ,SAETP,EAAAQ,IAAA,OAAA,CACEH,KAAK,UACLI,EAAE,yRAEA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehaul/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Core UI components library designed and developed by OneHaul",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.esm.js",
|
|
10
|
+
"require": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./icons": {
|
|
13
|
+
"import": "./dist/icons/index.esm.js",
|
|
14
|
+
"require": "./dist/icons/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
7
17
|
"files": [
|
|
8
18
|
"dist",
|
|
9
19
|
"README.md"
|
|
@@ -14,7 +24,8 @@
|
|
|
14
24
|
"dev": "rollup -c -w",
|
|
15
25
|
"prepublishOnly": "npm run build",
|
|
16
26
|
"storybook": "storybook dev -p 6006",
|
|
17
|
-
"build-storybook": "storybook build"
|
|
27
|
+
"build-storybook": "storybook build",
|
|
28
|
+
"build:icons": "node generate-icons.js"
|
|
18
29
|
},
|
|
19
30
|
"peerDependencies": {
|
|
20
31
|
"antd": "^5.0.0",
|
|
@@ -39,6 +50,7 @@
|
|
|
39
50
|
"@storybook/react": "^8.6.12",
|
|
40
51
|
"@storybook/react-vite": "^8.6.12",
|
|
41
52
|
"@storybook/test": "^8.6.12",
|
|
53
|
+
"@svgr/cli": "^8.1.0",
|
|
42
54
|
"antd": "^5.24.8",
|
|
43
55
|
"prop-types": "^15.8.1",
|
|
44
56
|
"react": "^18.2.0",
|