@obosbbl/grunnmuren-react 3.4.3 → 3.4.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.d.mts CHANGED
@@ -1,14 +1,39 @@
1
- import { DisclosureProps as DisclosureProps$1, ButtonProps as ButtonProps$1, LinkProps as LinkProps$1, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, ContextValue, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, HeadingProps as HeadingProps$1, ListBoxItemProps, ListBoxSectionProps, ComboBoxProps, FileTriggerProps as FileTriggerProps$1, RouterProvider, TextProps, LabelProps, DialogProps as DialogProps$1, DialogTriggerProps as DialogTriggerProps$1, ModalOverlayProps as ModalOverlayProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, ColumnResizerProps, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, CellProps, ColumnProps, ResizableTableContainerProps, TableHeaderProps as TableHeaderProps$1, RowProps, TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps as TabPanelProps$1, TabsProps as TabsProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TagProps as TagProps$1, TextFieldProps as TextFieldProps$1 } from 'react-aria-components';
2
- export { ListBoxItemProps as ComboboxItemProps, DisclosureGroup, DisclosureGroupProps, Form, Group, LabelProps, ListBoxItemProps as SelectItemProps } from 'react-aria-components';
1
+ import { RouterProvider } from 'react-aria-components';
2
+ export { Form, Group } from 'react-aria-components';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { RefAttributes, HTMLAttributes, HTMLProps, ComponentProps, Ref, ReactNode, RefObject, Dispatch, SetStateAction, JSX } from 'react';
6
6
  import * as cva from 'cva';
7
7
  import { VariantProps } from 'cva';
8
- import { DisclosureState } from 'react-stately';
8
+ import { ButtonProps as ButtonProps$1 } from 'react-aria-components/Button';
9
+ import { DisclosureProps as DisclosureProps$1 } from 'react-aria-components/DisclosureGroup';
10
+ export { DisclosureGroup, DisclosureGroupProps } from 'react-aria-components/DisclosureGroup';
11
+ import { DisclosureState } from 'react-stately/useDisclosureState';
12
+ import { LinkProps as LinkProps$1 } from 'react-aria-components/Link';
13
+ import { BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1 } from 'react-aria-components/Breadcrumbs';
14
+ import { ContextValue } from 'react-aria-components/slots';
9
15
  import { EmblaViewportRefType } from 'embla-carousel-react';
10
- import { DateFormatterOptions } from 'react-aria';
11
- import { FormValidationProps } from '@react-stately/form';
16
+ import { CheckboxProps as CheckboxProps$1 } from 'react-aria-components/Checkbox';
17
+ import { CheckboxGroupProps as CheckboxGroupProps$1 } from 'react-aria-components/CheckboxGroup';
18
+ import { ComboBoxProps } from 'react-aria-components/ComboBox';
19
+ import { DateFormatterOptions } from 'react-aria/useDateFormatter';
20
+ import { FileTriggerProps as FileTriggerProps$1 } from 'react-aria-components/FileTrigger';
21
+ import { useFormValidationState } from 'react-stately/private/form/useFormValidationState';
22
+ import { TextProps } from 'react-aria-components/Text';
23
+ import { LabelProps } from 'react-aria-components/Label';
24
+ export { LabelProps } from 'react-aria-components/Label';
25
+ import { DialogProps as DialogProps$1, DialogTriggerProps as DialogTriggerProps$1 } from 'react-aria-components/Dialog';
26
+ import { ModalOverlayProps as ModalOverlayProps$1 } from 'react-aria-components/Modal';
27
+ import { NumberFieldProps as NumberFieldProps$1 } from 'react-aria-components/NumberField';
28
+ import { RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1 } from 'react-aria-components/RadioGroup';
29
+ import { SelectProps as SelectProps$1 } from 'react-aria-components/Select';
30
+ import { ColumnResizerProps, TableProps as TableProps$1, TableBodyProps as TableBodyProps$1, CellProps, ColumnProps, ResizableTableContainerProps, TableHeaderProps as TableHeaderProps$1, RowProps } from 'react-aria-components/Table';
31
+ import { TabProps as TabProps$1, TabListProps as TabListProps$1, TabPanelProps as TabPanelProps$1, TabsProps as TabsProps$1 } from 'react-aria-components/Tabs';
32
+ import { TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TagProps as TagProps$1 } from 'react-aria-components/TagGroup';
33
+ import { TextFieldProps as TextFieldProps$1 } from 'react-aria-components/TextField';
34
+ import { HeaderProps } from 'react-aria-components/Header';
35
+ import { ListBoxItemProps, ListBoxSectionProps } from 'react-aria-components/ListBox';
36
+ export { ListBoxItemProps as ComboboxItemProps, ListBoxItemProps as SelectItemProps } from 'react-aria-components/ListBox';
12
37
 
13
38
  declare const disclosureButtonVariants: (props?: ({
14
39
  withChevron?: boolean | undefined;
@@ -366,7 +391,7 @@ declare const ListBoxSection: <T extends object>({ className, ...restProps }: Li
366
391
  /**
367
392
  * This component can be used to label grouped items in a `ListBoxSection` with a heading
368
393
  */
369
- declare const ListBoxHeader: (props: HeadingProps$1) => react_jsx_runtime.JSX.Element;
394
+ declare const ListBoxHeader: (props: HeaderProps) => react_jsx_runtime.JSX.Element;
370
395
 
371
396
  type ComboboxProps<T extends object> = {
372
397
  children: React.ReactNode;
@@ -459,9 +484,10 @@ type DateFormatterProps = {
459
484
  * By default it sets the timeZone to `Europe/Berlin` to prevent the server's timezone from affecting
460
485
  * the localized format
461
486
  */
462
- declare const DateFormatter: ({ options: _options, value, children: render, }: DateFormatterProps) => ReactNode;
487
+ declare const DateFormatter: ({ options: _options, value, children: render }: DateFormatterProps) => ReactNode;
463
488
 
464
- type FileTriggerProps = Partial<FormValidationProps<File>> & FileTriggerProps$1 & Omit<HTMLAttributes<HTMLInputElement>, 'onSelect' | 'onChange' | 'required' | 'className'> & {
489
+ type FormValidationProps<T> = Parameters<typeof useFormValidationState<T>>[0];
490
+ type FileTriggerProps = Partial<Omit<FormValidationProps<File>, 'value'>> & FileTriggerProps$1 & Omit<HTMLAttributes<HTMLInputElement>, 'onSelect' | 'onChange' | 'required' | 'className'> & {
465
491
  ref?: RefObject<HTMLInputElement | null>;
466
492
  isInvalid?: boolean;
467
493
  isRequired?: boolean;
@@ -549,7 +575,9 @@ declare const LinkListItem: ({ children, className, ...props }: LinkListItemProp
549
575
 
550
576
  type DialogTriggerProps = DialogTriggerProps$1;
551
577
  declare const DialogTrigger: (props: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
552
- type ModalOverlayProps = Omit<ModalOverlayProps$1, 'isDismissable'> & {
578
+ type ModalOverlayProps = Omit<ModalOverlayProps$1, 'isDismissable' | 'style'> & {
579
+ /** Additional style properties for the element. */
580
+ style?: React.CSSProperties;
553
581
  /** @default 10 Controls the z-index of the modal overlay */
554
582
  zIndex?: number;
555
583
  /** @default true Makes the modal dismissable */