@lax-wp/design-system 0.3.115 → 0.4.1
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/components/data-display/comparison/Comparison.d.ts +1 -1
- package/dist/components/data-display/comparison/components/Header.d.ts +1 -1
- package/dist/components/data-display/comparison/components/NoAvailableContent.d.ts +1 -2
- package/dist/components/data-display/empty-state/NoDataFound.d.ts +2 -2
- package/dist/components/shortcut-kbd/ShortcutKbd.d.ts +26 -0
- package/dist/components/shortcut-kbd/index.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +113 -90
- package/dist/index.umd.js +7 -7
- package/package.json +2 -2
|
@@ -24,7 +24,7 @@ export interface ComparisonProps {
|
|
|
24
24
|
/** Optional navigation function for back navigation */
|
|
25
25
|
onNavigateBack?: (url: string) => void;
|
|
26
26
|
/** Custom tabs component to render in the header */
|
|
27
|
-
tabsComponent?: React.
|
|
27
|
+
tabsComponent?: React.ElementType;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Comparison component for side-by-side comparison of multiple items
|
|
@@ -3,7 +3,7 @@ export interface ComparisonHeaderProps {
|
|
|
3
3
|
/** Optional navigation function to go back */
|
|
4
4
|
onNavigateBack?: (url: string) => void;
|
|
5
5
|
/** Custom tabs component to render in the header */
|
|
6
|
-
tabsComponent?: React.
|
|
6
|
+
tabsComponent?: React.ElementType;
|
|
7
7
|
}
|
|
8
8
|
declare const _default: React.NamedExoticComponent<ComparisonHeaderProps>;
|
|
9
9
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const NoAvailableContent: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default NoAvailableContent;
|
|
1
|
+
export declare const NoAvailableContent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
export interface NoDataFoundProps {
|
|
3
3
|
/** Main text to display */
|
|
4
|
-
text: string;
|
|
4
|
+
text: string | ReactNode;
|
|
5
5
|
/** Additional descriptive text */
|
|
6
|
-
additionaltext?: string;
|
|
6
|
+
additionaltext?: string | ReactNode;
|
|
7
7
|
/** Children elements (e.g., action buttons) */
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
/** Custom icon to display instead of default */
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ShortcutKbdVariant = 'dark' | 'light';
|
|
2
|
+
export interface ShortcutKbdProps {
|
|
3
|
+
/** Array of keyboard shortcut keys to display (e.g., ['Meta', 'S'] or ['Ctrl', 'Enter']) */
|
|
4
|
+
shortcuts: string[];
|
|
5
|
+
/** Visual variant of the keyboard shortcuts */
|
|
6
|
+
variant?: ShortcutKbdVariant;
|
|
7
|
+
/** Additional CSS class name */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* ShortcutKbd component displays keyboard shortcuts with OS-aware key symbols.
|
|
12
|
+
*
|
|
13
|
+
* Keys like 'Meta', 'Alt', 'Shift', 'Control', 'Enter', 'Delete' are automatically
|
|
14
|
+
* converted to OS-specific symbols (e.g., ⌘ on macOS, Ctrl on Windows/Linux).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* // macOS: Shows "⌘ S", Windows: Shows "Ctrl S"
|
|
19
|
+
* <ShortcutKbd shortcuts={['Meta', 'S']} />
|
|
20
|
+
*
|
|
21
|
+
* // Light variant for dark backgrounds
|
|
22
|
+
* <ShortcutKbd shortcuts={['Meta', 'Shift', 'P']} variant="light" />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const ShortcutKbd: ({ shortcuts, variant, className, }: ShortcutKbdProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default ShortcutKbd;
|
package/dist/index.d.ts
CHANGED
|
@@ -207,6 +207,9 @@ export { FieldOptions } from "./components/forms/field-options";
|
|
|
207
207
|
export { LinearProgressBar, CircularProgressBar } from "./components/data-display/progress-bar";
|
|
208
208
|
export type { LinearProgressBarProps, CircularProgressBarProps } from "./components/data-display/progress-bar";
|
|
209
209
|
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";
|
|
210
|
+
export { NoAvailableContent as ComparisonNoAvailableContent } from "./components/data-display/comparison/components/NoAvailableContent";
|
|
210
211
|
export type { ComparisonProps, TComparisonContext, ComparisonProviderProps, ILayoutItem, ExitIconProps, LayoutOneIconProps, LayoutTwoIconProps, LayoutThreeIconProps, } from "./components/data-display/comparison";
|
|
211
212
|
export { FormulaInput, convertToPills, convertFromPills, getCursorPosition, setCursorPosition, getTextBeforeCursor, getCursorCoordinates, insertTextAtCursor, } from "./components/forms/formula-input";
|
|
212
213
|
export type { FormulaInputProps } from "./components/forms/formula-input";
|
|
214
|
+
export { ShortcutKbd } from "./components/shortcut-kbd";
|
|
215
|
+
export type { ShortcutKbdProps, ShortcutKbdVariant } from "./components/shortcut-kbd";
|