torch-glare 2.5.5 → 2.6.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 (359) hide show
  1. package/README.md +4 -3
  2. package/dist/bin/index.js +9 -24
  3. package/dist/bin/index.js.map +1 -1
  4. package/dist/src/commands/add.d.ts +2 -2
  5. package/dist/src/commands/add.d.ts.map +1 -1
  6. package/dist/src/commands/add.js +4 -70
  7. package/dist/src/commands/add.js.map +1 -1
  8. package/dist/src/commands/hook.d.ts +5 -4
  9. package/dist/src/commands/hook.d.ts.map +1 -1
  10. package/dist/src/commands/hook.js +7 -75
  11. package/dist/src/commands/hook.js.map +1 -1
  12. package/dist/src/commands/init.js +1 -1
  13. package/dist/src/commands/init.js.map +1 -1
  14. package/dist/src/commands/layout.d.ts +5 -4
  15. package/dist/src/commands/layout.d.ts.map +1 -1
  16. package/dist/src/commands/layout.js +7 -75
  17. package/dist/src/commands/layout.js.map +1 -1
  18. package/dist/src/commands/provider.d.ts +5 -4
  19. package/dist/src/commands/provider.d.ts.map +1 -1
  20. package/dist/src/commands/provider.js +7 -75
  21. package/dist/src/commands/provider.js.map +1 -1
  22. package/dist/src/commands/update.d.ts.map +1 -1
  23. package/dist/src/commands/update.js +78 -43
  24. package/dist/src/commands/update.js.map +1 -1
  25. package/dist/src/commands/utils.d.ts +5 -4
  26. package/dist/src/commands/utils.d.ts.map +1 -1
  27. package/dist/src/commands/utils.js +7 -80
  28. package/dist/src/commands/utils.js.map +1 -1
  29. package/dist/src/shared/addFromRegistry.d.ts +16 -0
  30. package/dist/src/shared/addFromRegistry.d.ts.map +1 -0
  31. package/dist/src/shared/addFromRegistry.js +88 -0
  32. package/dist/src/shared/addFromRegistry.js.map +1 -0
  33. package/dist/src/shared/getInstallCommand.d.ts.map +1 -1
  34. package/dist/src/shared/getInstallCommand.js +5 -0
  35. package/dist/src/shared/getInstallCommand.js.map +1 -1
  36. package/dist/src/shared/installDependencies.d.ts +0 -10
  37. package/dist/src/shared/installDependencies.d.ts.map +1 -1
  38. package/dist/src/shared/installDependencies.js +0 -17
  39. package/dist/src/shared/installDependencies.js.map +1 -1
  40. package/dist/src/shared/installFromPlan.d.ts +7 -5
  41. package/dist/src/shared/installFromPlan.d.ts.map +1 -1
  42. package/dist/src/shared/installFromPlan.js +103 -36
  43. package/dist/src/shared/installFromPlan.js.map +1 -1
  44. package/dist/src/shared/loadRegistry.d.ts +12 -3
  45. package/dist/src/shared/loadRegistry.d.ts.map +1 -1
  46. package/dist/src/shared/loadRegistry.js +19 -20
  47. package/dist/src/shared/loadRegistry.js.map +1 -1
  48. package/dist/src/shared/registryClient.d.ts +19 -0
  49. package/dist/src/shared/registryClient.d.ts.map +1 -0
  50. package/dist/src/shared/registryClient.js +128 -0
  51. package/dist/src/shared/registryClient.js.map +1 -0
  52. package/dist/src/shared/resolveEntry.d.ts +10 -7
  53. package/dist/src/shared/resolveEntry.d.ts.map +1 -1
  54. package/dist/src/shared/resolveEntry.js +18 -13
  55. package/dist/src/shared/resolveEntry.js.map +1 -1
  56. package/dist/src/shared/suggestOtherCommand.d.ts +7 -1
  57. package/dist/src/shared/suggestOtherCommand.d.ts.map +1 -1
  58. package/dist/src/shared/suggestOtherCommand.js +29 -23
  59. package/dist/src/shared/suggestOtherCommand.js.map +1 -1
  60. package/dist/src/types/main.d.ts +31 -2
  61. package/dist/src/types/main.d.ts.map +1 -1
  62. package/package.json +6 -11
  63. package/apps/lib/components/ActionButton.tsx +0 -93
  64. package/apps/lib/components/ActionsGroup.tsx +0 -27
  65. package/apps/lib/components/AlertDialog.tsx +0 -204
  66. package/apps/lib/components/Avatar.tsx +0 -46
  67. package/apps/lib/components/Badge.tsx +0 -250
  68. package/apps/lib/components/BadgeField.tsx +0 -338
  69. package/apps/lib/components/Breadcrumb.tsx +0 -280
  70. package/apps/lib/components/Button.tsx +0 -317
  71. package/apps/lib/components/ButtonGroup.tsx +0 -190
  72. package/apps/lib/components/Calendar.tsx +0 -115
  73. package/apps/lib/components/Card.tsx +0 -95
  74. package/apps/lib/components/Checkbox.tsx +0 -42
  75. package/apps/lib/components/ColorPicker.tsx +0 -441
  76. package/apps/lib/components/ConclusionHeader.tsx +0 -148
  77. package/apps/lib/components/ContextMenu.tsx +0 -571
  78. package/apps/lib/components/CountBadge.tsx +0 -52
  79. package/apps/lib/components/DataTable.tsx +0 -213
  80. package/apps/lib/components/DataViews/badge.ts +0 -49
  81. package/apps/lib/components/DataViews/cell.tsx +0 -324
  82. package/apps/lib/components/DataViews/context.ts +0 -144
  83. package/apps/lib/components/DataViews/data-views.tsx +0 -383
  84. package/apps/lib/components/DataViews/filters/children.tsx +0 -98
  85. package/apps/lib/components/DataViews/filters/custom.tsx +0 -34
  86. package/apps/lib/components/DataViews/filters/filters.tsx +0 -157
  87. package/apps/lib/components/DataViews/filters/index.ts +0 -4
  88. package/apps/lib/components/DataViews/filters/labelled.tsx +0 -20
  89. package/apps/lib/components/DataViews/filters/presets.tsx +0 -65
  90. package/apps/lib/components/DataViews/filters/sync.tsx +0 -35
  91. package/apps/lib/components/DataViews/filters/values.ts +0 -173
  92. package/apps/lib/components/DataViews/header.tsx +0 -220
  93. package/apps/lib/components/DataViews/hooks/index.ts +0 -5
  94. package/apps/lib/components/DataViews/hooks/useActiveRow.ts +0 -22
  95. package/apps/lib/components/DataViews/hooks/useControllable.ts +0 -52
  96. package/apps/lib/components/DataViews/index.ts +0 -84
  97. package/apps/lib/components/DataViews/panel/columns.tsx +0 -153
  98. package/apps/lib/components/DataViews/panel/controls.tsx +0 -106
  99. package/apps/lib/components/DataViews/panel/index.ts +0 -3
  100. package/apps/lib/components/DataViews/panel/panel.tsx +0 -164
  101. package/apps/lib/components/DataViews/panel/saved-views.tsx +0 -67
  102. package/apps/lib/components/DataViews/panel/section.tsx +0 -81
  103. package/apps/lib/components/DataViews/panel/sort.tsx +0 -42
  104. package/apps/lib/components/DataViews/panel/tab.tsx +0 -31
  105. package/apps/lib/components/DataViews/slots.ts +0 -63
  106. package/apps/lib/components/DataViews/states.tsx +0 -38
  107. package/apps/lib/components/DataViews/types.ts +0 -510
  108. package/apps/lib/components/DataViews/views/board-view.tsx +0 -381
  109. package/apps/lib/components/DataViews/views/card-rows.tsx +0 -36
  110. package/apps/lib/components/DataViews/views/inbox-view.tsx +0 -260
  111. package/apps/lib/components/DataViews/views/pane-views.tsx +0 -196
  112. package/apps/lib/components/DataViews/views/table-view.tsx +0 -493
  113. package/apps/lib/components/DataViews/views/tree-view.tsx +0 -367
  114. package/apps/lib/components/DatePicker.tsx +0 -232
  115. package/apps/lib/components/Dialog.tsx +0 -116
  116. package/apps/lib/components/Divider.tsx +0 -28
  117. package/apps/lib/components/Drawer.tsx +0 -420
  118. package/apps/lib/components/DropdownMenu.tsx +0 -540
  119. package/apps/lib/components/FieldHint.tsx +0 -69
  120. package/apps/lib/components/Form.tsx +0 -182
  121. package/apps/lib/components/FormBuilder/context.ts +0 -73
  122. package/apps/lib/components/FormBuilder/field-kind.ts +0 -28
  123. package/apps/lib/components/FormBuilder/fields/ChoiceFields.tsx +0 -60
  124. package/apps/lib/components/FormBuilder/fields/ColorField.tsx +0 -59
  125. package/apps/lib/components/FormBuilder/fields/CustomField.tsx +0 -11
  126. package/apps/lib/components/FormBuilder/fields/DateField.tsx +0 -32
  127. package/apps/lib/components/FormBuilder/fields/FieldArray.tsx +0 -74
  128. package/apps/lib/components/FormBuilder/fields/FieldShell.tsx +0 -163
  129. package/apps/lib/components/FormBuilder/fields/FileField.tsx +0 -39
  130. package/apps/lib/components/FormBuilder/fields/OptionListFields.tsx +0 -132
  131. package/apps/lib/components/FormBuilder/fields/OtpField.tsx +0 -31
  132. package/apps/lib/components/FormBuilder/fields/PhoneField.tsx +0 -109
  133. package/apps/lib/components/FormBuilder/fields/RichTextEditorField.tsx +0 -31
  134. package/apps/lib/components/FormBuilder/fields/SelectField.tsx +0 -91
  135. package/apps/lib/components/FormBuilder/fields/SignatureField.tsx +0 -157
  136. package/apps/lib/components/FormBuilder/fields/SliderField.tsx +0 -67
  137. package/apps/lib/components/FormBuilder/fields/SwitchBoxField.tsx +0 -41
  138. package/apps/lib/components/FormBuilder/fields/TableField.tsx +0 -336
  139. package/apps/lib/components/FormBuilder/fields/TextField.tsx +0 -213
  140. package/apps/lib/components/FormBuilder/fields/TreeSelectField.tsx +0 -43
  141. package/apps/lib/components/FormBuilder/fields/countries.ts +0 -303
  142. package/apps/lib/components/FormBuilder/fields/index.ts +0 -25
  143. package/apps/lib/components/FormBuilder/form-builder.tsx +0 -198
  144. package/apps/lib/components/FormBuilder/index.ts +0 -31
  145. package/apps/lib/components/FormBuilder/numberFormat.ts +0 -16
  146. package/apps/lib/components/FormBuilder/submit.tsx +0 -47
  147. package/apps/lib/components/FormBuilder/types.ts +0 -311
  148. package/apps/lib/components/FormRenderer/FormDrawer.tsx +0 -128
  149. package/apps/lib/components/FormRenderer/detail.tsx +0 -207
  150. package/apps/lib/components/FormRenderer/form-renderer.tsx +0 -297
  151. package/apps/lib/components/FormRenderer/header.tsx +0 -88
  152. package/apps/lib/components/FormRenderer/index.ts +0 -15
  153. package/apps/lib/components/FormRenderer/section.tsx +0 -39
  154. package/apps/lib/components/FormRenderer/stepper.tsx +0 -339
  155. package/apps/lib/components/FormRenderer/types.ts +0 -78
  156. package/apps/lib/components/FormSummary.tsx +0 -282
  157. package/apps/lib/components/HeaderBar.tsx +0 -117
  158. package/apps/lib/components/ImageAttachment.tsx +0 -209
  159. package/apps/lib/components/InnerLabelField.tsx +0 -154
  160. package/apps/lib/components/Input.tsx +0 -224
  161. package/apps/lib/components/InputField.tsx +0 -147
  162. package/apps/lib/components/InputOTP.tsx +0 -84
  163. package/apps/lib/components/Label.tsx +0 -129
  164. package/apps/lib/components/LabelField.tsx +0 -76
  165. package/apps/lib/components/LabeledCheckBox.tsx +0 -51
  166. package/apps/lib/components/LabeledRadio.tsx +0 -51
  167. package/apps/lib/components/LinkButton.tsx +0 -94
  168. package/apps/lib/components/LoginButton.tsx +0 -51
  169. package/apps/lib/components/PasswordLevel.tsx +0 -58
  170. package/apps/lib/components/Popover.tsx +0 -312
  171. package/apps/lib/components/ProfileMenu.tsx +0 -85
  172. package/apps/lib/components/Radio.tsx +0 -59
  173. package/apps/lib/components/RadioCard.tsx +0 -50
  174. package/apps/lib/components/ScrollArea.tsx +0 -54
  175. package/apps/lib/components/SearchField.tsx +0 -62
  176. package/apps/lib/components/SearchableSelect.tsx +0 -318
  177. package/apps/lib/components/SearchableTable.tsx +0 -344
  178. package/apps/lib/components/SearchableTree.tsx +0 -485
  179. package/apps/lib/components/SearchableTreeDialog.tsx +0 -502
  180. package/apps/lib/components/SectionBlock.tsx +0 -147
  181. package/apps/lib/components/Select.tsx +0 -347
  182. package/apps/lib/components/SimpleSelect.tsx +0 -225
  183. package/apps/lib/components/Skeleton.tsx +0 -12
  184. package/apps/lib/components/SlideDatePicker.tsx +0 -253
  185. package/apps/lib/components/SpinLoading.tsx +0 -174
  186. package/apps/lib/components/Stepper.tsx +0 -480
  187. package/apps/lib/components/Switch.tsx +0 -82
  188. package/apps/lib/components/TabFormItem.tsx +0 -153
  189. package/apps/lib/components/TabSwitch.tsx +0 -172
  190. package/apps/lib/components/Table.tsx +0 -610
  191. package/apps/lib/components/TextEditor/ChartBlockTool.ts +0 -676
  192. package/apps/lib/components/TextEditor/RichTextField.tsx +0 -46
  193. package/apps/lib/components/TextEditor/TableDnDWrapper.ts +0 -462
  194. package/apps/lib/components/TextEditor/TextEditor.tsx +0 -1164
  195. package/apps/lib/components/TextEditor/TextEditorToolbar.tsx +0 -429
  196. package/apps/lib/components/TextEditor/editor-tools/AlignmentTune.ts +0 -70
  197. package/apps/lib/components/TextEditor/editor-tools/ColorInlineTool.ts +0 -50
  198. package/apps/lib/components/TextEditor/editor-tools/StrikethroughInlineTool.ts +0 -48
  199. package/apps/lib/components/TextEditor/editor-tools/inlineFormat.ts +0 -98
  200. package/apps/lib/components/TextEditor/editorjs.d.ts +0 -60
  201. package/apps/lib/components/TextEditor/index.ts +0 -7
  202. package/apps/lib/components/TextEditor/markdownParser.ts +0 -346
  203. package/apps/lib/components/Textarea.tsx +0 -117
  204. package/apps/lib/components/Timeline.tsx +0 -263
  205. package/apps/lib/components/Toast.tsx +0 -87
  206. package/apps/lib/components/Toggle.tsx +0 -125
  207. package/apps/lib/components/ToggleButton.tsx +0 -140
  208. package/apps/lib/components/Tooltip.tsx +0 -116
  209. package/apps/lib/components/TransparentLabel.tsx +0 -71
  210. package/apps/lib/components/TreeDropDown.tsx +0 -115
  211. package/apps/lib/components/TreeFolder/TreeFolder.tsx +0 -380
  212. package/apps/lib/components/TreeFolder/TreeFolderBreadcrumb.tsx +0 -75
  213. package/apps/lib/components/TreeFolder/TreeFolderRow.tsx +0 -354
  214. package/apps/lib/components/TreeFolder/TreeFolderStyles.tsx +0 -60
  215. package/apps/lib/components/TreeFolder/icons.tsx +0 -60
  216. package/apps/lib/components/TreeFolder/index.ts +0 -24
  217. package/apps/lib/components/TreeFolder/treeFolderUtils.ts +0 -109
  218. package/apps/lib/components/TreeFolder/types.ts +0 -77
  219. package/apps/lib/components/TreeFolder/useTreeFolderDnD.ts +0 -118
  220. package/apps/lib/hooks/useActiveTreeItem.ts +0 -58
  221. package/apps/lib/hooks/useClickOutside.ts +0 -27
  222. package/apps/lib/hooks/useDragDrop.tsx +0 -365
  223. package/apps/lib/hooks/useInfiniteScroll.ts +0 -108
  224. package/apps/lib/hooks/useIsMobile.ts +0 -21
  225. package/apps/lib/hooks/useResize.ts +0 -67
  226. package/apps/lib/hooks/useTagSelection.ts +0 -214
  227. package/apps/lib/layouts/CNLayout.tsx +0 -372
  228. package/apps/lib/layouts/DataViewCard.tsx +0 -62
  229. package/apps/lib/layouts/FieldSection.tsx +0 -91
  230. package/apps/lib/layouts/TreeSubLayout.tsx +0 -173
  231. package/apps/lib/providers/ThemeProvider.tsx +0 -84
  232. package/apps/lib/registry.json +0 -1201
  233. package/apps/lib/tsconfig.json +0 -9
  234. package/apps/lib/tsconfig.tsbuildinfo +0 -1
  235. package/apps/lib/utils/cn.ts +0 -6
  236. package/apps/lib/utils/color.ts +0 -175
  237. package/apps/lib/utils/dataViews/path.ts +0 -67
  238. package/apps/lib/utils/dataViews/query.ts +0 -73
  239. package/apps/lib/utils/dataViews/types.ts +0 -187
  240. package/apps/lib/utils/dateFormat.ts +0 -108
  241. package/apps/lib/utils/resize.ts +0 -31
  242. package/apps/lib/utils/types.ts +0 -16
  243. package/docs/BLOCKS.md +0 -129
  244. package/docs/CHANGELOG-1.1.16.md +0 -108
  245. package/docs/Cover.png +0 -0
  246. package/docs/README.md +0 -215
  247. package/docs/components/action-button.md +0 -638
  248. package/docs/components/actions-group.md +0 -708
  249. package/docs/components/alert-dialog.md +0 -920
  250. package/docs/components/avatar.md +0 -709
  251. package/docs/components/badge-field.md +0 -712
  252. package/docs/components/badge.md +0 -301
  253. package/docs/components/breadcrumb.md +0 -930
  254. package/docs/components/button-group.md +0 -650
  255. package/docs/components/button.md +0 -639
  256. package/docs/components/calendar.md +0 -555
  257. package/docs/components/card.md +0 -622
  258. package/docs/components/chart-block-tool.md +0 -129
  259. package/docs/components/checkbox.md +0 -699
  260. package/docs/components/cn-layout.md +0 -854
  261. package/docs/components/color-picker.md +0 -101
  262. package/docs/components/conclusion-header.md +0 -80
  263. package/docs/components/context-menu.md +0 -483
  264. package/docs/components/count-badge.md +0 -560
  265. package/docs/components/data-table.md +0 -854
  266. package/docs/components/data-views/backend-response.md +0 -324
  267. package/docs/components/data-views/examples/a11y-rtl.md +0 -250
  268. package/docs/components/data-views/examples/api-orders-route.md +0 -130
  269. package/docs/components/data-views/examples/fields.md +0 -362
  270. package/docs/components/data-views/examples/filters.md +0 -307
  271. package/docs/components/data-views/examples/inbox-routing.md +0 -218
  272. package/docs/components/data-views/examples/index.md +0 -29
  273. package/docs/components/data-views/examples/overview.md +0 -244
  274. package/docs/components/data-views/examples/panel.md +0 -212
  275. package/docs/components/data-views/examples/scale.md +0 -231
  276. package/docs/components/data-views/examples/server-side.md +0 -210
  277. package/docs/components/data-views/examples/state.md +0 -250
  278. package/docs/components/data-views/examples/tree-custom.md +0 -388
  279. package/docs/components/data-views/examples/view-registry.md +0 -313
  280. package/docs/components/data-views/examples/views.md +0 -534
  281. package/docs/components/data-views/guide.md +0 -405
  282. package/docs/components/data-views/index.md +0 -1495
  283. package/docs/components/data-views/migration.md +0 -79
  284. package/docs/components/date-picker.md +0 -857
  285. package/docs/components/dialog.md +0 -929
  286. package/docs/components/divider.md +0 -766
  287. package/docs/components/drawer.md +0 -654
  288. package/docs/components/dropdown-menu.md +0 -668
  289. package/docs/components/field-hint.md +0 -898
  290. package/docs/components/field-section.md +0 -781
  291. package/docs/components/form-builder.md +0 -276
  292. package/docs/components/form-renderer.md +0 -326
  293. package/docs/components/form-summary.md +0 -138
  294. package/docs/components/form.md +0 -785
  295. package/docs/components/header-bar.md +0 -188
  296. package/docs/components/image-attachment.md +0 -906
  297. package/docs/components/inner-label-field.md +0 -819
  298. package/docs/components/input-field.md +0 -623
  299. package/docs/components/input-otp.md +0 -756
  300. package/docs/components/input.md +0 -634
  301. package/docs/components/label-field.md +0 -770
  302. package/docs/components/label.md +0 -761
  303. package/docs/components/labeled-check-box.md +0 -642
  304. package/docs/components/labeled-radio.md +0 -796
  305. package/docs/components/link-button.md +0 -685
  306. package/docs/components/login-button.md +0 -872
  307. package/docs/components/password-level.md +0 -803
  308. package/docs/components/popover.md +0 -649
  309. package/docs/components/profile-menu.md +0 -656
  310. package/docs/components/radio-card.md +0 -801
  311. package/docs/components/radio.md +0 -735
  312. package/docs/components/scroll-area.md +0 -691
  313. package/docs/components/search-field.md +0 -702
  314. package/docs/components/searchable-select.md +0 -368
  315. package/docs/components/searchable-table.md +0 -438
  316. package/docs/components/searchable-tree-dialog.md +0 -190
  317. package/docs/components/searchable-tree.md +0 -200
  318. package/docs/components/section-block.md +0 -477
  319. package/docs/components/select.md +0 -709
  320. package/docs/components/simple-select.md +0 -741
  321. package/docs/components/skeleton.md +0 -706
  322. package/docs/components/slide-date-picker.md +0 -837
  323. package/docs/components/spin-loading.md +0 -696
  324. package/docs/components/stepper.md +0 -316
  325. package/docs/components/switch.md +0 -770
  326. package/docs/components/tab-form-item.md +0 -773
  327. package/docs/components/tab-switch.md +0 -170
  328. package/docs/components/table-dnd-wrapper.md +0 -107
  329. package/docs/components/table.md +0 -1088
  330. package/docs/components/text-editor.md +0 -735
  331. package/docs/components/textarea.md +0 -681
  332. package/docs/components/timeline.md +0 -254
  333. package/docs/components/toast.md +0 -773
  334. package/docs/components/toggle-button.md +0 -643
  335. package/docs/components/toggle.md +0 -882
  336. package/docs/components/tooltip.md +0 -513
  337. package/docs/components/transparent-label.md +0 -721
  338. package/docs/components/tree-drop-down.md +0 -740
  339. package/docs/components/tree-folder.md +0 -110
  340. package/docs/components/tree-sub-layout.md +0 -707
  341. package/docs/explanation/architecture.md +0 -54
  342. package/docs/explanation/design-system.md +0 -52
  343. package/docs/how-to/form-and-list-recipes.md +0 -386
  344. package/docs/how-to/forms-with-form-builder.md +0 -472
  345. package/docs/how-to/guides.md +0 -1027
  346. package/docs/migration/changelog.md +0 -54
  347. package/docs/migration/form-builder-2.5.2.md +0 -113
  348. package/docs/reference/cli.md +0 -112
  349. package/docs/reference/components.md +0 -572
  350. package/docs/reference/hooks.md +0 -1500
  351. package/docs/reference/providers.md +0 -866
  352. package/docs/reference/tailwind-plugins.md +0 -942
  353. package/docs/reference/theme.md +0 -85
  354. package/docs/reference/types.md +0 -1016
  355. package/docs/reference/utilities.md +0 -704
  356. package/docs/tutorials/building-first-form.md +0 -846
  357. package/docs/tutorials/component-composition.md +0 -882
  358. package/docs/tutorials/getting-started.md +0 -302
  359. package/docs/tutorials/theming-basics.md +0 -785
@@ -1,372 +0,0 @@
1
- import React, { HTMLAttributes, ReactNode, ButtonHTMLAttributes } from "react";
2
- import { cn } from "../utils/cn";
3
- import { Themes } from "../utils/types";
4
- import { cva, VariantProps } from "class-variance-authority";
5
- import { Slot } from "@radix-ui/react-slot";
6
- import Counter from "../components/CountBadge";
7
- import { Tooltip } from "../components/Tooltip";
8
-
9
- interface LayoutProps extends HTMLAttributes<HTMLDivElement> {}
10
- function Layout({ ...props }: LayoutProps) {
11
- return (
12
- <div
13
- {...props}
14
- className="flex h-[100dvh] flex-1 lg:gap-[10px] bg-background-system-body-base lg:p-[16px]"
15
- >
16
- {props.children}
17
- </div>
18
- );
19
- }
20
-
21
- interface ContentProps extends HTMLAttributes<HTMLDivElement> {}
22
- function Body({ ...props }: ContentProps) {
23
- return (
24
- <main {...props} className={cn("flex flex-grow flex-1 overflow-y-auto", props.className)}>
25
- <div className="flex lg:rounded-[12px] bg-background-system-body-tertiary shadow-[0px_0px_18px_0px_rgba(0,0,0,0.75)] flex-1 flex-grow lg:p-1">
26
- <div className="relative lg:rounded-lg flex-1 flex-grow overflow-scroll scrollbar-hide lg:p-[2px] lg:bg-[linear-gradient(143deg,var(--blue-sparkle-600)_0px,rgba(44,45,46,1)_55px)]">
27
- <div
28
- className="absolute top-[2px] w-[170px] rounded-t-[6px] z-10 lg:h-[60px]
29
- left-[2px] ltr:lg:bg-[linear-gradient(132deg,#0D0F4E_0%,#000_50%)]
30
- rtl:right-[2px] rtl:left-[unset] rtl:lg:bg-[linear-gradient(-132deg,#0D0F4E_0%,#000_50%)]"
31
- ></div>
32
- {props.children}
33
- </div>
34
- </div>
35
- </main>
36
- );
37
- }
38
-
39
- interface SideBarProps extends HTMLAttributes<HTMLDivElement> {
40
- iconButtons?: ReactNode;
41
- headerChild?: ReactNode;
42
- navigationChildren?: ReactNode;
43
- footerChildren?: ReactNode;
44
- children?: ReactNode;
45
- }
46
- function SideBar({
47
- children,
48
- footerChildren,
49
- headerChild,
50
- navigationChildren,
51
- iconButtons,
52
- ...props
53
- }: SideBarProps) {
54
- return (
55
- <aside
56
- {...props}
57
- className={cn(
58
- "hidden w-[265px] p-1 flex-shrink-0 items-start rounded-xl bg-background-system-body-tertiary shadow-[0px_0px_18px_0px_rgba(0,0,0,0.75)] h-full lg:flex",
59
- props.className,
60
- )}
61
- >
62
- <div
63
- className={cn(
64
- "grid grid-rows-[56px_1fr] w-full rounded-lg border border-border-system-global-primary h-full gap-[1px]",
65
- {
66
- flex: children,
67
- },
68
- )}
69
- >
70
- {children ? (
71
- children
72
- ) : (
73
- <>
74
- <div className="bg-background-system-body-base w-full h-full rounded-t-lg flex justify-center items-center">
75
- {headerChild}
76
- </div>
77
-
78
- <div className="grid grid-cols-[46px_1fr] gap-[1px] w-full h-full rounded-b-lg overflow-hidden">
79
- {/* Icon Buttons Section */}
80
- <div className="scrollbar-hide overflow-scroll flex flex-col justify-start items-center gap-[3px] w-[46px] h-full bg-background-system-body-base rounded-bl-lg rtl:rounded-br-lg rtl:rounded-bl-none">
81
- {iconButtons}
82
- </div>
83
-
84
- {/* Navigation Section */}
85
- <div className="scrollbar-hide h-full gap-[1px] overflow-scroll grid grid-rows-[1fr_auto] grid-cols-1 rounded-br-lg rtl:rounded-bl-lg rtl:rounded-br-none">
86
- <div className="flex flex-col h-full overflow-scroll scrollbar-hide">
87
- <div className="flex flex-col gap-[1px] overflow-scroll scrollbar-hide">
88
- {Array.isArray(navigationChildren)
89
- ? navigationChildren.map((child, index) => (
90
- <SideBarChildContainer key={index}>{child}</SideBarChildContainer>
91
- ))
92
- : navigationChildren}
93
- </div>
94
- <SideBarChildContainer className="flex-1" />
95
- </div>
96
-
97
- <SideBarChildContainer className="p-1 pt-[8px]">
98
- {footerChildren}
99
- </SideBarChildContainer>
100
- </div>
101
- </div>
102
- </>
103
- )}
104
- </div>
105
- </aside>
106
- );
107
- }
108
-
109
- interface ChildProps extends HTMLAttributes<HTMLDivElement> {
110
- theme?: Themes;
111
- }
112
-
113
- const SideBarChildContainer = ({ theme, ...props }: ChildProps) => {
114
- return (
115
- <div
116
- {...props}
117
- data-theme={theme}
118
- className={cn("w-full py-2 bg-background-system-body-base pr-2", props.className)}
119
- >
120
- {props.children}
121
- </div>
122
- );
123
- };
124
-
125
- const SideBarItemStyles = cva(
126
- [
127
- "h-[40px] w-full px-[8px] flex gap-[6px] typography-body-small-medium justify-start items-center",
128
- "text-content-system-global-primary border-l-[2px] rtl:border-r-[2px] border-transparent outline-none",
129
- "hover:bg-white-alpha-075 hover:border-black-300 hover:text-content-system-action-primary-hover hover:px-[14px]",
130
- "rounded-r-[4px] text-start whitespace-nowrap transition-all duration-150 ease-in-out cursor-pointer",
131
- ],
132
- {
133
- variants: {
134
- disabled: {
135
- true: "text-content-system-global-disabled bg-transparent hover:bg-transparent fucus:bg-transparent active:bg-transparent",
136
- },
137
- active: {
138
- true: "hover:px-[8px] !px-[8px]",
139
- },
140
- iconOnly: {
141
- true: "w-[40px] justify-center overflow-hidden",
142
- },
143
- variant: {
144
- default: [
145
- "fucus:bg-background-system-action-primary-hover fucus:border-border-system-action-primary-hover",
146
- ],
147
- secondary: [
148
- "focus:bg-wavy-navy-1000 focus:border-border-system-action-field-hover-selected",
149
- ],
150
- },
151
- },
152
- compoundVariants: [
153
- {
154
- active: true,
155
- variant: "default",
156
- className: [
157
- "bg-background-system-action-primary-hover border-border-system-action-primary-hover !px-[8px] hover:px-[8px]",
158
- ],
159
- },
160
- {
161
- active: true,
162
- variant: "secondary",
163
- className: [
164
- "bg-wavy-navy-1000 border-border-system-action-field-hover-selected !px-[8px] hover:px-[8px]",
165
- ],
166
- },
167
- {
168
- disabled: true,
169
- variant: "secondary",
170
- className: [
171
- "bg-transparent hover:bg-transparent focus:bg-transparent active:bg-transparent hover:p-[8px] hover:text-content-system-global-disabled",
172
- ],
173
- },
174
- {
175
- disabled: true,
176
- variant: "default",
177
- className: [
178
- "bg-transparent hover:bg-transparent focus:bg-transparent active:bg-transparent hover:p-[8px] hover:text-content-system-global-disabled",
179
- ],
180
- },
181
- ],
182
- defaultVariants: {
183
- variant: "default",
184
- },
185
- },
186
- );
187
-
188
- interface Props
189
- extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof SideBarItemStyles> {
190
- asChild?: boolean;
191
- as?: React.ElementType;
192
- theme?: Themes;
193
- variant?: "default" | "secondary";
194
- iconOnly?: boolean;
195
- active?: boolean;
196
- disabled?: boolean;
197
- }
198
- const SideBarItem = ({
199
- active,
200
- disabled,
201
- iconOnly,
202
- asChild,
203
- as: Tag = "span",
204
- theme,
205
- className,
206
- variant,
207
- ...props
208
- }: Props) => {
209
- const Component = asChild ? Slot : Tag;
210
-
211
- return (
212
- <Component
213
- {...props}
214
- data-theme={theme}
215
- disabled={disabled}
216
- className={cn(SideBarItemStyles({ variant, iconOnly, active, disabled }), className)}
217
- ></Component>
218
- );
219
- };
220
-
221
- const SideBarIconButtonStyles = cva(
222
- [
223
- "h-[36px] w-[36px] flex text-content-system-global-primary text-[20px] justify-center items-center rounded-[8px] border border-transparent outline-none",
224
- "fucus:bg-border-system-action-primary-Hover active:bg-border-system-action-primary-Hover",
225
- "transition-all duration-200 ease-in-out flex-shrink-0 m-[5px] relative cursor-pointer",
226
- ],
227
- {
228
- variants: {
229
- active: {
230
- true: "",
231
- },
232
- variant: {
233
- default: [
234
- "hover:bg-background-system-action-secondary-hover hover:border-border-system-action-primary-hover",
235
- ],
236
- secondary: [
237
- "hover:bg-wavy-navy-1000 hover:border-border-system-action-field-hover-selected",
238
- ],
239
- },
240
- },
241
- compoundVariants: [
242
- {
243
- active: true,
244
- variant: "default",
245
- className: [
246
- "bg-background-system-action-secondary-hover border-border-system-action-primary-hover",
247
- ],
248
- },
249
- {
250
- active: true,
251
- variant: "secondary",
252
- className: [
253
- "bg-background-system-action-secondary-hover border-border-system-action-primary-hover",
254
- ],
255
- },
256
- ],
257
- defaultVariants: {
258
- variant: "default",
259
- },
260
- },
261
- );
262
-
263
- interface SideBarIconButtonProps
264
- extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof SideBarItemStyles> {
265
- asChild?: boolean;
266
- as?: React.ElementType;
267
- theme?: Themes;
268
- variant?: "default" | "secondary";
269
- active?: boolean;
270
- count?: number;
271
- message?: ReactNode;
272
- disabled?: boolean;
273
- }
274
-
275
- const SideBarIconButton = ({
276
- count,
277
- active,
278
- asChild,
279
- message,
280
- as: Tag = "button",
281
- theme,
282
- variant,
283
- className,
284
- ...props
285
- }: SideBarIconButtonProps) => {
286
- const Component = asChild ? Slot : Tag;
287
-
288
- return message ? (
289
- <Tooltip variant={"highlight"} text={message} toolTipSide="left" className="z-[1000]">
290
- <Component
291
- {...props}
292
- data-theme={theme}
293
- className={cn(SideBarIconButtonStyles({ variant, active }), className)}
294
- >
295
- {props.children}
296
- {count && <Counter className=" absolute top-[2px] right-[2px]" label={count} />}
297
- </Component>
298
- </Tooltip>
299
- ) : (
300
- <Component
301
- {...props}
302
- data-theme={theme}
303
- className={cn(SideBarIconButtonStyles({ variant, active }))}
304
- >
305
- {props.children}
306
- {count && <Counter className=" absolute top-[2px] right-[2px]" label={count} />}
307
- </Component>
308
- );
309
- };
310
-
311
- interface SideBarFooterItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
312
- theme?: Themes;
313
- as?: React.ElementType;
314
- asChild?: boolean;
315
- variant?: "primary" | "secondary";
316
- }
317
-
318
- const glareFeedbackItemStyle = cva(
319
- [
320
- "h-[40px] w-full flex justify-center items-center rounded-[4px] px-2",
321
- "text-content-system-global-primary typography-body-small-medium",
322
- "border border-transparent outline-none bg-background-system-body-base",
323
- "focus:bg-background-system-action-primary-selected",
324
- "transition-all duration-200 ease-in-out",
325
- ],
326
- {
327
- variants: {
328
- variant: {
329
- primary: [
330
- "hover:bg-background-system-action-primary-hover hover:border-border-system-action-primary-hover",
331
- "active:bg-background-system-action-primary-hover active:border-border-system-action-primary-hover ",
332
- ],
333
- secondary: [
334
- "hover:bg-wavy-navy-1000 hover:border-border-system-action-field-hover-selected",
335
- "active:bg-wavy-navy-1000 active:border-border-system-action-field-hover-selected",
336
- ],
337
- },
338
- },
339
- defaultVariants: {
340
- variant: "primary",
341
- },
342
- },
343
- );
344
-
345
- const SideBarFooterItem: React.FC<SideBarFooterItemProps> = ({
346
- asChild,
347
- as: Tag = "button",
348
- theme,
349
- variant,
350
- className,
351
- ...props
352
- }) => {
353
- const Component = asChild ? Slot : Tag;
354
-
355
- return (
356
- <Component
357
- data-theme={theme}
358
- {...props}
359
- className={cn(glareFeedbackItemStyle({ variant }), className)}
360
- ></Component>
361
- );
362
- };
363
-
364
- export {
365
- SideBar,
366
- SideBarFooterItem,
367
- SideBarItem,
368
- SideBarChildContainer,
369
- SideBarIconButton,
370
- Body,
371
- Layout,
372
- };
@@ -1,62 +0,0 @@
1
- "use client";
2
-
3
- import { Fragment, type HTMLAttributes, type ReactNode } from "react";
4
- import { cn } from "../utils/cn";
5
- import { Card, CardContent, CardHeader } from "../components/Card";
6
- import type { Themes } from "../utils/types";
7
-
8
- export type DataViewCardCell = {
9
- key: string;
10
- label: ReactNode;
11
- value: ReactNode;
12
- };
13
-
14
- export type DataViewCardRow = DataViewCardCell[];
15
-
16
- export interface DataViewCardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
17
- title?: ReactNode;
18
- rows?: DataViewCardRow[];
19
- theme?: Themes;
20
- }
21
-
22
- export function DataViewCard({ title, rows = [], className, theme, ...props }: DataViewCardProps) {
23
- return (
24
- <Card data-theme={theme} {...props} className={cn("p-[8px] rounded-[10px] gap-0", className)}>
25
- {title != null && (
26
- <CardHeader className=" border-b border-border-presentation-global-primary">
27
- <div className="min-w-0 typography-headers-large-semibold text-content-presentation-global-primary">
28
- {title}
29
- </div>
30
- </CardHeader>
31
- )}
32
- {rows.length > 0 && (
33
- <CardContent className="grid grid-cols-2 gap-0 pt-0 w-full">
34
- {rows.map((cells, rowIdx) => (
35
- <Fragment key={rowIdx}>
36
- {cells.map((cell, cellIdx) => (
37
- <div
38
- key={cell.key}
39
- className={cn(
40
- "relative flex flex-col gap-[2px] min-w-0 p-[6px]",
41
- rowIdx > 0 && "border-t border-border-presentation-global-primary",
42
- cells.length === 2 &&
43
- cellIdx === 0 &&
44
- "after:absolute after:end-0 after:top-[7%] after:h-[80%] after:w-px after:bg-border-presentation-global-primary",
45
- cells.length === 1 && "col-span-2",
46
- )}
47
- >
48
- <span className="typography-body-small-medium text-content-presentation-global-tertiary">
49
- {cell.label}
50
- </span>
51
- <div className="typography-body-medium-semibold text-content-presentation-global-primary truncate">
52
- {cell.value}
53
- </div>
54
- </div>
55
- ))}
56
- </Fragment>
57
- ))}
58
- </CardContent>
59
- )}
60
- </Card>
61
- );
62
- }
@@ -1,91 +0,0 @@
1
- import { cn } from "../utils/cn";
2
- import { ReactNode } from "react";
3
- import { Label } from "../components/Label";
4
- import { Themes } from "../utils/types";
5
-
6
- interface Props {
7
- label?: ReactNode;
8
- secondaryLabel?: ReactNode;
9
- requiredLabel?: ReactNode;
10
- size?: "S" | "M" | "L";
11
- childrenUnderLabel?: ReactNode;
12
- theme?: Themes;
13
- className?: string;
14
- children?: ReactNode;
15
- direction?: "horizontal" | "vertical" | "flexible";
16
- }
17
-
18
- export function FieldSection({
19
- children,
20
- label,
21
- secondaryLabel,
22
- direction = "flexible",
23
- requiredLabel,
24
- size,
25
- theme,
26
- className,
27
- childrenUnderLabel,
28
- ...props
29
- }: Props) {
30
- // Which copy of `childrenUnderLabel` is visible, driven purely by the `@md` container
31
- // breakpoint (this section's own width reaching 650px) — deliberately not by `direction`.
32
- // Pinning it per-direction breaks the common case: `FormRenderer` forces `direction="vertical"`
33
- // inside a drawer and FormBuilder puts the field's validation error in this slot, so a vertical
34
- // form would strand every error under the label at any width.
35
- const underLabelSlot = direction === "vertical" ? "hidden" : "hidden @md:block";
36
- const underChildrenSlot = direction === "vertical" ? "block" : "block @md:hidden";
37
-
38
- return (
39
- <section
40
- {...props}
41
- data-theme={theme}
42
- className={cn("w-full max-w-[1200px] min-w-[0px] @container", className)}
43
- >
44
- <div
45
- className={cn(
46
- "grid py-[16px] px-[12px] w-full min-w-[0px]",
47
- direction === "vertical" && "grid-rows-[auto_1fr] gap-[12px]",
48
- direction === "horizontal" && "grid-cols-[350px_1fr] gap-[24px]",
49
- direction === "flexible" &&
50
- "grid-rows-[auto_1fr] gap-[12px] @md:grid-cols-[350px_1fr] @md:grid-rows-[1fr] @md:gap-[24px]",
51
- )}
52
- >
53
- {/* Fixed width section for labels */}
54
- <div className="flex flex-col gap-[12px]">
55
- {label && (
56
- <Label
57
- size={size}
58
- label={label}
59
- requiredLabel={requiredLabel}
60
- labelDirections={"horizontal"}
61
- />
62
- )}
63
-
64
- {secondaryLabel && <Label size={size} secondaryLabel={secondaryLabel} />}
65
-
66
- {/* Stacked (below `@md`): the label column IS the full width, so under the label is the
67
- natural spot. Hidden once `@md` splits the row into two columns — the copy in the
68
- children column takes over there. Exactly one of the two is ever displayed. */}
69
- {childrenUnderLabel && (
70
- <div data-slot="under-label" className={cn(underLabelSlot)}>
71
- {childrenUnderLabel}
72
- </div>
73
- )}
74
- </div>
75
-
76
- {/* Flexible section that takes up the remaining space */}
77
- <div className="grid grid-cols-1 place-items-end gap-[12px]">
78
- {children}
79
-
80
- {/* Two-column (`@md` and up): the hint belongs under the control it describes, not
81
- stranded at the bottom of the 350px label column. */}
82
- {childrenUnderLabel && (
83
- <div data-slot="under-children" className={cn("w-full", underChildrenSlot)}>
84
- {childrenUnderLabel}
85
- </div>
86
- )}
87
- </div>
88
- </div>
89
- </section>
90
- );
91
- }
@@ -1,173 +0,0 @@
1
- "use client";
2
- import { usePathname } from "next/navigation";
3
- import TabFormItem from "../components/TabFormItem";
4
- import { cn } from "../utils/cn";
5
- import Link from "next/link";
6
- import { useActiveTreeItem } from "../hooks/useActiveTreeItem";
7
-
8
- interface TreeItem {
9
- id: string;
10
- title: string;
11
- subTree?: TreeItem[];
12
- }
13
- export type PathConfig = {
14
- [key: string]: {
15
- pageHeader: string;
16
- subTitle?: string;
17
- TabsTree: TreeItem[];
18
- };
19
- };
20
-
21
- export default function TreeSubLayout({
22
- children,
23
- treeData,
24
- }: {
25
- children: React.ReactNode;
26
- treeData: PathConfig;
27
- }) {
28
- const pathname = usePathname();
29
- const allIds = treeData[pathname].TabsTree?.flatMap((item) => [
30
- item.id,
31
- ...(item.subTree?.map((sub) => sub.id) || []),
32
- ]);
33
- const { activeId } = useActiveTreeItem(allIds);
34
-
35
- return (
36
- <div
37
- className={cn(
38
- "flex h-full overflow-hidden transition-all ease-in-out delay-150 lg:bg-none lg:rounded-2 ",
39
- )}
40
- >
41
- <div className="grid grid-rows-[auto_1fr] h-full flex-1 lg:gap-[2px] rounded-2 flex-shrink-0 min-w-[300px]">
42
- <HeaderPage
43
- title={treeData[pathname]?.pageHeader}
44
- subTitle={treeData[pathname]?.subTitle}
45
- />
46
- <div className="grid grid-cols-[1fr] overflow-hidden lg:rounded-b-[6px] xl:grid-cols-[1fr_300px]">
47
- <div className="scrollbar-hide overflow-scroll scroll-smooth bg-background-system-body-base h-full">
48
- <div className="overflow-scroll scrollbar-hide scroll-smooth bg-[#B2D0FF0D] h-full w-full p-[12px]">
49
- {children}
50
- </div>
51
- </div>
52
-
53
- <div className="border-l border-border-presentation-global-primary bg-background-system-body-base scrollbar-hide hidden xl:block">
54
- <div className="flex flex-col items-start gap-3 h-full py-8 px-6 overflow-y-auto scrollbar-hide">
55
- {treeData[pathname].TabsTree.map((item) => (
56
- <TreeSection
57
- key={item.id}
58
- href={`${item.id}`}
59
- isActive={
60
- activeId === item.id || item.subTree?.some((sub) => sub.id === activeId)
61
- }
62
- title={item?.title}
63
- subTitles={item?.subTree?.map((sub) => ({
64
- ...sub,
65
- isActive: activeId === sub.id,
66
- }))}
67
- />
68
- ))}
69
- </div>
70
- </div>
71
- </div>
72
- </div>
73
- </div>
74
- );
75
- }
76
-
77
- function TreeSection({
78
- href,
79
- isActive,
80
- title,
81
- subTitles,
82
- }: {
83
- href: string;
84
- isActive?: boolean;
85
- title: string;
86
- subTitles?: { id: string; title: string; isActive?: boolean }[];
87
- }) {
88
- return (
89
- <div className={`flex flex-col items-start gap-[12px] w-full transition-colors duration-200`}>
90
- <TabFormItem componentType="tree" active={isActive} className={`w-full`} asChild>
91
- <Link href={`#${href}`}>{title}</Link>
92
- </TabFormItem>
93
- {subTitles && (
94
- <div
95
- className={`w-full h-[1px]
96
- bg-border-presentation-global-primary
97
- `}
98
- ></div>
99
- )}
100
- {subTitles && (
101
- <div className="flex items-start flex-1 w-full pl-4">
102
- <div className={`w-[1px] h-full bg-border-presentation-global-primary`} />
103
- <div className="flex p-[4px_0px_4px_8px] flex-col items-start gap-1 w-full flex-1">
104
- {subTitles?.map((item) => (
105
- <TabFormItem
106
- componentType="tree"
107
- key={item.id}
108
- active={item.isActive}
109
- className="w-full"
110
- asChild
111
- >
112
- <Link href={`#${item.id}`}>{item.title}</Link>
113
- </TabFormItem>
114
- ))}
115
- </div>
116
- </div>
117
- )}
118
- </div>
119
- );
120
- }
121
-
122
- export function HeaderPage({
123
- title,
124
- subTitle,
125
- children,
126
- type = "start",
127
- className,
128
- }: {
129
- title: string;
130
- subTitle?: string;
131
- children?: React.ReactNode;
132
- type?: "space-between" | "start";
133
- className?: string;
134
- }) {
135
- return (
136
- <div
137
- className={cn(
138
- "w-full h-fit transition-all duration-300 ease-in-out lg:rounded-[8px_8px_0px_0px] lg:z-auto",
139
- "bg-[linear-gradient(90deg,var(--blue-sparkle-600)_0px,rgba(44,45,46,1)_190px)] lg:bg-background-system-body-base",
140
- "pb-[2px] lg:pb-0",
141
- className,
142
- )}
143
- >
144
- <div className="w-full h-full flex flex-col justify-center items-start rounded-[6px_6px_0px_0px] transition-all duration-300 ease-in-out lg:bg-none lg:bg-background-system-body-base lg:h-fit">
145
- <div className="lg:hidden w-full bg-background-system-body-base px-[12px] h-[52px] flex justify-start items-center overflow-y-scroll border-b-[2px] border-[#2c2d2e]"></div>
146
- <div
147
- className={cn(
148
- `flex h-fit relative gap-2 items-center w-full lg:w-fit `,
149
- "bg-background-system-body-secondary lg:bg-transparent",
150
- "h-[52px] px-[16px] lg:py-[16px] rtl:pr-4 ltr:pl-4 lg:h-[60px]",
151
- className,
152
- )}
153
- >
154
- <h1 className="text-content-system-global-primary whitespace-nowrap leading-none typography-display-large-semibold z-20 text-left lg:typography-display-medium-regular lg:uppercase">
155
- {title}
156
- </h1>
157
- <p className="hidden mb-[-6px] sm:block text-content-presentation-global-secondary typography-headers-medium-regular z-20 lg:uppercase">
158
- {subTitle}
159
- </p>
160
- <div className="h-[24px] hidden w-[1px] bg-border-presentation-global-primary z-20 sm:block"></div>
161
- </div>
162
- <div
163
- className={cn(
164
- "w-full flex rtl:pl-4 items-center ltr:pr-4",
165
- type === "space-between" && "justify-end",
166
- )}
167
- >
168
- {children}
169
- </div>
170
- </div>
171
- </div>
172
- );
173
- }