Implement component test page

This commit is contained in:
Mikayla
2023-08-19 16:29:24 -07:00
parent e946b0a2ec
commit bfd3e53dcd
11 changed files with 217 additions and 21 deletions
+3 -2
View File
@@ -12,7 +12,6 @@ import simple_message_notification from "./simple_message_notification"
import project_shared_notification from "./project_shared_notification"
import tooltip from "./tooltip"
import terminal from "./terminal"
import contact_finder from "./contact_finder"
import collab_panel from "./collab_panel"
import toolbar_dropdown_menu from "./toolbar_dropdown_menu"
import incoming_call_notification from "./incoming_call_notification"
@@ -22,6 +21,7 @@ import assistant from "./assistant"
import { titlebar } from "./titlebar"
import editor from "./editor"
import feedback from "./feedback"
import component_test from "./component_test"
import { useTheme } from "../common"
export default function app(): any {
@@ -54,6 +54,7 @@ export default function app(): any {
tooltip: tooltip(),
terminal: terminal(),
assistant: assistant(),
feedback: feedback()
feedback: feedback(),
component_test: component_test(),
}
}
+19
View File
@@ -0,0 +1,19 @@
import { toggle_label_button_style } from "../component/label_button"
import { useTheme } from "../common"
import { text_button } from "../component/text_button"
import { toggleable_icon_button } from "../component/icon_button"
import { text } from "./components"
export default function contacts_panel(): any {
const theme = useTheme()
return {
button: text_button({}),
toggle: toggle_label_button_style({ active_color: "accent" }),
disclosure: {
...text(theme.lowest, "sans", "base"),
button: toggleable_icon_button(theme, {}),
spacing: 4,
}
}
}