@stainless-api/ui-primitives 0.1.0-beta.24 → 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/{Button-CxQtPObH.d.ts → Button-DJ4VsD2o.d.ts} +4 -4
- package/dist/{Callout-DlwbfFHm.d.ts → Callout-DTFAhHWq.d.ts} +2 -2
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Callout.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles.css +21 -8
- package/package.json +18 -18
|
@@ -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 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
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-
|
|
3
|
-
import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-
|
|
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
|
@@ -329,13 +329,6 @@ body {
|
|
|
329
329
|
margin-top: 24px;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
/* For the first element below stl-ui-prose, do not apply a margin-top */
|
|
333
|
-
:where(*):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
334
|
-
&:first-child {
|
|
335
|
-
margin-top: 0;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
332
|
:where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
|
|
340
333
|
&:where(:not(:last-child)) {
|
|
341
334
|
margin-bottom: 8px;
|
|
@@ -355,6 +348,18 @@ body {
|
|
|
355
348
|
}
|
|
356
349
|
}
|
|
357
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
|
+
|
|
358
363
|
:where(ol, ul) {
|
|
359
364
|
&:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
360
365
|
padding-left: 26px;
|
|
@@ -378,13 +383,17 @@ body {
|
|
|
378
383
|
|
|
379
384
|
/* Code/Regular */
|
|
380
385
|
font-family: var(--stl-ui-typography-font-mono);
|
|
381
|
-
font-size:
|
|
386
|
+
font-size: var(--stl-ui-typography-text-body-sm);
|
|
382
387
|
font-weight: inherit;
|
|
383
388
|
|
|
384
389
|
padding: 0 0.2em;
|
|
385
390
|
background-color: oklch(from var(--stl-ui-foreground) l c h / 0.1);
|
|
386
391
|
border-radius: 0.2em;
|
|
387
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
|
+
}
|
|
388
397
|
}
|
|
389
398
|
|
|
390
399
|
@layer stl-ui.tokens {
|
|
@@ -683,6 +692,10 @@ body {
|
|
|
683
692
|
background-color: var(--stl-ui-button-background-color-hover);
|
|
684
693
|
border-color: var(--stl-ui-button-border-color-hover);
|
|
685
694
|
}
|
|
695
|
+
|
|
696
|
+
&[hidden] {
|
|
697
|
+
display: none;
|
|
698
|
+
}
|
|
686
699
|
}
|
|
687
700
|
|
|
688
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"
|