@carlonicora/nextjs-jsonapi 1.139.4 → 1.140.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.
@@ -8625,7 +8625,15 @@ import { useCallback as useCallback20, useEffect as useEffect24, useRef as useRe
8625
8625
  import { jsx as jsx69 } from "react/jsx-runtime";
8626
8626
  function SectionHeader({ level = 3, className, children, ...props }) {
8627
8627
  const Tag = level === 2 ? "h2" : "h3";
8628
- return /* @__PURE__ */ jsx69(Tag, { "data-slot": "section-header", className: cn("text-lg font-semibold", className), ...props, children });
8628
+ return /* @__PURE__ */ jsx69(
8629
+ Tag,
8630
+ {
8631
+ "data-slot": "section-header",
8632
+ className: cn(level === 2 ? "text-xl font-semibold" : "text-lg font-semibold", className),
8633
+ ...props,
8634
+ children
8635
+ }
8636
+ );
8629
8637
  }
8630
8638
  __name(SectionHeader, "SectionHeader");
8631
8639
 
@@ -10120,7 +10128,7 @@ import { useRef as useRef17 } from "react";
10120
10128
  import dynamic from "next/dynamic";
10121
10129
  import React17 from "react";
10122
10130
  import { jsx as jsx86 } from "react/jsx-runtime";
10123
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-YWEXTQMH.mjs"), {
10131
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-AXAC3W24.mjs"), {
10124
10132
  ssr: false
10125
10133
  });
10126
10134
  var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -14986,7 +14994,7 @@ function RoundPageContainer({
14986
14994
  }
14987
14995
  ),
14988
14996
  /* @__PURE__ */ jsxs94(
14989
- "div",
14997
+ "main",
14990
14998
  {
14991
14999
  "data-testid": testId,
14992
15000
  className: cn(
@@ -15021,7 +15029,7 @@ function RoundPageContainer({
15021
15029
  }
15022
15030
  ),
15023
15031
  /* @__PURE__ */ jsxs94(
15024
- "div",
15032
+ "main",
15025
15033
  {
15026
15034
  "data-testid": testId,
15027
15035
  className: cn(
@@ -16639,12 +16647,18 @@ function ContentTableSearch({ data }) {
16639
16647
  {
16640
16648
  className: `relative flex h-6 items-center text-xs font-normal transition-all duration-300 ease-in-out ${isExpanded ? "w-64" : "w-6"}`,
16641
16649
  children: [
16642
- /* @__PURE__ */ jsx179(
16643
- Search,
16650
+ isExpanded ? /* @__PURE__ */ jsx179(Search, { "aria-hidden": true, className: "text-muted-foreground absolute top-1 left-1 size-4" }) : /* @__PURE__ */ jsxs101(
16651
+ Button,
16644
16652
  {
16645
16653
  "data-testid": "content-table-search-trigger",
16646
- className: `absolute top-1 left-1 h-4 w-4 transition-colors ${isExpanded ? "text-muted-foreground" : "text-muted-foreground hover:text-foreground cursor-pointer"}`,
16647
- onClick: handleSearchIconClick
16654
+ variant: "ghost",
16655
+ size: "icon-sm",
16656
+ className: "text-muted-foreground hover:text-foreground absolute top-0 left-0",
16657
+ onClick: handleSearchIconClick,
16658
+ children: [
16659
+ /* @__PURE__ */ jsx179(Search, { className: "size-4" }),
16660
+ /* @__PURE__ */ jsx179("span", { className: "sr-only", children: t(`ui.search.button`) })
16661
+ ]
16648
16662
  }
16649
16663
  ),
16650
16664
  isExpanded && /* @__PURE__ */ jsx179(
@@ -16667,11 +16681,17 @@ function ContentTableSearch({ data }) {
16667
16681
  }
16668
16682
  ),
16669
16683
  isExpanded && isSearching && /* @__PURE__ */ jsx179(RefreshCw, { className: "text-muted-foreground absolute top-1 right-1 h-4 w-4 animate-spin" }),
16670
- isExpanded && !isSearching && searchTermRef.current && /* @__PURE__ */ jsx179(
16671
- X3,
16684
+ isExpanded && !isSearching && searchTermRef.current && /* @__PURE__ */ jsxs101(
16685
+ Button,
16672
16686
  {
16673
- className: "text-muted-foreground hover:text-foreground absolute top-1 right-1 h-4 w-4 cursor-pointer",
16674
- onClick: handleClear
16687
+ variant: "ghost",
16688
+ size: "icon-sm",
16689
+ className: "text-muted-foreground hover:text-foreground absolute top-0 right-0",
16690
+ onClick: handleClear,
16691
+ children: [
16692
+ /* @__PURE__ */ jsx179(X3, { className: "size-4" }),
16693
+ /* @__PURE__ */ jsx179("span", { className: "sr-only", children: t(`ui.buttons.clear`) })
16694
+ ]
16675
16695
  }
16676
16696
  )
16677
16697
  ]
@@ -23894,4 +23914,4 @@ export {
23894
23914
  useOAuthClients,
23895
23915
  useOAuthClient
23896
23916
  };
23897
- //# sourceMappingURL=chunk-A5ZPKBML.mjs.map
23917
+ //# sourceMappingURL=chunk-B5YZFCPE.mjs.map