Skip to content

Commit

Permalink
feat: Updates for marketing site (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar authored May 22, 2023
1 parent 279f657 commit 16d508e
Show file tree
Hide file tree
Showing 14 changed files with 1,839 additions and 1,269 deletions.
94 changes: 47 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@
"@loomhq/loom-embed": "1.5.0",
"@markdoc/markdoc": "0.2.2",
"@monaco-editor/react": "4.4.6",
"@react-aria/button": "3.7.0",
"@react-aria/checkbox": "3.8.0",
"@react-aria/combobox": "3.5.0",
"@react-aria/focus": "3.11.0",
"@react-aria/interactions": "3.14.0",
"@react-aria/listbox": "3.8.0",
"@react-aria/overlays": "3.13.0",
"@react-aria/radio": "3.5.0",
"@react-aria/select": "3.9.0",
"@react-aria/slider": "3.3.0",
"@react-aria/tabs": "3.4.0",
"@react-aria/utils": "3.15.0",
"@react-aria/visually-hidden": "3.7.0",
"@react-stately/collections": "3.6.0",
"@react-stately/combobox": "3.4.0",
"@react-stately/overlays": "3.5.0",
"@react-stately/radio": "3.7.0",
"@react-stately/slider": "3.3.0",
"@react-stately/tabs": "3.3.0",
"@react-stately/toggle": "3.5.0",
"@react-types/shared": "3.17.0",
"@tanstack/match-sorter-utils": "8.7.6",
"@tanstack/react-table": "8.7.9",
"@tanstack/react-virtual": "3.0.0-beta.48",
"@types/chroma-js": "2.1.5",
"@react-aria/button": "3.7.1",
"@react-aria/checkbox": "3.9.0",
"@react-aria/combobox": "3.6.0",
"@react-aria/focus": "3.12.0",
"@react-aria/interactions": "3.15.0",
"@react-aria/listbox": "3.9.0",
"@react-aria/overlays": "3.14.0",
"@react-aria/radio": "3.6.0",
"@react-aria/select": "3.10.0",
"@react-aria/slider": "3.4.0",
"@react-aria/tabs": "3.5.0",
"@react-aria/utils": "3.16.0",
"@react-aria/visually-hidden": "3.8.0",
"@react-stately/collections": "3.7.0",
"@react-stately/combobox": "3.5.0",
"@react-stately/overlays": "3.5.1",
"@react-stately/radio": "3.8.0",
"@react-stately/slider": "3.3.1",
"@react-stately/tabs": "3.4.0",
"@react-stately/toggle": "3.5.1",
"@react-types/shared": "3.18.0",
"@tanstack/match-sorter-utils": "8.8.4",
"@tanstack/react-table": "8.9.1",
"@tanstack/react-virtual": "3.0.0-beta.54",
"@types/chroma-js": "2.4.0",
"chroma-js": "2.4.2",
"classnames": "2.3.2",
"grommet": "2.29.1",
Expand All @@ -76,36 +76,36 @@
"use-immer": "0.8.1"
},
"devDependencies": {
"@babel/core": "7.20.12",
"@babel/preset-env": "7.20.2",
"@babel/core": "7.21.8",
"@babel/preset-env": "7.21.5",
"@babel/preset-react": "7.18.6",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@emotion/react": "11.11.0",
"@emotion/styled": "11.11.0",
"@pluralsh/eslint-config-typescript": "2.5.41",
"@storybook/addon-actions": "7.0.6",
"@storybook/addon-docs": "7.0.6",
"@storybook/addon-essentials": "7.0.6",
"@storybook/addon-interactions": "7.0.6",
"@storybook/addon-links": "7.0.6",
"@storybook/builder-vite": "7.0.6",
"@storybook/node-logger": "7.0.6",
"@storybook/react": "7.0.6",
"@storybook/react-vite": "7.0.6",
"@storybook/addon-actions": "7.0.12",
"@storybook/addon-docs": "7.0.12",
"@storybook/addon-essentials": "7.0.12",
"@storybook/addon-interactions": "7.0.12",
"@storybook/addon-links": "7.0.12",
"@storybook/builder-vite": "7.0.12",
"@storybook/node-logger": "7.0.12",
"@storybook/react": "7.0.12",
"@storybook/react-vite": "7.0.12",
"@storybook/testing-library": "0.1.0",
"@types/react-dom": "18.0.11",
"@types/react-transition-group": "4.4.5",
"@types/react-dom": "18.2.4",
"@types/react-transition-group": "4.4.6",
"@types/styled-components": "5.1.26",
"@typescript-eslint/eslint-plugin": "5.59.0",
"@typescript-eslint/parser": "5.59.0",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"babel-loader": "9.1.2",
"eslint": "8.38.0",
"eslint": "8.40.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-import-newlines": "1.3.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-storybook": "0.6.11",
"eslint-plugin-storybook": "0.6.12",
"firebase-tools": "11.23.1",
"fuse.js": "6.6.2",
"honorable": "1.0.0-beta.17",
Expand All @@ -120,10 +120,10 @@
"react-dom": "18.2.0",
"react-transition-group": "4.4.5",
"rimraf": "3.0.2",
"storybook": "7.0.6",
"styled-components": "5.3.9",
"storybook": "7.0.12",
"styled-components": "5.3.10",
"typescript": "4.9.5",
"vite": "4.1.1"
"vite": "4.3.8"
},
"peerDependencies": {
"@emotion/react": ">=11.10.6",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export type CheckboxProps = {
defaultSelected?: boolean
onChange?: (e: { target: { checked: boolean } }) => any
onFocusChange?: (isFocused: boolean) => void
tabIndex?: number | string
} & Omit<InputProps, 'onChange'>

function Checkbox(
Expand All @@ -162,6 +163,7 @@ function Checkbox(
onFocusChange,
onKeyDown,
onKeyUp,
tabIndex,
...props
}: CheckboxProps,
ref: MutableRefObject<any>
Expand Down Expand Up @@ -217,6 +219,7 @@ function Checkbox(
<input
{...inputProps}
{...focusProps}
tabIndex={tabIndex}
onChange={(e) => {
if (typeof onChange === 'function') {
onChange(e)
Expand Down
3 changes: 2 additions & 1 deletion src/components/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import { omitBy } from 'lodash'

import { mergeRefs } from 'react-merge-refs'

import { useFloatingDropdown } from '../hooks/useFloatingDropdown'

import { type ListBoxItemBaseProps } from './ListBoxItem'
import DropdownArrowIcon from './icons/DropdownArrowIcon'
import Input, { type InputProps } from './Input'
Expand All @@ -38,7 +40,6 @@ import {
import { PopoverListBox } from './PopoverListBox'
import SearchIcon from './icons/SearchIcon'
import { SelectInner } from './Select'
import { useFloatingDropdown } from './useFloatingDropdown'

type Placement = 'left' | 'right'

Expand Down
4 changes: 2 additions & 2 deletions src/components/RepositoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ function RepositoryCardRef(
color="text-light"
style={{
display: '-webkit-box',
'-webkit-line-clamp': '2',
'-webkit-box-orient': 'vertical',
WebkitLineClamp: '2',
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
}}
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ import {
useBimodalSelectState,
} from '../utils/useBimodalSelectState'

import { useFloatingDropdown } from '../hooks/useFloatingDropdown'

import { type ListBoxItemBaseProps } from './ListBoxItem'
import DropdownArrowIcon from './icons/DropdownArrowIcon'
import { PopoverListBox } from './PopoverListBox'
import {
setNextFocusedKey,
useSelectComboStateProps,
} from './SelectComboShared'
import { useFloatingDropdown } from './useFloatingDropdown'
import { type FillLevel, useFillLevel } from './contexts/FillLevelContext'

const parentFillLevelToBackground = {
Expand Down
25 changes: 14 additions & 11 deletions src/components/Sidecar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,20 @@ const SidecarItem = forwardRef<HTMLDivElement, SidecarProps>(
)
)

const SidecarButton = forwardRef<HTMLButtonElement, ButtonProps>(
({ ...props }, ref) => (
<Button
ref={ref}
tertiary
padding="none"
width="100%"
{...props}
/>
)
)
const SidecarButton = forwardRef<any, ButtonProps>(({ ...props }, ref) => (
<Button
ref={ref}
tertiary
{...{
width: '100%',
[`> :nth-child(${props.startIcon ? '2' : '1'})`]: {
flexGrow: 1,
justifyContent: 'start',
},
}}
{...props}
/>
))

export default Sidecar
export { SidecarItem, SidecarButton }
4 changes: 2 additions & 2 deletions src/components/StackCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ function StackCardRef(
marginTop="xsmall"
style={{
display: '-webkit-box',
'-webkit-line-clamp': '2',
'-webkit-box-orient': 'vertical',
WebkitLineClamp: '2',
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
}}
>
Expand Down
69 changes: 0 additions & 69 deletions src/components/useFloatingDropdown.tsx

This file was deleted.

Loading

0 comments on commit 16d508e

Please sign in to comment.