@stainless-api/ui-primitives 0.1.0-beta.38 → 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.
- package/dist/{Button-Db7cVanm.d.ts → Button-D4DkAJY5.d.ts} +4 -4
- package/dist/{Callout-DlwbfFHm.d.ts → Callout-Desqa2PM.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 +10 -10
- package/package.json +2 -2
- package/dist/Accordion-CvvTR8p8.d.ts +0 -26
- package/dist/Button-Dlt_8Q0N.d.ts +0 -42
- package/dist/Callout-DTFAhHWq.d.ts +0 -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
|
|
@@ -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):
|
|
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) =>
|
|
29
|
+
}: LabelProps) => react_jsx_runtime3.JSX.Element;
|
|
30
30
|
var Icon: ({
|
|
31
31
|
className,
|
|
32
32
|
icon: Icon,
|
|
33
33
|
size
|
|
34
|
-
}: IconProps) =>
|
|
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
|
|
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):
|
|
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-
|
|
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-
|
|
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-
|
|
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-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";
|
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:
|
|
18
|
-
--stl-typography-text-h2:
|
|
19
|
-
--stl-typography-text-h3:
|
|
20
|
-
--stl-typography-text-h4:
|
|
21
|
-
--stl-typography-text-h5:
|
|
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:
|
|
135
|
-
--stl-typography-text-h2:
|
|
136
|
-
--stl-typography-text-h3:
|
|
137
|
-
--stl-typography-text-h4:
|
|
138
|
-
--stl-typography-text-h5:
|
|
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.
|
|
3
|
+
"version": "0.1.0-beta.39",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"sass": "^1.96.0",
|
|
26
26
|
"tsdown": "^0.18.0",
|
|
27
27
|
"typescript": "5.9.3",
|
|
28
|
-
"@stainless/eslint-config": "0.1.0-beta.
|
|
28
|
+
"@stainless/eslint-config": "0.1.0-beta.1"
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/Accordion.d.ts
|
|
5
|
-
type AccordionProps = React.ComponentProps<'details'>;
|
|
6
|
-
declare function Accordion({
|
|
7
|
-
className,
|
|
8
|
-
children,
|
|
9
|
-
...props
|
|
10
|
-
}: AccordionProps): react_jsx_runtime3.JSX.Element;
|
|
11
|
-
declare namespace Accordion {
|
|
12
|
-
var Summary: typeof AccordionSummary;
|
|
13
|
-
var Group: typeof AccordionGroup;
|
|
14
|
-
}
|
|
15
|
-
declare function AccordionSummary({
|
|
16
|
-
children,
|
|
17
|
-
className,
|
|
18
|
-
...props
|
|
19
|
-
}: React.ComponentProps<'summary'>): react_jsx_runtime3.JSX.Element;
|
|
20
|
-
declare function AccordionGroup({
|
|
21
|
-
className,
|
|
22
|
-
children,
|
|
23
|
-
...props
|
|
24
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime3.JSX.Element;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { AccordionProps as n, Accordion as t };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import { LucideIcon } from "lucide-react";
|
|
4
|
-
|
|
5
|
-
//#region src/components/Button.d.ts
|
|
6
|
-
type ButtonVariant = 'outline' | 'ghost' | 'accent' | 'accent-muted' | 'muted' | 'success' | 'destructive' | 'default';
|
|
7
|
-
type BaseProps = {
|
|
8
|
-
variant?: ButtonVariant;
|
|
9
|
-
className?: string;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
size?: 'sm' | 'lg' | 'default';
|
|
12
|
-
border?: boolean;
|
|
13
|
-
loading?: {
|
|
14
|
-
label: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
type AnchorBranch = BaseProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'children'> & {
|
|
18
|
-
href: string;
|
|
19
|
-
};
|
|
20
|
-
type ButtonBranch = BaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'children'> & {
|
|
21
|
-
href?: never;
|
|
22
|
-
};
|
|
23
|
-
type ButtonProps = AnchorBranch | ButtonBranch;
|
|
24
|
-
declare function Button(props: ButtonProps): react_jsx_runtime0.JSX.Element;
|
|
25
|
-
declare namespace Button {
|
|
26
|
-
var Label: ({
|
|
27
|
-
className,
|
|
28
|
-
...rest
|
|
29
|
-
}: LabelProps) => react_jsx_runtime0.JSX.Element;
|
|
30
|
-
var Icon: ({
|
|
31
|
-
className,
|
|
32
|
-
icon: Icon,
|
|
33
|
-
size
|
|
34
|
-
}: IconProps) => react_jsx_runtime0.JSX.Element;
|
|
35
|
-
}
|
|
36
|
-
type LabelProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
37
|
-
type IconProps = {
|
|
38
|
-
icon: LucideIcon;
|
|
39
|
-
size?: number;
|
|
40
|
-
} & React.HTMLAttributes<HTMLSpanElement>;
|
|
41
|
-
//#endregion
|
|
42
|
-
export { ButtonProps as n, ButtonVariant as r, Button as t };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/Callout.d.ts
|
|
5
|
-
type CalloutVariant = 'info' | 'note' | 'tip' | 'success' | 'warning' | 'danger';
|
|
6
|
-
type CalloutProps = {
|
|
7
|
-
variant?: CalloutVariant;
|
|
8
|
-
className?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
} & Omit<React.ComponentProps<'aside'>, 'className' | 'children'>;
|
|
11
|
-
declare function Callout({
|
|
12
|
-
variant,
|
|
13
|
-
className,
|
|
14
|
-
children,
|
|
15
|
-
...props
|
|
16
|
-
}: CalloutProps): react_jsx_runtime2.JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { CalloutProps as n, CalloutVariant as r, Callout as t };
|