@rspress/core 0.0.12 → 0.0.13

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.
@@ -886,6 +886,12 @@ video {
886
886
  .text-text-2 {
887
887
  color: var(--rp-c-text-2);
888
888
  }
889
+ .underline {
890
+ text-decoration-line: underline;
891
+ }
892
+ .underline-offset-2 {
893
+ text-underline-offset: 2px;
894
+ }
889
895
  .opacity-80 {
890
896
  opacity: 0.8;
891
897
  }
@@ -2291,7 +2297,7 @@ button:focus-visible {
2291
2297
  transform: translateX(4px);
2292
2298
  }
2293
2299
 
2294
- /* src/theme-default/components/Tabs/index.module.scss?css_virtual&hash=6c08afb75394e8f9690200f76b5fc031 */
2300
+ /* src/theme-default/components/Tabs/index.module.scss?css_virtual&hash=8fca224caa73cde9adc275a3199ef4ac */
2295
2301
  .container_7e0fb {
2296
2302
  background-color: var(--rp-code-block-bg);
2297
2303
  contain: content;
@@ -2319,6 +2325,7 @@ button:focus-visible {
2319
2325
  margin-bottom: -1px;
2320
2326
  user-select: none;
2321
2327
  transition: all 0.2s ease-in-out;
2328
+ cursor: pointer;
2322
2329
  }
2323
2330
  .tab_7e0fb:last-child {
2324
2331
  margin-right: 0;
@@ -2544,6 +2551,29 @@ button:focus-visible {
2544
2551
  }
2545
2552
  }
2546
2553
 
2554
+ /* src/theme-default/components/Toc/index.css */
2555
+ .toc-link {
2556
+ padding-bottom: 1px;
2557
+ }
2558
+ .toc-link-text {
2559
+ padding: 4px 12px;
2560
+ white-space: nowrap;
2561
+ overflow: hidden;
2562
+ text-overflow: ellipsis;
2563
+ transition: all 0.2s ease-in-out;
2564
+ border-radius: 10px 0 0 10px;
2565
+ font-size: 16px;
2566
+ line-height: 1.75rem;
2567
+ }
2568
+ .toc-link-text:hover {
2569
+ background-color: var(--rp-c-bg-mute);
2570
+ }
2571
+
2572
+ /* src/theme-default/components/PackageManagerTabs/index.scss */
2573
+ .rspress-package-manager-tabs div[class*=language-] code {
2574
+ background-color: var(--rp-c-bg-mute) !important;
2575
+ }
2576
+
2547
2577
  /* src/theme-default/layout/DocLayout/docComponents/index.module.scss?css_virtual&hash=c8929e12ddaa45bf7c7aba8314fe1e7c */
2548
2578
  .title_f1ea0 {
2549
2579
  position: relative;
@@ -101,9 +101,25 @@ declare function Button(props: ButtonProps): react__default.ReactElement<LinkPro
101
101
 
102
102
  declare function HomeFooter(): JSX.Element;
103
103
 
104
+ declare function Toc(): JSX.Element;
105
+
106
+ interface PackageManagerTabProps {
107
+ command: string | {
108
+ npm: string;
109
+ yarn: string;
110
+ pnpm: string;
111
+ bun: string;
112
+ };
113
+ additionalTabs?: {
114
+ tool: string;
115
+ icon?: React.ReactNode;
116
+ }[];
117
+ }
118
+ declare function PackageManagerTabs({ command, additionalTabs, }: PackageManagerTabProps): JSX.Element;
119
+
104
120
  interface CodeProps {
105
121
  children: string;
106
- className: string;
122
+ className?: string;
107
123
  meta?: string;
108
124
  }
109
125
  declare function Code(props: CodeProps): JSX.Element;
@@ -142,4 +158,4 @@ declare const _default: {
142
158
  setup: typeof setup;
143
159
  };
144
160
 
145
- export { Button, HomeFooter, Link, Nav, Search, Tab, Tabs, bindingAsideScroll, _default as default, getCustomMDXComponent, getLogoUrl, isActive, isExternalHref, isMobileDevice, scrollToTarget, setup, useEditLink, useLocaleSiteData, usePrevNextPage, useSidebarData };
161
+ export { Button, HomeFooter, Link, Nav, PackageManagerTabs, Search, Tab, Tabs, Toc, bindingAsideScroll, _default as default, getCustomMDXComponent, getLogoUrl, isActive, isExternalHref, isMobileDevice, scrollToTarget, setup, useEditLink, useLocaleSiteData, usePrevNextPage, useSidebarData };