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

Update - Tailwind CSS 3.4 #424

Merged
merged 5 commits into from
Feb 4, 2024
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hyperui",
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"start": "next start",
"build": "next build",
"postbuild": "npm run css",
Expand Down
6 changes: 3 additions & 3 deletions public/blogs/animation-extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<h2 class="text-lg font-medium text-gray-900">Duration</h2>

<div
class="grid grid-cols-5 gap-8 [&>*]:grid [&>*]:aspect-square [&>*]:place-content-center [&>*]:rounded-lg [&>*]:bg-indigo-500 [&>*]:text-white"
class="grid grid-cols-5 gap-8 *:grid *:aspect-square *:place-content-center *:rounded-lg *:bg-indigo-500 *:text-white"
>
<div class="animate-delay-0 animate-bounce">0ms</div>
<div class="animate-delay-75 animate-bounce">75ms</div>
Expand All @@ -56,7 +56,7 @@ <h2 class="text-lg font-medium text-gray-900">Duration</h2>
<h2 class="text-lg font-medium text-gray-900">Delay</h2>

<div
class="grid grid-cols-5 gap-8 [&>*]:grid [&>*]:aspect-square [&>*]:place-content-center [&>*]:rounded-lg [&>*]:bg-indigo-500 [&>*]:text-white"
class="grid grid-cols-5 gap-8 *:grid *:aspect-square *:place-content-center *:rounded-lg *:bg-indigo-500 *:text-white"
>
<div class="animate-delay-0 animate-bounce">0ms</div>
<div class="animate-delay-75 animate-bounce">75ms</div>
Expand All @@ -75,7 +75,7 @@ <h2 class="text-lg font-medium text-gray-900">Delay</h2>
<h2 class="text-lg font-medium text-gray-900">Ease</h2>

<div
class="grid grid-cols-5 gap-8 [&>*]:grid [&>*]:aspect-square [&>*]:place-content-center [&>*]:rounded-lg [&>*]:bg-indigo-500 [&>*]:text-white"
class="grid grid-cols-5 gap-8 *:grid *:aspect-square *:place-content-center *:rounded-lg *:bg-indigo-500 *:text-white"
>
<div class="animate-ease animate-pulse">Ease</div>
<div class="animate-ease-linear animate-pulse">Linear</div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/2.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/3.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/5.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/6.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/7.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
2 changes: 1 addition & 1 deletion public/components/application-ui-media/8.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img
src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=2680&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt=""
class="aspect-square w-20 rounded-lg object-cover"
class="size-20 rounded-lg object-cover"
/>

<div>
Expand Down
38 changes: 19 additions & 19 deletions public/components/application-ui-radio-groups/1-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@
<legend class="sr-only">Delivery</legend>

<div>
<input
type="radio"
name="DeliveryOption"
value="DeliveryStandard"
id="DeliveryStandard"
class="peer hidden"
checked
/>

<label
for="DeliveryStandard"
class="flex cursor-pointer items-center justify-between rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 peer-checked:border-blue-500 peer-checked:ring-1 peer-checked:ring-blue-500 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
class="flex cursor-pointer items-center justify-between gap-4 rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 has-[:checked]:border-blue-500 has-[:checked]:ring-1 has-[:checked]:ring-blue-500 dark:bg-gray-900 dark:hover:border-gray-700"
>
<p class="text-gray-700 dark:text-gray-200">Standard</p>

<p class="text-gray-900 dark:text-white">Free</p>

<input
type="radio"
name="DeliveryOption"
value="DeliveryStandard"
id="DeliveryStandard"
class="sr-only"
checked
/>
</label>
</div>

<div>
<input
type="radio"
name="DeliveryOption"
value="DeliveryPriority"
id="DeliveryPriority"
class="peer hidden"
/>

<label
for="DeliveryPriority"
class="flex cursor-pointer items-center justify-between rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 peer-checked:border-blue-500 peer-checked:ring-1 peer-checked:ring-blue-500 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
class="flex cursor-pointer items-center justify-between gap-4 rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 has-[:checked]:border-blue-500 has-[:checked]:ring-1 has-[:checked]:ring-blue-500 dark:bg-gray-900 dark:hover:border-gray-700"
>
<p class="text-gray-700 dark:text-gray-200">Next Day</p>

<p class="text-gray-900 dark:text-white">£9.99</p>

<input
type="radio"
name="DeliveryOption"
value="DeliveryPriority"
id="DeliveryPriority"
class="sr-only"
/>
</label>
</div>
</fieldset>
38 changes: 19 additions & 19 deletions public/components/application-ui-radio-groups/1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@
<legend class="sr-only">Delivery</legend>

<div>
<input
type="radio"
name="DeliveryOption"
value="DeliveryStandard"
id="DeliveryStandard"
class="peer hidden"
checked
/>

<label
for="DeliveryStandard"
class="flex cursor-pointer items-center justify-between rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 peer-checked:border-blue-500 peer-checked:ring-1 peer-checked:ring-blue-500"
class="flex cursor-pointer items-center justify-between gap-4 rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 has-[:checked]:border-blue-500 has-[:checked]:ring-1 has-[:checked]:ring-blue-500"
>
<p class="text-gray-700">Standard</p>

<p class="text-gray-900">Free</p>

<input
type="radio"
name="DeliveryOption"
value="DeliveryStandard"
id="DeliveryStandard"
class="sr-only"
checked
/>
</label>
</div>

<div>
<input
type="radio"
name="DeliveryOption"
value="DeliveryPriority"
id="DeliveryPriority"
class="peer hidden"
/>

<label
for="DeliveryPriority"
class="flex cursor-pointer items-center justify-between rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 peer-checked:border-blue-500 peer-checked:ring-1 peer-checked:ring-blue-500"
class="flex cursor-pointer items-center justify-between gap-4 rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 has-[:checked]:border-blue-500 has-[:checked]:ring-1 has-[:checked]:ring-blue-500"
>
<p class="text-gray-700">Next Day</p>

<p class="text-gray-900">£9.99</p>

<input
type="radio"
name="DeliveryOption"
value="DeliveryPriority"
id="DeliveryPriority"
class="sr-only"
/>
</label>
</div>
</fieldset>
72 changes: 23 additions & 49 deletions public/components/application-ui-radio-groups/2-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,71 +2,45 @@
<legend class="sr-only">Delivery</legend>

<div>
<input
type="radio"
name="DeliveryOption"
value="DeliveryStandard"
id="DeliveryStandard"
class="peer hidden [&:checked_+_label_svg]:block"
checked
/>

<label
for="DeliveryStandard"
class="flex cursor-pointer items-center justify-between rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 peer-checked:border-blue-500 peer-checked:ring-1 peer-checked:ring-blue-500 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
class="flex cursor-pointer justify-between gap-4 rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 has-[:checked]:border-blue-500 has-[:checked]:ring-1 has-[:checked]:ring-blue-500 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
>
<div class="flex items-center gap-2">
<svg
class="hidden h-5 w-5 text-blue-600"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fill-rule="evenodd"
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
clip-rule="evenodd"
/>
</svg>

<div>
<p class="text-gray-700 dark:text-gray-200">Standard</p>

<p class="mt-1 text-gray-900 dark:text-white">Free</p>
</div>

<p class="text-gray-900 dark:text-white">Free</p>
<input
type="radio"
name="DeliveryOption"
value="DeliveryStandard"
id="DeliveryStandard"
class="h-5 w-5 border-gray-300 text-blue-500 dark:border-gray-700 dark:bg-gray-800 dark:ring-offset-gray-900"
checked
/>
</label>
</div>

<div>
<input
type="radio"
name="DeliveryOption"
value="DeliveryPriority"
id="DeliveryPriority"
class="peer hidden [&:checked_+_label_svg]:block"
/>

<label
for="DeliveryPriority"
class="flex cursor-pointer items-center justify-between rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 peer-checked:border-blue-500 peer-checked:ring-1 peer-checked:ring-blue-500 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
class="flex cursor-pointer justify-between gap-4 rounded-lg border border-gray-100 bg-white p-4 text-sm font-medium shadow-sm hover:border-gray-200 has-[:checked]:border-blue-500 has-[:checked]:ring-1 has-[:checked]:ring-blue-500 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
>
<div class="flex items-center gap-2">
<svg
class="hidden h-5 w-5 text-blue-600"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fill-rule="evenodd"
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
clip-rule="evenodd"
/>
</svg>

<div>
<p class="text-gray-700 dark:text-gray-200">Next Day</p>

<p class="mt-1 text-gray-900 dark:text-white">£9.99</p>
</div>

<p class="text-gray-900 dark:text-white">£9.99</p>
<input
type="radio"
name="DeliveryOption"
value="DeliveryPriority"
id="DeliveryPriority"
class="h-5 w-5 border-gray-300 text-blue-500 dark:border-gray-700 dark:bg-gray-800 dark:ring-offset-gray-900"
/>
</label>
</div>
</fieldset>
Loading