@skeletonlabs/skeleton-react 4.7.3 → 4.8.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/index.d.mts CHANGED
@@ -829,6 +829,18 @@ declare function NavigationGroup(props: NavigationGroupProps): react0.JSX.Elemen
829
829
  interface NavigationLabelProps extends PropsWithElement<'div'>, HTMLAttributes<'div'> {}
830
830
  declare function NavigationLabel(props: NavigationLabelProps): react0.JSX.Element;
831
831
  //#endregion
832
+ //#region src/components/navigation/anatomy/trigger.d.ts
833
+ interface NavigationTriggerProps extends PropsWithElement<'button'>, HTMLAttributes<'button'> {}
834
+ declare function NavigationTrigger(props: NavigationTriggerProps): react0.JSX.Element;
835
+ //#endregion
836
+ //#region src/components/navigation/anatomy/trigger-anchor.d.ts
837
+ interface NavigationTriggerAnchorProps extends PropsWithElement<'a'>, HTMLAttributes<'a'> {}
838
+ declare function NavigationTriggerAnchor(props: NavigationTriggerAnchorProps): react0.JSX.Element;
839
+ //#endregion
840
+ //#region src/components/navigation/anatomy/trigger-text.d.ts
841
+ interface NavigationTriggerTextProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
842
+ declare function NavigationTriggerText(props: NavigationTriggerTextProps): react0.JSX.Element;
843
+ //#endregion
832
844
  //#region src/components/navigation/modules/anatomy.d.ts
833
845
  declare const Navigation: typeof NavigationRoot & {
834
846
  Header: typeof NavigationHeader;
@@ -836,6 +848,9 @@ declare const Navigation: typeof NavigationRoot & {
836
848
  Group: typeof NavigationGroup;
837
849
  Label: typeof NavigationLabel;
838
850
  Menu: typeof NavigationMenu;
851
+ Trigger: typeof NavigationTrigger;
852
+ TriggerAnchor: typeof NavigationTriggerAnchor;
853
+ TriggerText: typeof NavigationTriggerText;
839
854
  Footer: typeof NavigationFooter;
840
855
  };
841
856
  //#endregion
@@ -1687,4 +1702,4 @@ declare const TreeView: typeof Root & {
1687
1702
  //#region src/hooks/use-list-collection.d.ts
1688
1703
  declare function useListCollection<T extends CollectionItem = CollectionItem>(options: CollectionOptions<T>): ListCollection<T>;
1689
1704
  //#endregion
1690
- export { Accordion, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootContextProps, type AccordionRootProps, type AccordionRootProviderProps, AppBar, type AppBarHeadlineProps, type AppBarLeadProps, type AppBarRootProps, type AppBarToolbarProps, type AppBarTrailProps, Avatar, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootContextProps, type AvatarRootProps, type AvatarRootProviderProps, Collapsible, type CollapsibleContentProps, type CollapsibleIndicatorProps, type CollapsibleRootContextProps, type CollapsibleRootProps, type CollapsibleRootProviderProps, type CollapsibleTriggerProps, Combobox, type ComboboxClearTriggerProps, type ComboboxContentProps, type ComboboxControlProps, type ComboboxInputProps, type ComboboxItemGroupLabelProps, type ComboboxItemGroupProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, type ComboboxItemTextProps, type ComboboxLabelProps, type ComboboxPositionerProps, type ComboboxRootContextProps, type ComboboxRootProps, type ComboboxRootProviderProps, type ComboboxTriggerProps, DatePicker, type DatePickerContentProps, type DatePickerControlProps, type DatePickerInputProps, type DatePickerLabelProps, type DatePickerMonthSelectProps, type DatePickerNextTriggerProps, type DatePickerPositionerProps, type DatePickerPresetTriggerProps, type DatePickerPrevTriggerProps, type DatePickerRangeTextProps, type DatePickerRootContextProps, type DatePickerRootProps, type DatePickerRootProviderProps, type DatePickerTableBodyProps, type DatePickerTableCellProps, type DatePickerTableCellTriggerProps, type DatePickerTableHeadProps, type DatePickerTableHeaderProps, type DatePickerTableProps, type DatePickerTableRowProps, type DatePickerTriggerProps, type DatePickerViewControlProps, type DatePickerViewProps, type DatePickerViewTriggerProps, type DatePickerYearSelectProps, type DateValue, Dialog, type DialogBackdropProps, type DialogCloseTriggerProps, type DialogContentProps, type DialogDescriptionProps, type DialogPositionerProps, type DialogRootContextProps, type DialogRootProps, type DialogRootProviderProps, type DialogTitleProps, type DialogTriggerProps, FileUpload, type FileUploadClearTriggerProps, type FileUploadDropzoneProps, type FileUploadHiddenInputProps, type FileUploadItemDeleteTriggerProps, type FileUploadItemGroupProps, type FileUploadItemNameProps, type FileUploadItemProps, type FileUploadItemSizeTextProps, type FileUploadLabelProps, type FileUploadRootContextProps, type FileUploadRootProps, type FileUploadRootProviderProps, type FileUploadTriggerProps, FloatingPanel, type FloatingPanelBodyProps, type FloatingPanelCloseTriggerProps, type FloatingPanelContentProps, type FloatingPanelControlProps, type FloatingPanelDragTriggerProps, type FloatingPanelHeaderProps, type FloatingPanelPositionerProps, type FloatingPanelResizeTriggerProps, type FloatingPanelRootContextProps, type FloatingPanelRootProps, type FloatingPanelRootProviderProps, type FloatingPanelStageTriggerProps, type FloatingPanelTitleProps, type FloatingPanelTriggerProps, Listbox, type ListboxContentProps, type ListboxInputProps, type ListboxItemGroupLabelProps, type ListboxItemGroupProps, type ListboxItemIndicatorProps, type ListboxItemProps, type ListboxItemTextProps, type ListboxLabelProps, type ListboxRootContextProps, type ListboxRootProps, type ListboxRootProviderProps, Menu, type MenuArrowProps, type MenuArrowTipProps, type MenuContentProps, type MenuContextTriggerProps, type MenuIndicatorProps, type MenuItemGroupLabelProps, type MenuItemGroupProps, type MenuItemIndicatorProps, type MenuItemProps, type MenuItemTextProps, type MenuOptionItemProps, type MenuPositionerProps, type MenuRootContextProps, type MenuRootProps, type MenuRootProviderProps, type MenuSeparatorProps, type MenuTriggerItemProps, type MenuTriggerProps, Navigation, type NavigationContentProps, type NavigationFooterProps, type NavigationGroupProps, type NavigationHeaderProps, type NavigationLabelProps, type NavigationMenuProps, type NavigationRootProps, Pagination, type PaginationEllipsisProps, type PaginationFirstTriggerProps, type PaginationItemProps, type PaginationLastTriggerProps, type PaginationNextTriggerProps, type PaginationPrevTriggerProps, type PaginationRootContextProps, type PaginationRootProps, type PaginationRootProviderProps, Popover, type PopoverAnchorProps, type PopoverArrowProps, type PopoverArrowTipProps, type PopoverCloseTriggerProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverPositionerProps, type PopoverRootContextProps, type PopoverRootProps, type PopoverRootProviderProps, type PopoverTitleProps, type PopoverTriggerProps, Portal, type PortalRootProps, Progress, type ProgressCircleProps, type ProgressCircleRangeProps, type ProgressCircleTrackProps, type ProgressLabelProps, type ProgressRangeProps, type ProgressRootContextProps, type ProgressRootProps, type ProgressRootProviderProps, type ProgressTrackProps, type ProgressValueTextProps, RatingGroup, type RatingGroupControlProps, type RatingGroupHiddenInputProps, type RatingGroupItemProps, type RatingGroupLabelProps, type RatingGroupRootContextProps, type RatingGroupRootProps, type RatingGroupRootProviderProps, SegmentedControl, type SegmentedControlControlProps, type SegmentedControlIndicatorProps, type SegmentedControlItemHiddenInputProps, type SegmentedControlItemProps, type SegmentedControlItemTextProps, type SegmentedControlLabelProps, type SegmentedControlRootContextProps, type SegmentedControlRootProps, type SegmentedControlRootProviderProps, Slider, type SliderControlProps, type SliderHiddenInputProps, type SliderLabelProps, type SliderMarkerGroupProps, type SliderMarkerProps, type SliderRangeProps, type SliderRootContextProps, type SliderRootProps, type SliderRootProviderProps, type SliderThumbProps, type SliderTrackProps, type SliderValueTextProps, Steps, type StepsContentProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsPrevTriggerProps, type StepsRootContextProps, type StepsRootProps, type StepsRootProviderProps, type StepsSeparatorProps, type StepsTriggerProps, Switch, type SwitchControlProps, type SwitchHiddenInputProps, type SwitchLabelProps, type SwitchRootContextProps, type SwitchRootProps, type SwitchRootProviderProps, type SwitchThumbProps, Tabs, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootContextProps, type TabsRootProps, type TabsRootProviderProps, type TabsTriggerProps, TagsInput, type TagsInputClearTriggerProps, type TagsInputControlProps, type TagsInputHiddenInputProps, type TagsInputInputProps, type TagsInputItemDeleteTriggerProps, type TagsInputItemInputProps, type TagsInputItemPreviewProps, type TagsInputItemProps, type TagsInputItemTextProps, type TagsInputLabelProps, type TagsInputRootContextProps, type TagsInputRootProps, type TagsInputRootProviderProps, Toast, type ToastActionTriggerProps, type ToastCloseTriggerProps, type ToastDescriptionProps, type ToastGroupProps, type ToastMessageProps, type ToastRootContextProps, type ToastRootProps, type ToastTitleProps, ToggleGroup, type ToggleGroupItemProps, type ToggleGroupRootContextProps, type ToggleGroupRootProps, type ToggleGroupRootProviderProps, Tooltip, type TooltipArrowProps, type TooltipArrowTipProps, type TooltipContentProps, type TooltipPositionerProps, type TooltipRootContextProps, type TooltipRootProps, type TooltipRootProviderProps, type TooltipTriggerProps, TreeView, type TreeViewBranchContentProps, type TreeViewBranchControlProps, type TreeViewBranchIndentGuideProps, type TreeViewBranchIndicatorProps, type TreeViewBranchProps, type TreeViewBranchTextProps, type TreeViewItemProps, type TreeViewLabelProps, type TreeViewNodeContextProps, type TreeViewNodeProviderProps, type TreeViewRootContextProps, type TreeViewRootProps, type TreeViewRootProviderProps, type TreeViewTreeProps, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useFloatingPanel, useListCollection, useListbox, useMenu, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSteps, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
1705
+ export { Accordion, type AccordionItemContentProps, type AccordionItemIndicatorProps, type AccordionItemProps, type AccordionItemTriggerProps, type AccordionRootContextProps, type AccordionRootProps, type AccordionRootProviderProps, AppBar, type AppBarHeadlineProps, type AppBarLeadProps, type AppBarRootProps, type AppBarToolbarProps, type AppBarTrailProps, Avatar, type AvatarFallbackProps, type AvatarImageProps, type AvatarRootContextProps, type AvatarRootProps, type AvatarRootProviderProps, Collapsible, type CollapsibleContentProps, type CollapsibleIndicatorProps, type CollapsibleRootContextProps, type CollapsibleRootProps, type CollapsibleRootProviderProps, type CollapsibleTriggerProps, Combobox, type ComboboxClearTriggerProps, type ComboboxContentProps, type ComboboxControlProps, type ComboboxInputProps, type ComboboxItemGroupLabelProps, type ComboboxItemGroupProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, type ComboboxItemTextProps, type ComboboxLabelProps, type ComboboxPositionerProps, type ComboboxRootContextProps, type ComboboxRootProps, type ComboboxRootProviderProps, type ComboboxTriggerProps, DatePicker, type DatePickerContentProps, type DatePickerControlProps, type DatePickerInputProps, type DatePickerLabelProps, type DatePickerMonthSelectProps, type DatePickerNextTriggerProps, type DatePickerPositionerProps, type DatePickerPresetTriggerProps, type DatePickerPrevTriggerProps, type DatePickerRangeTextProps, type DatePickerRootContextProps, type DatePickerRootProps, type DatePickerRootProviderProps, type DatePickerTableBodyProps, type DatePickerTableCellProps, type DatePickerTableCellTriggerProps, type DatePickerTableHeadProps, type DatePickerTableHeaderProps, type DatePickerTableProps, type DatePickerTableRowProps, type DatePickerTriggerProps, type DatePickerViewControlProps, type DatePickerViewProps, type DatePickerViewTriggerProps, type DatePickerYearSelectProps, type DateValue, Dialog, type DialogBackdropProps, type DialogCloseTriggerProps, type DialogContentProps, type DialogDescriptionProps, type DialogPositionerProps, type DialogRootContextProps, type DialogRootProps, type DialogRootProviderProps, type DialogTitleProps, type DialogTriggerProps, FileUpload, type FileUploadClearTriggerProps, type FileUploadDropzoneProps, type FileUploadHiddenInputProps, type FileUploadItemDeleteTriggerProps, type FileUploadItemGroupProps, type FileUploadItemNameProps, type FileUploadItemProps, type FileUploadItemSizeTextProps, type FileUploadLabelProps, type FileUploadRootContextProps, type FileUploadRootProps, type FileUploadRootProviderProps, type FileUploadTriggerProps, FloatingPanel, type FloatingPanelBodyProps, type FloatingPanelCloseTriggerProps, type FloatingPanelContentProps, type FloatingPanelControlProps, type FloatingPanelDragTriggerProps, type FloatingPanelHeaderProps, type FloatingPanelPositionerProps, type FloatingPanelResizeTriggerProps, type FloatingPanelRootContextProps, type FloatingPanelRootProps, type FloatingPanelRootProviderProps, type FloatingPanelStageTriggerProps, type FloatingPanelTitleProps, type FloatingPanelTriggerProps, Listbox, type ListboxContentProps, type ListboxInputProps, type ListboxItemGroupLabelProps, type ListboxItemGroupProps, type ListboxItemIndicatorProps, type ListboxItemProps, type ListboxItemTextProps, type ListboxLabelProps, type ListboxRootContextProps, type ListboxRootProps, type ListboxRootProviderProps, Menu, type MenuArrowProps, type MenuArrowTipProps, type MenuContentProps, type MenuContextTriggerProps, type MenuIndicatorProps, type MenuItemGroupLabelProps, type MenuItemGroupProps, type MenuItemIndicatorProps, type MenuItemProps, type MenuItemTextProps, type MenuOptionItemProps, type MenuPositionerProps, type MenuRootContextProps, type MenuRootProps, type MenuRootProviderProps, type MenuSeparatorProps, type MenuTriggerItemProps, type MenuTriggerProps, Navigation, type NavigationContentProps, type NavigationFooterProps, type NavigationGroupProps, type NavigationHeaderProps, type NavigationLabelProps, type NavigationMenuProps, type NavigationRootProps, type NavigationTriggerAnchorProps, type NavigationTriggerProps, type NavigationTriggerTextProps, Pagination, type PaginationEllipsisProps, type PaginationFirstTriggerProps, type PaginationItemProps, type PaginationLastTriggerProps, type PaginationNextTriggerProps, type PaginationPrevTriggerProps, type PaginationRootContextProps, type PaginationRootProps, type PaginationRootProviderProps, Popover, type PopoverAnchorProps, type PopoverArrowProps, type PopoverArrowTipProps, type PopoverCloseTriggerProps, type PopoverContentProps, type PopoverDescriptionProps, type PopoverPositionerProps, type PopoverRootContextProps, type PopoverRootProps, type PopoverRootProviderProps, type PopoverTitleProps, type PopoverTriggerProps, Portal, type PortalRootProps, Progress, type ProgressCircleProps, type ProgressCircleRangeProps, type ProgressCircleTrackProps, type ProgressLabelProps, type ProgressRangeProps, type ProgressRootContextProps, type ProgressRootProps, type ProgressRootProviderProps, type ProgressTrackProps, type ProgressValueTextProps, RatingGroup, type RatingGroupControlProps, type RatingGroupHiddenInputProps, type RatingGroupItemProps, type RatingGroupLabelProps, type RatingGroupRootContextProps, type RatingGroupRootProps, type RatingGroupRootProviderProps, SegmentedControl, type SegmentedControlControlProps, type SegmentedControlIndicatorProps, type SegmentedControlItemHiddenInputProps, type SegmentedControlItemProps, type SegmentedControlItemTextProps, type SegmentedControlLabelProps, type SegmentedControlRootContextProps, type SegmentedControlRootProps, type SegmentedControlRootProviderProps, Slider, type SliderControlProps, type SliderHiddenInputProps, type SliderLabelProps, type SliderMarkerGroupProps, type SliderMarkerProps, type SliderRangeProps, type SliderRootContextProps, type SliderRootProps, type SliderRootProviderProps, type SliderThumbProps, type SliderTrackProps, type SliderValueTextProps, Steps, type StepsContentProps, type StepsIndicatorProps, type StepsItemProps, type StepsListProps, type StepsNextTriggerProps, type StepsPrevTriggerProps, type StepsRootContextProps, type StepsRootProps, type StepsRootProviderProps, type StepsSeparatorProps, type StepsTriggerProps, Switch, type SwitchControlProps, type SwitchHiddenInputProps, type SwitchLabelProps, type SwitchRootContextProps, type SwitchRootProps, type SwitchRootProviderProps, type SwitchThumbProps, Tabs, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootContextProps, type TabsRootProps, type TabsRootProviderProps, type TabsTriggerProps, TagsInput, type TagsInputClearTriggerProps, type TagsInputControlProps, type TagsInputHiddenInputProps, type TagsInputInputProps, type TagsInputItemDeleteTriggerProps, type TagsInputItemInputProps, type TagsInputItemPreviewProps, type TagsInputItemProps, type TagsInputItemTextProps, type TagsInputLabelProps, type TagsInputRootContextProps, type TagsInputRootProps, type TagsInputRootProviderProps, Toast, type ToastActionTriggerProps, type ToastCloseTriggerProps, type ToastDescriptionProps, type ToastGroupProps, type ToastMessageProps, type ToastRootContextProps, type ToastRootProps, type ToastTitleProps, ToggleGroup, type ToggleGroupItemProps, type ToggleGroupRootContextProps, type ToggleGroupRootProps, type ToggleGroupRootProviderProps, Tooltip, type TooltipArrowProps, type TooltipArrowTipProps, type TooltipContentProps, type TooltipPositionerProps, type TooltipRootContextProps, type TooltipRootProps, type TooltipRootProviderProps, type TooltipTriggerProps, TreeView, type TreeViewBranchContentProps, type TreeViewBranchControlProps, type TreeViewBranchIndentGuideProps, type TreeViewBranchIndicatorProps, type TreeViewBranchProps, type TreeViewBranchTextProps, type TreeViewItemProps, type TreeViewLabelProps, type TreeViewNodeContextProps, type TreeViewNodeProviderProps, type TreeViewRootContextProps, type TreeViewRootProps, type TreeViewRootProviderProps, type TreeViewTreeProps, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useFloatingPanel, useListCollection, useListbox, useMenu, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSteps, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
package/dist/index.mjs CHANGED
@@ -2263,6 +2263,55 @@ function NavigationMenu(props) {
2263
2263
  });
2264
2264
  }
2265
2265
 
2266
+ //#endregion
2267
+ //#region src/components/navigation/anatomy/trigger.tsx
2268
+ function NavigationTrigger(props) {
2269
+ const { element, children, ...rest } = props;
2270
+ const navigation = use(RootContext$28);
2271
+ const attributes = mergeProps({
2272
+ "data-scope": "navigation",
2273
+ "data-part": "trigger",
2274
+ "data-layout": navigation.layout,
2275
+ type: "button"
2276
+ }, rest);
2277
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
2278
+ ...attributes,
2279
+ children
2280
+ });
2281
+ }
2282
+
2283
+ //#endregion
2284
+ //#region src/components/navigation/anatomy/trigger-anchor.tsx
2285
+ function NavigationTriggerAnchor(props) {
2286
+ const { element, children, ...rest } = props;
2287
+ const navigation = use(RootContext$28);
2288
+ const attributes = mergeProps({
2289
+ "data-scope": "navigation",
2290
+ "data-part": "trigger-anchor",
2291
+ "data-layout": navigation.layout
2292
+ }, rest);
2293
+ return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
2294
+ ...attributes,
2295
+ children
2296
+ });
2297
+ }
2298
+
2299
+ //#endregion
2300
+ //#region src/components/navigation/anatomy/trigger-text.tsx
2301
+ function NavigationTriggerText(props) {
2302
+ const { element, children, ...rest } = props;
2303
+ const navigation = use(RootContext$28);
2304
+ const attributes = mergeProps({
2305
+ "data-scope": "navigation",
2306
+ "data-part": "trigger-text",
2307
+ "data-layout": navigation.layout
2308
+ }, rest);
2309
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2310
+ ...attributes,
2311
+ children
2312
+ });
2313
+ }
2314
+
2266
2315
  //#endregion
2267
2316
  //#region src/components/navigation/anatomy/root.tsx
2268
2317
  function NavigationRoot(props) {
@@ -2289,6 +2338,9 @@ const Navigation = Object.assign(NavigationRoot, {
2289
2338
  Group: NavigationGroup,
2290
2339
  Label: NavigationLabel,
2291
2340
  Menu: NavigationMenu,
2341
+ Trigger: NavigationTrigger,
2342
+ TriggerAnchor: NavigationTriggerAnchor,
2343
+ TriggerText: NavigationTriggerText,
2292
2344
  Footer: NavigationFooter
2293
2345
  });
2294
2346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-react",
3
- "version": "4.7.3",
3
+ "version": "4.8.0",
4
4
  "description": "The React package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "@zag-js/toggle-group": "1.31.0",
48
48
  "@zag-js/tooltip": "1.31.0",
49
49
  "@zag-js/tree-view": "1.31.0",
50
- "@skeletonlabs/skeleton-common": "4.7.3"
50
+ "@skeletonlabs/skeleton-common": "4.8.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^18.0.0 || ^19.0.0",