@vaneui/md 0.0.3-alpha.20250804165801.513897c → 0.0.3-alpha.20250807150626.4231a8a

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.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import { Col, Title, Text, Code, Link, List, ListItem, Card, Divider } from '@vaneui/ui';
3
+ import { Col, Title, Text, Code, Link, Img, List, ListItem, Card, Divider } from '@vaneui/ui';
4
4
 
5
5
  var __create = Object.create;
6
6
  var __defProp = Object.defineProperty;
@@ -8600,7 +8600,7 @@ const MdLink = (props) => {
8600
8600
 
8601
8601
  const MdImage = (props) => {
8602
8602
  const { src, alt, title, ...rest } = props;
8603
- return (jsx("img", { ...rest, title: title, src: src, alt: alt || "", style: { display: 'block', maxWidth: '100%', height: 'auto', borderRadius: '0.5rem' } }));
8603
+ return (jsx(Img, { ...rest, title: title, src: src, alt: alt || "" }));
8604
8604
  };
8605
8605
 
8606
8606
  const MdList = (props) => {
package/dist/index.js CHANGED
@@ -8602,7 +8602,7 @@ const MdLink = (props) => {
8602
8602
 
8603
8603
  const MdImage = (props) => {
8604
8604
  const { src, alt, title, ...rest } = props;
8605
- return (jsxRuntime.jsx("img", { ...rest, title: title, src: src, alt: alt || "", style: { display: 'block', maxWidth: '100%', height: 'auto', borderRadius: '0.5rem' } }));
8605
+ return (jsxRuntime.jsx(ui.Img, { ...rest, title: title, src: src, alt: alt || "" }));
8606
8606
  };
8607
8607
 
8608
8608
  const MdList = (props) => {
@@ -124,6 +124,20 @@
124
124
  --filled-border-color-warning: var(--color-amber-600, #d97706);
125
125
  --filled-border-color-info: var(--color-cyan-600, #0891b2);
126
126
  --filled-border-color-link: var(--color-blue-600, #2563eb);
127
+
128
+ /* UI Component Border Radius Sizes */
129
+ --ui-border-radius-xs: 0.125rem;
130
+ --ui-border-radius-sm: 0.25rem;
131
+ --ui-border-radius-md: 0.375rem;
132
+ --ui-border-radius-lg: 0.5rem;
133
+ --ui-border-radius-xl: 0.625rem;
134
+
135
+ /* Layout Component Border Radius Sizes */
136
+ --layout-border-radius-xs: 0.375rem;
137
+ --layout-border-radius-sm: 0.5rem;
138
+ --layout-border-radius-md: 0.625rem;
139
+ --layout-border-radius-lg: 0.75rem;
140
+ --layout-border-radius-xl: 0.875rem;
127
141
  }
128
142
  /*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
129
143
  @layer theme {
@@ -230,13 +244,6 @@
230
244
  --tracking-tight: -0.025em;
231
245
  --tracking-wide: 0.025em;
232
246
  --leading-relaxed: 1.625;
233
- --radius-xs: 0.125rem;
234
- --radius-sm: 0.25rem;
235
- --radius-md: 0.375rem;
236
- --radius-lg: 0.5rem;
237
- --radius-xl: 0.75rem;
238
- --radius-2xl: 1rem;
239
- --radius-3xl: 1.5rem;
240
247
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
241
248
  --animate-bounce: bounce 1s infinite;
242
249
  --default-transition-duration: 150ms;
@@ -343,6 +350,16 @@
343
350
  --filled-border-color-warning: var(--color-amber-600, #d97706);
344
351
  --filled-border-color-info: var(--color-cyan-600, #0891b2);
345
352
  --filled-border-color-link: var(--color-blue-600, #2563eb);
353
+ --ui-border-radius-xs: 0.125rem;
354
+ --ui-border-radius-sm: 0.25rem;
355
+ --ui-border-radius-md: 0.375rem;
356
+ --ui-border-radius-lg: 0.5rem;
357
+ --ui-border-radius-xl: 0.625rem;
358
+ --layout-border-radius-xs: 0.375rem;
359
+ --layout-border-radius-sm: 0.5rem;
360
+ --layout-border-radius-md: 0.625rem;
361
+ --layout-border-radius-lg: 0.75rem;
362
+ --layout-border-radius-xl: 0.875rem;
346
363
  }
347
364
  }
348
365
  @layer base {
@@ -491,6 +508,9 @@
491
508
  }
492
509
  }
493
510
  @layer utilities {
511
+ .invisible {
512
+ visibility: hidden;
513
+ }
494
514
  .visible {
495
515
  visibility: visible;
496
516
  }
@@ -512,6 +532,12 @@
512
532
  .isolate {
513
533
  isolation: isolate;
514
534
  }
535
+ .col-start-1 {
536
+ grid-column-start: 1;
537
+ }
538
+ .row-start-1 {
539
+ grid-row-start: 1;
540
+ }
515
541
  .container {
516
542
  width: 100%;
517
543
  @media (width >= 40rem) {
@@ -569,12 +595,48 @@
569
595
  .table-cell {
570
596
  display: table-cell;
571
597
  }
598
+ .h-3 {
599
+ height: calc(var(--spacing) * 3);
600
+ }
601
+ .h-3\.5 {
602
+ height: calc(var(--spacing) * 3.5);
603
+ }
604
+ .h-4 {
605
+ height: calc(var(--spacing) * 4);
606
+ }
607
+ .h-4\.5 {
608
+ height: calc(var(--spacing) * 4.5);
609
+ }
610
+ .h-5 {
611
+ height: calc(var(--spacing) * 5);
612
+ }
613
+ .h-6 {
614
+ height: calc(var(--spacing) * 6);
615
+ }
616
+ .h-7 {
617
+ height: calc(var(--spacing) * 7);
618
+ }
572
619
  .h-fit {
573
620
  height: fit-content;
574
621
  }
575
622
  .h-px {
576
623
  height: 1px;
577
624
  }
625
+ .w-3 {
626
+ width: calc(var(--spacing) * 3);
627
+ }
628
+ .w-3\.5 {
629
+ width: calc(var(--spacing) * 3.5);
630
+ }
631
+ .w-4 {
632
+ width: calc(var(--spacing) * 4);
633
+ }
634
+ .w-4\.5 {
635
+ width: calc(var(--spacing) * 4.5);
636
+ }
637
+ .w-5 {
638
+ width: calc(var(--spacing) * 5);
639
+ }
578
640
  .w-fit {
579
641
  width: fit-content;
580
642
  }
@@ -620,6 +682,9 @@
620
682
  .list-disc {
621
683
  list-style-type: disc;
622
684
  }
685
+ .appearance-none {
686
+ appearance: none;
687
+ }
623
688
  .grid-cols-1 {
624
689
  grid-template-columns: repeat(1, minmax(0, 1fr));
625
690
  }
@@ -787,32 +852,41 @@
787
852
  .rounded {
788
853
  border-radius: 0.25rem;
789
854
  }
790
- .rounded-2xl {
791
- border-radius: var(--radius-2xl);
855
+ .rounded-\(--layout-border-radius-lg\) {
856
+ border-radius: var(--layout-border-radius-lg);
792
857
  }
793
- .rounded-3xl {
794
- border-radius: var(--radius-3xl);
858
+ .rounded-\(--layout-border-radius-md\) {
859
+ border-radius: var(--layout-border-radius-md);
795
860
  }
796
- .rounded-full {
797
- border-radius: calc(infinity * 1px);
861
+ .rounded-\(--layout-border-radius-sm\) {
862
+ border-radius: var(--layout-border-radius-sm);
798
863
  }
799
- .rounded-lg {
800
- border-radius: var(--radius-lg);
864
+ .rounded-\(--layout-border-radius-xl\) {
865
+ border-radius: var(--layout-border-radius-xl);
801
866
  }
802
- .rounded-md {
803
- border-radius: var(--radius-md);
867
+ .rounded-\(--layout-border-radius-xs\) {
868
+ border-radius: var(--layout-border-radius-xs);
804
869
  }
805
- .rounded-none {
806
- border-radius: 0;
870
+ .rounded-\(--ui-border-radius-lg\) {
871
+ border-radius: var(--ui-border-radius-lg);
872
+ }
873
+ .rounded-\(--ui-border-radius-md\) {
874
+ border-radius: var(--ui-border-radius-md);
875
+ }
876
+ .rounded-\(--ui-border-radius-sm\) {
877
+ border-radius: var(--ui-border-radius-sm);
807
878
  }
808
- .rounded-sm {
809
- border-radius: var(--radius-sm);
879
+ .rounded-\(--ui-border-radius-xl\) {
880
+ border-radius: var(--ui-border-radius-xl);
810
881
  }
811
- .rounded-xl {
812
- border-radius: var(--radius-xl);
882
+ .rounded-\(--ui-border-radius-xs\) {
883
+ border-radius: var(--ui-border-radius-xs);
884
+ }
885
+ .rounded-full {
886
+ border-radius: calc(infinity * 1px);
813
887
  }
814
- .rounded-xs {
815
- border-radius: var(--radius-xs);
888
+ .rounded-none {
889
+ border-radius: 0;
816
890
  }
817
891
  .border {
818
892
  border-style: var(--tw-border-style);
@@ -826,10 +900,6 @@
826
900
  --tw-border-style: dashed;
827
901
  border-style: dashed;
828
902
  }
829
- .border-none {
830
- --tw-border-style: none;
831
- border-style: none;
832
- }
833
903
  .border-\(--border-color-accent\) {
834
904
  border-color: var(--border-color-accent);
835
905
  }
@@ -1037,6 +1107,9 @@
1037
1107
  .bg-transparent {
1038
1108
  background-color: transparent;
1039
1109
  }
1110
+ .object-cover {
1111
+ object-fit: cover;
1112
+ }
1040
1113
  .p-0 {
1041
1114
  padding: calc(var(--spacing) * 0);
1042
1115
  }
@@ -1339,6 +1412,69 @@
1339
1412
  .underline {
1340
1413
  text-decoration-line: underline;
1341
1414
  }
1415
+ .accent-\(--background-color-accent\) {
1416
+ accent-color: var(--background-color-accent);
1417
+ }
1418
+ .accent-\(--background-color-danger\) {
1419
+ accent-color: var(--background-color-danger);
1420
+ }
1421
+ .accent-\(--background-color-default\) {
1422
+ accent-color: var(--background-color-default);
1423
+ }
1424
+ .accent-\(--background-color-info\) {
1425
+ accent-color: var(--background-color-info);
1426
+ }
1427
+ .accent-\(--background-color-link\) {
1428
+ accent-color: var(--background-color-link);
1429
+ }
1430
+ .accent-\(--background-color-primary\) {
1431
+ accent-color: var(--background-color-primary);
1432
+ }
1433
+ .accent-\(--background-color-secondary\) {
1434
+ accent-color: var(--background-color-secondary);
1435
+ }
1436
+ .accent-\(--background-color-success\) {
1437
+ accent-color: var(--background-color-success);
1438
+ }
1439
+ .accent-\(--background-color-tertiary\) {
1440
+ accent-color: var(--background-color-tertiary);
1441
+ }
1442
+ .accent-\(--background-color-warning\) {
1443
+ accent-color: var(--background-color-warning);
1444
+ }
1445
+ .accent-\(--filled-background-color-accent\) {
1446
+ accent-color: var(--filled-background-color-accent);
1447
+ }
1448
+ .accent-\(--filled-background-color-danger\) {
1449
+ accent-color: var(--filled-background-color-danger);
1450
+ }
1451
+ .accent-\(--filled-background-color-default\) {
1452
+ accent-color: var(--filled-background-color-default);
1453
+ }
1454
+ .accent-\(--filled-background-color-info\) {
1455
+ accent-color: var(--filled-background-color-info);
1456
+ }
1457
+ .accent-\(--filled-background-color-link\) {
1458
+ accent-color: var(--filled-background-color-link);
1459
+ }
1460
+ .accent-\(--filled-background-color-primary\) {
1461
+ accent-color: var(--filled-background-color-primary);
1462
+ }
1463
+ .accent-\(--filled-background-color-secondary\) {
1464
+ accent-color: var(--filled-background-color-secondary);
1465
+ }
1466
+ .accent-\(--filled-background-color-success\) {
1467
+ accent-color: var(--filled-background-color-success);
1468
+ }
1469
+ .accent-\(--filled-background-color-tertiary\) {
1470
+ accent-color: var(--filled-background-color-tertiary);
1471
+ }
1472
+ .accent-\(--filled-background-color-warning\) {
1473
+ accent-color: var(--filled-background-color-warning);
1474
+ }
1475
+ .accent-transparent {
1476
+ accent-color: transparent;
1477
+ }
1342
1478
  .opacity-50 {
1343
1479
  opacity: 50%;
1344
1480
  }
@@ -1366,10 +1502,6 @@
1366
1502
  --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
1367
1503
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1368
1504
  }
1369
- .shadow\/ring {
1370
- --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1371
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1372
- }
1373
1505
  .ring {
1374
1506
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1375
1507
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -1470,6 +1602,116 @@
1470
1602
  .ring-inset {
1471
1603
  --tw-ring-inset: inset;
1472
1604
  }
1605
+ .peer-checked\:visible {
1606
+ &:is(:where(.peer):checked ~ *) {
1607
+ visibility: visible;
1608
+ }
1609
+ }
1610
+ .checked\:bg-\(--background-color-accent\) {
1611
+ &:checked {
1612
+ background-color: var(--background-color-accent);
1613
+ }
1614
+ }
1615
+ .checked\:bg-\(--background-color-danger\) {
1616
+ &:checked {
1617
+ background-color: var(--background-color-danger);
1618
+ }
1619
+ }
1620
+ .checked\:bg-\(--background-color-default\) {
1621
+ &:checked {
1622
+ background-color: var(--background-color-default);
1623
+ }
1624
+ }
1625
+ .checked\:bg-\(--background-color-info\) {
1626
+ &:checked {
1627
+ background-color: var(--background-color-info);
1628
+ }
1629
+ }
1630
+ .checked\:bg-\(--background-color-link\) {
1631
+ &:checked {
1632
+ background-color: var(--background-color-link);
1633
+ }
1634
+ }
1635
+ .checked\:bg-\(--background-color-primary\) {
1636
+ &:checked {
1637
+ background-color: var(--background-color-primary);
1638
+ }
1639
+ }
1640
+ .checked\:bg-\(--background-color-secondary\) {
1641
+ &:checked {
1642
+ background-color: var(--background-color-secondary);
1643
+ }
1644
+ }
1645
+ .checked\:bg-\(--background-color-success\) {
1646
+ &:checked {
1647
+ background-color: var(--background-color-success);
1648
+ }
1649
+ }
1650
+ .checked\:bg-\(--background-color-tertiary\) {
1651
+ &:checked {
1652
+ background-color: var(--background-color-tertiary);
1653
+ }
1654
+ }
1655
+ .checked\:bg-\(--background-color-warning\) {
1656
+ &:checked {
1657
+ background-color: var(--background-color-warning);
1658
+ }
1659
+ }
1660
+ .checked\:bg-\(--filled-background-color-accent\) {
1661
+ &:checked {
1662
+ background-color: var(--filled-background-color-accent);
1663
+ }
1664
+ }
1665
+ .checked\:bg-\(--filled-background-color-danger\) {
1666
+ &:checked {
1667
+ background-color: var(--filled-background-color-danger);
1668
+ }
1669
+ }
1670
+ .checked\:bg-\(--filled-background-color-default\) {
1671
+ &:checked {
1672
+ background-color: var(--filled-background-color-default);
1673
+ }
1674
+ }
1675
+ .checked\:bg-\(--filled-background-color-info\) {
1676
+ &:checked {
1677
+ background-color: var(--filled-background-color-info);
1678
+ }
1679
+ }
1680
+ .checked\:bg-\(--filled-background-color-link\) {
1681
+ &:checked {
1682
+ background-color: var(--filled-background-color-link);
1683
+ }
1684
+ }
1685
+ .checked\:bg-\(--filled-background-color-primary\) {
1686
+ &:checked {
1687
+ background-color: var(--filled-background-color-primary);
1688
+ }
1689
+ }
1690
+ .checked\:bg-\(--filled-background-color-secondary\) {
1691
+ &:checked {
1692
+ background-color: var(--filled-background-color-secondary);
1693
+ }
1694
+ }
1695
+ .checked\:bg-\(--filled-background-color-success\) {
1696
+ &:checked {
1697
+ background-color: var(--filled-background-color-success);
1698
+ }
1699
+ }
1700
+ .checked\:bg-\(--filled-background-color-tertiary\) {
1701
+ &:checked {
1702
+ background-color: var(--filled-background-color-tertiary);
1703
+ }
1704
+ }
1705
+ .checked\:bg-\(--filled-background-color-warning\) {
1706
+ &:checked {
1707
+ background-color: var(--filled-background-color-warning);
1708
+ }
1709
+ }
1710
+ .checked\:bg-transparent {
1711
+ &:checked {
1712
+ background-color: transparent;
1713
+ }
1714
+ }
1473
1715
  .hover\:scale-105 {
1474
1716
  &:hover {
1475
1717
  @media (hover: hover) {
@@ -1488,14 +1730,6 @@
1488
1730
  }
1489
1731
  }
1490
1732
  }
1491
- .hover\:border-none {
1492
- &:hover {
1493
- @media (hover: hover) {
1494
- --tw-border-style: none;
1495
- border-style: none;
1496
- }
1497
- }
1498
- }
1499
1733
  .hover\:bg-\(--background-color-hover-accent\) {
1500
1734
  &:hover {
1501
1735
  @media (hover: hover) {
@@ -1726,12 +1960,6 @@
1726
1960
  border-width: 1px;
1727
1961
  }
1728
1962
  }
1729
- .active\:border-none {
1730
- &:active {
1731
- --tw-border-style: none;
1732
- border-style: none;
1733
- }
1734
- }
1735
1963
  .active\:bg-\(--background-color-active-accent\) {
1736
1964
  &:active {
1737
1965
  background-color: var(--background-color-active-accent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaneui/md",
3
- "version": "0.0.3-alpha.20250804165801.513897c",
3
+ "version": "0.0.3-alpha.20250807150626.4231a8a",
4
4
  "description": "Markdown component for VaneUI - A React component that renders markdown using @vaneui/ui components",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -48,7 +48,7 @@
48
48
  "playground": "npm run playground:install && npm run playground:dev"
49
49
  },
50
50
  "peerDependencies": {
51
- "@vaneui/ui": "^0.2.1-alpha.20250804164337.82f08ed",
51
+ "@vaneui/ui": "^0.2.1-alpha.20250807132007.03644e5",
52
52
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
53
53
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
54
54
  },
@@ -63,7 +63,7 @@
63
63
  "@types/jest": "^29.5.14",
64
64
  "@types/react": "^19.1.0",
65
65
  "@types/react-dom": "^19.1.0",
66
- "@vaneui/ui": "^0.2.1-alpha.20250804164337.82f08ed",
66
+ "@vaneui/ui": "^0.2.1-alpha.20250807132007.03644e5",
67
67
  "jest": "^29.7.0",
68
68
  "jest-environment-jsdom": "^30.0.4",
69
69
  "jsdom": "^26.1.0",