@mintlify/components 0.1.54 → 0.1.55
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/build-storybook.log +368 -0
- package/dist/Api/ApiPlayground.d.ts +3 -3
- package/dist/Api/RequestPathHeader.d.ts +1 -1
- package/dist/Api/index.d.ts +1 -2
- package/dist/Api/inputs/AddArrayItemButton.d.ts +4 -0
- package/dist/Api/inputs/ApiInput.d.ts +15 -0
- package/dist/Api/inputs/InputDropdown.d.ts +5 -0
- package/dist/CodeBlock/CodeBlock.d.ts +9 -0
- package/dist/CodeBlock/CodeGroup.d.ts +11 -0
- package/dist/CodeBlock/CodeTabBar.d.ts +6 -0
- package/dist/CodeBlock/CopyToClipboard.d.ts +2 -0
- package/dist/CodeBlock/CopyToClipboardButton.d.ts +5 -0
- package/dist/CodeBlock/index.d.ts +3 -0
- package/dist/CodeGroup.d.ts +12 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/main.css +70 -82
- package/package.json +4 -2
- package/dist/Api/ApiInput.d.ts +0 -11
- package/package-lock.json +0 -43371
package/dist/main.css
CHANGED
|
@@ -1318,12 +1318,6 @@ video {
|
|
|
1318
1318
|
.left-1\/2 {
|
|
1319
1319
|
left: 50%;
|
|
1320
1320
|
}
|
|
1321
|
-
.right-2 {
|
|
1322
|
-
right: 0.5rem;
|
|
1323
|
-
}
|
|
1324
|
-
.top-\[7px\] {
|
|
1325
|
-
top: 7px;
|
|
1326
|
-
}
|
|
1327
1321
|
.-top-px {
|
|
1328
1322
|
top: -1px;
|
|
1329
1323
|
}
|
|
@@ -1342,6 +1336,12 @@ video {
|
|
|
1342
1336
|
.right-5 {
|
|
1343
1337
|
right: 1.25rem;
|
|
1344
1338
|
}
|
|
1339
|
+
.right-2 {
|
|
1340
|
+
right: 0.5rem;
|
|
1341
|
+
}
|
|
1342
|
+
.top-\[7px\] {
|
|
1343
|
+
top: 7px;
|
|
1344
|
+
}
|
|
1345
1345
|
.z-10 {
|
|
1346
1346
|
z-index: 10;
|
|
1347
1347
|
}
|
|
@@ -1363,14 +1363,6 @@ video {
|
|
|
1363
1363
|
margin-left: 1.5rem;
|
|
1364
1364
|
margin-right: 1.5rem;
|
|
1365
1365
|
}
|
|
1366
|
-
.-mx-1\.5 {
|
|
1367
|
-
margin-left: -0.375rem;
|
|
1368
|
-
margin-right: -0.375rem;
|
|
1369
|
-
}
|
|
1370
|
-
.-mx-1 {
|
|
1371
|
-
margin-left: -0.25rem;
|
|
1372
|
-
margin-right: -0.25rem;
|
|
1373
|
-
}
|
|
1374
1366
|
.mx-1 {
|
|
1375
1367
|
margin-left: 0.25rem;
|
|
1376
1368
|
margin-right: 0.25rem;
|
|
@@ -1379,6 +1371,14 @@ video {
|
|
|
1379
1371
|
margin-left: 6px;
|
|
1380
1372
|
margin-right: 6px;
|
|
1381
1373
|
}
|
|
1374
|
+
.-mx-1\.5 {
|
|
1375
|
+
margin-left: -0.375rem;
|
|
1376
|
+
margin-right: -0.375rem;
|
|
1377
|
+
}
|
|
1378
|
+
.-mx-1 {
|
|
1379
|
+
margin-left: -0.25rem;
|
|
1380
|
+
margin-right: -0.25rem;
|
|
1381
|
+
}
|
|
1382
1382
|
.mr-3 {
|
|
1383
1383
|
margin-right: 0.75rem;
|
|
1384
1384
|
}
|
|
@@ -1493,20 +1493,14 @@ video {
|
|
|
1493
1493
|
.h-3 {
|
|
1494
1494
|
height: 0.75rem;
|
|
1495
1495
|
}
|
|
1496
|
-
.h-7 {
|
|
1497
|
-
height: 1.75rem;
|
|
1498
|
-
}
|
|
1499
1496
|
.h-\[1\.125rem\] {
|
|
1500
1497
|
height: 1.125rem;
|
|
1501
1498
|
}
|
|
1502
1499
|
.h-\[1\.15rem\] {
|
|
1503
1500
|
height: 1.15rem;
|
|
1504
1501
|
}
|
|
1505
|
-
.
|
|
1506
|
-
|
|
1507
|
-
}
|
|
1508
|
-
.max-h-72 {
|
|
1509
|
-
max-height: 18rem;
|
|
1502
|
+
.h-7 {
|
|
1503
|
+
height: 1.75rem;
|
|
1510
1504
|
}
|
|
1511
1505
|
.w-4 {
|
|
1512
1506
|
width: 1rem;
|
|
@@ -1557,12 +1551,12 @@ video {
|
|
|
1557
1551
|
.flex-none {
|
|
1558
1552
|
flex: none;
|
|
1559
1553
|
}
|
|
1560
|
-
.flex-initial {
|
|
1561
|
-
flex: 0 1 auto;
|
|
1562
|
-
}
|
|
1563
1554
|
.flex-auto {
|
|
1564
1555
|
flex: 1 1 auto;
|
|
1565
1556
|
}
|
|
1557
|
+
.flex-initial {
|
|
1558
|
+
flex: 0 1 auto;
|
|
1559
|
+
}
|
|
1566
1560
|
.-translate-x-1\/2 {
|
|
1567
1561
|
--tw-translate-x: -50%;
|
|
1568
1562
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1622,18 +1616,18 @@ video {
|
|
|
1622
1616
|
margin-left: calc(0.5rem * (1 - var(--tw-space-x-reverse)));
|
|
1623
1617
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1624
1618
|
}
|
|
1625
|
-
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
|
|
1626
|
-
--tw-space-y-reverse: 0;
|
|
1627
|
-
margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));
|
|
1628
|
-
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1629
|
-
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
1630
|
-
}
|
|
1631
1619
|
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1632
1620
|
--tw-space-x-reverse: 0;
|
|
1633
1621
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
1634
1622
|
margin-left: calc(1rem * (1 - var(--tw-space-x-reverse)));
|
|
1635
1623
|
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1636
1624
|
}
|
|
1625
|
+
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
|
|
1626
|
+
--tw-space-y-reverse: 0;
|
|
1627
|
+
margin-top: calc(0.5rem * (1 - var(--tw-space-y-reverse)));
|
|
1628
|
+
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1629
|
+
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
1630
|
+
}
|
|
1637
1631
|
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
|
|
1638
1632
|
--tw-space-x-reverse: 0;
|
|
1639
1633
|
margin-right: calc(1.5rem * var(--tw-space-x-reverse));
|
|
@@ -1658,9 +1652,6 @@ video {
|
|
|
1658
1652
|
.overflow-visible {
|
|
1659
1653
|
overflow: visible;
|
|
1660
1654
|
}
|
|
1661
|
-
.overflow-scroll {
|
|
1662
|
-
overflow: scroll;
|
|
1663
|
-
}
|
|
1664
1655
|
.overflow-x-auto {
|
|
1665
1656
|
overflow-x: auto;
|
|
1666
1657
|
}
|
|
@@ -1672,9 +1663,6 @@ video {
|
|
|
1672
1663
|
.whitespace-nowrap {
|
|
1673
1664
|
white-space: nowrap;
|
|
1674
1665
|
}
|
|
1675
|
-
.whitespace-pre {
|
|
1676
|
-
white-space: pre;
|
|
1677
|
-
}
|
|
1678
1666
|
.rounded-full {
|
|
1679
1667
|
border-radius: 9999px;
|
|
1680
1668
|
}
|
|
@@ -1727,12 +1715,12 @@ video {
|
|
|
1727
1715
|
.border-l {
|
|
1728
1716
|
border-left-width: 1px;
|
|
1729
1717
|
}
|
|
1730
|
-
.border-t {
|
|
1731
|
-
border-top-width: 1px;
|
|
1732
|
-
}
|
|
1733
1718
|
.border-b-2 {
|
|
1734
1719
|
border-bottom-width: 2px;
|
|
1735
1720
|
}
|
|
1721
|
+
.border-t {
|
|
1722
|
+
border-top-width: 1px;
|
|
1723
|
+
}
|
|
1736
1724
|
.border-r {
|
|
1737
1725
|
border-right-width: 1px;
|
|
1738
1726
|
}
|
|
@@ -1887,18 +1875,15 @@ video {
|
|
|
1887
1875
|
.fill-slate-400 {
|
|
1888
1876
|
fill: #94a3b8;
|
|
1889
1877
|
}
|
|
1878
|
+
.fill-white {
|
|
1879
|
+
fill: #fff;
|
|
1880
|
+
}
|
|
1890
1881
|
.fill-slate-500 {
|
|
1891
1882
|
fill: #64748b;
|
|
1892
1883
|
}
|
|
1893
|
-
.fill-slate-600 {
|
|
1894
|
-
fill: #475569;
|
|
1895
|
-
}
|
|
1896
1884
|
.fill-red-600 {
|
|
1897
1885
|
fill: #dc2626;
|
|
1898
1886
|
}
|
|
1899
|
-
.fill-white {
|
|
1900
|
-
fill: #fff;
|
|
1901
|
-
}
|
|
1902
1887
|
.stroke-slate-700 {
|
|
1903
1888
|
stroke: #334155;
|
|
1904
1889
|
}
|
|
@@ -1949,6 +1934,14 @@ video {
|
|
|
1949
1934
|
padding-left: 1rem;
|
|
1950
1935
|
padding-right: 1rem;
|
|
1951
1936
|
}
|
|
1937
|
+
.px-3\.5 {
|
|
1938
|
+
padding-left: 0.875rem;
|
|
1939
|
+
padding-right: 0.875rem;
|
|
1940
|
+
}
|
|
1941
|
+
.py-1\.5 {
|
|
1942
|
+
padding-top: 0.375rem;
|
|
1943
|
+
padding-bottom: 0.375rem;
|
|
1944
|
+
}
|
|
1952
1945
|
.py-0\.5 {
|
|
1953
1946
|
padding-top: 0.125rem;
|
|
1954
1947
|
padding-bottom: 0.125rem;
|
|
@@ -1961,18 +1954,6 @@ video {
|
|
|
1961
1954
|
padding-top: 0px;
|
|
1962
1955
|
padding-bottom: 0px;
|
|
1963
1956
|
}
|
|
1964
|
-
.px-3\.5 {
|
|
1965
|
-
padding-left: 0.875rem;
|
|
1966
|
-
padding-right: 0.875rem;
|
|
1967
|
-
}
|
|
1968
|
-
.py-1\.5 {
|
|
1969
|
-
padding-top: 0.375rem;
|
|
1970
|
-
padding-bottom: 0.375rem;
|
|
1971
|
-
}
|
|
1972
|
-
.py-3 {
|
|
1973
|
-
padding-top: 0.75rem;
|
|
1974
|
-
padding-bottom: 0.75rem;
|
|
1975
|
-
}
|
|
1976
1957
|
.pb-3 {
|
|
1977
1958
|
padding-bottom: 0.75rem;
|
|
1978
1959
|
}
|
|
@@ -1982,9 +1963,6 @@ video {
|
|
|
1982
1963
|
.pt-1 {
|
|
1983
1964
|
padding-top: 0.25rem;
|
|
1984
1965
|
}
|
|
1985
|
-
.pt-2 {
|
|
1986
|
-
padding-top: 0.5rem;
|
|
1987
|
-
}
|
|
1988
1966
|
.pt-3\.5 {
|
|
1989
1967
|
padding-top: 0.875rem;
|
|
1990
1968
|
}
|
|
@@ -1994,6 +1972,9 @@ video {
|
|
|
1994
1972
|
.pt-3 {
|
|
1995
1973
|
padding-top: 0.75rem;
|
|
1996
1974
|
}
|
|
1975
|
+
.pt-2 {
|
|
1976
|
+
padding-top: 0.5rem;
|
|
1977
|
+
}
|
|
1997
1978
|
.pr-4 {
|
|
1998
1979
|
padding-right: 1rem;
|
|
1999
1980
|
}
|
|
@@ -2133,10 +2114,6 @@ video {
|
|
|
2133
2114
|
--tw-text-opacity: 1;
|
|
2134
2115
|
color: rgba(248, 250, 252, var(--tw-text-opacity));
|
|
2135
2116
|
}
|
|
2136
|
-
.text-red-600 {
|
|
2137
|
-
--tw-text-opacity: 1;
|
|
2138
|
-
color: rgba(220, 38, 38, var(--tw-text-opacity));
|
|
2139
|
-
}
|
|
2140
2117
|
.text-white {
|
|
2141
2118
|
--tw-text-opacity: 1;
|
|
2142
2119
|
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
@@ -2145,6 +2122,10 @@ video {
|
|
|
2145
2122
|
--tw-text-opacity: 1;
|
|
2146
2123
|
color: rgba(202, 138, 4, var(--tw-text-opacity));
|
|
2147
2124
|
}
|
|
2125
|
+
.text-red-600 {
|
|
2126
|
+
--tw-text-opacity: 1;
|
|
2127
|
+
color: rgba(220, 38, 38, var(--tw-text-opacity));
|
|
2128
|
+
}
|
|
2148
2129
|
.text-orange-600 {
|
|
2149
2130
|
--tw-text-opacity: 1;
|
|
2150
2131
|
color: rgba(234, 88, 12, var(--tw-text-opacity));
|
|
@@ -2205,14 +2186,21 @@ video {
|
|
|
2205
2186
|
-webkit-mask-image: linear-gradient(0deg,#fff,rgba(255,255,255,0.6));
|
|
2206
2187
|
mask-image: linear-gradient(0deg,#fff,rgba(255,255,255,0.6));
|
|
2207
2188
|
}
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2189
|
+
|
|
2190
|
+
/* Disable browser's default styling on select tags */
|
|
2191
|
+
select {
|
|
2192
|
+
-moz-appearance: none;
|
|
2193
|
+
-webkit-appearance: none;
|
|
2194
|
+
appearance: none;
|
|
2211
2195
|
}
|
|
2212
2196
|
.hover\:border-slate-300:hover {
|
|
2213
2197
|
--tw-border-opacity: 1;
|
|
2214
2198
|
border-color: rgba(203, 213, 225, var(--tw-border-opacity));
|
|
2215
2199
|
}
|
|
2200
|
+
.hover\:border-slate-400:hover {
|
|
2201
|
+
--tw-border-opacity: 1;
|
|
2202
|
+
border-color: rgba(148, 163, 184, var(--tw-border-opacity));
|
|
2203
|
+
}
|
|
2216
2204
|
.hover\:border-red-800:hover {
|
|
2217
2205
|
--tw-border-opacity: 1;
|
|
2218
2206
|
border-color: rgba(153, 27, 27, var(--tw-border-opacity));
|
|
@@ -2244,10 +2232,6 @@ video {
|
|
|
2244
2232
|
--tw-bg-opacity: 1;
|
|
2245
2233
|
background-color: rgba(241, 245, 249, var(--tw-bg-opacity));
|
|
2246
2234
|
}
|
|
2247
|
-
.hover\:bg-slate-50:hover {
|
|
2248
|
-
--tw-bg-opacity: 1;
|
|
2249
|
-
background-color: rgba(248, 250, 252, var(--tw-bg-opacity));
|
|
2250
|
-
}
|
|
2251
2235
|
.hover\:bg-green-800:hover {
|
|
2252
2236
|
--tw-bg-opacity: 1;
|
|
2253
2237
|
background-color: rgba(22, 101, 52, var(--tw-bg-opacity));
|
|
@@ -2272,12 +2256,16 @@ video {
|
|
|
2272
2256
|
--tw-bg-opacity: 1;
|
|
2273
2257
|
background-color: rgba(30, 41, 59, var(--tw-bg-opacity));
|
|
2274
2258
|
}
|
|
2275
|
-
.hover\:
|
|
2276
|
-
|
|
2259
|
+
.hover\:bg-slate-50:hover {
|
|
2260
|
+
--tw-bg-opacity: 1;
|
|
2261
|
+
background-color: rgba(248, 250, 252, var(--tw-bg-opacity));
|
|
2277
2262
|
}
|
|
2278
2263
|
.hover\:fill-slate-300:hover {
|
|
2279
2264
|
fill: #cbd5e1;
|
|
2280
2265
|
}
|
|
2266
|
+
.hover\:fill-red-800:hover {
|
|
2267
|
+
fill: #991b1b;
|
|
2268
|
+
}
|
|
2281
2269
|
.hover\:text-indigo-700:hover {
|
|
2282
2270
|
--tw-text-opacity: 1;
|
|
2283
2271
|
color: rgba(67, 56, 202, var(--tw-text-opacity));
|
|
@@ -2581,10 +2569,6 @@ video {
|
|
|
2581
2569
|
--tw-text-opacity: 1;
|
|
2582
2570
|
color: rgba(226, 232, 240, var(--tw-text-opacity));
|
|
2583
2571
|
}
|
|
2584
|
-
.dark .dark\:text-red-400 {
|
|
2585
|
-
--tw-text-opacity: 1;
|
|
2586
|
-
color: rgba(248, 113, 113, var(--tw-text-opacity));
|
|
2587
|
-
}
|
|
2588
2572
|
.dark .dark\:text-green-500 {
|
|
2589
2573
|
--tw-text-opacity: 1;
|
|
2590
2574
|
color: rgba(34, 197, 94, var(--tw-text-opacity));
|
|
@@ -2605,6 +2589,10 @@ video {
|
|
|
2605
2589
|
--tw-text-opacity: 1;
|
|
2606
2590
|
color: rgba(249, 115, 22, var(--tw-text-opacity));
|
|
2607
2591
|
}
|
|
2592
|
+
.dark .dark\:text-red-400 {
|
|
2593
|
+
--tw-text-opacity: 1;
|
|
2594
|
+
color: rgba(248, 113, 113, var(--tw-text-opacity));
|
|
2595
|
+
}
|
|
2608
2596
|
.dark .dark\:text-pink-300 {
|
|
2609
2597
|
--tw-text-opacity: 1;
|
|
2610
2598
|
color: rgba(249, 168, 212, var(--tw-text-opacity));
|
|
@@ -2623,10 +2611,6 @@ video {
|
|
|
2623
2611
|
-webkit-mask-image: linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5));
|
|
2624
2612
|
mask-image: linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5));
|
|
2625
2613
|
}
|
|
2626
|
-
.dark .dark\:hover\:border-slate-500:hover {
|
|
2627
|
-
--tw-border-opacity: 1;
|
|
2628
|
-
border-color: rgba(100, 116, 139, var(--tw-border-opacity));
|
|
2629
|
-
}
|
|
2630
2614
|
.dark .dark\:hover\:border-slate-400:hover {
|
|
2631
2615
|
--tw-border-opacity: 1;
|
|
2632
2616
|
border-color: rgba(148, 163, 184, var(--tw-border-opacity));
|
|
@@ -2635,6 +2619,10 @@ video {
|
|
|
2635
2619
|
--tw-border-opacity: 1;
|
|
2636
2620
|
border-color: rgba(51, 65, 85, var(--tw-border-opacity));
|
|
2637
2621
|
}
|
|
2622
|
+
.dark .dark\:hover\:border-slate-500:hover {
|
|
2623
|
+
--tw-border-opacity: 1;
|
|
2624
|
+
border-color: rgba(100, 116, 139, var(--tw-border-opacity));
|
|
2625
|
+
}
|
|
2638
2626
|
.dark .dark\:hover\:border-red-400:hover {
|
|
2639
2627
|
--tw-border-opacity: 1;
|
|
2640
2628
|
border-color: rgba(248, 113, 113, var(--tw-border-opacity));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
4
4
|
"description": "Open-source library of UI components made with React and TailwindCSS.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@storybook/react": "^6.5.13",
|
|
44
44
|
"@storybook/testing-library": "^0.0.13",
|
|
45
45
|
"@tailwindcss/typography": "^0.5.7",
|
|
46
|
+
"@types/lodash.set": "^4.3.7",
|
|
46
47
|
"@types/react": "^18.0.21",
|
|
47
48
|
"autoprefixer": "^10.4.8",
|
|
48
49
|
"babel-loader": "^8.2.5",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
"@headlessui/react": "^1.7.3",
|
|
73
74
|
"assert": "^2.0.0",
|
|
74
75
|
"clsx": "^1.1.1",
|
|
75
|
-
"is-absolute-url": "^4.0.1"
|
|
76
|
+
"is-absolute-url": "^4.0.1",
|
|
77
|
+
"lodash.set": "^4.3.2"
|
|
76
78
|
}
|
|
77
79
|
}
|
package/dist/Api/ApiInput.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ApiInputValue, Param } from "./types";
|
|
3
|
-
export declare function ApiInput({ param, value, onChangeParam, onObjectPropertyChange, onArrayItemChange, onDeleteArrayItem, parentInputs, }: {
|
|
4
|
-
param: Param;
|
|
5
|
-
value: ApiInputValue;
|
|
6
|
-
onChangeParam: (parentInputs: string[], paramName: string, value: ApiInputValue) => void;
|
|
7
|
-
onObjectPropertyChange?: (value: any) => void;
|
|
8
|
-
onArrayItemChange?: (value: any) => void;
|
|
9
|
-
onDeleteArrayItem?: () => void;
|
|
10
|
-
parentInputs?: string[];
|
|
11
|
-
}): JSX.Element;
|