@lax-wp/design-system 0.2.1 → 0.2.2

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.
Files changed (48) hide show
  1. package/dist/index.es.js +1629 -1628
  2. package/dist/index.umd.js +37 -37
  3. package/package.json +1 -1
  4. package/dist/components/buttons/option-button/OptionButton.d.ts +0 -79
  5. package/dist/components/data-display/badge/Badge.d.ts +0 -44
  6. package/dist/components/data-display/banner/Banner.d.ts +0 -41
  7. package/dist/components/data-display/code-editor/CodeEditor.d.ts +0 -4
  8. package/dist/components/data-display/code-editor/JsonGrid.d.ts +0 -14
  9. package/dist/components/data-display/code-editor/Tabs.d.ts +0 -12
  10. package/dist/components/data-display/diff-viewer/DiffViewer.d.ts +0 -64
  11. package/dist/components/data-display/label-value/LabelValue.d.ts +0 -121
  12. package/dist/components/data-display/modal/Modal.d.ts +0 -77
  13. package/dist/components/data-display/pdf-viewer/PdfViewer.d.ts +0 -45
  14. package/dist/components/data-display/popper/Popper.d.ts +0 -57
  15. package/dist/components/data-display/resizable-sidebar/ResizableSidebar.d.ts +0 -54
  16. package/dist/components/data-display/status-color-mapping/StatusColorMapping.d.ts +0 -29
  17. package/dist/components/data-display/tag/Tag.d.ts +0 -53
  18. package/dist/components/data-display/typography/Typography.d.ts +0 -15
  19. package/dist/components/feedback/toast/Toast.d.ts +0 -29
  20. package/dist/components/floating-bar/FloatingBar.d.ts +0 -147
  21. package/dist/components/forms/checkbox/Checkbox.d.ts +0 -55
  22. package/dist/components/forms/color-picker/ColorPicker.d.ts +0 -60
  23. package/dist/components/forms/creatable-select/CreatableSelect.d.ts +0 -92
  24. package/dist/components/forms/currency-input/CurrencyInputField.d.ts +0 -73
  25. package/dist/components/forms/currency-input/currency.constant.d.ts +0 -12
  26. package/dist/components/forms/date-range/DateRange.d.ts +0 -72
  27. package/dist/components/forms/debounce-input/DebounceInputField.d.ts +0 -76
  28. package/dist/components/forms/file-upload/FileUpload.d.ts +0 -81
  29. package/dist/components/forms/input-field/InputField.d.ts +0 -62
  30. package/dist/components/forms/multi-file-upload/MultiFileUpload.d.ts +0 -78
  31. package/dist/components/forms/percentage-input/PercentageInputField.d.ts +0 -75
  32. package/dist/components/forms/text-field/TextField.d.ts +0 -48
  33. package/dist/components/forms/toggle/Toggle.d.ts +0 -71
  34. package/dist/components/icons/CloseIcon.d.ts +0 -16
  35. package/dist/components/icons/HelpIcon.d.ts +0 -6
  36. package/dist/components/icons/SearchIcon.d.ts +0 -6
  37. package/dist/components/tooltip/Tooltip.d.ts +0 -8
  38. package/dist/constants/colors.d.ts +0 -263
  39. package/dist/hooks/useOutsideClick.d.ts +0 -28
  40. package/dist/hooks/usePythonSyntax.d.ts +0 -28
  41. package/dist/hooks/useTheme.d.ts +0 -6
  42. package/dist/index.d.ts +0 -67
  43. package/dist/services/monacoManager.d.ts +0 -28
  44. package/dist/types/index.d.ts +0 -66
  45. package/dist/utils/formatters.d.ts +0 -24
  46. package/dist/utils/messageConstants.d.ts +0 -16
  47. package/dist/utils/tagUtils.d.ts +0 -12
  48. package/dist/utils/utilities.d.ts +0 -13
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lax-wp/design-system",
3
3
  "private": false,
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -1,79 +0,0 @@
1
- import { type ReactNode, type MouseEvent } from "react";
2
- /**
3
- * Available button sizes
4
- */
5
- export type OptionButtonSize = "small" | "medium" | "large";
6
- /**
7
- * Available button variants
8
- */
9
- export type OptionButtonVariant = "default" | "highlight" | "destructive";
10
- /**
11
- * Props for the OptionButton component
12
- */
13
- export interface OptionButtonProps {
14
- /** Button text content */
15
- text: string;
16
- /** Click handler for the button */
17
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
18
- /** Whether the button is disabled */
19
- disabled?: boolean;
20
- /** Whether the button should be hidden */
21
- hidden?: boolean;
22
- /** Additional CSS classes */
23
- className?: string;
24
- /** Button size variant */
25
- size?: OptionButtonSize;
26
- /** Button visual variant */
27
- variant?: OptionButtonVariant;
28
- /** Icon to display before the text */
29
- icon?: ReactNode;
30
- /** Icon to display after the text (trailing) */
31
- trailingIcon?: ReactNode;
32
- /** Whether to hide hover effects */
33
- hideHoverEffect?: boolean;
34
- /** Callback when the button is closed */
35
- onClose?: () => void;
36
- /** Whether to stop event propagation on click */
37
- stopPropagation?: boolean;
38
- /** Toggle functionality props */
39
- onToggle?: (checked: boolean) => void;
40
- /** Whether the toggle is checked (if onToggle is provided) */
41
- checked?: boolean;
42
- /** Text to highlight within the button text */
43
- highlightText?: string;
44
- /** Whether to truncate text */
45
- truncateText?: boolean;
46
- /** Whether to show a checkmark tick */
47
- showTick?: boolean;
48
- /** Custom width for the text container */
49
- textWidth?: string;
50
- /** Tooltip text to display */
51
- tooltip?: string;
52
- /** Suffix badge content */
53
- suffixBadge?: ReactNode;
54
- /** Custom aria-label for accessibility */
55
- "aria-label"?: string;
56
- /** Test ID for testing purposes */
57
- "data-testid"?: string;
58
- /** Whether the button should take full width */
59
- fullWidth?: boolean;
60
- /** Error state */
61
- error?: boolean;
62
- /** Loading state */
63
- loading?: boolean;
64
- }
65
- /**
66
- * OptionButton component provides a flexible button for lists, menus, and option selections
67
- *
68
- * @example
69
- * ```tsx
70
- * <OptionButton
71
- * text="Save Document"
72
- * icon={<SaveIcon />}
73
- * onClick={() => console.log('Save clicked')}
74
- * size="medium"
75
- * variant="default"
76
- * />
77
- * ```
78
- */
79
- export declare const OptionButton: import("react").ForwardRefExoticComponent<OptionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,44 +0,0 @@
1
- /**
2
- * Available badge status options
3
- */
4
- export type BadgeStatus = "default" | "primary" | "warning" | "error" | "neutral" | "success" | "info";
5
- /**
6
- * Badge appearance variants
7
- */
8
- export type BadgeAppearance = "filled" | "outline";
9
- /**
10
- * Badge size variants
11
- */
12
- export type BadgeSize = "sm" | "md" | "lg";
13
- /**
14
- * Props for the Badge component
15
- */
16
- export interface BadgeProps {
17
- /** The badge status/color variant */
18
- status?: BadgeStatus;
19
- /** The text content to display */
20
- children: string;
21
- /** Visual appearance style */
22
- appearance?: BadgeAppearance;
23
- /** Size variant */
24
- size?: BadgeSize;
25
- /** Additional CSS classes for the wrapper */
26
- className?: string;
27
- /** Whether to use rounded pill shape */
28
- isRounded?: boolean;
29
- /** Whether to capitalize the text */
30
- capitalize?: boolean;
31
- /** Custom aria-label for accessibility */
32
- "aria-label"?: string;
33
- }
34
- /**
35
- * Badge component displays small status indicators or labels
36
- *
37
- * @example
38
- * ```tsx
39
- * <Badge status="success">Active</Badge>
40
- * <Badge status="error" appearance="filled">Error</Badge>
41
- * <Badge status="warning" size="sm" isRounded>Warning</Badge>
42
- * ```
43
- */
44
- export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,41 +0,0 @@
1
- /**
2
- * Available banner status options
3
- */
4
- export type BannerStatus = "success" | "error" | "warning" | "info" | "archived" | "canceled" | "queued" | "paused" | "awaiting_action" | "skipped" | "pending";
5
- /**
6
- * Props for the Banner component
7
- */
8
- export interface BannerProps {
9
- /** The banner status/color variant */
10
- status: BannerStatus;
11
- /** The main content to display */
12
- children: React.ReactNode;
13
- /** Additional content to display on the right side */
14
- additionalChildren?: React.ReactNode;
15
- /** Component to render when expanded (for error status) */
16
- ExpandedComponent?: React.ComponentType<{
17
- children: React.ReactNode;
18
- }>;
19
- /** Whether the banner is expandable */
20
- expandable?: boolean;
21
- /** Custom icon to override default status icon */
22
- icon?: React.ReactNode;
23
- /** Additional CSS classes for the wrapper */
24
- className?: string;
25
- /** Callback when banner is clicked (if expandable) */
26
- onClick?: () => void;
27
- /** Custom aria-label for accessibility */
28
- "aria-label"?: string;
29
- }
30
- /**
31
- * Banner component displays important information with status-based styling
32
- *
33
- * @example
34
- * ```tsx
35
- * <Banner status="success">Operation completed successfully</Banner>
36
- * <Banner status="error" expandable ExpandedComponent={ErrorDetails}>
37
- * Error occurred
38
- * </Banner>
39
- * ```
40
- */
41
- export declare const Banner: import("react").ForwardRefExoticComponent<BannerProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +0,0 @@
1
- import { type FC } from 'react';
2
- import { type CodeEditorProps } from '../../../types';
3
- export type TTabKey = 'JSON' | 'Grid';
4
- export declare const CodeEditor: FC<CodeEditorProps>;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export interface JsonGridProps {
3
- isFullScreen: boolean;
4
- allExpanded: boolean;
5
- toggleAll: () => void;
6
- isEditMode: boolean;
7
- isDarkMode: boolean;
8
- style: React.CSSProperties;
9
- value: string;
10
- onChange?: (value: string) => void;
11
- setIsAddKeyModalOpen: (open: boolean) => void;
12
- isAddKeyModalOpen: boolean;
13
- }
14
- export declare const JsonGrid: React.FC<JsonGridProps>;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface TabsProps<T extends string> {
3
- variant?: 'default' | 'switch';
4
- tabs: T[];
5
- activeTab: T;
6
- onTabClick: (tab: T) => void;
7
- size?: 'sm' | 'md' | 'lg';
8
- tabIcons?: Partial<Record<T, React.ReactNode>>;
9
- height?: string;
10
- className?: string;
11
- }
12
- export declare const Tabs: <T extends string>({ variant, tabs, activeTab, onTabClick, size, tabIcons, height, className }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,64 +0,0 @@
1
- import { type Change } from "diff";
2
- /**
3
- * Available diff types for comparison
4
- */
5
- export type DiffType = "words" | "lines" | "chars";
6
- /**
7
- * Theme variants for diff display
8
- */
9
- export type DiffTheme = "default" | "minimal" | "github";
10
- /**
11
- * Props for the DiffViewer component
12
- */
13
- export interface DiffViewerProps {
14
- /** The original/old text content */
15
- oldText: string;
16
- /** The new/updated text content */
17
- newText: string;
18
- /** Type of diff comparison to perform */
19
- diffType?: DiffType;
20
- /** Visual theme for the diff display */
21
- theme?: DiffTheme;
22
- /** Whether to show line numbers (for line diffs) */
23
- showLineNumbers?: boolean;
24
- /** Whether to enable word wrapping */
25
- wordWrap?: boolean;
26
- /** Additional CSS classes for the wrapper */
27
- className?: string;
28
- /** Additional CSS classes for diff segments */
29
- segmentClassName?: string;
30
- /** Custom styles for added content */
31
- addedClassName?: string;
32
- /** Custom styles for removed content */
33
- removedClassName?: string;
34
- /** Custom styles for unchanged content */
35
- unchangedClassName?: string;
36
- /** Whether to ignore case differences */
37
- ignoreCase?: boolean;
38
- /** Whether to ignore whitespace (for line diffs only) */
39
- ignoreWhitespace?: boolean;
40
- /** Maximum width for the diff container */
41
- maxWidth?: string | number;
42
- /** Custom aria-label for accessibility */
43
- "aria-label"?: string;
44
- /** Callback when diff changes are calculated */
45
- onDiffCalculated?: (changes: Change[]) => void;
46
- }
47
- /**
48
- * DiffViewer component displays text differences with visual highlighting
49
- *
50
- * @example
51
- * ```tsx
52
- * <DiffViewer
53
- * oldText="Hello world"
54
- * newText="Hello beautiful world"
55
- * diffType="words"
56
- * theme="github"
57
- * />
58
- * ```
59
- */
60
- export declare const DiffViewer: import("react").ForwardRefExoticComponent<DiffViewerProps & import("react").RefAttributes<HTMLDivElement>>;
61
- /**
62
- * Legacy export for backward compatibility
63
- */
64
- export declare const InlineDiffHighlighter: import("react").ForwardRefExoticComponent<DiffViewerProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,121 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Available label value size options
4
- */
5
- export type LabelValueSize = 'small' | 'medium' | 'large';
6
- /**
7
- * Available highlight color options
8
- */
9
- export type HighlightColor = 'success' | 'warning' | 'error' | 'info';
10
- /**
11
- * Theme mode for styling
12
- */
13
- export type ThemeMode = 'light' | 'dark';
14
- /**
15
- * Upload handler function type
16
- */
17
- export type UploadHandler = (file: File) => void | Promise<void>;
18
- /**
19
- * Master data item interface
20
- */
21
- export interface MasterDataItem {
22
- is_master_data?: boolean;
23
- reference?: string;
24
- group_technical_name?: string;
25
- currency_code?: string;
26
- }
27
- /**
28
- * Risk details interface
29
- */
30
- export interface RiskDetails {
31
- color?: string;
32
- [key: string]: any;
33
- }
34
- /**
35
- * Master data modal component props
36
- */
37
- export interface MasterDataModalProps {
38
- isVisible: boolean;
39
- onClose: () => void;
40
- masterdataInfo: any;
41
- }
42
- /**
43
- * Props for the LabelValue component
44
- */
45
- export interface LabelValueProps {
46
- /** The label text to display */
47
- label?: string;
48
- /** The value to display */
49
- value?: string | number | boolean;
50
- /** Additional CSS classes */
51
- className?: string;
52
- /** Data type for formatting */
53
- type?: 'string' | 'number' | 'boolean' | 'currency' | 'date' | 'datetime' | 'percentage' | 'url';
54
- /** Tags to display with the label */
55
- tags?: Array<{
56
- label: string;
57
- color?: string;
58
- value?: string;
59
- }>;
60
- /** Tooltip text for the help icon */
61
- tooltip?: string;
62
- /** Master data item information */
63
- items?: MasterDataItem;
64
- /** Whether the value has been modified */
65
- isModified?: boolean;
66
- /** Whether the value has been changed */
67
- isChanged?: boolean;
68
- /** Size variant */
69
- size?: LabelValueSize;
70
- /** Whether the value is highlighted */
71
- isHighlighted?: boolean;
72
- /** Deleted value for diff display */
73
- deletedValue?: string;
74
- /** Highlight color for changes */
75
- highlightColor?: HighlightColor;
76
- /** Whether search is active */
77
- isSearchActive?: boolean;
78
- /** Whether to show original boolean value */
79
- originalValue?: boolean;
80
- /** Whether to show diff between old and new values */
81
- showDiff?: boolean;
82
- /** Theme mode */
83
- theme?: ThemeMode;
84
- /** Upload handler function */
85
- onUpload?: UploadHandler;
86
- /** Whether the component accepts file uploads */
87
- acceptsUpload?: boolean;
88
- /** Master data modal component */
89
- MasterDataModal?: React.ComponentType<MasterDataModalProps>;
90
- /** Risk analysis data */
91
- riskDetails?: RiskDetails;
92
- /** Whether risk analysis is open */
93
- isRiskAnalysisOpen?: boolean;
94
- /** Custom aria-label for accessibility */
95
- 'aria-label'?: string;
96
- }
97
- /**
98
- * LabelValue component displays a label-value pair with various formatting options
99
- *
100
- * @example
101
- * ```tsx
102
- * <LabelValue
103
- * label="Status"
104
- * value="Active"
105
- * type="string"
106
- * size="medium"
107
- * />
108
- * <LabelValue
109
- * label="Price"
110
- * value={99.99}
111
- * type="currency"
112
- * items={{ currency_code: 'USD' }}
113
- * />
114
- * <LabelValue
115
- * label="Upload File"
116
- * acceptsUpload
117
- * onUpload={handleUpload}
118
- * />
119
- * ```
120
- */
121
- export declare const LabelValue: React.ForwardRefExoticComponent<LabelValueProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,77 +0,0 @@
1
- import { type ReactNode } from "react";
2
- /**
3
- * Modal size variants
4
- */
5
- export type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
6
- /**
7
- * Modal appearance variants
8
- */
9
- export type ModalAppearance = "default" | "centered" | "fullscreen";
10
- /**
11
- * Props for the Modal component
12
- */
13
- export interface ModalProps {
14
- /** Whether the modal is open */
15
- open: boolean;
16
- /** Modal content */
17
- children: ReactNode;
18
- /** Modal title */
19
- title?: string | ReactNode;
20
- /** Whether to show the backdrop mask */
21
- mask?: boolean;
22
- /** Whether to show only the body content without header */
23
- onlyBody?: boolean;
24
- /** Whether to add spacing to the body */
25
- bodySpacing?: boolean;
26
- /** Custom header content on the right side */
27
- headerRightContent?: ReactNode;
28
- /** Container element ID for portal rendering */
29
- parentContainer?: string;
30
- /** Whether to add a line after the header */
31
- addLineAfterHeader?: boolean;
32
- /** Custom z-index for the modal */
33
- zIndex?: number;
34
- /** Whether to render as a form */
35
- asForm?: boolean;
36
- /** Form submit handler */
37
- onSubmit?: () => void;
38
- /** Whether to show the close button */
39
- showCloseButton?: boolean;
40
- /** Whether to remove padding */
41
- noPadding?: boolean;
42
- /** Close handler */
43
- onClose?: () => void;
44
- /** Cancel handler */
45
- onCancel?: () => void;
46
- /** Upload handler function */
47
- onUpload?: (files: FileList | null) => void;
48
- /** Modal size */
49
- size?: ModalSize;
50
- /** Modal appearance */
51
- appearance?: ModalAppearance;
52
- /** Additional CSS classes */
53
- className?: string;
54
- /** Custom width */
55
- width?: number | string;
56
- /** Custom height */
57
- height?: number | string;
58
- /** Footer content */
59
- footer?: ReactNode;
60
- /** Whether the modal is closable by clicking outside */
61
- closable?: boolean;
62
- /** Whether to center the modal */
63
- centered?: boolean;
64
- /** Custom styles */
65
- style?: React.CSSProperties;
66
- }
67
- /**
68
- * Modal component for displaying overlay content
69
- *
70
- * @example
71
- * ```tsx
72
- * <Modal open={isOpen} onClose={() => setIsOpen(false)} title="Example Modal">
73
- * <p>Modal content goes here</p>
74
- * </Modal>
75
- * ```
76
- */
77
- export declare const Modal: import("react").ForwardRefExoticComponent<ModalProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,45 +0,0 @@
1
- /**
2
- * Props for the PdfViewer component
3
- */
4
- export interface PdfViewerProps {
5
- /** URL of the PDF file to display */
6
- pdfUrl: string;
7
- /** Width of the viewer */
8
- width?: string | number;
9
- /** Height of the viewer */
10
- height?: string | number;
11
- /** Additional CSS classes for the wrapper */
12
- className?: string;
13
- /** Additional CSS classes for the iframe */
14
- iframeClassName?: string;
15
- /** Title for the PDF viewer iframe */
16
- title?: string;
17
- /** Whether to show loading state */
18
- showLoading?: boolean;
19
- /** Custom loading component */
20
- loadingComponent?: React.ReactNode;
21
- /** Custom error component */
22
- errorComponent?: React.ReactNode;
23
- /** Callback when PDF fails to load */
24
- onError?: () => void;
25
- /** Callback when PDF loads successfully */
26
- onLoad?: () => void;
27
- /** Whether to allow fullscreen */
28
- allowFullScreen?: boolean;
29
- /** Custom aria-label for accessibility */
30
- "aria-label"?: string;
31
- }
32
- /**
33
- * PdfViewer component displays PDF documents in an embedded iframe
34
- *
35
- * @example
36
- * ```tsx
37
- * <PdfViewer
38
- * pdfUrl="/documents/report.pdf"
39
- * width="100%"
40
- * height="600px"
41
- * title="Monthly Report"
42
- * />
43
- * ```
44
- */
45
- export declare const PdfViewer: import("react").ForwardRefExoticComponent<PdfViewerProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,57 +0,0 @@
1
- /**
2
- * Available placement options for the Popper
3
- */
4
- export type PopperPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
5
- /**
6
- * Props for the Popper component
7
- */
8
- export interface PopperProps {
9
- /** The trigger element (button content) */
10
- children: React.ReactNode;
11
- /** The popper content to display */
12
- component: React.ReactNode;
13
- /** Placement position relative to trigger */
14
- placement?: PopperPlacement;
15
- /** Whether the popper is open */
16
- isOpen: boolean;
17
- /** Function to toggle the popper open/closed state */
18
- toggleMenu?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
19
- /** Portal container ID (defaults to document.body) */
20
- parentContainer?: string;
21
- /** Whether to remove default spacing on trigger */
22
- noSpacing?: boolean;
23
- /** Additional CSS classes for the trigger button */
24
- triggerClassName?: string;
25
- /** Additional CSS classes for the popper container */
26
- containerClassName?: string;
27
- /** Additional CSS classes for the wrapper */
28
- className?: string;
29
- /** Whether to show arrow pointing to trigger */
30
- showArrow?: boolean;
31
- /** Custom offset from trigger element */
32
- offset?: number;
33
- /** Whether to disable outside click handling */
34
- disableOutsideClick?: boolean;
35
- /** Custom aria-label for accessibility */
36
- "aria-label"?: string;
37
- /** Whether trigger is disabled */
38
- disabled?: boolean;
39
- }
40
- /**
41
- * Popper component provides positioned floating content relative to a trigger element
42
- *
43
- * @example
44
- * ```tsx
45
- * const [isOpen, setIsOpen] = useState(false);
46
- *
47
- * <Popper
48
- * isOpen={isOpen}
49
- * toggleMenu={() => setIsOpen(!isOpen)}
50
- * placement="bottom-start"
51
- * component={<MenuContent />}
52
- * >
53
- * <button>Open Menu</button>
54
- * </Popper>
55
- * ```
56
- */
57
- export declare const Popper: import("react").ForwardRefExoticComponent<PopperProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,54 +0,0 @@
1
- /**
2
- * Sidebar placement options
3
- */
4
- export type ResizableSidebarPlacement = "left" | "right";
5
- /**
6
- * Theme options for the sidebar
7
- */
8
- export type ResizableSidebarTheme = "light" | "dark";
9
- /**
10
- * Props for the ResizableSidebar component
11
- */
12
- export interface ResizableSidebarProps {
13
- /** Whether the sidebar is open */
14
- isOpen: boolean;
15
- /** Content to display in the sidebar */
16
- children: React.ReactNode;
17
- /** Whether to display in full screen mode */
18
- fullScreen?: boolean;
19
- /** Callback when drag/resize ends */
20
- onDragEnd?: (() => void) | null;
21
- /** Callback when resize occurs */
22
- onResize?: (width: number) => void;
23
- /** Additional CSS classes for the wrapper */
24
- className?: string;
25
- /** Default size of the sidebar */
26
- defaultSize?: string;
27
- /** Minimum width of the sidebar */
28
- minWidth?: number;
29
- /** Placement of the sidebar */
30
- placement?: ResizableSidebarPlacement;
31
- /** Parent container ID for portal rendering */
32
- parentContainer?: string;
33
- /** Header content */
34
- header?: React.ReactNode;
35
- /** Unique ID for the sidebar */
36
- id?: string;
37
- /** Additional CSS classes for the container */
38
- containerClassName?: string;
39
- /** Whether to ignore parent container height */
40
- ignoreParentContainerHeight?: boolean;
41
- /** Custom height */
42
- height?: string;
43
- /** Whether the main sidebar is expanded (affects max width calculation) */
44
- isMainSidebarExpanded?: boolean;
45
- /** Width of the main sidebar when expanded */
46
- mainSidebarExpandedWidth?: number;
47
- /** Width of the main sidebar when collapsed */
48
- mainSidebarCollapsedWidth?: number;
49
- /** Height offset for navbar */
50
- navbarHeight?: number;
51
- /** Theme for styling */
52
- theme?: ResizableSidebarTheme;
53
- }
54
- export declare const ResizableSidebar: import("react").ForwardRefExoticComponent<ResizableSidebarProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,29 +0,0 @@
1
- /**
2
- * Available status color options for the StatusColorMapping component
3
- */
4
- export type StatusColor = "blue" | "green" | "yellow" | "orange" | "red" | "navy" | "grey" | "purple" | "teal" | "peach";
5
- /**
6
- * Props for the StatusColorMapping component
7
- */
8
- export interface StatusColorMappingProps {
9
- /** The status color variant to apply */
10
- status?: StatusColor;
11
- /** The text content to display */
12
- children: string;
13
- /** Additional CSS classes for the wrapper */
14
- className?: string;
15
- /** Whether to use small size variant */
16
- size?: "small" | "medium" | "large";
17
- /** Custom aria-label for accessibility */
18
- "aria-label"?: string;
19
- }
20
- /**
21
- * StatusColorMapping component displays text with status-based color styling
22
- *
23
- * @example
24
- * ```tsx
25
- * <StatusColorMapping status="green">Active</StatusColorMapping>
26
- * <StatusColorMapping status="red" size="small">Error</StatusColorMapping>
27
- * ```
28
- */
29
- export declare const StatusColorMapping: import("react").ForwardRefExoticComponent<StatusColorMappingProps & import("react").RefAttributes<HTMLSpanElement>>;