diff --git a/demo/observer.html b/demo/observer.html new file mode 100644 index 0000000..5fd50e1 --- /dev/null +++ b/demo/observer.html @@ -0,0 +1,80 @@ + + +
+ + ++ There are no results matching your search. +
+- There are no results matching your search. -
-With TailwindCSS classes
-+ + ++ - -+-++ +Active State Example:
++ ++ + SHOW CODE ++ +-+ +++-+ With TailwindCSS classes +
+-<script> activeTab = 'Company'; @@ -701,37 +922,60 @@
Active State Example:
</nav>- --- -On Change Example:
-- -- - SHOW CODE -- ------Input:
-Hello World
-+ + +++ +++ +On Change Example:
++ ++ + SHOW CODE ++ ++- -++++Input:
+ ++ Hello World +
++--<div> <div class="flex flex-col"> @@ -742,21 +986,31 @@
Hello Wor </div>
-----Checkbox:
-- -OFF
-+ ++++++Checkbox:
++ +++ OFF +
++-<div> <input :change="checkboxValue = this.checked" :checked="checkboxValue" type="checkbox" class="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600"> @@ -764,24 +1018,32 @@
-
-- --Select:
- +Selected: Canada
--+ ++++++ +Select:
+ ++ Selected: + Canada +
++<div> <div class="flex flex-col"> @@ -797,71 +1059,188 @@
-
--Custom Select:
----- Wade Cooper - - - - - --
- - - + +- - Wade Cooper - - - -
-- - Jen Villaganas - - - -
-- - Tony Ennis - - - -
-- - AJ Browne - - - -
-+- -+-+Custom Select:
+++++ Wade Cooper + + + + + ++
+ + +- + Wade Cooper + + + +
+- + Jen Villaganas + + + +
+- + Tony Ennis + + + +
+- + AJ Browne + + + +
+-++<div> <div :clickout="showSelect = false" class="relative mt-2 max-w-sm"> @@ -879,36 +1258,58 @@
-
--- -Storing to Local Storage:
-- -- - SHOW CODE -- -- - -- -+ + +Update and Reload
-+ +-++ +Storing to Local Storage:
++ ++ + SHOW CODE ++ +-+ +-+ Update and Reload +
+-++++<div> <input :value="$storedValue" :change="$storedValue = this.value" value="Update and Reload" type="text" name="text" class="px-3 max-w-sm block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"> @@ -916,89 +1317,124 @@
Update </div>
- --+ -Multi Select:
-- -- - SHOW CODE -- - ++ + + ++- -+Multi Select:
++ ++ + SHOW CODE ++ - - + Flavor + + - -- ---Search Result:
-- + +
+++ :mouseover="selectedTag = tag" + :class="selectedTag == tag ? 'bg-blue-100 text-blue-700' : 'text-gray-700'" + class="font-mono font-semibold py-2 px-3 rounded cursor-pointer hover:bg-blue-100 hover:text-blue-700" + :text="tag" + > ++ Search Result: +
++ -
-Selected Tags:
---- - Selected Tags: +++ + - x - + > + x + +--+++<script> allTags = ['Cherries', 'Chocolate', 'Blueberry', 'Vanilla']; @@ -1053,131 +1489,163 @@
Multi Select:
</div>+ + ++ About Us + ++++ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod. +++ Contact Us + -+++ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod. ++- - - - ---- About Us - - ---- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod. --- Contact Us - - ---- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod. --- Team 3 - ---- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod. --- --+ -Alert Dialog:
-- + Team 3 +- - Show Code -- +++ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod. ++- - -- - -- Delete Account - ++ +-+-Alert Dialog:
++ ++ + Show Code ++ - Your account has been deleted. +
++ > +- Reset + Delete Account - -+ Are you sure you want to delete your account? +
--+ +++ This action cannot be undone. This will permanently delete your + account and remove all your data. +
+ +++ + ++ Cancel + ++ Yes, delete my account + +++<script> userId = 1; @@ -1235,131 +1703,132 @@
</dialog>
- --+ -Dialog:
-- -- - Show Code -- - - --- - -- - + -+ +-+- -Dialog:
++ -- Edit Profile - -
+- Your Name:
- -- Username:
- -+ + Show Code + - --+Tonic Dialog:
-- -- - Show Code -- + ++-Tonic Dialog:
++ ++ + Show Code ++ - - - - Open Modal - - -- + > + Open Modal + +-- - - - \ No newline at end of file + + +----- -- -- + +++++ ++ ++ --+++<style> .shimmer { @@ -1630,9 +2131,8 @@
Tonic Dialog:
</div>