-
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input Group utilities added, docs updated, Combobox updated
- Loading branch information
1 parent
2f62bed
commit 4d75bab
Showing
10 changed files
with
102 additions
and
59 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 |
---|---|---|
@@ -1,13 +1,51 @@ | ||
/* Components: Forms > Input Group */ | ||
|
||
/* | ||
@utilityinput-group {} | ||
@utility input-group { | ||
display: grid; | ||
align-items: stretch; | ||
border-radius: var(--radius-base); | ||
border-width: var(--default-border-width); | ||
border-color: var(--color-surface-200-800); | ||
overflow: hidden; | ||
|
||
@utilityig-cell {} | ||
& > * + * { | ||
border-left-width: 1px !important; | ||
border-color: var(--color-surface-200-800); | ||
} | ||
} | ||
|
||
@utilityig-input {} | ||
/* Child Elements -- */ | ||
|
||
@utilityig-select {} | ||
@utility ig-cell { | ||
font-size: var(--text-sm); | ||
display: flex; | ||
justify-contents: center; | ||
align-items: center; | ||
padding-inline: --spacing(4); | ||
} | ||
|
||
@utilityig-button {} | ||
*/ | ||
@utility ig-input { | ||
--tw-ring-inset: inset; | ||
background-color: transparent; | ||
border-width: 0; | ||
} | ||
|
||
@utility ig-select { | ||
--tw-ring-inset: inset; | ||
background-color: transparent; | ||
border-width: 0; | ||
} | ||
|
||
@utility ig-btn { | ||
--tw-ring-inset: inset; | ||
cursor: pointer; | ||
font-size: var(--text-base); | ||
font-weight: var(--font-weight-medium); | ||
text-decoration-line: none; | ||
display: flex; | ||
justify-contents: center; | ||
align-items: center; | ||
gap: --spacing(2); | ||
padding-inline: --spacing(4); | ||
white-space: nowrap; | ||
} |
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
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
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
46 changes: 21 additions & 25 deletions
46
sites/next.skeleton.dev/src/examples/tailwind/forms/ExampleGroups.astro
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 |
---|---|---|
@@ -1,42 +1,38 @@ | ||
--- | ||
// import { CircleDollarSign, Check, Search } from 'lucide-react'; | ||
import { CircleDollarSign, Check, Search } from 'lucide-react'; | ||
--- | ||
|
||
<div class="card p-4 bg-red-500 text-center"> | ||
<p>Input Groups needs to be updated or removed.</p> | ||
</div> | ||
|
||
<!-- <form class="mx-auto w-full max-w-md space-y-8"> | ||
// Website | ||
<div class="input-group divide-surface-200-800 grid-cols-[auto_1fr_auto] divide-x"> | ||
<div class="input-group-cell preset-tonal-surface">https://</div> | ||
<input type="text" placeholder="www.example.com" /> | ||
<form class="w-full space-y-8"> | ||
<!-- Website --> | ||
<div class="input-group grid-cols-[auto_1fr_auto]"> | ||
<div class="ig-cell preset-tonal">https://</div> | ||
<input class="ig-input" type="text" placeholder="www.example.com" /> | ||
</div> | ||
// Amount | ||
<div class="input-group divide-surface-200-800 grid-cols-[auto_1fr_auto] divide-x"> | ||
<div class="input-group-cell preset-tonal-surface"> | ||
<!-- Amount --> | ||
<div class="input-group grid-cols-[auto_1fr_auto]"> | ||
<div class="ig-cell preset-tonal"> | ||
<CircleDollarSign size={16} /> | ||
</div> | ||
<input type="text" placeholder="Amount" /> | ||
<select> | ||
<input class="ig-input" type="text" placeholder="Amount" /> | ||
<select class="ig-select"> | ||
<option>USD</option> | ||
<option>CAD</option> | ||
<option>EUR</option> | ||
</select> | ||
</div> | ||
// Username | ||
<div class="input-group divide-surface-200-800 grid-cols-[1fr_auto] divide-x"> | ||
<input type="text" placeholder="Enter Username..." /> | ||
<button class="btn preset-filled" title="Username already in use."> | ||
<!-- Username --> | ||
<div class="input-group grid-cols-[1fr_auto]"> | ||
<input class="ig-input" type="text" placeholder="Enter Username..." /> | ||
<button class="ig-btn preset-filled" title="Username already in use."> | ||
<Check size={16} /> | ||
</button> | ||
</div> | ||
// Search | ||
<div class="input-group divide-surface-200-800 grid-cols-[auto_1fr_auto] divide-x"> | ||
<div class="input-group-cell"> | ||
<!-- Search --> | ||
<div class="input-group grid-cols-[auto_1fr_auto]"> | ||
<div class="ig-cell preset-tonal"> | ||
<Search size={16} /> | ||
</div> | ||
<input type="search" placeholder="Search..." /> | ||
<button class="btn preset-filled">Submit</button> | ||
<input class="ig-input" type="search" placeholder="Search..." /> | ||
<button class="ig-btn preset-filled">Submit</button> | ||
</div> | ||
</form> --> | ||
</form> |
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