@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.
- package/dist/{Accordion-X9MBt29l.d.ts → Accordion-Cj5GURin.d.ts} +4 -4
- package/dist/{Button-DMtVJEuK.d.ts → Button-DJ4VsD2o.d.ts} +4 -4
- package/dist/{Callout-DlwbfFHm.d.ts → Callout-DTFAhHWq.d.ts} +2 -2
- package/dist/components/Accordion.d.ts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Callout.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/styles/starlight-compat.css +1 -4
- package/dist/styles.css +16 -16
- package/package.json +8 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
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):
|
|
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'>):
|
|
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'>):
|
|
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
|
|
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):
|
|
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) =>
|
|
25
|
+
}: LabelProps) => react_jsx_runtime3.JSX.Element;
|
|
26
26
|
var Icon: ({
|
|
27
27
|
className,
|
|
28
28
|
icon: Icon,
|
|
29
29
|
size
|
|
30
|
-
}: IconProps) =>
|
|
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
|
|
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):
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { n as ButtonProps, r as ButtonVariant, t as Button } from "./Button-
|
|
3
|
-
import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-
|
|
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";
|
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:
|
|
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-
|
|
443
|
+
background-color: var(--stl-color-muted-background);
|
|
444
444
|
&:hover {
|
|
445
|
-
background-color: var(--stl-color-
|
|
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.
|
|
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.
|
|
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.
|
|
23
|
-
"react-dom": "^19.2.
|
|
24
|
-
"rolldown": "1.0.0-beta.
|
|
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.
|
|
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
|
}
|