Skip to content
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: Adds styles to support new drag and drop implementation #1

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/inputs/pro/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ export default {
data-[active-selection=true]:ring-$accentColor-$baseColorShade(-1,*)
dark:bg-$colorTemperature-600
dark:group-data-[multiple]:border-$colorTemperature-$borderShadeDarkMode(0,300,700)

${
"" /** Drag and drop styles:
- dropZone
- touchDropZone
- touchDragging
- longTouch .*/
}
[&.formkit-dropZone]:opacity-25
[&.formkit-touchDropZone]:opacity-25
[&.formkit-touchDragging]:!flex
[&.formkit-longTouch]:opacity-25
`,
selection: `
$radius
Expand Down
10 changes: 10 additions & 0 deletions src/inputs/pro/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ export default {
whitespace-nowrap
mr-1
`,
tagWrapper: `
${
"" /** Drag and drop styles:
- dropZone
- touchDropZone
.*/
}
[&.formkit-dropZone_.formkit-tag]:opacity-25
[&.formkit-touchDropZone_.formkit-tag]:opacity-25
`,
truncationCount: `
flex
items-center
Expand Down
10 changes: 10 additions & 0 deletions src/inputs/pro/taglist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ export default {
tags: `
pl-$spacing(2,2,4)
`,
tagWrapper: `
${
"" /** Drag and drop styles:
- dropZone
- touchDropZone
.*/
}
[&.formkit-dropZone_.formkit-tag]:opacity-25
[&.formkit-touchDropZone_.formkit-tag]:opacity-25
`,
input: `
!p-0
!w-[0%]
Expand Down
19 changes: 19 additions & 0 deletions src/inputs/pro/transferlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,25 @@ export default {
dark:ring-$colorTemperature-$borderShadeDarkMode(2,400,700)
dark:data-[is-active=true]:ring-$accentColor-$borderShadeDarkMode(2,300,600)
dark:aria-selected:ring-$accentColor-$borderShadeDarkMode(2,300,600)

${
"" /** Drag and drop styles:
- dropZone
- selectionDropZone
- touchDropZone
- touchSelectionDropZone
- longTouch .*/
}
[&.formkit-dropZone]:bg-$accentColor-100
[&.formkit-selectionDropZone]:bg-$accentColor-100
[&.formkit-touchDropZone]:bg-$accentColor-100
[&.formkit-touchSelectionDropZone]:bg-$accentColor-100
[&.formkit-longTouch]:bg-$accentColor-100
dark:[&.formkit-dropZone]:bg-$accentColor-900
dark:[&.formkit-selectionDropZone]:bg-$accentColor-900
dark:[&.formkit-touchDropZone]:bg-$accentColor-900
dark:[&.formkit-touchSelectionDropZone]:bg-$accentColor-900
dark:[&.formkit-longTouch]:bg-$accentColor-900
`,
transferlistOption: `
text-$scale(-1,*)
Expand Down
Loading