@lax-wp/design-system 0.9.14 → 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 +18 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
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,
|
|
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,40 +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
|
-
//
|
|
73775
|
-
"
|
|
73776
|
-
|
|
73777
|
-
"[&
|
|
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",
|
|
73778
73780
|
"[&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit",
|
|
73779
|
-
// Paragraphs
|
|
73780
|
-
"[&_p]:my-
|
|
73781
|
-
// Lists - conditional indentation
|
|
73782
|
-
a ? "[&_ul]:list-disc [&_ul]:ml-0 [&_ul]:pl-6 [&_ul]:space-y-
|
|
73783
|
-
a ? "[&_ol]:list-decimal [&_ol]:ml-0 [&_ol]:pl-6 [&_ol]:space-y-
|
|
73784
|
-
"[&_li]:mb-0 [&_li
|
|
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",
|
|
73785
73787
|
a ? "[&_li]:pl-2" : "",
|
|
73786
73788
|
// Task list items (checkboxes) - hide bullets and adjust spacing
|
|
73787
73789
|
"[&_li:has(input[type='checkbox'])]:list-none",
|
|
73788
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",
|
|
73789
73791
|
"[&_li>input[type='checkbox']]:mr-2",
|
|
73790
|
-
// Blockquotes
|
|
73792
|
+
// Blockquotes - match input line height
|
|
73791
73793
|
"[&_blockquote]:border-l-4 [&_blockquote]:border-neutral-300 [&_blockquote]:dark:border-neutral-600",
|
|
73792
|
-
a ? "[&_blockquote]:pl-4 [&_blockquote]:py-2 [&_blockquote]:italic [&_blockquote]:my-
|
|
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",
|
|
73793
73795
|
// Links
|
|
73794
73796
|
"[&_a]:text-primary-600 [&_a]:dark:text-primary-400 [&_a]:underline",
|
|
73795
73797
|
// Text styles
|
|
73796
73798
|
"[&_strong]:font-semibold [&_em]:italic [&_u]:underline [&_del]:line-through",
|
|
73797
73799
|
// Images
|
|
73798
|
-
"[&_img]:max-w-full [&_img]:h-auto [&_img]:rounded-lg [&_img]:my-
|
|
73800
|
+
"[&_img]:max-w-full [&_img]:h-auto [&_img]:rounded-lg [&_img]:my-0",
|
|
73799
73801
|
// Tables
|
|
73800
|
-
"[&_table]:w-full [&_table]:border-collapse [&_table]:my-
|
|
73802
|
+
"[&_table]:w-full [&_table]:border-collapse [&_table]:my-0",
|
|
73801
73803
|
"[&_th]:border [&_th]:border-neutral-300 [&_th]:dark:border-neutral-600",
|
|
73802
73804
|
"[&_th]:px-3 [&_th]:py-2 [&_th]:bg-neutral-50 [&_th]:dark:bg-neutral-800",
|
|
73803
73805
|
"[&_th]:font-semibold [&_th]:text-left",
|
|
73804
73806
|
"[&_td]:border [&_td]:border-neutral-300 [&_td]:dark:border-neutral-600",
|
|
73805
73807
|
"[&_td]:px-3 [&_td]:py-2",
|
|
73806
73808
|
// Horizontal rules
|
|
73807
|
-
"[&_hr]:my-
|
|
73809
|
+
"[&_hr]:my-0 [&_hr]:border-neutral-300 [&_hr]:dark:border-neutral-600",
|
|
73808
73810
|
// Default text color (can be overridden by className)
|
|
73809
73811
|
"text-[#101828] dark:text-neutral-100",
|
|
73810
73812
|
// User className applied last for maximum specificity
|