@stainless-api/ui-primitives 0.1.0-beta.30 → 0.1.0-beta.32

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_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Accordion.d.ts
5
5
  type AccordionProps = React.ComponentProps<'details'>;
@@ -7,7 +7,7 @@ declare function Accordion({
7
7
  className,
8
8
  children,
9
9
  ...props
10
- }: AccordionProps): react_jsx_runtime2.JSX.Element;
10
+ }: AccordionProps): react_jsx_runtime0.JSX.Element;
11
11
  declare namespace Accordion {
12
12
  var Summary: typeof AccordionSummary;
13
13
  var Group: typeof AccordionGroup;
@@ -16,11 +16,11 @@ declare function AccordionSummary({
16
16
  children,
17
17
  className,
18
18
  ...props
19
- }: React.ComponentProps<'summary'>): react_jsx_runtime2.JSX.Element;
19
+ }: React.ComponentProps<'summary'>): react_jsx_runtime0.JSX.Element;
20
20
  declare function AccordionGroup({
21
21
  className,
22
22
  children,
23
23
  ...props
24
- }: React.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
24
+ }: React.ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
25
25
  //#endregion
26
26
  export { AccordionProps as n, Accordion as t };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 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
@@ -17,17 +17,17 @@ type ButtonBranch = BaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElemen
17
17
  href?: never;
18
18
  };
19
19
  type ButtonProps = AnchorBranch | ButtonBranch;
20
- declare function Button(props: ButtonProps): react_jsx_runtime0.JSX.Element;
20
+ declare function Button(props: ButtonProps): react_jsx_runtime3.JSX.Element;
21
21
  declare namespace Button {
22
22
  var Label: ({
23
23
  className,
24
24
  ...rest
25
- }: LabelProps) => react_jsx_runtime0.JSX.Element;
25
+ }: LabelProps) => react_jsx_runtime3.JSX.Element;
26
26
  var Icon: ({
27
27
  className,
28
28
  icon: Icon,
29
29
  size
30
- }: IconProps) => react_jsx_runtime0.JSX.Element;
30
+ }: IconProps) => react_jsx_runtime3.JSX.Element;
31
31
  }
32
32
  type LabelProps = React.HTMLAttributes<HTMLSpanElement>;
33
33
  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_runtime2 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_runtime2.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 AccordionProps, t as Accordion } from "../Accordion-X9MBt29l.js";
1
+ import { n as AccordionProps, t as Accordion } from "../Accordion-Cj5GURin.js";
2
2
  export { Accordion, AccordionProps };
@@ -1,2 +1,2 @@
1
- import { n as ButtonProps, r as ButtonVariant, t as Button } from "../Button-DMtVJEuK.js";
1
+ import { n as ButtonProps, r as ButtonVariant, t as Button } from "../Button-DJ4VsD2o.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-DTFAhHWq.js";
2
2
  export { Callout, CalloutProps, CalloutVariant };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as AccordionProps, t as Accordion } from "./Accordion-X9MBt29l.js";
2
- import { n as ButtonProps, r as ButtonVariant, t as Button } from "./Button-DMtVJEuK.js";
3
- import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-DlwbfFHm.js";
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-DJ4VsD2o.js";
3
+ import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-DTFAhHWq.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";
@@ -138,10 +138,7 @@
138
138
  }
139
139
 
140
140
  li:not(.stl-ui-not-prose *) {
141
- margin-bottom: -2px;
142
- &:not(:last-child) {
143
- margin-bottom: -2px;
144
- }
141
+ margin-bottom: 0;
145
142
 
146
143
  a:first-child {
147
144
  display: flex;
package/dist/styles.css CHANGED
@@ -225,7 +225,7 @@ body {
225
225
  --stl-color-muted-background: light-dark(rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
226
226
  --stl-color-muted-background-hover: rgb(from var(--stl-color-muted-background) r g b/calc(alpha * 2));
227
227
  /* faint background */
228
- --stl-color-faint-background: light-dark(rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-004))), rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))));
228
+ --stl-color-faint-background: rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-004)));
229
229
  --stl-color-faint-background-hover: rgb(from var(--stl-color-faint-background) r g b/calc(alpha * 2));
230
230
  /* ui elements like cards and buttons match --stl-color-background in light mode, but have a slight tint in dark mode */
231
231
  --stl-color-ui-background: light-dark(
@@ -305,6 +305,19 @@ body {
305
305
  --stl-color-blue-inverse-background: var(--stl-color-blue);
306
306
  --stl-color-blue-inverse-background-hover: rgb(from var(--stl-color-blue) r g b/calc(alpha * var(--stl-opacity-level-080)));
307
307
  --stl-color-blue-inverse-foreground: rgb(255, 255, 255);
308
+ /* yellow */
309
+ --stl-color-yellow: light-dark(#ca8a04, #eab308);
310
+ --stl-color-yellow-foreground: var(--stl-color-yellow);
311
+ --stl-color-yellow-foreground-reduced: rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
312
+ --stl-color-yellow-foreground-muted: rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
313
+ --stl-color-yellow-muted-background: light-dark(rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
314
+ --stl-color-yellow-muted-background-hover: rgb(from var(--stl-color-yellow-muted-background) r g b/calc(alpha * 2));
315
+ --stl-color-yellow-border: light-dark(rgb(from var(--stl-color-yellow) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-yellow) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
316
+ --stl-color-yellow-border-faint: rgb(from var(--stl-color-yellow-border) r g b/calc(alpha * 0.5));
317
+ --stl-color-yellow-border-strong: var(--stl-color-yellow);
318
+ --stl-color-yellow-inverse-background: var(--stl-color-yellow);
319
+ --stl-color-yellow-inverse-background-hover: rgb(from var(--stl-color-yellow) r g b/calc(alpha * var(--stl-opacity-level-080)));
320
+ --stl-color-yellow-inverse-foreground: rgb(255, 255, 255);
308
321
  /* orange */
309
322
  --stl-color-orange: light-dark(#ea580c, #f97316);
310
323
  --stl-color-orange-foreground: var(--stl-color-orange);
@@ -357,19 +370,6 @@ body {
357
370
  --stl-color-pink-inverse-background: var(--stl-color-pink);
358
371
  --stl-color-pink-inverse-background-hover: rgb(from var(--stl-color-pink) r g b/calc(alpha * var(--stl-opacity-level-080)));
359
372
  --stl-color-pink-inverse-foreground: rgb(255, 255, 255);
360
- /* yellow */
361
- --stl-color-yellow: light-dark(#ca8a04, #eab308);
362
- --stl-color-yellow-foreground: var(--stl-color-yellow);
363
- --stl-color-yellow-foreground-reduced: rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
364
- --stl-color-yellow-foreground-muted: rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
365
- --stl-color-yellow-muted-background: light-dark(rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
366
- --stl-color-yellow-muted-background-hover: rgb(from var(--stl-color-yellow-muted-background) r g b/calc(alpha * 2));
367
- --stl-color-yellow-border: light-dark(rgb(from var(--stl-color-yellow) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-yellow) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
368
- --stl-color-yellow-border-faint: rgb(from var(--stl-color-yellow-border) r g b/calc(alpha * 0.5));
369
- --stl-color-yellow-border-strong: var(--stl-color-yellow);
370
- --stl-color-yellow-inverse-background: var(--stl-color-yellow);
371
- --stl-color-yellow-inverse-background-hover: rgb(from var(--stl-color-yellow) r g b/calc(alpha * var(--stl-opacity-level-080)));
372
- --stl-color-yellow-inverse-foreground: rgb(255, 255, 255);
373
373
  }
374
374
  :root[data-theme=dark],
375
375
  .stl-theme-dark {
@@ -440,9 +440,9 @@ body {
440
440
 
441
441
  .stl-ui-button--muted {
442
442
  color: var(--stl-color-foreground);
443
- background-color: var(--stl-color-faint-background);
443
+ background-color: var(--stl-color-muted-background);
444
444
  &:hover {
445
- background-color: var(--stl-color-faint-background-hover);
445
+ background-color: var(--stl-color-muted-background-hover);
446
446
  }
447
447
  }
448
448
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/ui-primitives",
3
- "version": "0.1.0-beta.30",
3
+ "version": "0.1.0-beta.32",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,16 +14,16 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "clsx": "^2.1.1",
17
- "lucide-react": "^0.554.0"
17
+ "lucide-react": "^0.555.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/react": "^19.2.7",
21
21
  "@types/react-dom": "^19.2.3",
22
- "react": "^19.2.0",
23
- "react-dom": "^19.2.0",
24
- "rolldown": "1.0.0-beta.51",
22
+ "react": "^19.2.1",
23
+ "react-dom": "^19.2.1",
24
+ "rolldown": "1.0.0-beta.53",
25
25
  "sass": "^1.94.2",
26
- "tsdown": "^0.16.7",
26
+ "tsdown": "^0.16.8",
27
27
  "typescript": "5.9.3",
28
28
  "@stainless/eslint-config": "0.1.0-beta.0"
29
29
  },
@@ -45,6 +45,8 @@
45
45
  }
46
46
  },
47
47
  "scripts": {
48
+ "lint": "eslint .",
49
+ "check:types": "tsc --noEmit",
48
50
  "build": "tsdown",
49
51
  "clean": "rm -rf dist"
50
52
  }