@peripheries/core 0.6.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peripheries/core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "The shared core lineage: layout, the document kit and the display cells, on the semantic tokens",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -11,7 +11,9 @@ export interface AccordionProps {
11
11
  numbered?: boolean;
12
12
  single?: boolean;
13
13
  rules?: 'strong' | 'subtle';
14
+ value?: string[];
15
+ onValueChange?: (value: string[]) => void;
14
16
  className?: string;
15
17
  style?: CSSProperties;
16
18
  }
17
- export declare function Accordion({ items, children, numbered, single, rules, className, ...rest }: AccordionProps): import("react").JSX.Element;
19
+ export declare function Accordion({ items, children, numbered, single, rules, value, onValueChange, className, ...rest }: AccordionProps): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { type CSSProperties, type ReactElement, type ReactNode } from 'react';
2
+ export interface SlotProps {
3
+ children?: ReactNode;
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ [key: string]: unknown;
7
+ }
8
+ export declare function Slot({ children, className, style, ...rest }: SlotProps): ReactElement | null;
@@ -15,7 +15,8 @@ export interface ButtonProps extends PressProps {
15
15
  disabled?: boolean;
16
16
  type?: 'button' | 'submit' | 'reset';
17
17
  fullWidth?: boolean;
18
+ asChild?: boolean;
18
19
  className?: string;
19
20
  style?: CSSProperties;
20
21
  }
21
- export declare function Button({ children, label, variant, size, tone, iconLeft, iconRight, loading, disabled, type, fullWidth, className, href, action, input, actions, navigate, onClick, ...rest }: ButtonProps): import("react").JSX.Element;
22
+ export declare function Button({ children, label, variant, size, tone, iconLeft, iconRight, loading, disabled, type, fullWidth, asChild, className, href, action, input, actions, navigate, onClick, ...rest }: ButtonProps): import("react").JSX.Element;
@@ -1,11 +1,12 @@
1
- import type { ReactNode, CSSProperties } from 'react';
1
+ import type { AriaAttributes, ReactNode, CSSProperties } from 'react';
2
2
  import { type PressProps } from '../_shared/press';
3
3
  export interface LinkProps extends Omit<PressProps, 'action' | 'input'> {
4
4
  href: string;
5
5
  children?: ReactNode;
6
6
  label?: string;
7
7
  variant?: 'default' | 'subtle';
8
+ 'aria-current'?: AriaAttributes['aria-current'];
8
9
  className?: string;
9
10
  style?: CSSProperties;
10
11
  }
11
- export declare function Link({ href, children, label, variant, className, navigate, onClick, ...rest }: LinkProps): import("react").JSX.Element;
12
+ export declare function Link({ href, children, label, variant, 'aria-current': ariaCurrent, className, navigate, onClick, ...rest }: LinkProps): import("react").JSX.Element;
@@ -4,6 +4,9 @@ export interface FormFieldProps {
4
4
  hint?: string;
5
5
  error?: string;
6
6
  required?: boolean;
7
+ optional?: boolean;
8
+ helperText?: string;
9
+ id?: string;
7
10
  htmlFor?: string;
8
11
  hintId?: string;
9
12
  errorId?: string;
@@ -12,4 +15,4 @@ export interface FormFieldProps {
12
15
  className?: string;
13
16
  style?: CSSProperties;
14
17
  }
15
- export declare function FormField({ label, hint, error, required, htmlFor, hintId, errorId, as, children, className, style }: FormFieldProps): import("react").JSX.Element;
18
+ export declare function FormField({ label, hint: hintProp, helperText, error, required, optional, htmlFor: forProp, id, hintId, errorId, as, children, className, style }: FormFieldProps): import("react").JSX.Element;
@@ -5,8 +5,10 @@ export interface AvatarProps {
5
5
  src?: string;
6
6
  alt?: string;
7
7
  size?: 'sm' | 'md' | 'lg';
8
+ tone?: string;
9
+ title?: string;
8
10
  className?: string;
9
11
  style?: CSSProperties;
10
12
  }
11
13
  export declare const initialsOf: (name?: string) => string;
12
- export declare function Avatar({ name, initials, src, alt, size, className, ...rest }: AvatarProps): import("react").JSX.Element;
14
+ export declare function Avatar({ name, initials, src, alt, size, tone, title, className, ...rest }: AvatarProps): import("react").JSX.Element;