@omnibase/shadcn 0.5.4 → 0.5.5

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/index.cjs CHANGED
@@ -1935,61 +1935,11 @@ function RoleCreator({
1935
1935
  ]
1936
1936
  },
1937
1937
  resource.id
1938
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "mt-3 p-4 border-2 border-dashed rounded-lg text-center", children: [
1939
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "text-sm text-muted-foreground", children: [
1940
- "No ",
1941
- namespace.namespace.toLowerCase(),
1942
- " resources available"
1943
- ] }),
1944
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "text-xs text-muted-foreground mt-1", children: [
1945
- "Use wildcard permissions (e.g., ",
1946
- namespaceLower,
1947
- ":*#permission) for all resources"
1948
- ] })
1949
- ] }),
1950
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "mt-4 space-y-2", children: [
1951
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Label, { className: "text-sm font-medium", children: [
1952
- "Wildcard Permissions (All ",
1953
- namespace.namespace,
1954
- "s)"
1955
- ] }),
1956
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-3", children: namespace.relations.map((relation) => {
1957
- const permissionString = buildPermissionString(
1958
- namespace.namespace,
1959
- relation,
1960
- "*"
1961
- );
1962
- const isChecked = selectedPermissions.has(permissionString);
1963
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1964
- "div",
1965
- {
1966
- className: "flex items-center space-x-2",
1967
- children: [
1968
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1969
- Checkbox,
1970
- {
1971
- id: permissionString,
1972
- checked: isChecked,
1973
- onCheckedChange: () => togglePermission(permissionString)
1974
- }
1975
- ),
1976
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1977
- Label,
1978
- {
1979
- htmlFor: permissionString,
1980
- className: "text-sm font-normal cursor-pointer",
1981
- children: [
1982
- relation.replace(/_/g, " "),
1983
- " (all)"
1984
- ]
1985
- }
1986
- )
1987
- ]
1988
- },
1989
- permissionString
1990
- );
1991
- }) })
1992
- ] })
1938
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "mt-3 p-4 border-2 border-dashed rounded-lg text-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "text-sm text-muted-foreground", children: [
1939
+ "No ",
1940
+ namespace.namespace.toLowerCase(),
1941
+ " resources available"
1942
+ ] }) })
1993
1943
  ] }) }, namespace.id);
1994
1944
  })
1995
1945
  ] })
package/dist/index.js CHANGED
@@ -1883,61 +1883,11 @@ function RoleCreator({
1883
1883
  ]
1884
1884
  },
1885
1885
  resource.id
1886
- )) }) : /* @__PURE__ */ jsxs15("div", { className: "mt-3 p-4 border-2 border-dashed rounded-lg text-center", children: [
1887
- /* @__PURE__ */ jsxs15("p", { className: "text-sm text-muted-foreground", children: [
1888
- "No ",
1889
- namespace.namespace.toLowerCase(),
1890
- " resources available"
1891
- ] }),
1892
- /* @__PURE__ */ jsxs15("p", { className: "text-xs text-muted-foreground mt-1", children: [
1893
- "Use wildcard permissions (e.g., ",
1894
- namespaceLower,
1895
- ":*#permission) for all resources"
1896
- ] })
1897
- ] }),
1898
- /* @__PURE__ */ jsxs15("div", { className: "mt-4 space-y-2", children: [
1899
- /* @__PURE__ */ jsxs15(Label, { className: "text-sm font-medium", children: [
1900
- "Wildcard Permissions (All ",
1901
- namespace.namespace,
1902
- "s)"
1903
- ] }),
1904
- /* @__PURE__ */ jsx26("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-3", children: namespace.relations.map((relation) => {
1905
- const permissionString = buildPermissionString(
1906
- namespace.namespace,
1907
- relation,
1908
- "*"
1909
- );
1910
- const isChecked = selectedPermissions.has(permissionString);
1911
- return /* @__PURE__ */ jsxs15(
1912
- "div",
1913
- {
1914
- className: "flex items-center space-x-2",
1915
- children: [
1916
- /* @__PURE__ */ jsx26(
1917
- Checkbox,
1918
- {
1919
- id: permissionString,
1920
- checked: isChecked,
1921
- onCheckedChange: () => togglePermission(permissionString)
1922
- }
1923
- ),
1924
- /* @__PURE__ */ jsxs15(
1925
- Label,
1926
- {
1927
- htmlFor: permissionString,
1928
- className: "text-sm font-normal cursor-pointer",
1929
- children: [
1930
- relation.replace(/_/g, " "),
1931
- " (all)"
1932
- ]
1933
- }
1934
- )
1935
- ]
1936
- },
1937
- permissionString
1938
- );
1939
- }) })
1940
- ] })
1886
+ )) }) : /* @__PURE__ */ jsx26("div", { className: "mt-3 p-4 border-2 border-dashed rounded-lg text-center", children: /* @__PURE__ */ jsxs15("p", { className: "text-sm text-muted-foreground", children: [
1887
+ "No ",
1888
+ namespace.namespace.toLowerCase(),
1889
+ " resources available"
1890
+ ] }) })
1941
1891
  ] }) }, namespace.id);
1942
1892
  })
1943
1893
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnibase/shadcn",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "OmniBase ShadCN UI Package",
5
5
  "type": "module",
6
6
  "exports": {