@lax-wp/design-system 0.3.97 → 0.3.99

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.
@@ -21,8 +21,6 @@ export interface ComparisonProps {
21
21
  returnUrl?: string | number;
22
22
  /** Callback function when user clicks return/exit button */
23
23
  onReturn?: () => void;
24
- /** Translation function - if not provided, strings will be used as-is */
25
- t?: (key: string) => string;
26
24
  /** Optional navigation function for back navigation */
27
25
  onNavigateBack?: (url: string) => void;
28
26
  /** Custom tabs component to render in the header */
@@ -1,7 +1,3 @@
1
1
  import React from 'react';
2
- export interface GridLayoutProps {
3
- /** Translation function - if not provided, strings will be used as-is */
4
- t?: (key: string) => string;
5
- }
6
- declare const _default: React.NamedExoticComponent<GridLayoutProps>;
2
+ declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
7
3
  export default _default;
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
2
  export interface ComparisonHeaderProps {
3
- /** Translation function - if not provided, strings will be used as-is */
4
- t?: (key: string) => string;
5
3
  /** Optional navigation function to go back */
6
4
  onNavigateBack?: (url: string) => void;
7
5
  /** Custom tabs component to render in the header */
@@ -1,7 +1,2 @@
1
- import React from 'react';
2
- export interface NoAvailableContentProps {
3
- /** Translation function - if not provided, strings will be used as-is */
4
- t?: (key: string) => string;
5
- }
6
- declare const NoAvailableContent: React.FC<NoAvailableContentProps>;
1
+ declare const NoAvailableContent: () => import("react/jsx-runtime").JSX.Element;
7
2
  export default NoAvailableContent;
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { ILayoutItem } from '../constants';
3
3
  export interface SortableItemProps {
4
4
  item: ILayoutItem;
5
- /** Translation function - if not provided, strings will be used as-is */
6
- t?: (key: string) => string;
7
5
  }
8
6
  declare const _default: React.NamedExoticComponent<SortableItemProps>;
9
7
  export default _default;
@@ -1,12 +1,7 @@
1
- import { FC, ReactNode } from 'react';
1
+ import type { FC, ReactNode } from 'react';
2
2
  export interface PageNotFoundProps {
3
3
  /** Custom icon to display */
4
4
  icon?: ReactNode;
5
- /** Link component for the back to home button (e.g., from react-router-dom) */
6
- linkComponent?: FC<{
7
- to: string;
8
- children: ReactNode;
9
- }>;
10
5
  /** Path to navigate on back to home click */
11
6
  homePath?: string;
12
7
  /** Custom back to home text */
@@ -1,10 +1,5 @@
1
- import type { FC } from 'react';
2
1
  import { type TFieldOptionsProps } from './types';
3
- export interface FieldOptionsProps extends TFieldOptionsProps {
4
- /** Translation function - if not provided, strings will be used as-is */
5
- t?: (key: string) => string;
6
- }
7
2
  /**
8
3
  * FieldOptions component for managing a list of field values with drag-and-drop sorting
9
4
  */
10
- export declare const FieldOptions: FC<FieldOptionsProps>;
5
+ export declare const FieldOptions: (props: TFieldOptionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,6 @@ import type { FC } from 'react';
2
2
  import { type TFieldOptionsProps } from './types';
3
3
  type TProps = Pick<TFieldOptionsProps, 'value' | 'onOptionChange' | 'onSaveOption' | 'onDeleteAll' | 'required' | 'errorMessage'> & {
4
4
  hasChoices: boolean;
5
- /** Translation function - if not provided, strings will be used as-is */
6
- t?: (key: string) => string;
7
5
  };
8
6
  export declare const Header: FC<TProps>;
9
7
  export {};
@@ -1,3 +1,2 @@
1
1
  export { FieldOptions } from './FieldOptions';
2
- export type { FieldOptionsProps } from './FieldOptions';
3
2
  export type { TFieldOptionsProps } from './types';
@@ -59,8 +59,6 @@ export type FileUploadDraggerProps = {
59
59
  hideSelectedFile?: boolean;
60
60
  /** Maximum file size in bytes */
61
61
  maxSize?: number;
62
- /** Translation function */
63
- t?: (key: string) => string;
64
62
  /** Toast function for notifications */
65
63
  toast?: {
66
64
  error: (message: string, options?: {
@@ -43,4 +43,4 @@ export interface MdInputProps {
43
43
  * />
44
44
  * ```
45
45
  */
46
- export declare const MdInput: ({ id, value, onChange, placeholder, rows, disabled, className, textareaClassName, previewClassName, defaultMode, mode: modeProp, label, required, }: MdInputProps) => import("react/jsx-runtime").JSX.Element;
46
+ export declare const MdInput: ({ id, value, onChange, placeholder, rows: minRows, disabled, className, textareaClassName, previewClassName, defaultMode, mode: modeProp, label, required, }: MdInputProps) => import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -202,7 +202,6 @@ export type { JsonGridViewerProps, AddKeyModalProps, IJsonGridViewerContext, IJs
202
202
  export { DataType as JsonGridDataType, DataTypeBadgeClass, DataTypeOptions as JsonGridDataTypeOptions, } from "./components/data-display/json-grid-viewer";
203
203
  export { getDataType as jsonGridGetDataType, filterTopLevelPaths as jsonGridFilterTopLevelPaths, parseJson as jsonGridParseJson } from "./components/data-display/json-grid-viewer";
204
204
  export { FieldOptions } from "./components/forms/field-options";
205
- export type { FieldOptionsProps, TFieldOptionsProps } from "./components/forms/field-options";
206
205
  export { LinearProgressBar, CircularProgressBar } from "./components/data-display/progress-bar";
207
206
  export type { LinearProgressBarProps, CircularProgressBarProps } from "./components/data-display/progress-bar";
208
207
  export { Comparison, ComparisonContext, ComparisonProvider, COMPARISON_LAYOUT, DEFAULT_COMPARISON_LAYOUTS, gridLayoutItems, filterVisibleItems, filteredOptions, getCurrentSelectValue, parseToIds as comparisonParseToIds, ExitIcon, LayoutOneIcon, LayoutTwoIcon, LayoutThreeIcon, } from "./components/data-display/comparison";