This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as TooltipPrimitive from '@radix-ui/react-tooltip'; | |
| import * as React from 'react'; | |
| import { twMerge } from 'tailwind-merge'; | |
| /** | |
| * With this component, if the user moves the cursor between tooltip group, the | |
| * delay is set to 0, this makes the next tooltip appear immediately. | |
| */ | |
| export const TooltipGroup = React.forwardRef< | |
| HTMLDivElement, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const AudioPrimitiveContext = React.createContext<InterpreterFrom< | |
| typeof audioMachine | |
| > | null>(null); | |
| export const AudioPrimitiveProvider = ({ | |
| children, | |
| }: { | |
| children?: React.ReactNode; | |
| }) => { | |
| const [machine] = React.useState(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createVar, style } from '@vanilla-extract/css'; | |
| import { calc } from '@vanilla-extract/css-utils'; | |
| export const gridColumnCount = createVar(); | |
| export const gridItemMinWidth = createVar(); | |
| export const gridLayoutGapX = createVar(); | |
| export const gridLayoutGapY = createVar(); | |
| export const gapCount = createVar(); | |
| export const totalGapWidth = createVar(); | |
| export const gridItemMaxWidth = createVar(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type ArrayItemType<T extends unknown[]> = T extends unknown[] | |
| ? T extends (infer U)[] | |
| ? U | |
| : never | |
| : never; | |
| type Entries<T> = { | |
| [K in keyof T]: [K, T[K]]; | |
| }[keyof T][]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ! | means mandatory | |
| ;; # | means optional | |
| ;; C | left_command | |
| ;; T | left_control | |
| ;; O | left_option | |
| ;; S | left_shift | |
| ;; F | fn | |
| ;; Q | right_command | |
| ;; W | right_control | |
| ;; E | right_option |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createArrayGroups( | |
| data: any[], | |
| maxArrayLength: number | |
| ): (any | any[])[] { | |
| let array = [...data]; | |
| let groups: (any | any[])[] = []; | |
| do { | |
| groups.push(array.splice(0, maxArrayLength)); | |
| } while (array.length > 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Main Navigation | |
| nav_closed* | |
| MOUSE_IN -> nav_open | |
| nav_open | |
| MOUSE_OUT -> nav_closed | |
| Panel_One& | |
| PANEL_CLICK -> panel_open | |
| panel_closed* | |
| panel_open | |
| PANEL_CLICK -> panel_closed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "suggest.noselect": false, | |
| "coc.preferences.formatOnSaveFiletypes": [ | |
| "javascript", | |
| "typescript", | |
| "typescriptreact", | |
| "json", | |
| "javascriptreact", | |
| "typescript.tsx", | |
| "scss", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MWR_PANEL* | |
| IDLE* | |
| click -> FETCHING_DATA | |
| fetch -> FETCHING_DATA | |
| FETCHING_DATA | |
| success -> COMPONENT_HYDRATED | |
| fail -> ERROR | |
| ERROR | |
| retry -> FETCHING_DATA | |
| COMPONENT_HYDRATED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { ReactNode } from 'react'; | |
| type ButtonVariants = 'orange' | 'light'; | |
| interface ButtonProps { | |
| children: ReactNode; | |
| variant?: ButtonVariants; | |
| icon?: ReactNode; | |
| clickFn?: () => any; | |
| } |
NewerOlder