@cosxai/ui 0.25.0 → 1.0.0-alpha.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +577 -0
  2. package/NOTICE +11 -0
  3. package/README.md +52 -0
  4. package/package.json +33 -7
  5. package/src/fonts.css +20 -0
  6. package/src/index.ts +8 -25
  7. package/src/lib/cn.ts +23 -6
  8. package/src/styles.css +17 -0
  9. package/src/theme.css +132 -0
  10. package/src/tokens/colors.css +112 -0
  11. package/src/tokens/compat.css +36 -0
  12. package/src/tokens/elevation.css +14 -0
  13. package/src/tokens/motion.css +42 -0
  14. package/src/tokens/spacing.css +55 -0
  15. package/src/tokens/typography-cjk.css +42 -0
  16. package/src/tokens/typography.css +81 -0
  17. package/src/actionbar/ActionBar.tsx +0 -837
  18. package/src/actionbar/ActionBarButton.tsx +0 -111
  19. package/src/actionbar/ActionBarMenuGroup.tsx +0 -116
  20. package/src/actionbar/ActionBarModeHandle.tsx +0 -171
  21. package/src/actionbar/ActionBarProvider.tsx +0 -91
  22. package/src/actionbar/actionbar-context.ts +0 -45
  23. package/src/actionbar/index.ts +0 -28
  24. package/src/actionbar/types.ts +0 -147
  25. package/src/actionbar/useActionBarItems.ts +0 -60
  26. package/src/actionbar/useActionBarMode.ts +0 -144
  27. package/src/actionbar/useActionBarPanel.ts +0 -56
  28. package/src/actionbar/useActionBarStatusDot.ts +0 -49
  29. package/src/actionbar/useActionBarToast.ts +0 -33
  30. package/src/ambient/AmbientBackdrop.tsx +0 -74
  31. package/src/ambient/CommandInput.tsx +0 -107
  32. package/src/ambient/SuperbarStrip.tsx +0 -36
  33. package/src/ambient/index.ts +0 -6
  34. package/src/bento/BentoCell.tsx +0 -66
  35. package/src/bento/BentoGrid.tsx +0 -42
  36. package/src/bento/index.ts +0 -2
  37. package/src/command/CommandPalette.tsx +0 -329
  38. package/src/command/CommandProvider.tsx +0 -57
  39. package/src/command/command-context.ts +0 -12
  40. package/src/command/index.ts +0 -6
  41. package/src/command/rank.ts +0 -50
  42. package/src/command/types.ts +0 -37
  43. package/src/command/useCommandSource.ts +0 -37
  44. package/src/dialogs/DialogsProvider.tsx +0 -216
  45. package/src/dialogs/Modal.tsx +0 -260
  46. package/src/dialogs/Toast.tsx +0 -85
  47. package/src/dialogs/dialogs-context.ts +0 -6
  48. package/src/dialogs/index.ts +0 -10
  49. package/src/dialogs/types.ts +0 -37
  50. package/src/dialogs/useDialogs.ts +0 -8
  51. package/src/editorial/EditorialSpotlight.tsx +0 -63
  52. package/src/editorial/Folio.tsx +0 -52
  53. package/src/editorial/PlateMarker.tsx +0 -33
  54. package/src/editorial/RomanSection.tsx +0 -65
  55. package/src/editorial/RunningMarginalia.tsx +0 -65
  56. package/src/editorial/index.ts +0 -10
  57. package/src/hooks/index.ts +0 -5
  58. package/src/hooks/useKeyboardHotkey.ts +0 -93
  59. package/src/hooks/useReducedMotion.ts +0 -20
  60. package/src/hooks/useViewport.ts +0 -61
  61. package/src/layout/Breadcrumb.tsx +0 -74
  62. package/src/layout/LeftNavRail.tsx +0 -139
  63. package/src/layout/MobileTabBar.tsx +0 -101
  64. package/src/layout/NavItem.tsx +0 -128
  65. package/src/layout/NavSearchTrigger.tsx +0 -88
  66. package/src/layout/NavSection.tsx +0 -40
  67. package/src/layout/RightSidebarPanel.tsx +0 -111
  68. package/src/layout/Shell.tsx +0 -91
  69. package/src/layout/SidePanel.tsx +0 -316
  70. package/src/layout/StickyBanner.tsx +0 -83
  71. package/src/layout/Topbar.tsx +0 -68
  72. package/src/layout/index.ts +0 -24
  73. package/src/layout/useNavRailState.ts +0 -69
  74. package/src/lib/time-utils.ts +0 -44
  75. package/src/neobrutalism/Marquee.tsx +0 -81
  76. package/src/neobrutalism/Sticker.tsx +0 -71
  77. package/src/neobrutalism/index.ts +0 -4
  78. package/src/primitives/Avatar.tsx +0 -53
  79. package/src/primitives/Button.tsx +0 -67
  80. package/src/primitives/Card.tsx +0 -41
  81. package/src/primitives/Checkbox.tsx +0 -87
  82. package/src/primitives/Chip.tsx +0 -191
  83. package/src/primitives/Combobox.tsx +0 -507
  84. package/src/primitives/CopyField.tsx +0 -139
  85. package/src/primitives/CountBadge.tsx +0 -50
  86. package/src/primitives/Input.tsx +0 -204
  87. package/src/primitives/Kbd.tsx +0 -45
  88. package/src/primitives/MentionCombobox.tsx +0 -612
  89. package/src/primitives/MultiCombobox.tsx +0 -327
  90. package/src/primitives/PageHeader.tsx +0 -77
  91. package/src/primitives/Radio.tsx +0 -131
  92. package/src/primitives/SegmentedControl.tsx +0 -135
  93. package/src/primitives/Select.tsx +0 -779
  94. package/src/primitives/SignaturePad.tsx +0 -461
  95. package/src/primitives/Tag.tsx +0 -56
  96. package/src/primitives/Textarea.tsx +0 -62
  97. package/src/primitives/ToggleSwitch.tsx +0 -79
  98. package/src/primitives/Tooltip.tsx +0 -213
  99. package/src/primitives/index.ts +0 -53
  100. package/src/pwa/InstallPromptBanner.tsx +0 -132
  101. package/src/pwa/index.ts +0 -4
  102. package/src/pwa/manifest.template.json +0 -20
  103. package/src/pwa/registerSW.ts +0 -55
  104. package/src/riso/Halftone.tsx +0 -85
  105. package/src/riso/Misregister.tsx +0 -63
  106. package/src/riso/RisoStamp.tsx +0 -76
  107. package/src/riso/index.ts +0 -3
  108. package/src/sketch/HandUnderline.tsx +0 -53
  109. package/src/sketch/RoughArrow.tsx +0 -91
  110. package/src/sketch/RoughBox.tsx +0 -73
  111. package/src/sketch/StickyNote.tsx +0 -56
  112. package/src/sketch/index.ts +0 -4
  113. package/src/styles/base.css +0 -186
  114. package/src/styles/chrome-ambient.css +0 -235
  115. package/src/styles/chrome-bento.css +0 -192
  116. package/src/styles/chrome-editorial.css +0 -168
  117. package/src/styles/chrome-neobrutalism.css +0 -326
  118. package/src/styles/chrome-riso.css +0 -339
  119. package/src/styles/chrome-sketch.css +0 -362
  120. package/src/styles/chrome-swiss.css +0 -265
  121. package/src/styles/chrome-terminal.css +0 -272
  122. package/src/styles/fonts.css +0 -1034
  123. package/src/styles/index.css +0 -343
  124. package/src/styles/tokens.css +0 -941
  125. package/src/terminal/AsciiBox.tsx +0 -65
  126. package/src/terminal/BrailleSpinner.tsx +0 -46
  127. package/src/terminal/index.ts +0 -4
  128. package/src/theme/ThemeProvider.tsx +0 -99
  129. package/src/theme/index.ts +0 -6
  130. package/src/theme/inline-script.ts +0 -40
  131. package/src/theme/theme-context.ts +0 -7
  132. package/src/theme/types.ts +0 -39
  133. package/src/theme/useTheme.ts +0 -8
@@ -0,0 +1,81 @@
1
+ /* COSX 3.0 — typography. One family.
2
+ Geist for everything. Hierarchy comes from size and the yellow, not from a second face.
3
+ Headlines 500 (size does the work) · body 400 · UI 500 · labels 12px 500 grey, sentence case ·
4
+ figures 500–700 tabular. Geist Mono is retired; --font-mono resolves to the sans. */
5
+ :root {
6
+ --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ --font-mono: var(--font-sans); /* retired in 3.0 — resolves to the sans */
8
+ --font-serif: var(--font-sans); /* retired in 3.0 */
9
+ --font-serif-display: var(--font-sans); /* retired in 3.0 */
10
+
11
+ --w-regular: 400; /* @kind font */
12
+ --w-medium: 500; /* @kind font */
13
+ --w-semibold: 600; /* @kind font */
14
+ --w-bold: 700; /* @kind font */
15
+
16
+ /* Screen scale */
17
+ --size-display: clamp(44px, 7vw, 84px);
18
+ --size-h1: clamp(34px, 4.6vw, 56px);
19
+ --size-h2: clamp(26px, 3.2vw, 36px);
20
+ --size-h3: 18px;
21
+ --size-lede: 20px;
22
+ --size-body: 15px;
23
+ --size-small: 13.5px;
24
+ --size-label: 12px; /* labels, eyebrows, metadata — 500, sentence case, --text-secondary */
25
+ --size-mono: 12px; /* alias of --size-label */
26
+ --size-mono-sm: 12px;
27
+
28
+ /* Product UI scale */
29
+ --ui-title: 22px;
30
+ --ui-figure: 32px;
31
+ --ui-body: 14px;
32
+
33
+ /* Social artboard 1080x1350 */
34
+ --social-headline: 72px;
35
+ --social-lede: 26px;
36
+ --social-note: 17px;
37
+ --social-mono: 18px;
38
+
39
+ /* Deck scale, at the 1280x720 artboard */
40
+ --deck-cover: 76px;
41
+ --deck-section: 64px;
42
+ --deck-heading: 46px;
43
+ --deck-figure: 64px;
44
+ --deck-lead: 20px;
45
+ --deck-body: 15px;
46
+ --deck-mono: 13px;
47
+ --deck-source: 13px;
48
+
49
+ --w-display: 500; /* @kind font */
50
+ --leading-display: 1.0; /* @kind other */
51
+ --leading-heading: 1.08; /* @kind other */
52
+ --leading-body: 1.6; /* @kind other */
53
+
54
+ --track-display: -.025em;
55
+ --track-heading: -.015em;
56
+ --track-mono: 0; /* @kind other */
57
+ --track-figure: -.03em;
58
+
59
+ /* v2 names kept as aliases */
60
+ --t-display: 84px; --t-h1: 56px; --t-h2: 36px; --t-h3: 26px; --t-h4: 20px;
61
+ --t-body-lg: 20px; --t-body: 15px; --t-small: 13.5px; --t-meta: 12px;
62
+ --lh-tight: 1.0; /* @kind other */
63
+ --lh-snug: 1.08; /* @kind other */
64
+ --lh-normal: 1.5; /* @kind other */
65
+ --lh-relaxed: 1.6; /* @kind other */
66
+ --track-label: 0; /* @kind other */
67
+ --track-meta: 0; /* @kind other */
68
+ --w-light: 400; /* @kind font */
69
+ }
70
+ .tabular { font-variant-numeric: tabular-nums; }
71
+
72
+ /* The marker: a highlighter stroke behind a phrase. Sits in the lower 60% of the line
73
+ so ascenders clear it. Works across line breaks. */
74
+ .marker {
75
+ background: linear-gradient(transparent 40%, var(--marker) 40%, var(--marker) 94%, transparent 94%);
76
+ -webkit-box-decoration-break: clone; box-decoration-break: clone;
77
+ padding: 0 .08em; margin: 0 -.08em;
78
+ }
79
+ /* On ink the yellow itself is the highlighter: the marked phrase is set in accent yellow with no
80
+ band. Nothing light can sit legibly on a yellow band, and ink type vanishes outside it. */
81
+ .ink-mode .marker, .ink .marker, .marker.on-ink { color: var(--yellow-accent); background: none; padding: 0; margin: 0; border-radius: 0; }