@cloudvoyant/helical-react 0.21.0 → 0.21.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.
package/dist/index.cjs CHANGED
@@ -856,8 +856,34 @@ function Scroll({
856
856
  var import_factory16 = require("@ark-ui/react/factory");
857
857
  var import_helical_ui23 = require("@cloudvoyant/helical-ui");
858
858
  var import_jsx_runtime23 = require("react/jsx-runtime");
859
- function Page({ variant = "default", className, children, ...props }) {
860
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_factory16.ark.div, { "data-slot": "page", className: (0, import_helical_ui23.cn)((0, import_helical_ui23.pageVariants)({ variant }), className), ...props, children });
859
+ function Page({
860
+ variant = "default",
861
+ paneId,
862
+ paneTitle,
863
+ paneDisabled,
864
+ paneOrder,
865
+ className,
866
+ children,
867
+ ...props
868
+ }) {
869
+ const pane = useOptionalPaneRegistration({
870
+ paneId,
871
+ paneTitle,
872
+ paneDisabled: paneDisabled ?? !paneId,
873
+ paneOrder,
874
+ defaultTitle: "Page"
875
+ });
876
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
877
+ import_factory16.ark.div,
878
+ {
879
+ ref: pane.ref,
880
+ "data-slot": "page",
881
+ ...pane.dataAttributes,
882
+ className: (0, import_helical_ui23.cn)((0, import_helical_ui23.pageVariants)({ variant }), className),
883
+ ...props,
884
+ children
885
+ }
886
+ );
861
887
  }
862
888
  function PageGutter({
863
889
  side = "left",
@@ -933,7 +959,7 @@ function PageSection({
933
959
  const pane = useOptionalPaneRegistration({
934
960
  paneId,
935
961
  paneTitle,
936
- paneDisabled,
962
+ paneDisabled: paneDisabled ?? !paneId,
937
963
  paneOrder,
938
964
  defaultTitle: "Section"
939
965
  });
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef, RefCallback } from 'react';
3
3
  import { HTMLArkProps } from '@ark-ui/react/factory';
4
- import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, WindowPaneRegistrationProps, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PageVariants, PagePaneRegistrationProps, PageGutterVariants, PageGutterContentVariants, SplitterPanelPaneRegistrationProps, SidebarPaneRegistrationProps, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, KbdProps as KbdProps$1, WhichKeyState, WhichKeyController, KeybindingPreset, KeymapMode, JumpAction, KeymapCommandContext, WhichKeyControllerOptions, WhichKeyNode, PaneProps as PaneProps$1, WhichKeyProps as WhichKeyProps$1, WhichKeyModeProps as WhichKeyModeProps$1, WhichKeyExplorerProps as WhichKeyExplorerProps$1, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
4
+ import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, WindowPaneRegistrationProps, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PagePaneRegistrationProps, PageVariants, PageGutterVariants, PageGutterContentVariants, SplitterPanelPaneRegistrationProps, SidebarPaneRegistrationProps, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, KbdProps as KbdProps$1, WhichKeyState, WhichKeyController, KeybindingPreset, KeymapMode, JumpAction, KeymapCommandContext, WhichKeyControllerOptions, WhichKeyNode, PaneProps as PaneProps$1, WhichKeyProps as WhichKeyProps$1, WhichKeyModeProps as WhichKeyModeProps$1, WhichKeyExplorerProps as WhichKeyExplorerProps$1, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
5
5
  export { EditorCounts, ImageUploadResult, JumpAction, JumpTarget, KeybindingPreset, KeymapCommandContext, KeymapExplorerEntry, KeymapHandler, KeymapMode, LinkPreviewAttributes, LinkPreviewFetcher, MentionItem, ModalEditorTarget, NavbarMenuDensity, NavbarMenuVariant, PaneRegistration, SlashCommandItem, UrlMentionAttributes, WhichKeyController, WhichKeyControllerOptions, WhichKeyNode, WhichKeyState, WhichKeyVariant, navbarMenuTriggerStyle } from '@cloudvoyant/helical-ui';
6
6
  import { ToggleRootProps, ToggleIndicatorProps } from '@ark-ui/react/toggle';
7
7
  import { TooltipRootProps, TooltipContentProps, TooltipRootProviderProps, TooltipTriggerProps, TooltipContent as TooltipContent$1 } from '@ark-ui/react/tooltip';
@@ -170,10 +170,10 @@ type ScrollProps = ScrollAreaRootProps & {
170
170
  };
171
171
  declare function Scroll({ className, orientation, variant, contentClassName, thumbClassName, viewportClassName, children, ...props }: ScrollProps): react.JSX.Element;
172
172
 
173
- type PageProps = HTMLArkProps<'div'> & {
173
+ type PageProps = HTMLArkProps<'div'> & PagePaneRegistrationProps & {
174
174
  variant?: PageVariants['variant'];
175
175
  };
176
- declare function Page({ variant, className, children, ...props }: PageProps): react.JSX.Element;
176
+ declare function Page({ variant, paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageProps): react.JSX.Element;
177
177
  type PageGutterProps = HTMLArkProps<'div'> & PagePaneRegistrationProps & {
178
178
  side?: PageGutterVariants['side'];
179
179
  align?: PageGutterContentVariants['align'];
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef, RefCallback } from 'react';
3
3
  import { HTMLArkProps } from '@ark-ui/react/factory';
4
- import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, WindowPaneRegistrationProps, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PageVariants, PagePaneRegistrationProps, PageGutterVariants, PageGutterContentVariants, SplitterPanelPaneRegistrationProps, SidebarPaneRegistrationProps, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, KbdProps as KbdProps$1, WhichKeyState, WhichKeyController, KeybindingPreset, KeymapMode, JumpAction, KeymapCommandContext, WhichKeyControllerOptions, WhichKeyNode, PaneProps as PaneProps$1, WhichKeyProps as WhichKeyProps$1, WhichKeyModeProps as WhichKeyModeProps$1, WhichKeyExplorerProps as WhichKeyExplorerProps$1, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
4
+ import { ButtonProps as ButtonProps$1, ToggleButtonProps as ToggleButtonProps$1, WindowPaneRegistrationProps, BadgeProps as BadgeProps$1, ItemProps as ItemProps$1, CardProps as CardProps$1, CardCoverProps as CardCoverProps$1, PagePaneRegistrationProps, PageVariants, PageGutterVariants, PageGutterContentVariants, SplitterPanelPaneRegistrationProps, SidebarPaneRegistrationProps, sidebarMenuButtonVariants, SidebarContextProps, TabsListVariants, NavbarVariant, NavbarDensity, NavbarMenuVariant, InputProps as InputProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1, SelectItemData, ComboboxItemVariants, MermaidProps as MermaidProps$1, NoticeProps as NoticeProps$1, FigureProps as FigureProps$1, RevealProps as RevealProps$1, PrevNextProps as PrevNextProps$1, LaTeXProps as LaTeXProps$1, CodeBlockProps as CodeBlockProps$1, LanguageTab, FileEntry, ManimProps as ManimProps$1, YouTubeProps as YouTubeProps$1, YouTubeChapter, ChartProps as ChartProps$1, MultipleChoiceQuestionData, NumericQuestionData, Question, SingleChoiceQuestionData, ProseVariants, ToggleGroupRootVariants, ListboxItemData, KbdProps as KbdProps$1, WhichKeyState, WhichKeyController, KeybindingPreset, KeymapMode, JumpAction, KeymapCommandContext, WhichKeyControllerOptions, WhichKeyNode, PaneProps as PaneProps$1, WhichKeyProps as WhichKeyProps$1, WhichKeyModeProps as WhichKeyModeProps$1, WhichKeyExplorerProps as WhichKeyExplorerProps$1, MentionItem, ImageUploadResult, LinkPreviewFetcher, EditorCounts, OverlayPlacementOptions } from '@cloudvoyant/helical-ui';
5
5
  export { EditorCounts, ImageUploadResult, JumpAction, JumpTarget, KeybindingPreset, KeymapCommandContext, KeymapExplorerEntry, KeymapHandler, KeymapMode, LinkPreviewAttributes, LinkPreviewFetcher, MentionItem, ModalEditorTarget, NavbarMenuDensity, NavbarMenuVariant, PaneRegistration, SlashCommandItem, UrlMentionAttributes, WhichKeyController, WhichKeyControllerOptions, WhichKeyNode, WhichKeyState, WhichKeyVariant, navbarMenuTriggerStyle } from '@cloudvoyant/helical-ui';
6
6
  import { ToggleRootProps, ToggleIndicatorProps } from '@ark-ui/react/toggle';
7
7
  import { TooltipRootProps, TooltipContentProps, TooltipRootProviderProps, TooltipTriggerProps, TooltipContent as TooltipContent$1 } from '@ark-ui/react/tooltip';
@@ -170,10 +170,10 @@ type ScrollProps = ScrollAreaRootProps & {
170
170
  };
171
171
  declare function Scroll({ className, orientation, variant, contentClassName, thumbClassName, viewportClassName, children, ...props }: ScrollProps): react.JSX.Element;
172
172
 
173
- type PageProps = HTMLArkProps<'div'> & {
173
+ type PageProps = HTMLArkProps<'div'> & PagePaneRegistrationProps & {
174
174
  variant?: PageVariants['variant'];
175
175
  };
176
- declare function Page({ variant, className, children, ...props }: PageProps): react.JSX.Element;
176
+ declare function Page({ variant, paneId, paneTitle, paneDisabled, paneOrder, className, children, ...props }: PageProps): react.JSX.Element;
177
177
  type PageGutterProps = HTMLArkProps<'div'> & PagePaneRegistrationProps & {
178
178
  side?: PageGutterVariants['side'];
179
179
  align?: PageGutterContentVariants['align'];
package/dist/index.js CHANGED
@@ -692,8 +692,34 @@ import {
692
692
  cn as cn22
693
693
  } from "@cloudvoyant/helical-ui";
694
694
  import { jsx as jsx23 } from "react/jsx-runtime";
695
- function Page({ variant = "default", className, children, ...props }) {
696
- return /* @__PURE__ */ jsx23(ark16.div, { "data-slot": "page", className: cn22(pageVariants({ variant }), className), ...props, children });
695
+ function Page({
696
+ variant = "default",
697
+ paneId,
698
+ paneTitle,
699
+ paneDisabled,
700
+ paneOrder,
701
+ className,
702
+ children,
703
+ ...props
704
+ }) {
705
+ const pane = useOptionalPaneRegistration({
706
+ paneId,
707
+ paneTitle,
708
+ paneDisabled: paneDisabled ?? !paneId,
709
+ paneOrder,
710
+ defaultTitle: "Page"
711
+ });
712
+ return /* @__PURE__ */ jsx23(
713
+ ark16.div,
714
+ {
715
+ ref: pane.ref,
716
+ "data-slot": "page",
717
+ ...pane.dataAttributes,
718
+ className: cn22(pageVariants({ variant }), className),
719
+ ...props,
720
+ children
721
+ }
722
+ );
697
723
  }
698
724
  function PageGutter({
699
725
  side = "left",
@@ -769,7 +795,7 @@ function PageSection({
769
795
  const pane = useOptionalPaneRegistration({
770
796
  paneId,
771
797
  paneTitle,
772
- paneDisabled,
798
+ paneDisabled: paneDisabled ?? !paneId,
773
799
  paneOrder,
774
800
  defaultTitle: "Section"
775
801
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudvoyant/helical-react",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "helical-ui React UI components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -50,7 +50,7 @@
50
50
  "@zag-js/dismissable": "1.43.1",
51
51
  "@zag-js/dom-query": "1.43.1",
52
52
  "lucide-react": "^1.32.0",
53
- "@cloudvoyant/helical-ui": "0.21.0"
53
+ "@cloudvoyant/helical-ui": "0.21.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/katex": "^0.16.8",