repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/common.ts | ui/theme/common.ts | import { css } from "styled-components";
export const common = {
// Converts normal display: block to flex, without modifying its display flow.
// Useful when stacking nested flex elements eg. to have dynamic height that does not overflow the screen.
flexDiv: css`
display: flex;
flex-direction: column;
... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/index.tsx | ui/theme/index.tsx | import React, { PropsWithChildren } from "react";
import { ThemeProvider } from "styled-components";
import { radius } from "./borderRadius";
import { box } from "./box";
import { darkThemeColors, defaultColors } from "./colors";
import { common } from "./common";
import { gradients } from "./gradients";
import { icon... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/iconSize.ts | ui/theme/iconSize.ts | import { css } from "styled-components";
export const iconSize = {
item: css`
font-size: 1.33em;
`,
itemLarge: css`
font-size: 1.45em;
`,
avatar: css`
font-size: 24px;
`,
section: css`
font-size: 40px;
`,
hero: css`
font-size: 64px;
`,
};
| typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/shadow.ts | ui/theme/shadow.ts | import { css } from "styled-components";
export const shadow = {
item: css`
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
`,
popover: css`
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
`,
modal: css`
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
`,
popoverPrimaryPanel: css`
box-shado... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/colors.ts | ui/theme/colors.ts | import { deepMerge } from "@aca/shared/object";
import { color } from "./utils/color";
const white = color("hsl(0, 0%, 100%)", {
hover: color("hsl(220, 33%, 97%)"),
active: color("hsl(220, 33%, 94%)"),
});
const black = color("hsl(0, 0%, 0%)", {
hover: color("hsl(0, 0%, 25%)"),
active: color("hsl(0, 0%, 30%)... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/borderRadius.ts | ui/theme/borderRadius.ts | import { css } from "styled-components";
function buildBorderRadiusStyle(sizeInPx: number) {
return css`
border-radius: ${sizeInPx}px;
`;
}
const primaryItem = buildBorderRadiusStyle(6);
const secondaryItem = buildBorderRadiusStyle(6);
export const radius = {
button: secondaryItem,
badge: buildBorderRadi... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/typo.ts | ui/theme/typo.ts | import { font } from "./utils/font";
const bodyBase = font().family("SF Pro Display");
const headerBase = font().family("Spezia Extended").headerLineHeight;
const body = bodyBase.readingLineHeight;
export const typo = {
hero: headerBase.size(36).bold,
pageTitle: headerBase.size(36),
pageSubtitle: headerBase.si... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/layout.ts | ui/theme/layout.ts | import { css } from "styled-components";
export const layout = {
settingsPageMaxWidth: css`
max-width: 1240px;
width: 100%;
`,
};
| typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/box.ts | ui/theme/box.ts | import { box as createBox } from "./utils/box";
export const box = {
control: {
regular: createBox({ x: 12, height: 36, gap: 10, radius: 6 }),
compact: createBox({ x: 8, height: 28, gap: 10, radius: 6 }),
circle: createBox({ x: 8, height: 24, gap: 10, radius: 12 }),
sidebar: createBox({ x: 16, height... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/zIndex.ts | ui/theme/zIndex.ts | export enum zIndexValues {
overlay = 1000,
toast,
popover,
tooltip,
commandMenu,
top,
}
| typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/gradients.ts | ui/theme/gradients.ts | import { gradient } from "./utils/gradient";
export const gradients = {
actionPageBg: gradient({
steps: [
{ color: "#FFEED9", progress: 0 },
{ color: "#ffb8eb", progress: 1 },
],
direction: 135,
}),
};
| typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/palette.ts | ui/theme/palette.ts | /**
* Those colors are in harmony with the rest of our colors, but are not neccessarily part of our design language.
*
* They might be used eg. for random gradients, avatar backgrounds etc.
*
* To modify, play with this palette: https://coolors.co/ff5c5c-775cff-ffd275-49beaa-311847-b8d8d8-5cc8ff-e6c0e9-1e1e24-82ff... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/spacing.ts | ui/theme/spacing.ts | import { number } from "./utils/number";
export const spacing = {
// eg. pop menu items, sidebar topics, setting item title + subtitle spacing, topic title + subtitle spacing
close: number(3),
// eg. messages, settings items
sections: number(20),
// eg. message composer buttons, top corner user avatar + "...... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/direction.ts | ui/theme/utils/direction.ts | export type StrictDirection = "top" | "bottom" | "left" | "right";
export type AxisDirection = "vertical" | "horizontal";
export type AllDirections = "all";
export type Direction = StrictDirection | AxisDirection | AllDirections;
export function resolveDirection(direction: Direction): StrictDirection[] {
if (dire... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/color.ts | ui/theme/utils/color.ts | import { CSSProperties } from "react";
import { StylesPart, css } from "styled-components";
import { changeColorLightness, isColorDark, setColorOpacity } from "@aca/shared/colors";
import { Thunk, resolveThunk } from "@aca/shared/thunk";
import { ThemeTarget, createThemeTarget } from "./themeTarget";
type CssPropert... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/number.ts | ui/theme/utils/number.ts | import { StylesPart, css } from "styled-components";
import { Direction, resolveDirection } from "./direction";
import { ThemeTarget, createThemeTarget } from "./themeTarget";
type NumberVariants = {
value: number;
asGap: StylesPart;
asPadding(horizontalRatio?: number): StylesPart;
asMargin(direction: Direc... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/font.ts | ui/theme/utils/font.ts | import { StylesPart, css } from "styled-components";
import { phone } from "@aca/ui/responsive";
import { ThemeTarget, createThemeTarget } from "./themeTarget";
const SECONDARY_TEXT_OPACITY = 0.7;
type FontVariants = {
spezia: Font;
speziaExtended: Font;
speziaMono: Font;
inter: Font;
permanentMarker: Fon... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/readThemeValueWithProps.ts | ui/theme/utils/readThemeValueWithProps.ts | import { ThemeProps } from "styled-components";
/**
* In rare cases, we need to get raw value from theme proxy using props.
*/
export function readThemeValueWithProps<T>(themeProxyValue: T, props: ThemeProps): T {
if (typeof themeProxyValue !== "function") {
throw new Error(`Cannot use readThemeValueWithProps ... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/DeepProxy.ts | ui/theme/utils/DeepProxy.ts | /* eslint-disable @typescript-eslint/no-explicit-any */
import { mapValues } from "lodash";
type AnyFunction = (...args: unknown[]) => unknown;
interface DeepProxyHandlers<T extends object, C> {
getPrototypeOf?(this: DeepProxyThisArgument<T, C>, target: T): object | null;
setPrototypeOf?(this: DeepProxyThisArgume... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/gradient.ts | ui/theme/utils/gradient.ts | import { StylesPart, css } from "styled-components";
type Gradient = {
direction(direction: number): Gradient;
asBg: StylesPart;
asTextBg: StylesPart;
};
interface GradientStep {
color: string;
progress: number;
}
interface GradientConfig {
steps: GradientStep[];
direction?: number;
}
type GradientInp... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/box.ts | ui/theme/utils/box.ts | import { StylesPart, css } from "styled-components";
import { ThemeTarget, createThemeTarget } from "./themeTarget";
type BoxVariants = {
radius: Box;
vertical: Box;
square: Box;
padding: Box;
size: Box;
};
export type Box = ThemeTarget<BoxVariants>;
interface BoxInput {
x?: number;
y?: number;
heig... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/accessRecorder.ts | ui/theme/utils/accessRecorder.ts | type AnyKey = string | number | symbol;
export type AccessAction =
| {
type: "get";
property: AnyKey;
}
| {
type: "apply";
args: unknown[];
};
// Replay access is considered pure - it will cache the same result for the same path to replay
const replayAccessCache = new WeakMap<objec... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/themeTarget.ts | ui/theme/utils/themeTarget.ts | import { StylesPart } from "styled-components";
import { isPrimitive } from "utility-types";
import { FunctionWithProps, createFunctionWithProps } from "@aca/shared/functions";
export type ThemeTarget<P> = FunctionWithProps<() => StylesPart, P>;
const themeTargets = new WeakSet<ThemeTarget<unknown>>();
export funct... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/theme/utils/buildStyledTheme.tsx | ui/theme/utils/buildStyledTheme.tsx | import { isPrimitive } from "utility-types";
import { AccessAction, replayAccess } from "./accessRecorder";
import { DeepProxyThisArgument, createDeepProxy } from "./DeepProxy";
interface AccessContext {
accessPath: AccessAction[];
}
/**
* There are bunch of properties that might be accessed from theme (eg. by st... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/toggle/index.tsx | ui/toggle/index.tsx | import React from "react";
import styled from "styled-components";
import { theme } from "@aca/ui/theme";
/**
* How big part of full width will toggle occupy to indicate change on long press.
*/
const STATE_CHANGE_WIDTH_INDICATION_RATIO = 0.65;
const sizes: Record<ToggleSize, Dimensions> = {
large: {
width: ... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/shortcutBase.ts | ui/keyboard/shortcutBase.ts | import { HotKey, compareHotkey, parseHotkey } from "is-hotkey";
import { memoize, sortBy } from "lodash";
import { convertMaybeArrayToArray, removeElementFromArray } from "@aca/shared/array";
import { onDocumentReady } from "@aca/shared/document";
import { mapGetOrCreate } from "@aca/shared/map";
import { ShortcutKey... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/codes.ts | ui/keyboard/codes.ts | export type ShortcutKey =
| "Backspace"
| "Tab"
| "Enter"
| "Shift"
| "Control"
| "Alt"
| "CapsLock"
| "Escape"
| "Esc"
| "Space"
| "PageUp"
| "PageDown"
| "End"
| "Home"
| "ArrowLeft"
| "ArrowUp"
| "ArrowRight"
| "ArrowDown"
| "Left"
| "Up"
| "Right"
| "Down"
| "Insert"
... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/Shortcut.tsx | ui/keyboard/Shortcut.tsx | import React from "react";
import styled from "styled-components";
import { ShortcutCallback, ShortcutDefinition, ShortcutOptions } from "./shortcutBase";
import { ShortcutDescriptor } from "./ShortcutLabel";
import { useShortcut } from "./useShortcut";
interface Props {
shortcut: ShortcutDefinition;
callback?: S... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/describeShortcut.ts | ui/keyboard/describeShortcut.ts | import { upperFirst } from "lodash";
import { ShortcutKey } from "./codes";
import { ShortcutDefinition, resolveShortcutsDefinition } from "./shortcutBase";
isMac;
type KeyboardPlatform = "mac" | "windows";
type KeyNiceVersion = string | Partial<Record<KeyboardPlatform, string>>;
export function isMac() {
// Ser... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/recordShortcut.ts | ui/keyboard/recordShortcut.ts | import { createDocumentEvent } from "@aca/shared/domEvents";
import { createResolvablePromise } from "@aca/shared/promises";
import { ShortcutKey } from "./codes";
import { ShortcutKeys, getIsShortcutDefinitionMatchingEvent } from "./shortcutBase";
interface RecordShortcutsProps {
onNextKey: (keys: ShortcutKeys) =>... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/ShortcutPicker.tsx | ui/keyboard/ShortcutPicker.tsx | import React, { useEffect, useState } from "react";
import styled from "styled-components";
import { Button } from "../buttons/Button";
import { recordShortcut } from "./recordShortcut";
import { ShortcutKeys } from "./shortcutBase";
import { ShortcutDescriptor } from "./ShortcutLabel";
interface Props {
currentSho... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/useAlphanumericShortcut.ts | ui/keyboard/useAlphanumericShortcut.ts | import { ShortcutKey } from "./codes";
import { useShortcuts } from "./useShortcut";
const ALPHANUMERIC_CHARS = "abcdefghijklmnoprstuwxyz0123456789";
const shortcuts = ALPHANUMERIC_CHARS.split("") as ShortcutKey[];
interface Options {
isEnabled?: boolean;
}
type AlphanumericShortcutCallback = (event: KeyboardEven... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/useShortcut.tsx | ui/keyboard/useShortcut.tsx | import { useIsPresent } from "framer-motion";
import { useEffect } from "react";
import { createCleanupObject } from "@aca/shared/cleanup";
import { useDocument } from "@aca/shared/context/window";
import {
ShortcutCallback,
ShortcutDefinition,
ShortcutOptions,
createShortcutListener,
initializeDocumentShor... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
acapela/monorepo | https://github.com/acapela/monorepo/blob/27047fac40321891abe42d04d40a14ca329f87ee/ui/keyboard/ShortcutLabel.tsx | ui/keyboard/ShortcutLabel.tsx | import React from "react";
import styled from "styled-components";
import { theme } from "@aca/ui/theme";
import { getShortcutNiceKeys } from "./describeShortcut";
import { ShortcutDefinition } from "./shortcutBase";
interface Props {
shortcut: ShortcutDefinition;
className?: string;
}
export const ShortcutDesc... | typescript | MIT | 27047fac40321891abe42d04d40a14ca329f87ee | 2026-01-05T05:01:22.776906Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/App.tsx | example/src/App.tsx | import React from 'react';
import { StatusBar, useColorScheme } from 'react-native';
import {
DarkTheme,
DefaultTheme,
NavigationContainer,
} from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import type { CanvasProps } from '@benjeau/react-native-draw';... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/components/Button.tsx | example/src/components/Button.tsx | import { useTheme } from '@react-navigation/native';
import React from 'react';
import { Pressable, View, Text, StyleSheet, Platform } from 'react-native';
interface ButtonProps {
onPress: () => void;
}
const Button: React.FC<ButtonProps> = ({ onPress, children }) => {
const theme = useTheme();
return (
<V... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/components/index.ts | example/src/components/index.ts | export { default as Button } from './Button';
| typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/SimpleExample.tsx | example/src/screens/SimpleExample.tsx | import React from 'react';
import { Canvas } from '@benjeau/react-native-draw';
export default () => <Canvas />;
| typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/ExtrasExample.tsx | example/src/screens/ExtrasExample.tsx | import React, { useRef, useState } from 'react';
import { Animated, StyleSheet, View } from 'react-native';
import { Canvas, CanvasRef, DrawingTool } from '@benjeau/react-native-draw';
import {
BrushProperties,
CanvasControls,
DEFAULT_COLORS,
} from '@benjeau/react-native-draw-extras';
import { useTheme } from '@... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/MoreComplexExample.tsx | example/src/screens/MoreComplexExample.tsx | import React, { useRef } from 'react';
import { Button } from 'react-native';
import { Canvas, CanvasRef } from '@benjeau/react-native-draw';
export default () => {
const canvasRef = useRef<CanvasRef>(null);
const handleUndo = () => {
canvasRef.current?.undo();
};
const handleClear = () => {
canvasRe... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/index.ts | example/src/screens/index.ts | export { default as Home } from './Home';
export { default as SimpleExample } from './SimpleExample';
export { default as MoreComplexExample } from './MoreComplexExample';
export { default as ExtrasExample } from './ExtrasExample';
export { default as CanvasControlsExample } from './canvasControls/CanvasControlsExamp... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/ExampleSelection.tsx | example/src/screens/ExampleSelection.tsx | import React, { useMemo } from 'react';
import { Text, View, FlatList, StyleSheet } from 'react-native';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import { useTheme } from '@react-navigation/native';
import canvasData from './canvas/data';
import brushPreviewsData from './brushPrevi... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/Home.tsx | example/src/screens/Home.tsx | import { useTheme } from '@react-navigation/native';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import React from 'react';
import {
ScrollView,
StyleSheet,
Text,
Linking,
TouchableOpacity,
View,
} from 'react-native';
import type { RootStackParamList } from '../App';
impo... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/brushPreview/data.ts | example/src/screens/brushPreview/data.ts | import type { BrushPreviewProps } from '@benjeau/react-native-draw-extras';
interface Data {
name: string;
data: {
description: string;
props?: BrushPreviewProps;
}[];
}
const data: Data[] = [
{
name: '',
data: [
{
description: 'BrushPreview component as a stroke',
props:... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/brushPreview/BrushPreviewExample.tsx | example/src/screens/brushPreview/BrushPreviewExample.tsx | import React from 'react';
import { BrushPreview } from '@benjeau/react-native-draw-extras';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import type { RootStackParamList } from '../../App';
type BrushPreviewExampleProps = NativeStackScreenProps<
RootStackParamList,
'BrushPreviewE... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/brushProperties/BrushPropertiesExample.tsx | example/src/screens/brushProperties/BrushPropertiesExample.tsx | import React from 'react';
import { BrushProperties } from '@benjeau/react-native-draw-extras';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import type { RootStackParamList } from '../../App';
import { StyleSheet } from 'react-native';
type BrushPropertiesExampleProps = NativeStackSc... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/brushProperties/data.ts | example/src/screens/brushProperties/data.ts | import {
BrushPropertiesProps,
DEFAULT_COLORS,
} from '@benjeau/react-native-draw-extras';
interface Data {
name: string;
data: {
description: string;
props?: BrushPropertiesProps;
}[];
}
const data: Data[] = [
{
name: '',
data: [
{
description:
'BrushProperties com... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/canvas/data.ts | example/src/screens/canvas/data.ts | import type { CanvasProps } from '@benjeau/react-native-draw';
import { ToastAndroid } from 'react-native';
interface Data {
name: string;
data: {
description: string;
props?: CanvasProps;
}[];
}
const data: Data[] = [
{
name: '',
data: [
{
description: 'Drawing component with de... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/canvas/CanvasExample.tsx | example/src/screens/canvas/CanvasExample.tsx | import React from 'react';
import { Canvas } from '@benjeau/react-native-draw';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import type { RootStackParamList } from '../../App';
type CanvasExampleProps = NativeStackScreenProps<
RootStackParamList,
'CanvasExample'
>;
const CanvasE... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/colorPicker/ColorPickerExample.tsx | example/src/screens/colorPicker/ColorPickerExample.tsx | import React from 'react';
import { ColorPicker } from '@benjeau/react-native-draw-extras';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import type { RootStackParamList } from '../../App';
import { StyleSheet } from 'react-native';
type ColorPickerExampleProps = NativeStackScreenProp... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/colorPicker/data.ts | example/src/screens/colorPicker/data.ts | import {
ColorPickerProps,
DEFAULT_COLORS,
} from '@benjeau/react-native-draw-extras';
interface Data {
name: string;
data: {
description: string;
props?: ColorPickerProps;
}[];
}
const data: Data[] = [
{
name: '',
data: [
{
description: 'ColorPicker component with default pr... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/canvasControls/CanvasControlsExample.tsx | example/src/screens/canvasControls/CanvasControlsExample.tsx | import React from 'react';
import { CanvasControls } from '@benjeau/react-native-draw-extras';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import type { RootStackParamList } from '../../App';
type CanvasControlsExampleProps = NativeStackScreenProps<
RootStackParamList,
'CanvasCon... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/example/src/screens/canvasControls/data.ts | example/src/screens/canvasControls/data.ts | import type { CanvasControlsProps } from '@benjeau/react-native-draw-extras';
interface Data {
name: string;
data: {
description: string;
props?: CanvasControlsProps;
}[];
}
const data: Data[] = [
{
name: '',
data: [
{
description:
'CanvasControls component with default... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/utils.ts | packages/react-native-draw/src/utils.ts | import simplifySvgPath from '@luncheon/simplify-svg-path';
import type { PathDataType } from './types';
export const createSVGPath = (
points: PathDataType,
tolerance: number,
roundPoints: boolean
) => {
if (points.length > 1) {
try {
return simplifySvgPath(points, {
precision: roundPoints ? ... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/index.tsx | packages/react-native-draw/src/index.tsx | export {
default as Canvas,
CanvasRef,
CanvasProps,
SimplifyOptions,
} from './Canvas';
export * from './types';
export * from './utils';
export * from './constants';
| typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/Canvas.tsx | packages/react-native-draw/src/Canvas.tsx | import React, {
forwardRef,
useEffect,
useImperativeHandle,
useState,
} from 'react';
import {
Animated,
Dimensions,
StyleProp,
StyleSheet,
View,
ViewStyle,
} from 'react-native';
import {
Gesture,
GestureDetector,
GestureHandlerRootView,
} from 'react-native-gesture-handler';
import {
DEFA... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/constants.ts | packages/react-native-draw/src/constants.ts | import { DrawingTool } from './types';
export const DEFAULT_BRUSH_COLOR = '#000000';
export const DEFAULT_ERASER_SIZE = 5;
export const DEFAULT_THICKNESS = 3;
export const DEFAULT_OPACITY = 1;
export const DEFAULT_TOOL = DrawingTool.Brush;
| typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/types.ts | packages/react-native-draw/src/types.ts | export type PathDataType = [number, number][];
export interface PathType {
/**
* Color of the path
*/
color: string;
/**
* SVG path. It does not need to be defined while passing a PathType to Draw as initialValues.
* It will always be defined if you get the path data from the component.
*/
path... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/renderer/RendererHelper.tsx | packages/react-native-draw/src/renderer/RendererHelper.tsx | import React, { useMemo } from 'react';
import type { PathDataType, PathType } from '../types';
import { createSVGPath } from '../utils';
export interface RendererProps {
paths: PathType[];
height: number;
width: number;
}
interface RendererHelperProps {
currentPath: PathDataType;
currentColor: string;
c... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw/src/renderer/SVGRenderer.tsx | packages/react-native-draw/src/renderer/SVGRenderer.tsx | import React, { useMemo } from 'react';
import Svg, { Path } from 'react-native-svg';
import type { RendererProps } from './RendererHelper';
const SVGRenderer: React.FC<RendererProps> = ({ paths, height, width }) => (
<Svg height={height} width={width}>
{paths.map(({ color, path, thickness, opacity, combine }, ... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/utils.ts | packages/react-native-draw-extras/src/utils.ts | export const isBright = (color: string): boolean => {
let rgb: number[] = [];
if (color[0] === '#') {
if (color.length === 7) {
rgb = [
parseInt(color.substr(1, 2), 16),
parseInt(color.substr(3, 2), 16),
parseInt(color.substr(5, 2), 16),
];
} else if (color.length === 4)... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/index.tsx | packages/react-native-draw-extras/src/index.tsx | export {
default as CanvasControls,
CanvasControlsProps,
} from './CanvasControls';
export {
default as BrushProperties,
BrushPropertiesProps,
BrushPropertiesRef,
} from './brushProperties/BrushProperties';
export {
default as BrushPreview,
BrushPreviewProps,
BrushType,
} from './BrushPreview';
expor... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/BrushPreview.tsx | packages/react-native-draw-extras/src/BrushPreview.tsx | import React from 'react';
import Svg, { Path, Circle } from 'react-native-svg';
export type BrushType = 'stroke' | 'dot' | 'none';
export interface BrushPreviewProps {
/**
* Color of the brush strokes
*/
color: string;
/**
* Thickness of the brush strokes
*/
thickness: number;
/**
* Opacit... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/CanvasControls.tsx | packages/react-native-draw-extras/src/CanvasControls.tsx | import React from 'react';
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
import {
DEFAULT_BRUSH_PREVIEW,
DEFAULT_DELETE_BUTTON_COLOR,
DEFAULT_OTHER_BUTTONS_COLOR,
DEFAULT_TOOL,
} from './constants';
import { DrawingTool } from './types';
import BrushPreview, { BrushPreviewProps } from ... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/constants.ts | packages/react-native-draw-extras/src/constants.ts | import { DrawingTool } from './types';
const grayscale = [
[
'#010101',
'#151515',
'#2A2A2A',
'#3E3E3E',
'#535353',
'#666666',
'#7A7A7A',
'#8F8F8F',
'#A3A3A3',
'#B8B8B8',
'#CCCCCC',
'#FFFFFF',
],
];
const colors = [
[
'#457429',
'#696F1C',
'#6B6414',
... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/Button.tsx | packages/react-native-draw-extras/src/Button.tsx | import React from 'react';
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
import { RectButton } from 'react-native-gesture-handler';
import { isBright } from './utils';
interface ButtonProps {
onPress: () => void;
color?: string;
style?: StyleProp<ViewStyle>;
}
const Button: React.FC<Bu... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/types.ts | packages/react-native-draw-extras/src/types.ts | /**
* Tool used on the canvas
*/
export enum DrawingTool {
Brush = 'brush',
Eraser = 'eraser',
}
| typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/icons/Brush.tsx | packages/react-native-draw-extras/src/icons/Brush.tsx | import React from 'react';
import Svg, { Path, SvgProps } from 'react-native-svg';
const Brush = (props: SvgProps) => (
<Svg viewBox="0 0 24 24" {...props}>
<Path d="M0 0h24v24H0z" fill="none" />
<Path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.7... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/icons/Palette.tsx | packages/react-native-draw-extras/src/icons/Palette.tsx | import React from 'react';
import Svg, { Path, SvgProps } from 'react-native-svg';
const Palette = (props: SvgProps) => (
<Svg viewBox="0 0 24 24" {...props}>
<Path d="M0 0h24v24H0z" fill="none" />
<Path d="M12 3a9 9 0 000 18c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/icons/Delete.tsx | packages/react-native-draw-extras/src/icons/Delete.tsx | import React from 'react';
import Svg, { Path, SvgProps } from 'react-native-svg';
const Delete = (props: SvgProps) => (
<Svg viewBox="0 0 24 24" {...props}>
<Path d="M0 0h24v24H0z" fill="none" />
<Path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />
</Svg>
);
const Me... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/icons/Undo.tsx | packages/react-native-draw-extras/src/icons/Undo.tsx | import React from 'react';
import Svg, { Path, SvgProps } from 'react-native-svg';
const Undo = (props: SvgProps) => (
<Svg viewBox="0 0 24 24" {...props}>
<Path d="M0 0h24v24H0z" fill="none" />
<Path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/icons/index.ts | packages/react-native-draw-extras/src/icons/index.ts | export { default as Delete } from './Delete';
export { default as Palette } from './Palette';
export { default as Brush } from './Brush';
export { default as Undo } from './Undo';
export { default as Eraser } from './Eraser';
| typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/icons/Eraser.tsx | packages/react-native-draw-extras/src/icons/Eraser.tsx | import React from 'react';
import Svg, { Path, SvgProps } from 'react-native-svg';
const Eraser = (props: SvgProps) => (
<Svg viewBox="0 0 24 24" {...props}>
<Path d="M15.14 3c-.51 0-1.02.2-1.41.59L2.59 14.73c-.78.77-.78 2.04 0 2.83L5.03 20h7.66l8.72-8.73c.79-.77.79-2.04 0-2.83l-4.85-4.85c-.39-.39-.91-.59-1.42-.... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/brushProperties/BrushProperties.tsx | packages/react-native-draw-extras/src/brushProperties/BrushProperties.tsx | import React, { forwardRef, useImperativeHandle, useMemo } from 'react';
import { Animated, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
import Slider from '@react-native-community/slider';
import {
DEFAULT_COLORS,
DEFAULT_OPACITY,
DEFAULT_OPACITY_STEP,
DEFAULT_SLIDER_COLOR,
DEFAULT_THICKNES... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/brushProperties/colorPicker/ColorPicker.tsx | packages/react-native-draw-extras/src/brushProperties/colorPicker/ColorPicker.tsx | import React, { memo } from 'react';
import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
import { DEFAULT_COLORS } from '../../constants';
import ColorButton from './ColorButton';
export interface ColorPickerProps {
/**
* Brush color, one from the colors provided
*/
color: string;
/**
... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
BenJeau/react-native-draw | https://github.com/BenJeau/react-native-draw/blob/13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf/packages/react-native-draw-extras/src/brushProperties/colorPicker/ColorButton.tsx | packages/react-native-draw-extras/src/brushProperties/colorPicker/ColorButton.tsx | import React, { memo } from 'react';
import { TouchableOpacity, StyleSheet, Dimensions, View } from 'react-native';
import { isBright } from '../../utils';
const { width } = Dimensions.get('screen');
export const colorButtonSize = Math.min(Math.round((width - 40) / 12), 50);
interface ColorButtonProps {
/**
* C... | typescript | MIT | 13ff23ff0efebc63f1a2e0c6578cf1beb5ed84bf | 2026-01-05T05:01:28.927516Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_3/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_3/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_2/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_2/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_1/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_1/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_5/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_5/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_7/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_7/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_4/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_4/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_9/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_9/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_10/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_10/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_6/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_6/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_8/powerpoint.d.ts | generate-docs/api-extractor-inputs-powerpoint-release/PowerPoint_1_8/powerpoint.d.ts | import { OfficeExtension } from "../../api-extractor-inputs-office/office"
import { Office as Outlook} from "../../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
//////////////////// Begin PowerPoint APIs /////////////////////
/////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/scripts/util.ts | generate-docs/scripts/util.ts | import * as fs from "fs-extra";
import * as ts from "typescript";
require('isomorphic-fetch');
export async function fetchAndThrowOnError(url: string, format: 'text'): Promise<string>;
export async function fetchAndThrowOnError<T>(url: string, format: 'json'): Promise<T>;
export async function fetchAndThrowOnError(url... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/scripts/preprocessor.ts | generate-docs/scripts/preprocessor.ts | #!/usr/bin/env node --harmony
import { fetchAndThrowOnError, DtsBuilder } from './util';
import { promptFromList } from './simple-prompts';
import * as path from "path";
import * as fsx from 'fs-extra';
tryCatch(async () => {
const args = process.argv.slice(2);
let sourceChoice;
// Bypass the prompt - fo... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/scripts/simple-prompts.ts | generate-docs/scripts/simple-prompts.ts |
import inquirer from 'inquirer';
import { cloneDeep, isString, isUndefined } from "lodash";
const NO_CHOICE_SELECTED = '---';
export async function promptFromList<T>(options: {
message: string,
choices: Array<string | { value: string, name: string, keepIf?: boolean }>,
mappings: { [key: string]: T }
... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/scripts/midprocessor.ts | generate-docs/scripts/midprocessor.ts | import { fetchAndThrowOnError } from './util';
import * as fsx from 'fs-extra';
import * as path from "path";
import yaml = require('js-yaml');
import * as colors from 'colors';
const CURRENT_EXCEL_RELEASE = 20;
const OLDEST_EXCEL_RELEASE_WITH_CUSTOM_FUNCTIONS = 9;
const CURRENT_OUTLOOK_RELEASE = 15;
const CURRENT_WOR... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/scripts/postprocessor.ts | generate-docs/scripts/postprocessor.ts | #!/usr/bin/env node --harmony
import { generateEnumList } from './util';
import * as fsx from 'fs-extra';
import * as jsyaml from "js-yaml";
import * as path from "path";
// Configuration constants
const OLDEST_EXCEL_RELEASE_WITH_CUSTOM_FUNCTIONS = 9;
const HOST_VERSION_MAP = [
{ host: "excel", versions: 21 }, /... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-outlook/outlook.d.ts | generate-docs/api-extractor-inputs-outlook/outlook.d.ts | import {Office as CommonAPI} from "../api-extractor-inputs-office/office"
////////////////////////////////////////////////////////////////
////////////////////// Begin Exchange APIs /////////////////////
////////////////////////////////////////////////////////////////
export declare namespace Office {
export names... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-onenote/onenote.d.ts | generate-docs/api-extractor-inputs-onenote/onenote.d.ts | import { OfficeExtension } from "../api-extractor-inputs-office/office"
import { Office as Outlook} from "../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
////////////////////// Begin OneNote APIs //////////////////////
///////////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/script-inputs/office.d.ts | generate-docs/script-inputs/office.d.ts | /*
office-js
Copyright (c) Microsoft Corporation
*/
////////////////////////////////////////////////////////////////
//////////////////// Begin Office namespace ////////////////////
////////////////////////////////////////////////////////////////
declare namespace Office {
/** A Promise object. Promises can be c... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/script-inputs/custom-functions-runtime.d.ts | generate-docs/script-inputs/custom-functions-runtime.d.ts | /*
custom-functions-runtime
Copyright (c) Microsoft Corporation
*/
/**
* CustomFunctions namespace, used by Excel Custom Functions
*/
declare namespace CustomFunctions {
/**
* Associates the JavaScript function to the name given by the "id" property in the metadata JSON file.
*/
function associate(... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/script-inputs/office-runtime.d.ts | generate-docs/script-inputs/office-runtime.d.ts | /*
office-runtime
Copyright (c) Microsoft Corporation
*/
/**
* Office runtime namespace.
*/
declare namespace OfficeRuntime {
/**
* Function that enables a pop up web dialog box.
*
* @remarks
* [Api set: CustomFunctionsRuntime 1.1]
*
* @param url Must be a string.
* @param options Optional par... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/script-inputs/office_preview.d.ts | generate-docs/script-inputs/office_preview.d.ts | /*
office-js
Copyright (c) Microsoft Corporation
*/
////////////////////////////////////////////////////////////////
//////////////////// Begin Office namespace ////////////////////
////////////////////////////////////////////////////////////////
declare namespace Office {
/** A Promise object. Promises can be c... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-custom-functions-runtime/custom-functions-runtime.d.ts | generate-docs/api-extractor-inputs-custom-functions-runtime/custom-functions-runtime.d.ts | /*
custom-functions-runtime
Copyright (c) Microsoft Corporation
*/
/**
* CustomFunctions namespace, used by Excel Custom Functions
*/
export declare namespace CustomFunctions {
/**
* Associates the JavaScript function to the name given by the "id" property in the metadata JSON file.
*/
export funct... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | false |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-word/word.d.ts | generate-docs/api-extractor-inputs-word/word.d.ts | import { OfficeExtension } from "../api-extractor-inputs-office/office"
import { Office as Outlook} from "../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
/////////////////////// Begin Word APIs ////////////////////////
///////////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
OfficeDev/office-js-docs-reference | https://github.com/OfficeDev/office-js-docs-reference/blob/4a36ba8ace90835254b6ccdb73251ae5ff8e449b/generate-docs/api-extractor-inputs-visio/visio.d.ts | generate-docs/api-extractor-inputs-visio/visio.d.ts | import { OfficeExtension } from "../api-extractor-inputs-office/office"
import { Office as Outlook} from "../api-extractor-inputs-outlook/outlook"
////////////////////////////////////////////////////////////////
/////////////////////// Begin Visio APIs ///////////////////////
///////////////////////////////////////////... | typescript | MIT | 4a36ba8ace90835254b6ccdb73251ae5ff8e449b | 2026-01-05T05:00:51.552091Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.