@mich8060/unified-design-system 0.2.6 → 0.2.7

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,14 +3,15 @@ export type FlexDirection = "row" | "column";
3
3
  export type FlexJustifyContent = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
4
4
  export type FlexAlignItems = "stretch" | "flex-start" | "center" | "flex-end" | "baseline";
5
5
  export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
6
- export type FlexGapToken = "0" | "2" | "4" | "8" | "12" | "16" | "24" | "32";
6
+ export type FlexGapToken = "0" | "2" | "4" | "6" | "8" | "10" | "12" | "14" | "16" | "18" | "24" | "32" | "48" | "64" | "80";
7
+ export type FlexGapTokenName = `spacing-${FlexGapToken}`;
7
8
  export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
8
9
  as?: React.ElementType;
9
10
  direction?: FlexDirection;
10
11
  justifyContent?: FlexJustifyContent;
11
12
  alignItems?: FlexAlignItems;
12
13
  wrap?: boolean | FlexWrap;
13
- gap?: FlexGapToken | string;
14
+ gap?: FlexGapToken | FlexGapTokenName | number | string;
14
15
  fullWidth?: boolean;
15
16
  inline?: boolean;
16
17
  }
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  import PropTypes from "prop-types";
2
3
  import "./_menu.scss";
3
4
  import type { MenuProps } from "./Menu.types";
4
- declare function Menu({ title, className, navItems, brands, activeBrand, onBrandChange, activeMode, onModeChange, showBrand, showSearch, showBrandSwitcher, showNav, showModeToggle, showUser, userName, userInitials, userAvatarSrc, identity, }: MenuProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function Menu({ title, className, navItems, brands, activeBrand, onBrandChange, activeMode, onModeChange, showBrand, showSearch, showBrandSwitcher, showNav, showModeToggle, showUser, userName, userInitials, userAvatarSrc, accountMenuItems, identity, }: MenuProps): import("react/jsx-runtime").JSX.Element;
5
6
  declare namespace Menu {
6
7
  var propTypes: {
7
8
  title: PropTypes.Requireable<string>;
@@ -29,9 +30,11 @@ declare namespace Menu {
29
30
  userName: PropTypes.Requireable<string>;
30
31
  userInitials: PropTypes.Requireable<string>;
31
32
  userAvatarSrc: PropTypes.Requireable<string>;
33
+ accountMenuItems: PropTypes.Requireable<any[]>;
32
34
  };
33
35
  var defaultProps: {
34
36
  title: string;
35
37
  };
36
38
  }
37
- export default Menu;
39
+ declare const _default: React.MemoExoticComponent<typeof Menu>;
40
+ export default _default;
@@ -43,5 +43,6 @@ export interface MenuProps extends Omit<HTMLAttributes<HTMLElement>, "onChange">
43
43
  userName?: string;
44
44
  userInitials?: string;
45
45
  userAvatarSrc?: string;
46
+ accountMenuItems?: unknown[];
46
47
  identity?: string;
47
48
  }
@@ -7,7 +7,7 @@ import type { TableProps } from "./Table.types";
7
7
  * @param {string} className - Additional CSS classes
8
8
  * @param {object} props - Additional props to pass to the table element
9
9
  */
10
- declare function Table({ columns, data, className, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function Table({ columns, data, className, bodyWeight, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
11
11
  declare namespace Table {
12
12
  var Cell: typeof TableCell;
13
13
  }
@@ -1,6 +1,8 @@
1
1
  import type { HTMLAttributes } from "react";
2
+ export type TableBodyWeight = "regular" | "medium" | "semibold" | "bold";
2
3
  export interface TableProps extends HTMLAttributes<HTMLDivElement> {
3
4
  columns?: unknown[];
4
5
  data?: unknown[];
5
6
  className?: string;
7
+ bodyWeight?: TableBodyWeight;
6
8
  }
@@ -17,4 +17,4 @@ import type { TextInputProps } from "./TextInput.types";
17
17
  * @param {string} className - Additional CSS classes
18
18
  * @param {object} props - Additional props to pass to the input element
19
19
  */
20
- export default function Input({ value, onChange, placeholder, type, size, state, disabled, icon, iconPosition, onIconClick, id, className, ...props }: TextInputProps): import("react/jsx-runtime").JSX.Element;
20
+ export default function Input({ value, onChange, placeholder, type, size, state, disabled, icon, iconPosition, onIconClick, id, label, helperText, errorText, className, "aria-describedby": ariaDescribedBy, ...props }: TextInputProps): import("react/jsx-runtime").JSX.Element;
@@ -36,4 +36,10 @@ export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
36
36
  iconPosition?: TextInputIconPosition;
37
37
  /** Optional click handler for icon button mode. */
38
38
  onIconClick?: MouseEventHandler<HTMLButtonElement>;
39
+ /** Optional visible label rendered with htmlFor/id linkage. */
40
+ label?: ReactNode;
41
+ /** Helper text rendered below the input. */
42
+ helperText?: ReactNode;
43
+ /** Error text rendered below the input when in error state. */
44
+ errorText?: ReactNode;
39
45
  }