@wso2/am-core-ui 0.0.1 → 0.0.2

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.
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as j } from "react/jsx-runtime";
2
2
  import { useCallback as z, useMemo as R, useEffect as F, useState as W } from "react";
3
3
  import { Alert as T, Box as S, Collapse as B, Button as A, Form as y, TextField as L, Stack as M, CircularProgress as G, Typography as O, Select as q, MenuItem as D } from "@wso2/oxygen-ui";
4
4
  import { useParams as V, useNavigate as _, generatePath as k } from "react-router-dom";
5
- import { o as H, s as w, t as $, v as J, f as K, x as Q, y as U, g as I, P as X } from "./index-DXT-m_eH.js";
5
+ import { o as H, s as w, v as $, w as J, f as K, y as Q, z as U, g as I, P as X } from "./index-DbDfhpO7.js";
6
6
  import { c as Y } from "react/compiler-runtime";
7
7
  import "@tanstack/react-query";
8
8
  import { Link as Z, PackagePlus as ee, FolderPlus as te } from "@wso2/oxygen-ui-icons-react";
@@ -31,9 +31,9 @@ const re = H({
31
31
  e[7] !== s ? (h = /* @__PURE__ */ r(A, { variant: "outlined", color: "primary", size: "medium", onClick: s, children: "Cancel" }), e[7] = s, e[8] = h) : h = e[8];
32
32
  let p;
33
33
  e[9] !== l ? (p = l ? /* @__PURE__ */ r(Z, { size: 16 }) : /* @__PURE__ */ r(ee, { size: 16 }), e[9] = l, e[10] = p) : p = e[10];
34
- const x = N || C, v = l ? "Register" : "Create";
34
+ const v = N || C, x = l ? "Register" : "Create";
35
35
  let f;
36
- e[11] !== c || e[12] !== p || e[13] !== x || e[14] !== v ? (f = /* @__PURE__ */ r(A, { variant: "contained", color: "primary", size: "medium", startIcon: p, onClick: c, disabled: x, children: v }), e[11] = c, e[12] = p, e[13] = x, e[14] = v, e[15] = f) : f = e[15];
36
+ e[11] !== c || e[12] !== p || e[13] !== v || e[14] !== x ? (f = /* @__PURE__ */ r(A, { variant: "contained", color: "primary", size: "medium", startIcon: p, onClick: c, disabled: v, children: x }), e[11] = c, e[12] = p, e[13] = v, e[14] = x, e[15] = f) : f = e[15];
37
37
  let b;
38
38
  e[16] !== f || e[17] !== h ? (b = /* @__PURE__ */ j(S, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
39
39
  h,
@@ -143,7 +143,7 @@ const ae = ({
143
143
  i(k(I.children.org.path, {
144
144
  orgId: e ?? ""
145
145
  }));
146
- }, [i, e]), [h, p] = W({}), x = z(() => {
146
+ }, [i, e]), [h, p] = W({}), v = z(() => {
147
147
  if (g(n))
148
148
  p({});
149
149
  else {
@@ -162,8 +162,8 @@ const ae = ({
162
162
  projectId: n.name
163
163
  }));
164
164
  },
165
- onError: (v) => {
166
- console.error("Failed to create project:", v);
165
+ onError: (x) => {
166
+ console.error("Failed to create project:", x);
167
167
  }
168
168
  });
169
169
  }, [n, g, o, i, t.orgName, l, d, s]);
@@ -174,7 +174,7 @@ const ae = ({
174
174
  !!a && /* @__PURE__ */ r(T, { severity: "error", sx: {
175
175
  mt: 2
176
176
  }, children: a instanceof Error ? a.message : "Failed to create project" }),
177
- /* @__PURE__ */ r(ne, { lastSubmittedValidationErrors: h, isPending: m, onCancel: u, onSubmit: x, isNameEmpty: !n.name.trim(), mode: "deploy" })
177
+ /* @__PURE__ */ r(ne, { lastSubmittedValidationErrors: h, isPending: m, onCancel: u, onSubmit: v, isNameEmpty: !n.name.trim(), mode: "deploy" })
178
178
  ] }) });
179
179
  }, ge = {
180
180
  title: "Add New Project",
@@ -1,6 +1,6 @@
1
1
  import * as nt from "react";
2
2
  import Za, { useState as R8, useEffect as dl, useRef as T8 } from "react";
3
- import { z as Qe, A as I8, C as Js, F as bn, H as En, J as un, K as k8, L as ef, M as tf, N as P8, O as bs, Q as Ba, R as sS, S as N8 } from "./index-DXT-m_eH.js";
3
+ import { A as Qe, C as I8, F as Js, H as bn, J as En, K as un, L as k8, M as ef, N as tf, O as P8, Q as bs, R as Ba, S as sS, T as N8 } from "./index-DbDfhpO7.js";
4
4
  import * as j8 from "react-dom";
5
5
  function TD(t, e) {
6
6
  for (var r = 0; r < e.length; r++) {