@stainless-api/ui-primitives 0.1.0-beta.51 → 0.1.0-beta.53

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.
@@ -1,11 +1,11 @@
1
1
  import { ComponentProps } from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/dropdown/DropdownMenu.d.ts
5
5
  declare function Menu({
6
6
  className,
7
7
  ...props
8
- }: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
8
+ }: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
9
9
  declare namespace Menu {
10
10
  var Item: typeof MenuItem;
11
11
  var ItemText: typeof MenuItemText;
@@ -17,7 +17,7 @@ declare function MenuItemText({
17
17
  ...props
18
18
  }: ComponentProps<'span'> & {
19
19
  subtle?: boolean;
20
- }): react_jsx_runtime0.JSX.Element;
20
+ }): _$react_jsx_runtime0.JSX.Element;
21
21
  type MenuItemBaseProps = {
22
22
  children?: React.ReactNode;
23
23
  value: string;
@@ -38,7 +38,7 @@ declare function MenuItem({
38
38
  isExternalLink,
39
39
  isSelected,
40
40
  ...props
41
- }: MenuItemProps): react_jsx_runtime0.JSX.Element;
41
+ }: MenuItemProps): _$react_jsx_runtime0.JSX.Element;
42
42
  /**
43
43
  * A template component that defines the content to be displayed in the dropdown trigger
44
44
  * when a menu item is selected. This template is used to customize the appearance of
@@ -49,6 +49,6 @@ declare function MenuItem({
49
49
  */
50
50
  declare function MenuItemTemplate({
51
51
  ...props
52
- }: ComponentProps<'template'>): react_jsx_runtime0.JSX.Element;
52
+ }: ComponentProps<'template'>): _$react_jsx_runtime0.JSX.Element;
53
53
  //#endregion
54
54
  export { Menu as t };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
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): react_jsx_runtime0.JSX.Element;
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'>): react_jsx_runtime0.JSX.Element;
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'>): react_jsx_runtime0.JSX.Element;
24
+ }: React.ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
25
25
  //#endregion
26
26
  export { Accordion, AccordionProps };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Badge.d.ts
5
5
  type BadgeIntent = 'none' | 'info' | 'success' | 'warning' | 'danger' | 'note' | 'tip' | 'accent';
@@ -16,7 +16,7 @@ declare function BaseBadge({
16
16
  intent?: BadgeIntent;
17
17
  size?: 'sm' | 'md' | 'lg';
18
18
  solid?: boolean;
19
- } & React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime0.JSX.Element;
19
+ } & React.HTMLAttributes<HTMLSpanElement>): _$react_jsx_runtime0.JSX.Element;
20
20
  type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
21
21
  declare function getHttpMethod(method?: string): HTTPMethod | null;
22
22
  declare function HTTPBadge({
@@ -26,14 +26,14 @@ declare function HTTPBadge({
26
26
  }: {
27
27
  method: HTTPMethod;
28
28
  iconOnly?: boolean;
29
- } & Omit<React.ComponentProps<typeof Badge>, 'children' | 'intent'>): react_jsx_runtime0.JSX.Element;
29
+ } & Omit<React.ComponentProps<typeof Badge>, 'children' | 'intent'>): _$react_jsx_runtime0.JSX.Element;
30
30
  declare const Badge: (({
31
31
  children,
32
32
  intent,
33
33
  ...props
34
34
  }: {
35
35
  children: React.ReactNode;
36
- } & React.ComponentProps<typeof BaseBadge>) => react_jsx_runtime0.JSX.Element) & {
36
+ } & React.ComponentProps<typeof BaseBadge>) => _$react_jsx_runtime0.JSX.Element) & {
37
37
  HTTP: typeof HTTPBadge;
38
38
  };
39
39
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
  import { LucideIcon } from "lucide-react";
4
4
 
5
5
  //#region src/components/Button.d.ts
@@ -21,18 +21,18 @@ 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): react_jsx_runtime0.JSX.Element;
24
+ declare function Button(props: ButtonProps): _$react_jsx_runtime0.JSX.Element;
25
25
  declare namespace Button {
26
26
  var Label: ({
27
27
  className,
28
28
  ...rest
29
- }: LabelProps) => react_jsx_runtime0.JSX.Element;
29
+ }: LabelProps) => _$react_jsx_runtime0.JSX.Element;
30
30
  var Icon: ({
31
31
  className,
32
32
  icon: Icon,
33
33
  size,
34
34
  ...rest
35
- }: IconProps) => react_jsx_runtime0.JSX.Element;
35
+ }: IconProps) => _$react_jsx_runtime0.JSX.Element;
36
36
  }
37
37
  type LabelProps = React.HTMLAttributes<HTMLSpanElement>;
38
38
  type IconProps = {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
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): react_jsx_runtime0.JSX.Element;
16
+ }: CalloutProps): _$react_jsx_runtime0.JSX.Element;
17
17
  //#endregion
18
18
  export { Callout, CalloutProps, CalloutVariant };
@@ -1,17 +1,17 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/Steps.d.ts
4
4
  declare function Steps({
5
5
  children
6
6
  }: {
7
7
  children: React.ReactNode;
8
- }): react_jsx_runtime0.JSX.Element;
8
+ }): _$react_jsx_runtime0.JSX.Element;
9
9
  declare function Step({
10
10
  children,
11
11
  title
12
12
  }: {
13
13
  children: React.ReactNode;
14
14
  title: string;
15
- }): react_jsx_runtime0.JSX.Element;
15
+ }): _$react_jsx_runtime0.JSX.Element;
16
16
  //#endregion
17
17
  export { Step, Steps };
@@ -1,13 +1,13 @@
1
- import { t as Menu } from "../../DropdownMenu-H_J8MxM7.js";
2
- import * as react from "react";
1
+ import { t as Menu } from "../../DropdownMenu-DJ2-gPoP.js";
2
+ import * as _$react from "react";
3
3
  import { ComponentProps } from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/dropdown/Dropdown.d.ts
7
7
  declare function Dropdown({
8
8
  className,
9
9
  ...props
10
- }: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
10
+ }: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
11
11
  declare namespace Dropdown {
12
12
  var Menu: typeof Menu;
13
13
  var MenuItem: ({
@@ -22,42 +22,42 @@ declare namespace Dropdown {
22
22
  value: string;
23
23
  isExternalLink?: boolean;
24
24
  isSelected?: boolean;
25
- } & react.ClassAttributes<HTMLAnchorElement> & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
25
+ } & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
26
26
  href: string;
27
27
  }) | ({
28
28
  children?: React.ReactNode;
29
29
  value: string;
30
30
  isExternalLink?: boolean;
31
31
  isSelected?: boolean;
32
- } & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
32
+ } & _$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & {
33
33
  href?: never;
34
- })) => react_jsx_runtime0.JSX.Element;
34
+ })) => _$react_jsx_runtime0.JSX.Element;
35
35
  var MenuItemText: ({
36
36
  className,
37
37
  subtle,
38
38
  ...props
39
39
  }: ComponentProps<"span"> & {
40
40
  subtle?: boolean;
41
- }) => react_jsx_runtime0.JSX.Element;
41
+ }) => _$react_jsx_runtime0.JSX.Element;
42
42
  var MenuItemTemplate: ({
43
43
  ...props
44
- }: ComponentProps<"template">) => react_jsx_runtime0.JSX.Element;
44
+ }: ComponentProps<"template">) => _$react_jsx_runtime0.JSX.Element;
45
45
  var Trigger: ({
46
46
  className,
47
47
  ...props
48
- }: ComponentProps<"button">) => react_jsx_runtime0.JSX.Element;
48
+ }: ComponentProps<"button">) => _$react_jsx_runtime0.JSX.Element;
49
49
  var TriggerSelectedItem: ({
50
50
  className,
51
51
  ...props
52
- }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
52
+ }: ComponentProps<"div">) => _$react_jsx_runtime0.JSX.Element;
53
53
  var TriggerIcon: ({
54
54
  className,
55
55
  ...props
56
- }: ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
56
+ }: ComponentProps<"span">) => _$react_jsx_runtime0.JSX.Element;
57
57
  var Icon: ({
58
58
  className,
59
59
  ...props
60
- }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
60
+ }: ComponentProps<"div">) => _$react_jsx_runtime0.JSX.Element;
61
61
  }
62
62
  //#endregion
63
63
  export { Dropdown };
@@ -1,13 +1,13 @@
1
- import { t as Menu } from "../../DropdownMenu-H_J8MxM7.js";
2
- import * as react from "react";
1
+ import { t as Menu } from "../../DropdownMenu-DJ2-gPoP.js";
2
+ import * as _$react from "react";
3
3
  import { ComponentProps } from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/dropdown/DropdownButton.d.ts
7
7
  declare function DropdownButton({
8
8
  className,
9
9
  ...props
10
- }: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element;
10
+ }: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
11
11
  declare namespace DropdownButton {
12
12
  var Menu: typeof Menu;
13
13
  var MenuItem: ({
@@ -22,40 +22,40 @@ declare namespace DropdownButton {
22
22
  value: string;
23
23
  isExternalLink?: boolean;
24
24
  isSelected?: boolean;
25
- } & react.ClassAttributes<HTMLAnchorElement> & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
25
+ } & _$react.ClassAttributes<HTMLAnchorElement> & _$react.AnchorHTMLAttributes<HTMLAnchorElement> & {
26
26
  href: string;
27
27
  }) | ({
28
28
  children?: React.ReactNode;
29
29
  value: string;
30
30
  isExternalLink?: boolean;
31
31
  isSelected?: boolean;
32
- } & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
32
+ } & _$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & {
33
33
  href?: never;
34
- })) => react_jsx_runtime0.JSX.Element;
34
+ })) => _$react_jsx_runtime0.JSX.Element;
35
35
  var MenuItemText: ({
36
36
  className,
37
37
  subtle,
38
38
  ...props
39
39
  }: ComponentProps<"span"> & {
40
40
  subtle?: boolean;
41
- }) => react_jsx_runtime0.JSX.Element;
41
+ }) => _$react_jsx_runtime0.JSX.Element;
42
42
  var PrimaryAction: ({
43
43
  className,
44
44
  ...props
45
- }: ComponentProps<"button">) => react_jsx_runtime0.JSX.Element;
45
+ }: ComponentProps<"button">) => _$react_jsx_runtime0.JSX.Element;
46
46
  var PrimaryActionText: ({
47
47
  children
48
48
  }: {
49
49
  children?: React.ReactNode;
50
- }) => react_jsx_runtime0.JSX.Element;
50
+ }) => _$react_jsx_runtime0.JSX.Element;
51
51
  var Trigger: ({
52
52
  className,
53
53
  ...props
54
- }: ComponentProps<"button">) => react_jsx_runtime0.JSX.Element;
54
+ }: ComponentProps<"button">) => _$react_jsx_runtime0.JSX.Element;
55
55
  var Icon: ({
56
56
  className,
57
57
  ...props
58
- }: ComponentProps<"div">) => react_jsx_runtime0.JSX.Element;
58
+ }: ComponentProps<"div">) => _$react_jsx_runtime0.JSX.Element;
59
59
  }
60
60
  //#endregion
61
61
  export { DropdownButton };
@@ -1,2 +1,2 @@
1
- import { t as Menu } from "../../DropdownMenu-H_J8MxM7.js";
1
+ import { t as Menu } from "../../DropdownMenu-DJ2-gPoP.js";
2
2
  export { Menu };
@@ -1,9 +1,9 @@
1
- import * as react from "react";
2
- import * as lucide_react0 from "lucide-react";
1
+ import * as _$react from "react";
2
+ import * as _$lucide_react0 from "lucide-react";
3
3
  import { IconNode } from "lucide-react";
4
4
 
5
5
  //#region src/components/icons/Function.d.ts
6
6
  declare const __iconNode: IconNode;
7
- declare const FunctionIcon: react.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
7
+ declare const FunctionIcon: _$react.ForwardRefExoticComponent<Omit<_$lucide_react0.LucideProps, "ref"> & _$react.RefAttributes<SVGSVGElement>>;
8
8
  //#endregion
9
9
  export { FunctionIcon, __iconNode };
@@ -17,7 +17,7 @@ declare function initDropdown({
17
17
  }: {
18
18
  root?: Element | null;
19
19
  onSelect?: (value: string) => void;
20
- initialValue?: string;
20
+ initialValue?: string | null;
21
21
  }): void;
22
22
  //#endregion
23
23
  export { initDropdown, initDropdownButton };
@@ -82,7 +82,7 @@ function initDropdown({ root, onSelect, initialValue }) {
82
82
  return true;
83
83
  }
84
84
  }
85
- const initial = (initialValue ? items.find((i) => i.getAttribute("data-value") === initialValue) : items.find((i) => i.getAttribute("aria-selected") === "true")) ?? items[0];
85
+ const initial = initialValue === null ? null : (initialValue ? items.find((i) => i.getAttribute("data-value") === initialValue) : items.find((i) => i.getAttribute("aria-selected") === "true")) ?? items[0];
86
86
  if (initial) selectItem(initial);
87
87
  trigger.addEventListener("click", () => {
88
88
  handleTriggerClick();
@@ -117,7 +117,7 @@
117
117
  padding-left: 0;
118
118
  }
119
119
 
120
- & li.tab:not(.stl-ui-not-prose *) {
120
+ & li.tab {
121
121
  margin-bottom: 0;
122
122
 
123
123
  & > a:first-child {
package/dist/styles.css CHANGED
@@ -187,31 +187,25 @@ body {
187
187
  font-family: var(--stl-typography-font);
188
188
  }
189
189
 
190
- .stl-ui-prose {
191
- letter-spacing: -.01em;
192
- font-weight: 400;
193
- line-height: var(--stl-typography-line-height);
194
- font-size: var(--stl-typography-text-body);
195
- color: var(--stl-color-foreground-reduced);
196
-
197
- & :where(.stl-ui-not-prose) {
198
- letter-spacing: initial;
199
- font-weight: initial;
200
- line-height: initial;
201
- font-size: initial;
202
- color: initial;
203
- }
204
-
205
- &.small {
206
- font-size: var(--stl-typography-scale-sm);
207
- letter-spacing: normal;
190
+ @scope (.stl-ui-prose) to (.stl-ui-not-prose) {
191
+ :scope {
192
+ letter-spacing: -.01em;
193
+ font-weight: 400;
194
+ line-height: var(--stl-typography-line-height);
195
+ font-size: var(--stl-typography-text-body);
196
+ color: var(--stl-color-foreground-reduced);
197
+
198
+ &.small {
199
+ font-size: var(--stl-typography-scale-sm);
200
+ letter-spacing: normal;
201
+ }
208
202
  }
209
203
 
210
- & :where(strong:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose strong) {
204
+ :where(strong) {
211
205
  color: rgb(from currentColor r g b / 1);
212
206
  }
213
207
 
214
- & :where(a:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose a) {
208
+ :where(a) {
215
209
  color: var(--stl-color-link-foreground);
216
210
  text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
217
211
  transition: text-decoration-color .1s ease-out;
@@ -221,55 +215,49 @@ body {
221
215
  }
222
216
  }
223
217
 
224
- & :where(h1, h2, h3, h4, h5, h6):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
218
+ :where(h1, h2, h3, h4, h5, h6) {
225
219
  color: var(--stl-color-foreground);
226
220
  font-weight: 500;
227
221
  line-height: var(--stl-typography-line-height-heading);
228
222
  font-family: var(--stl-typography-font-heading);
229
223
  text-wrap: pretty;
224
+ }
230
225
 
231
- &:where(h1, h2, h3) {
232
- text-wrap: balance;
233
- }
226
+ :where(h1, h2, h3) {
227
+ text-wrap: balance;
234
228
  }
235
229
 
236
- & :where(h1:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h1) {
230
+ :where(h1) {
237
231
  font-size: var(--stl-typography-text-h1);
238
232
  letter-spacing: -.03em;
239
233
  margin-top: 1.5em;
240
234
  }
241
235
 
242
- & :where(h2:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h2) {
236
+ :where(h2) {
243
237
  font-size: var(--stl-typography-text-h2);
244
238
  letter-spacing: -.03em;
245
239
  margin-top: 1.35em;
246
240
  }
247
241
 
248
- & :where(h3:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h3) {
242
+ :where(h3) {
249
243
  font-size: var(--stl-typography-text-h3);
250
244
  letter-spacing: -.02em;
251
245
  margin-top: 1.35em;
252
246
  }
253
247
 
254
- & :where(h4:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h4) {
248
+ :where(h4) {
255
249
  font-size: var(--stl-typography-text-h4);
256
250
  letter-spacing: -.02em;
257
251
  margin-top: 1.35em;
258
252
  }
259
253
 
260
- & :where(h5:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h5) {
254
+ :where(h5) {
261
255
  font-size: var(--stl-typography-text-h5);
262
256
  letter-spacing: -.02em;
263
257
  margin-top: 1.2em;
264
258
  }
265
259
 
266
- & :where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
267
- &:where(:not(:last-child)) {
268
- margin-bottom: 8px;
269
- }
270
- }
271
-
272
- &.smaller-headings {
260
+ :scope.smaller-headings {
273
261
  --stl-typography-text-h1: var(--stl-typography-scale-3xl);
274
262
  --stl-typography-text-h2: var(--stl-typography-scale-2xl);
275
263
  --stl-typography-text-h3: var(--stl-typography-scale-xl);
@@ -289,26 +277,15 @@ body {
289
277
  }
290
278
  }
291
279
 
292
- & :where(pre:not(.stl-ui-not-prose *, .expressive-code *), .stl-ui-not-prose .stl-ui-prose pre:not(.expressive-code *)) {
293
- border-radius: var(--stl-ui-layout-border-radius-sml);
294
- border: 1px solid var(--stl-color-border);
295
- background-color: var(--stl-color-faint-background);
296
- margin-bottom: 1rem;
297
- padding: 12px 20px;
298
- overflow: auto;
299
- }
300
-
301
- & :where(ol, ul) {
302
- &:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
303
- padding-left: 26px;
304
- }
280
+ :where(ol, ul) {
281
+ padding-left: 26px;
305
282
  }
306
283
 
307
- & :where(ol, ul, aside, img, figure, details):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
308
- margin-top: 16px;
284
+ :where(li + li) {
285
+ margin-block-start: 8px;
309
286
  }
310
287
 
311
- & :where(code):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
288
+ :where(code) {
312
289
  font-family: var(--stl-typography-font-mono);
313
290
  font-feature-settings: "ss01" on,
314
291
  "ss03" on,
@@ -318,20 +295,41 @@ body {
318
295
  font-weight: inherit;
319
296
  letter-spacing: normal;
320
297
  white-space: pre;
298
+ }
321
299
 
322
- &:where(:not(pre > code)) {
323
- color: var(--stl-color-foreground);
324
- background-color: rgb(from var(--stl-color-foreground) r g b / .1);
325
- border-radius: .2em;
326
- padding: 0 .2em;
327
- }
300
+ &:where(code:not(pre > code)) {
301
+ color: var(--stl-color-foreground);
302
+ background-color: rgb(from var(--stl-color-foreground) r g b / .1);
303
+ border-radius: .2em;
304
+ padding: 0 .2em;
305
+ }
306
+
307
+ :where(pre:not(.expressive-code *)) {
308
+ border-radius: var(--stl-ui-layout-border-radius-sml);
309
+ border: 1px solid var(--stl-color-border);
310
+ background-color: var(--stl-color-faint-background);
311
+ margin-bottom: 1rem;
312
+ padding: 12px 20px;
313
+ overflow: auto;
314
+ }
315
+
316
+ :where(ol, ul, aside, img, figure, details) {
317
+ margin-top: 16px;
328
318
  }
329
319
  }
330
320
 
331
- :where(.stl-ui-prose, .stl-ui-prose > .sl-markdown-content) > :where(:not(:first-child)) {
321
+ :where(:is(.stl-ui-prose, .stl-ui-prose > .sl-markdown-content) > :not(:first-child)) {
332
322
  margin-top: 16px;
333
323
  }
334
324
 
325
+ :where(.stl-ui-not-prose) {
326
+ letter-spacing: initial;
327
+ font-weight: initial;
328
+ line-height: initial;
329
+ font-size: initial;
330
+ color: initial;
331
+ }
332
+
335
333
  @layer starlight.content {
336
334
  .stl-ui-prose .sl-markdown-content {
337
335
  & a, & a:hover {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/ui-primitives",
3
- "version": "0.1.0-beta.51",
3
+ "version": "0.1.0-beta.53",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,15 +17,13 @@
17
17
  "lucide-react": "^0.577.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@tsdown/css": "^0.21.4",
20
+ "@tsdown/css": "^0.21.7",
21
21
  "@types/react": "19.2.14",
22
- "@types/react-dom": "^19.2.3",
23
22
  "react": "^19.2.4",
24
- "react-dom": "^19.2.4",
25
- "sass": "^1.98.0",
26
- "tsdown": "^0.21.4",
27
- "typescript": "5.9.3",
28
- "@stainless/eslint-config": "0.1.0-beta.1"
23
+ "sass": "^1.99.0",
24
+ "tsdown": "^0.21.7",
25
+ "typescript": "6.0.2",
26
+ "@stainless/eslint-config": "0.1.0-beta.2"
29
27
  },
30
28
  "exports": {
31
29
  ".": {