-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1145 from faisal7008/feature/1070-explorer-zoom-drag
feat: show navigation and zoom utilities in resources explorer #1070
- Loading branch information
Showing
9 changed files
with
461 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { SVGProps } from 'react'; | ||
|
||
const DragIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="20" | ||
height="22" | ||
viewBox="0 0 20 22" | ||
fill="none" | ||
{...props} | ||
> | ||
<path | ||
d="M9 3.63159V3.22106C9 2.88773 9.18056 1.57645 10.7363 1.57645C12.292 1.57645 12.3333 2.68771 12.5 3.02104V7.13159V4.13159C12.5 3.79826 12.6698 2.63159 14.1366 2.63159C15.7366 2.63159 16 3.63159 16 4.13159V7.63159V5.63159C16 5.29826 16.2924 4.13159 17.3814 4.13159C18.5814 4.13159 19 5.13159 19 5.63159C19 6.29826 19 8.03159 19 9.63159C19 11.6316 18.5 14.1316 18 16.1316C17.6 17.7316 16.1667 19.7983 15.5 20.6316H7.99999C4.49998 18.1316 2.5 13.1316 2 11.6316C1.5 10.1316 1.5 7.63159 2.5 6.63159C3.3 5.83159 4.83333 4.96493 5.49999 4.63159V11.1316V4.13159C5.5 3.13159 5.86913 2.15429 7.22482 2.15429C8.46938 2.15429 9 3.13159 9 3.63159ZM9 3.63159V7.13159V7.63159V3.63159Z" | ||
stroke="#0C1717" | ||
stroke-width="1" | ||
stroke-linejoin="round" | ||
/> | ||
</svg> | ||
); | ||
|
||
export default DragIcon; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import * as icons from '@components/icons'; | ||
import { SVGProps } from 'react'; | ||
import Tooltip from '@components/tooltip/Tooltip'; | ||
|
||
// More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction | ||
|
||
const IconsWrapper = (props: SVGProps<SVGSVGElement>) => ( | ||
<div className="inline-flex w-full flex-wrap gap-2 p-2"> | ||
{Object.entries(icons).map(([name, Icon]) => ( | ||
<div key={name} className="relative"> | ||
<div className="peer flex h-full flex-col items-center justify-center gap-2 rounded-md border bg-white p-3"> | ||
<Icon {...props} /> | ||
<p className="text-sm">{name}</p> | ||
</div> | ||
<Tooltip align="center">{`import { ${name} } from "@components/icons"`}</Tooltip> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
|
||
const meta: Meta<typeof IconsWrapper> = { | ||
title: 'Komiser/Icons', | ||
component: IconsWrapper, | ||
tags: ['autodocs'], | ||
argTypes: {} | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof IconsWrapper>; | ||
|
||
// More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args | ||
export const Primary: Story = { | ||
args: { | ||
width: '24', | ||
height: '24' | ||
} | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { SVGProps } from 'react'; | ||
|
||
const MinusIcon = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="25" | ||
viewBox="0 0 24 25" | ||
fill="none" | ||
{...props} | ||
> | ||
<path | ||
d="M6 12.6318H18" | ||
stroke="#0C1717" | ||
strokeWidth="1.5" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</svg> | ||
); | ||
|
||
export default MinusIcon; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export { default as AlertIcon } from './AlertIcon'; | ||
export { default as ArrowDownIcon } from './ArrowDownIcon'; | ||
export { default as ArrowLeftIcon } from './ArrowLeftIcon'; | ||
export { default as BookmarkIcon } from './BookmarkIcon'; | ||
export { default as CheckIcon } from './CheckIcon'; | ||
export { default as ChevronDownIcon } from './ChevronDownIcon'; | ||
export { default as ChevronRightIcon } from './ChevronRightIcon'; | ||
export { default as ClearFilterIcon } from './ClearFilterIcon'; | ||
export { default as CloseIcon } from './CloseIcon'; | ||
export { default as DeleteIcon } from './DeleteIcon'; | ||
export { default as DocumentTextIcon } from './DocumentTextIcon'; | ||
export { default as DownloadIcon } from './DownloadIcon'; | ||
export { default as DragIcon } from './DragIcon'; | ||
export { default as DuplicateIcon } from './DuplicateIcon'; | ||
export { default as EditIcon } from './EditIcon'; | ||
export { default as ErrorIcon } from './ErrorIcon'; | ||
export { default as FilterIcon } from './FilterIcon'; | ||
export { default as Folder2Icon } from './Folder2Icon'; | ||
export { default as KeyIcon } from './KeyIcon'; | ||
export { default as LinkIcon } from './LinkIcon'; | ||
export { default as LoadingSpinner } from './LoadingSpinner'; | ||
export { default as MinusIcon } from './MinusIcon'; | ||
export { default as More2Icon } from './More2Icon'; | ||
export { default as PlusIcon } from './PlusIcon'; | ||
export { default as RecordCircleIcon } from './RecordCircleIcon'; | ||
export { default as RefreshIcon } from './RefreshIcon'; | ||
export { default as SearchIcon } from './SearchIcon'; | ||
export { default as ShieldSecurityIcon } from './ShieldSecurityIcon'; | ||
export { default as StarIcon } from './StarIcon'; | ||
export { default as VariableIcon } from './VariableIcon'; | ||
export { default as WarningIcon } from './WarningIcon'; |
Oops, something went wrong.