@lax-wp/design-system 0.9.13 → 0.9.15

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/index.es.js CHANGED
@@ -5684,7 +5684,7 @@ const mt = $e(({
5684
5684
  switch (t) {
5685
5685
  case "primary":
5686
5686
  return {
5687
- backgroundImage: "repeating-linear-gradient(3deg, #016DCF, #016DCF 10px, transparent 10px, transparent 19px, #016DCF 19px), repeating-linear-gradient(93deg, #016DCF, #016DCF 10px, transparent 10px, transparent 19px, #016DCF 19px), repeating-linear-gradient(183deg, #016DCF, #016DCF 10px, transparent 10px, transparent 19px, #016DCF 19px), repeating-linear-gradient(273deg, #016DCF, #016DCF 10px, transparent 10px, transparent 19px, #016DCF 19px)",
5687
+ backgroundImage: "repeating-linear-gradient(3deg, var(--color-primary-600), var(--color-primary-600) 10px, transparent 10px, transparent 19px, var(--color-primary-600) 19px), repeating-linear-gradient(93deg, var(--color-primary-600), var(--color-primary-600) 10px, transparent 10px, transparent 19px, var(--color-primary-600) 19px), repeating-linear-gradient(183deg, var(--color-primary-600), var(--color-primary-600) 10px, transparent 10px, transparent 19px, var(--color-primary-600) 19px), repeating-linear-gradient(273deg, var(--color-primary-600), var(--color-primary-600) 10px, transparent 10px, transparent 19px, var(--color-primary-600) 19px)",
5688
5688
  backgroundSize: "1px 100%, 100% 1px, 1px 100% , 100% 1px",
5689
5689
  backgroundPosition: "0 0, 0 0, 100% 0, 0 100%",
5690
5690
  backgroundRepeat: "no-repeat"
@@ -73771,39 +73771,42 @@ const Bne = {
73771
73771
  ref: i,
73772
73772
  className: z(
73773
73773
  "markdown-preview prose prose-sm dark:prose-invert max-w-none",
73774
- // Headings - consistent spacing
73775
- "[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:my-1 [&_h1]:leading-7",
73776
- "[&_h2]:text-xl [&_h2]:font-bold [&_h2]:my-1 [&_h2]:leading-7",
73777
- "[&_h3]:text-lg [&_h3]:font-semibold [&_h3]:my-1 [&_h3]:leading-6",
73778
- // Paragraphs
73779
- "[&_p]:my-1 [&_p]:text-sm [&_p]:font-medium [&_p]:leading-6",
73780
- // Lists - conditional indentation
73781
- a ? "[&_ul]:list-disc [&_ul]:ml-0 [&_ul]:pl-6 [&_ul]:space-y-1 [&_ul]:my-1" : "[&_ul]:list-disc [&_ul]:ml-8 [&_ul]:space-y-1 [&_ul]:my-1",
73782
- a ? "[&_ol]:list-decimal [&_ol]:ml-0 [&_ol]:pl-6 [&_ol]:space-y-1 [&_ol]:my-1" : "[&_ol]:list-decimal [&_ol]:ml-8 [&_ol]:space-y-1 [&_ol]:my-1",
73783
- "[&_li]:mb-0 [&_li]:text-sm [&_li]:font-medium [&_li]:leading-5",
73774
+ // Base typography - match input exactly
73775
+ "font-inter font-medium text-sm leading-4.5",
73776
+ // Headings - inherit base styling
73777
+ "[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:my-0 [&_h1]:leading-5 [&_h1]:text-inherit",
73778
+ "[&_h2]:text-xl [&_h2]:font-bold [&_h2]:my-0 [&_h2]:leading-5 [&_h2]:text-inherit",
73779
+ "[&_h3]:text-lg [&_h3]:font-semibold [&_h3]:my-0 [&_h3]:leading-5 [&_h3]:text-inherit",
73780
+ "[&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit",
73781
+ // Paragraphs - already inherits from base
73782
+ "[&_p]:my-0",
73783
+ // Lists - conditional indentation, match input
73784
+ a ? "[&_ul]:list-disc [&_ul]:ml-0 [&_ul]:pl-6 [&_ul]:space-y-0 [&_ul]:my-0" : "[&_ul]:list-disc [&_ul]:ml-5 [&_ul]:space-y-0 [&_ul]:my-0",
73785
+ a ? "[&_ol]:list-decimal [&_ol]:ml-0 [&_ol]:pl-6 [&_ol]:space-y-0 [&_ol]:my-0" : "[&_ol]:list-decimal [&_ol]:ml-5 [&_ol]:space-y-0 [&_ol]:my-0",
73786
+ "[&_li]:mb-0 [&_li::marker]:text-inherit",
73784
73787
  a ? "[&_li]:pl-2" : "",
73785
73788
  // Task list items (checkboxes) - hide bullets and adjust spacing
73786
73789
  "[&_li:has(input[type='checkbox'])]:list-none",
73787
73790
  a ? "[&_li:has(input[type='checkbox'])]:pl-0 [&_li:has(input[type='checkbox'])]:-ml-4.5" : "[&_li:has(input[type='checkbox'])]:-ml-4.5",
73788
73791
  "[&_li>input[type='checkbox']]:mr-2",
73789
- // Blockquotes
73792
+ // Blockquotes - match input line height
73790
73793
  "[&_blockquote]:border-l-4 [&_blockquote]:border-neutral-300 [&_blockquote]:dark:border-neutral-600",
73791
- a ? "[&_blockquote]:pl-4 [&_blockquote]:py-2 [&_blockquote]:italic [&_blockquote]:my-1 [&_blockquote]:leading-6 [&_blockquote]:ml-0" : "[&_blockquote]:pl-4 [&_blockquote]:py-2 [&_blockquote]:italic [&_blockquote]:my-1 [&_blockquote]:leading-6 [&_blockquote]:ml-4",
73794
+ a ? "[&_blockquote]:pl-4 [&_blockquote]:py-2 [&_blockquote]:italic [&_blockquote]:my-0 [&_blockquote]:leading-5 [&_blockquote]:ml-0" : "[&_blockquote]:pl-4 [&_blockquote]:py-2 [&_blockquote]:italic [&_blockquote]:my-0 [&_blockquote]:leading-5 [&_blockquote]:ml-4",
73792
73795
  // Links
73793
73796
  "[&_a]:text-primary-600 [&_a]:dark:text-primary-400 [&_a]:underline",
73794
73797
  // Text styles
73795
73798
  "[&_strong]:font-semibold [&_em]:italic [&_u]:underline [&_del]:line-through",
73796
73799
  // Images
73797
- "[&_img]:max-w-full [&_img]:h-auto [&_img]:rounded-lg [&_img]:my-1",
73800
+ "[&_img]:max-w-full [&_img]:h-auto [&_img]:rounded-lg [&_img]:my-0",
73798
73801
  // Tables
73799
- "[&_table]:w-full [&_table]:border-collapse [&_table]:my-1",
73802
+ "[&_table]:w-full [&_table]:border-collapse [&_table]:my-0",
73800
73803
  "[&_th]:border [&_th]:border-neutral-300 [&_th]:dark:border-neutral-600",
73801
73804
  "[&_th]:px-3 [&_th]:py-2 [&_th]:bg-neutral-50 [&_th]:dark:bg-neutral-800",
73802
73805
  "[&_th]:font-semibold [&_th]:text-left",
73803
73806
  "[&_td]:border [&_td]:border-neutral-300 [&_td]:dark:border-neutral-600",
73804
73807
  "[&_td]:px-3 [&_td]:py-2",
73805
73808
  // Horizontal rules
73806
- "[&_hr]:my-1 [&_hr]:border-neutral-300 [&_hr]:dark:border-neutral-600",
73809
+ "[&_hr]:my-0 [&_hr]:border-neutral-300 [&_hr]:dark:border-neutral-600",
73807
73810
  // Default text color (can be overridden by className)
73808
73811
  "text-[#101828] dark:text-neutral-100",
73809
73812
  // User className applied last for maximum specificity