@stainless-api/ui-primitives 0.1.0-beta.25 → 0.1.0-beta.26
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-CvvTR8p8.d.ts → Accordion-Cj5GURin.d.ts} +4 -4
- package/dist/{Button-DMtVJEuK.d.ts → Button-DJ4VsD2o.d.ts} +4 -4
- package/dist/components/Accordion.d.ts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles.css +21 -1
- package/package.json +18 -18
|
@@ -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,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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as AccordionProps, t as Accordion } from "./Accordion-
|
|
2
|
-
import { n as ButtonProps, r as ButtonVariant, t as Button } from "./Button-
|
|
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
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";
|
package/dist/styles.css
CHANGED
|
@@ -348,6 +348,18 @@ body {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
+
:where(
|
|
352
|
+
pre:not(.stl-ui-not-prose *, .expressive-code *),
|
|
353
|
+
.stl-ui-not-prose .stl-ui-prose pre:not(.expressive-code *)
|
|
354
|
+
) {
|
|
355
|
+
padding: 12px 20px;
|
|
356
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
357
|
+
border: 1px solid var(--stl-ui-border);
|
|
358
|
+
background-color: var(--stl-ui-muted-background);
|
|
359
|
+
overflow: scroll;
|
|
360
|
+
margin-bottom: 1rem;
|
|
361
|
+
}
|
|
362
|
+
|
|
351
363
|
:where(ol, ul) {
|
|
352
364
|
&:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
353
365
|
padding-left: 26px;
|
|
@@ -371,13 +383,17 @@ body {
|
|
|
371
383
|
|
|
372
384
|
/* Code/Regular */
|
|
373
385
|
font-family: var(--stl-ui-typography-font-mono);
|
|
374
|
-
font-size:
|
|
386
|
+
font-size: var(--stl-ui-typography-text-body-sm);
|
|
375
387
|
font-weight: inherit;
|
|
376
388
|
|
|
377
389
|
padding: 0 0.2em;
|
|
378
390
|
background-color: oklch(from var(--stl-ui-foreground) l c h / 0.1);
|
|
379
391
|
border-radius: 0.2em;
|
|
380
392
|
}
|
|
393
|
+
|
|
394
|
+
:where(pre > code):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
395
|
+
font-size: var(--stl-ui-typography-text-body-sm);
|
|
396
|
+
}
|
|
381
397
|
}
|
|
382
398
|
|
|
383
399
|
@layer stl-ui.tokens {
|
|
@@ -676,6 +692,10 @@ body {
|
|
|
676
692
|
background-color: var(--stl-ui-button-background-color-hover);
|
|
677
693
|
border-color: var(--stl-ui-button-border-color-hover);
|
|
678
694
|
}
|
|
695
|
+
|
|
696
|
+
&[hidden] {
|
|
697
|
+
display: none;
|
|
698
|
+
}
|
|
679
699
|
}
|
|
680
700
|
|
|
681
701
|
/* --- COLOR VARIANTS --- */
|
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.26",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,37 +8,37 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"default": "./dist/index.js"
|
|
14
|
-
},
|
|
15
|
-
"./scripts": {
|
|
16
|
-
"default": "./dist/scripts/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./styles.css": {
|
|
19
|
-
"default": "./dist/styles.css"
|
|
20
|
-
},
|
|
21
|
-
"./*": {
|
|
22
|
-
"default": "./dist/*"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
11
|
"peerDependencies": {
|
|
26
12
|
"react": ">=19.0.0",
|
|
27
13
|
"react-dom": ">=19.0.0"
|
|
28
14
|
},
|
|
29
15
|
"dependencies": {
|
|
30
16
|
"clsx": "^2.1.1",
|
|
31
|
-
"lucide-react": "^0.
|
|
17
|
+
"lucide-react": "^0.554.0"
|
|
32
18
|
},
|
|
33
19
|
"devDependencies": {
|
|
34
|
-
"@types/react": "^19.2.
|
|
20
|
+
"@types/react": "^19.2.6",
|
|
35
21
|
"@types/react-dom": "^19.2.3",
|
|
36
22
|
"react": "^19.2.0",
|
|
37
23
|
"react-dom": "^19.2.0",
|
|
38
|
-
"tsdown": "^0.16.
|
|
24
|
+
"tsdown": "^0.16.6",
|
|
39
25
|
"typescript": "5.9.3",
|
|
40
26
|
"@stainless/eslint-config": "0.1.0-beta.0"
|
|
41
27
|
},
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./scripts": {
|
|
33
|
+
"default": "./dist/scripts/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./styles.css": {
|
|
36
|
+
"default": "./dist/styles.css"
|
|
37
|
+
},
|
|
38
|
+
"./*": {
|
|
39
|
+
"default": "./dist/*"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsdown",
|
|
44
44
|
"clean": "rm -rf dist"
|