@lax-wp/design-system 0.9.10 → 0.9.11

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.
@@ -10,8 +10,6 @@ export interface MarkdownPreviewProps {
10
10
  linkTarget?: '_blank' | '_self';
11
11
  /** Whether to show syntax highlighting for code blocks */
12
12
  enableSyntaxHighlighting?: boolean;
13
- /** Whether to remove indentation from lists and align all content to the left */
14
- noIndent?: boolean;
15
13
  }
16
14
  /**
17
15
  * MarkdownPreview component displays rendered markdown content.
@@ -35,14 +33,12 @@ export interface MarkdownPreviewProps {
35
33
  * - Responsive images
36
34
  * - Dark mode support
37
35
  * - Configurable link behavior
38
- * - Optional no-indent mode for aligned content
39
36
  *
40
37
  * @example
41
38
  * ```tsx
42
39
  * <MarkdownPreview
43
40
  * content="# Hello World\n\nThis is **bold** text."
44
41
  * linkTarget="_blank"
45
- * noIndent={false}
46
42
  * />
47
43
  * ```
48
44
  */
@@ -6,8 +6,6 @@ export interface RichMarkdownInputProps {
6
6
  id?: string;
7
7
  /** Current markdown value */
8
8
  value?: string;
9
- /** Default value for the input */
10
- defaultValue?: string;
11
9
  /** Placeholder text for the textarea */
12
10
  placeholder?: string;
13
11
  /** Minimum number of visible text lines */
@@ -32,22 +30,6 @@ export interface RichMarkdownInputProps {
32
30
  maxLength?: number;
33
31
  /** Link target behavior: '_blank' for new tab, '_self' for current tab */
34
32
  linkTarget?: '_blank' | '_self';
35
- /** Error message to display */
36
- errorMessage?: string;
37
- /** Tooltip text */
38
- tooltip?: string;
39
- /** Whether to preserve original case (no auto-lowercase) */
40
- originalCase?: boolean;
41
- /** Icon to display at the end of the input */
42
- suffixIcon?: React.ReactNode;
43
- /** Whether the input is clearable */
44
- isClearable?: boolean;
45
- /** Ref for the input element */
46
- inputref?: React.RefObject<HTMLTextAreaElement>;
47
- /** Keyboard event handler */
48
- onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
49
- /** Whether to remove indentation from lists and align all content to the left in preview */
50
- noIndent?: boolean;
51
33
  /** Callback function called when the markdown value changes */
52
34
  onChange: (value: string) => void;
53
35
  }
@@ -58,25 +40,29 @@ export interface RichMarkdownInputProps {
58
40
  * - Bold (Ctrl+B) - Always visible
59
41
  * - Italic (Ctrl+I) - Always visible
60
42
  * - Underline (Ctrl+U) - Always visible
43
+ * - Strikethrough - Hidden on mobile (< 640px)
61
44
  *
62
45
  * **Lists:**
63
46
  * - Bullet lists - Always visible
64
47
  * - Numbered lists - Always visible
65
48
  *
49
+ * **Additional:**
50
+ * - Inline code (Ctrl+E) - Hidden on small screens (< 1024px)
51
+ * - Block quotes - Hidden on medium screens (< 1280px)
52
+ * - Headings - Hidden on small screens (< 1024px)
53
+ * - Links (Ctrl+K) - Hidden on medium screens (< 1280px)
54
+ * - Images - Supported in preview
55
+ * - Horizontal rules - Hidden on large screens (< 1536px)
56
+ *
66
57
  * **Features:**
67
58
  * - Edit/Preview toggle with icons
68
59
  * - Character counter (optional)
69
60
  * - Preview modal with scrolling
70
61
  * - Keyboard shortcuts
71
62
  * - Syntax highlighting for code blocks
72
- * - Responsive toolbar
63
+ * - Responsive toolbar (hides buttons progressively on smaller screens)
73
64
  * - Dark mode support
74
65
  * - Configurable link target behavior
75
- * - Error message display
76
- * - Tooltip support
77
- * - Clear button (optional)
78
- * - Suffix icon support
79
- * - Custom keyboard handlers
80
66
  *
81
67
  * @example
82
68
  * ```tsx
@@ -87,9 +73,6 @@ export interface RichMarkdownInputProps {
87
73
  * label="Description"
88
74
  * maxLength={300}
89
75
  * linkTarget="_blank"
90
- * isClearable
91
- * errorMessage="Invalid input"
92
- * tooltip="Use markdown formatting"
93
76
  * />
94
77
  * ```
95
78
  */