@stainless-api/ui-primitives 0.1.0-beta.37 → 0.1.0-beta.38

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.
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+
4
+ //#region src/components/Accordion.d.ts
5
+ type AccordionProps = React.ComponentProps<'details'>;
6
+ declare function Accordion({
7
+ className,
8
+ children,
9
+ ...props
10
+ }: AccordionProps): react_jsx_runtime3.JSX.Element;
11
+ declare namespace Accordion {
12
+ var Summary: typeof AccordionSummary;
13
+ var Group: typeof AccordionGroup;
14
+ }
15
+ declare function AccordionSummary({
16
+ children,
17
+ className,
18
+ ...props
19
+ }: React.ComponentProps<'summary'>): react_jsx_runtime3.JSX.Element;
20
+ declare function AccordionGroup({
21
+ className,
22
+ children,
23
+ ...props
24
+ }: React.ComponentProps<'div'>): react_jsx_runtime3.JSX.Element;
25
+ //#endregion
26
+ export { AccordionProps as n, Accordion as t };
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { LucideIcon } from "lucide-react";
4
+
5
+ //#region src/components/Button.d.ts
6
+ type ButtonVariant = 'outline' | 'ghost' | 'accent' | 'accent-muted' | 'muted' | 'success' | 'destructive' | 'default';
7
+ type BaseProps = {
8
+ variant?: ButtonVariant;
9
+ className?: string;
10
+ children?: React.ReactNode;
11
+ size?: 'sm' | 'lg' | 'default';
12
+ border?: boolean;
13
+ loading?: {
14
+ label: string;
15
+ };
16
+ };
17
+ type AnchorBranch = BaseProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'children'> & {
18
+ href: string;
19
+ };
20
+ type ButtonBranch = BaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'children'> & {
21
+ href?: never;
22
+ };
23
+ type ButtonProps = AnchorBranch | ButtonBranch;
24
+ declare function Button(props: ButtonProps): react_jsx_runtime0.JSX.Element;
25
+ declare namespace Button {
26
+ var Label: ({
27
+ className,
28
+ ...rest
29
+ }: LabelProps) => react_jsx_runtime0.JSX.Element;
30
+ var Icon: ({
31
+ className,
32
+ icon: Icon,
33
+ size
34
+ }: IconProps) => react_jsx_runtime0.JSX.Element;
35
+ }
36
+ type LabelProps = React.HTMLAttributes<HTMLSpanElement>;
37
+ type IconProps = {
38
+ icon: LucideIcon;
39
+ size?: number;
40
+ } & React.HTMLAttributes<HTMLSpanElement>;
41
+ //#endregion
42
+ export { ButtonProps as n, ButtonVariant as r, Button as t };
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
+
4
+ //#region src/components/Callout.d.ts
5
+ type CalloutVariant = 'info' | 'note' | 'tip' | 'success' | 'warning' | 'danger';
6
+ type CalloutProps = {
7
+ variant?: CalloutVariant;
8
+ className?: string;
9
+ children?: React.ReactNode;
10
+ } & Omit<React.ComponentProps<'aside'>, 'className' | 'children'>;
11
+ declare function Callout({
12
+ variant,
13
+ className,
14
+ children,
15
+ ...props
16
+ }: CalloutProps): react_jsx_runtime2.JSX.Element;
17
+ //#endregion
18
+ export { CalloutProps as n, CalloutVariant as r, Callout as t };
@@ -81,6 +81,9 @@
81
81
  line-height: var(--stl-typography-line-height-heading);
82
82
  font-family: var(--stl-typography-font-heading);
83
83
  --sl-anchor-icon-size: 0.8em;
84
+ :is(h1, h2, h3, h4, h5) {
85
+ font-size: inherit;
86
+ }
84
87
  }
85
88
  .sl-heading-wrapper.level-h1 {
86
89
  font-size: var(--stl-typography-text-h1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/ui-primitives",
3
- "version": "0.1.0-beta.37",
3
+ "version": "0.1.0-beta.38",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,7 @@
23
23
  "react-dom": "^19.2.3",
24
24
  "rolldown": "1.0.0-beta.54",
25
25
  "sass": "^1.96.0",
26
- "tsdown": "^0.17.3",
26
+ "tsdown": "^0.18.0",
27
27
  "typescript": "5.9.3",
28
28
  "@stainless/eslint-config": "0.1.0-beta.0"
29
29
  },