@stainless-api/ui-primitives 0.1.0-beta.23 → 0.1.0-beta.24
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/index.d.ts +5 -5
- package/dist/styles.css +23 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as AccordionProps, t as Accordion } from "./Accordion-Cj5GURin.js";
|
|
2
2
|
import { n as ButtonProps, r as ButtonVariant, t as Button } from "./Button-CxQtPObH.js";
|
|
3
3
|
import { n as CalloutProps, r as CalloutVariant, t as Callout } from "./Callout-DlwbfFHm.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react3 from "react";
|
|
5
5
|
import { ComponentProps } from "react";
|
|
6
6
|
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -74,14 +74,14 @@ declare namespace Dropdown {
|
|
|
74
74
|
value: string;
|
|
75
75
|
isExternalLink?: boolean;
|
|
76
76
|
isSelected?: boolean;
|
|
77
|
-
} &
|
|
77
|
+
} & react3.ClassAttributes<HTMLAnchorElement> & react3.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
78
78
|
href: string;
|
|
79
79
|
}) | ({
|
|
80
80
|
children?: React.ReactNode;
|
|
81
81
|
value: string;
|
|
82
82
|
isExternalLink?: boolean;
|
|
83
83
|
isSelected?: boolean;
|
|
84
|
-
} &
|
|
84
|
+
} & react3.ClassAttributes<HTMLButtonElement> & react3.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
85
85
|
href?: never;
|
|
86
86
|
})) => react_jsx_runtime21.JSX.Element;
|
|
87
87
|
var MenuItemText: ({
|
|
@@ -131,14 +131,14 @@ declare namespace DropdownButton {
|
|
|
131
131
|
value: string;
|
|
132
132
|
isExternalLink?: boolean;
|
|
133
133
|
isSelected?: boolean;
|
|
134
|
-
} &
|
|
134
|
+
} & react3.ClassAttributes<HTMLAnchorElement> & react3.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
135
135
|
href: string;
|
|
136
136
|
}) | ({
|
|
137
137
|
children?: React.ReactNode;
|
|
138
138
|
value: string;
|
|
139
139
|
isExternalLink?: boolean;
|
|
140
140
|
isSelected?: boolean;
|
|
141
|
-
} &
|
|
141
|
+
} & react3.ClassAttributes<HTMLButtonElement> & react3.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
142
142
|
href?: never;
|
|
143
143
|
})) => react_jsx_runtime21.JSX.Element;
|
|
144
144
|
var MenuItemText: ({
|
package/dist/styles.css
CHANGED
|
@@ -276,62 +276,67 @@ body {
|
|
|
276
276
|
color: initial;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
:where(p:not(.stl-ui-not-prose *)) {
|
|
279
|
+
:where(p:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose p) {
|
|
280
280
|
margin-top: 16px;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
:where(strong:not(.stl-ui-not-prose *)) {
|
|
283
|
+
:where(strong:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose strong) {
|
|
284
284
|
color: var(--stl-ui-foreground);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
:where(aside:not(.stl-ui-not-prose *)) {
|
|
287
|
+
:where(aside:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose aside) {
|
|
288
288
|
color: var(--stl-ui-foreground);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
:where(h1, h2, h3, h4, h5, h6):where(:not(.stl-ui-not-prose *)) {
|
|
291
|
+
:where(h1, h2, h3, h4, h5, h6):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
292
292
|
color: var(--stl-ui-foreground);
|
|
293
293
|
font-weight: 500;
|
|
294
294
|
line-height: var(--stl-ui-typography-line-height-headings);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
:where(h1:not(.stl-ui-not-prose *)) {
|
|
297
|
+
:where(h1:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h1) {
|
|
298
298
|
/* Heading 1/Medium */
|
|
299
299
|
font-size: var(--stl-ui-typography-text-h1);
|
|
300
300
|
letter-spacing: -0.03em;
|
|
301
|
-
|
|
302
301
|
margin-top: 64px;
|
|
303
302
|
}
|
|
304
303
|
|
|
305
|
-
:where(h2:not(.stl-ui-not-prose *)) {
|
|
304
|
+
:where(h2:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h2) {
|
|
306
305
|
/* Heading 2/Medium */
|
|
307
306
|
font-size: var(--stl-ui-typography-text-h2);
|
|
308
307
|
letter-spacing: -0.03em;
|
|
309
|
-
|
|
310
308
|
margin-top: 48px;
|
|
311
309
|
}
|
|
312
310
|
|
|
313
|
-
:where(h3:not(.stl-ui-not-prose *)) {
|
|
311
|
+
:where(h3:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h3) {
|
|
314
312
|
/* Heading 3/Medium */
|
|
315
313
|
font-size: var(--stl-ui-typography-text-h3);
|
|
316
314
|
letter-spacing: -0.02em;
|
|
317
315
|
margin-top: 40px;
|
|
318
316
|
}
|
|
319
317
|
|
|
320
|
-
:where(h4:not(.stl-ui-not-prose *)) {
|
|
318
|
+
:where(h4:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h4) {
|
|
321
319
|
/* Heading 4/Medium */
|
|
322
320
|
font-size: var(--stl-ui-typography-text-h4);
|
|
323
321
|
letter-spacing: -0.02em;
|
|
324
322
|
margin-top: 32px;
|
|
325
323
|
}
|
|
326
324
|
|
|
327
|
-
:where(h5:not(.stl-ui-not-prose *)) {
|
|
325
|
+
:where(h5:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h5) {
|
|
328
326
|
/* Heading 5/Medium */
|
|
329
327
|
font-size: var(--stl-ui-typography-text-h5);
|
|
330
328
|
letter-spacing: -0.02em;
|
|
331
329
|
margin-top: 24px;
|
|
332
330
|
}
|
|
333
331
|
|
|
334
|
-
|
|
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
|
+
:where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
|
|
335
340
|
&:where(:not(:last-child)) {
|
|
336
341
|
margin-bottom: 8px;
|
|
337
342
|
}
|
|
@@ -351,16 +356,19 @@ body {
|
|
|
351
356
|
}
|
|
352
357
|
|
|
353
358
|
:where(ol, ul) {
|
|
354
|
-
&:not(.stl-ui-not-prose *) {
|
|
359
|
+
&:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
355
360
|
padding-left: 26px;
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
363
|
|
|
359
|
-
:where(ol, ul, aside, img, figure, details):where(
|
|
364
|
+
:where(ol, ul, aside, img, figure, details):where(
|
|
365
|
+
:not(.stl-ui-not-prose *),
|
|
366
|
+
.stl-ui-not-prose .stl-ui-prose *
|
|
367
|
+
) {
|
|
360
368
|
margin-top: 16px;
|
|
361
369
|
}
|
|
362
370
|
|
|
363
|
-
:where(:not(pre) > code):where(:not(.stl-ui-not-prose *)) {
|
|
371
|
+
:where(:not(pre) > code):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
|
|
364
372
|
color: var(--stl-ui-foreground);
|
|
365
373
|
font-feature-settings:
|
|
366
374
|
'ss01' on,
|