Skip to content

Commit

Permalink
Chore libs update (#130)
Browse files Browse the repository at this point in the history
* chore: phosphor update

* chore: minor updated

* chore: major updated

* chore: small changes

* chore: small changes

* chore: small changes

* chore: small changes

* chore: removed form

* chore: small changes

* chore: small changes

* chore: small changes
  • Loading branch information
YaGRRusso authored Mar 6, 2024
1 parent e05c2ba commit 945ea85
Show file tree
Hide file tree
Showing 59 changed files with 7,331 additions and 6,312 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<picture>
<img alt="Visu" src="./package/public/droz-visu.svg" height="64px" />
<img alt="Visu" src="visu.svg" height="64px" />
</picture>
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<picture>
<img alt="Visu" src="../../package/public/droz-visu.svg" height="64px" />
<img alt="Visu" src="public/visu.svg" height="64px" />
</picture>
</p>

Expand Down
22 changes: 11 additions & 11 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@storybook/addon-a11y": "^7.6.13",
"@storybook/addon-actions": "^7.6.13",
"@babel/core": "^7.24.0",
"@storybook/addon-a11y": "^7.6.17",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-designs": "^7.0.9",
"@storybook/addon-essentials": "^7.6.13",
"@storybook/addon-interactions": "^7.6.13",
"@storybook/addon-links": "^7.6.13",
"@storybook/addon-mdx-gfm": "^7.6.13",
"@storybook/preview-api": "^7.6.13",
"@storybook/react": "^7.6.13",
"@storybook/react-vite": "^7.6.13",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/addon-mdx-gfm": "^7.6.17",
"@storybook/preview-api": "^7.6.17",
"@storybook/react": "^7.6.17",
"@storybook/react-vite": "^7.6.17",
"@storybook/test-runner": "^0.16.0",
"babel-loader": "^9.1.3",
"storybook": "^7.6.13"
"storybook": "^7.6.17"
}
}
127 changes: 0 additions & 127 deletions docs/public/droz-visu.svg

This file was deleted.

5 changes: 1 addition & 4 deletions docs/src/index.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import { Meta } from '@storybook/blocks';

<Meta title="Início" />

![Visu](./visu.svg)
![Visu](public/visu.svg)

<br/><br/><br/>

## Welcome!
Visu is a component library and design system developed for Coaktion products.
Use the browser sidebar to chose between Visu components and test them using the Storybook playground

## Important
Before create/modify a component story *ALWAYS* build Visu and run _npm install_ to update Storybook dependencies (specially Visu)

## Installing
Install the library in a React project with the command _npm i @droz-js/visu_
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Accordion/Trigger.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Accordion, AccordionTriggerProps } from '@droz-js/visu'
import { Plus } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Plus } from 'phosphor-react'

const meta: Meta<AccordionTriggerProps> = {
title: 'Accordion/Trigger',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Avatar, AvatarProps } from '@droz-js/visu'
import { User } from 'phosphor-react'
import { User } from '@phosphor-icons/react'

import type { Meta, StoryObj } from '@storybook/react'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, ButtonProps } from '@droz-js/visu'
import { CheckCircle } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { CheckCircle } from 'phosphor-react'

const meta: Meta<ButtonProps> = {
title: 'Button/Button',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Checkbox, CheckboxProps } from '@droz-js/visu'
import { Question } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Question } from 'phosphor-react'

const meta: Meta<CheckboxProps> = {
title: 'Checkbox/Checkbox',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Dialog/Header.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, Dialog, DialogHeaderProps } from '@droz-js/visu'
import { Alien, SquaresFour, X } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Alien, SquaresFour, X } from 'phosphor-react'

const meta: Meta<DialogHeaderProps> = {
title: 'Dialog/Header',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Dialog/Root.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button, Dialog, DialogRootProps } from '@droz-js/visu'
import { SquaresFour } from '@phosphor-icons/react'
import { useArgs } from '@storybook/preview-api'
import { Meta, StoryObj } from '@storybook/react'
import { SquaresFour } from 'phosphor-react'

const meta: Meta<DialogRootProps> = {
title: 'Dialog/Root',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Divider/Divider.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Divider, DividerProps } from '@droz-js/visu'
import { SquaresFour } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { SquaresFour } from 'phosphor-react'

const meta: Meta<DividerProps> = {
title: 'Divider/Divider',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/FloatCard/Content.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar, FloatCard, FloatCardContentProps } from '@droz-js/visu'
import { MouseSimple } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { MouseSimple } from 'phosphor-react'

const meta: Meta<FloatCardContentProps> = {
title: 'FloatCard/Content',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/FloatCard/Root.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar, FloatCard, FloatCardRootProps } from '@droz-js/visu'
import { MouseSimple } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { MouseSimple } from 'phosphor-react'

const meta: Meta<FloatCardRootProps> = {
title: 'FloatCard/Root',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/FloatCard/Trigger.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar, FloatCard, FloatCardTriggerProps } from '@droz-js/visu'
import { MouseSimple } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { MouseSimple } from 'phosphor-react'

const meta: Meta<FloatCardTriggerProps> = {
title: 'FloatCard/Trigger',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, IconProps } from '@droz-js/visu'
import { X } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { X } from 'phosphor-react'

const meta: Meta<IconProps> = {
title: 'Icon/Icon',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Input/Icon.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Input, InputIconProps } from '@droz-js/visu'
import { Envelope, SquaresFour } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Envelope, SquaresFour } from 'phosphor-react'

const meta: Meta<InputIconProps> = {
title: 'Input/Icon',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Input/Root.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Input, InputRootProps } from '@droz-js/visu'
import { Envelope } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Envelope } from 'phosphor-react'

const meta: Meta<InputRootProps> = {
title: 'Input/Root',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Menu/Body.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Menu, MenuBodyProps } from '@droz-js/visu'
import { House } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { House } from 'phosphor-react'

const meta: Meta<MenuBodyProps> = {
title: 'Menu/Body',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Menu/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Menu, MenuButtonProps } from '@droz-js/visu'
import { House } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { House } from 'phosphor-react'

const meta: Meta<MenuButtonProps> = {
title: 'Menu/Button',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Sidebar/Body.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Sidebar, SidebarBodyProps } from '@droz-js/visu'
import { House } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { House } from 'phosphor-react'

const meta: Meta<SidebarBodyProps> = {
title: 'Sidebar/Body',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Sidebar/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Sidebar, SidebarButtonProps } from '@droz-js/visu'
import { House } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { House } from 'phosphor-react'

const meta: Meta<SidebarButtonProps> = {
title: 'Sidebar/Button',
Expand Down
10 changes: 4 additions & 6 deletions docs/src/stories/Sidebar/Header.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, Sidebar, SidebarHeaderProps } from '@droz-js/visu'
import { X } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { X } from 'phosphor-react'

const meta: Meta<SidebarHeaderProps> = {
title: 'Sidebar/Header',
Expand Down Expand Up @@ -30,11 +30,9 @@ export const Comum: StorySidebarHeaderProps = {
className="flex w-96 items-center justify-between"
>
<h1>Nexo</h1>
<Button.Root light>
<Button.Icon>
<X />
</Button.Icon>
</Button.Root>
<Button light>
<X />
</Button>
</Sidebar.Header>
)
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Tabs/Content.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tabs, TabsContentProps } from '@droz-js/visu'
import { Image } from 'phosphor-react'
import { Image } from '@phosphor-icons/react'

import type { Meta, StoryObj } from '@storybook/react'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Tabs/List.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tabs, TabsListProps } from '@droz-js/visu'
import { Image } from 'phosphor-react'
import { Image } from '@phosphor-icons/react'

import type { Meta, StoryObj } from '@storybook/react'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Tabs/Root.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tabs, TabsRootProps } from '@droz-js/visu'
import { Airplane, Alarm, Alien } from 'phosphor-react'
import { Airplane, Alarm, Alien } from '@phosphor-icons/react'

import type { Meta, StoryObj } from '@storybook/react'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Tabs/Trigger.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tabs, TabsTriggerProps } from '@droz-js/visu'
import { Image } from 'phosphor-react'
import { Image } from '@phosphor-icons/react'

import type { Meta, StoryObj } from '@storybook/react'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Toggle/Item.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Toggle, ToggleItemProps } from '@droz-js/visu'
import { Alien } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Alien } from 'phosphor-react'

const meta: Meta<ToggleItemProps> = {
title: 'Toggle/Item',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/Toggle/Toggle.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Toggle, ToggleRootProps } from '@droz-js/visu'
import { Alien, FlyingSaucer, Planet } from '@phosphor-icons/react'
import { Meta, StoryObj } from '@storybook/react'
import { Alien, FlyingSaucer, Planet } from 'phosphor-react'

const meta: Meta<ToggleRootProps> = {
title: 'Toggle/Toggle',
Expand Down
Loading

0 comments on commit 945ea85

Please sign in to comment.