@nvidia/foundations-css 0.0.0-stage → 1.24.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/CHANGELOG.md +11 -0
- package/LICENSE.md +203 -0
- package/NOTICE.md +62 -0
- package/README.md +61 -2
- package/dist/base/a11y.css +1 -0
- package/dist/base/all.js +1225 -0
- package/dist/base/anchor.css +1 -0
- package/dist/base/base-external.css +15 -0
- package/dist/base/base-for-aem-only.css +15 -0
- package/dist/base/base.css +15 -0
- package/dist/base/fonts-external.css +1 -0
- package/dist/base/fonts.css +1 -0
- package/dist/base/icons.css +15 -0
- package/dist/base/motion.css +1 -0
- package/dist/base/reset.css +1 -0
- package/dist/base/theme-dark.css +1 -0
- package/dist/base/theme-density.css +1 -0
- package/dist/base/theme-light.css +1 -0
- package/dist/base/theme-only-dark.css +1 -0
- package/dist/base/top-layer-reset.css +1 -0
- package/dist/base/variables.css +1 -0
- package/dist/components/accordion.css +1 -0
- package/dist/components/all.css +1 -0
- package/dist/components/all.js +16546 -0
- package/dist/components/anchor.css +1 -0
- package/dist/components/animated-chevron.css +1 -0
- package/dist/components/app-bar.css +1 -0
- package/dist/components/attachment.css +1 -0
- package/dist/components/audio.css +1 -0
- package/dist/components/autocomplete.css +1 -0
- package/dist/components/avatar-group.css +1 -0
- package/dist/components/avatar.css +1 -0
- package/dist/components/badge.css +1 -0
- package/dist/components/banner.css +1 -0
- package/dist/components/block.css +1 -0
- package/dist/components/breadcrumbs.css +1 -0
- package/dist/components/button.css +1 -0
- package/dist/components/card.css +1 -0
- package/dist/components/carousel.css +1 -0
- package/dist/components/chat-bubble.css +1 -0
- package/dist/components/checkbox.css +1 -0
- package/dist/components/code-snippet.css +1 -0
- package/dist/components/collapsible.css +1 -0
- package/dist/components/combobox.css +1 -0
- package/dist/components/command.css +1 -0
- package/dist/components/context-menu.css +1 -0
- package/dist/components/date-picker.css +1 -0
- package/dist/components/divider.css +1 -0
- package/dist/components/dropdown.css +1 -0
- package/dist/components/flex.css +1 -0
- package/dist/components/form-field.css +1 -0
- package/dist/components/grid-item.css +1 -0
- package/dist/components/grid.css +1 -0
- package/dist/components/group.css +1 -0
- package/dist/components/halo.css +1 -0
- package/dist/components/hero.css +1 -0
- package/dist/components/horizontal-nav.css +1 -0
- package/dist/components/hover-card.css +1 -0
- package/dist/components/inline-notice.css +1 -0
- package/dist/components/input-shell.css +1 -0
- package/dist/components/jump-nav.css +1 -0
- package/dist/components/kbd.css +1 -0
- package/dist/components/key-value-editor.css +1 -0
- package/dist/components/key-value-group.css +1 -0
- package/dist/components/label.css +1 -0
- package/dist/components/legend.css +1 -0
- package/dist/components/list.css +1 -0
- package/dist/components/menu.css +1 -0
- package/dist/components/meter.css +1 -0
- package/dist/components/modal.css +1 -0
- package/dist/components/notification.css +1 -0
- package/dist/components/otp-input.css +1 -0
- package/dist/components/page-header.css +1 -0
- package/dist/components/pagination.css +1 -0
- package/dist/components/panel.css +1 -0
- package/dist/components/popover.css +1 -0
- package/dist/components/primitive.css +1 -0
- package/dist/components/progress-bar.css +1 -0
- package/dist/components/radio-group.css +1 -0
- package/dist/components/range-slider.css +1 -0
- package/dist/components/rating.css +1 -0
- package/dist/components/reaction-group.css +1 -0
- package/dist/components/resizable.css +1 -0
- package/dist/components/segmented-control.css +1 -0
- package/dist/components/segmented-meter.css +1 -0
- package/dist/components/select.css +1 -0
- package/dist/components/severity.css +1 -0
- package/dist/components/side-panel.css +1 -0
- package/dist/components/skeleton.css +1 -0
- package/dist/components/slider.css +1 -0
- package/dist/components/spinner.css +1 -0
- package/dist/components/status-indicator.css +1 -0
- package/dist/components/status-message.css +1 -0
- package/dist/components/stepper.css +1 -0
- package/dist/components/switch.css +1 -0
- package/dist/components/table.css +1 -0
- package/dist/components/tabs.css +1 -0
- package/dist/components/tag-group.css +1 -0
- package/dist/components/tag.css +1 -0
- package/dist/components/terminal-line.css +1 -0
- package/dist/components/text-area.css +1 -0
- package/dist/components/text-content.css +1 -0
- package/dist/components/text.css +1 -0
- package/dist/components/toast.css +1 -0
- package/dist/components/toaster.css +1 -0
- package/dist/components/toggle-button-group.css +1 -0
- package/dist/components/toggle-button.css +1 -0
- package/dist/components/tooltip.css +1 -0
- package/dist/components/tree-nav.css +1 -0
- package/dist/components/upload.css +1 -0
- package/dist/components/vertical-nav.css +1 -0
- package/dist/css-sizes.js +1279 -0
- package/dist/index.cjs +3041 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +3014 -0
- package/dist/plugins/tailwind-theme.css +504 -0
- package/dist/plugins/tailwind3-theme.js +682 -0
- package/dist/plugins/variables-sass.sass +414 -0
- package/dist/themes/kui11/_theme-selectors.css +1 -0
- package/dist/themes/kui11/accordion.css +1 -0
- package/dist/themes/kui11/app-bar.css +1 -0
- package/dist/themes/kui11/avatar.css +1 -0
- package/dist/themes/kui11/badge.css +1 -0
- package/dist/themes/kui11/banner.css +1 -0
- package/dist/themes/kui11/base.css +1 -0
- package/dist/themes/kui11/breadcrumbs.css +1 -0
- package/dist/themes/kui11/button.css +1 -0
- package/dist/themes/kui11/card.css +1 -0
- package/dist/themes/kui11/checkbox.css +1 -0
- package/dist/themes/kui11/components.css +1 -0
- package/dist/themes/kui11/date-picker.css +1 -0
- package/dist/themes/kui11/form-field.css +1 -0
- package/dist/themes/kui11/hero.css +1 -0
- package/dist/themes/kui11/horizontal-nav.css +1 -0
- package/dist/themes/kui11/input-shell.css +1 -0
- package/dist/themes/kui11/label.css +1 -0
- package/dist/themes/kui11/menu.css +1 -0
- package/dist/themes/kui11/modal.css +1 -0
- package/dist/themes/kui11/notification.css +1 -0
- package/dist/themes/kui11/page-header.css +1 -0
- package/dist/themes/kui11/pagination.css +1 -0
- package/dist/themes/kui11/popover.css +1 -0
- package/dist/themes/kui11/progress-bar.css +1 -0
- package/dist/themes/kui11/radio-group.css +1 -0
- package/dist/themes/kui11/range-slider.css +1 -0
- package/dist/themes/kui11/side-panel.css +1 -0
- package/dist/themes/kui11/slider.css +1 -0
- package/dist/themes/kui11/spinner.css +1 -0
- package/dist/themes/kui11/status-message.css +1 -0
- package/dist/themes/kui11/switch.css +1 -0
- package/dist/themes/kui11/table.css +1 -0
- package/dist/themes/kui11/tabs.css +1 -0
- package/dist/themes/kui11/tag.css +1 -0
- package/dist/themes/kui11/text-area.css +1 -0
- package/dist/themes/kui11/text-input.css +1 -0
- package/dist/themes/kui11/text.css +1 -0
- package/dist/themes/kui11/toast.css +1 -0
- package/dist/themes/kui11/tooltip.css +1 -0
- package/dist/themes/kui11/vertical-nav.css +1 -0
- package/dist/themes/kui11.base.css +1 -0
- package/dist/themes/kui11.base.js +935 -0
- package/dist/themes/kui11.components.css +1 -0
- package/dist/themes/kui11.components.js +2564 -0
- package/dist/themes/kui11.css +1 -0
- package/dist/themes/theme-partials.js +456 -0
- package/dist/utilities/all.js +442 -0
- package/dist/utilities/typography-utils.css +1 -0
- package/package.json +106 -3
- package/scripts/sync-skills.mjs +237 -0
- package/skills/kaizen-ui-html-css/SKILL.md +293 -0
- package/skills/kaizen-ui-html-css/assets/color-primitives-hex.md +141 -0
- package/skills/kaizen-ui-html-css/references/blocks/chat-input.md +94 -0
- package/skills/kaizen-ui-html-css/references/blocks/notification-center.md +320 -0
- package/skills/kaizen-ui-html-css/references/blocks/timeline.md +579 -0
- package/skills/kaizen-ui-html-css/references/components/Accordion.md +88 -0
- package/skills/kaizen-ui-html-css/references/components/Anchor.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/AnimatedChevron.md +31 -0
- package/skills/kaizen-ui-html-css/references/components/AppBar.md +129 -0
- package/skills/kaizen-ui-html-css/references/components/Attachment.md +306 -0
- package/skills/kaizen-ui-html-css/references/components/Audio.md +21 -0
- package/skills/kaizen-ui-html-css/references/components/Autocomplete.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/Avatar.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/AvatarGroup.md +38 -0
- package/skills/kaizen-ui-html-css/references/components/Badge.md +121 -0
- package/skills/kaizen-ui-html-css/references/components/Banner.md +49 -0
- package/skills/kaizen-ui-html-css/references/components/Block.md +26 -0
- package/skills/kaizen-ui-html-css/references/components/Breadcrumbs.md +42 -0
- package/skills/kaizen-ui-html-css/references/components/Button.md +43 -0
- package/skills/kaizen-ui-html-css/references/components/ButtonGroup.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/Card.md +39 -0
- package/skills/kaizen-ui-html-css/references/components/Carousel.md +53 -0
- package/skills/kaizen-ui-html-css/references/components/ChatBubble.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/Checkbox.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/CodeSnippet.md +33 -0
- package/skills/kaizen-ui-html-css/references/components/Collapsible.md +56 -0
- package/skills/kaizen-ui-html-css/references/components/Combobox.md +66 -0
- package/skills/kaizen-ui-html-css/references/components/Command.md +100 -0
- package/skills/kaizen-ui-html-css/references/components/ContextMenu.md +61 -0
- package/skills/kaizen-ui-html-css/references/components/DatePicker.md +30 -0
- package/skills/kaizen-ui-html-css/references/components/Divider.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/Dropdown.md +94 -0
- package/skills/kaizen-ui-html-css/references/components/Flex.md +33 -0
- package/skills/kaizen-ui-html-css/references/components/FormField.md +35 -0
- package/skills/kaizen-ui-html-css/references/components/Grid.md +27 -0
- package/skills/kaizen-ui-html-css/references/components/Group.md +92 -0
- package/skills/kaizen-ui-html-css/references/components/Halo.md +26 -0
- package/skills/kaizen-ui-html-css/references/components/Hero.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/HorizontalNav.md +34 -0
- package/skills/kaizen-ui-html-css/references/components/HoverCard.md +23 -0
- package/skills/kaizen-ui-html-css/references/components/Inline.md +49 -0
- package/skills/kaizen-ui-html-css/references/components/InlineNotice.md +96 -0
- package/skills/kaizen-ui-html-css/references/components/InputShell.md +26 -0
- package/skills/kaizen-ui-html-css/references/components/JumpNav.md +36 -0
- package/skills/kaizen-ui-html-css/references/components/Kbd.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/KeyValueEditor.md +275 -0
- package/skills/kaizen-ui-html-css/references/components/KeyValueGroup.md +35 -0
- package/skills/kaizen-ui-html-css/references/components/Label.md +86 -0
- package/skills/kaizen-ui-html-css/references/components/Legend.md +148 -0
- package/skills/kaizen-ui-html-css/references/components/List.md +143 -0
- package/skills/kaizen-ui-html-css/references/components/Menu.md +103 -0
- package/skills/kaizen-ui-html-css/references/components/Meter.md +27 -0
- package/skills/kaizen-ui-html-css/references/components/Modal.md +60 -0
- package/skills/kaizen-ui-html-css/references/components/Notification.md +48 -0
- package/skills/kaizen-ui-html-css/references/components/NumberInput.md +15 -0
- package/skills/kaizen-ui-html-css/references/components/OtpInput.md +51 -0
- package/skills/kaizen-ui-html-css/references/components/PageHeader.md +61 -0
- package/skills/kaizen-ui-html-css/references/components/Pagination.md +63 -0
- package/skills/kaizen-ui-html-css/references/components/Panel.md +133 -0
- package/skills/kaizen-ui-html-css/references/components/Popover.md +31 -0
- package/skills/kaizen-ui-html-css/references/components/ProgressBar.md +187 -0
- package/skills/kaizen-ui-html-css/references/components/RadioGroup.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/RangeSlider.md +62 -0
- package/skills/kaizen-ui-html-css/references/components/Rating.md +69 -0
- package/skills/kaizen-ui-html-css/references/components/ReactionGroup.md +30 -0
- package/skills/kaizen-ui-html-css/references/components/Resizable.md +31 -0
- package/skills/kaizen-ui-html-css/references/components/SegmentedControl.md +36 -0
- package/skills/kaizen-ui-html-css/references/components/SegmentedMeter.md +200 -0
- package/skills/kaizen-ui-html-css/references/components/Select.md +39 -0
- package/skills/kaizen-ui-html-css/references/components/Severity.md +25 -0
- package/skills/kaizen-ui-html-css/references/components/SidePanel.md +42 -0
- package/skills/kaizen-ui-html-css/references/components/Skeleton.md +24 -0
- package/skills/kaizen-ui-html-css/references/components/Slider.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/Spinner.md +63 -0
- package/skills/kaizen-ui-html-css/references/components/Stack.md +17 -0
- package/skills/kaizen-ui-html-css/references/components/StatusIndicator.md +30 -0
- package/skills/kaizen-ui-html-css/references/components/StatusMessage.md +78 -0
- package/skills/kaizen-ui-html-css/references/components/Stepper.md +57 -0
- package/skills/kaizen-ui-html-css/references/components/Switch.md +96 -0
- package/skills/kaizen-ui-html-css/references/components/Table.md +566 -0
- package/skills/kaizen-ui-html-css/references/components/Tabs.md +67 -0
- package/skills/kaizen-ui-html-css/references/components/Tag.md +194 -0
- package/skills/kaizen-ui-html-css/references/components/TagGroup.md +32 -0
- package/skills/kaizen-ui-html-css/references/components/TerminalLine.md +69 -0
- package/skills/kaizen-ui-html-css/references/components/Text.md +27 -0
- package/skills/kaizen-ui-html-css/references/components/TextArea.md +28 -0
- package/skills/kaizen-ui-html-css/references/components/TextContent.md +61 -0
- package/skills/kaizen-ui-html-css/references/components/TextInput.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/TimeInput.md +17 -0
- package/skills/kaizen-ui-html-css/references/components/Toast.md +41 -0
- package/skills/kaizen-ui-html-css/references/components/Toaster.md +19 -0
- package/skills/kaizen-ui-html-css/references/components/ToggleButton.md +47 -0
- package/skills/kaizen-ui-html-css/references/components/ToggleButtonGroup.md +29 -0
- package/skills/kaizen-ui-html-css/references/components/Tooltip.md +45 -0
- package/skills/kaizen-ui-html-css/references/components/TreeNav.md +58 -0
- package/skills/kaizen-ui-html-css/references/components/Upload.md +90 -0
- package/skills/kaizen-ui-html-css/references/components/VerticalNav.md +65 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/CHART_DATA_COLORS.md +56 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/COLORS.md +148 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/COLOR_PRIMITIVES.md +31 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/EFFECTS_AND_LAYOUT.md +50 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/SPACING_SCALE.md +36 -0
- package/skills/kaizen-ui-html-css/references/design-tokens/TYPOGRAPHY.md +44 -0
- package/skills/kaizen-ui-html-css/references/guides/CONFIGURATION.md +51 -0
- package/skills/kaizen-ui-html-css/references/guides/HTML_STRUCTURE.md +134 -0
- package/skills/kaizen-ui-html-css/references/patterns/activity-feed.md +132 -0
- package/skills/kaizen-ui-html-css/references/patterns/confirmations.md +133 -0
- package/skills/kaizen-ui-html-css/references/patterns/data-display.md +127 -0
- package/skills/kaizen-ui-html-css/references/patterns/data-visualization.md +73 -0
- package/skills/kaizen-ui-html-css/references/patterns/element-visibility.md +83 -0
- package/skills/kaizen-ui-html-css/references/patterns/empty-states.md +116 -0
- package/skills/kaizen-ui-html-css/references/patterns/entity-cards.md +172 -0
- package/skills/kaizen-ui-html-css/references/patterns/error-states.md +163 -0
- package/skills/kaizen-ui-html-css/references/patterns/feedback.md +77 -0
- package/skills/kaizen-ui-html-css/references/patterns/filters.md +167 -0
- package/skills/kaizen-ui-html-css/references/patterns/forms.md +215 -0
- package/skills/kaizen-ui-html-css/references/patterns/key-value-display.md +195 -0
- package/skills/kaizen-ui-html-css/references/patterns/loading.md +104 -0
- package/skills/kaizen-ui-html-css/references/patterns/navigation.md +154 -0
- package/skills/kaizen-ui-html-css/references/patterns/ranked-lists.md +60 -0
- package/skills/kaizen-ui-html-css/references/patterns/search.md +46 -0
- package/skills/kaizen-ui-html-css/references/patterns/settings.md +106 -0
- package/skills/kaizen-ui-html-css/references/patterns/stat-blocks.md +71 -0
- package/skills/kaizen-ui-html-css/references/templates/browse-page.md +92 -0
- package/skills/kaizen-ui-html-css/references/templates/dashboard.md +356 -0
- package/skills/kaizen-ui-html-css/references/templates/detail-page.md +424 -0
- package/skills/kaizen-ui-html-css/references/templates/detail-placement.md +68 -0
- package/skills/kaizen-ui-html-css/references/templates/error-page.md +82 -0
- package/skills/kaizen-ui-html-css/references/templates/form-page.md +256 -0
- package/skills/kaizen-ui-html-css/references/templates/layout-principles.md +152 -0
- package/skills/kaizen-ui-html-css/references/templates/list-view.md +229 -0
- package/skills/kaizen-ui-html-css/references/templates/page-modification.md +33 -0
- package/skills/kaizen-ui-html-css/references/templates/page-shell.md +225 -0
- package/skills/kaizen-ui-html-css/references/templates/workspace-page.md +427 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
cpSync,
|
|
7
|
+
existsSync,
|
|
8
|
+
mkdirSync,
|
|
9
|
+
readdirSync,
|
|
10
|
+
readFileSync,
|
|
11
|
+
rmSync,
|
|
12
|
+
} from "node:fs";
|
|
13
|
+
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
14
|
+
import { fileURLToPath } from "node:url";
|
|
15
|
+
|
|
16
|
+
const skillRoot = resolve(
|
|
17
|
+
dirname(fileURLToPath(import.meta.url)),
|
|
18
|
+
"..",
|
|
19
|
+
"skills"
|
|
20
|
+
);
|
|
21
|
+
const skillDirectories = [".agents", ".claude", ".cursor"];
|
|
22
|
+
/** Skills for a component runtime. Installing one settles how UI is built. */
|
|
23
|
+
const frameworkSkillNames = new Set(["kaizen-ui", "kaizen-ui-web-components"]);
|
|
24
|
+
/** Skills that only apply when no component runtime is installed. */
|
|
25
|
+
const fallbackSkillNames = new Set(["kaizen-ui-html-css"]);
|
|
26
|
+
const frontmatterPattern = /^---\r?\n([\s\S]*?)\r?\n---/;
|
|
27
|
+
const versionPattern =
|
|
28
|
+
/^metadata:\s*\r?\n(?:[ \t]+[^\r\n]*\r?\n)*?[ \t]+version:\s*["']?([^"'\r\n]+)["']?/m;
|
|
29
|
+
|
|
30
|
+
function parseArguments(args) {
|
|
31
|
+
const dirIndex = args.indexOf("--dir");
|
|
32
|
+
if (
|
|
33
|
+
dirIndex >= 0 &&
|
|
34
|
+
(!args[dirIndex + 1] || args[dirIndex + 1].startsWith("--"))
|
|
35
|
+
) {
|
|
36
|
+
throw new Error("--dir requires a path");
|
|
37
|
+
}
|
|
38
|
+
const supported = new Set(["--dir", "--force", "--dry-run"]);
|
|
39
|
+
for (const [index, argument] of args.entries()) {
|
|
40
|
+
if (index > 0 && args[index - 1] === "--dir") {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
if (argument.startsWith("--") && !supported.has(argument)) {
|
|
44
|
+
throw new Error(`Unknown option: ${argument}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
dir: dirIndex >= 0 ? args[dirIndex + 1] : null,
|
|
49
|
+
force: args.includes("--force"),
|
|
50
|
+
dryRun: args.includes("--dry-run"),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function readSkillRoot(root) {
|
|
55
|
+
if (!existsSync(root)) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
return readdirSync(root, { withFileTypes: true })
|
|
60
|
+
.filter((entry) => entry.isDirectory() || entry.isSymbolicLink())
|
|
61
|
+
.map((entry) => entry.name)
|
|
62
|
+
.filter((name) => existsSync(join(root, name, "SKILL.md")))
|
|
63
|
+
.map((name) => ({ name, source: join(root, name) }));
|
|
64
|
+
} catch {
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function readDependencyNames(packageDir) {
|
|
70
|
+
try {
|
|
71
|
+
const manifest = JSON.parse(
|
|
72
|
+
readFileSync(join(packageDir, "package.json"), "utf8")
|
|
73
|
+
);
|
|
74
|
+
return Object.keys({
|
|
75
|
+
...manifest.dependencies,
|
|
76
|
+
...manifest.devDependencies,
|
|
77
|
+
...manifest.peerDependencies,
|
|
78
|
+
});
|
|
79
|
+
} catch {
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** `@kui/*` packages, plus core under its published `@nvidia/*` name. */
|
|
85
|
+
function isKuiPackageName(name) {
|
|
86
|
+
return name.startsWith("@kui/") || name.startsWith("@nvidia/foundations-");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function readKuiPackageNames(projectRoot) {
|
|
90
|
+
const direct = readDependencyNames(projectRoot).filter(isKuiPackageName);
|
|
91
|
+
// The Vue, Angular, and React wrappers ship no skill of their own, so
|
|
92
|
+
// resolve one hop to the package they wrap.
|
|
93
|
+
const wrapped = direct.flatMap((name) =>
|
|
94
|
+
readDependencyNames(join(projectRoot, "node_modules", name)).filter(
|
|
95
|
+
isKuiPackageName
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
return [...new Set([...direct, ...wrapped])];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function readScopeSkillRoots(projectRoot, scope) {
|
|
102
|
+
const scopeRoot = join(projectRoot, "node_modules", scope);
|
|
103
|
+
if (!existsSync(scopeRoot)) {
|
|
104
|
+
return [];
|
|
105
|
+
}
|
|
106
|
+
try {
|
|
107
|
+
return readdirSync(scopeRoot, { withFileTypes: true })
|
|
108
|
+
.filter((entry) => entry.isDirectory() || entry.isSymbolicLink())
|
|
109
|
+
.filter((entry) => !entry.name.startsWith("."))
|
|
110
|
+
.flatMap((entry) => readSkillRoot(join(scopeRoot, entry.name, "skills")));
|
|
111
|
+
} catch {
|
|
112
|
+
return [];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Skills from this package, every installed `@kui-contrib` package, and the
|
|
118
|
+
* `@kui` packages the project depends on.
|
|
119
|
+
*
|
|
120
|
+
* Contrib packages add components, so their skills are always wanted and may
|
|
121
|
+
* arrive through a bundle. The `@kui` framework packages are alternative
|
|
122
|
+
* implementations of the same components, so a transitively installed one must
|
|
123
|
+
* not contribute a skill — `@kui/foundations-css` arrives under
|
|
124
|
+
* `@kui/foundations-react`.
|
|
125
|
+
*
|
|
126
|
+
* {@link fallbackSkillNames} covers the components without a component
|
|
127
|
+
* runtime, so it applies only when the project installs no framework package.
|
|
128
|
+
* A project can depend on `@kui/foundations-css` directly and still build with
|
|
129
|
+
* React, which is what the installation guide recommends for full control over
|
|
130
|
+
* CSS.
|
|
131
|
+
*/
|
|
132
|
+
function getSkillEntries(projectRoot) {
|
|
133
|
+
const entries = [
|
|
134
|
+
...readSkillRoot(skillRoot),
|
|
135
|
+
...readScopeSkillRoots(projectRoot, "@kui-contrib"),
|
|
136
|
+
...readKuiPackageNames(projectRoot).flatMap((name) =>
|
|
137
|
+
readSkillRoot(join(projectRoot, "node_modules", name, "skills"))
|
|
138
|
+
),
|
|
139
|
+
];
|
|
140
|
+
// First write wins so this package's own skill survives a name collision.
|
|
141
|
+
const byName = new Map();
|
|
142
|
+
for (const entry of entries) {
|
|
143
|
+
if (!byName.has(entry.name)) {
|
|
144
|
+
byName.set(entry.name, entry);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const deduped = [...byName.values()];
|
|
148
|
+
const hasFrameworkSkill = deduped.some(({ name }) =>
|
|
149
|
+
frameworkSkillNames.has(name)
|
|
150
|
+
);
|
|
151
|
+
return hasFrameworkSkill
|
|
152
|
+
? deduped.filter(({ name }) => !fallbackSkillNames.has(name))
|
|
153
|
+
: deduped;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function readVersion(path) {
|
|
157
|
+
if (!existsSync(path)) {
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
const frontmatter = readFileSync(path, "utf8").match(frontmatterPattern)?.[1];
|
|
161
|
+
return frontmatter?.match(versionPattern)?.[1]?.trim() ?? null;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function findExistingDirectory(projectRoot, skillNames) {
|
|
165
|
+
return (
|
|
166
|
+
skillDirectories.find((directory) =>
|
|
167
|
+
skillNames.some((name) =>
|
|
168
|
+
existsSync(join(projectRoot, directory, "skills", name, "SKILL.md"))
|
|
169
|
+
)
|
|
170
|
+
) ?? null
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function syncSkills() {
|
|
175
|
+
const projectRoot = process.env.INIT_CWD || process.cwd();
|
|
176
|
+
const options = parseArguments(process.argv.slice(2));
|
|
177
|
+
const skillEntries = getSkillEntries(projectRoot);
|
|
178
|
+
if (skillEntries.length === 0) {
|
|
179
|
+
console.log("No skills found to sync.");
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const targetRoot =
|
|
183
|
+
options.dir ??
|
|
184
|
+
findExistingDirectory(
|
|
185
|
+
projectRoot,
|
|
186
|
+
skillEntries.map((entry) => entry.name)
|
|
187
|
+
) ??
|
|
188
|
+
".agents";
|
|
189
|
+
const targetBase = resolve(projectRoot, targetRoot);
|
|
190
|
+
const relativeToRoot = relative(projectRoot, targetBase);
|
|
191
|
+
if (relativeToRoot.startsWith("..") || isAbsolute(relativeToRoot)) {
|
|
192
|
+
throw new Error(
|
|
193
|
+
`--dir must stay within the project directory: ${targetRoot}`
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
let synced = 0;
|
|
197
|
+
|
|
198
|
+
for (const { name, source } of skillEntries) {
|
|
199
|
+
const target = join(targetBase, "skills", name);
|
|
200
|
+
const shippedVersion = readVersion(join(source, "SKILL.md"));
|
|
201
|
+
const installedVersion = readVersion(join(target, "SKILL.md"));
|
|
202
|
+
if (
|
|
203
|
+
!options.force &&
|
|
204
|
+
installedVersion === shippedVersion &&
|
|
205
|
+
shippedVersion
|
|
206
|
+
) {
|
|
207
|
+
console.log(
|
|
208
|
+
`${name}: already up-to-date (v${installedVersion}) at ${target}`
|
|
209
|
+
);
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (options.dryRun) {
|
|
213
|
+
console.log(`${name}: would sync to ${target}`);
|
|
214
|
+
} else {
|
|
215
|
+
rmSync(target, { recursive: true, force: true });
|
|
216
|
+
mkdirSync(target, { recursive: true });
|
|
217
|
+
cpSync(source, target, { recursive: true, force: true });
|
|
218
|
+
console.log(`${name}: synced to ${target}`);
|
|
219
|
+
}
|
|
220
|
+
synced++;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (synced === 0) {
|
|
224
|
+
console.log("All skills already up-to-date.");
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
try {
|
|
229
|
+
syncSkills();
|
|
230
|
+
} catch (error) {
|
|
231
|
+
console.error(
|
|
232
|
+
`Unable to sync KUI skills: ${
|
|
233
|
+
error instanceof Error ? error.message : String(error)
|
|
234
|
+
}`
|
|
235
|
+
);
|
|
236
|
+
process.exitCode = 1;
|
|
237
|
+
}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kaizen-ui-html-css
|
|
3
|
+
description: Advises on Kaizen UI (KUI) component CSS classes, design patterns, semantic HTML composition, and page layouts for NVIDIA applications. Applies to UI work that styles plain HTML with @nvidia/foundations-css or nv-* classes and ships no component runtime—even when the user does not mention KUI or design systems. Covers forms, navigation, tables, cards, feedback, loading and error states, theming, accessibility, and server-rendered or static HTML.
|
|
4
|
+
metadata:
|
|
5
|
+
library: "kaizen-ui-html-css"
|
|
6
|
+
library_version: "1.24.0"
|
|
7
|
+
type: "core"
|
|
8
|
+
version: "1"
|
|
9
|
+
content_hash: "20bdd5009ec77a8f"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Kaizen UI Foundations HTML and CSS docs
|
|
13
|
+
|
|
14
|
+
Official documentation for Kaizen UI Foundations (KUI), NVIDIA's design system.
|
|
15
|
+
|
|
16
|
+
KUI is built from theme-responsive design tokens, shared component CSS, and framework components. The HTML/CSS implementation is stylesheets only: `nv-*` classes from `@nvidia/foundations-css` applied to native HTML you author. There is no component runtime, so semantics, state, interaction, and any scripted behavior are yours to provide.
|
|
17
|
+
|
|
18
|
+
Read [CONFIGURATION.md](./references/guides/CONFIGURATION.md) when installing stylesheets, applying a theme, or working out which entry point an application needs. Read [HTML_STRUCTURE.md](./references/guides/HTML_STRUCTURE.md) before writing markup for an interactive or semantic component.
|
|
19
|
+
|
|
20
|
+
## Gotchas
|
|
21
|
+
|
|
22
|
+
- Use existing KUI components over custom implementations.
|
|
23
|
+
- Prefer semantic CSS tokens over primitives, for example `text-primary` over `text-gray-100`, so themes work automatically.
|
|
24
|
+
- Use sentence case except for acronyms. Do not use all-caps labels or emojis.
|
|
25
|
+
- Do not invent a class name. Use only classes that appear in this skill's component references; a class the stylesheets do not define silently does nothing.
|
|
26
|
+
- A class supplies appearance only. The element you choose supplies the semantics, so use `button`, `a`, `input`, `label`, `table`, `dialog`, and `details` for what they mean.
|
|
27
|
+
- Behavior that a component would normally own — opening a menu, moving focus into a dialog, roving tabindex, announcing a toast — has no stylesheet equivalent and must be implemented and tested.
|
|
28
|
+
- Apply state through the documented attributes the stylesheets target, such as `disabled`, `aria-expanded`, and `data-state`, rather than adding a class of your own.
|
|
29
|
+
- Element and modifier classes belong on the same element: `class="nv-button nv-button--kind-primary"`. A modifier alone is inert.
|
|
30
|
+
|
|
31
|
+
## Skill workflow
|
|
32
|
+
|
|
33
|
+
For UI work in a KUI application:
|
|
34
|
+
|
|
35
|
+
1. **Identify the page template.** Load the matching reference from [Template routing](#template-routing) before placing content.
|
|
36
|
+
2. **Identify the blocks and patterns in play.** Load every applicable reference from [Block routing](#block-routing) and [Pattern routing](#pattern-routing).
|
|
37
|
+
3. **Build outside-in.** Apply [page shell](./references/templates/page-shell.md), then [layout principles](./references/templates/layout-principles.md), then blocks, patterns, and components.
|
|
38
|
+
4. **Apply the framework contract.** Choose the native element that owns each behavior, accessible name, value, and navigation target, then apply the component's classes to it. Read [HTML_STRUCTURE.md](./references/guides/HTML_STRUCTURE.md).
|
|
39
|
+
5. **Load component references.** Read each selected component's generated reference under [Components](#components) before implementation. Each reference is generated from the component's source, so its props and exports are complete and current — treat them as authoritative and do not re-derive them from `node_modules` or package source. If something you need is genuinely absent from the reference, it is a documentation gap worth reporting.
|
|
40
|
+
6. **Verify the result.** Check the rendered markup for correct element semantics, labels and descriptions, keyboard access and focus order, form submission and navigation, and light and dark themes. Confirm every interactive affordance the design implies actually works, since no component script supplies it.
|
|
41
|
+
7. **Re-evaluate existing structure before extending it.** A new region, fourth column, repeated slot, or deeply nested wrapper can signal that the page needs restructuring. Read [page-modification.md](./references/templates/page-modification.md).
|
|
42
|
+
|
|
43
|
+
## Template routing
|
|
44
|
+
|
|
45
|
+
Determine the page type first; its template drives downstream block, pattern, and component decisions.
|
|
46
|
+
|
|
47
|
+
- [Browse: find, filter, compare, or select from a collection](./references/templates/browse-page.md)
|
|
48
|
+
- [List view: filterable table or list of items](./references/templates/list-view.md)
|
|
49
|
+
- [Detail: inspect, monitor, or manage one entity](./references/templates/detail-page.md)
|
|
50
|
+
- [Dashboard: aggregated metrics, trends, progress, or health](./references/templates/dashboard.md)
|
|
51
|
+
- [Form: create or edit an entity; input that gets submitted](./references/templates/form-page.md)
|
|
52
|
+
- [Workspace: editor, AI, or command-center surface with a persistent task area](./references/templates/workspace-page.md)
|
|
53
|
+
- [Settings or preferences](./references/patterns/settings.md) with [page shell](./references/templates/page-shell.md)
|
|
54
|
+
- [Full-page error: terminal route failure such as 401, 403, 404, or 500](./references/templates/error-page.md)
|
|
55
|
+
|
|
56
|
+
For a single entity, choose between a contextual panel, standalone page, or both with [detail-placement.md](./references/templates/detail-placement.md).
|
|
57
|
+
|
|
58
|
+
## Block routing
|
|
59
|
+
|
|
60
|
+
A block is several components composed into one feature. Start from the block's reference implementation instead of assembling the feature from scratch.
|
|
61
|
+
|
|
62
|
+
- [Chat input — message box with response mode, attach, and send](./references/blocks/chat-input.md)
|
|
63
|
+
- [Notification center — app bar bell listing notifications to read later](./references/blocks/notification-center.md)
|
|
64
|
+
- [Timeline — chronological activity feed with a new-event count](./references/blocks/timeline.md)
|
|
65
|
+
|
|
66
|
+
## Pattern routing
|
|
67
|
+
|
|
68
|
+
Load every pattern guide whose feature appears on the page.
|
|
69
|
+
|
|
70
|
+
- [Navigation — application, section, breadcrumb, and content navigation](./references/patterns/navigation.md)
|
|
71
|
+
- [Forms — create, edit, configure, and submit](./references/patterns/forms.md)
|
|
72
|
+
- [Filters and sort controls](./references/patterns/filters.md)
|
|
73
|
+
- [Search input and query behavior](./references/patterns/search.md)
|
|
74
|
+
- [Tables, card grids, or lists of structured data](./references/patterns/data-display.md)
|
|
75
|
+
- [Key-value display — read-only labeled facts](./references/patterns/key-value-display.md)
|
|
76
|
+
- [Charts, graphs, gauges, and other data visualization](./references/patterns/data-visualization.md)
|
|
77
|
+
- [Stat blocks / KPI tiles](./references/patterns/stat-blocks.md)
|
|
78
|
+
- [Ranked lists — "top N by X" contributor panels](./references/patterns/ranked-lists.md)
|
|
79
|
+
- [Activity feed — chronological events, history, audit log, or timeline](./references/patterns/activity-feed.md)
|
|
80
|
+
- [Settings and persistent preferences](./references/patterns/settings.md)
|
|
81
|
+
- [Compare flows — select one alternative](./references/patterns/data-display.md#single-selection-among-alternatives-compare-flows)
|
|
82
|
+
- [Entity cards — content and interaction inside cards](./references/patterns/entity-cards.md)
|
|
83
|
+
- [Toasts, notifications, banners, and durable feedback](./references/patterns/feedback.md)
|
|
84
|
+
- [Loading and progress states](./references/patterns/loading.md)
|
|
85
|
+
- [Empty states](./references/patterns/empty-states.md)
|
|
86
|
+
- [Error states](./references/patterns/error-states.md)
|
|
87
|
+
- [Confirmations for destructive or irreversible actions](./references/patterns/confirmations.md)
|
|
88
|
+
- [Element visibility — hide, read-only, disable, or enable](./references/patterns/element-visibility.md)
|
|
89
|
+
|
|
90
|
+
## Custom work with KUI
|
|
91
|
+
|
|
92
|
+
Reuse KUI components and tokens before introducing a parallel visual language.
|
|
93
|
+
|
|
94
|
+
- Apply the documented component classes to native HTML. Do not use a class that does not appear in this skill's component catalog.
|
|
95
|
+
- Read [HTML_STRUCTURE.md](./references/guides/HTML_STRUCTURE.md) for element ownership, state attributes, and the behavior each component expects you to supply.
|
|
96
|
+
- Compose layout with plain CSS — flexbox, grid, and token-valued `gap` and `padding` — rather than reaching for a utility framework the application may not have configured.
|
|
97
|
+
- Token references name tokens in their Tailwind spelling. Use those utilities when the application configures `@nvidia/foundations-tailwind-plugin`; otherwise write CSS against the matching variable. Check the application's stylesheet for the plugin import to see which applies.
|
|
98
|
+
- Prefixes map one to one: `bg-*` → `--background-color-*`, `text-*` → `--text-color-*`, `border-*` → `--border-color-*`, `rounded-*` → `--radius-*`, `shadow-*` → `--shadow-*`, `gap-*` and `p-*` → `--spacing-*`.
|
|
99
|
+
- Reserve inline `style` for runtime values and documented custom properties. Never inline a static value that a utility or a stylesheet rule can carry.
|
|
100
|
+
- Load the relevant token references:
|
|
101
|
+
- [Colors, backgrounds, borders, and accents](./references/design-tokens/COLORS.md)
|
|
102
|
+
- [Chart and data-visualization colors](./references/design-tokens/CHART_DATA_COLORS.md)
|
|
103
|
+
- [Raw color primitives — last resort and not theme-aware](./references/design-tokens/COLOR_PRIMITIVES.md)
|
|
104
|
+
- [Typography](./references/design-tokens/TYPOGRAPHY.md)
|
|
105
|
+
- [Spacing, padding, and gap](./references/design-tokens/SPACING_SCALE.md)
|
|
106
|
+
- [Shadows, breakpoints, container widths, transitions, and animations](./references/design-tokens/EFFECTS_AND_LAYOUT.md)
|
|
107
|
+
|
|
108
|
+
## Components
|
|
109
|
+
|
|
110
|
+
Load every component reference you use for its HTML structure, exact classes, modifiers, and related components.
|
|
111
|
+
|
|
112
|
+
### Actions
|
|
113
|
+
|
|
114
|
+
Triggers an action
|
|
115
|
+
|
|
116
|
+
- [Button](references/components/Button.md) - A clickable element that triggers an action. Use specific verb + noun labels instead of vague text.
|
|
117
|
+
- [ButtonGroup](references/components/ButtonGroup.md) - A row of related buttons presented as a single set of actions with consistent styling.
|
|
118
|
+
- [Command](references/components/Command.md) - A modal menu that lets users search for and run actions or jump to pages from the keyboard. Opens over the page, filters its items as the user types, and closes when an item is chosen.
|
|
119
|
+
- [ContextMenu](references/components/ContextMenu.md) - A menu of actions that opens at the pointer when the user right-clicks, long-presses, or presses the Menu key inside an area. Use for secondary actions on the thing under the pointer.
|
|
120
|
+
- [Dropdown](references/components/Dropdown.md) - A button that opens a menu of actions, links, or selectable options. Use for contextual actions, filters, and overflow menus.
|
|
121
|
+
- [Menu](references/components/Menu.md) - A list of actions, toggles, or selections. Use when the list should always be visible (sidebars, settings panels).
|
|
122
|
+
- [SegmentedControl](references/components/SegmentedControl.md) - A horizontal group of mutually exclusive options where selection takes effect immediately. Use for switching between alternate views or modes of the same content.
|
|
123
|
+
- [ToggleButton](references/components/ToggleButton.md) - A button that switches an option on or off and keeps showing which state it is in. Use for a state that persists after the click, such as pinning, starring, or bold text.
|
|
124
|
+
- sometimes known as Toggle, Pressed Button, Stateful Button
|
|
125
|
+
- [ToggleButtonGroup](references/components/ToggleButtonGroup.md) - A set of related toggle buttons that each switch an option on or off, with one tab stop for the whole set. Use for options that apply to the same content, such as text formatting or which panels are visible.
|
|
126
|
+
|
|
127
|
+
### AI & Conversation
|
|
128
|
+
|
|
129
|
+
Conversations between users and agents
|
|
130
|
+
|
|
131
|
+
- [Audio](references/components/Audio.md) - Play an audio clip with waveform seeking and a timestamp.
|
|
132
|
+
- sometimes known as Audio player, Audio waveform
|
|
133
|
+
- [ChatBubble](references/components/ChatBubble.md) - The surface of one chat message: a padded, rounded block for a person's words, or flat text for an AI reply.
|
|
134
|
+
- [Halo](references/components/Halo.md) - A decorative rotating gradient ring that wraps a single element to draw attention to it. Halo is presentational only — it adds no semantics, so the element inside keeps its own role, label, and behavior.
|
|
135
|
+
- [ReactionGroup](references/components/ReactionGroup.md) - A row of reaction chips, such as the emoji responses under a message or comment, with an optional button to add one. Each reaction shows whether the current user added it and how many people did. Built on `TagGroup`, with the add button rendered after the reactions as its last child.
|
|
136
|
+
- sometimes known as Reactions, Emoji Reactions
|
|
137
|
+
|
|
138
|
+
### Inputs & Selections
|
|
139
|
+
|
|
140
|
+
Lets user enter or select a value
|
|
141
|
+
|
|
142
|
+
#### Text Entry
|
|
143
|
+
|
|
144
|
+
- [KeyValueEditor](references/components/KeyValueEditor.md) - An editable list of key-value pairs or multi-field rows, such as resource tags or filter rules, that keeps focus with the rows the app adds, removes, and moves.
|
|
145
|
+
- sometimes known as AttributeEditor, TagEditor, KeyValuePairs
|
|
146
|
+
- [NumberInput](references/components/NumberInput.md) - A TextInput preset to `type="number"` for numeric-only entry.
|
|
147
|
+
- [OtpInput](references/components/OtpInput.md) - A segmented field for entering a one-time passcode or PIN. One real input backs every cell, so browser autofill, paste, and native validation all keep working.
|
|
148
|
+
- [TextArea](references/components/TextArea.md) - A multi-line text input for free-form responses such as descriptions, comments, or notes.
|
|
149
|
+
- [TextInput](references/components/TextInput.md) - A single-line input for text, numbers, or special symbols. Commonly used in forms; switch to TextArea when the response is likely to wrap.
|
|
150
|
+
- [TimeInput](references/components/TimeInput.md) - A TextInput preset to `type="time"` for time-of-day entry, including the built-in native time-picker button.
|
|
151
|
+
|
|
152
|
+
#### Selection
|
|
153
|
+
|
|
154
|
+
- [Checkbox](references/components/Checkbox.md) - A form control that lets users toggle a single option on or off. Supports a mixed state for representing partially-selected groups of related options.
|
|
155
|
+
- [RadioGroup](references/components/RadioGroup.md) - A set of mutually exclusive options where the user picks exactly one. Use when the available options can comfortably fit on screen at once.
|
|
156
|
+
- [RangeSlider](references/components/RangeSlider.md) - A two-thumb slider for selecting a minimum and maximum value within a range. Use for filtering by price, time window, or any min/max selection.
|
|
157
|
+
- sometimes known as Range Input, Input Range
|
|
158
|
+
- [Rating](references/components/Rating.md) - A row of icons that shows a value within a range, or lets the user pick one.
|
|
159
|
+
- [Slider](references/components/Slider.md) - A single-value range input rendered along a bar. Use for continuous settings like volume, brightness, or threshold values where the relative position carries meaning.
|
|
160
|
+
- sometimes known as Range Input, Input Range
|
|
161
|
+
- [Switch](references/components/Switch.md) - A two-state toggle for a binary setting whose change takes effect immediately.
|
|
162
|
+
- sometimes known as Toggle, ToggleSwitch
|
|
163
|
+
|
|
164
|
+
#### Picker
|
|
165
|
+
|
|
166
|
+
- [Autocomplete](references/components/Autocomplete.md) - A text field that suggests values as the reader types. The text is the value: suggestions only help the reader type it, and anything they type is kept and submitted.
|
|
167
|
+
- [Combobox](references/components/Combobox.md) - A text input paired with a filterable listbox for selecting one or more values from a list. Use when users need to search through a large set of options.
|
|
168
|
+
- [DatePicker](references/components/DatePicker.md) - An input field paired with a calendar popup for selecting a single date or a date range. Use when users need to enter or browse to a specific date.
|
|
169
|
+
- [Select](references/components/Select.md) - An input that lets the user pick one or more values from a predefined list.
|
|
170
|
+
- [Upload](references/components/Upload.md) - A file picker with drag-and-drop support that renders previews and basic management controls for the selected files.
|
|
171
|
+
|
|
172
|
+
#### Field Anatomy
|
|
173
|
+
|
|
174
|
+
- [FormField](references/components/FormField.md) - Groups a label, input, and helper text to keep form elements consistent and accessible.
|
|
175
|
+
- sometimes known as Form Group, Fieldset
|
|
176
|
+
- [InputShell](references/components/InputShell.md) - A low-level wrapper that styles any element as a KUI input. Reach for the higher-level inputs first; use this only when composing a custom control.
|
|
177
|
+
- [Label](references/components/Label.md) - A text label that names a form control.
|
|
178
|
+
|
|
179
|
+
### Navigation
|
|
180
|
+
|
|
181
|
+
Takes user to another page or view
|
|
182
|
+
|
|
183
|
+
#### App Shell
|
|
184
|
+
|
|
185
|
+
- [AppBar](references/components/AppBar.md) - The masthead at the top of an application that holds its branding, primary navigation, and global actions.
|
|
186
|
+
- sometimes known as Masthead, Navbar, Navigation Bar
|
|
187
|
+
- [HorizontalNav](references/components/HorizontalNav.md) - A horizontal navigation bar that organizes links to top-level sections of an application or site.
|
|
188
|
+
- [VerticalNav](references/components/VerticalNav.md) - A vertical navigation menu of single links and nested link groups, typically rendered in a sidebar. Use as section-level navigation paired with a HorizontalNav for app-wide chrome, or as the sole navigation for apps with deep hierarchies and few global destinations.
|
|
189
|
+
|
|
190
|
+
#### Wayfinding
|
|
191
|
+
|
|
192
|
+
- [Anchor](references/components/Anchor.md) - Interactive text that navigates the user to another page, section, or resource.
|
|
193
|
+
- sometimes known as Link
|
|
194
|
+
- [Breadcrumbs](references/components/Breadcrumbs.md) - A navigation trail that shows the user's location within the app hierarchy and links back to parent pages. Use concise labels for each level.
|
|
195
|
+
- [JumpNav](references/components/JumpNav.md) - In-page navigation for jumping between sections of a long page.
|
|
196
|
+
- [Pagination](references/components/Pagination.md) - Navigation control that splits a long list of items across multiple pages. Pair with tables and grids that exceed a single page of content.
|
|
197
|
+
- [Stepper](references/components/Stepper.md) - A progress tracker for moving through a fixed, ordered set of steps.
|
|
198
|
+
- [Tabs](references/components/Tabs.md) - Organizes related content into sections that share the same context and switches between them in place. Use for managing settings, comparing data, or any group of mutually exclusive views the user moves between without leaving the page.
|
|
199
|
+
- [TreeNav](references/components/TreeNav.md) - A hierarchical navigation list that lets users move through links at different levels, similar to a directory tree
|
|
200
|
+
|
|
201
|
+
### Feedback & Progress
|
|
202
|
+
|
|
203
|
+
Communicates to user what happened
|
|
204
|
+
|
|
205
|
+
#### Messages
|
|
206
|
+
|
|
207
|
+
- [Banner](references/components/Banner.md) - A prominent, full-width inline message embedded in the page layout for system-wide announcements, page-level alerts, or important context.
|
|
208
|
+
- [InlineNotice](references/components/InlineNotice.md) - A neutral, low-emphasis message beside the content it explains, such as a tip, a note, or a pointer to more information.
|
|
209
|
+
- [Notification](references/components/Notification.md) - A non-blocking overlay message that delivers detailed feedback in the user's peripheral vision, optionally with actions. Reach for it when the message needs more detail than a Toast or an action the user should take.
|
|
210
|
+
- [StatusMessage](references/components/StatusMessage.md) - A centered message that takes the place of content that is empty, missing, or unavailable.
|
|
211
|
+
- [Toast](references/components/Toast.md) - A small, temporary overlay that gives the user non-critical feedback after an action. Reach for it when the message is informational and can be missed without consequence.
|
|
212
|
+
- [Toaster](references/components/Toaster.md) - Renders and manages the app's toast and notification stacks. Render one near the app root, then call `toast()` or `notification()` from anywhere.
|
|
213
|
+
|
|
214
|
+
#### Loading
|
|
215
|
+
|
|
216
|
+
- [ProgressBar](references/components/ProgressBar.md) - A visual indicator of progress through a long-running operation.
|
|
217
|
+
- [Skeleton](references/components/Skeleton.md) - A placeholder block that mimics the shape of content while it loads. Match each skeleton's size and shape to the real content as closely as possible to keep layout shift minimal.
|
|
218
|
+
- [Spinner](references/components/Spinner.md) - An indicator for short waits with unknown progress.
|
|
219
|
+
|
|
220
|
+
### Data Display
|
|
221
|
+
|
|
222
|
+
Shows data and details about it
|
|
223
|
+
|
|
224
|
+
#### Collections
|
|
225
|
+
|
|
226
|
+
- [KeyValueGroup](references/components/KeyValueGroup.md) - A description list of labeled values, such as the properties of one resource. Renders a native `<dl>`.
|
|
227
|
+
- [List](references/components/List.md) - Groups related items into a semantic sequence for steps, features, or supporting details.
|
|
228
|
+
- [Table](references/components/Table.md) - Organizes sets of structured data into columns and rows so users can scan, compare, and analyze information.
|
|
229
|
+
|
|
230
|
+
#### Labels & Indicators
|
|
231
|
+
|
|
232
|
+
- [Badge](references/components/Badge.md) - A small label that shows an item's status, such as Running or Failed, so it stands out in a dense view.
|
|
233
|
+
- sometimes known as Lozenge, State Label
|
|
234
|
+
- [Legend](references/components/Legend.md) - A key mapping colors to the data series they represent.
|
|
235
|
+
- [Meter](references/components/Meter.md) - A bar showing how much of a bounded resource is in use.
|
|
236
|
+
- [SegmentedMeter](references/components/SegmentedMeter.md) - A bar showing how a bounded quantity divides across categories.
|
|
237
|
+
- [Severity](references/components/Severity.md) - A ranked severity level shown as a fixed icon and label pairing. Use it to communicate urgency, risk, or priority on issues, alerts, and incidents.
|
|
238
|
+
- [StatusIndicator](references/components/StatusIndicator.md) - A small colored dot that signals a new change or short-lived status.
|
|
239
|
+
- [Tag](references/components/Tag.md) - A small label that classifies an item, such as a category, keyword, or applied filter, and can be selected, removed, or followed as a link.
|
|
240
|
+
- sometimes known as Chip, Token
|
|
241
|
+
- [TagGroup](references/components/TagGroup.md) - A wrapping row of related tags with consistent styling.
|
|
242
|
+
|
|
243
|
+
#### Content
|
|
244
|
+
|
|
245
|
+
- [Attachment](references/components/Attachment.md) - A file or media item a user has attached, with its name, details, upload status, and actions.
|
|
246
|
+
- [Avatar](references/components/Avatar.md) - A small visual identifier for a user, account, or entity. Prioritizes an image when available and falls back to initials or an icon otherwise.
|
|
247
|
+
- [AvatarGroup](references/components/AvatarGroup.md) - A row of overlapping avatars for the people tied to something, such as a project's members or a document's collaborators, ending in a `+N` count when there are more than fit.
|
|
248
|
+
- sometimes known as Avatar Stack, Facepile
|
|
249
|
+
- [CodeSnippet](references/components/CodeSnippet.md) - Displays source code with syntax highlighting and a copy button. Pick `kind="inline"` for code samples within prose and `kind="block"` for standalone, multi-line samples.
|
|
250
|
+
- [HoverCard](references/components/HoverCard.md) - Previews rich, supplemental content when the user hovers or keyboard-focuses a link, such as a profile or page summary.
|
|
251
|
+
- [Kbd](references/components/Kbd.md) - A visual representation of a keyboard key or shortcut. Place it beside the control or instruction it describes.
|
|
252
|
+
- [Popover](references/components/Popover.md) - A floating panel that displays rich content, options, or actions anchored to a trigger.
|
|
253
|
+
- [TerminalLine](references/components/TerminalLine.md) - One line of terminal or log text in the monospace typeface, colored by what the line is.
|
|
254
|
+
- [Text](references/components/Text.md) - Renders text with the design system's typography tokens applied.
|
|
255
|
+
- [TextContent](references/components/TextContent.md) - Applies system typography and spacing to semantic HTML prose without per-element classes.
|
|
256
|
+
- [Tooltip](references/components/Tooltip.md) - Reveals a short, supplemental label when the user hovers or focuses an element. Use to clarify icon-only controls or surface non-essential context.
|
|
257
|
+
|
|
258
|
+
### Layouts & Page Structure
|
|
259
|
+
|
|
260
|
+
Arranges and frames content
|
|
261
|
+
|
|
262
|
+
#### Primitives
|
|
263
|
+
|
|
264
|
+
- [Block](references/components/Block.md) - A general-purpose block-level container for arbitrary content. Use it as a low-level layout primitive when consistent spacing and overflow behavior are needed without writing custom CSS.
|
|
265
|
+
- [Flex](references/components/Flex.md) - A layout primitive that arranges its children with CSS flexbox using design-token spacing.
|
|
266
|
+
- [Grid](references/components/Grid.md) - A two-dimensional layout primitive that arranges children into rows and columns. Use for dashboards, card listings, and any layout that needs both horizontal and vertical alignment.
|
|
267
|
+
- [Group](references/components/Group.md) - A layout container that visually joins adjacent related items into one compact unit.
|
|
268
|
+
- [Inline](references/components/Inline.md) - A layout primitive that pads a short run of content without breaking the line of text it sits in.
|
|
269
|
+
- [Stack](references/components/Stack.md) - A flex container that arranges its children in a column by default, with an optional divider between items.
|
|
270
|
+
|
|
271
|
+
#### Separation
|
|
272
|
+
|
|
273
|
+
- [Divider](references/components/Divider.md) - A horizontal or vertical line that visually separates groups of content. Use to create breaks between sections, list items, or toolbar regions where a heading or whitespace alone would be too subtle.
|
|
274
|
+
- [Resizable](references/components/Resizable.md) - A layout of panels separated by draggable edges, such as a sidebar beside main content or an editor above a terminal.
|
|
275
|
+
|
|
276
|
+
#### Sections
|
|
277
|
+
|
|
278
|
+
- [PageHeader](references/components/PageHeader.md) - Top-of-page banner that establishes context with a title, breadcrumbs, and page-level actions.
|
|
279
|
+
- [Hero](references/components/Hero.md) - A large page banner that combines headline messaging and calls to action with imagery.
|
|
280
|
+
- [SidePanel](references/components/SidePanel.md) - A `<dialog>` panel that slides in from the left or right edge to show supplementary content without leaving the current view.
|
|
281
|
+
|
|
282
|
+
#### Surfaces
|
|
283
|
+
|
|
284
|
+
- [Card](references/components/Card.md) - A container that groups content, actions, and optional media about a single subject. Cards are fluid and grow to fill their container.
|
|
285
|
+
- [Carousel](references/components/Carousel.md) - A horizontal container that cycles through a series of content items.
|
|
286
|
+
- [Modal](references/components/Modal.md) - A `<dialog>` that interrupts the page to capture the user's attention until they act on or dismiss its content. Use for confirmations, focused tasks, and information the user must acknowledge before continuing.
|
|
287
|
+
- [Panel](references/components/Panel.md) - A container that groups related content and actions with a background, border, and consistent padding.
|
|
288
|
+
|
|
289
|
+
#### Disclosure
|
|
290
|
+
|
|
291
|
+
- [Accordion](references/components/Accordion.md) - A vertically stacked group of sections the user can expand and collapse to show or hide their contents.
|
|
292
|
+
- [Collapsible](references/components/Collapsible.md) - An unstyled disclosure that toggles a single block of content between expanded and collapsed states. Use to hide secondary detail behind a clickable summary so users can reveal more on demand.
|
|
293
|
+
- [AnimatedChevron](references/components/AnimatedChevron.md) - A chevron icon that animates between two orientations to indicate the open or closed state of a disclosure. Use inside expand and collapse triggers when users need a visual cue for the current state.
|