From 4034b2dcf1a654c22a1e5a7ee7a4b60e550b9c1a Mon Sep 17 00:00:00 2001 From: Ronan Berder Date: Tue, 22 Apr 2025 16:09:56 +0800 Subject: [PATCH] Cleaning up folders --- dist/basecoat.tailwind.css | 1 - docs/_components/dialog.njk | 149 ---------- docs/_components/popover.njk | 129 -------- docs/_components/select.njk | 224 -------------- docs/_components/tabs.njk | 120 -------- docs/_components/toast.njk | 134 --------- docs/_includes/components/dialog.njk | 216 +++++++++----- docs/_includes/components/popover.njk | 165 ++++++++--- docs/_includes/components/select.njk | 276 ++++++++++++++---- docs/_includes/components/tabs.njk | 253 +++++++--------- docs/_includes/components/toast.njk | 153 ++++++++-- .../{components => partials}/accordion.njk | 0 .../{components => partials}/alert-dialog.njk | 0 .../{components => partials}/alert.njk | 0 .../{components => partials}/avatar.njk | 0 .../{components => partials}/badge.njk | 0 .../{components => partials}/breadcrumb.njk | 0 .../{components => partials}/button.njk | 0 .../{components => partials}/card.njk | 0 .../{components => partials}/checkbox.njk | 0 .../{components => partials}/combobox.njk | 0 docs/_includes/partials/dialog.njk | 71 +++++ .../dropdown-menu.njk | 0 .../{components => partials}/form.njk | 0 .../{components => partials}/input.njk | 0 .../{components => partials}/label.njk | 0 .../{components => partials}/pagination.njk | 0 docs/_includes/partials/popover.njk | 38 +++ .../{components => partials}/radio-group.njk | 0 docs/_includes/partials/select.njk | 56 ++++ .../{components => partials}/skeleton.njk | 0 .../{components => partials}/slider.njk | 0 .../{components => partials}/switch.njk | 0 .../{components => partials}/table.njk | 0 docs/_includes/partials/tabs.njk | 167 +++++++++++ .../{components => partials}/textarea.njk | 0 docs/_includes/partials/toast.njk | 23 ++ .../{components => partials}/tooltip.njk | 0 docs/index.njk | 62 ++-- docs/partials/toast/error.njk | 2 +- docs/partials/toast/info.njk | 2 +- docs/partials/toast/success.njk | 2 +- docs/partials/toast/warning.njk | 2 +- package-lock.json | 12 - package.json | 3 - 45 files changed, 1122 insertions(+), 1138 deletions(-) delete mode 100644 docs/_components/dialog.njk delete mode 100644 docs/_components/popover.njk delete mode 100644 docs/_components/select.njk delete mode 100644 docs/_components/tabs.njk delete mode 100644 docs/_components/toast.njk rename docs/_includes/{components => partials}/accordion.njk (100%) rename docs/_includes/{components => partials}/alert-dialog.njk (100%) rename docs/_includes/{components => partials}/alert.njk (100%) rename docs/_includes/{components => partials}/avatar.njk (100%) rename docs/_includes/{components => partials}/badge.njk (100%) rename docs/_includes/{components => partials}/breadcrumb.njk (100%) rename docs/_includes/{components => partials}/button.njk (100%) rename docs/_includes/{components => partials}/card.njk (100%) rename docs/_includes/{components => partials}/checkbox.njk (100%) rename docs/_includes/{components => partials}/combobox.njk (100%) create mode 100644 docs/_includes/partials/dialog.njk rename docs/_includes/{components => partials}/dropdown-menu.njk (100%) rename docs/_includes/{components => partials}/form.njk (100%) rename docs/_includes/{components => partials}/input.njk (100%) rename docs/_includes/{components => partials}/label.njk (100%) rename docs/_includes/{components => partials}/pagination.njk (100%) create mode 100644 docs/_includes/partials/popover.njk rename docs/_includes/{components => partials}/radio-group.njk (100%) create mode 100644 docs/_includes/partials/select.njk rename docs/_includes/{components => partials}/skeleton.njk (100%) rename docs/_includes/{components => partials}/slider.njk (100%) rename docs/_includes/{components => partials}/switch.njk (100%) rename docs/_includes/{components => partials}/table.njk (100%) create mode 100644 docs/_includes/partials/tabs.njk rename docs/_includes/{components => partials}/textarea.njk (100%) create mode 100644 docs/_includes/partials/toast.njk rename docs/_includes/{components => partials}/tooltip.njk (100%) diff --git a/dist/basecoat.tailwind.css b/dist/basecoat.tailwind.css index 71ddc78..8f927dd 100644 --- a/dist/basecoat.tailwind.css +++ b/dist/basecoat.tailwind.css @@ -1,5 +1,4 @@ @import "tailwindcss"; -@import "tw-animate-css"; @custom-variant dark (&:is(.dark *)); diff --git a/docs/_components/dialog.njk b/docs/_components/dialog.njk deleted file mode 100644 index bf34b64..0000000 --- a/docs/_components/dialog.njk +++ /dev/null @@ -1,149 +0,0 @@ -{% macro dialog( - id, - trigger=None, - title=None, - description=None, - footer=None, - main_attrs={}, - trigger_attrs={}, - content_attrs={}, - content_header_attrs={}, - content_body_attrs={}, - content_footer_attrs={}, - open=false, - close_button=true, - close_on_overlay_click=true -) %} -{% if registerComponent('dialog') %} - -{% endif %} -
- {% if trigger %} - - {% endif %} - -
-{% endmacro %} \ No newline at end of file diff --git a/docs/_components/popover.njk b/docs/_components/popover.njk deleted file mode 100644 index 44e2555..0000000 --- a/docs/_components/popover.njk +++ /dev/null @@ -1,129 +0,0 @@ -{% macro popover( - id=None, - trigger=None, - main_attrs=None, - trigger_attrs=None, - content_attrs=None -) %} -{% if registerComponent('popover') %} - -{% endif %} - -
- {% if trigger %} - - {% endif %} - -
-{% endmacro %} diff --git a/docs/_components/select.njk b/docs/_components/select.njk deleted file mode 100644 index 08f4e36..0000000 --- a/docs/_components/select.njk +++ /dev/null @@ -1,224 +0,0 @@ -{% macro select( - id=None, - name=None, - selected=None, - main_attrs=None, - trigger_attrs=None, - content_attrs=None, - listbox_attrs=None, - is_combobox=False -) %} -{% if registerComponent('select') %} - -{% endif %} - -
- - - {% if name %} - - {% endif %} -
-{% endmacro %} \ No newline at end of file diff --git a/docs/_components/tabs.njk b/docs/_components/tabs.njk deleted file mode 100644 index eb5a7e9..0000000 --- a/docs/_components/tabs.njk +++ /dev/null @@ -1,120 +0,0 @@ -{% macro tabs( - tabs, - main_attrs=None, - trigger_attrs=None, - content_attrs=None - ) -%} -{% if registerComponent('toast') %} - -{% endif %} - -
- {% if trigger %} - - {% endif %} - -
-{% endmacro %} - diff --git a/docs/_components/toast.njk b/docs/_components/toast.njk deleted file mode 100644 index 455f0ec..0000000 --- a/docs/_components/toast.njk +++ /dev/null @@ -1,134 +0,0 @@ -{% macro toaster( - id="toaster", - toasts=[], - main_attrs=None, - is_fragment=false -) %} -{% if not is_fragment and registerComponent('toast') %} - -{% endif %} - -{% set iconMapping = { - 'error': 'circle-x', - 'success': 'circle-check', - 'info': 'info', - 'warning': 'circle-alert' -} %} - -
-{% for toast in toasts %} -
-
-
- {% if toast.category in ["error", "success", "info", "warning"] %} - {% lucide iconMapping[toast.category], class="size-4 shrink-0" %} - {% endif %} -
- {% if toast.message is string %} -

{{ toast.message }}

- {% elif toast.message is mapping %} - {% if toast.message.title %} -

{{ toast.message.title }}

- {% endif %} - {% if toast.message.description %} -

{{ toast.message.description }}

- {% endif %} - {% endif %} -
- {% if toast.message.action or toast.message.cancel %} -
- {% if toast.message.action %} - {% if toast.message.action.click %} - - {% elif toast.message.action.url %} - {{ toast.message.action.label }} - {% endif %} - {% endif %} - {% if toast.message.cancel %} - {% if toast.message.cancel.click %} - - {% elif toast.message.cancel.url %} - {{ toast.message.cancel.label }} - {% endif %} - {% endif %} -
- {% endif %} -
-
-
-{% endfor %} -
-{% endmacro %} \ No newline at end of file diff --git a/docs/_includes/components/dialog.njk b/docs/_includes/components/dialog.njk index 33cb02b..bf34b64 100644 --- a/docs/_includes/components/dialog.njk +++ b/docs/_includes/components/dialog.njk @@ -1,71 +1,149 @@ -
-
-

Dialog

-
-
-
- {% set footer %} - - - {% endset %} - {% call dialog( - id="demo-dialog-edit-profile", - title="Edit profile", - description="Make changes to your profile here. Click save when you're done.", - main_attrs={"x-ref": "myDialog"}, - trigger="Edit Profile", - trigger_attrs={"class": "btn-outline"}, - content_attrs={"class": "w-full sm:max-w-[425px] max-h-[612px]"}, - footer=footer - ) %} -
-
- - -
-
- - -
-
- {% endcall %} - - {% set footer %} - - {% endset %} - {% call dialog( - id="dialog-example", - title="Scrollable Content", - description="This is a dialog with scrollable content.", - main_attrs={"x-ref": "myDialog"}, - trigger="Scrollable Content", - trigger_attrs={"class": "btn-outline"}, - content_attrs={"class": "w-full sm:max-w-[425px] max-h-[612px]"}, - content_body_attrs={"class": "overflow-y-auto scrollbar"}, - footer=footer - ) %} -
-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-
- {% endcall %} +{% macro dialog( + id, + trigger=None, + title=None, + description=None, + footer=None, + main_attrs={}, + trigger_attrs={}, + content_attrs={}, + content_header_attrs={}, + content_body_attrs={}, + content_footer_attrs={}, + open=false, + close_button=true, + close_on_overlay_click=true +) %} +{% if registerComponent('dialog') %} + +{% endif %} +
+ {% if trigger %} + + {% endif %} + -
\ No newline at end of file + +{% endmacro %} \ No newline at end of file diff --git a/docs/_includes/components/popover.njk b/docs/_includes/components/popover.njk index 71875c7..44e2555 100644 --- a/docs/_includes/components/popover.njk +++ b/docs/_includes/components/popover.njk @@ -1,38 +1,129 @@ -
-
-

Popover

-
-
- {% call popover( - id="demo-popover", - trigger="Open popover", - trigger_attrs={"class": "btn-outline"}, - content_attrs={"class": "w-80 p-4"} - ) %} -
-
-

Dimensions

-

Set the dimensions for the layer.

-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- {% endcall %} +{% macro popover( + id=None, + trigger=None, + main_attrs=None, + trigger_attrs=None, + content_attrs=None +) %} +{% if registerComponent('popover') %} + +{% endif %} + +
+ {% if trigger %} + + {% endif %} + -
\ No newline at end of file + +{% endmacro %} diff --git a/docs/_includes/components/select.njk b/docs/_includes/components/select.njk index 971b84c..08f4e36 100644 --- a/docs/_includes/components/select.njk +++ b/docs/_includes/components/select.njk @@ -1,56 +1,224 @@ -
-
-

Select

-
-
-
- - - {% call select( - selected="cyan" - ) %} +{% macro select( + id=None, + name=None, + selected=None, + main_attrs=None, + trigger_attrs=None, + content_attrs=None, + listbox_attrs=None, + is_combobox=False +) %} +{% if registerComponent('select') %} + +{% endif %} + +
+ + -
\ No newline at end of file + {% if name %} + + {% endif %} + +{% endmacro %} \ No newline at end of file diff --git a/docs/_includes/components/tabs.njk b/docs/_includes/components/tabs.njk index 2f0165c..eb5a7e9 100644 --- a/docs/_includes/components/tabs.njk +++ b/docs/_includes/components/tabs.njk @@ -1,167 +1,120 @@ +{% macro tabs( + tabs, + main_attrs=None, + trigger_attrs=None, + content_attrs=None + ) +%} +{% if registerComponent('toast') %} +{% endif %} -
-
-

Tabs

-
-
-
-
-
- - -
+
+ {% if trigger %} + + {% endif %} + +
+{% endmacro %} -
-
-
-

Account

-

Make changes to your account here. Click save when you're done.

-
-
-
-
- - -
-
- - -
-
-
-
- -
-
-
- - -
- -
-
- - -
-
- -
-
- - -
-
- -
-
- - -
-
-
-
-
\ No newline at end of file diff --git a/docs/_includes/components/toast.njk b/docs/_includes/components/toast.njk index b625f40..455f0ec 100644 --- a/docs/_includes/components/toast.njk +++ b/docs/_includes/components/toast.njk @@ -1,23 +1,134 @@ -
-
-

Toast

-
-
-
-
- - - - -
+{% macro toaster( + id="toaster", + toasts=[], + main_attrs=None, + is_fragment=false +) %} +{% if not is_fragment and registerComponent('toast') %} + +{% endif %} + +{% set iconMapping = { + 'error': 'circle-x', + 'success': 'circle-check', + 'info': 'info', + 'warning': 'circle-alert' +} %} + +
+{% for toast in toasts %} +
+
+
+ {% if toast.category in ["error", "success", "info", "warning"] %} + {% lucide iconMapping[toast.category], class="size-4 shrink-0" %} + {% endif %} +
+ {% if toast.message is string %} +

{{ toast.message }}

+ {% elif toast.message is mapping %} + {% if toast.message.title %} +

{{ toast.message.title }}

+ {% endif %} + {% if toast.message.description %} +

{{ toast.message.description }}

+ {% endif %} + {% endif %} +
+ {% if toast.message.action or toast.message.cancel %} +
+ {% if toast.message.action %} + {% if toast.message.action.click %} + + {% elif toast.message.action.url %} + {{ toast.message.action.label }} + {% endif %} + {% endif %} + {% if toast.message.cancel %} + {% if toast.message.cancel.click %} + + {% elif toast.message.cancel.url %} + {{ toast.message.cancel.label }} + {% endif %} + {% endif %} +
+ {% endif %} +
-
\ No newline at end of file +{% endfor %} + +{% endmacro %} \ No newline at end of file diff --git a/docs/_includes/components/accordion.njk b/docs/_includes/partials/accordion.njk similarity index 100% rename from docs/_includes/components/accordion.njk rename to docs/_includes/partials/accordion.njk diff --git a/docs/_includes/components/alert-dialog.njk b/docs/_includes/partials/alert-dialog.njk similarity index 100% rename from docs/_includes/components/alert-dialog.njk rename to docs/_includes/partials/alert-dialog.njk diff --git a/docs/_includes/components/alert.njk b/docs/_includes/partials/alert.njk similarity index 100% rename from docs/_includes/components/alert.njk rename to docs/_includes/partials/alert.njk diff --git a/docs/_includes/components/avatar.njk b/docs/_includes/partials/avatar.njk similarity index 100% rename from docs/_includes/components/avatar.njk rename to docs/_includes/partials/avatar.njk diff --git a/docs/_includes/components/badge.njk b/docs/_includes/partials/badge.njk similarity index 100% rename from docs/_includes/components/badge.njk rename to docs/_includes/partials/badge.njk diff --git a/docs/_includes/components/breadcrumb.njk b/docs/_includes/partials/breadcrumb.njk similarity index 100% rename from docs/_includes/components/breadcrumb.njk rename to docs/_includes/partials/breadcrumb.njk diff --git a/docs/_includes/components/button.njk b/docs/_includes/partials/button.njk similarity index 100% rename from docs/_includes/components/button.njk rename to docs/_includes/partials/button.njk diff --git a/docs/_includes/components/card.njk b/docs/_includes/partials/card.njk similarity index 100% rename from docs/_includes/components/card.njk rename to docs/_includes/partials/card.njk diff --git a/docs/_includes/components/checkbox.njk b/docs/_includes/partials/checkbox.njk similarity index 100% rename from docs/_includes/components/checkbox.njk rename to docs/_includes/partials/checkbox.njk diff --git a/docs/_includes/components/combobox.njk b/docs/_includes/partials/combobox.njk similarity index 100% rename from docs/_includes/components/combobox.njk rename to docs/_includes/partials/combobox.njk diff --git a/docs/_includes/partials/dialog.njk b/docs/_includes/partials/dialog.njk new file mode 100644 index 0000000..33cb02b --- /dev/null +++ b/docs/_includes/partials/dialog.njk @@ -0,0 +1,71 @@ +
+
+

Dialog

+
+
+
+ {% set footer %} + + + {% endset %} + {% call dialog( + id="demo-dialog-edit-profile", + title="Edit profile", + description="Make changes to your profile here. Click save when you're done.", + main_attrs={"x-ref": "myDialog"}, + trigger="Edit Profile", + trigger_attrs={"class": "btn-outline"}, + content_attrs={"class": "w-full sm:max-w-[425px] max-h-[612px]"}, + footer=footer + ) %} +
+
+ + +
+
+ + +
+
+ {% endcall %} + + {% set footer %} + + {% endset %} + {% call dialog( + id="dialog-example", + title="Scrollable Content", + description="This is a dialog with scrollable content.", + main_attrs={"x-ref": "myDialog"}, + trigger="Scrollable Content", + trigger_attrs={"class": "btn-outline"}, + content_attrs={"class": "w-full sm:max-w-[425px] max-h-[612px]"}, + content_body_attrs={"class": "overflow-y-auto scrollbar"}, + footer=footer + ) %} +
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+ {% endcall %} + + +
+
+
\ No newline at end of file diff --git a/docs/_includes/components/dropdown-menu.njk b/docs/_includes/partials/dropdown-menu.njk similarity index 100% rename from docs/_includes/components/dropdown-menu.njk rename to docs/_includes/partials/dropdown-menu.njk diff --git a/docs/_includes/components/form.njk b/docs/_includes/partials/form.njk similarity index 100% rename from docs/_includes/components/form.njk rename to docs/_includes/partials/form.njk diff --git a/docs/_includes/components/input.njk b/docs/_includes/partials/input.njk similarity index 100% rename from docs/_includes/components/input.njk rename to docs/_includes/partials/input.njk diff --git a/docs/_includes/components/label.njk b/docs/_includes/partials/label.njk similarity index 100% rename from docs/_includes/components/label.njk rename to docs/_includes/partials/label.njk diff --git a/docs/_includes/components/pagination.njk b/docs/_includes/partials/pagination.njk similarity index 100% rename from docs/_includes/components/pagination.njk rename to docs/_includes/partials/pagination.njk diff --git a/docs/_includes/partials/popover.njk b/docs/_includes/partials/popover.njk new file mode 100644 index 0000000..71875c7 --- /dev/null +++ b/docs/_includes/partials/popover.njk @@ -0,0 +1,38 @@ +
+
+

Popover

+
+
+ {% call popover( + id="demo-popover", + trigger="Open popover", + trigger_attrs={"class": "btn-outline"}, + content_attrs={"class": "w-80 p-4"} + ) %} +
+
+

Dimensions

+

Set the dimensions for the layer.

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ {% endcall %} +
+
\ No newline at end of file diff --git a/docs/_includes/components/radio-group.njk b/docs/_includes/partials/radio-group.njk similarity index 100% rename from docs/_includes/components/radio-group.njk rename to docs/_includes/partials/radio-group.njk diff --git a/docs/_includes/partials/select.njk b/docs/_includes/partials/select.njk new file mode 100644 index 0000000..971b84c --- /dev/null +++ b/docs/_includes/partials/select.njk @@ -0,0 +1,56 @@ +
+
+

Select

+
+
+
+ + + {% call select( + selected="cyan" + ) %} + +
+ Colors +
+ + Fuchsia +
+
+ + Cyan +
+
+ + Amber +
+
+
+ Gradients +
+ + Amber to Cyan +
+
+ + Cyan to Amber +
+
+ + Amber to Fuchsia +
+
+ {% endcall %} +
+
\ No newline at end of file diff --git a/docs/_includes/components/skeleton.njk b/docs/_includes/partials/skeleton.njk similarity index 100% rename from docs/_includes/components/skeleton.njk rename to docs/_includes/partials/skeleton.njk diff --git a/docs/_includes/components/slider.njk b/docs/_includes/partials/slider.njk similarity index 100% rename from docs/_includes/components/slider.njk rename to docs/_includes/partials/slider.njk diff --git a/docs/_includes/components/switch.njk b/docs/_includes/partials/switch.njk similarity index 100% rename from docs/_includes/components/switch.njk rename to docs/_includes/partials/switch.njk diff --git a/docs/_includes/components/table.njk b/docs/_includes/partials/table.njk similarity index 100% rename from docs/_includes/components/table.njk rename to docs/_includes/partials/table.njk diff --git a/docs/_includes/partials/tabs.njk b/docs/_includes/partials/tabs.njk new file mode 100644 index 0000000..2f0165c --- /dev/null +++ b/docs/_includes/partials/tabs.njk @@ -0,0 +1,167 @@ + + +
+
+

Tabs

+
+
+
+
+
+ + +
+ +
+
+
+

Account

+

Make changes to your account here. Click save when you're done.

+
+
+
+
+ + +
+
+ + +
+
+
+
+ +
+
+
+ + +
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+
+
\ No newline at end of file diff --git a/docs/_includes/components/textarea.njk b/docs/_includes/partials/textarea.njk similarity index 100% rename from docs/_includes/components/textarea.njk rename to docs/_includes/partials/textarea.njk diff --git a/docs/_includes/partials/toast.njk b/docs/_includes/partials/toast.njk new file mode 100644 index 0000000..b625f40 --- /dev/null +++ b/docs/_includes/partials/toast.njk @@ -0,0 +1,23 @@ +
+
+

Toast

+
+
+
+
+ + + + +
+
+
+
\ No newline at end of file diff --git a/docs/_includes/components/tooltip.njk b/docs/_includes/partials/tooltip.njk similarity index 100% rename from docs/_includes/components/tooltip.njk rename to docs/_includes/partials/tooltip.njk diff --git a/docs/index.njk b/docs/index.njk index ea59a83..80dfb8a 100644 --- a/docs/index.njk +++ b/docs/index.njk @@ -48,10 +48,10 @@ -{% from "./_components/dialog.njk" import dialog %} -{% from "./_components/popover.njk" import popover %} -{% from "./_components/select.njk" import select %} -{% from "./_components/toast.njk" import toaster %} +{% from "./_includes/components/dialog.njk" import dialog %} +{% from "./_includes/components/popover.njk" import popover %} +{% from "./_includes/components/select.njk" import select %} +{% from "./_includes/components/toast.njk" import toaster %}
- {% include "./_includes/components/accordion.njk" %} - {% include "./_includes/components/alert.njk" %} - {% include "./_includes/components/alert-dialog.njk" %} - {% include "./_includes/components/avatar.njk" %} - {% include "./_includes/components/badge.njk" %} - {% include "./_includes/components/breadcrumb.njk" %} - {% include "./_includes/components/button.njk" %} - {% include "./_includes/components/card.njk" %} - {% include "./_includes/components/checkbox.njk" %} - {% include "./_includes/components/combobox.njk" %} - {% include "./_includes/components/dialog.njk" %} - {% include "./_includes/components/dropdown-menu.njk" %} - {% include "./_includes/components/form.njk" %} - {% include "./_includes/components/input.njk" %} - {% include "./_includes/components/label.njk" %} - {% include "./_includes/components/pagination.njk" %} - {% include "./_includes/components/popover.njk" %} - {% include "./_includes/components/radio-group.njk" %} - {% include "./_includes/components/select.njk" %} - {% include "./_includes/components/skeleton.njk" %} - {% include "./_includes/components/slider.njk" %} - {% include "./_includes/components/switch.njk" %} - {% include "./_includes/components/table.njk" %} - {% include "./_includes/components/tabs.njk" %} - {% include "./_includes/components/textarea.njk" %} - {% include "./_includes/components/toast.njk" %} - {% include "./_includes/components/tooltip.njk" %} + {% include "./_includes/partials/accordion.njk" %} + {% include "./_includes/partials/alert.njk" %} + {% include "./_includes/partials/alert-dialog.njk" %} + {% include "./_includes/partials/avatar.njk" %} + {% include "./_includes/partials/badge.njk" %} + {% include "./_includes/partials/breadcrumb.njk" %} + {% include "./_includes/partials/button.njk" %} + {% include "./_includes/partials/card.njk" %} + {% include "./_includes/partials/checkbox.njk" %} + {% include "./_includes/partials/combobox.njk" %} + {% include "./_includes/partials/dialog.njk" %} + {% include "./_includes/partials/dropdown-menu.njk" %} + {% include "./_includes/partials/form.njk" %} + {% include "./_includes/partials/input.njk" %} + {% include "./_includes/partials/label.njk" %} + {% include "./_includes/partials/pagination.njk" %} + {% include "./_includes/partials/popover.njk" %} + {% include "./_includes/partials/radio-group.njk" %} + {% include "./_includes/partials/select.njk" %} + {% include "./_includes/partials/skeleton.njk" %} + {% include "./_includes/partials/slider.njk" %} + {% include "./_includes/partials/switch.njk" %} + {% include "./_includes/partials/table.njk" %} + {% include "./_includes/partials/tabs.njk" %} + {% include "./_includes/partials/textarea.njk" %} + {% include "./_includes/partials/toast.njk" %} + {% include "./_includes/partials/tooltip.njk" %}
{{ toaster() }} diff --git a/docs/partials/toast/error.njk b/docs/partials/toast/error.njk index 6fd0445..8b40e6f 100644 --- a/docs/partials/toast/error.njk +++ b/docs/partials/toast/error.njk @@ -1,4 +1,4 @@ -{% from "../../_components/toast.njk" import toaster %} +{% from "../../_includes/components/toast.njk" import toaster %} {% set toasts = [{ category: "error", message: { diff --git a/docs/partials/toast/info.njk b/docs/partials/toast/info.njk index 363e9b1..01e3834 100644 --- a/docs/partials/toast/info.njk +++ b/docs/partials/toast/info.njk @@ -1,4 +1,4 @@ -{% from "../../_components/toast.njk" import toaster %} +{% from "../../_includes/components/toast.njk" import toaster %} {% set toasts = [{ category: "info", message: { diff --git a/docs/partials/toast/success.njk b/docs/partials/toast/success.njk index 60739d7..37576c8 100644 --- a/docs/partials/toast/success.njk +++ b/docs/partials/toast/success.njk @@ -1,4 +1,4 @@ -{% from "../../_components/toast.njk" import toaster %} +{% from "../../_includes/components/toast.njk" import toaster %} {% set toasts = [{ message: { title: "Event has been created", diff --git a/docs/partials/toast/warning.njk b/docs/partials/toast/warning.njk index 8ba5ad3..2045f00 100644 --- a/docs/partials/toast/warning.njk +++ b/docs/partials/toast/warning.njk @@ -1,4 +1,4 @@ -{% from "../../_components/toast.njk" import toaster %} +{% from "../../_includes/components/toast.njk" import toaster %} {% set toasts = [{ category: "warning", message: { diff --git a/package-lock.json b/package-lock.json index b147a5d..9b65ba5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,9 +4,6 @@ "requires": true, "packages": { "": { - "dependencies": { - "tw-animate-css": "^1.2.5" - }, "devDependencies": { "@11ty/eleventy": "^3.0.0", "@grimlink/eleventy-plugin-lucide-icons": "^2.1.4", @@ -3372,15 +3369,6 @@ "dev": true, "license": "0BSD" }, - "node_modules/tw-animate-css": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.2.5.tgz", - "integrity": "sha512-ABzjfgVo+fDbhRREGL4KQZUqqdPgvc5zVrLyeW9/6mVqvaDepXc7EvedA+pYmMnIOsUAQMwcWzNvom26J2qYvQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/Wombosvideo" - } - }, "node_modules/uc.micro": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", diff --git a/package.json b/package.json index b6833b0..fc67f6c 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,5 @@ "@tailwindcss/cli": "^4.1.3", "concurrently": "^9.1.2", "tailwindcss": "^4.1.3" - }, - "dependencies": { - "tw-animate-css": "^1.2.5" } }