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

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
  import { LucideIcon } from "lucide-react";
4
4
 
5
5
  //#region src/components/Button.d.ts
@@ -21,17 +21,17 @@ type ButtonBranch = BaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElemen
21
21
  href?: never;
22
22
  };
23
23
  type ButtonProps = AnchorBranch | ButtonBranch;
24
- declare function Button(props: ButtonProps): react_jsx_runtime2.JSX.Element;
24
+ declare function Button(props: ButtonProps): react_jsx_runtime3.JSX.Element;
25
25
  declare namespace Button {
26
26
  var Label: ({
27
27
  className,
28
28
  ...rest
29
- }: LabelProps) => react_jsx_runtime2.JSX.Element;
29
+ }: LabelProps) => react_jsx_runtime3.JSX.Element;
30
30
  var Icon: ({
31
31
  className,
32
32
  icon: Icon,
33
33
  size
34
- }: IconProps) => react_jsx_runtime2.JSX.Element;
34
+ }: IconProps) => react_jsx_runtime3.JSX.Element;
35
35
  }
36
36
  type LabelProps = React.HTMLAttributes<HTMLSpanElement>;
37
37
  type IconProps = {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Callout.d.ts
5
5
  type CalloutVariant = 'info' | 'note' | 'tip' | 'success' | 'warning' | 'danger';
@@ -13,6 +13,6 @@ declare function Callout({
13
13
  className,
14
14
  children,
15
15
  ...props
16
- }: CalloutProps): react_jsx_runtime5.JSX.Element;
16
+ }: CalloutProps): react_jsx_runtime0.JSX.Element;
17
17
  //#endregion
18
18
  export { CalloutProps as n, CalloutVariant as r, Callout as t };
@@ -1,2 +1,2 @@
1
- import { n as ButtonProps, r as ButtonVariant, t as Button } from "../Button-Db7cVanm.js";
1
+ import { n as ButtonProps, r as ButtonVariant, t as Button } from "../Button-D4DkAJY5.js";
2
2
  export { Button, ButtonProps, ButtonVariant };
@@ -1,2 +1,2 @@
1
- import { n as CalloutProps, r as CalloutVariant, t as Callout } from "../Callout-DlwbfFHm.js";
1
+ import { n as CalloutProps, r as CalloutVariant, t as Callout } from "../Callout-Desqa2PM.js";
2
2
  export { Callout, CalloutProps, CalloutVariant };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as AccordionProps, t as Accordion } from "./Accordion-Cj5GURin.js";
2
- import { n as ButtonProps, r as ButtonVariant, t as Button } from "./Button-Db7cVanm.js";
3
- import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-DlwbfFHm.js";
2
+ import { n as ButtonProps, r as ButtonVariant, t as Button } from "./Button-D4DkAJY5.js";
3
+ import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-Desqa2PM.js";
4
4
  import * as react3 from "react";
5
5
  import { ComponentProps } from "react";
6
6
  import * as react_jsx_runtime21 from "react/jsx-runtime";
@@ -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/dist/styles.css CHANGED
@@ -14,11 +14,11 @@
14
14
 
15
15
  --stl-typography-text-code: max(0.875em, var(--stl-typography-scale-xs));
16
16
 
17
- --stl-typography-text-h1: calc(var(--stl-typography-scale-5xl) / var(--stl-typography-scale-base) * 1em);
18
- --stl-typography-text-h2: calc(var(--stl-typography-scale-4xl) / var(--stl-typography-scale-base) * 1em);
19
- --stl-typography-text-h3: calc(var(--stl-typography-scale-3xl) / var(--stl-typography-scale-base) * 1em);
20
- --stl-typography-text-h4: calc(var(--stl-typography-scale-2xl) / var(--stl-typography-scale-base) * 1em);
21
- --stl-typography-text-h5: calc(var(--stl-typography-scale-xl) / var(--stl-typography-scale-base) * 1em);
17
+ --stl-typography-text-h1: var(--stl-typography-scale-5xl);
18
+ --stl-typography-text-h2: var(--stl-typography-scale-4xl);
19
+ --stl-typography-text-h3: var(--stl-typography-scale-3xl);
20
+ --stl-typography-text-h4: var(--stl-typography-scale-2xl);
21
+ --stl-typography-text-h5: var(--stl-typography-scale-xl);
22
22
  --stl-typography-scale-xs: 12px;
23
23
  --stl-typography-scale-sm: 14px;
24
24
  --stl-typography-scale-base: 16px;
@@ -131,11 +131,11 @@ body {
131
131
  }
132
132
 
133
133
  &.smaller-headings {
134
- --stl-typography-text-h1: calc(var(--stl-typography-scale-3xl) / var(--stl-typography-scale-base) * 1em);
135
- --stl-typography-text-h2: calc(var(--stl-typography-scale-2xl) / var(--stl-typography-scale-base) * 1em);
136
- --stl-typography-text-h3: calc(var(--stl-typography-scale-xl) / var(--stl-typography-scale-base) * 1em);
137
- --stl-typography-text-h4: calc(var(--stl-typography-scale-xl) / var(--stl-typography-scale-base) * 1em);
138
- --stl-typography-text-h5: calc(var(--stl-typography-scale-lg) / var(--stl-typography-scale-base) * 1em);
134
+ --stl-typography-text-h1: var(--stl-typography-scale-3xl);
135
+ --stl-typography-text-h2: var(--stl-typography-scale-2xl);
136
+ --stl-typography-text-h3: var(--stl-typography-scale-xl);
137
+ --stl-typography-text-h4: var(--stl-typography-scale-lg);
138
+ --stl-typography-text-h5: var(--stl-typography-scale-base);
139
139
 
140
140
  :where(h1) {
141
141
  margin-top: 1.5em;
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.39",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,9 +23,9 @@
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
- "@stainless/eslint-config": "0.1.0-beta.0"
28
+ "@stainless/eslint-config": "0.1.0-beta.1"
29
29
  },
30
30
  "exports": {
31
31
  ".": {