fuellabs / fuel-ui Goto Github PK
View Code? Open in Web Editor NEWFuel design system
Home Page: https://design.fuel.network
License: Apache License 2.0
Fuel design system
Home Page: https://design.fuel.network
License: Apache License 2.0
The user needs to have tokens in order to interact with the escrow contract.
No response
No response
We should probably add a logo/styled title to the top nav component
I'm not sure?
Try to import card from @fuels-ui/react
No Error
Error
<Accordion type="single" defaultValue="item-1" collapsible>
<Accordion.Item value="item-1">
<Accordion.Trigger>Hello world</Accordion.Trigger>
<Accordion.Content>
Yes. It's unstyled by default, giving you
<br /> freedom over the look and feel.
</Accordion.Content>
</Accordion.Item>
<Accordion.Item value="item-2">
<Accordion.Trigger>Is it unstyled?</Accordion.Trigger>
<Accordion.Content>
Yes. It's unstyled by default, giving you
<br /> freedom over the look and feel.
</Accordion.Content>
</Accordion.Item>
</Accordion>
Alert
componentAlert.Title
componentAlert.Description
componentAlert.Actions
componentAlert.Button
componentimport { Alert } from '@fuel-js/react';
/**
* Basic example
*/
export default () => (
<Alert status='error'>
<Alert.Title>Your browser is outdated!</AlertTitle>
<Alert.Description>Your experience may be degraded.</AlertDescription>
<Alert.Actions>
<Alert.Button>Dismiss</Alert.Button>
</Alert.Actions>
</Alert>
);
status: 'error' | 'success' | 'warning' | 'info'
The user needs to be informed after certain events: copy address, successful or unsuccessful transaction etc
Card
componentCard.Header
componentCard.Body
componentCard.Footer
componentimport { Card, ButtonLink } from '@fuel-js/react';
export default () => (
<Card>
<Card.Header>Some Title</Card.Header>
<Card.Body>Image a long and beautiful text here!</Card.Body>
<Card.Footer>
<ButtonLink variant="link">More info</ButtonLink>
</Card.Footer>
</Alert>
);
boxShadow: BoxShadowSizes
direction: 'row' | 'column'
<>
<List type="ordered">
<List.Item>Value #1</List.Item>
<List.Item>Value #2</List.Item>
</List>
<List icon="CheckIcon">
<List.Item>Value #1</List.Item>
<List.Item>Value #2</List.Item>
</List>
</>
type: 'ordered' | 'unordered'
icon: Icons
๐
Right now 10 new wallets are generated every time the user refreshes the page. We only want to generate wallets once when the app first starts.
<Transitions.Rotate180 />
<Transitions.Rotate360 />
<Transitions.SlideLeft />
<Transitions.SlideRight />
<Transitions.SlideTop />
<Transitions.SlideDown />
<Transitions.Fade />
on: boolaen
(trigger transition)Form.Control
componentForm.Label
componentForm.ErrorMessage
componentForm.HelperText
componentForm.Control
: The wrapper that provides context and functionality for all children.Form.Label
: The label of a form section. The usage is similar to html label.Form.HelperText
: The message that tells users more details about the form section.Form.ErrorMessage
: The message that shows up when an error occurs.import { Form, Input } from '@fuel-js/react';
/**
* Basic example
*/
export default () => (
<Form.Control>
<Form.Label htmlFor='email'>Email address</Form.Label>
<Input id='email' type='email' />
<Form.HelperText>We'll never share your email.</Form.HelperText>
</Form.Control>
);
/**
* Using error message
*/
export default () => (
<Form.Control>
<Form.Label htmlFor='email'>Email address</Form.Label>
<Input id='email' type='email' />
<Form.ErrorMessage>Email is required.</Form.ErrorMessage>
</Form.Control>
);
aria-describedby
by label firstaria-describedby
by helper message if presentaria-describedby
by error message if invalidEscrow users need to be able to deposit assets into the escrow contract.
No response
No response
Basic project setup for the escrow frontend application. Contains a basic wallet prompt if user has not created a wallet and a blank landing page.
No response
No response
Trying to install dependencies under ./packages/react
not working.
Is it the node version?
Arguments:
/Users/<User>/.nvm/versions/node/v17.9.0/bin/node /opt/homebrew/Cellar/yarn/1.22.18/libexec/bin/yarn.js
PATH:
/opt/homebrew/sbin:/Users/<User>/.nvm/versions/node/v17.9.0/bin:/Users/<User>/.phpenv/shims:/Users/<User>/.phpenv/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/<User>/.composer/vendor/bin:/Users/<User>/.fig/bin:/Users/<User>/.local/bin
Yarn version:
1.22.18
Node version:
17.9.0
Platform:
darwin x64
Trace:
Error: https://registry.yarnpkg.com/@fuel%2fcss: Not found
at Request.params.callback [as _callback] (/opt/homebrew/Cellar/yarn/1.22.18/libexec/lib/cli.js:66138:18)
at Request.self.callback (/opt/homebrew/Cellar/yarn/1.22.18/libexec/lib/cli.js:140883:22)
at Request.emit (node:events:527:28)
at Request.<anonymous> (/opt/homebrew/Cellar/yarn/1.22.18/libexec/lib/cli.js:141855:10)
at Request.emit (node:events:527:28)
at IncomingMessage.<anonymous> (/opt/homebrew/Cellar/yarn/1.22.18/libexec/lib/cli.js:141777:12)
at Object.onceWrapper (node:events:641:28)
at IncomingMessage.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
๐ Not urgent.
I believe it needs to be re-deployed from Fuel's repo, since it was moved from @pedronauck's account to Fuel's organization.
URL: https://fuel-design-system.vercel.app/
Image:
Press to copy to clipboard
and a copy icon on left<Copyable>My text</Copyable>
To interact with the smart contracts we will need to store them in the contracts directory under escrow.
No response
No response
TextArea
componentThe Textarea component allows you to easily create multi-line text inputs.
import { TextArea } from '@fuel-js/react';
/**
* Basic example
*/
export default () => (
<TextArea placeholder='Here is a sample placeholder' />
);
<TextArea />
value: string
defaultValue: string
onChange: (value: string) => void
isInvalid: boolean
isRequired: boolean
isDisabled: boolean
isLoading: boolean
isReadOnly: boolean
<textarea />
componentForm.Control
Users need to be able to withdraw funds from the escrow contract.
No response
No response
We need some method for users to be able to specify which wallet is making a contract call to escrow.
No response
No response
The user probably needs to be able to create 2 wallets as two addresses interact with the escrow contract. We may just want to create 2 wallets instead of 1 like we do now. This will also allow us to make sure everything is functioning correctly by checking each wallets token balance etc.
No response
No response
The user needs to be able to create escrow contracts.
No response
No response
<ButtonGroup>
<Button>First</Button>
<Button>Second</Button>
</ButtonGroup>
Avatar
componentAvatar.Image
componentAvatar.Fallback
componentimport { Avatar } from '@fuel-js/react';
export default () => (
<Avatar.Root>
<Avatar.Image src="https://path.to/your-image" alt="Michael Jordan" />
<Avatar.Fallback delayMs={600}>MJ</Avatar.Fallback>
</Avatar.Root>
);
I'm not sure whether this repo needs one, but we can close the issue if it doesn't...
Users will need to be able to update their approval state in the escrow contract.
No response
No response
Input.Number
componentvalue: Maybe<string | number>
onChange: (value: Maybe<string | number>) => void
decimals: number
isReadOnly: boolean
isDisabled: boolean
Reference here
<Description>
<Description.Item>Label:</Description.Item>
<Description.Value>Value</Description.Value>
</Description>
flow: 'row' | 'col'
itemStyle: CSSStyle
valueStyle: CSSStyle
The links in example/app to the design system are broken (404). It also may be a good idea to put these links in the root readme as well.
Input
componentInput.Field
componentInput.AddonLeft
componentInput.AddonRight
componentInput.ElementLeft
componentInput.ElementRight
componentimport { Input, Icon } from '@fuel-js/react';
/**
* Basic example
*/
export default () => (
<Input>
<Input.Field type="email" name="email" placeholder="email" />
</Input>
);
/**
* Using elements
*/
export default () => (
<Input>
<Input.ElementLeft element={<Icon.BiEnvelope />} />
<Input.Field type="email" name="email" placeholder="email" />
</Input>
);
/**
* Using addons
*/
export default () => (
<Input>
<Input.AddonLeft>+234</Input.AddonLeft>
<Input.Field type='tel' placeholder='phone number' />
</Input>
);
Input
size: 'sm' | 'md' | 'lg'
isInvalid: boolean
isRequired: boolean
isDisabled: boolean
isReadOnly: boolean
isFullWidth: boolean
<input />
elementA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.