@postenbring/hedwig-react 0.0.11 → 0.0.12

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.
@@ -3,7 +3,7 @@ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
3
 
4
4
  interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  variant?: "light-grey" | "lighter" | "white" | "warning";
6
- children: React.ReactNode;
6
+ children?: React.ReactNode;
7
7
  /**
8
8
  * If `true`, a close button will be shown.
9
9
  * Use when you want to control the close button using the BoxCloseButton component.
package/dist/box/box.d.ts CHANGED
@@ -3,7 +3,7 @@ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
3
 
4
4
  interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  variant?: "light-grey" | "lighter" | "white" | "warning";
6
- children: React.ReactNode;
6
+ children?: React.ReactNode;
7
7
  /**
8
8
  * If `true`, a close button will be shown.
9
9
  * Use when you want to control the close button using the BoxCloseButton component.
@@ -4,13 +4,13 @@ import { HTMLAttributes, ReactNode } from 'react';
4
4
  type DescriptionDetailsProps = DLDTProps;
5
5
  type DescriptionTermProps = DLDTProps;
6
6
  interface DLDTProps extends HTMLAttributes<HTMLBaseElement> {
7
- children: ReactNode;
7
+ children?: ReactNode;
8
8
  }
9
9
  interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
10
10
  /**
11
11
  * Either `DescriptionDetails` or `DescriptionTerm` elements
12
12
  */
13
- children: ReactNode;
13
+ children?: ReactNode;
14
14
  /**
15
15
  * Direction of the description list
16
16
  */
@@ -4,13 +4,13 @@ import { HTMLAttributes, ReactNode } from 'react';
4
4
  type DescriptionDetailsProps = DLDTProps;
5
5
  type DescriptionTermProps = DLDTProps;
6
6
  interface DLDTProps extends HTMLAttributes<HTMLBaseElement> {
7
- children: ReactNode;
7
+ children?: ReactNode;
8
8
  }
9
9
  interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
10
10
  /**
11
11
  * Either `DescriptionDetails` or `DescriptionTerm` elements
12
12
  */
13
- children: ReactNode;
13
+ children?: ReactNode;
14
14
  /**
15
15
  * Direction of the description list
16
16
  */
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { ListProps } from './list.mjs';
4
4
 
5
5
  interface LinkListProps extends Omit<ListProps, "listStyle"> {
6
- children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
7
7
  }
8
8
  declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
9
9
  declare namespace LinkList {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { ListProps } from './list.js';
4
4
 
5
5
  interface LinkListProps extends Omit<ListProps, "listStyle"> {
6
- children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
7
7
  }
8
8
  declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
9
9
  declare namespace LinkList {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { HTMLAttributes } from 'react';
4
4
 
5
5
  interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
6
- children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
7
7
  /**
8
8
  * Inherit list styles or do not show these
9
9
  */
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { HTMLAttributes } from 'react';
4
4
 
5
5
  interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
6
- children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
7
7
  /**
8
8
  * Inherit list styles or do not show these
9
9
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",