@hachej/boring-ui-kit 0.1.111 → 0.2.1

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 (95) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +255 -239
  3. package/THIRD_PARTY_NOTICES.md +85 -0
  4. package/dist/anchor-conformance.d.ts +78 -0
  5. package/dist/anchor-conformance.js +288 -0
  6. package/dist/canvas-document.d.ts +25 -0
  7. package/dist/canvas-document.js +141 -0
  8. package/dist/canvas-editor-native.d.ts +22 -0
  9. package/dist/canvas-editor-native.js +112 -0
  10. package/dist/canvas-editor.d.ts +6 -0
  11. package/dist/canvas-editor.js +13 -0
  12. package/dist/canvas-mounted.d.ts +41 -0
  13. package/dist/canvas-mounted.js +180 -0
  14. package/dist/canvas-proposals.d.ts +11 -0
  15. package/dist/canvas-proposals.js +45 -0
  16. package/dist/canvas-records.d.ts +3 -0
  17. package/dist/canvas-records.js +39 -0
  18. package/dist/canvas.d.ts +92 -0
  19. package/dist/canvas.js +264 -0
  20. package/dist/contracts.d.ts +125 -0
  21. package/dist/contracts.js +1 -0
  22. package/dist/experience-catalog.d.ts +142 -0
  23. package/dist/experience-catalog.js +25 -0
  24. package/dist/experience-compose.d.ts +83 -0
  25. package/dist/experience-compose.js +218 -0
  26. package/dist/experience-composition-schema.d.ts +29 -0
  27. package/dist/experience-composition-schema.js +22 -0
  28. package/dist/experience-document-viewer.d.ts +13 -0
  29. package/dist/experience-document-viewer.js +54 -0
  30. package/dist/experience-document.d.ts +64 -0
  31. package/dist/experience-document.js +234 -0
  32. package/dist/experience-region-text.d.ts +3 -0
  33. package/dist/experience-region-text.js +84 -0
  34. package/dist/experience-region-tree.d.ts +22 -0
  35. package/dist/experience-region-tree.js +50 -0
  36. package/dist/experience-regions.d.ts +9 -0
  37. package/dist/experience-regions.js +122 -0
  38. package/dist/experience-renderer.d.ts +16 -0
  39. package/dist/experience-renderer.js +37 -0
  40. package/dist/experience.d.ts +12 -0
  41. package/dist/experience.js +23 -0
  42. package/dist/file-tree-shadcn.d.ts +8 -0
  43. package/dist/file-tree-shadcn.js +14 -0
  44. package/dist/file-tree-view.d.ts +66 -0
  45. package/dist/file-tree-view.js +256 -0
  46. package/dist/file-tree.d.ts +57 -0
  47. package/dist/file-tree.js +204 -0
  48. package/dist/html-preview.d.ts +2 -0
  49. package/dist/html-preview.js +47 -0
  50. package/dist/html-viewer.d.ts +13 -0
  51. package/dist/html-viewer.js +69 -0
  52. package/dist/html.d.ts +21 -0
  53. package/dist/html.js +21 -0
  54. package/dist/index.d.ts +2 -472
  55. package/dist/index.js +1 -2671
  56. package/dist/markdown-editor.d.ts +28 -0
  57. package/dist/markdown-editor.js +230 -0
  58. package/dist/markdown-extensions.d.ts +16 -0
  59. package/dist/markdown-extensions.js +96 -0
  60. package/dist/markdown-icons.d.ts +244 -0
  61. package/dist/markdown-icons.js +32 -0
  62. package/dist/markdown-mounted.d.ts +63 -0
  63. package/dist/markdown-mounted.js +263 -0
  64. package/dist/markdown-parser.d.ts +4 -0
  65. package/dist/markdown-parser.js +33 -0
  66. package/dist/markdown-proposal-diff.d.ts +5 -0
  67. package/dist/markdown-proposal-diff.js +122 -0
  68. package/dist/markdown-safety.d.ts +21 -0
  69. package/dist/markdown-safety.js +135 -0
  70. package/dist/markdown.d.ts +86 -0
  71. package/dist/markdown.js +121 -0
  72. package/dist/native-chat.d.ts +150 -0
  73. package/dist/native-chat.js +376 -0
  74. package/dist/pi.d.ts +12 -0
  75. package/dist/pi.js +1 -0
  76. package/dist/public-text-buffer.d.ts +5 -0
  77. package/dist/public-text-buffer.js +1 -0
  78. package/dist/remote-chat.d.ts +76 -0
  79. package/dist/remote-chat.js +324 -0
  80. package/dist/resources.d.ts +34 -0
  81. package/dist/resources.js +1 -0
  82. package/dist/text-buffer-state.d.ts +24 -0
  83. package/dist/text-buffer-state.js +1 -0
  84. package/dist/text-buffer.d.ts +52 -0
  85. package/dist/text-buffer.js +315 -0
  86. package/dist/text-draft-controls.d.ts +9 -0
  87. package/dist/text-draft-controls.js +33 -0
  88. package/dist/text-draft-types.d.ts +111 -0
  89. package/dist/text-draft-types.js +1 -0
  90. package/dist/text-drafts.d.ts +29 -0
  91. package/dist/text-drafts.js +378 -0
  92. package/package.json +226 -58
  93. package/styles/file-tree.css +46 -0
  94. package/dist/styles.css +0 -2308
  95. package/dist/tokens.css +0 -155
@@ -0,0 +1,46 @@
1
+ /* shadcn/ui sidebar-11 adaptation; MIT. See ../THIRD_PARTY_NOTICES.md. */
2
+ [data-boring="file-tree"] {
3
+ color: var(--foreground, #18181b);
4
+ background: var(--background, #fff);
5
+ font: inherit;
6
+ min-width: 0;
7
+ }
8
+ [data-boring="file-tree"] *, [data-boring="file-tree"] *::before, [data-boring="file-tree"] *::after { box-sizing: border-box; }
9
+ [data-boring="file-tree"] ul { list-style: none; }
10
+ [data-boring="file-tree"] button, [data-boring="file-tree"] input { font: inherit; }
11
+ [data-boring="file-tree"] button { cursor: pointer; }
12
+ [data-boring="file-tree"] [data-slot="sidebar-menu"] { display: flex; width: 100%; min-width: 0; flex-direction: column; gap: .25rem; margin: 0; padding: .5rem; }
13
+ [data-boring="file-tree"] [data-slot="sidebar-menu-item"] { position: relative; border-radius: .375rem; outline: none; }
14
+ [data-boring="file-tree"] [data-slot="sidebar-menu-item"] > div { display: flex; align-items: center; gap: .25rem; }
15
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"] {
16
+ display: flex; align-items: center; gap: .5rem; flex: 1; width: 100%; min-width: 0;
17
+ height: 2rem; overflow: hidden; border: 0; border-radius: .375rem; padding: .5rem;
18
+ background: transparent; color: inherit; text-align: left; font-size: .875rem;
19
+ line-height: 1.25rem; outline: none; transition: width .15s, height .15s, padding .15s;
20
+ }
21
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"]:hover,
22
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"]:active {
23
+ background: var(--sidebar-accent, var(--accent, #f4f4f5));
24
+ color: var(--sidebar-accent-foreground, var(--accent-foreground, #18181b));
25
+ }
26
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"][data-active="true"] { font-weight: 500; color: var(--sidebar-accent-foreground, var(--accent-foreground, #18181b)); }
27
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"] > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
28
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"] > svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform .15s; }
29
+ [data-boring="file-tree"] [data-slot="sidebar-menu-item"][data-state="open"] > div > button > svg:first-child { transform: rotate(90deg); }
30
+ [data-boring="file-tree"] [data-slot="sidebar-menu-sub"] {
31
+ display: flex; min-width: 0; flex-direction: column; gap: .25rem;
32
+ margin: 0 .875rem; padding: .125rem .625rem; transform: translateX(1px);
33
+ border-left: 1px solid var(--sidebar-border, var(--border, #e4e4e7));
34
+ }
35
+ [data-boring="file-tree"] [data-slot="sidebar-menu-sub"][hidden] { display: none; }
36
+ [data-boring="file-tree"] [data-slot="sidebar-menu-item"]:focus-visible,
37
+ [data-boring="file-tree"] button:focus-visible,
38
+ [data-boring="file-tree"] input:focus-visible { outline: 2px solid var(--sidebar-ring, var(--ring, #71717a)); outline-offset: 2px; }
39
+ [data-boring="file-tree"] button:disabled { pointer-events: none; opacity: .5; }
40
+ [data-boring="file-tree"] > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem; }
41
+ [data-boring="file-tree"] input[type="search"] { flex: 1; min-width: 0; padding: .375rem .5rem; border: 1px solid var(--input, #d4d4d8); border-radius: .375rem; color: inherit; background: transparent; }
42
+ [data-boring="file-tree"] input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
43
+ [data-boring="file-tree"] pre { max-height: 20rem; overflow: auto; white-space: pre-wrap; }
44
+ @media (prefers-reduced-motion: reduce) {
45
+ [data-boring="file-tree"] [data-slot="sidebar-menu-button"], [data-boring="file-tree"] [data-slot="sidebar-menu-button"] > svg { transition: none; }
46
+ }