text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
import clsx from "clsx"; import { ComponentProps } from "react"; import styles from "./Logo.module.css"; export function Logo({ className, ...props }: ComponentProps<"div">) { return ( <div className={clsx(className, styles.logo)} {...props}> <svg className={styles.mark} fill="none" ...
interiorly-promo-fake
components/Logo/Logo.tsx
TypeScript
8c3a18d2c4632b97d0789df103756eadc1abdee93d9af7ba7bc0c58c3820f056
0
195
export * from "./MarketingHeader"; export * from "./MarketingFooter";
interiorly-promo-fake
components/Marketing/index.ts
TypeScript
45ace9dd394f7e7a425b59a75a61ebf7114bd92ea5a64bf2e92d1e89c213f252
0
18
.footer { border-top: 1px solid var(--color-border); } .container { display: flex; height: var(--header-height); justify-content: space-between; place-items: center; } .copyright { color: var(--color-text-light); font-size: var(--size-sm); }
interiorly-promo-fake
components/Marketing/MarketingFooter.module.css
CSS
82bd502e6c0bf86ca4622b038c72d246f394ff8b443ed3e56dbc1a08de04d070
0
83
import clsx from "clsx"; import { ComponentProps, useMemo } from "react"; import { GitHubIcon } from "@/icons"; import { LinkButton } from "@/primitives/Button"; import { Container } from "@/primitives/Container"; import styles from "./MarketingFooter.module.css"; export function MarketingFooter({ className, ...pr...
interiorly-promo-fake
components/Marketing/MarketingFooter.tsx
TypeScript
38ac50fb8945ef54658188d9f0d750adbc612919ddc190de058354a11384158f
0
233
.header { border-bottom: 1px solid var(--color-border); } .container { display: flex; height: var(--header-height); justify-content: space-between; place-items: center; }
interiorly-promo-fake
components/Marketing/MarketingHeader.module.css
CSS
c4265b78788ec72ddd558459b068f94254b738f25ea4e46b5c21aee986895d09
0
53
import clsx from "clsx"; import Link from "next/link"; import { ComponentProps } from "react"; import { signIn } from "@/auth"; import { SignInIcon } from "@/icons"; import { Button } from "@/primitives/Button"; import { Container } from "@/primitives/Container"; import { Logo } from "../Logo"; import styles from "./Ma...
interiorly-promo-fake
components/Marketing/MarketingHeader.tsx
TypeScript
f6d75d1738f5568fc03a9e3780f4a5995c2c62bdf9827baa7f89e7be438899d7
0
224
export * from "./ShareDialog"; export * from "./ShareDialogDefault"; export * from "./ShareDialogGroups"; export * from "./ShareDialogInviteGroup"; export * from "./ShareDialogInviteUser"; export * from "./ShareDialogUsers";
interiorly-promo-fake
components/ShareDialog/index.ts
TypeScript
5f3b0211442275d4a7873202c83870b512aa977d4d795a316bcd09594596eb32
0
54
.dialog { width: 420px; max-width: 100%; } .dialogSection { padding: 0 var(--space-8); margin: var(--space-8) 0; } .dialogTabs { border-bottom: 1px solid var(--color-border); } .dialogTabList { display: flex; border-bottom: 1px solid var(--color-border); } .dialogTabContent { outline: none; } .dial...
interiorly-promo-fake
components/ShareDialog/ShareDialog.module.css
CSS
a4533e202325fe626b5bbccb7ee399f448681152eb790a9f889334922b4dfdca
0
285
import { useBroadcastEvent, useEventListener, } from "@liveblocks/react/suspense"; import * as Tabs from "@radix-ui/react-tabs"; import { useSession } from "next-auth/react"; import { ComponentProps, useCallback, useEffect, useState } from "react"; import { UserIcon, UsersIcon } from "@/icons"; import { getDocume...
interiorly-promo-fake
components/ShareDialog/ShareDialog.tsx
TypeScript
adcfeef3c286a8f139be0e8a071ba39d8b4e1129bc3406098ad4508b5fafc9ad
0
896
{styles.dialog}> <Tabs.Root className={styles.dialogTabs} defaultValue="users"> <Tabs.List className={styles.dialogTabList}> <Tabs.Trigger className={styles.dialogTab} value="users"> <span className={styles.dialogTabLabel}> <UserIcon className={style...
interiorly-promo-fake
components/ShareDialog/ShareDialog.tsx
TypeScript
813d5974ca8c9f2da1530ac05b83642ea68b3be976a808e46e0d946afa88b4de
1
551
.default { display: flex; flex-direction: column; gap: var(--space-6); } .section { display: flex; place-items: center; } .sectionLabel { display: flex; color: var(--color-text-lighter); cursor: pointer; font-size: var(--size-sm); place-items: center; } .sectionLabel[data-disabled] { cursor: de...
interiorly-promo-fake
components/ShareDialog/ShareDialogDefault.module.css
CSS
8c3e1867afc48542cd2cc9765a5ee70e61a31ef7e5216bea4f0739eef5f09ba3
0
190
import clsx from "clsx"; import { ComponentProps, useCallback, useEffect, useRef, useState, } from "react"; import { CheckIcon, CopyIcon, EditIcon, LinkIcon } from "@/icons"; import { updateDefaultAccess } from "@/lib/actions"; import { Button } from "@/primitives/Button"; import { Checkbox } from "@/primitiv...
interiorly-promo-fake
components/ShareDialog/ShareDialogDefault.tsx
TypeScript
d9d57aec89481c01168b9c5824036e14eaff32029478e2996f466f53099040b9
0
896
={styles.sectionAction}> {isPublicEditLoading ? ( <Spinner size={18} /> ) : ( <Checkbox checked={publicEdit} disabled={!fullAccess || isPublicEditLoading} id="public-edit-checkbox" initial...
interiorly-promo-fake
components/ShareDialog/ShareDialogDefault.tsx
TypeScript
7faa375b4aae145ee9a7e535427709730673f47eefe0944773f595bee468f970
1
174
import clsx from "clsx"; import { ComponentProps } from "react"; import { removeGroupAccess, updateGroupAccess } from "@/lib/actions"; import { Select } from "@/primitives/Select"; import { Document, DocumentAccess, DocumentGroup } from "@/types"; import styles from "./ShareDialogRows.module.css"; interface Props exte...
interiorly-promo-fake
components/ShareDialog/ShareDialogGroups.tsx
TypeScript
4cf3c7071a4509006483c227d1af7a1e42f6f0c470b4f992237450e346c0d738
0
527
.error, .note { padding: var(--space-5) var(--space-6); border-radius: var(--radius-sm); font-size: var(--size-sm); } .error { background: rgb(var(--color-red) / 10%); color: rgb(var(--color-red)); } .note { background: var(--color-surface); color: var(--color-text-light); } .inviteForm { display: fl...
interiorly-promo-fake
components/ShareDialog/ShareDialogInvite.module.css
CSS
e869f63f9b428c3715a1d6f6d98c6243d9d37e94b2fc886c114f93d38d285a25
0
172
import clsx from "clsx"; import { useSession } from "next-auth/react"; import { ComponentProps, FormEvent, useState } from "react"; import { PlusIcon } from "@/icons"; import { updateGroupAccess } from "@/lib/actions"; import { Button } from "@/primitives/Button"; import { Select } from "@/primitives/Select"; import { ...
interiorly-promo-fake
components/ShareDialog/ShareDialogInviteGroup.tsx
TypeScript
42261ded77d825f84be93d7d9b01c47e46ec37954a97e5fe80135880c5471ab5
0
676
import clsx from "clsx"; import { ComponentProps, FormEvent, useState } from "react"; import { PlusIcon } from "@/icons"; import { updateUserAccess } from "@/lib/actions"; import { Button } from "@/primitives/Button"; import { Input } from "@/primitives/Input"; import { Spinner } from "@/primitives/Spinner"; import { D...
interiorly-promo-fake
components/ShareDialog/ShareDialogInviteUser.tsx
TypeScript
31f38ce263d731a7517846b017af284f287eadd8c9fa31b6465a61dcb76eb42f
0
506
.rows { display: flex; flex-direction: column; gap: var(--space-6); } .row { display: flex; place-items: center; } .rowInfo { display: flex; flex-direction: column; align-items: flex-start; } .rowAvatar { margin-right: var(--space-4); } .rowName { font-size: var(--size-sm); font-weight: 500; }...
interiorly-promo-fake
components/ShareDialog/ShareDialogRows.module.css
CSS
fbf2fe8ff597bcab95c3bd2a10186e767e8795fd8e2d0122f9325d1d1e353fee
0
207
import clsx from "clsx"; import { ComponentProps } from "react"; import { removeUserAccess, updateUserAccess } from "@/lib/actions"; import { Avatar } from "@/primitives/Avatar"; import { Select } from "@/primitives/Select"; import { Document, DocumentAccess, DocumentUser } from "@/types"; import styles from "./ShareDi...
interiorly-promo-fake
components/ShareDialog/ShareDialogUsers.tsx
TypeScript
2fc2432eede37a39a507e34b408ebfa1d2a13cfdbf2b5790f9e682f14cecd7f5
0
686
.tiptapTaskItem { display: flex; margin: var(--space-2) 0 var(--space-2) var(--space-8); } .tiptipTaskItemCheckbox { flex: 0 0 auto; margin: var(--space-1) var(--space-6) 0 0; padding-top: 1px; user-select: none; } .tiptipTaskItemContent { flex: 1 1 auto; }
interiorly-promo-fake
components/TextEditor/CustomTaskItem.module.css
CSS
91c55d09939650a53ee1cc3e8b6b3e24534da9bd4ba25b688d6ece506a095eb3
0
90
import TaskItem from "@tiptap/extension-task-item"; import { NodeViewContent, NodeViewProps, NodeViewWrapper, ReactNodeViewRenderer, } from "@tiptap/react"; import { Checkbox } from "@/primitives/Checkbox"; import styles from "./CustomTaskItem.module.css"; // A custom task item that uses the checkbox primitive...
interiorly-promo-fake
components/TextEditor/CustomTaskItem.tsx
TypeScript
891a25a0ebb87b5c10ee252e37db36be1ab557a9f3c5c18478b77a9e989eb93e
0
193
export * from "./TextEditor";
interiorly-promo-fake
components/TextEditor/index.ts
TypeScript
6ab31bb3c7921da7e53d485997fe31fc1b30cab2e06426c1672766e40f3cf758
0
9
.container { display: flex; flex-direction: column; background: var(--color-surface); position: absolute; top: 0; right: 0; bottom: 0; left: 0; --editor-max-width: 800px; --editor-min-height: 1100px; --comments-width: 310px; } .editorHeader { top: 0; left: 0; right: 0; flex: 0 0; displ...
interiorly-promo-fake
components/TextEditor/TextEditor.module.css
CSS
637e29730bf28788fde4af3e87296e256dcce29ba35addf7cd5bfa481ac56127
0
866
"use client"; import { useSelf } from "@liveblocks/react"; import { ClientSideSuspense, useThreads } from "@liveblocks/react/suspense"; import { AnchoredThreads, FloatingComposer, FloatingThreads, useLiveblocksExtension, } from "@liveblocks/react-tiptap"; import { CharacterCount } from "@tiptap/extension-chara...
interiorly-promo-fake
components/TextEditor/TextEditor.tsx
TypeScript
732a05b1f3f01e2999f96d3606f4790051772c54ea973219e480acd9e50a693b
0
896
canWrite; // If canWrite changes, sync to Tiptap, as we're defaulting to false in the config if (editor && editor.isEditable !== canWrite) { editor.setEditable(canWrite); } return ( <div className={styles.container}> <div className={styles.editorHeader} data-disabled={disableTool...
interiorly-promo-fake
components/TextEditor/TextEditor.tsx
TypeScript
3a5d72d02e66292ade2acf7d18e13f46b6f10554dfb3f5117a1709bd264f5e6d
1
464
import { Toolbar } from "@liveblocks/react-tiptap"; import { Editor } from "@tiptap/react"; import { useState } from "react"; import { CrossIcon, HighlightIcon, LinkIcon } from "@/icons"; import { Button } from "@/primitives/Button"; import { Input } from "@/primitives/Input"; import { Popover } from "@/primitives/Popo...
interiorly-promo-fake
components/TextEditor/TextInlineAdvanced.tsx
TypeScript
ced44b425fba484addb7b234cdf54a678d776e01dc3a9aa84c89ad937b7cdf15
0
628
.toolbar { display: flex; align-items: center; gap: var(--space-2); } .toolbarButton { padding: var(--space-4); } .toolbarButton svg { height: 20px; width: 20px; } .toolbarSeparator { width: 1px; height: var(--space-10); background: var(--color-border); margin: 0 var(--space-2); } .toolbarPopove...
interiorly-promo-fake
components/TextEditor/Toolbar.module.css
CSS
420d775a3905a0a9506d7e9be0ea0f372a23eef95d58b3fc8a3e0b612ea53455
0
268
import { Toolbar } from "@liveblocks/react-tiptap"; import { Editor } from "@tiptap/react"; import { AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, } from "@/icons"; type Props = { editor: Editor | null; }; export function ToolbarAlignment({ editor }: Props) { return ( <> <Too...
interiorly-promo-fake
components/TextEditor/ToolbarAlignment.tsx
TypeScript
f59cba636a9b48ae4b909e24f0752d42b81d66f570395a2049835aa7e8231387
0
472
import { Toolbar } from "@liveblocks/react-tiptap"; import { Editor } from "@tiptap/react"; import { CheckboxIcon } from "@/icons"; import styles from "./Toolbar.module.css"; type Props = { editor: Editor | null; }; export function ToolbarBlockSelector({ editor }: Props) { return ( <Toolbar.BlockSelector ...
interiorly-promo-fake
components/TextEditor/ToolbarBlockSelector.tsx
TypeScript
c9c3c85f4a5453c178b4c12710ad9552b23de984703501ae8fd6f7d9bc078b2b
0
177
import { Toolbar } from "@liveblocks/react-tiptap"; import { Editor } from "@tiptap/react"; import { useState } from "react"; import { CodeBlockIcon, ImageIcon, YouTubeIcon } from "@/icons"; import { Button } from "@/primitives/Button"; import { Input } from "@/primitives/Input"; import { Popover } from "@/primitives/P...
interiorly-promo-fake
components/TextEditor/ToolbarMedia.tsx
TypeScript
c54ec0736d861defd09476396ef5b012a3a6578b40bec921daa6370834b05d5c
0
697
import { FloatingToolbar, Toolbar } from "@liveblocks/react-tiptap"; import { Editor } from "@tiptap/react"; import { ToolbarMedia } from "@/components/TextEditor/ToolbarMedia"; import { ToolbarInlineAdvanced } from "./TextInlineAdvanced"; import { ToolbarAlignment } from "./ToolbarAlignment"; import { ToolbarBlockSele...
interiorly-promo-fake
components/TextEditor/Toolbars.tsx
TypeScript
7aff1eccea57e5031bd1fe716bb2063621a13675dbaa50782b502e0d70039ccb
0
275
.wordCount { padding: var(--space-2) var(--space-4); color: var(--color-text-lightest); font-size: var(--size-xs); border-top: 1px solid var(--color-border); background: var(--color-surface-elevated); }
interiorly-promo-fake
components/TextEditor/WordCount.module.css
CSS
bbc3566817b8b660cf88e4da122b96a39708b81e5f1c609b950dd2761025cf89
0
78
import { Editor } from "@tiptap/react"; import styles from "./WordCount.module.css"; type Props = { editor: Editor; }; export function WordCount({ editor }: Props) { return ( <div className={styles.wordCount}> {editor.storage.characterCount.words()} words,{" "} {editor.storage.characterCount.chara...
interiorly-promo-fake
components/TextEditor/WordCount.tsx
TypeScript
8d006f764e5d86366ff29276ad37b2f561cc10d4dc58bc8c00d29d85c7b569ec
0
94
export * from "./Whiteboard"; export * from "./WhiteboardNote";
interiorly-promo-fake
components/Whiteboard/index.ts
TypeScript
42f9e85cb7759a44c0d0e6de0773790e1dbd6abdac6bc1551b3e8bb7f426832c
0
18
.canvas { position: relative; overflow: hidden; width: 100%; height: 100%; } .toolbar { position: absolute; z-index: var(--z-above); bottom: var(--space-10); left: 50%; display: flex; padding: var(--space-4); border: 1px solid var(--color-border); background: var(--color-surface-elevated); bo...
interiorly-promo-fake
components/Whiteboard/Whiteboard.module.css
CSS
d5054a79a9d72801e5ee46f1b0b49c46377f17c45fd3218d9a3af4d3bd3b8afd
0
175
import { LiveObject, shallow } from "@liveblocks/client"; import { ClientSideSuspense } from "@liveblocks/react"; import { useCanRedo, useCanUndo, useHistory, useMutation, useSelf, useStorage, } from "@liveblocks/react/suspense"; import clsx from "clsx"; import { nanoid } from "nanoid"; import { useSession ...
interiorly-promo-fake
components/Whiteboard/Whiteboard.tsx
TypeScript
846df83c5c0cdab48cbbd1bacc8df73ba7f9c5df99a1a5157dd271cffe8a88a6
0
896
when moving notes const rect = element.getBoundingClientRect(); const offset = { x: e.clientX - rect.left, y: e.clientY - rect.top, }; dragInfo.current = { noteId, element, offset }; setIsDragging(true); document.documentElement.classList.add("grabbing"); } // On canvas pointer...
interiorly-promo-fake
components/Whiteboard/Whiteboard.tsx
TypeScript
1acf0caf3cd15f9f560887e91fedb1cb92dc14cd935883e8ef54e61116f4a630
1
749
.container { position: absolute; width: auto; min-width: 250px; max-width: 400px; min-height: 100px; transition: transform var(--transition-linear); } .note { display: flex; overflow: hidden; flex-direction: column; padding: var(--space-5) var(--space-8) var(--space-7); border: 1px solid var(--co...
interiorly-promo-fake
components/Whiteboard/WhiteboardNote.module.css
CSS
c11dc1fee432816ec786eeafd2417f5934080c1094d9b8d1cc8b192e75d9be01
0
338
import { useStorage } from "@liveblocks/react/suspense"; import clsx from "clsx"; import { ChangeEventHandler, ComponentProps, FocusEventHandler, KeyboardEvent, PointerEventHandler, memo, useCallback, useRef, } from "react"; import { CrossIcon } from "@/icons"; import { Avatar } from "@/primitives/Avata...
interiorly-promo-fake
components/Whiteboard/WhiteboardNote.tsx
TypeScript
342fc668c6cb9383c5e471ba9c4fb848e997d3a34e1bce772972c7e985219458
0
640
/** * Random colors used in the app. */ export const colors = [ "#0077ff", "#00bbff", "#00cc88", "#88cc11", "#ffbb00", "#ff8811", "#ee1144", "#ee44bb", "#8855bf", ];
interiorly-promo-fake
data/colors.ts
TypeScript
a89f5465288180876969a201abdc1042648fce6ca3c89da6f4c2f79717d5c974
0
70
import { Group } from "@/types"; /** * This array simulates a database consisting of a list of groups. * Assign users to groups in /data/users.ts */ export const groups: Group[] = [ { id: "product", name: "Product", }, { id: "engineering", name: "Engineering", }, { id: "design", na...
interiorly-promo-fake
data/groups.ts
TypeScript
aa8a5a9ecaef99c538405adce58607e11a8f33caf1f282df9ccd4d3e4662d9aa
0
97
import { User } from "@/types"; /** * This array simulates a database consisting of a list of users. * After signing up with your auth solution (e.g. GitHub, Auth0) * place your user info in an object, with the email address you used * as the id. * The groupIds are the names of the groups the user is part of. * ...
interiorly-promo-fake
data/users.ts
TypeScript
dae45169287db4e13d95e6501f6bc31f3ce5e03074ee8a496db95d1b51b9c4b1
0
439
import { ComponentProps } from "react"; export function AlignCenterIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="ro...
interiorly-promo-fake
icons/AlignCenter.tsx
TypeScript
97eb6f758b830766a51ccad58d75bbbf6d3c131691a071cd162bed8271c5dc52
0
116
import { ComponentProps } from "react"; export function AlignJustifyIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="r...
interiorly-promo-fake
icons/AlignJustify.tsx
TypeScript
e934d83c1ee8dfe8d6ca776d18043a9494514002eed04989043a09032368b57f
0
116
import { ComponentProps } from "react"; export function AlignLeftIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="roun...
interiorly-promo-fake
icons/AlignLeft.tsx
TypeScript
72f9e5dc8a19178924029820d1b313eb062d61a79c5418c7a583c8e0c49c80bd
0
116
import { ComponentProps } from "react"; export function AlignRightIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="rou...
interiorly-promo-fake
icons/AlignRight.tsx
TypeScript
8b8779db46b6b8d4d3df204f1171376d1bf73bf2710ceb93b2fd80e8d649a9ee
0
116
import { ComponentProps } from "react"; export function BoldIcon(props: ComponentProps<"svg">) { return ( <svg width="20" height="20" fill="currentColor" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M8.21 13c2.106 0 3.412-1.087 3.412-2...
interiorly-promo-fake
icons/Bold.tsx
TypeScript
683332e82e17eb330d20daea94ecc4af07fc56f82ee25d2344f1546f758949dc
0
209
import { ComponentProps } from "react"; export function CheckIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="m13 4-6.333 8L3 8.667" stro...
interiorly-promo-fake
icons/Check.tsx
TypeScript
d0a4a86d1f5a4c5caad1e760d64201e4b30b320cf6d754c243e413fd4888d189
0
125
import { ComponentProps } from "react"; export function CheckboxIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round...
interiorly-promo-fake
icons/Checkbox.tsx
TypeScript
6c40abbd4b43dcf31fb5a55f781f4d7b65cb61f3ca9c86fa6303c2db0cbe7edc
0
149
import { ComponentProps } from "react"; export function CodeIcon(props: ComponentProps<"svg">) { return ( <svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" d="M...
interiorly-promo-fake
icons/Code.tsx
TypeScript
5063ffebb9ea7370b42678032911793cf46652689979f66a6e1e646ea6a4e1b2
0
235
import { ComponentProps } from "react"; export function CodeBlockIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="roun...
interiorly-promo-fake
icons/CodeBlock.tsx
TypeScript
21ae50e0360c39b178e2c2f957650013853f868f4579bdbf18283d7393b5a9e2
0
151
import { ComponentProps } from "react"; export function CommentIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={20} height={20} viewBox="0 0 20 20" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round"...
interiorly-promo-fake
icons/Comment.tsx
TypeScript
e3227f92004abc1d0b21fa3476d2de70009621faf2053a3c3eba399ec6c5cd50
0
160
import { ComponentProps } from "react"; export function CopyIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <rect x="7" y="7" width="7" ...
interiorly-promo-fake
icons/Copy.tsx
TypeScript
32bce81f9a05fc8d35463a9ce988714f373fa5835a412ec9ddeb35dbac291f48
0
213
import { ComponentProps } from "react"; export function CrossIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="m4 4 8 8M4 12l8-8" stroke="...
interiorly-promo-fake
icons/Cross.tsx
TypeScript
da578993ff93687d8f7ba98ad959011b7c308799e628e21f05c9e41867756902
0
127
import { ComponentProps } from "react"; export function DeleteIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M4 5h8l-.672 7.14a1.5 1.5 0 0 1-1....
interiorly-promo-fake
icons/Delete.tsx
TypeScript
dc24bfe46536dac40dfb5644e8b24fc43076c2047cd7dc1bcc6807d08b49cab5
0
209
import { ComponentProps } from "react"; export function EditIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M8 3H4.11111C3.81643 3 3.53381 3.117...
interiorly-promo-fake
icons/Edit.tsx
TypeScript
77b4b82ac479143cecc52438a1efa072cd7b4abc019f4d5769a8e46c6203740d
0
264
import { ComponentProps } from "react"; export function FileIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M5 2h4l4 4v6a2 2 0 0 1-2 2H5a2 2 0 0...
interiorly-promo-fake
icons/File.tsx
TypeScript
def239166667b208b10ff39fe373ea8cdd0417f545b488d295ebad487317018b
0
188
import { ComponentProps } from "react"; export function FolderIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M4 13h8a2 2 0 0 0 2-2V6.997a2 2 0 ...
interiorly-promo-fake
icons/Folder.tsx
TypeScript
343fa2fea75d033db7a2537c930069b1673025eb2865cda893a750b79ab313b2
0
186
import { ComponentProps } from "react"; export function GitHubIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="...
interiorly-promo-fake
icons/GitHub.tsx
TypeScript
27a63b8c02cd292ad71ca45f2003d2617c554de637188f7e17ed6a375f024b9b
0
376
import { ComponentProps } from "react"; export function HighlightIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round"...
interiorly-promo-fake
icons/Highlight.tsx
TypeScript
5155562a81bb73e4b49b3c2e65ff1ea042f9d80ab3508a6aa6b97916d81383c9
0
152
import { ComponentProps } from "react"; export function ImageIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" ...
interiorly-promo-fake
icons/Image.tsx
TypeScript
7749662c789276ce8ec5ae428bb4bcf4bc2b5ae1350ce6d1fb2a7193609c3c13
0
178
import { ComponentProps } from "react"; export function InboxIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="m2.05 8.85 1.5-4.48A2 2 0 0 1 5.44 ...
interiorly-promo-fake
icons/Inbox.tsx
TypeScript
ec395349734442f585e5f3a948f2b61776706a886dea789439bae9d3d22a1721
0
273
export * from "./AlignCenter"; export * from "./AlignJustify"; export * from "./AlignLeft"; export * from "./AlignRight"; export * from "./Bold"; export * from "./Check"; export * from "./Checkbox"; export * from "./Code"; export * from "./CodeBlock"; export * from "./Comment"; export * from "./Copy"; export * from "./...
interiorly-promo-fake
icons/index.ts
TypeScript
c6978f19a5955bce7f2238aa11dff04e77c92fe9668d4941c485f7b00afdbb6e
0
342
import { ComponentProps } from "react"; export function ItalicIcon(props: ComponentProps<"svg">) { return ( <svg width="20" height="20" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M7.991 11.674 9.53 4.455c.123-.595...
interiorly-promo-fake
icons/Italic.tsx
TypeScript
eea687e4430e69cb3508160cf2812aeb3cdb793cb06bb6f093e3074cb23c6b3b
0
175
import { ComponentProps } from "react"; export function LinkIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" ...
interiorly-promo-fake
icons/Link.tsx
TypeScript
cd483702c4646051c7dceefe4b73dee94538f10f8079769c78369fa0e1e11458
0
165
import { ComponentProps } from "react"; export function ListOrderedIcon(props: ComponentProps<"svg">) { return ( <svg width="20" height="20" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" ...
interiorly-promo-fake
icons/ListOrdered.tsx
TypeScript
b3d23144b25a8bcaa3f728a0df264634dae17f76a46ffdbe375fc7940e6128bf
0
503
import { ComponentProps } from "react"; export function ListUnorderedIcon(props: ComponentProps<"svg">) { return ( <svg width="20" height="20" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" ...
interiorly-promo-fake
icons/ListUnordered.tsx
TypeScript
90aa537f8dbe7b3384e327e748785b684103a0badcd7c75cd0cb8eabf0b88b03
0
258
import { ComponentProps } from "react"; export function MenuIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M2 8h12M2 4h12M2 12h12" stro...
interiorly-promo-fake
icons/Menu.tsx
TypeScript
ebcf76267e59865418960d3b22744beeb1caa02e109e9754e70d27186d7afc48
0
125
import { ComponentProps } from "react"; export function MoreIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0...
interiorly-promo-fake
icons/More.tsx
TypeScript
3d863693f32173cda536b72709cce9da1bce3635183040ba537b373740c0d853
0
152
import { ComponentProps } from "react"; export function PlusIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M8 3v10M3 8h10" stroke="curr...
interiorly-promo-fake
icons/Plus.tsx
TypeScript
768874b7a2f44f1e59d560b9f0f7f79dea390dcd91ed628a164aad388665840f
0
123
import { ComponentProps } from "react"; export function RedoIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M12 6H6a3 3 0 0 0-3 3v0a3 3 0 0 0 3 ...
interiorly-promo-fake
icons/Redo.tsx
TypeScript
a2c21834c6680f19f53aec86c7ec09d67f00255557b17e964d3005b76a940b59
0
185
import { ComponentProps } from "react"; export function SelectIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="m5 11 3 3 3-3M11 5 8 2 5 5" ...
interiorly-promo-fake
icons/Select.tsx
TypeScript
e97af1ab6a69c453798c40e0b2cbfd91bcc2a4954843ef6b67547e7fcc0179ed
0
131
import { ComponentProps } from "react"; export function SettingsIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={18} height={18} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" ...
interiorly-promo-fake
icons/Settings.tsx
TypeScript
e71e0a91f90f0cacf8f798e20e43201db8a890764d7f373765a84b6666aad112
0
219
import { ComponentProps } from "react"; export function ShareIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M13 10v1a2 2 0 0 1-2 2H5a2 2 0 0 1-...
interiorly-promo-fake
icons/Share.tsx
TypeScript
0c12dd1831e851eec4db8d48f9ccb4350760e01ccb5657538127b08804a8a9f8
0
149
import { ComponentProps } from "react"; export function SignInIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M10 13h1a2 2 0 0 0 2-2V5a2 2 0 0 0...
interiorly-promo-fake
icons/SignIn.tsx
TypeScript
55ace575e7ec6a62dcc7e518e345ea2df51fc3a800796b27084546c0702f77bc
0
154
import { ComponentProps } from "react"; export function SignOutIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M6 13H5a2 2 0 0 1-2-2V5a2 2 0 0 1...
interiorly-promo-fake
icons/SignOut.tsx
TypeScript
ed5c3014dccd9ab17f023f9914cfd6cbfdbd0ebcddb46e948b0ba9aa0c265018
0
151
import { ComponentProps } from "react"; export function StrikethroughIcon(props: ComponentProps<"svg">) { return ( <svg width="20" height="20" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M6.333 5.686c0 .31.083.581....
interiorly-promo-fake
icons/Strikethrough.tsx
TypeScript
0e7b5c6e5127f69501c18b4be7a2684d489b91a01923eaa4993df6cfb8ec037a
0
235
import { ComponentProps } from "react"; export function UndoIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M4 6h6a3 3 0 0 1 3 3v0a3 3 0 0 1-3 3...
interiorly-promo-fake
icons/Undo.tsx
TypeScript
d2cb1b9a0d1865530ed74d3ddae52a0713645a56e7dd514486bc100d8a08bbe9
0
185
import { ComponentProps } from "react"; export function UserIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M12 13v-1a2 2 0 0 0-2-2H6a2 2 0 0 0-...
interiorly-promo-fake
icons/User.tsx
TypeScript
15abd95ce218388972b06df665ca0c5aaa8a2ed120a058cf3490a6057b44e193
0
158
import { ComponentProps } from "react"; export function UsersIcon(props: ComponentProps<"svg">) { return ( <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M10 13v-1a2 2 0 0 0-2-2H4a2 2 0 0 0...
interiorly-promo-fake
icons/Users.tsx
TypeScript
f9be37174bd28dc5ae7e527d361083e568746b21b29850a5d27372315b760b35
0
184
import { ComponentProps } from "react"; export function YouTubeIcon(props: ComponentProps<"svg">) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round"...
interiorly-promo-fake
icons/YouTube.tsx
TypeScript
0ebf4b2e31616a4b15107de1b298ab9ccb39c7e1372e0c6eb39d628c32668395
0
181
.container { --aside-width: 280px; display: grid; width: 100%; min-height: 100vh; background: var(--color-surface); grid-template-areas: "." "main"; grid-template-columns: 1fr; grid-template-rows: var(--header-height) 1fr; } .header { position: fixed; z-index: var(--z-above); top: 0; w...
interiorly-promo-fake
layouts/Dashboard/Dashboard.module.css
CSS
5b45aa452c42784534cfda685fea0a2309d52e1c91a205c62134c99a56d6a207
0
349
"use client"; import clsx from "clsx"; import { ComponentProps, useCallback, useState } from "react"; import { DashboardHeader, DashboardSidebar } from "@/components/Dashboard"; import { Group } from "@/types"; import styles from "./Dashboard.module.css"; interface Props extends ComponentProps<"div"> { groups: Grou...
interiorly-promo-fake
layouts/Dashboard/Dashboard.tsx
TypeScript
54372cde647ec00c063f0f72f31789c3a4cee9762f0b536704eaec530bf1fe76
0
248
export * from "./Dashboard";
interiorly-promo-fake
layouts/Dashboard/index.ts
TypeScript
0d2faea7254312de9308e7ebd845dcbc5e260ef08ba4218bb1d20a9aa6775de0
0
9
.container { display: grid; min-height: 100vh; max-height: 100vh; overflow: hidden; background: var(--color-surface); grid-template-rows: var(--header-height) 1fr; } .header { border-bottom: 1px solid var(--color-border); background: var(--color-surface-elevated); } .header, .main { position: relati...
interiorly-promo-fake
layouts/Document/Document.module.css
CSS
1798a7eb115d5e52443f85068568ed3b59c2fa6934e2f4303f2867dcfacdd56b
0
98
import clsx from "clsx"; import { ComponentProps, ReactNode, forwardRef } from "react"; import styles from "./Document.module.css"; interface Props extends ComponentProps<"div"> { header: ReactNode; } export const DocumentLayout = forwardRef<HTMLElement, Props>( ({ children, header, className, ...props }, ref) =>...
interiorly-promo-fake
layouts/Document/Document.tsx
TypeScript
c67d60f8ce671b1b8642cdc468605ea027dc5caceb3f4a10a6d4437dca68c902
0
149
import { RoomProvider } from "@liveblocks/react/suspense"; import { ReactNode } from "react"; import { InitialDocumentProvider } from "@/lib/hooks"; import { createInitialPresence, createInitialStorage, } from "@/liveblocks.config"; import { Document } from "@/types"; type Props = { roomId: string; initialDocu...
interiorly-promo-fake
layouts/Document/DocumentProviders.tsx
TypeScript
0a96104a8bbe06c506f957489682f45420d310e26aee33e9c8b7929b8496bc6c
0
143
export * from "./Document"; export * from "./DocumentProviders";
interiorly-promo-fake
layouts/Document/index.ts
TypeScript
2eda59c824d57adc3c66ff0cde6e58c735ebceab210b516e7c54499c54148b0b
0
18
import { ErrorLayout } from "@/layouts/Error"; import { getGroup } from "@/lib/database"; import { Group } from "@/types"; import { DocumentsList } from "./DocumentsList"; type Props = { filter?: "all" | "drafts" | "group"; groupId?: Group["id"]; }; export async function DocumentsLayout({ filter, groupId }: Props...
interiorly-promo-fake
layouts/Documents/Documents.tsx
TypeScript
c377056b91fa7e2e835a96c1e2ec2e4b8266a2839fa6cfa754e746413c73bc2c
0
180
.documents { display: flex; flex-direction: column; padding-top: var(--space-16); padding-bottom: var(--space-16); } .header { display: flex; justify-content: space-between; margin-bottom: var(--space-10); place-items: center; } .headerTitle { font-size: var(--size-xl); font-weight: 600; } .heade...
interiorly-promo-fake
layouts/Documents/DocumentsList.module.css
CSS
458deec3b3d4639ce3c6352d4df424b242be04cb48d1f580c66e805c8dcc2ba2
0
368
"use client"; import clsx from "clsx"; import { useSession } from "next-auth/react"; import { ComponentProps, useMemo, useState } from "react"; import { DocumentCreatePopover, DocumentRowSkeleton, } from "@/components/Documents"; import { DocumentRowGroup } from "@/components/Documents/DocumentRowGroup"; import { ...
interiorly-promo-fake
layouts/Documents/DocumentsList.tsx
TypeScript
6c470a14c32cac8c23d85076570d11db89c6872fda211a2813dd96582c791356
0
896
="all" items={[ { value: "all", title: "All" }, { value: "text", title: "Text" }, { value: "whiteboard", title: "Whiteboard" }, { value: "canvas", title: "Canvas" }, ]} onChange={(value: "all" | DocumentType) => { ...
interiorly-promo-fake
layouts/Documents/DocumentsList.tsx
TypeScript
cfe9823107b7eec595647605b476c0ab9b3bf839dc1fcee1c8653754710387cd
1
333
export * from "./Documents";
interiorly-promo-fake
layouts/Documents/index.ts
TypeScript
e389791dd48dd899d77f32e2369afed51873560308275ccbb7fe7d03ea7ed829
0
9
.main { display: flex; min-height: 100vh; flex-direction: column; gap: var(--space-6); place-content: center; place-items: center; } .actions { display: flex; margin-top: var(--space-8); gap: var(--space-6); } .error { font-size: var(--size-lg); font-weight: 500; } .suggestion { color: var(--...
interiorly-promo-fake
layouts/Error/Error.module.css
CSS
eb0c11a71470b2a2fdda265c11d88d5dbeb5de2a196beb0b224c1f65b6865dfc
0
116
import clsx from "clsx"; import { signIn, useSession } from "next-auth/react"; import { ComponentProps } from "react"; import { Button, LinkButton } from "@/primitives/Button"; import { ErrorData } from "@/types"; import styles from "./Error.module.css"; interface Props extends ComponentProps<"main"> { error: ErrorD...
interiorly-promo-fake
layouts/Error/Error.tsx
TypeScript
276cc0b5f24116ea07ff93eed6fe794d848ec9aceafbefc5cbcd216ca9b18790
0
260
export * from "./Error";
interiorly-promo-fake
layouts/Error/index.ts
TypeScript
0f63369436a59072a821414c2903481e867675f901db089c5199057fe9b15b25
0
9
export * from "./Marketing";
interiorly-promo-fake
layouts/Marketing/index.ts
TypeScript
6b68a3beb60d3b75c468887b1e221bc6a330836b3eeb6b31c4c358c84334874b
0
9
.layout { display: flex; min-height: 100vh; flex-direction: column; } .footer { margin-top: auto; }
interiorly-promo-fake
layouts/Marketing/Marketing.module.css
CSS
b317ba626248b99abd7db3a03c577930f4ec3083391a4945a00948de3073b117
0
31
import clsx from "clsx"; import { ComponentProps } from "react"; import { MarketingFooter, MarketingHeader } from "@/components/Marketing"; import styles from "./Marketing.module.css"; export function MarketingLayout({ children, className, ...props }: ComponentProps<"div">) { return ( <div className={clsx(...
interiorly-promo-fake
layouts/Marketing/Marketing.tsx
TypeScript
d9e10bd3b0784f74ec8c1799a4e8692d57b9df643f411d0c3839eb04e959cb63
0
122
"use server"; import { auth } from "@/auth"; import { getDraftsGroupName } from "@/lib/utils"; import { liveblocks } from "@/liveblocks.server.config"; import { User } from "@/types"; export async function authorizeLiveblocks() { // Get current session from NextAuth const session = await auth(); // Anonymous u...
interiorly-promo-fake
lib/actions/authorizeLiveblocks.ts
TypeScript
46756e4d783fa559c79cd472f63675065c74b90c0bd436700b08412e35dc0313
0
326