@oxide/design-system 2.7.0 → 2.7.1--canary.e2e4f77.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 +25 -29
- 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,27 +6,28 @@
|
|
|
6
6
|
* Copyright Oxide Computer Company
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
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
|
-
}
|
|
9
|
+
@utility text-mono-code {
|
|
10
|
+
@apply text-[0.825em] !normal-case;
|
|
11
|
+
font-feature-settings: 'calt' 0;
|
|
12
|
+
letter-spacing: 0;
|
|
13
|
+
}
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
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);
|
|
27
19
|
}
|
|
28
20
|
|
|
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
|
+
}
|
|
29
26
|
@layer components {
|
|
27
|
+
.inline-code {
|
|
28
|
+
@apply text-secondary ml-[1px] mr-[1px] rounded border px-[4px] py-[1px] align-[1px] text-[0.825em] bg-raise border-secondary;
|
|
29
|
+
}
|
|
30
|
+
|
|
30
31
|
.asciidoc-body {
|
|
31
32
|
.line-through {
|
|
32
33
|
text-decoration: line-through;
|
|
@@ -288,11 +289,6 @@
|
|
|
288
289
|
@apply normal-case text-default;
|
|
289
290
|
}
|
|
290
291
|
|
|
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
292
|
p code,
|
|
297
293
|
h1 code,
|
|
298
294
|
h2 code,
|
|
@@ -403,7 +399,7 @@
|
|
|
403
399
|
}
|
|
404
400
|
|
|
405
401
|
.admonitionblock.tip strong {
|
|
406
|
-
color: var(--
|
|
402
|
+
color: var(--color-purple-800);
|
|
407
403
|
}
|
|
408
404
|
|
|
409
405
|
.admonitionblock,
|
|
@@ -413,9 +409,9 @@
|
|
|
413
409
|
|
|
414
410
|
.admonitionblock.tip,
|
|
415
411
|
.admonitionblock.tip blockquote {
|
|
416
|
-
background-color: var(--
|
|
417
|
-
color: var(--
|
|
418
|
-
border-color: var(--
|
|
412
|
+
background-color: var(--color-purple-200);
|
|
413
|
+
color: var(--color-purple-800);
|
|
414
|
+
border-color: var(--color-purple-400);
|
|
419
415
|
}
|
|
420
416
|
|
|
421
417
|
.admonitionblock.caution,
|
|
@@ -440,7 +436,7 @@
|
|
|
440
436
|
}
|
|
441
437
|
|
|
442
438
|
.admonitionblock.tip {
|
|
443
|
-
color: var(--
|
|
439
|
+
color: var(--color-purple-800);
|
|
444
440
|
}
|
|
445
441
|
|
|
446
442
|
.admonitionblock.caution p code,
|
|
@@ -453,7 +449,7 @@
|
|
|
453
449
|
}
|
|
454
450
|
|
|
455
451
|
.admonitionblock.tip p code {
|
|
456
|
-
|
|
452
|
+
@apply bg-purple-800;
|
|
457
453
|
}
|
|
458
454
|
|
|
459
455
|
.admonitionblock a {
|
|
@@ -474,7 +470,7 @@
|
|
|
474
470
|
}
|
|
475
471
|
|
|
476
472
|
.admonitionblock.tip a {
|
|
477
|
-
|
|
473
|
+
@apply text-purple-800;
|
|
478
474
|
}
|
|
479
475
|
|
|
480
476
|
.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],
|