-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Range): new component #290
Merged
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7d86f39
fixes #175 proof of concept for Slider component from daisyUI
480de50
Merge branch 'dev' into 175-slider-component
benjamincanac cb45ef6
Merge branch 'nuxtlabs:dev' into 175-slider-component
TomSmith27 108457f
refactor to use style more based on tailwind material
155c1b3
Merge branch 'dev' into 175-slider-component
8620beb
format code slightly nicer and add firefox support
26a9c72
Merge branch '175-slider-component' of https://github.com/TomSmith27/…
8bba21e
Add disabled state
6d74a06
rename from Slider to range
df7ece1
revert prettier changes, and add config so this doesnt happen again
3f2cf8b
revert formatting
7b17cc6
remove style tag
8bdba6b
Merge branch 'dev' into 175-slider-component
benjamincanac 4697d47
up
benjamincanac 194fc34
switch to border to add shadow
benjamincanac a2bb58d
up
benjamincanac efd5022
up
benjamincanac e7de52a
fix firefox
benjamincanac 89367fa
up
benjamincanac bda0e63
Delete package-lock.json
benjamincanac 6044d33
up
benjamincanac d5662fa
up
benjamincanac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ dist | |
.DS_Store | ||
.history | ||
.vercel | ||
.idea |
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,6 @@ | ||
{ | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,7 @@ | ||
<script setup> | ||
const value = ref(50) | ||
</script> | ||
|
||
<template> | ||
<URange v-model.number="value" /> | ||
</template> |
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,101 @@ | ||
--- | ||
github: true | ||
description: Display a range field | ||
navigation: | ||
badge: "Edge" | ||
--- | ||
|
||
## Usage | ||
|
||
Use a `v-model` to make the Range reactive. | ||
|
||
::component-example | ||
#default | ||
:range-example | ||
|
||
#code | ||
```vue | ||
<script setup> | ||
const value = ref(50) | ||
</script> | ||
|
||
<template> | ||
<URange v-model="value" /> | ||
</template> | ||
``` | ||
:: | ||
|
||
### Style | ||
|
||
Use the `color` prop to change the visual style of the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: range' | ||
placeholder: 'Search...' | ||
props: | ||
color: 'primary' | ||
--- | ||
:: | ||
|
||
### Size | ||
|
||
Use the `size` prop to change the size of the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
size: 'md' | ||
--- | ||
:: | ||
|
||
### Disabled | ||
|
||
Use the `disabled` prop to disable the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
disabled: true | ||
--- | ||
:: | ||
|
||
### Min and Max | ||
|
||
Use the `min` and `max` prop to configure the Range. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
min: 0 | ||
max: 100 | ||
--- | ||
:: | ||
|
||
### Step | ||
|
||
Use the `step` prop to change the step increment. | ||
|
||
::component-card | ||
--- | ||
baseProps: | ||
name: 'range' | ||
props: | ||
step: 20 | ||
--- | ||
:: | ||
|
||
## Props | ||
|
||
:component-props | ||
|
||
## Preset | ||
|
||
:component-preset |
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the UI does not use a prettier, it uses Eslint ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can let it inside the project, so people who have the Prettier extension on VSCode can contribute easily?