@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 +26 -28
- package/dist/button.css +1 -1
- package/dist/components/src/index.js +11 -11
- package/dist/components/src/index.js.map +1 -1
- package/dist/tabs.css +1 -1
- package/package.json +3 -1
- package/styles/dist/blue.css +162 -643
- package/styles/dist/green.css +162 -641
- package/styles/dist/main.css +634 -855
- package/styles/dist/purple.css +162 -643
- package/styles/dist/red.css +162 -643
- package/styles/dist/tailwind.css +51 -0
- package/styles/dist/yellow.css +162 -641
- package/styles/dist/tailwind-tokens.ts +0 -2988
package/dist/asciidoc.css
CHANGED
|
@@ -6,24 +6,27 @@
|
|
|
6
6
|
* Copyright Oxide Computer Company
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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(--
|
|
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(--
|
|
417
|
-
color: var(--
|
|
418
|
-
border-color: var(--
|
|
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(--
|
|
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
|
-
|
|
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
|
-
|
|
475
|
+
@apply text-purple-800;
|
|
478
476
|
}
|
|
479
477
|
|
|
480
478
|
.admonition-icon svg {
|
package/dist/button.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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:
|
|
2072
|
-
destructive:
|
|
2073
|
-
notice:
|
|
2074
|
-
|
|
2075
|
-
purple:
|
|
2076
|
-
|
|
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-
|
|
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],
|