@noxickon/onyx 1.2.3 → 2.0.0

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/dist/onyx.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { O as x, a as O, b as e, c as t, d as o, e as r, f as i, g as n, K as l, N as p, X as d, h as T, p as g, i as u, j as c, Y as S, L as D, k as b, l as m, M as F, Z as I, m as C, n as k, _ as L, $ as P, o as v, q as w, P as A, Q as B, r as f, s as h, t as N, T as y, U as E, v as H, w as J, x as R, y as U, z as j, A as q, B as z, V as G, C as K, D as M, R as Q, W as V, S as W, E as X, H as Y, F as Z, I as _, J as $, u as aa, G as sa } from "./chunks/ui-BziwOqvy.js";
1
+ import { O as x, a as O, b as e, c as t, d as o, e as r, f as i, g as n, K as l, N as p, X as d, h as T, p as g, i as u, j as c, Y as S, L as D, k as b, l as m, M as F, Z as I, m as C, n as k, _ as L, $ as P, o as v, q as w, P as A, Q as B, r as f, s as h, t as N, T as y, U as E, v as H, w as J, x as R, y as U, z as j, A as q, B as z, V as G, C as K, D as M, R as Q, W as V, S as W, E as X, H as Y, F as Z, I as _, J as $, u as aa, G as sa } from "./chunks/ui-CbFPvWIc.js";
2
2
  export {
3
3
  x as OxAccordion,
4
4
  O as OxAlert,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../chunks/ui-iA7W3F7H.js"),s=require("react/jsx-runtime"),H=require("../chunks/hooks-UiKjBucd.js"),X=require("@apollo/client");require("react");const Y=require("../chunks/query-CIsrxNi-.js"),Z=X.gql`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../chunks/ui-9efLp51u.js"),s=require("react/jsx-runtime"),H=require("../chunks/hooks-UiKjBucd.js"),X=require("@apollo/client");require("react");const Y=require("../chunks/query-CIsrxNi-.js"),Z=X.gql`
2
2
  mutation Login($input: LoginInput!) {
3
3
  login(input: $input) {
4
4
  success
@@ -1,4 +1,4 @@
1
- import { a0 as Z, R as r, M as H, Y as ee, e as te, a1 as se, _ as K } from "../chunks/ui-BziwOqvy.js";
1
+ import { a0 as Z, R as r, M as H, Y as ee, e as te, a1 as se, _ as K } from "../chunks/ui-CbFPvWIc.js";
2
2
  import { jsx as s, jsxs as o } from "react/jsx-runtime";
3
3
  import { d as ie, q as ae } from "../chunks/hooks-CUNBk2tZ.js";
4
4
  import { gql as re } from "@apollo/client";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../chunks/ui-iA7W3F7H.js");const d=require("../chunks/useAuth-DxoDe3YA.js"),a=require("../chunks/hooks-UiKjBucd.js"),g=u=>{const{children:i,onAuthenticated:n,onLoading:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?r:s?o:i},h=u=>{const{children:i,onLoading:n,onUnauthenticated:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?o:s?i:r},O=u=>{const{children:i,onLoading:n,onUnauthorized:t,roles:o}=u,r=n===void 0?null:n,s=t===void 0?null:t,e=o===void 0?["admin"]:o,{loading:l,user:c}=d.useOxAuth();return l?r:!c||a.isEmpty(e)||!e.includes(c.role)?s:i};exports.OxGuestRoute=g;exports.OxProtectedRoute=h;exports.OxRoleRoute=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../chunks/ui-9efLp51u.js");const d=require("../chunks/useAuth-DxoDe3YA.js"),a=require("../chunks/hooks-UiKjBucd.js"),g=u=>{const{children:i,onAuthenticated:n,onLoading:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?r:s?o:i},h=u=>{const{children:i,onLoading:n,onUnauthenticated:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?o:s?i:r},O=u=>{const{children:i,onLoading:n,onUnauthorized:t,roles:o}=u,r=n===void 0?null:n,s=t===void 0?null:t,e=o===void 0?["admin"]:o,{loading:l,user:c}=d.useOxAuth();return l?r:!c||a.isEmpty(e)||!e.includes(c.role)?s:i};exports.OxGuestRoute=g;exports.OxProtectedRoute=h;exports.OxRoleRoute=O;
@@ -1,4 +1,4 @@
1
- import "../chunks/ui-BziwOqvy.js";
1
+ import "../chunks/ui-CbFPvWIc.js";
2
2
  import { u as s } from "../chunks/useAuth-BFgXzu6Q.js";
3
3
  import { v as a } from "../chunks/hooks-CUNBk2tZ.js";
4
4
  const v = (e) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/ui-iA7W3F7H.js");exports.buildMailTo=r.buildMailTo;exports.buildUrl=r.buildUrl;exports.cn=r.cn;exports.copyToClipboard=r.copyToClipboard;exports.createId=r.createId;exports.formatBytes=r.formatBytes;exports.formatCurrency=r.formatCurrency;exports.formatDate=r.formatDate;exports.formatNumber=r.formatNumber;exports.formatTimestamp=r.formatTimestamp;exports.generateRandomString=r.generateRandomString;exports.handleFormErrors=r.handleFormErrors;exports.handleGraphQLFormErrors=r.handleGraphQLFormErrors;exports.hasDataSlot=r.hasDataSlot;exports.parseGraphQLErrors=r.parseGraphQLErrors;exports.scrollToElement=r.scrollToElement;exports.validateEmail=r.validateEmail;exports.validatePhone=r.validatePhone;exports.validateUrl=r.validateUrl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/ui-9efLp51u.js");exports.buildMailTo=r.buildMailTo;exports.buildUrl=r.buildUrl;exports.cn=r.cn;exports.copyToClipboard=r.copyToClipboard;exports.createId=r.createId;exports.formatBytes=r.formatBytes;exports.formatCurrency=r.formatCurrency;exports.formatDate=r.formatDate;exports.formatNumber=r.formatNumber;exports.formatTimestamp=r.formatTimestamp;exports.generateRandomString=r.generateRandomString;exports.handleFormErrors=r.handleFormErrors;exports.handleGraphQLFormErrors=r.handleGraphQLFormErrors;exports.hasDataSlot=r.hasDataSlot;exports.parseGraphQLErrors=r.parseGraphQLErrors;exports.scrollToElement=r.scrollToElement;exports.validateEmail=r.validateEmail;exports.validatePhone=r.validatePhone;exports.validateUrl=r.validateUrl;
@@ -1,4 +1,4 @@
1
- import { a5 as s, a4 as e, a0 as o, a6 as t, a7 as l, ab as m, ac as d, ad as i, ae as n, af as f, a8 as h, a9 as p, a1 as c, ag as b, aa as E, ah as u, ai as T, ak as g, aj as v } from "../chunks/ui-BziwOqvy.js";
1
+ import { a6 as s, a5 as e, a0 as o, a7 as t, a8 as l, ac as m, ad as d, ae as i, af as n, ag as f, a9 as h, aa as p, a1 as c, ah as b, ab as E, ai as u, aj as T, al as g, ak as v } from "../chunks/ui-CbFPvWIc.js";
2
2
  export {
3
3
  s as buildMailTo,
4
4
  e as buildUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxickon/onyx",
3
- "version": "1.2.3",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/onyx.umd.js",
6
6
  "module": "./dist/onyx.es.js",
@@ -48,6 +48,7 @@
48
48
  "scripts": {
49
49
  "dev": "storybook dev -p 6006",
50
50
  "build": "tsc -b && vite build",
51
+ "build:analyze": "ANALYZE=true npm run build",
51
52
  "prepublishOnly": " npm run build",
52
53
  "publish:dev": "npm version prerelease --preid=dev --no-git-tag-version && npm publish --tag dev",
53
54
  "lint": "eslint .",
@@ -63,12 +64,12 @@
63
64
  },
64
65
  "peerDependencies": {
65
66
  "@apollo/client": "^4.0.0",
67
+ "@mdi/js": "^7.0.0",
66
68
  "graphql": "^16.0.0",
67
69
  "react": "^19.0.0",
68
70
  "react-dom": "^19.0.0"
69
71
  },
70
72
  "dependencies": {
71
- "@mdi/js": "^7.4.47",
72
73
  "@mdi/react": "^1.6.1",
73
74
  "@tailwindcss/vite": "^4.1.11",
74
75
  "axios": "^1.11.0",
@@ -85,6 +86,7 @@
85
86
  "@apollo/client": "^4.0.0",
86
87
  "@chromatic-com/storybook": "^4.1.1",
87
88
  "@eslint/js": "^9.32.0",
89
+ "@mdi/js": "^7.4.47",
88
90
  "@storybook/addon-docs": "^9.1.10",
89
91
  "@storybook/addon-onboarding": "^9.1.10",
90
92
  "@storybook/addon-vitest": "^9.1.10",
@@ -116,6 +118,7 @@
116
118
  "prettier-plugin-tailwindcss": "^0.7.1",
117
119
  "react": "^19.1.1",
118
120
  "react-dom": "^19.1.1",
121
+ "rollup-plugin-visualizer": "^6.0.5",
119
122
  "storybook": "^9.1.10",
120
123
  "typescript": "^5.9.2",
121
124
  "typescript-eslint": "^8.38.0",