devnonla-ui 0.19.1 → 0.20.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 (74) hide show
  1. package/README.md +11 -0
  2. package/package.json +1 -1
  3. package/src/alert/Alert.tsx +7 -7
  4. package/src/app/App.tsx +11 -7
  5. package/src/breadcrumb/Breadcrumb.tsx +80 -0
  6. package/src/button/Button.tsx +48 -33
  7. package/src/button/ButtonCopy.tsx +2 -2
  8. package/src/calendar/Calendar.tsx +12 -12
  9. package/src/card/Card.tsx +15 -10
  10. package/src/chat/AgentPanel.tsx +1 -1
  11. package/src/chat/index.ts +1 -5
  12. package/src/chat/message-ui/ChatError.tsx +1 -1
  13. package/src/chat/message-ui/ChatInput.tsx +4 -4
  14. package/src/chat/message-ui/ChatThinking.tsx +1 -1
  15. package/src/chat/message-ui/ChatUserMessage.tsx +3 -3
  16. package/src/chat/message-ui/ChatWelcome.tsx +2 -2
  17. package/src/chat/tool-ui/BackgroundTasksBar.tsx +6 -6
  18. package/src/chat/tool-ui/ChatToolCall.tsx +4 -4
  19. package/src/chat/tool-ui/ToolUiBadge.tsx +1 -1
  20. package/src/chat/tool-ui/ToolUiTrailing.tsx +1 -1
  21. package/src/chat/tool-ui/registry.ts +5 -19
  22. package/src/checkbox/Checkbox.tsx +12 -10
  23. package/src/colorpicker/ColorPicker.tsx +2 -2
  24. package/src/command-palette/CommandPalette.tsx +223 -0
  25. package/src/drawer/Drawer.tsx +1 -1
  26. package/src/dropdown/Dropdown.tsx +4 -3
  27. package/src/dropdown/menuClasses.ts +2 -2
  28. package/src/empty/Empty.tsx +23 -9
  29. package/src/form/FormItem.tsx +1 -1
  30. package/src/form/variants/FieldRadio.tsx +2 -2
  31. package/src/form/variants/FieldRepeaterItem.tsx +1 -1
  32. package/src/icon/Icon.tsx +14 -4
  33. package/src/icon/glyphs.ts +47 -38
  34. package/src/index.ts +8 -2
  35. package/src/input/EditableInput.tsx +3 -3
  36. package/src/input/Input.tsx +30 -13
  37. package/src/kbd/Kbd.tsx +32 -0
  38. package/src/lib/cn.ts +7 -0
  39. package/src/lib/markdownScale.ts +18 -7
  40. package/src/lib/sizes.ts +1 -1
  41. package/src/lib/surface.ts +2 -2
  42. package/src/markdown-editor/MarkdownDiff.tsx +4 -4
  43. package/src/markdown-editor/MarkdownPreview.tsx +1 -1
  44. package/src/markdown-editor/MarkdownSource.tsx +2 -2
  45. package/src/markdown-editor/MarkdownTable.tsx +2 -2
  46. package/src/markdown-editor/MarkdownViewer.tsx +8 -8
  47. package/src/markdown-editor/MermaidBlock.tsx +5 -5
  48. package/src/markdown-editor/ReactCodeFrame.tsx +1 -1
  49. package/src/menu/Menu.tsx +2 -2
  50. package/src/message/message.tsx +8 -8
  51. package/src/modal/Modal.tsx +2 -2
  52. package/src/page-header/PageHeader.tsx +33 -0
  53. package/src/pagination/Pagination.tsx +3 -3
  54. package/src/popconfirm/Popconfirm.tsx +3 -3
  55. package/src/scroll/OverlayScroll.tsx +1 -1
  56. package/src/segmented/Segmented.tsx +16 -7
  57. package/src/select/Select.tsx +76 -47
  58. package/src/sidebar/Sidebar.tsx +15 -4
  59. package/src/sortable-tree/SortableTree.tsx +1 -1
  60. package/src/splitter/Splitter.tsx +1 -1
  61. package/src/styles.css +262 -49
  62. package/src/switch/Switch.tsx +21 -20
  63. package/src/table/Table.tsx +32 -18
  64. package/src/tabs/Tabs.tsx +16 -13
  65. package/src/tag/Tag.tsx +16 -7
  66. package/src/theme-switcher/ThemeSwitcher.tsx +1 -1
  67. package/src/timepicker/TimePicker.tsx +2 -2
  68. package/src/tooltip/Tooltip.tsx +25 -3
  69. package/src/typography/Typography.tsx +3 -5
  70. package/src/blob-shape/BlobShape.tsx +0 -337
  71. package/src/chat/tool-ui/GetCurrentTimeToolUI.tsx +0 -51
  72. package/src/chat/tool-ui/ReadSkillToolUI.tsx +0 -82
  73. package/src/chat/tool-ui/RunJsToolUI.tsx +0 -108
  74. package/src/chat/tool-ui/WebFetchToolUI.tsx +0 -64
@@ -1,42 +1,51 @@
1
- /** Glyphs from the Solar icon set by 480 Design, CC BY 4.0. `json` and `md` are drawn in the same stroke style. https://creativecommons.org/licenses/by/4.0/ */
1
+ /** NonlaUI glyphs, drawn in one style to match Claude desktop: 24 grid, round caps and joins, quiet geometry. */
2
2
  export const ICON_GLYPHS = {
3
- "add": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M4 12L20 12\"/><path d=\"M12 4L12 20\"/></g>",
4
- "arrow-down": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M19 9L12 15L5 9\"/>",
5
- "arrow-left": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M15 5L9 12L15 19\"/>",
6
- "arrow-right": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M9 5L15 12L9 19\"/>",
7
- "arrow-up": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M12 20L12 4M6 10L12 4L18 10\"/>",
8
- "book": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M4 8C4 5.17157 4 3.75736 4.87868 2.87868C5.75736 2 7.17157 2 10 2H14C16.8284 2 18.2426 2 19.1213 2.87868C20 3.75736 20 5.17157 20 8V16C20 18.8284 20 20.2426 19.1213 21.1213C18.2426 22 16.8284 22 14 22H10C7.17157 22 5.75736 22 4.87868 21.1213C4 20.2426 4 18.8284 4 16V8Z\"/><path d=\"M19.8978 16H7.89778C6.96781 16 6.50282 16 6.12132 16.1022C5.08604 16.3796 4.2774 17.1883 4 18.2235\"/><path d=\"M8 7H16\"/><path d=\"M8 10.5H13\"/></g>",
9
- "check": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M5 13L9 17L19 7\"/>",
10
- "checkbox": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><path d=\"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.5 12.5L10.5 14.5L15.5 9.5\"/></g>",
11
- "chevrons-left": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M13 19L7 12L13 5\"/><path d=\"M17 19L11 12L17 5\"/></g>",
12
- "chevrons-right": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M11 19L17 12L11 5\"/><path d=\"M7 19L13 12L7 5\"/></g>",
13
- "clock": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path stroke-linejoin=\"round\" d=\"M12 8V12L14.5 14.5\"/></g>",
14
- "close": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M19 5L5 19\"/><path d=\"M19 19L5 5\"/></g>",
15
- "code": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M15.5 9L15.6716 9.17157C17.0049 10.5049 17.6716 11.1716 17.6716 12C17.6716 12.8284 17.0049 13.4951 15.6716 14.8284L15.5 15\"/><path d=\"M13.2939 7.17041L11.9998 12L10.7058 16.8297\"/><path d=\"M8.50019 9L8.32861 9.17157C6.99528 10.5049 6.32861 11.1716 6.32861 12C6.32861 12.8284 6.99528 13.4951 8.32861 14.8284L8.50019 15\"/><path d=\"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z\"/></g>",
16
- "copy": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M6 11C6 8.17157 6 6.75736 6.87868 5.87868C7.75736 5 9.17157 5 12 5H15C17.8284 5 19.2426 5 20.1213 5.87868C21 6.75736 21 8.17157 21 11V16C21 18.8284 21 20.2426 20.1213 21.1213C19.2426 22 17.8284 22 15 22H12C9.17157 22 7.75736 22 6.87868 21.1213C6 20.2426 6 18.8284 6 16V11Z\"/><path d=\"M6 19C4.34315 19 3 17.6569 3 16V10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H15C16.6569 2 18 3.34315 18 5\"/></g>",
17
- "datetime": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><path d=\"M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12Z\"/><path stroke-linecap=\"round\" d=\"M7 4V2.5\"/><path stroke-linecap=\"round\" d=\"M17 4V2.5\"/><path stroke-linecap=\"round\" d=\"M2.5 9H21.5\"/></g>",
18
- "dialog": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M16.09 6.58944C15.1281 6 13.8187 6 11.2 6H8.8C6.18126 6 4.87188 6 3.91001 6.58944C3.37178 6.91927 2.91926 7.37179 2.58944 7.91001C2 8.8719 2 10.1813 2 12.8V13.6C2 15.4638 2 16.3957 2.30448 17.1308C2.71046 18.1109 3.48915 18.8896 4.46927 19.2956C4.93479 19.4884 5.47923 19.5591 6.28931 19.585C7.15324 19.6126 7.58521 19.6264 7.91637 19.8223C8.24753 20.0182 8.45544 20.3695 8.8712 21.0719L8.87121 21.0719L9.13064 21.5102C9.51718 22.1633 10.4828 22.1633 10.8693 21.5102L11.1288 21.0719C11.5445 20.3695 11.7524 20.0182 12.0836 19.8223C12.4148 19.6264 12.8467 19.6126 13.7107 19.585C14.5208 19.5591 15.0652 19.4884 15.5307 19.2956C16.5108 18.8896 17.2895 18.1109 17.6955 17.1308C18 16.3957 18 15.4638 18 13.6V12.8C18 10.1813 18 8.8719 17.4106 7.91001C17.0807 7.37179 16.6282 6.91927 16.09 6.58944Z\"/><path d=\"M7.0332 6C7.08481 5.00787 7.2165 4.33902 7.55255 3.79064C7.86176 3.28605 8.28599 2.86181 8.79058 2.5526C9.69234 2 10.9199 2 13.3749 2H15.6249C18.08 2 19.3076 2 20.2093 2.5526C20.7139 2.86181 21.1381 3.28605 21.4473 3.79064C21.9999 4.6924 21.9999 5.91994 21.9999 8.37503V9.12503C21.9999 10.8723 21.9999 11.746 21.7145 12.4351C21.3339 13.354 20.6039 14.084 19.685 14.4646C19.2527 14.6437 18.7477 14.7104 18 14.7352\"/><path stroke-linejoin=\"round\" d=\"M6.50928 13H6.51828M10 13H10.009M13.491 13H13.5\"/></g>",
19
- "document": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M3 10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H13C16.7712 2 18.6569 2 19.8284 3.17157C21 4.34315 21 6.22876 21 10V14C21 17.7712 21 19.6569 19.8284 20.8284C18.6569 22 16.7712 22 13 22H11C7.22876 22 5.34315 22 4.17157 20.8284C3 19.6569 3 17.7712 3 14V10Z\"/><path d=\"M8 12H16\"/><path d=\"M8 8H16\"/><path d=\"M8 16H13\"/></g>",
20
- "download": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M17 9.00195C19.175 9.01406 20.3529 9.11051 21.1213 9.8789C22 10.7576 22 12.1718 22 15.0002V16.0002C22 18.8286 22 20.2429 21.1213 21.1215C20.2426 22.0002 18.8284 22.0002 16 22.0002H8C5.17157 22.0002 3.75736 22.0002 2.87868 21.1215C2 20.2429 2 18.8286 2 16.0002L2 15.0002C2 12.1718 2 10.7576 2.87868 9.87889C3.64706 9.11051 4.82497 9.01406 7 9.00195\"/><path stroke-linejoin=\"round\" d=\"M12 2L12 15M15 11.5L12 15L9 11.5\"/></g>",
21
- "eraser": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M13.7713 17.314L6.68596 10.2287M11.4096 5.50506C13.0796 3.83502 13.9146 3 14.9522 3C15.9899 3 16.8249 3.83502 18.4949 5.50506C20.165 7.1751 21 8.01012 21 9.04776C21 10.0854 20.165 10.9204 18.4949 12.5904L12.5904 18.4949C10.9204 20.165 10.0854 21 9.04776 21C8.01012 21 7.1751 20.165 5.50506 18.4949C3.83502 16.8249 3 15.9899 3 14.9522C3 13.9146 3.83502 13.0796 5.50506 11.4096L11.4096 5.50506Z\"/><path d=\"M9 21H21\"/></g>",
22
- "error": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 7V13\"/><path stroke-linejoin=\"round\" d=\"M12 16H12.0001\"/></g>",
23
- "eye": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M3.27489 15.2957C2.42496 14.1915 2 13.6394 2 12C2 10.3606 2.42496 9.80853 3.27489 8.70433C4.97196 6.49956 7.81811 4 12 4C16.1819 4 19.028 6.49956 20.7251 8.70433C21.575 9.80853 22 10.3606 22 12C22 13.6394 21.575 14.1915 20.7251 15.2957C19.028 17.5004 16.1819 20 12 20C7.81811 20 4.97196 17.5004 3.27489 15.2957Z\"/><path d=\"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z\"/></g>",
24
- "globe": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><ellipse cx=\"12\" cy=\"12\" rx=\"4\" ry=\"10\"/><path d=\"M2 12H22\"/></g>",
25
- "json": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M9.5 5C7.6 5 7.2 7.2 7.2 9.2C7.2 10.6 5.4 11.2 5.4 12C5.4 12.8 7.2 13.4 7.2 14.8C7.2 16.8 7.6 19 9.5 19\"/><path d=\"M14.5 5C16.4 5 16.8 7.2 16.8 9.2C16.8 10.6 18.6 11.2 18.6 12C18.6 12.8 16.8 13.4 16.8 14.8C16.8 16.8 16.4 19 14.5 19\"/></g>",
26
- "maximize": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M9 15L2 22M2 16.1429V22H7.85714\"/><path d=\"M15 9L22 2M22 7.85714V2H16.1429\"/></g>",
27
- "md": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><path d=\"M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12C22 15.7712 22 17.6569 20.8284 18.8284C19.6569 20 17.7712 20 14 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M5.5 15.75V8.25L7.85 12.35L10.2 8.25V15.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M13.35 8.25H14.7C16.85 8.25 18.15 10.05 18.15 12C18.15 13.95 16.85 15.75 14.7 15.75H13.35V8.25\"/></g>",
28
- "minimize": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M2 22L9 15M9 20.8571V15H3.14286\"/><path d=\"M22 2L15 9M15 3.14286V9H20.8571\"/></g>",
29
- "monitor": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M2 10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H14C17.7712 2 19.6569 2 20.8284 3.17157C22 4.34315 22 6.22876 22 10V11C22 13.8284 22 15.2426 21.1213 16.1213C20.2426 17 18.8284 17 16 17H8C5.17157 17 3.75736 17 2.87868 16.1213C2 15.2426 2 13.8284 2 11V10Z\"/><path d=\"M16 22H8\"/><path d=\"M12 17L12 22\"/><path d=\"M22 13H2\"/></g>",
30
- "moon": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M12 22C17.5228 22 22 17.5228 22 12C22 11.5373 21.3065 11.4608 21.0672 11.8568C19.9289 13.7406 17.8615 15 15.5 15C11.9101 15 9 12.0899 9 8.5C9 6.13845 10.2594 4.07105 12.1432 2.93276C12.5392 2.69347 12.4627 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\"/>",
31
- "pen": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" d=\"M14.3601 4.07866L15.2869 3.15178C16.8226 1.61607 19.3125 1.61607 20.8482 3.15178C22.3839 4.68748 22.3839 7.17735 20.8482 8.71306L19.9213 9.63993M14.3601 4.07866C14.3601 4.07866 14.4759 6.04828 16.2138 7.78618C17.9517 9.52407 19.9213 9.63993 19.9213 9.63993M19.9213 9.63993L11.4001 18.1612C10.8229 18.7383 10.5344 19.0269 10.2162 19.2751C9.84082 19.5679 9.43469 19.8189 9.00498 20.0237C8.6407 20.1973 8.25352 20.3263 7.47918 20.5844L4.19792 21.6782L3.39584 21.9456C3.01478 22.0726 2.59466 21.9734 2.31063 21.6894C2.0266 21.4053 1.92743 20.9852 2.05445 20.6042L2.32181 19.8021L3.41556 16.5208C3.67368 15.7465 3.80273 15.3593 3.97634 14.995C4.18114 14.5653 4.43213 14.1592 4.7249 13.7838C4.97308 13.4656 5.26166 13.1771 5.83882 12.5999L14.3601 4.07866M4.19792 21.6782L2.32181 19.8021\"/>",
32
- "select": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M21 6L3 6\"/><path d=\"M21 10L3 10\"/><path d=\"M10 14H3\"/><path d=\"M10 18H3\"/><path stroke-linejoin=\"round\" d=\"M14 15L17.5 18L21 15\"/></g>",
33
- "shield-check": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M3 10.4167C3 7.21907 3 5.62028 3.37752 5.08241C3.75503 4.54454 5.25832 4.02996 8.26491 3.00079L8.83772 2.80472C10.405 2.26824 11.1886 2 12 2C12.8114 2 13.595 2.26824 15.1623 2.80472L15.7351 3.00079C18.7417 4.02996 20.245 4.54454 20.6225 5.08241C21 5.62028 21 7.21907 21 10.4167C21 10.8996 21 11.4234 21 11.9914C21 17.6294 16.761 20.3655 14.1014 21.5273C13.38 21.8424 13.0193 22 12 22C10.9807 22 10.62 21.8424 9.89856 21.5273C7.23896 20.3655 3 17.6294 3 11.9914C3 11.4234 3 10.8996 3 10.4167Z\"/><path stroke-linejoin=\"round\" d=\"M9.5 12.4L10.9286 14L14.5 10\"/></g>",
34
- "stars": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M8.03339 3.65784C8.37932 2.78072 9.62068 2.78072 9.96661 3.65785L11.0386 6.37599C11.1442 6.64378 11.3562 6.85576 11.624 6.96137L14.3422 8.03339C15.2193 8.37932 15.2193 9.62068 14.3422 9.96661L11.624 11.0386C11.3562 11.1442 11.1442 11.3562 11.0386 11.624L9.96661 14.3422C9.62067 15.2193 8.37932 15.2193 8.03339 14.3422L6.96137 11.624C6.85575 11.3562 6.64378 11.1442 6.37599 11.0386L3.65784 9.96661C2.78072 9.62067 2.78072 8.37932 3.65785 8.03339L6.37599 6.96137C6.64378 6.85575 6.85576 6.64378 6.96137 6.37599L8.03339 3.65784Z\"/><path d=\"M16.4885 13.3481C16.6715 12.884 17.3285 12.884 17.5115 13.3481L18.3121 15.3781C18.368 15.5198 18.4802 15.632 18.6219 15.6879L20.6519 16.4885C21.116 16.6715 21.116 17.3285 20.6519 17.5115L18.6219 18.3121C18.4802 18.368 18.368 18.4802 18.3121 18.6219L17.5115 20.6519C17.3285 21.116 16.6715 21.116 16.4885 20.6519L15.6879 18.6219C15.632 18.4802 15.5198 18.368 15.3781 18.3121L13.3481 17.5115C12.884 17.3285 12.884 16.6715 13.3481 16.4885L15.3781 15.6879C15.5198 15.632 15.632 15.5198 15.6879 15.3781L16.4885 13.3481Z\"/></g>",
35
- "stop": "<path fill=\"currentColor\" d=\"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z\"/>",
36
- "sun": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"6\"/><path d=\"M12 2V3\"/><path d=\"M12 21V22\"/><path d=\"M22 12L21 12\"/><path d=\"M3 12L2 12\"/><path d=\"M19.0708 4.92969L18.678 5.32252\"/><path d=\"M5.32178 18.6777L4.92894 19.0706\"/><path d=\"M19.0708 19.0703L18.678 18.6775\"/><path d=\"M5.32178 5.32227L4.92894 4.92943\"/></g>",
37
- "text": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><path d=\"M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12C22 15.7712 22 17.6569 20.8284 18.8284C19.6569 20 17.7712 20 14 20H10C6.22876 20 4.34315 20 3.17157 18.8284C2 17.6569 2 15.7712 2 12Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 8.5H7.925C7.05492 8.5 6.61989 8.5 6.33575 8.75249C6.30638 8.77858 6.27858 8.80638 6.25249 8.83575C6 9.11989 6 9.55492 6 10.425M9 8.5H10.075C10.9451 8.5 11.3801 8.5 11.6643 8.75249C11.6936 8.77858 11.7214 8.80638 11.7475 8.83575C12 9.11989 12 9.55492 12 10.425M9 8.5V15.5M7 15.5H11\"/></g>",
38
- "transfer": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M20 10L4 10L9.5 4\"/><path d=\"M4 14L20 14L14.5 20\"/></g>",
39
- "trash": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\"><path d=\"M9.1709 4C9.58273 2.83481 10.694 2 12.0002 2C13.3064 2 14.4177 2.83481 14.8295 4\"/><path d=\"M20.5001 6H3.5\"/><path d=\"M18.8332 8.5L18.3732 15.3991C18.1962 18.054 18.1077 19.3815 17.2427 20.1907C16.3777 21 15.0473 21 12.3865 21H11.6132C8.95235 21 7.62195 21 6.75694 20.1907C5.89194 19.3815 5.80344 18.054 5.62644 15.3991L5.1665 8.5\"/><path d=\"M9.5 11L10 16\"/><path d=\"M14.5 11L14 16\"/></g>",
3
+ "add": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M5 12L19 12\"/><path d=\"M12 5L12 19\"/></g>",
4
+ "arrow-down": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M6 9L12 15L18 9\"/></g>",
5
+ "arrow-left": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M15 18L9 12L15 6\"/></g>",
6
+ "arrow-right": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M9 18L15 12L9 6\"/></g>",
7
+ "arrow-up": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 19V5\"/><path d=\"M6 11L12 5L18 11\"/></g>",
8
+ "book": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M5 18V6A2.5 2.5 0 0 1 7.5 3.5H19V20.5H7.5A2.5 2.5 0 0 1 5 18A2.5 2.5 0 0 1 7.5 15.5H19\"/><path d=\"M9 8H15\"/></g>",
9
+ "check": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M5 12.5L9.5 17L19 7\"/></g>",
10
+ "checkbox": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"17\" rx=\"3.5\"/><path d=\"M8.5 12.5L11 15L15.5 9.5\"/></g>",
11
+ "chevrons-left": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M11 17L6 12L11 7\"/><path d=\"M18 17L13 12L18 7\"/></g>",
12
+ "chevrons-right": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M13 17L18 12L13 7\"/><path d=\"M6 17L11 12L6 7\"/></g>",
13
+ "clock": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 7.5V12L15 14\"/></g>",
14
+ "close": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M6 6L18 18\"/><path d=\"M18 6L6 18\"/></g>",
15
+ "code": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M8 7L3.5 12L8 17\"/><path d=\"M16 7L20.5 12L16 17\"/><path d=\"M13.5 4.5L10.5 19.5\"/></g>",
16
+ "copy": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"8.5\" y=\"8.5\" width=\"12\" height=\"12\" rx=\"2.5\"/><path d=\"M15.5 8.5V6A2.5 2.5 0 0 0 13 3.5H6A2.5 2.5 0 0 0 3.5 6V13A2.5 2.5 0 0 0 6 15.5H8.5\"/></g>",
17
+ "datetime": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3.5\" y=\"5\" width=\"17\" height=\"15.5\" rx=\"3\"/><path d=\"M3.5 10H20.5\"/><path d=\"M8 3.5V6.5\"/><path d=\"M16 3.5V6.5\"/></g>",
18
+ "dialog": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M7.5 7H13.5A3.5 3.5 0 0 1 17 10.5V13.5A3.5 3.5 0 0 1 13.5 17H10.5L7.5 19.5V17A3.5 3.5 0 0 1 4 13.5V10.5A3.5 3.5 0 0 1 7.5 7Z\"/><path d=\"M8.5 7A3.5 3.5 0 0 1 12 4H16.5A3.5 3.5 0 0 1 20 7.5V10.5A3.5 3.5 0 0 1 17 13.95\"/><path d=\"M7.5 12H7.51M10.5 12H10.51M13.5 12H13.51\"/></g>",
19
+ "document": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M14 3.5H7.5A2.5 2.5 0 0 0 5 6V18A2.5 2.5 0 0 0 7.5 20.5H16.5A2.5 2.5 0 0 0 19 18V8.5L14 3.5Z\"/><path d=\"M14 3.5V7A1.5 1.5 0 0 0 15.5 8.5H19\"/><path d=\"M8.5 13H15.5\"/><path d=\"M8.5 16.5H13\"/></g>",
20
+ "download": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 4V14.5\"/><path d=\"M7.5 10L12 14.5L16.5 10\"/><path d=\"M4 15V17A3 3 0 0 0 7 20H17A3 3 0 0 0 20 17V15\"/></g>",
21
+ "eraser": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M8.5 19.5L4.3 15.3A2 2 0 0 1 4.3 12.5L12.5 4.3A2 2 0 0 1 15.3 4.3L19.7 8.7A2 2 0 0 1 19.7 11.5L11.7 19.5\"/><path d=\"M8.5 19.5H20\"/><path d=\"M7.5 9.5L14.5 16.5\"/></g>",
22
+ "error": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 7.5V12.5\"/><path d=\"M12 16.25H12.01\"/></g>",
23
+ "eye": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M3 12C5 7.6 8.2 5.5 12 5.5C15.8 5.5 19 7.6 21 12C19 16.4 15.8 18.5 12 18.5C8.2 18.5 5 16.4 3 12Z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></g>",
24
+ "globe": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12H21\"/><path d=\"M12 3A13.5 13.5 0 0 1 12 21A13.5 13.5 0 0 1 12 3Z\"/></g>",
25
+ "json": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M8.5 4H7.5A2 2 0 0 0 5.5 6V9.5A2.5 2.5 0 0 1 3.5 12A2.5 2.5 0 0 1 5.5 14.5V18A2 2 0 0 0 7.5 20H8.5\"/><path d=\"M15.5 4H16.5A2 2 0 0 1 18.5 6V9.5A2.5 2.5 0 0 0 20.5 12A2.5 2.5 0 0 0 18.5 14.5V18A2 2 0 0 1 16.5 20H15.5\"/></g>",
26
+ "maximize": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M13 4H20V11\"/><path d=\"M20 4L13.5 10.5\"/><path d=\"M11 20H4V13\"/><path d=\"M4 20L10.5 13.5\"/></g>",
27
+ "md": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"2.5\" y=\"5.5\" width=\"19\" height=\"13\" rx=\"3\"/><path d=\"M6.5 15V9L9 12L11.5 9V15\"/><path d=\"M16.5 9V15\"/><path d=\"M14.5 13L16.5 15L18.5 13\"/></g>",
28
+ "minimize": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M13.5 4V10.5H20\"/><path d=\"M20 4L13.5 10.5\"/><path d=\"M4 13.5H10.5V20\"/><path d=\"M4 20L10.5 13.5\"/></g>",
29
+ "monitor": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3.5\" y=\"4\" width=\"17\" height=\"12\" rx=\"2.5\"/><path d=\"M12 16V20\"/><path d=\"M8 20H16\"/></g>",
30
+ "moon": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 3.5A6.5 6.5 0 0 0 20.5 12A8.5 8.5 0 1 1 12 3.5Z\"/></g>",
31
+ "pen": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M16.5 4.5A2.12 2.12 0 0 1 19.5 7.5L8 19L4 20L5 16Z\"/><path d=\"M14.5 6.5L17.5 9.5\"/></g>",
32
+ "select": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M4 6.5H20\"/><path d=\"M4 12H20\"/><path d=\"M4 17.5H11\"/><path d=\"M15 16L17.5 18.5L20 16\"/></g>",
33
+ "shield-check": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 3.5C14 5 16.3 5.8 18.6 5.9A0.9 0.9 0 0 1 19.5 6.8V12C19.5 16.2 16.4 19.2 12.3 20.4A1 1 0 0 1 11.7 20.4C7.6 19.2 4.5 16.2 4.5 12V6.8A0.9 0.9 0 0 1 5.4 5.9C7.7 5.8 10 5 12 3.5Z\"/><path d=\"M9 12L11 14L15 10\"/></g>",
34
+ "stars": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M10 3.5Q10.8 9.2 16.5 10Q10.8 10.8 10 16.5Q9.2 10.8 3.5 10Q9.2 9.2 10 3.5Z\"/><path d=\"M17.5 14Q17.8 17.2 21 17.5Q17.8 17.8 17.5 21Q17.2 17.8 14 17.5Q17.2 17.2 17.5 14Z\"/></g>",
35
+ "stop": "<g fill=\"currentColor\" stroke=\"none\"><rect x=\"4.5\" y=\"4.5\" width=\"15\" height=\"15\" rx=\"3\"/></g>",
36
+ "sun": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"3.5\"/><path d=\"M12 3.5V5\"/><path d=\"M12 19V20.5\"/><path d=\"M3.5 12H5\"/><path d=\"M19 12H20.5\"/><path d=\"M6 6L7.06 7.06\"/><path d=\"M16.94 16.94L18 18\"/><path d=\"M6 18L7.06 16.94\"/><path d=\"M16.94 7.06L18 6\"/></g>",
37
+ "text": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"17\" rx=\"3.5\"/><path d=\"M8.5 8.5H15.5\"/><path d=\"M12 8.5V16\"/></g>",
38
+ "transfer": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M20 9H4.5\"/><path d=\"M8.5 5L4.5 9\"/><path d=\"M4 15H19.5\"/><path d=\"M15.5 19L19.5 15\"/></g>",
39
+ "trash": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M4 6.5H20\"/><path d=\"M9.5 6.5V5A1.5 1.5 0 0 1 11 3.5H13A1.5 1.5 0 0 1 14.5 5V6.5\"/><path d=\"M6 6.5L6.8 18.2A2.5 2.5 0 0 0 9.3 20.5H14.7A2.5 2.5 0 0 0 17.2 18.2L18 6.5\"/><path d=\"M10 10.5V16.5\"/><path d=\"M14 10.5V16.5\"/></g>",
40
+ "arrow-back": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M19 12H5\"/><path d=\"M11 6L5 12L11 18\"/></g>",
41
+ "arrow-forward": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M5 12H19\"/><path d=\"M13 6L19 12L13 18\"/></g>",
42
+ "refresh": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M18.96 16.88A8.5 8.5 0 1 1 18.01 5.99L20.5 8.5\"/><path d=\"M20.5 3.5V8.5H15.5\"/></g>",
43
+ "more": "<g fill=\"currentColor\" stroke=\"none\"><circle cx=\"5.5\" cy=\"12\" r=\"1.6\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\"/><circle cx=\"18.5\" cy=\"12\" r=\"1.6\"/></g>",
44
+ "panel": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3.5\" y=\"3.5\" width=\"17\" height=\"17\" rx=\"3.5\"/><path d=\"M3.5 10H20.5\"/><path d=\"M9 15H15\"/></g>",
45
+ "window": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M20.5 11V7A3.5 3.5 0 0 0 17 3.5H7A3.5 3.5 0 0 0 3.5 7V15.5A3.5 3.5 0 0 0 7 19H11\"/><rect x=\"14\" y=\"14\" width=\"7.5\" height=\"6\" rx=\"1.75\"/></g>",
46
+ "send": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M4 11L20.5 3.5L13 20L11 13L4 11Z\"/></g>",
47
+ "pointer": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M5.71 4.64L18.67 8.98Q19.91 9.4 18.73 9.94L13.01 12.59Q12.46 12.84 12.23 13.39L9.91 18.71Q9.4 19.91 8.98 18.67L4.64 5.71Q4.09 4.09 5.71 4.64Z\"/></g>",
48
+ "search": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"11\" cy=\"11\" r=\"6.5\"/><path d=\"M16 16L20 20\"/></g>",
40
49
  } as const;
41
50
 
42
51
  export type IconName = keyof typeof ICON_GLYPHS;
package/src/index.ts CHANGED
@@ -10,13 +10,15 @@ export type { InputNumberProps, InputProps, InputSize, PasswordProps, TextAreaPr
10
10
  export { Input, InputNumber, TextArea } from "./input/Input";
11
11
  export type { SearchInputProps } from "./input/SearchInput";
12
12
  export { SearchInput } from "./input/SearchInput";
13
+ export type { KbdProps } from "./kbd/Kbd";
14
+ export { Kbd } from "./kbd/Kbd";
13
15
  /** Native input element ref. */
14
16
  export type InputRef = HTMLInputElement;
15
17
 
16
18
  export type { AlertProps, AlertType } from "./alert/Alert";
17
19
  export { Alert } from "./alert/Alert";
18
- export type { BlobShapeAppearance, BlobShapeProps, BlobShapeVariant } from "./blob-shape/BlobShape";
19
- export { BlobShape } from "./blob-shape/BlobShape";
20
+ export type { BreadcrumbItem, BreadcrumbProps } from "./breadcrumb/Breadcrumb";
21
+ export { Breadcrumb } from "./breadcrumb/Breadcrumb";
20
22
  export type { CalendarProps } from "./calendar/Calendar";
21
23
  export { Calendar } from "./calendar/Calendar";
22
24
  export type { CardFooterProps, CardItemProps, CardProps } from "./card/Card";
@@ -27,6 +29,8 @@ export type { CodeBlockCopyButtonProps, CodeBlockProps } from "./codeblock/CodeB
27
29
  export { CodeBlock, CodeBlockCopyButton } from "./codeblock/CodeBlock";
28
30
  export type { ColorFormat, ColorPickerProps, ColorPickerSemanticSlot, ColorType, PresetColorType } from "./colorpicker/ColorPicker";
29
31
  export { Color, ColorPicker } from "./colorpicker/ColorPicker";
32
+ export type { CommandGroup, CommandItem, CommandPaletteProps } from "./command-palette/CommandPalette";
33
+ export { CommandPalette } from "./command-palette/CommandPalette";
30
34
  export type { DatePickerProps, RangePickerProps, RangeValue } from "./datepicker/DatePicker";
31
35
  export { DatePicker, RangePicker } from "./datepicker/DatePicker";
32
36
  export type { DrawerPlacement, DrawerProps } from "./drawer/Drawer";
@@ -77,6 +81,8 @@ export type { MessageConfig, MessageType } from "./message/message";
77
81
  export { message } from "./message/message";
78
82
  export type { ModalConfirmProps, ModalProps } from "./modal/Modal";
79
83
  export { Modal } from "./modal/Modal";
84
+ export type { PageHeaderProps } from "./page-header/PageHeader";
85
+ export { PageHeader } from "./page-header/PageHeader";
80
86
  export type { PaginationAlign, PaginationItemType, PaginationProps, PaginationSemanticSlot, PaginationSizeChangerProps } from "./pagination/Pagination";
81
87
  export { Pagination } from "./pagination/Pagination";
82
88
  export type { PopconfirmProps } from "./popconfirm/Popconfirm";
@@ -13,7 +13,7 @@ const FIELD_INSET: Record<CanonicalSize, string> = { small: "-4px", default: "-6
13
13
  const MULTILINE_MIN: Record<CanonicalSize, number> = { small: 56, default: 72, large: 96 };
14
14
  const GLASS_BORDER = 1;
15
15
 
16
- const fieldClass = (saving: boolean) => cn("relative z-1 m-0 w-full border-0 bg-transparent text-foreground placeholder:text-quaternary-foreground focus:outline-none", saving && "opacity-60");
16
+ const fieldClass = (saving: boolean) => cn("relative z-1 m-0 w-full border-0 bg-transparent text-foreground placeholder:text-tertiary-foreground focus:outline-none", saving && "opacity-60");
17
17
 
18
18
  type Lock = {
19
19
  top: number;
@@ -225,7 +225,7 @@ function EditButton({ label, size, onClick }: { label: string; size: CanonicalSi
225
225
  aria-label={label}
226
226
  title={label}
227
227
  onClick={onClick}
228
- className="inline-flex shrink-0 items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-muted hover:text-foreground group-hover/edit:opacity-100 focus-visible:opacity-100"
228
+ className="inline-flex shrink-0 items-center justify-center rounded text-muted-foreground opacity-0 transition-opacity hover:bg-ink-hover active:bg-ink-active hover:text-foreground group-hover/edit:opacity-100 focus-visible:opacity-100"
229
229
  style={{ width: box, height: box }}
230
230
  >
231
231
  <Icon name="pen" size={tok.icon} />
@@ -320,7 +320,7 @@ function EditableKey({ value, editing, onStartEdit, onCancelEdit, onSave, placeh
320
320
  <div ref={rowRef} className="flex w-full min-w-0 items-center" style={{ minHeight: controlHeightVar(resolved) }}>
321
321
  <div className="group/edit inline-flex max-w-full items-center gap-1">
322
322
  <div ref={textRef} className={cn("min-w-0", editing && "invisible")} style={{ fontSize: tok.fontSize, lineHeight: `${tok.lineHeight}px`, minHeight: tok.lineHeight }}>
323
- <code className="select-text font-mono font-semibold tracking-wide text-foreground">{value}</code>
323
+ <code className="select-text font-mono font-medium text-foreground">{value}</code>
324
324
  </div>
325
325
  {editing ? null : <EditButton label={editLabel} size={resolved} onClick={onStartEdit} />}
326
326
  </div>
@@ -1,4 +1,4 @@
1
- import { type CSSProperties, forwardRef, type InputHTMLAttributes, type KeyboardEvent, type ReactNode, type TextareaHTMLAttributes, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
1
+ import { type ChangeEvent, type CSSProperties, forwardRef, type InputHTMLAttributes, type KeyboardEvent, type ReactNode, type TextareaHTMLAttributes, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
2
2
  import { cn } from "../lib/cn";
3
3
  import { type ControlSize, controlFieldFocusBorder, controlFieldStyle, controlFieldSurface, controlFieldTransition, controlHeightVar, controlRadiusVar, controlStatusClass, getSizeTokens, useControlSize } from "../lib/sizes";
4
4
 
@@ -15,7 +15,7 @@ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "p
15
15
  onPressEnter?: (e: KeyboardEvent<HTMLInputElement>) => void;
16
16
  };
17
17
 
18
- const fieldBase = cn("w-full", controlFieldSurface, "placeholder:text-quaternary-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-45", controlFieldFocusBorder);
18
+ const fieldBase = cn("w-full", controlFieldSurface, "placeholder:text-tertiary-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-45", controlFieldFocusBorder);
19
19
 
20
20
  function variantClass(variant: InputProps["variant"]) {
21
21
  if (variant === "borderless") return "border-transparent bg-transparent hover:bg-transparent shadow-none focus:border-transparent focus:bg-transparent focus-within:bg-transparent";
@@ -23,10 +23,25 @@ function variantClass(variant: InputProps["variant"]) {
23
23
  return "";
24
24
  }
25
25
 
26
- const InputRoot = forwardRef<HTMLInputElement, InputProps>(function Input({ className, size, status, prefix, suffix, allowClear, variant = "outlined", disabled, value, onChange, onPressEnter, onKeyDown, style, ...rest }, ref) {
26
+ const InputRoot = forwardRef<HTMLInputElement, InputProps>(function Input({ className, size, status, prefix, suffix, allowClear, variant = "outlined", disabled, value, defaultValue, onChange, onPressEnter, onKeyDown, style, ...rest }, ref) {
27
27
  const fieldStyle = controlFieldStyle(useControlSize(size));
28
- const showClear = allowClear && !disabled && value != null && String(value).length > 0;
29
- const wrapped = Boolean(prefix || suffix || showClear);
28
+ // `allowClear` needs to know the text, so an uncontrolled input keeps it locally.
29
+ const controlled = value !== undefined;
30
+ const [inner, setInner] = useState(() => (defaultValue == null ? "" : String(defaultValue)));
31
+ const current = controlled ? value : inner;
32
+ const showClear = allowClear && !disabled && current != null && String(current).length > 0;
33
+ // Keep the wrapper whenever a clear button may appear, so the <input> is not remounted (and does not lose focus) on the first keystroke.
34
+ const wrapped = Boolean(prefix || suffix || allowClear);
35
+
36
+ const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
37
+ if (!controlled) setInner(e.target.value);
38
+ onChange?.(e);
39
+ };
40
+
41
+ const clear = () => {
42
+ if (!controlled) setInner("");
43
+ onChange?.({ target: { value: "" }, currentTarget: { value: "" } } as never);
44
+ };
30
45
 
31
46
  const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {
32
47
  onKeyDown?.(e);
@@ -37,8 +52,9 @@ const InputRoot = forwardRef<HTMLInputElement, InputProps>(function Input({ clas
37
52
  <input
38
53
  ref={ref}
39
54
  disabled={disabled}
40
- value={value}
41
- onChange={onChange}
55
+ value={allowClear ? current : value}
56
+ defaultValue={allowClear ? undefined : defaultValue}
57
+ onChange={handleChange}
42
58
  onKeyDown={handleKeyDown}
43
59
  className={cn(fieldBase, controlFieldTransition, controlStatusClass(status), variantClass(variant), wrapped && "border-0 bg-transparent h-full focus:bg-transparent p-0!", !wrapped && className)}
44
60
  style={wrapped ? { height: "100%", fontSize: fieldStyle.fontSize, lineHeight: fieldStyle.lineHeight, ...style } : { ...fieldStyle, ...style }}
@@ -56,7 +72,7 @@ const InputRoot = forwardRef<HTMLInputElement, InputProps>(function Input({ clas
56
72
  {prefix ? <span className="shrink-0 text-muted-foreground inline-flex items-center">{prefix}</span> : null}
57
73
  {input}
58
74
  {showClear ? (
59
- <button type="button" className="shrink-0 text-muted-foreground hover:text-foreground text-xs leading-none" aria-label="Clear" onClick={() => onChange?.({ target: { value: "" } } as never)}>
75
+ <button type="button" className="shrink-0 text-muted-foreground hover:text-foreground text-xs leading-none" aria-label="Clear" onClick={clear}>
60
76
  ×
61
77
  </button>
62
78
  ) : null}
@@ -169,9 +185,9 @@ function HandlerChevron({ dir, size }: { dir: "up" | "down"; size: number }) {
169
185
  }
170
186
 
171
187
  /** Stepper reveal and press. Same ease-out and duration as the field focus. */
172
- const handlerEase = "duration-[var(--nonla-dur-fast,150ms)] ease-[var(--nonla-ease-out,cubic-bezier(0.16,1,0.3,1))] motion-reduce:transition-none";
188
+ const handlerEase = "duration-(--nonla-dur-fast) ease-(--nonla-ease-out) motion-reduce:transition-none";
173
189
 
174
- const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(function InputNumber({ value, defaultValue, onChange, min, max, step = 1, controls = true, precision, parser, formatter, disabled, size, status, className, style, placeholder, onBlur, onFocus, onKeyDown, ...rest }, ref) {
190
+ const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(function InputNumber({ value, defaultValue, onChange, min, max, step = 1, controls = true, precision, parser, formatter, disabled, size, status, className, style, placeholder, onBlur, onFocus, onKeyDown, onPressEnter, ...rest }, ref) {
175
191
  const controlled = value !== undefined;
176
192
  const [inner, setInner] = useState<number | null>(defaultValue ?? null);
177
193
  const numeric = controlled ? (value ?? null) : inner;
@@ -237,6 +253,7 @@ const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(function Inpu
237
253
  stepBy(-1);
238
254
  }
239
255
  onKeyDown?.(e);
256
+ if (e.key === "Enter" && !e.nativeEvent.isComposing) onPressEnter?.(e);
240
257
  };
241
258
 
242
259
  return (
@@ -278,7 +295,7 @@ const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(function Inpu
278
295
  }}
279
296
  onKeyDown={handleKeyDown}
280
297
  className={cn(
281
- "min-w-0 flex-1 border-0 bg-transparent text-foreground placeholder:text-quaternary-foreground outline-none",
298
+ "min-w-0 flex-1 border-0 bg-transparent text-foreground placeholder:text-tertiary-foreground outline-none",
282
299
  "disabled:cursor-not-allowed",
283
300
  // Kill native number chrome if type ever switches
284
301
  "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
@@ -307,7 +324,7 @@ const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(function Inpu
307
324
  tabIndex={-1}
308
325
  aria-label="Increase"
309
326
  disabled={atMax}
310
- className={cn("flex flex-1 items-center justify-center border-b border-input text-tertiary-foreground", "transition-colors", handlerEase, "hover:bg-ink-hover hover:text-foreground active:bg-ink-active active:duration-75", "disabled:pointer-events-none disabled:opacity-30")}
327
+ className={cn("flex flex-1 items-center justify-center border-b border-input text-tertiary-foreground", "transition-colors", handlerEase, "hover:bg-ink-hover hover:text-foreground active:bg-ink-active active:duration-(--nonla-dur-instant)", "disabled:pointer-events-none disabled:opacity-30")}
311
328
  onMouseDown={(e) => e.preventDefault()}
312
329
  onClick={() => stepBy(1)}
313
330
  >
@@ -318,7 +335,7 @@ const InputNumber = forwardRef<HTMLInputElement, InputNumberProps>(function Inpu
318
335
  tabIndex={-1}
319
336
  aria-label="Decrease"
320
337
  disabled={atMin}
321
- className={cn("flex flex-1 items-center justify-center text-tertiary-foreground", "transition-colors", handlerEase, "hover:bg-ink-hover hover:text-foreground active:bg-ink-active active:duration-75", "disabled:pointer-events-none disabled:opacity-30")}
338
+ className={cn("flex flex-1 items-center justify-center text-tertiary-foreground", "transition-colors", handlerEase, "hover:bg-ink-hover hover:text-foreground active:bg-ink-active active:duration-(--nonla-dur-instant)", "disabled:pointer-events-none disabled:opacity-30")}
322
339
  onMouseDown={(e) => e.preventDefault()}
323
340
  onClick={() => stepBy(-1)}
324
341
  >
@@ -0,0 +1,32 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ import { cn } from "../lib/cn";
3
+
4
+ export type KbdProps = HTMLAttributes<HTMLElement> & {
5
+ /** Keys of a shortcut, drawn as separate caps: `["⌘", "K"]`. Without it, `children` is one cap. */
6
+ keys?: ReactNode[];
7
+ };
8
+
9
+ const capClass = "inline-flex h-5 min-w-5 items-center justify-center rounded-md border border-solid border-border bg-background px-1 text-xs leading-none font-medium text-muted-foreground";
10
+ /** `.nonla-ui kbd` is mono for markdown; caps read better in the UI font. */
11
+ const capStyle = { fontFamily: "var(--nonla-font)", letterSpacing: "0" };
12
+
13
+ /** Keyboard key cap for shortcuts in menus, search fields, and tooltips. */
14
+ export function Kbd({ keys, className, children, ...rest }: KbdProps) {
15
+ if (keys?.length) {
16
+ return (
17
+ <span className={cn("inline-flex items-center gap-1", className)} {...rest}>
18
+ {keys.map((key, i) => (
19
+ // biome-ignore lint/suspicious/noArrayIndexKey: keys of a shortcut can repeat and never reorder
20
+ <kbd key={i} className={capClass} style={capStyle}>
21
+ {key}
22
+ </kbd>
23
+ ))}
24
+ </span>
25
+ );
26
+ }
27
+ return (
28
+ <kbd {...rest} className={cn(capClass, className)} style={{ ...capStyle, ...rest.style }}>
29
+ {children}
30
+ </kbd>
31
+ );
32
+ }
package/src/lib/cn.ts CHANGED
@@ -4,3 +4,10 @@ import { twMerge } from "tailwind-merge";
4
4
  export function cn(...inputs: ClassValue[]) {
5
5
  return twMerge(clsx(inputs));
6
6
  }
7
+
8
+ /**
9
+ * Keyboard focus ring for buttons, toggles, and icon buttons (`--nonla-focus-ring`).
10
+ * The 2px offset keeps it visible on solid brand fills. Fields use the border instead.
11
+ */
12
+ export const focusRing =
13
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";
@@ -1,14 +1,16 @@
1
1
  import type { CSSProperties } from "react";
2
2
 
3
3
  /**
4
- * One markdown scale. Body reads `text-md` (`--nonla-md-text-size`). Leading is 1.6.
4
+ * One markdown scale. Body reads `--nonla-base-text-size` (`text-base`). Leading is 1.6.
5
5
  * Tables always use `text-base`.
6
- * Inline code and fenced code read `--nonla-mono-text-size`.
6
+ * Fenced code reads `--nonla-mono-text-size`, which is `text-sm`.
7
+ * Inline code is `0.95em` of the surrounding text: Geist Mono has a shorter x-height than Inter, so at 0.95em
8
+ * its lowercase stands about 93% as tall as the body (0.875em was 85% and read small). The chip still fits the line.
7
9
  * Class fallbacks match these values when the variables are not set.
8
10
  */
9
11
  export const markdownScaleStyle = {
10
- "--md-body-size": "var(--nonla-md-text-size)",
11
- "--md-body-leading": "calc(var(--nonla-md-text-size) * 1.6)",
12
+ "--md-body-size": "var(--nonla-base-text-size)",
13
+ "--md-body-leading": "calc(var(--nonla-base-text-size) * 1.6)",
12
14
  "--md-h1-size": "32px",
13
15
  "--md-h1-leading": "1.25",
14
16
  "--md-h1-weight": "800",
@@ -56,7 +58,7 @@ export const markdownScaleStyle = {
56
58
  "--md-code-my": "8px",
57
59
  "--md-code-size": "var(--nonla-mono-text-size)",
58
60
  "--md-code-leading": "calc(var(--nonla-mono-text-size) * 1.6)",
59
- "--md-inline-size": "var(--nonla-mono-text-size)",
61
+ "--md-inline-size": "0.95em",
60
62
  "--md-item-pl": "4px",
61
63
  "--md-nest": "1.25rem",
62
64
  } as CSSProperties;
@@ -77,7 +79,16 @@ export function headingClass(level: number): string {
77
79
  export const pageTitleClass = "text-foreground mt-(--md-h1-mt,0px) mb-(--md-h1-mb,1px) pt-(--md-h1-py,3px) pb-(--md-h1-py,3px) text-(length:--md-h1-size,32px) leading-(--md-h1-leading,1.25) font-(--md-h1-weight,800) tracking-tight";
78
80
 
79
81
  /** Body line. Same size and color as a markdown paragraph. */
80
- export const markdownBodyClass = "text-(length:--md-body-size,var(--nonla-md-text-size,16px)) leading-(--md-body-leading,calc(var(--nonla-md-text-size,16px)*1.6)) text-foreground";
82
+ export const markdownBodyClass = "text-(length:--md-body-size,var(--nonla-base-text-size,15px)) leading-(--md-body-leading,calc(var(--nonla-base-text-size,15px)*1.6)) text-foreground";
81
83
 
82
84
  /** Paragraph box. Same rhythm as `MarkdownViewer` `p`. */
83
- export const markdownParagraphClass = "nonla-typo m-0 my-(--md-p-my,1px) py-(--md-p-py,4px) text-(length:--md-body-size,var(--nonla-md-text-size,16px)) leading-(--md-p-leading,1.6) text-foreground";
85
+ export const markdownParagraphClass = "nonla-typo m-0 my-(--md-p-my,1px) py-(--md-p-py,4px) text-(length:--md-body-size,var(--nonla-base-text-size,15px)) leading-(--md-p-leading,1.6) text-foreground";
86
+
87
+ /**
88
+ * Inline code. Slightly smaller than the line, normal weight, a 4% wash and a 6% hairline (inset, so the box size does not change).
89
+ * Both are ink on whatever sits behind, so the chip reads on the page, a card, and a chat bubble.
90
+ * A token stays whole; the line breaks before it.
91
+ * Side padding 0.3em matches the space above the caps and below the baseline; the radius scales with the size (≈4px in body, more in headings).
92
+ */
93
+ export const markdownInlineCodeClass =
94
+ "nonla-inline-code rounded-[0.3em] bg-(--nonla-inline-code-bg) shadow-[inset_0_0_0_1px_var(--nonla-inline-code-ring)] px-[0.3em] py-px align-baseline font-mono text-(length:--md-inline-size,0.95em) leading-none whitespace-nowrap";
package/src/lib/sizes.ts CHANGED
@@ -91,7 +91,7 @@ export function controlStatusClass(status?: "error" | "warning"): string {
91
91
  }
92
92
 
93
93
  /** Focus surface fade — Input / Select / DatePicker / TimePicker. */
94
- export const controlFieldTransition = "transition-[background-color,border-color] duration-[var(--nonla-dur-fast,150ms)] ease-[var(--nonla-ease-out,cubic-bezier(0.16,1,0.3,1))] motion-reduce:transition-none";
94
+ export const controlFieldTransition = "transition-[background-color,border-color] duration-(--nonla-dur-fast) ease-(--nonla-ease-out) motion-reduce:transition-none";
95
95
 
96
96
  /**
97
97
  * Outlined field. Resting stroke is `--input` (Cursor `--border-secondary`, ink at 12%).
@@ -5,14 +5,14 @@ export const glassSurfaceClass =
5
5
  /** Floating overlay chrome (Popover / Dropdown / Select / pickers / Tooltip). */
6
6
  export const glassOverlayClass = [
7
7
  glassSurfaceClass,
8
- "nonla-popup-layer nonla-popper z-[var(--nonla-z-popup,1050)] rounded-xl outline-none will-change-[transform,opacity]",
8
+ "nonla-popup-layer nonla-popper z-[var(--nonla-z-popup,1050)] rounded-lg outline-none will-change-[transform,opacity]",
9
9
  "[transform-origin:var(--radix-popover-content-transform-origin,var(--radix-dropdown-menu-content-transform-origin,var(--radix-select-content-transform-origin,var(--radix-tooltip-content-transform-origin,center))))]",
10
10
  "data-[state=open]:data-[side=top]:animate-[nonla-pop-in-top_var(--nonla-dur-fast)_var(--nonla-ease-out)]",
11
11
  "data-[state=open]:data-[side=bottom]:animate-[nonla-pop-in-bottom_var(--nonla-dur-fast)_var(--nonla-ease-out)]",
12
12
  "data-[state=open]:data-[side=left]:animate-[nonla-pop-in-left_var(--nonla-dur-fast)_var(--nonla-ease-out)]",
13
13
  "data-[state=open]:data-[side=right]:animate-[nonla-pop-in-right_var(--nonla-dur-fast)_var(--nonla-ease-out)]",
14
14
  "data-[state=open]:not-data-[side]:animate-[nonla-pop-in-bottom_var(--nonla-dur-fast)_var(--nonla-ease-out)]",
15
- "data-[state=closed]:animate-[nonla-pop-out_100ms_var(--nonla-ease-in)]",
15
+ "data-[state=closed]:animate-[nonla-pop-out_var(--nonla-dur-instant)_var(--nonla-ease-in)]",
16
16
  ].join(" ");
17
17
 
18
18
  /** Meadow menus — same panel as overlays. */
@@ -44,12 +44,12 @@ function DiffText({ line }: { line: DiffLine }) {
44
44
  }
45
45
 
46
46
  function Gutter({ value, className }: { value?: number; className?: string }) {
47
- return <span className={cn("w-10 shrink-0 select-none pr-2 text-right font-mono text-[11px] leading-5 text-quaternary-foreground tabular-nums", className)}>{value ?? ""}</span>;
47
+ return <span className={cn("w-10 shrink-0 select-none pr-2 text-right font-mono text-xs leading-5 text-quaternary-foreground tabular-nums", className)}>{value ?? ""}</span>;
48
48
  }
49
49
 
50
50
  function Mark({ kind }: { kind: DiffLine["kind"] }) {
51
51
  return (
52
- <span aria-hidden className={cn("w-4 shrink-0 text-center font-mono text-[13px] leading-5", kind === "insert" && "text-success", kind === "delete" && "text-destructive")}>
52
+ <span aria-hidden className={cn("w-4 shrink-0 text-center font-mono text-sm leading-5", kind === "insert" && "text-success", kind === "delete" && "text-destructive")}>
53
53
  {marker(kind)}
54
54
  </span>
55
55
  );
@@ -57,7 +57,7 @@ function Mark({ kind }: { kind: DiffLine["kind"] }) {
57
57
 
58
58
  function LineBody({ line }: { line: DiffLine }) {
59
59
  return (
60
- <span className="min-h-5 whitespace-pre pr-4 font-mono text-[13px] leading-5">
60
+ <span className="min-h-5 whitespace-pre pr-4 font-mono text-sm leading-5">
61
61
  <DiffText line={line} />
62
62
  </span>
63
63
  );
@@ -65,7 +65,7 @@ function LineBody({ line }: { line: DiffLine }) {
65
65
 
66
66
  function FoldButton({ count, onClick, span }: { count: number; onClick: () => void; span?: boolean }) {
67
67
  return (
68
- <button type="button" className={cn("flex w-full items-center justify-center border-y border-border bg-muted/70 py-0.5 text-xs text-link hover:bg-muted", span && "col-span-2")} onClick={onClick}>
68
+ <button type="button" className={cn("flex w-full items-center justify-center border-y border-border bg-muted py-0.5 text-xs text-link hover:bg-(--nonla-fill-strong)", span && "col-span-2")} onClick={onClick}>
69
69
  Show {count} unchanged {count === 1 ? "line" : "lines"}
70
70
  </button>
71
71
  );
@@ -78,7 +78,7 @@ function BlockEditor({
78
78
  });
79
79
  }}
80
80
  className={cn(
81
- "block w-full resize-none overflow-hidden border-0 bg-transparent font-[inherit] text-foreground shadow-none outline-none ring-0 placeholder:text-quaternary-foreground focus:outline-none focus:ring-0",
81
+ "block w-full resize-none overflow-hidden border-0 bg-transparent font-[inherit] text-foreground shadow-none outline-none ring-0 placeholder:text-tertiary-foreground focus:outline-none focus:ring-0",
82
82
  // Match rendered paragraph rhythm so the block does not jump when editing starts.
83
83
  mono ? "p-0 font-mono text-(length:--md-code-size,var(--nonla-mono-text-size)) leading-(--md-code-leading,calc(var(--nonla-mono-text-size)*1.6))" : markdownParagraphClass,
84
84
  !autoSize && "h-full",
@@ -25,7 +25,7 @@ export function MarkdownSource({ value, onChange, readOnly, placeholder = "Write
25
25
  <OverlayScroll className="h-full bg-card" innerClassName="overflow-x-auto">
26
26
  <div className="relative flex min-h-full" style={{ width: `max(100%, calc(3.5rem + ${longest + 2}ch))` }}>
27
27
  <div aria-hidden className="pointer-events-none absolute inset-x-0 bg-ink-hover" style={{ top: PAD + active * LINE, height: LINE }} />
28
- <div className="sticky left-0 z-20 w-12 shrink-0 select-none pt-2 text-right font-mono text-[12px] leading-5 text-quaternary-foreground">
28
+ <div className="sticky left-0 z-20 w-12 shrink-0 select-none pt-2 text-right font-mono text-xs leading-5 text-quaternary-foreground">
29
29
  {lines.map((_, index) => (
30
30
  // Line number is the row identity.
31
31
  // biome-ignore lint/suspicious/noArrayIndexKey: gutter row is the line number
@@ -63,7 +63,7 @@ export function MarkdownSource({ value, onChange, readOnly, placeholder = "Write
63
63
  setCursor(pos);
64
64
  });
65
65
  }}
66
- className="relative z-10 block w-full resize-none overflow-hidden bg-transparent py-2 pr-4 font-mono text-[13px] leading-5 text-foreground outline-none placeholder:text-quaternary-foreground"
66
+ className="relative z-10 block w-full resize-none overflow-hidden bg-transparent py-2 pr-4 font-mono text-sm leading-5 text-foreground outline-none placeholder:text-tertiary-foreground"
67
67
  style={{ height: Math.max(lines.length, 1) * LINE + PAD * 2 }}
68
68
  />
69
69
  </div>
@@ -77,7 +77,7 @@ export function MarkdownTable({ children }: { children: ReactNode }) {
77
77
 
78
78
  <dialog
79
79
  ref={dialogRef}
80
- className="inset-2.5 m-0 h-auto w-auto max-h-none max-w-none overflow-hidden rounded-xl border border-foreground/25 bg-card p-0 shadow-xl backdrop:bg-black/40 open:flex open:flex-col"
80
+ className="inset-2.5 m-0 h-auto w-auto max-h-none max-w-none overflow-hidden rounded-xl border border-border bg-card p-0 shadow-(--nonla-shadow) backdrop:bg-black/40 open:flex open:flex-col"
81
81
  onKeyDown={(e) => {
82
82
  if (e.key !== "Escape") return;
83
83
  e.preventDefault();
@@ -85,7 +85,7 @@ export function MarkdownTable({ children }: { children: ReactNode }) {
85
85
  closeFullscreen();
86
86
  }}
87
87
  >
88
- <div className="absolute top-5 right-5 z-50 flex items-center gap-1">
88
+ <div className="absolute top-5 right-5 z-10 flex items-center gap-1">
89
89
  <Button size="small" className="bg-background" icon={<Icon name={copied ? "check" : "copy"} size={12} />} title={copied ? "Copied" : "Copy as Markdown"} aria-label={copied ? "Copied" : "Copy as Markdown"} onClick={copyMarkdown} />
90
90
  <Button size="small" className="bg-background" icon={<Icon name="minimize" size={12} />} title="Exit fullscreen" aria-label="Exit fullscreen" onClick={closeFullscreen} />
91
91
  </div>