@oxide/design-system 2.7.0 → 2.8.0--canary.437591d.0

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/asciidoc.css CHANGED
@@ -6,24 +6,27 @@
6
6
  * Copyright Oxide Computer Company
7
7
  */
8
8
 
9
- @layer utilities {
10
- .text-mono-code {
11
- @apply text-[0.825em] !normal-case;
12
- font-feature-settings: 'calt' 0;
13
- letter-spacing: 0;
14
- }
9
+ @utility text-mono-code {
10
+ @apply text-[0.825em] !normal-case;
11
+ font-feature-settings: 'calt' 0;
12
+ letter-spacing: 0;
13
+ }
15
14
 
16
- .accent-link {
17
- @apply text-accent-secondary hover:text-accent;
18
- text-decoration: underline;
19
- text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
20
- }
15
+ @utility accent-link {
16
+ @apply text-accent-secondary hover:text-accent;
17
+ text-decoration: underline;
18
+ text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
19
+ }
21
20
 
22
- .link-with-underline {
23
- @apply text-default hover:text-raise;
24
- text-decoration: underline;
25
- text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
26
- }
21
+ @utility link-with-underline {
22
+ @apply text-default hover:text-raise;
23
+ text-decoration: underline;
24
+ text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
25
+ }
26
+
27
+ @utility inline-code {
28
+ @apply text-secondary;
29
+ @apply ml-[1px] mr-[1px] rounded border px-[4px] py-[1px] align-[1px] text-[0.825em] bg-raise border-secondary;
27
30
  }
28
31
 
29
32
  @layer components {
@@ -288,11 +291,6 @@
288
291
  @apply normal-case text-default;
289
292
  }
290
293
 
291
- .inline-code {
292
- @apply text-secondary;
293
- @apply ml-[1px] mr-[1px] rounded border px-[4px] py-[1px] align-[1px] text-[0.825em] bg-raise border-secondary;
294
- }
295
-
296
294
  p code,
297
295
  h1 code,
298
296
  h2 code,
@@ -403,7 +401,7 @@
403
401
  }
404
402
 
405
403
  .admonitionblock.tip strong {
406
- color: var(--base-purple-800);
404
+ color: var(--color-purple-800);
407
405
  }
408
406
 
409
407
  .admonitionblock,
@@ -413,9 +411,9 @@
413
411
 
414
412
  .admonitionblock.tip,
415
413
  .admonitionblock.tip blockquote {
416
- background-color: var(--base-purple-200);
417
- color: var(--base-purple-800);
418
- border-color: var(--base-purple-400);
414
+ background-color: var(--color-purple-200);
415
+ color: var(--color-purple-800);
416
+ border-color: var(--color-purple-400);
419
417
  }
420
418
 
421
419
  .admonitionblock.caution,
@@ -440,7 +438,7 @@
440
438
  }
441
439
 
442
440
  .admonitionblock.tip {
443
- color: var(--base-purple-800);
441
+ color: var(--color-purple-800);
444
442
  }
445
443
 
446
444
  .admonitionblock.caution p code,
@@ -453,7 +451,7 @@
453
451
  }
454
452
 
455
453
  .admonitionblock.tip p code {
456
- background-color: var(--base-purple-800);
454
+ @apply bg-purple-800;
457
455
  }
458
456
 
459
457
  .admonitionblock a {
@@ -474,7 +472,7 @@
474
472
  }
475
473
 
476
474
  .admonitionblock.tip a {
477
- color: var(--base-purple-800);
475
+ @apply text-purple-800;
478
476
  }
479
477
 
480
478
  .admonition-icon svg {
package/dist/button.css CHANGED
@@ -44,7 +44,7 @@ label {
44
44
  @apply text-secondary hover:bg-hover disabled:bg-transparent disabled:text-disabled;
45
45
  }
46
46
  &.btn-ghost:after {
47
- @apply text-[var(--base-neutral-300)] opacity-100;
47
+ @apply text-neutral-300 opacity-100;
48
48
  }
49
49
 
50
50
  &.btn-accent-ghost {
@@ -343,7 +343,7 @@ var DesktopOutline = ({
343
343
  ] }, item.id));
344
344
  };
345
345
  if (toc && toc.length > 0) {
346
- return /* @__PURE__ */ jsx4("ul", { className: cn3("toc w-[--toc-width]", className), children: renderToc(toc) });
346
+ return /* @__PURE__ */ jsx4("ul", { className: cn3("toc w-(--toc-width)", className), children: renderToc(toc) });
347
347
  }
348
348
  return null;
349
349
  };
@@ -393,12 +393,12 @@ var SmallScreenOutline = ({
393
393
  value,
394
394
  onValueChange: setValue,
395
395
  children: /* @__PURE__ */ jsxs3(Accordion.Item, { value: "toc", children: [
396
- /* @__PURE__ */ jsx4(Accordion.Header, { children: /* @__PURE__ */ jsxs3(Accordion.Trigger, { className: "flex h-12 w-full items-center justify-between text-sans-md text-default hover:bg-hover px-[--container-px] [&>svg]:data-[state=open]:rotate-90", children: [
396
+ /* @__PURE__ */ jsx4(Accordion.Header, { children: /* @__PURE__ */ jsxs3(Accordion.Trigger, { className: "flex h-12 w-full items-center justify-between text-sans-md text-default hover:bg-hover px-(--container-px) [&>svg]:data-[state=open]:rotate-90", children: [
397
397
  "Table of Contents",
398
398
  " ",
399
399
  /* @__PURE__ */ jsx4(DirectionRightIcon_default, { className: "transition-all text-tertiary" })
400
400
  ] }) }),
401
- /* @__PURE__ */ jsx4(Accordion.Content, { className: "animated-accordion hydrated max-h-[60vh] overflow-y-scroll w-full border-t border-secondary px-[--container-px]", children: /* @__PURE__ */ jsx4("div", { className: "py-4", children: renderToc(toc) }) })
401
+ /* @__PURE__ */ jsx4(Accordion.Content, { className: "animated-accordion hydrated max-h-[60vh] overflow-y-scroll w-full border-t border-secondary px-(--container-px)", children: /* @__PURE__ */ jsx4("div", { className: "py-4", children: renderToc(toc) }) })
402
402
  ] })
403
403
  }
404
404
  );
@@ -2068,19 +2068,19 @@ import cn4 from "classnames";
2068
2068
  import { jsx as jsx6 } from "react/jsx-runtime";
2069
2069
  var badgeColors = {
2070
2070
  default: {
2071
- default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
2072
- destructive: `ring-1 ring-inset bg-destructive-secondary text-destructive ring-[rgba(var(--base-red-800-rgb),0.15)]`,
2073
- notice: `ring-1 ring-inset bg-notice-secondary text-notice ring-[rgba(var(--base-yellow-800-rgb),0.15)]`,
2074
- neutral: `ring-1 ring-inset bg-secondary text-secondary ring-[rgba(var(--base-neutral-700-rgb),0.15)]`,
2075
- purple: `ring-1 ring-inset bg-[var(--base-purple-200)] text-[var(--base-purple-700)] ring-[rgba(var(--base-purple-800-rgb),0.15)]`,
2076
- blue: `ring-1 ring-inset bg-info-secondary text-info ring-[rgba(var(--base-blue-800-rgb),0.15)]`
2071
+ default: "bg-accent-secondary text-accent ring-accent/15",
2072
+ destructive: "bg-destructive-secondary text-destructive ring-destructive/15",
2073
+ notice: "bg-notice-secondary text-notice ring-notice/15",
2074
+ blue: "bg-blue-200 text-blue-800 ring-blue-800/15",
2075
+ purple: "bg-purple-200 text-purple-800 ring-purple-800/15",
2076
+ neutral: "bg-secondary text-default ring-neutral-700/15"
2077
2077
  },
2078
2078
  solid: {
2079
2079
  default: "bg-accent text-inverse",
2080
2080
  destructive: "bg-destructive text-inverse",
2081
2081
  notice: "bg-notice text-inverse",
2082
2082
  neutral: "bg-inverse-tertiary text-inverse",
2083
- purple: "bg-[var(--base-purple-700)] text-inverse",
2083
+ purple: "bg-purple-700 text-inverse",
2084
2084
  blue: "bg-info text-inverse"
2085
2085
  }
2086
2086
  };
@@ -2094,7 +2094,7 @@ var Badge = ({
2094
2094
  "span",
2095
2095
  {
2096
2096
  className: cn4(
2097
- "ox-badge",
2097
+ "ox-badge ring ring-inset",
2098
2098
  `variant-${variant}`,
2099
2099
  "inline-flex h-4 items-center whitespace-nowrap rounded-sm px-[3px] py-[1px] uppercase text-mono-sm",
2100
2100
  badgeColors[variant][color],