@twoux/ui 0.0.0-stage → 0.1.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/LICENSE.md +61 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/NOTICE.md +64 -0
- package/SHADCN-DIFF.md +228 -0
- package/agent/AGENTS.md +358 -0
- package/agent/docs-md/accessibility.md +49 -0
- package/agent/docs-md/action-catalogue.md +81 -0
- package/agent/docs-md/actions.md +74 -0
- package/agent/docs-md/agent-activity-log.md +70 -0
- package/agent/docs-md/agent-permissions.md +82 -0
- package/agent/docs-md/agent-run.md +90 -0
- package/agent/docs-md/agents-on-behalf.md +74 -0
- package/agent/docs-md/ai-column.md +85 -0
- package/agent/docs-md/ai-origin-label.md +70 -0
- package/agent/docs-md/announcing-features.md +73 -0
- package/agent/docs-md/answer-actions.md +81 -0
- package/agent/docs-md/app-shell.md +114 -0
- package/agent/docs-md/artifact-card.md +89 -0
- package/agent/docs-md/ask-on-screen.md +72 -0
- package/agent/docs-md/assistant-page.md +100 -0
- package/agent/docs-md/assistant-panel.md +142 -0
- package/agent/docs-md/avatar.md +82 -0
- package/agent/docs-md/banner.md +106 -0
- package/agent/docs-md/board.md +163 -0
- package/agent/docs-md/breadcrumb.md +89 -0
- package/agent/docs-md/breakdown-table.md +97 -0
- package/agent/docs-md/bulk-action-bar.md +112 -0
- package/agent/docs-md/button.md +293 -0
- package/agent/docs-md/card.md +115 -0
- package/agent/docs-md/change-list.md +99 -0
- package/agent/docs-md/change-request.md +166 -0
- package/agent/docs-md/chart-area.md +87 -0
- package/agent/docs-md/chart-bar.md +100 -0
- package/agent/docs-md/chart-box-plot.md +88 -0
- package/agent/docs-md/chart-bullet.md +89 -0
- package/agent/docs-md/chart-candlestick.md +112 -0
- package/agent/docs-md/chart-card-line.md +120 -0
- package/agent/docs-md/chart-donut.md +90 -0
- package/agent/docs-md/chart-drill-down.md +72 -0
- package/agent/docs-md/chart-funnel.md +71 -0
- package/agent/docs-md/chart-heatmap.md +76 -0
- package/agent/docs-md/chart-histogram.md +81 -0
- package/agent/docs-md/chart-map.md +165 -0
- package/agent/docs-md/chart-mixed.md +88 -0
- package/agent/docs-md/chart-price.md +92 -0
- package/agent/docs-md/chart-radial-bars.md +109 -0
- package/agent/docs-md/chart-radial-lines.md +111 -0
- package/agent/docs-md/chart-sankey.md +104 -0
- package/agent/docs-md/chart-scatter.md +87 -0
- package/agent/docs-md/chart-share-bar.md +89 -0
- package/agent/docs-md/chart-treemap.md +98 -0
- package/agent/docs-md/chart-waterfall.md +93 -0
- package/agent/docs-md/checkbox.md +131 -0
- package/agent/docs-md/choosing-selection-control.md +71 -0
- package/agent/docs-md/citations-sources.md +79 -0
- package/agent/docs-md/citing-sources.md +63 -0
- package/agent/docs-md/clarify-before-acting.md +69 -0
- package/agent/docs-md/clarifying-question.md +92 -0
- package/agent/docs-md/code-block.md +174 -0
- package/agent/docs-md/colours.md +87 -0
- package/agent/docs-md/columns-menu.md +140 -0
- package/agent/docs-md/combobox.md +161 -0
- package/agent/docs-md/command-palette.md +126 -0
- package/agent/docs-md/confidence-note.md +87 -0
- package/agent/docs-md/configurable-dashboard.md +76 -0
- package/agent/docs-md/confirmation-dialog.md +93 -0
- package/agent/docs-md/connected-tools.md +80 -0
- package/agent/docs-md/connector-picker.md +127 -0
- package/agent/docs-md/consistency.md +53 -0
- package/agent/docs-md/content-density.md +61 -0
- package/agent/docs-md/conversation-history.md +78 -0
- package/agent/docs-md/create-record.md +80 -0
- package/agent/docs-md/csv-import.md +88 -0
- package/agent/docs-md/dashboard-items.md +78 -0
- package/agent/docs-md/data-export.md +61 -0
- package/agent/docs-md/data-grid.md +137 -0
- package/agent/docs-md/data-vis-colours.md +76 -0
- package/agent/docs-md/data-visualisation.md +76 -0
- package/agent/docs-md/date-picker.md +178 -0
- package/agent/docs-md/delete-record.md +75 -0
- package/agent/docs-md/dense-table.md +495 -0
- package/agent/docs-md/design-tokens.md +53 -0
- package/agent/docs-md/disabled-read-only.md +75 -0
- package/agent/docs-md/drag-and-drop.md +74 -0
- package/agent/docs-md/dropdown-menu.md +137 -0
- package/agent/docs-md/edit-record.md +73 -0
- package/agent/docs-md/empty-loading-error.md +78 -0
- package/agent/docs-md/empty-state.md +128 -0
- package/agent/docs-md/error-messages.md +75 -0
- package/agent/docs-md/error-state.md +123 -0
- package/agent/docs-md/export-menu.md +86 -0
- package/agent/docs-md/feedback-prompt.md +88 -0
- package/agent/docs-md/field-mapping.md +78 -0
- package/agent/docs-md/file-drop.md +110 -0
- package/agent/docs-md/filter-bar.md +138 -0
- package/agent/docs-md/filter-panel.md +103 -0
- package/agent/docs-md/filtering-search.md +79 -0
- package/agent/docs-md/follow-ups-starters.md +79 -0
- package/agent/docs-md/form-validation.md +95 -0
- package/agent/docs-md/generated-columns.md +65 -0
- package/agent/docs-md/generated-drafts-files.md +71 -0
- package/agent/docs-md/grouped-list.md +89 -0
- package/agent/docs-md/guide-cue.md +170 -0
- package/agent/docs-md/help-panel.md +103 -0
- package/agent/docs-md/help-system.md +74 -0
- package/agent/docs-md/iconography.md +49 -0
- package/agent/docs-md/inbox.md +108 -0
- package/agent/docs-md/inline-editing-validation.md +80 -0
- package/agent/docs-md/inline-input-in-answer.md +70 -0
- package/agent/docs-md/items-palette.md +116 -0
- package/agent/docs-md/keyboard-model.md +47 -0
- package/agent/docs-md/keyboard-navigation.md +68 -0
- package/agent/docs-md/keyboard-shortcut-hint.md +87 -0
- package/agent/docs-md/keyboard-shortcut-sheet.md +90 -0
- package/agent/docs-md/labelling-ai-output.md +66 -0
- package/agent/docs-md/layout.md +47 -0
- package/agent/docs-md/list-table.md +254 -0
- package/agent/docs-md/loading-skeleton.md +91 -0
- package/agent/docs-md/managing-agents.md +71 -0
- package/agent/docs-md/message-composer.md +105 -0
- package/agent/docs-md/migrating.md +49 -0
- package/agent/docs-md/motion.md +93 -0
- package/agent/docs-md/navigation.md +76 -0
- package/agent/docs-md/notification-channels.md +65 -0
- package/agent/docs-md/notifications-decision.md +100 -0
- package/agent/docs-md/onboarding-step.md +114 -0
- package/agent/docs-md/order-book.md +108 -0
- package/agent/docs-md/page-header.md +96 -0
- package/agent/docs-md/pagination.md +88 -0
- package/agent/docs-md/pane-layout.md +105 -0
- package/agent/docs-md/period-comparison.md +66 -0
- package/agent/docs-md/plan-card.md +120 -0
- package/agent/docs-md/popover-rules.md +88 -0
- package/agent/docs-md/prompt-editor.md +90 -0
- package/agent/docs-md/propose-apply.md +65 -0
- package/agent/docs-md/provider-logo.md +97 -0
- package/agent/docs-md/radio.md +83 -0
- package/agent/docs-md/ranked-list.md +102 -0
- package/agent/docs-md/reasoning-progress.md +72 -0
- package/agent/docs-md/record-detail.md +71 -0
- package/agent/docs-md/regenerating-answers.md +70 -0
- package/agent/docs-md/run-status-bar.md +94 -0
- package/agent/docs-md/saved-tasks-schedules.md +63 -0
- package/agent/docs-md/saved-views.md +149 -0
- package/agent/docs-md/saving-views.md +68 -0
- package/agent/docs-md/scheduler.md +258 -0
- package/agent/docs-md/secondary-panels.md +72 -0
- package/agent/docs-md/segmented-control.md +88 -0
- package/agent/docs-md/selection-bulk-actions.md +70 -0
- package/agent/docs-md/separator.md +75 -0
- package/agent/docs-md/setup-checklist.md +92 -0
- package/agent/docs-md/shape-elevation.md +55 -0
- package/agent/docs-md/sheet-grid.md +211 -0
- package/agent/docs-md/side-panel.md +134 -0
- package/agent/docs-md/sign-in.md +114 -0
- package/agent/docs-md/spacing.md +55 -0
- package/agent/docs-md/split-button.md +100 -0
- package/agent/docs-md/stat-compare.md +82 -0
- package/agent/docs-md/static-dashboard.md +75 -0
- package/agent/docs-md/status-badge.md +140 -0
- package/agent/docs-md/step-card.md +75 -0
- package/agent/docs-md/stepper.md +92 -0
- package/agent/docs-md/suggested-changes.md +91 -0
- package/agent/docs-md/switch.md +78 -0
- package/agent/docs-md/table-settings.md +81 -0
- package/agent/docs-md/tabs.md +85 -0
- package/agent/docs-md/tag-input.md +108 -0
- package/agent/docs-md/tag.md +79 -0
- package/agent/docs-md/task-builder.md +87 -0
- package/agent/docs-md/team-instructions.md +72 -0
- package/agent/docs-md/templates-gallery.md +85 -0
- package/agent/docs-md/text-input.md +160 -0
- package/agent/docs-md/thinking-steps.md +89 -0
- package/agent/docs-md/timeline.md +189 -0
- package/agent/docs-md/timestamp.md +84 -0
- package/agent/docs-md/timestamps.md +70 -0
- package/agent/docs-md/toast.md +117 -0
- package/agent/docs-md/tooltip.md +90 -0
- package/agent/docs-md/typography.md +62 -0
- package/agent/docs-md/undo-destructive.md +66 -0
- package/agent/docs-md/unsaved-changes.md +71 -0
- package/agent/docs-md/usage-meter.md +80 -0
- package/agent/docs-md/user-feedback.md +71 -0
- package/agent/docs-md/voice-and-tone.md +60 -0
- package/agent/docs-md/why-choice.md +93 -0
- package/agent/docs-md/workspace-onboarding.md +74 -0
- package/agent/docs-md/writing.md +48 -0
- package/agent/llms-full.txt +18369 -0
- package/agent/llms.txt +198 -0
- package/agent/skills/twoux-audit/SKILL.md +49 -0
- package/agent/skills/twoux-build/SKILL.md +39 -0
- package/agent/skills/twoux-design/SKILL.md +54 -0
- package/agent/skills/twoux-write/SKILL.md +32 -0
- package/bin/check.mjs +123 -0
- package/bin/docs.mjs +24 -0
- package/bin/guard.mjs +27 -0
- package/bin/init.mjs +113 -0
- package/bin/knowledge.mjs +87 -0
- package/bin/mcp.mjs +116 -0
- package/bin/theme.mjs +168 -0
- package/bin/twoux.mjs +25 -0
- package/package.json +80 -3
- package/registry/jobs.json +1028 -0
- package/registry/palette.json +770 -0
- package/registry/rules.json +913 -0
- package/src/components/agent-review.tsx +364 -0
- package/src/components/ai-basics.tsx +212 -0
- package/src/components/ai-work.tsx +304 -0
- package/src/components/ai.tsx +227 -0
- package/src/components/alert-dialog.tsx +203 -0
- package/src/components/alert.tsx +86 -0
- package/src/components/avatar.tsx +114 -0
- package/src/components/badge.tsx +59 -0
- package/src/components/board.tsx +397 -0
- package/src/components/breadcrumb.tsx +114 -0
- package/src/components/button-group.tsx +90 -0
- package/src/components/button.tsx +109 -0
- package/src/components/calendar.tsx +247 -0
- package/src/components/card.tsx +102 -0
- package/src/components/chart-map.tsx +336 -0
- package/src/components/charts-more.tsx +1331 -0
- package/src/components/charts-radial.tsx +328 -0
- package/src/components/charts.tsx +390 -0
- package/src/components/checkbox.tsx +40 -0
- package/src/components/code.tsx +139 -0
- package/src/components/collapsible.tsx +37 -0
- package/src/components/combobox.tsx +339 -0
- package/src/components/command-extras.tsx +11 -0
- package/src/components/command.tsx +196 -0
- package/src/components/data-grid.tsx +213 -0
- package/src/components/data-table.tsx +334 -0
- package/src/components/data-views.tsx +740 -0
- package/src/components/date-picker.tsx +686 -0
- package/src/components/dense-table.tsx +207 -0
- package/src/components/dialog.tsx +162 -0
- package/src/components/dropdown-menu.tsx +264 -0
- package/src/components/empty.tsx +114 -0
- package/src/components/feedback-prompt.tsx +80 -0
- package/src/components/field.tsx +254 -0
- package/src/components/fields.tsx +112 -0
- package/src/components/flow.tsx +840 -0
- package/src/components/guide-cue.tsx +273 -0
- package/src/components/inbox.tsx +113 -0
- package/src/components/input-group.tsx +176 -0
- package/src/components/input.tsx +26 -0
- package/src/components/kbd.tsx +34 -0
- package/src/components/label.tsx +27 -0
- package/src/components/labels.tsx +176 -0
- package/src/components/motion.tsx +136 -0
- package/src/components/onboarding.tsx +454 -0
- package/src/components/order-book.tsx +185 -0
- package/src/components/pane-layout.tsx +417 -0
- package/src/components/popover.tsx +96 -0
- package/src/components/provider-logos.data.ts +49 -0
- package/src/components/radio-group.tsx +52 -0
- package/src/components/scheduler.tsx +997 -0
- package/src/components/segmented-control.tsx +28 -0
- package/src/components/select.tsx +195 -0
- package/src/components/separator.tsx +31 -0
- package/src/components/sheet.tsx +148 -0
- package/src/components/shell.tsx +426 -0
- package/src/components/shortcut-sheet.tsx +83 -0
- package/src/components/skeleton.tsx +18 -0
- package/src/components/sonner.tsx +107 -0
- package/src/components/spinner.tsx +13 -0
- package/src/components/split-button.tsx +58 -0
- package/src/components/stepper.tsx +78 -0
- package/src/components/switch.tsx +43 -0
- package/src/components/table.tsx +126 -0
- package/src/components/tabs.tsx +118 -0
- package/src/components/tag-input.tsx +253 -0
- package/src/components/textarea.tsx +21 -0
- package/src/components/theme.tsx +80 -0
- package/src/components/timeline.tsx +408 -0
- package/src/components/toggle-group.tsx +87 -0
- package/src/components/toggle.tsx +54 -0
- package/src/components/tooltip.tsx +65 -0
- package/src/components/workspace-actions.tsx +294 -0
- package/src/components/workspace-import.tsx +465 -0
- package/src/components/workspace.tsx +1884 -0
- package/src/index.ts +80 -0
- package/src/lib/active-indicator.tsx +53 -0
- package/src/lib/chart-kit.tsx +72 -0
- package/src/lib/cn.ts +6 -0
- package/src/lib/shortcuts.tsx +61 -0
- package/src/lib/workspace.tsx +10 -0
- package/src/shadcn/alert-dialog.tsx +196 -0
- package/src/shadcn/alert.tsx +65 -0
- package/src/shadcn/avatar.tsx +108 -0
- package/src/shadcn/badge.tsx +47 -0
- package/src/shadcn/breadcrumb.tsx +108 -0
- package/src/shadcn/button-group.tsx +83 -0
- package/src/shadcn/button.tsx +63 -0
- package/src/shadcn/calendar.tsx +220 -0
- package/src/shadcn/card.tsx +91 -0
- package/src/shadcn/checkbox.tsx +31 -0
- package/src/shadcn/collapsible.tsx +33 -0
- package/src/shadcn/command.tsx +184 -0
- package/src/shadcn/dialog.tsx +158 -0
- package/src/shadcn/dropdown-menu.tsx +256 -0
- package/src/shadcn/empty.tsx +103 -0
- package/src/shadcn/field.tsx +248 -0
- package/src/shadcn/input-group.tsx +170 -0
- package/src/shadcn/input.tsx +20 -0
- package/src/shadcn/kbd.tsx +28 -0
- package/src/shadcn/label.tsx +23 -0
- package/src/shadcn/popover.tsx +88 -0
- package/src/shadcn/radio-group.tsx +44 -0
- package/src/shadcn/select.tsx +189 -0
- package/src/shadcn/separator.tsx +27 -0
- package/src/shadcn/sheet.tsx +142 -0
- package/src/shadcn/skeleton.tsx +13 -0
- package/src/shadcn/sonner.tsx +40 -0
- package/src/shadcn/switch.tsx +34 -0
- package/src/shadcn/table.tsx +115 -0
- package/src/shadcn/tabs.tsx +90 -0
- package/src/shadcn/textarea.tsx +17 -0
- package/src/shadcn/toggle-group.tsx +83 -0
- package/src/shadcn/toggle.tsx +46 -0
- package/src/shadcn/tooltip.tsx +56 -0
- package/src/styles/palette.css +127 -0
- package/src/styles/theme.css +35 -0
- package/src/styles/twoux.css +236 -0
- package/theme.json +14 -0
- package/README.md +0 -3
package/LICENSE.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# TwoUX Licence 1.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Giulia Pizzignacco. All rights reserved, except as granted below.
|
|
4
|
+
|
|
5
|
+
TwoUX is free to use. You may build and ship your own products with it, including commercial products and client work. You may not sell it, give it away or offer it as your own design system, UI kit or component library.
|
|
6
|
+
|
|
7
|
+
## 1. Definitions
|
|
8
|
+
|
|
9
|
+
"TwoUX" means everything in this repository and published from it: the component source code, styles, tokens and themes, the documentation, the examples and example apps, and the knowledge files written for people and coding agents (including AGENTS.md, CLAUDE.md, llms.txt, llms-full.txt, docs-md, the rules, the job table and the skills).
|
|
10
|
+
|
|
11
|
+
"Product" means a website, application, internal tool, service or other software that you, your employer or your client build and offer, whose main value comes from its own features and content rather than from TwoUX.
|
|
12
|
+
|
|
13
|
+
"You" means the person or organisation using TwoUX under this licence.
|
|
14
|
+
|
|
15
|
+
## 2. What you may do
|
|
16
|
+
|
|
17
|
+
Free of charge, worldwide and for as long as you follow this licence, you may:
|
|
18
|
+
|
|
19
|
+
1. Use, copy and modify TwoUX to design, build and run any number of Products, commercial or not.
|
|
20
|
+
2. Build Products for clients, and hand those Products, including the parts of TwoUX inside them, to the client, who may then use them under this licence.
|
|
21
|
+
3. Distribute TwoUX as part of a Product, in source or compiled form, as long as it is not offered as a separate kit or library (see section 3) and this licence travels with the TwoUX files.
|
|
22
|
+
4. Let your coding agents and tools read TwoUX, including its knowledge files, to write code for your Products.
|
|
23
|
+
5. Fork the public repository to suggest changes back, or to keep a modified copy for your own Products.
|
|
24
|
+
|
|
25
|
+
## 3. What you may not do
|
|
26
|
+
|
|
27
|
+
You may not, whether you charge for it or not:
|
|
28
|
+
|
|
29
|
+
1. Sell, sublicense, rent or lease TwoUX, or any part of it, on its own.
|
|
30
|
+
2. Redistribute or publish TwoUX, a modified version of it, or a substantial part of it, as or inside a design system, UI kit, component library, template, theme, starter kit, code generator, design file or any other product whose main value is TwoUX itself.
|
|
31
|
+
3. Offer a service that lets other people generate, download or copy TwoUX components or knowledge files for their own use.
|
|
32
|
+
4. Use TwoUX, its documentation or its knowledge files to train, fine-tune or evaluate a machine learning model, or to build a dataset for that purpose. Agents reading the files to write code for your Products, as in section 2.4, is allowed.
|
|
33
|
+
5. Remove or change the copyright notice, this licence or the third-party notices.
|
|
34
|
+
|
|
35
|
+
## 4. Third-party software
|
|
36
|
+
|
|
37
|
+
TwoUX includes and is built on open-source software, such as shadcn/ui and Radix UI, under their own licences. Those parts stay under their own licences, listed in NOTICE.md. Nothing in this licence limits the rights those licences give you.
|
|
38
|
+
|
|
39
|
+
## 5. Name and logo
|
|
40
|
+
|
|
41
|
+
This licence does not give you any right to use the name TwoUX or its logo, except to say truthfully that your Product is built with TwoUX.
|
|
42
|
+
|
|
43
|
+
## 6. Ending the licence
|
|
44
|
+
|
|
45
|
+
If you break this licence, your rights under it end automatically. If you fix the breach within 30 days of first learning about it, your rights come back.
|
|
46
|
+
|
|
47
|
+
## 7. No warranty
|
|
48
|
+
|
|
49
|
+
To the extent the applicable law allows, TwoUX is provided "as is", without warranty of any kind, express or implied, including the warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with TwoUX or its use.
|
|
50
|
+
|
|
51
|
+
## 8. Contributions
|
|
52
|
+
|
|
53
|
+
If you send a change, suggestion or other contribution to TwoUX, for example a pull request or an issue, you confirm that you have the right to send it, and you grant Giulia Pizzignacco a perpetual, worldwide, royalty-free and irrevocable licence to use, modify, sublicense and distribute it as part of TwoUX, under this licence or any other.
|
|
54
|
+
|
|
55
|
+
## 9. Governing law
|
|
56
|
+
|
|
57
|
+
This licence is governed by the laws of Portugal. The courts of Portugal have jurisdiction over any dispute arising from it or from the use of TwoUX. This does not remove any right the law of your country gives you to bring proceedings where you live.
|
|
58
|
+
|
|
59
|
+
## 10. Questions
|
|
60
|
+
|
|
61
|
+
If you are unsure whether your use is allowed, email hi@axdexpert.ai before you ship it.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
TwoUX is copyright (c) 2026 Giulia Pizzignacco and licensed under the TwoUX Licence (LICENSE.md). It includes, adapts or is generated from the open-source work below. Each keeps its own licence, and nothing in the TwoUX Licence limits the rights those licences give you.
|
|
4
|
+
|
|
5
|
+
## Included or adapted in TwoUX's own files
|
|
6
|
+
|
|
7
|
+
| Work | Licence | Used for |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| shadcn/ui, copyright (c) 2023 shadcn | MIT | Component source that TwoUX components are generated from and modify (see packages/ui/SHADCN-DIFF.md) |
|
|
10
|
+
| Impeccable, copyright 2025 Paul Bakaus | Apache 2.0 | Craft checks in the twoux-design skill, adapted and rewritten by Giulia Pizzignacco |
|
|
11
|
+
| board-components (Cloudscape), copyright Amazon.com, Inc. or its affiliates | Apache 2.0 | Board layout behaviour that the board component follows |
|
|
12
|
+
| SVG Logos by Gil Barbara, via Iconify | CC0 1.0 | Most service marks in provider-logos.data.ts |
|
|
13
|
+
| vscode-icons, copyright the vscode-icons contributors, via Iconify | MIT | Microsoft Excel, Word and Outlook marks |
|
|
14
|
+
| theSVG, copyright (c) 2025 thesvg.org, via Iconify | MIT | Google Sheets and Google Docs marks |
|
|
15
|
+
|
|
16
|
+
The source of every mark is recorded next to it in packages/ui/src/components/provider-logos.data.ts.
|
|
17
|
+
|
|
18
|
+
## Installed from npm as dependencies
|
|
19
|
+
|
|
20
|
+
Radix UI Primitives (MIT), Lucide (ISC), cmdk (MIT), Sonner (MIT), tw-animate-css (MIT), React Flow (MIT), react-day-picker (MIT), date-fns (MIT), d3-geo (ISC) and topojson-client (ISC). These are not copied into TwoUX; each package carries its own licence.
|
|
21
|
+
|
|
22
|
+
## Fonts
|
|
23
|
+
|
|
24
|
+
The docs site loads Geist and Geist Mono (SIL Open Font License 1.1) from Google Fonts. TwoUX does not include the font files.
|
|
25
|
+
|
|
26
|
+
## Trademarks
|
|
27
|
+
|
|
28
|
+
Third-party product names and marks belong to their owners. TwoUX shows them only to identify those products and services, unaltered. Their inclusion does not mean the owners endorse TwoUX.
|
|
29
|
+
|
|
30
|
+
## Licence texts
|
|
31
|
+
|
|
32
|
+
### Apache License 2.0
|
|
33
|
+
|
|
34
|
+
Impeccable and board-components: the full text is in LICENSES/Apache-2.0.txt.
|
|
35
|
+
|
|
36
|
+
### MIT License: shadcn/ui
|
|
37
|
+
|
|
38
|
+
Copyright (c) 2023 shadcn
|
|
39
|
+
|
|
40
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
41
|
+
|
|
42
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
43
|
+
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
45
|
+
|
|
46
|
+
### MIT License: vscode-icons
|
|
47
|
+
|
|
48
|
+
Copyright (c) The vscode-icons Contributors
|
|
49
|
+
|
|
50
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
53
|
+
|
|
54
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
55
|
+
|
|
56
|
+
### MIT License: theSVG
|
|
57
|
+
|
|
58
|
+
Copyright (c) 2025 thesvg.org
|
|
59
|
+
|
|
60
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
61
|
+
|
|
62
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/SHADCN-DIFF.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# How TwoUX differs from shadcn/ui
|
|
2
|
+
|
|
3
|
+
Generated by `scripts/tailor-shadcn.mjs`. Each component starts from the untouched shadcn source in `packages/ui/src/shadcn/`.
|
|
4
|
+
|
|
5
|
+
## Every component
|
|
6
|
+
|
|
7
|
+
- Import paths point at TwoUX
|
|
8
|
+
- dark: classes removed: the dark theme comes from the role tokens (light-dark()), so components need no dark variants
|
|
9
|
+
- Type mapped to TwoUX's compact scale (shadcn text-xs/sm/base = 12/14/16px → TwoUX text-sm/base/md = 12/13/14px)
|
|
10
|
+
- Arbitrary radii replaced with tokens
|
|
11
|
+
- Every state change eases (colour, background, border and ring, 120ms ease-out); shadcn only animates colour and ring, so borders snapped
|
|
12
|
+
- Menu and palette items fade their highlight in and out (120ms) instead of snapping
|
|
13
|
+
- Invalid fields get a softer red edge; the message carries the error
|
|
14
|
+
- While someone types into an invalid field it shows the normal focus edge, not red: the message below still names the error
|
|
15
|
+
- Overlays: TwoUX's scrim, which works in light and dark. shadcn's own motion (timing, easing, 95% zoom) is kept as it is
|
|
16
|
+
- Dialogs: 16px corners, the soft edge, TwoUX's floating shadow and 20px padding
|
|
17
|
+
- Tighter corners: 6px (sm) for buttons, fields and cards, 4px (xs) for what sits inside them, 8px (md) for popovers, menus and dialogs. Every shadcn radius moves one step down
|
|
18
|
+
- Corners follow the role, not shadcn's class: menus and the command palette are overlays (8px); empty-state frames and media tiles are cards (6px)
|
|
19
|
+
|
|
20
|
+
## button
|
|
21
|
+
|
|
22
|
+
- Compact heights: 32px default, 28px sm, 24px xs, 36px lg
|
|
23
|
+
- Primary gets a hairline shadow so it sits on grey and white alike
|
|
24
|
+
- Outline uses the light input edge and darkens it on hover
|
|
25
|
+
- Adds warning: risky but reversible actions (from Geist)
|
|
26
|
+
- Icons 14px beside 13px text, so they support the label instead of outweighing it
|
|
27
|
+
- Button corners come from theme.json (radius.button: a px value or "pill"), so buttons can be rounder than fields without touching the component
|
|
28
|
+
- Tactile press
|
|
29
|
+
- Adds loading (spinner, aria-busy, stays focusable) and shortcut (Kbd after the label)
|
|
30
|
+
- The shortcut works, not just shows: inside ShortcutsProvider, typing it presses the button (single keys obey the off setting, WCAG 2.1.4)
|
|
31
|
+
|
|
32
|
+
## badge
|
|
33
|
+
|
|
34
|
+
- Status badges are small soft pills, square-ish to read as labels, not buttons
|
|
35
|
+
- Soft tones: the word carries the meaning, colour repeats it (WCAG 1.4.1)
|
|
36
|
+
- Adds dot: a leading dot for scanning long columns
|
|
37
|
+
|
|
38
|
+
## kbd
|
|
39
|
+
|
|
40
|
+
- Inside a primary or destructive button, the key sits on a darker tint so white text keeps 4.5:1
|
|
41
|
+
|
|
42
|
+
## checkbox
|
|
43
|
+
|
|
44
|
+
- Edge at 3.59:1: nothing else identifies a checkbox (WCAG 1.4.11)
|
|
45
|
+
- Invisible 26px hit area (WCAG 2.5.8)
|
|
46
|
+
- The tick scales in instead of appearing
|
|
47
|
+
- Indeterminate (some rows selected) shows an indigo box with a minus, not a tick on an empty box
|
|
48
|
+
|
|
49
|
+
## radio-group
|
|
50
|
+
|
|
51
|
+
- Edge at 3.59:1 (WCAG 1.4.11)
|
|
52
|
+
- Invisible 26px hit area (WCAG 2.5.8)
|
|
53
|
+
- Compact rows
|
|
54
|
+
- The dot scales in instead of appearing
|
|
55
|
+
|
|
56
|
+
## switch
|
|
57
|
+
|
|
58
|
+
- Thumb glides with TwoUX's ease-out
|
|
59
|
+
- Off track at 3.59:1 so the switch is visible when off (WCAG 1.4.11)
|
|
60
|
+
- Invisible hit area: 28px around the 16px track (WCAG 2.5.8)
|
|
61
|
+
- Sized to its label: a 16×28 track by default (14×24 small), no taller than the 15px text beside it, with 2px of track around the thumb
|
|
62
|
+
- Thumb travels the full track at each size
|
|
63
|
+
|
|
64
|
+
## tabs
|
|
65
|
+
|
|
66
|
+
- Inactive tabs use secondary text (9:1), not 60% ink, which is 4.46:1 on the tab rail
|
|
67
|
+
- TwoUX's default is the underline (line) style for page sections
|
|
68
|
+
- Line tabs span the width with a divider underneath
|
|
69
|
+
- Line tabs: no padding, indigo text and underline when active
|
|
70
|
+
- Adds count after the label; it pops when it changes
|
|
71
|
+
- One indicator slides to the active tab (underline or pill) instead of jumping; vertical tabs keep per-tab styling
|
|
72
|
+
|
|
73
|
+
## toggle
|
|
74
|
+
|
|
75
|
+
- Compact heights
|
|
76
|
+
- On reads as chosen, not hovered: indigo tint and text, which stay while the pointer is over it
|
|
77
|
+
- Icons 14px, in proportion with 13px text
|
|
78
|
+
- Outline: light edge that darkens on hover, indigo edge when on
|
|
79
|
+
|
|
80
|
+
## toggle-group
|
|
81
|
+
|
|
82
|
+
- Shared changes only
|
|
83
|
+
|
|
84
|
+
## tooltip
|
|
85
|
+
|
|
86
|
+
- Short delay so moving across a toolbar does not flash labels
|
|
87
|
+
- Keeps a gap from the trigger and stays inside the window
|
|
88
|
+
- Compact padding
|
|
89
|
+
|
|
90
|
+
## input
|
|
91
|
+
|
|
92
|
+
- Compact 32px, light edge that darkens on hover
|
|
93
|
+
- One size on every screen
|
|
94
|
+
|
|
95
|
+
## input-group
|
|
96
|
+
|
|
97
|
+
- Compact 32px
|
|
98
|
+
- Light edge darkens on hover
|
|
99
|
+
|
|
100
|
+
## textarea
|
|
101
|
+
|
|
102
|
+
- Shared changes only
|
|
103
|
+
|
|
104
|
+
## label
|
|
105
|
+
|
|
106
|
+
- Shared changes only
|
|
107
|
+
|
|
108
|
+
## separator
|
|
109
|
+
|
|
110
|
+
- Shared changes only
|
|
111
|
+
|
|
112
|
+
## field
|
|
113
|
+
|
|
114
|
+
- TwoUX spacing between fields is tighter (compact density)
|
|
115
|
+
- An invalid field keeps its label and value in normal text; only the edge and the message turn red (less alarming, still clear)
|
|
116
|
+
|
|
117
|
+
## dropdown-menu
|
|
118
|
+
|
|
119
|
+
- Shortcut slot holds keys; no letter-spacing so Kbd groups read cleanly
|
|
120
|
+
- Icons stay smaller than the 13px label and muted
|
|
121
|
+
- Check and radio marks sit at the end of the item, so every label in a menu starts at the same edge
|
|
122
|
+
- Group headings are smaller and muted, so they read as headings, not as items people can choose
|
|
123
|
+
|
|
124
|
+
## dialog
|
|
125
|
+
|
|
126
|
+
- Shared changes only
|
|
127
|
+
|
|
128
|
+
## breadcrumb
|
|
129
|
+
|
|
130
|
+
- One line in the top bar: never wraps; the current page truncates last and reads darker
|
|
131
|
+
- Separator chevrons are small and muted
|
|
132
|
+
|
|
133
|
+
## avatar
|
|
134
|
+
|
|
135
|
+
- 22px by default (18px small, 32px large); initials 11px semibold in white on a per-person colour
|
|
136
|
+
- Stacks overlap by 6px with a 2px white ring
|
|
137
|
+
|
|
138
|
+
## sheet
|
|
139
|
+
|
|
140
|
+
- Panels are 440px on the right (full width on phones), slide with TwoUX's motion, and float with the overlay shadow
|
|
141
|
+
- Motion from shadcn's Base UI sheet: a 40px slide with a fade, 200ms ease-in-out both ways (the full-width 500ms slide felt heavy)
|
|
142
|
+
|
|
143
|
+
## popover
|
|
144
|
+
|
|
145
|
+
- Floats like every overlay: 8px corners, light edge, the floating shadow, 12px padding
|
|
146
|
+
- Never cut off: keeps 8px from the viewport edge and flips when there is no room
|
|
147
|
+
|
|
148
|
+
## collapsible
|
|
149
|
+
|
|
150
|
+
- Shared changes only
|
|
151
|
+
|
|
152
|
+
## button-group
|
|
153
|
+
|
|
154
|
+
- Text segment on the quiet surface with the light edge, 12px padding and 14px icons, in proportion with compact buttons
|
|
155
|
+
- The divider between two filled buttons uses the primary-on-primary edge, so a split primary button reads as one control with two parts
|
|
156
|
+
|
|
157
|
+
## select
|
|
158
|
+
|
|
159
|
+
- Compact heights (32px, 28px small), field edge with hover, white fill, 14px chevron
|
|
160
|
+
- The list floats: 8px corners, light edge, floating shadow
|
|
161
|
+
|
|
162
|
+
## table
|
|
163
|
+
|
|
164
|
+
- Adds containerClassName, so a table can scroll inside a fixed height and keep its header sticky
|
|
165
|
+
- Adds size="dense": 28px rows and header with 8px padding, the same 13px text, for spreadsheet-like data (inventories, ledgers, imports, mapping). Not a density setting
|
|
166
|
+
- Sticky header on the quiet surface, with the light divider
|
|
167
|
+
- Rows: light divider, hover fill, indigo tint when selected, an indigo edge on the keyboard-focused row
|
|
168
|
+
- Rows and header use the row tokens (36px, or 28px dense), 12px side padding and 2px top and bottom, so a 28px control in a cell keeps the row at 36px; header labels 12px medium grey, in sentence case
|
|
169
|
+
- Frozen columns: data-pinned on a head and its cells keeps them in view when the table scrolls sideways, at left var(--pin); data-pinned="last" draws the edge
|
|
170
|
+
|
|
171
|
+
## card
|
|
172
|
+
|
|
173
|
+
- Compact card: 16px padding and gaps, light edge, 6px corners, the resting card shadow
|
|
174
|
+
- Title 14px semibold, description in readable grey
|
|
175
|
+
- Optional level makes the title a heading, for cards that hold a page section
|
|
176
|
+
- Adds CardFooter band: a tinted strip across the bottom for a secondary line (as in Clerk's “Already have an account?”)
|
|
177
|
+
|
|
178
|
+
## alert
|
|
179
|
+
|
|
180
|
+
- Compact banner: 8px corners, 14px icon, room for one action on the right
|
|
181
|
+
- Information is neutral grey, not blue: colour is kept for problems
|
|
182
|
+
- Errors: soft red fill and edge, dark text; adds warning
|
|
183
|
+
- Only errors interrupt a screen reader (role alert); information and warnings are polite (role status)
|
|
184
|
+
- Title wraps instead of being cut to one line
|
|
185
|
+
- Adds AlertAction: Dismiss (ghost) then one action, on the right
|
|
186
|
+
|
|
187
|
+
## alert-dialog
|
|
188
|
+
|
|
189
|
+
- Confirmations are 420px wide at most
|
|
190
|
+
- Body text readable at 6:1, not the muted grey
|
|
191
|
+
- Smaller media tile
|
|
192
|
+
|
|
193
|
+
## skeleton
|
|
194
|
+
|
|
195
|
+
- Shimmer at 1.4s instead of a pulse, on TwoUX's hover grey; stops with reduced motion
|
|
196
|
+
|
|
197
|
+
## empty
|
|
198
|
+
|
|
199
|
+
- Dashed container sized to the region it replaces, compact spacing
|
|
200
|
+
- 32px neutral icon tile, no illustration; adds the error tile for the error state
|
|
201
|
+
- The title is a real heading for screen readers (level 2 by default, set level to fit the page)
|
|
202
|
+
- Description at most 36 characters wide, readable grey
|
|
203
|
+
|
|
204
|
+
## sonner
|
|
205
|
+
|
|
206
|
+
- Theme from TwoUX's <html data-theme> (light by default), not next-themes
|
|
207
|
+
- Status icons 14px in their status colour
|
|
208
|
+
- TwoUX defaults: bottom right, 16px from the edges, one at a time, 6 seconds, 340px wide; Undo is a quiet text button
|
|
209
|
+
- Solid surface: shadcn points at --popover and --border, which TwoUX names --color-popover and --color-line, so the toast was see-through
|
|
210
|
+
- Anti-collision: the toast rises above the focused element and anything marked data-toast-avoid (such as a sticky footer), so it never hides them (WCAG 2.4.11)
|
|
211
|
+
|
|
212
|
+
## calendar
|
|
213
|
+
|
|
214
|
+
- UK English by default: en-GB month and weekday names, weeks start on Monday
|
|
215
|
+
- Month buttons named in plain words: Previous month, Next month
|
|
216
|
+
- Weekday and week-number labels on TwoUX's 12px muted text, not an arbitrary 0.8rem
|
|
217
|
+
- Today gets a ring, not a fill, so it never looks selected; the day's name also says Today
|
|
218
|
+
- Days inside a range use the selection fill, as selected rows do
|
|
219
|
+
- Parts kept between renders: shadcn creates Root, Chevron and WeekNumber afresh each render, so any state change remounted the grid and a click that started on one day button ended on a new one and was lost
|
|
220
|
+
|
|
221
|
+
## command
|
|
222
|
+
|
|
223
|
+
- Icons stay smaller than the label and muted
|
|
224
|
+
- Group labels in sentence case, quiet
|
|
225
|
+
- Dialog keeps compact rows and 14px icons; shadcn enlarges them to 20px with 12px padding
|
|
226
|
+
- Shortcut slot holds words as well as keys: no letter-spacing, icons align
|
|
227
|
+
- Adds commandProps (shouldFilter, loop…) passed to the inner Command
|
|
228
|
+
- Opens near the top like a search, with the floating shadow; Esc closes it so no close button
|