banhaten 0.1.3 → 0.3.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 (275) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/CONTRIBUTING.md +44 -0
  3. package/README.md +65 -13
  4. package/SECURITY.md +15 -0
  5. package/banhaten.config.example.json +0 -2
  6. package/docs/design-system/README.md +9 -0
  7. package/docs/design-system/adoption-quality-remediation.md +87 -0
  8. package/docs/design-system/agent-usage.md +13 -0
  9. package/docs/design-system/appearance-presets.md +6 -1
  10. package/docs/design-system/component-docs-pattern.md +81 -0
  11. package/docs/design-system/component-implementation-ownership-audit.md +244 -0
  12. package/docs/design-system/component-quality-audit-2026-08-20.md +223 -0
  13. package/docs/design-system/component-showcase-consistency-report.md +2 -0
  14. package/docs/design-system/component-token-consistency-audit.md +13 -3
  15. package/docs/design-system/components/README.md +4 -2
  16. package/docs/design-system/components/accordion.md +16 -0
  17. package/docs/design-system/components/activity-feed.md +17 -1
  18. package/docs/design-system/components/activity-heatmap.md +73 -0
  19. package/docs/design-system/components/alert-dialog.md +17 -0
  20. package/docs/design-system/components/alert.md +46 -14
  21. package/docs/design-system/components/aspect-ratio.md +15 -0
  22. package/docs/design-system/components/attribute.md +16 -0
  23. package/docs/design-system/components/autocomplete.md +19 -0
  24. package/docs/design-system/components/avatar.md +18 -0
  25. package/docs/design-system/components/badge.md +19 -0
  26. package/docs/design-system/components/banner.md +19 -1
  27. package/docs/design-system/components/breadcrumbs.md +17 -0
  28. package/docs/design-system/components/button-group.md +35 -0
  29. package/docs/design-system/components/button.md +18 -0
  30. package/docs/design-system/components/card.md +26 -1
  31. package/docs/design-system/components/carousel.md +20 -3
  32. package/docs/design-system/components/catalog-components.md +18 -1
  33. package/docs/design-system/components/chart.md +15 -0
  34. package/docs/design-system/components/checkbox.md +16 -0
  35. package/docs/design-system/components/collapsible.md +15 -0
  36. package/docs/design-system/components/command.md +15 -0
  37. package/docs/design-system/components/context-menu.md +15 -0
  38. package/docs/design-system/components/date-picker.md +21 -1
  39. package/docs/design-system/components/divider.md +16 -0
  40. package/docs/design-system/components/empty-state.md +17 -0
  41. package/docs/design-system/components/field.md +17 -0
  42. package/docs/design-system/components/file-upload.md +18 -0
  43. package/docs/design-system/components/hover-card.md +15 -0
  44. package/docs/design-system/components/input-group.md +17 -0
  45. package/docs/design-system/components/input-otp.md +18 -0
  46. package/docs/design-system/components/input.md +43 -7
  47. package/docs/design-system/components/item.md +72 -0
  48. package/docs/design-system/components/kbd.md +18 -0
  49. package/docs/design-system/components/label.md +16 -0
  50. package/docs/design-system/components/menu.md +17 -0
  51. package/docs/design-system/components/menubar.md +15 -0
  52. package/docs/design-system/components/modal.md +25 -4
  53. package/docs/design-system/components/native-select.md +18 -0
  54. package/docs/design-system/components/navigation-menu.md +15 -0
  55. package/docs/design-system/components/onboarding-step-list-item.md +16 -1
  56. package/docs/design-system/components/page-header.md +17 -1
  57. package/docs/design-system/components/pagination.md +31 -8
  58. package/docs/design-system/components/popover.md +19 -0
  59. package/docs/design-system/components/progress-slider.md +18 -0
  60. package/docs/design-system/components/progress.md +17 -0
  61. package/docs/design-system/components/radio-card.md +16 -0
  62. package/docs/design-system/components/radio-group.md +17 -0
  63. package/docs/design-system/components/resizable.md +15 -0
  64. package/docs/design-system/components/scroll-area.md +20 -1
  65. package/docs/design-system/components/segmented-control.md +71 -0
  66. package/docs/design-system/components/select.md +44 -7
  67. package/docs/design-system/components/sheet.md +17 -0
  68. package/docs/design-system/components/sidebar.md +17 -0
  69. package/docs/design-system/components/skeleton.md +18 -0
  70. package/docs/design-system/components/slideout.md +17 -0
  71. package/docs/design-system/components/slider.md +20 -0
  72. package/docs/design-system/components/social-button.md +21 -3
  73. package/docs/design-system/components/spinner.md +16 -0
  74. package/docs/design-system/components/steps.md +19 -0
  75. package/docs/design-system/components/table.md +36 -4
  76. package/docs/design-system/components/tabs.md +17 -0
  77. package/docs/design-system/components/tag.md +17 -0
  78. package/docs/design-system/components/textarea.md +16 -0
  79. package/docs/design-system/components/timeline.md +17 -0
  80. package/docs/design-system/components/toast.md +17 -0
  81. package/docs/design-system/components/toggle.md +17 -0
  82. package/docs/design-system/components/toolbar.md +21 -1
  83. package/docs/design-system/components/tooltip.md +18 -1
  84. package/docs/design-system/density-and-elevation.md +61 -0
  85. package/docs/design-system/direction-and-localization.md +23 -0
  86. package/docs/design-system/form-recipes.md +73 -0
  87. package/docs/design-system/gap-promotion-policy.md +21 -0
  88. package/docs/design-system/gap-promotion-report.md +100 -0
  89. package/docs/design-system/installation.md +68 -0
  90. package/docs/design-system/launch-comparison-shadcn.md +98 -0
  91. package/docs/design-system/registry-and-cli.md +30 -7
  92. package/docs/design-system/release-policy.md +30 -0
  93. package/docs/design-system/roadmap.md +14 -0
  94. package/docs/design-system/support-matrix.md +23 -0
  95. package/docs/design-system/tabs.md +1 -1
  96. package/docs/design-system/token-governance.md +23 -1
  97. package/package.json +30 -15
  98. package/registry/component-contract.json +40 -0
  99. package/registry/components/alert-dialog.tsx +2 -2
  100. package/registry/components/alert.tsx +101 -76
  101. package/registry/components/autocomplete.tsx +23 -9
  102. package/registry/components/avatar.tsx +14 -10
  103. package/registry/components/badge.tsx +18 -18
  104. package/registry/components/button-group.tsx +324 -5
  105. package/registry/components/button.tsx +38 -17
  106. package/registry/components/card.tsx +87 -62
  107. package/registry/components/carousel.tsx +67 -5
  108. package/registry/components/chart.tsx +36 -3
  109. package/registry/components/checkbox.tsx +3 -3
  110. package/registry/components/collapsible.tsx +1 -1
  111. package/registry/components/command.tsx +38 -4
  112. package/registry/components/context-menu.tsx +1 -1
  113. package/registry/components/date-picker.tsx +312 -135
  114. package/registry/components/expanded/ActivityFeed.tsx +9 -22
  115. package/registry/components/expanded/ActivityHeatmap.tsx +64 -0
  116. package/registry/components/expanded/Banner.tsx +3 -4
  117. package/registry/components/expanded/Breadcrumbs.tsx +8 -5
  118. package/registry/components/expanded/CatalogComponentsShowcase.tsx +16 -17
  119. package/registry/components/expanded/CatalogDivider.tsx +4 -3
  120. package/registry/components/expanded/EmptyState.tsx +1 -1
  121. package/registry/components/expanded/FileUpload.tsx +16 -7
  122. package/registry/components/expanded/OnboardingStepListItem.tsx +2 -6
  123. package/registry/components/expanded/PageHeader.tsx +47 -56
  124. package/registry/components/expanded/Slideout.tsx +29 -424
  125. package/registry/components/expanded/Steps.tsx +151 -13
  126. package/registry/components/expanded/Table.tsx +161 -82
  127. package/registry/components/expanded/Timeline.tsx +14 -27
  128. package/registry/components/expanded/activityFeed.css +9 -9
  129. package/registry/components/expanded/activityHeatmap.css +66 -0
  130. package/registry/components/expanded/banner.css +21 -11
  131. package/registry/components/expanded/breadcrumbs.css +2 -2
  132. package/registry/components/expanded/divider.css +1 -1
  133. package/registry/components/expanded/emptyState.css +1 -1
  134. package/registry/components/expanded/fileUpload.css +7 -7
  135. package/registry/components/expanded/onboardingStepListItem.css +2 -2
  136. package/registry/components/expanded/pageHeader.css +14 -11
  137. package/registry/components/expanded/slideout.css +10 -690
  138. package/registry/components/expanded/steps.css +78 -15
  139. package/registry/components/expanded/table.css +60 -69
  140. package/registry/components/expanded/timeline.css +19 -18
  141. package/registry/components/field.tsx +61 -8
  142. package/registry/components/input-content.ts +1 -0
  143. package/registry/components/input-otp.tsx +13 -3
  144. package/registry/components/input.tsx +68 -43
  145. package/registry/components/item.tsx +189 -0
  146. package/registry/components/kbd.tsx +111 -4
  147. package/registry/components/menu.tsx +87 -251
  148. package/registry/components/menubar.tsx +1 -1
  149. package/registry/components/modal.tsx +143 -103
  150. package/registry/components/native-select.tsx +2 -2
  151. package/registry/components/navigation-menu.tsx +1 -1
  152. package/registry/components/pagination.css +36 -0
  153. package/registry/components/pagination.tsx +88 -64
  154. package/registry/components/popover.tsx +162 -664
  155. package/registry/components/progress-slider.tsx +1 -1
  156. package/registry/components/radio-card.tsx +116 -87
  157. package/registry/components/resizable.tsx +36 -2
  158. package/registry/components/scroll-area.tsx +30 -6
  159. package/registry/components/segmented-control.tsx +87 -0
  160. package/registry/components/select-content.tsx +2 -2
  161. package/registry/components/select.tsx +86 -27
  162. package/registry/components/sheet.tsx +1 -1
  163. package/registry/components/sidebar.tsx +12 -6
  164. package/registry/components/skeleton.css +0 -3
  165. package/registry/components/social-button.tsx +59 -30
  166. package/registry/components/spinner.tsx +18 -55
  167. package/registry/components/table-elements.tsx +128 -0
  168. package/registry/components/tabs.css +1 -1
  169. package/registry/components/tabs.tsx +13 -14
  170. package/registry/components/tag.tsx +3 -3
  171. package/registry/components/textarea.tsx +3 -3
  172. package/registry/components/toast.tsx +16 -11
  173. package/registry/components/toggle.tsx +4 -4
  174. package/registry/components/toolbar.tsx +94 -22
  175. package/registry/components/tooltip.tsx +2 -2
  176. package/registry/examples/alert-demo.tsx +25 -5
  177. package/registry/examples/attribute-demo.tsx +1 -1
  178. package/registry/examples/autocomplete-demo.tsx +3 -3
  179. package/registry/examples/avatar-demo.tsx +14 -11
  180. package/registry/examples/badge-demo.tsx +1 -1
  181. package/registry/examples/button-demo.tsx +6 -6
  182. package/registry/examples/button-group-demo.tsx +23 -2
  183. package/registry/examples/card-demo.tsx +46 -8
  184. package/registry/examples/carousel-demo.tsx +20 -2
  185. package/registry/examples/chart-demo.tsx +1 -1
  186. package/registry/examples/checkbox-demo.tsx +5 -5
  187. package/registry/examples/collection-filter-bar-demo.tsx +135 -0
  188. package/registry/examples/command-demo.tsx +3 -3
  189. package/registry/examples/{expanded/command-bar-demo.tsx → command-palette-demo.tsx} +5 -15
  190. package/registry/examples/context-menu-demo.tsx +1 -1
  191. package/registry/examples/control-density-contract-demo.tsx +61 -0
  192. package/registry/examples/date-picker-demo.tsx +12 -12
  193. package/registry/examples/divider-demo.tsx +3 -3
  194. package/registry/examples/expanded/activity-heatmap-demo.tsx +29 -0
  195. package/registry/examples/expanded/banner-demo.tsx +1 -1
  196. package/registry/examples/expanded/breadcrumbs-demo.tsx +4 -4
  197. package/registry/examples/expanded/empty-state-demo.tsx +1 -1
  198. package/registry/examples/expanded/file-upload-demo.tsx +1 -1
  199. package/registry/examples/expanded/onboarding-step-demo.tsx +1 -1
  200. package/registry/examples/expanded/slideout-demo.tsx +2 -2
  201. package/registry/examples/expanded/steps-demo.tsx +1 -1
  202. package/registry/examples/expanded/tabs-demo.tsx +1 -1
  203. package/registry/examples/expanded/timeline-demo.tsx +1 -1
  204. package/registry/examples/hover-card-demo.tsx +2 -2
  205. package/registry/examples/input-demo.tsx +6 -6
  206. package/registry/examples/input-otp-demo.tsx +4 -4
  207. package/registry/examples/item-demo.tsx +46 -0
  208. package/registry/examples/kbd-demo.tsx +1 -1
  209. package/registry/examples/label-demo.tsx +1 -1
  210. package/registry/examples/menu-demo.tsx +1 -1
  211. package/registry/examples/modal-demo.tsx +67 -9
  212. package/registry/examples/navigation-menu-demo.tsx +1 -1
  213. package/registry/examples/pagination-demo.tsx +10 -7
  214. package/registry/examples/popover-demo.tsx +19 -19
  215. package/registry/examples/progress-demo.tsx +1 -1
  216. package/registry/examples/progress-slider-demo.tsx +1 -1
  217. package/registry/examples/radio-card-demo.tsx +4 -4
  218. package/registry/examples/radio-group-demo.tsx +2 -2
  219. package/registry/examples/resizable-demo.tsx +1 -1
  220. package/registry/examples/results-toolbar-demo.tsx +44 -0
  221. package/registry/examples/scroll-area-demo.tsx +3 -3
  222. package/registry/examples/segmented-control-demo.tsx +39 -0
  223. package/registry/examples/select-demo.tsx +1 -1
  224. package/registry/examples/sidebar-demo.tsx +5 -3
  225. package/registry/examples/slider-demo.tsx +3 -3
  226. package/registry/examples/social-button-demo.tsx +18 -8
  227. package/registry/examples/spinner-demo.tsx +13 -13
  228. package/registry/examples/tabs-demo.tsx +1 -1
  229. package/registry/examples/tag-demo.tsx +1 -1
  230. package/registry/examples/textarea-demo.tsx +4 -4
  231. package/registry/examples/toast-demo.tsx +1 -1
  232. package/registry/examples/toggle-demo.tsx +6 -6
  233. package/registry/examples/tooltip-demo.tsx +4 -4
  234. package/registry/guidance/USAGE.md +27 -0
  235. package/registry/hooks/use-direction.ts +193 -13
  236. package/registry/index.json +5668 -375
  237. package/registry/styles/globals.css +2404 -3999
  238. package/registry.json +156 -149
  239. package/schema/config.schema.json +11 -8
  240. package/schema/registry.schema.json +150 -45
  241. package/schema/tokens.schema.json +134 -34
  242. package/src/cli/command-line.js +194 -0
  243. package/src/cli/config-editors.js +9 -0
  244. package/src/cli/doctor.js +399 -0
  245. package/src/cli/file-transaction.js +295 -0
  246. package/src/cli/global-css.js +153 -0
  247. package/src/cli/index.js +567 -1613
  248. package/src/cli/install-plan.js +592 -0
  249. package/src/cli/install-receipt.js +171 -0
  250. package/src/cli/jsonc.js +203 -0
  251. package/src/cli/package-install-state.js +254 -0
  252. package/src/cli/package-manager.js +238 -0
  253. package/src/cli/package-plan.js +185 -0
  254. package/src/cli/package-version.js +97 -0
  255. package/src/cli/registry-query.js +207 -0
  256. package/src/cli/reporting.js +55 -0
  257. package/src/cli/schema-validation.js +19 -0
  258. package/src/cli/source-scanner.js +686 -0
  259. package/src/cli/vite-config.js +478 -0
  260. package/tokens/banhaten.tokens.json +4444 -331
  261. package/docs/design-system/components/command-bar.md +0 -57
  262. package/registry/components/expanded/BannerBoard.tsx +0 -225
  263. package/registry/components/expanded/CatalogTag.tsx +0 -85
  264. package/registry/components/expanded/CommandBar.tsx +0 -386
  265. package/registry/components/expanded/IconExplorer.tsx +0 -612
  266. package/registry/components/expanded/TimelineShowcase.tsx +0 -158
  267. package/registry/components/expanded/commandBar.css +0 -470
  268. package/registry/components/expanded/iconExplorer.css +0 -764
  269. package/registry/components/expanded/iconPacks.ts +0 -866
  270. package/registry/components/expanded/tag.css +0 -148
  271. package/registry/examples/expanded/icons-demo.tsx +0 -5
  272. package/tokens/Color mode.zip +0 -0
  273. package/tokens/Numbers.zip +0 -0
  274. package/tokens/Radius.zip +0 -0
  275. package/tokens/Theme.zip +0 -0
@@ -1,158 +0,0 @@
1
- import {
2
- Timeline,
3
- TimelineItem,
4
- type TimelineItemState,
5
- type TimelineOrientation,
6
- type TimelineVariant,
7
- } from "./Timeline";
8
-
9
- type TimelineSpec = {
10
- height: number;
11
- id: string;
12
- rtl: boolean;
13
- variant: TimelineVariant;
14
- width: number;
15
- x: number;
16
- y: number;
17
- };
18
-
19
- type TimelineItemSpec = TimelineSpec & {
20
- orientation: TimelineOrientation;
21
- state: TimelineItemState;
22
- };
23
-
24
- const verticalTimelineSpecs: TimelineSpec[] = [
25
- { id: "572:6755", variant: "default", rtl: false, x: 225, y: 164, width: 600, height: 532 },
26
- { id: "584:11474", variant: "icon", rtl: false, x: 1163, y: 164, width: 600, height: 532 },
27
- { id: "573:6936", variant: "default", rtl: true, x: 225, y: 767, width: 600, height: 532 },
28
- { id: "584:11482", variant: "icon", rtl: true, x: 1163, y: 767, width: 600, height: 532 },
29
- ];
30
-
31
- const horizontalTimelineSpecs: TimelineSpec[] = [
32
- { id: "584:4500", variant: "default", rtl: false, x: 274, y: 207, width: 1000, height: 128 },
33
- { id: "584:15619", variant: "icon", rtl: false, x: 274, y: 405, width: 1000, height: 136 },
34
- { id: "584:4581", variant: "default", rtl: true, x: 274, y: 770, width: 1000, height: 128 },
35
- { id: "584:15855", variant: "icon", rtl: true, x: 274, y: 968, width: 1000, height: 136 },
36
- ];
37
-
38
- const verticalItemSpecs: TimelineItemSpec[] = [
39
- { id: "572:6443", orientation: "vertical", variant: "default", state: "finished", rtl: false, x: 150, y: 152, width: 500, height: 126 },
40
- { id: "584:10301", orientation: "vertical", variant: "icon", state: "finished", rtl: false, x: 790, y: 143, width: 500, height: 126 },
41
- { id: "572:6442", orientation: "vertical", variant: "default", state: "active", rtl: false, x: 150, y: 298, width: 500, height: 126 },
42
- { id: "584:10317", orientation: "vertical", variant: "icon", state: "active", rtl: false, x: 790, y: 289, width: 500, height: 126 },
43
- { id: "572:6441", orientation: "vertical", variant: "default", state: "inactive", rtl: false, x: 150, y: 461, width: 500, height: 126 },
44
- { id: "584:10333", orientation: "vertical", variant: "icon", state: "inactive", rtl: false, x: 790, y: 452, width: 500, height: 126 },
45
- { id: "572:6769", orientation: "vertical", variant: "default", state: "finished", rtl: true, x: 154, y: 758, width: 500, height: 126 },
46
- { id: "584:11212", orientation: "vertical", variant: "icon", state: "finished", rtl: true, x: 785, y: 758, width: 500, height: 126 },
47
- { id: "572:6785", orientation: "vertical", variant: "default", state: "active", rtl: true, x: 154, y: 908, width: 500, height: 126 },
48
- { id: "584:11228", orientation: "vertical", variant: "icon", state: "active", rtl: true, x: 785, y: 908, width: 500, height: 126 },
49
- { id: "572:6801", orientation: "vertical", variant: "default", state: "inactive", rtl: true, x: 154, y: 1058, width: 500, height: 126 },
50
- { id: "584:11244", orientation: "vertical", variant: "icon", state: "inactive", rtl: true, x: 785, y: 1058, width: 500, height: 126 },
51
- ];
52
-
53
- const horizontalItemSpecs: TimelineItemSpec[] = [
54
- { id: "582:4215", orientation: "horizontal", variant: "default", state: "finished", rtl: false, x: 311, y: 168, width: 240, height: 128 },
55
- { id: "584:4325", orientation: "horizontal", variant: "default", state: "active", rtl: false, x: 595, y: 168, width: 240, height: 128 },
56
- { id: "584:4351", orientation: "horizontal", variant: "default", state: "inactive", rtl: false, x: 864, y: 168, width: 240, height: 128 },
57
- { id: "584:14794", orientation: "horizontal", variant: "icon", state: "finished", rtl: false, x: 311, y: 346, width: 240, height: 136 },
58
- { id: "584:14807", orientation: "horizontal", variant: "icon", state: "active", rtl: false, x: 595, y: 346, width: 240, height: 136 },
59
- { id: "584:14820", orientation: "horizontal", variant: "icon", state: "inactive", rtl: false, x: 864, y: 346, width: 240, height: 136 },
60
- { id: "582:4231", orientation: "horizontal", variant: "default", state: "finished", rtl: true, x: 854, y: 630, width: 240, height: 128 },
61
- { id: "584:4382", orientation: "horizontal", variant: "default", state: "active", rtl: true, x: 577, y: 630, width: 240, height: 128 },
62
- { id: "584:4408", orientation: "horizontal", variant: "default", state: "inactive", rtl: true, x: 311, y: 630, width: 240, height: 128 },
63
- { id: "584:14884", orientation: "horizontal", variant: "icon", state: "finished", rtl: true, x: 854, y: 804, width: 240, height: 136 },
64
- { id: "584:14897", orientation: "horizontal", variant: "icon", state: "active", rtl: true, x: 577, y: 804, width: 240, height: 136 },
65
- { id: "584:14910", orientation: "horizontal", variant: "icon", state: "inactive", rtl: true, x: 311, y: 804, width: 240, height: 136 },
66
- ];
67
-
68
- function timelineSteps(count: number, rtl = false) {
69
- return Array.from({ length: count }, (_, index) => ({
70
- caption: rtl ? "\u062a\u0633\u0645\u064a\u0629" : "Caption",
71
- date: "Mar 15. 2050",
72
- id: `timeline-step-${index}`,
73
- label: rtl ? "\u0645\u0644\u0635\u0642" : "Label",
74
- state: "finished" as const,
75
- }));
76
- }
77
-
78
- function placement(spec: TimelineSpec) {
79
- return {
80
- height: spec.height,
81
- left: spec.x,
82
- top: spec.y,
83
- width: spec.width,
84
- };
85
- }
86
-
87
- export function TimelineShowcase() {
88
- return (
89
- <section className="timeline-showcase" aria-label="Figma Timeline component matrix">
90
- <div className="timeline-showcase__row">
91
- <div className="timeline-canvas timeline-canvas--vertical" data-node-id="572:6768">
92
- {verticalTimelineSpecs.map((spec) => (
93
- <div className="timeline-canvas__item" data-node-id={spec.id} key={spec.id} style={placement(spec)}>
94
- <Timeline
95
- ariaLabel={`${spec.rtl ? "RTL" : "LTR"} ${spec.variant} vertical timeline`}
96
- dir={spec.rtl ? "rtl" : "ltr"}
97
- orientation="vertical"
98
- steps={timelineSteps(7, spec.rtl)}
99
- variant={spec.variant}
100
- />
101
- </div>
102
- ))}
103
- </div>
104
-
105
- <div className="timeline-canvas timeline-canvas--horizontal" data-node-id="584:4501">
106
- {horizontalTimelineSpecs.map((spec) => (
107
- <div className="timeline-canvas__item" data-node-id={spec.id} key={spec.id} style={placement(spec)}>
108
- <Timeline
109
- ariaLabel={`${spec.rtl ? "RTL" : "LTR"} ${spec.variant} horizontal timeline`}
110
- dir={spec.rtl ? "rtl" : "ltr"}
111
- orientation="horizontal"
112
- steps={timelineSteps(6, spec.rtl)}
113
- variant={spec.variant}
114
- />
115
- </div>
116
- ))}
117
- </div>
118
- </div>
119
-
120
- <div className="timeline-showcase__row">
121
- <div className="timeline-canvas timeline-canvas--vertical-items" data-node-id="572:6444">
122
- {verticalItemSpecs.map((spec) => (
123
- <div className="timeline-canvas__item" data-node-id={spec.id} key={spec.id} style={placement(spec)}>
124
- <TimelineItem
125
- caption={spec.rtl ? "\u062a\u0633\u0645\u064a\u0629" : "Caption"}
126
- date="Mar 15. 2050"
127
- dir={spec.rtl ? "rtl" : "ltr"}
128
- label={spec.rtl ? "\u0645\u0644\u0635\u0642" : "Label"}
129
- orientation="vertical"
130
- showBottomDate
131
- showTopDate
132
- state={spec.state}
133
- variant={spec.variant}
134
- />
135
- </div>
136
- ))}
137
- </div>
138
-
139
- <div className="timeline-canvas timeline-canvas--horizontal-items" data-node-id="582:4214">
140
- {horizontalItemSpecs.map((spec) => (
141
- <div className="timeline-canvas__item" data-node-id={spec.id} key={spec.id} style={placement(spec)}>
142
- <TimelineItem
143
- caption={spec.rtl ? "\u062a\u0633\u0645\u064a\u0629" : "Caption"}
144
- date="Mar 15. 2050"
145
- dir={spec.rtl ? "rtl" : "ltr"}
146
- label={spec.rtl ? "\u0645\u0644\u0635\u0642" : "Label"}
147
- orientation="horizontal"
148
- showTopDate
149
- state={spec.state}
150
- variant={spec.variant}
151
- />
152
- </div>
153
- ))}
154
- </div>
155
- </div>
156
- </section>
157
- );
158
- }
@@ -1,470 +0,0 @@
1
- .ds-command-bar {
2
- --command-bg-raised: var(--bh-bg-raised);
3
- --command-bg-neutral-soft: var(--bh-bg-neutral-soft);
4
- --command-bg-neutral-subtle: var(--bh-bg-neutral-subtle);
5
- --command-border-default: var(--bh-border-default);
6
- --command-border-input: var(--bh-border-input);
7
- --command-border-subtle: var(--bh-border-subtle);
8
- --command-content-default: var(--bh-content-default);
9
- --command-content-muted: var(--bh-content-muted);
10
- --command-content-subtle: var(--bh-content-subtle);
11
- --command-control-default: var(--bh-control-default);
12
- --command-input-default: var(--bh-interactive-input-default);
13
- --command-interactive-hover: var(--bh-interactive-ghost-hover);
14
- --command-interactive-soft: var(--bh-interactive-soft-default);
15
- --command-radius-3xl: var(--bh-radius-3xl-16);
16
- --command-radius-full: var(--bh-radius-full);
17
- --command-radius-lg: var(--bh-radius-lg-8);
18
- --command-radius-md: var(--bh-radius-md-6);
19
- --command-space-xs: var(--bh-space-xs-4);
20
- --command-space-sm: var(--bh-space-sm-6);
21
- --command-space-md: var(--bh-space-md-8);
22
- --command-space-xl: var(--bh-space-xl-12);
23
- --command-space-3xl: var(--bh-space-3xl-16);
24
- --command-space-4xl: var(--bh-space-4xl-20);
25
- --command-space-5xl: var(--bh-space-5xl-24);
26
- --command-space-10xl: var(--bh-space-10xl-80);
27
- --command-width-desktop: calc(var(--bh-space-18xl-320) + var(--bh-space-18xl-320));
28
- --command-width-mobile: calc(var(--bh-space-19xl-384) - var(--bh-space-md-8) - var(--bh-space-xxxs-1));
29
- --command-height-mobile: calc(var(--bh-space-19xl-384) + var(--bh-space-19xl-384) + var(--bh-space-7xl-40) + var(--bh-space-xs-4));
30
- --command-height-default: calc(var(--bh-space-8xl-48) + var(--bh-space-xl-12));
31
- --command-height-recent: calc(var(--bh-space-19xl-384) + var(--bh-space-18xl-320) + var(--bh-space-xs-4));
32
- --command-height-results: calc(var(--bh-space-19xl-384) + var(--bh-space-18xl-320));
33
- --command-height-empty: calc(var(--bh-space-18xl-320) - var(--bh-space-xs-4));
34
- --command-content-height-recent: calc(var(--bh-space-19xl-384) + var(--bh-space-14xl-192) + var(--bh-space-5xl-24));
35
- --command-content-height-results: calc(var(--bh-space-19xl-384) + var(--bh-space-14xl-192) + var(--bh-space-4xl-20));
36
- --command-search-mobile-height: var(--bh-space-8xl-48);
37
- --command-item-height: calc(var(--bh-space-8xl-48) + var(--bh-space-md-8));
38
- --command-icon-size: var(--bh-space-6xl-32);
39
- --command-close-size: var(--bh-space-5xl-24);
40
- --command-shortcut-height: var(--bh-space-5xl-24);
41
- --command-shortcut-icon-size: var(--bh-space-3xl-16);
42
- --command-shortcut-min-width: var(--bh-space-7xl-40);
43
- --command-empty-mobile-padding: calc(var(--bh-space-13xl-160) + var(--bh-space-5xl-24));
44
- --command-shadow-surface: var(--shadow-component-default);
45
-
46
- box-sizing: border-box;
47
- display: flex;
48
- flex-direction: column;
49
- align-items: stretch;
50
- width: var(--command-width-desktop);
51
- max-width: var(--command-width-desktop);
52
- overflow: hidden;
53
- border: var(--bh-space-xxxs-1) solid var(--command-border-subtle);
54
- background: var(--command-bg-raised);
55
- color: var(--command-content-default);
56
- font-family: var(--bh-font-family);
57
- font-size: var(--bh-text-body-md-regular-font-size);
58
- font-style: normal;
59
- font-weight: var(--bh-text-body-md-regular-font-weight);
60
- letter-spacing: var(--bh-text-body-md-regular-letter-spacing);
61
- line-height: var(--bh-text-body-md-regular-line-height);
62
- }
63
-
64
- .ds-command-bar *,
65
- .ds-command-bar *::before,
66
- .ds-command-bar *::after {
67
- box-sizing: border-box;
68
- }
69
-
70
- .ds-command-bar button {
71
- font: inherit;
72
- }
73
-
74
- .ds-command-bar svg {
75
- display: block;
76
- flex: 0 0 auto;
77
- }
78
-
79
- .ds-command-bar--desktop {
80
- border-radius: var(--command-radius-3xl);
81
- box-shadow: var(--command-shadow-surface);
82
- }
83
-
84
- .ds-command-bar--mobile {
85
- width: var(--command-width-mobile);
86
- height: var(--command-height-mobile);
87
- max-width: var(--command-width-mobile);
88
- border-radius: 0;
89
- box-shadow: none;
90
- }
91
-
92
- .ds-command-bar--desktop.ds-command-bar--default {
93
- height: var(--command-height-default);
94
- }
95
-
96
- .ds-command-bar--desktop.ds-command-bar--recent {
97
- height: var(--command-height-recent);
98
- }
99
-
100
- .ds-command-bar--desktop.ds-command-bar--results {
101
- height: var(--command-height-results);
102
- }
103
-
104
- .ds-command-bar--desktop.ds-command-bar--no-result {
105
- height: var(--command-height-empty);
106
- }
107
-
108
- .ds-command-bar--rtl {
109
- font-family: var(--bh-font-family);
110
- }
111
-
112
- .ds-command-bar__input-wrap {
113
- width: 100%;
114
- padding: var(--command-space-3xl) var(--command-space-3xl) 0;
115
- }
116
-
117
- .ds-command-bar__search {
118
- appearance: none;
119
- width: 100%;
120
- min-height: var(--command-height-default);
121
- border: 0;
122
- display: flex;
123
- align-items: center;
124
- justify-content: space-between;
125
- gap: var(--command-space-md);
126
- margin: 0;
127
- background: var(--command-bg-raised);
128
- color: var(--command-content-subtle);
129
- padding: var(--command-space-3xl) var(--command-space-4xl) var(--command-space-3xl) var(--command-space-3xl);
130
- text-align: start;
131
- }
132
-
133
- .ds-command-bar__search--default {
134
- cursor: pointer;
135
- }
136
-
137
- .ds-command-bar__search--divider {
138
- border-bottom: var(--bh-space-xxxs-1) solid var(--command-border-input);
139
- }
140
-
141
- .ds-command-bar--mobile .ds-command-bar__search {
142
- min-height: var(--command-search-mobile-height);
143
- border: var(--bh-space-xxxs-1) solid var(--command-border-input);
144
- border-radius: var(--command-radius-lg);
145
- background: var(--command-input-default);
146
- padding: var(--command-space-xl);
147
- }
148
-
149
- .ds-command-bar--desktop.ds-command-bar--rtl .ds-command-bar__search {
150
- padding-right: var(--command-space-3xl);
151
- padding-left: var(--command-space-4xl);
152
- }
153
-
154
- .ds-command-bar__search-content {
155
- display: flex;
156
- flex: 1 0 0;
157
- align-items: center;
158
- gap: var(--command-space-md);
159
- min-width: 0;
160
- }
161
-
162
- .ds-command-bar__placeholder,
163
- .ds-command-bar__search-text {
164
- display: block;
165
- flex: 1 0 0;
166
- min-width: 0;
167
- overflow: hidden;
168
- line-height: var(--bh-text-body-md-regular-line-height);
169
- text-align: start;
170
- text-overflow: ellipsis;
171
- white-space: nowrap;
172
- word-break: break-word;
173
- }
174
-
175
- .ds-command-bar__placeholder {
176
- color: var(--command-content-muted);
177
- }
178
-
179
- .ds-command-bar__search-text {
180
- color: var(--command-content-default);
181
- }
182
-
183
- .ds-command-bar__shortcut {
184
- height: var(--command-shortcut-height);
185
- min-width: var(--command-shortcut-min-width);
186
- border: var(--bh-space-xxxs-1) solid var(--command-border-default);
187
- border-radius: var(--command-radius-md);
188
- display: inline-flex;
189
- flex: 0 0 auto;
190
- align-items: center;
191
- justify-content: center;
192
- gap: var(--bh-space-xxs-2);
193
- background: var(--command-interactive-soft);
194
- color: var(--command-content-subtle);
195
- font-family: var(--bh-font-family);
196
- font-size: var(--bh-text-body-sm-medium-font-size);
197
- font-style: normal;
198
- font-weight: var(--bh-text-body-sm-medium-font-weight);
199
- line-height: 1;
200
- padding: 0 var(--command-space-sm);
201
- }
202
-
203
- .ds-command-bar__shortcut-icon {
204
- width: var(--command-shortcut-icon-size);
205
- height: var(--command-shortcut-icon-size);
206
- stroke-width: 1.8;
207
- }
208
-
209
- .ds-command-bar__shortcut-key {
210
- display: block;
211
- line-height: 1;
212
- }
213
-
214
- .ds-command-bar__close {
215
- appearance: none;
216
- width: var(--command-close-size);
217
- height: var(--command-close-size);
218
- border: 0;
219
- border-radius: var(--command-radius-full);
220
- display: inline-grid;
221
- flex: 0 0 auto;
222
- place-items: center;
223
- background: transparent;
224
- color: var(--command-content-subtle);
225
- cursor: pointer;
226
- padding: 0;
227
- }
228
-
229
- .ds-command-bar__close:focus-visible,
230
- .ds-command-bar__search:focus-visible,
231
- .ds-command-bar__item:focus-visible {
232
- outline: var(--bh-focus-ring-width) solid var(--bh-border-focus);
233
- outline-offset: var(--bh-space-xxs-2);
234
- }
235
-
236
- .ds-command-bar__content {
237
- width: 100%;
238
- overflow: hidden;
239
- padding-block: var(--command-space-3xl);
240
- }
241
-
242
- .ds-command-bar--desktop.ds-command-bar--recent .ds-command-bar__content {
243
- height: var(--command-content-height-recent);
244
- }
245
-
246
- .ds-command-bar--desktop.ds-command-bar--results .ds-command-bar__content {
247
- height: var(--command-content-height-results);
248
- }
249
-
250
- .ds-command-bar--mobile .ds-command-bar__content {
251
- flex: 1 1 auto;
252
- min-height: 0;
253
- padding-block: var(--command-space-3xl);
254
- }
255
-
256
- .ds-command-bar__main {
257
- display: flex;
258
- flex-direction: column;
259
- gap: var(--command-space-5xl);
260
- min-width: 0;
261
- }
262
-
263
- .ds-command-bar__section {
264
- display: flex;
265
- flex-direction: column;
266
- gap: var(--command-space-md);
267
- width: 100%;
268
- }
269
-
270
- .ds-command-bar__section-heading {
271
- display: flex;
272
- width: 100%;
273
- padding-inline: var(--command-space-4xl);
274
- }
275
-
276
- .ds-command-bar--mobile .ds-command-bar__section-heading {
277
- padding-inline: var(--command-space-3xl);
278
- }
279
-
280
- .ds-command-bar__section-heading span {
281
- flex: 1 0 0;
282
- min-width: 0;
283
- color: var(--command-content-subtle);
284
- line-height: var(--bh-text-body-md-regular-line-height);
285
- text-align: start;
286
- }
287
-
288
- .ds-command-bar__group {
289
- display: flex;
290
- flex-direction: column;
291
- width: 100%;
292
- padding-inline: var(--command-space-md);
293
- }
294
-
295
- .ds-command-bar--mobile .ds-command-bar__group {
296
- padding-inline: var(--command-space-xs);
297
- }
298
-
299
- .ds-command-bar__item {
300
- appearance: none;
301
- width: 100%;
302
- min-height: var(--command-item-height);
303
- border: 0;
304
- border-radius: var(--command-radius-lg);
305
- display: flex;
306
- align-items: center;
307
- gap: var(--command-space-xl);
308
- margin: 0;
309
- background: transparent;
310
- color: var(--command-content-default);
311
- cursor: pointer;
312
- padding: var(--command-space-xl);
313
- text-align: start;
314
- }
315
-
316
- .ds-command-bar__item.is-highlighted,
317
- .ds-command-bar__item:hover {
318
- background: var(--command-interactive-hover);
319
- }
320
-
321
- .ds-command-bar__icon-wrap,
322
- .ds-command-bar__avatar {
323
- width: var(--command-icon-size);
324
- height: var(--command-icon-size);
325
- border-radius: var(--command-radius-md);
326
- display: inline-grid;
327
- flex: 0 0 auto;
328
- place-items: center;
329
- }
330
-
331
- .ds-command-bar__icon-wrap {
332
- background: var(--command-bg-neutral-soft);
333
- color: var(--command-content-subtle);
334
- }
335
-
336
- .ds-command-bar__avatar {
337
- overflow: hidden;
338
- border: var(--bh-space-xxxs-1) solid var(--command-border-subtle);
339
- border-radius: var(--command-radius-full);
340
- background:
341
- radial-gradient(circle at 42% 34%, var(--bh-bg-accent-amber-soft) 0 10%, transparent 11%),
342
- radial-gradient(circle at 52% 42%, var(--bh-bg-accent-amber-default) 0 20%, transparent 21%),
343
- linear-gradient(135deg, var(--bh-bg-inverse), var(--bh-bg-brand-strong) 42%, var(--bh-bg-always-dark));
344
- }
345
-
346
- .ds-command-bar__item-copy {
347
- display: flex;
348
- flex: 1 0 0;
349
- flex-direction: column;
350
- min-width: 0;
351
- text-align: start;
352
- word-break: break-word;
353
- }
354
-
355
- .ds-command-bar__item-copy strong {
356
- width: 100%;
357
- overflow: hidden;
358
- color: var(--command-content-default);
359
- font-size: var(--bh-text-body-md-medium-font-size);
360
- font-weight: var(--bh-text-body-md-medium-font-weight);
361
- line-height: var(--bh-text-body-md-medium-line-height);
362
- text-overflow: ellipsis;
363
- white-space: nowrap;
364
- }
365
-
366
- .ds-command-bar__item-copy span {
367
- width: 100%;
368
- overflow: hidden;
369
- color: var(--command-content-subtle);
370
- font-size: var(--bh-text-body-2xs-regular-font-size);
371
- font-weight: var(--bh-text-body-2xs-regular-font-weight);
372
- line-height: var(--bh-text-body-2xs-regular-line-height);
373
- text-overflow: ellipsis;
374
- white-space: nowrap;
375
- }
376
-
377
- .ds-command-bar__filter {
378
- display: flex;
379
- flex-direction: column;
380
- gap: var(--command-space-3xl);
381
- width: 100%;
382
- padding-inline: var(--command-space-4xl);
383
- }
384
-
385
- .ds-command-bar--mobile .ds-command-bar__filter {
386
- padding-inline: var(--command-space-3xl);
387
- }
388
-
389
- .ds-command-bar__filter .ds-command-bar__section-heading {
390
- padding-inline: 0;
391
- }
392
-
393
- .ds-command-bar__tags {
394
- display: flex;
395
- gap: var(--command-space-md);
396
- max-width: 100%;
397
- overflow: hidden;
398
- }
399
-
400
- .ds-command-bar__tag {
401
- flex: 0 0 auto;
402
- white-space: nowrap;
403
- }
404
-
405
- .ds-command-bar__empty {
406
- width: 100%;
407
- display: grid;
408
- flex: 1 1 auto;
409
- place-items: center;
410
- padding: var(--command-space-10xl) var(--command-space-4xl);
411
- }
412
-
413
- .ds-command-bar--mobile .ds-command-bar__empty {
414
- align-items: start;
415
- padding-top: var(--command-empty-mobile-padding);
416
- }
417
-
418
- .ds-command-bar__empty-wrap {
419
- display: grid;
420
- place-items: center;
421
- gap: var(--command-space-xs);
422
- text-align: center;
423
- }
424
-
425
- .ds-command-bar__empty-icon {
426
- width: var(--bh-space-7xl-40);
427
- height: var(--bh-space-7xl-40);
428
- border: var(--bh-space-xxxs-1) solid var(--command-border-subtle);
429
- border-radius: var(--command-radius-full);
430
- display: grid;
431
- place-items: center;
432
- background: var(--command-bg-neutral-subtle);
433
- color: var(--command-content-default);
434
- }
435
-
436
- .ds-command-bar__empty-wrap strong {
437
- color: var(--command-content-default);
438
- font-size: var(--bh-text-body-lg-medium-font-size);
439
- font-weight: var(--bh-text-body-lg-medium-font-weight);
440
- line-height: var(--bh-text-body-lg-medium-line-height);
441
- }
442
-
443
- .ds-command-bar__empty-wrap span:last-child {
444
- color: var(--command-content-subtle);
445
- font-size: var(--bh-text-body-md-regular-font-size);
446
- line-height: var(--bh-text-body-md-regular-line-height);
447
- }
448
-
449
- .ds-command-bar__footer {
450
- width: 100%;
451
- border-top: var(--bh-space-xxxs-1) solid var(--command-border-subtle);
452
- display: flex;
453
- align-items: center;
454
- background: var(--command-bg-raised);
455
- color: var(--command-content-subtle);
456
- padding: var(--command-space-xl);
457
- }
458
-
459
- .ds-command-bar__footer-content {
460
- display: flex;
461
- align-items: center;
462
- gap: var(--command-space-3xl);
463
- }
464
-
465
- .ds-command-bar__footer-hint {
466
- display: inline-flex;
467
- align-items: center;
468
- gap: var(--command-space-xs);
469
- white-space: nowrap;
470
- }