Skip to content

Commit bfeb004

Browse files
authored
Merge pull request #72 from creativetimofficial/npm-david-ai-1.0.5
Npm david ai 1.0.5
2 parents b4582d1 + a11b1a3 commit bfeb004

100 files changed

Lines changed: 2389 additions & 745 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## [1.0.5] 2024-12-24
4+
5+
### Added for NPM
6+
7+
- Added new functions for Accordion, Gallery and Stepper
8+
- Added cleanup functions for Accordion, Gallery and Stepper
9+
310
## [1.0.4] 2024-12-19
411

512
### Added for NPM
Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11

2-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
3-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind React<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
4-
</button>
5-
</div>
6-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
7-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind HTML<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
8-
</button>
9-
</div>
10-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
11-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind Vue<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
12-
</button>
2+
<div class="group block w-full" aria-disabled="false" data-dui-accordion-container data-dui-accordion-mode="all-open">
3+
<div
4+
class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
5+
data-dui-accordion-toggle
6+
data-dui-accordion-target="#allOpenAccordion1"
7+
aria-expanded="true">
8+
What is David UI?
9+
<svg data-dui-accordion-icon width="1.5em" height="1.5em" strokeWidth="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 rotate-180">
10+
<path d="M6 9L12 15L18 9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"></path>
11+
</svg>
12+
</div>
13+
<div id="allOpenAccordion1" class="overflow-hidden transition-all duration-300 border-b border-stone-200 dark:border-stone-700">
14+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">David UI is a comprehensive UI library built with Tailwind CSS, offering modern and customizable components for web development.</p>
15+
</div>
16+
17+
<div
18+
class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
19+
data-dui-accordion-toggle
20+
data-dui-accordion-target="#allOpenAccordion2"
21+
aria-expanded="true">
22+
Why choose David UI?
23+
<svg data-dui-accordion-icon width="1.5em" height="1.5em" strokeWidth="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4">
24+
<path d="M6 9L12 15L18 9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"></path>
25+
</svg>
26+
</div>
27+
<div id="allOpenAccordion2" class="overflow-hidden transition-all duration-300 border-b border-stone-200 dark:border-stone-700">
28+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">David UI provides an extensive collection of ready-to-use components with seamless integration and excellent developer experience.</p>
29+
</div>
1330
</div>
Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11

2-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
3-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind React<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="block h-4 w-4 group-data-[open=true]:hidden"><path d="M6 12H12M18 12H12M12 12V6M12 12V18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg><svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="hidden h-4 w-4 group-data-[open=true]:block"><path d="M6 12H18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
4-
</button>
5-
</div>
6-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
7-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind HTML<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="block h-4 w-4 group-data-[open=true]:hidden"><path d="M6 12H12M18 12H12M12 12V6M12 12V18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg><svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="hidden h-4 w-4 group-data-[open=true]:block"><path d="M6 12H18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
8-
</button>
9-
</div>
10-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
11-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind Vue<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="block h-4 w-4 group-data-[open=true]:hidden"><path d="M6 12H12M18 12H12M12 12V6M12 12V18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg><svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="hidden h-4 w-4 group-data-[open=true]:block"><path d="M6 12H18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
12-
</button>
2+
<div class="group block w-full"
3+
aria-disabled="false"
4+
data-dui-accordion-container
5+
data-dui-accordion-mode="exclusive">
6+
7+
<div class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
8+
data-dui-accordion-toggle
9+
data-dui-accordion-target="#customIconAccordion1"
10+
aria-expanded="false">
11+
What is David UI?
12+
<svg data-dui-accordion-icon-close xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
13+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
14+
</svg>
15+
<svg data-dui-accordion-icon-open xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
16+
<path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" />
17+
</svg>
18+
</div>
19+
20+
<div id="customIconAccordion1"
21+
class="overflow-hidden transition-all duration-300 border-b border-stone-200 dark:border-stone-700">
22+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">
23+
David UI is a comprehensive UI library built with Tailwind CSS, offering modern and customizable components for web development.
24+
</p>
25+
</div>
26+
27+
<div class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
28+
data-dui-accordion-toggle
29+
data-dui-accordion-target="#customIconAccordion2"
30+
aria-expanded="false">
31+
Why choose David UI?
32+
<svg data-dui-accordion-icon-close xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
33+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
34+
</svg>
35+
<svg data-dui-accordion-icon-open xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-4">
36+
<path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14" />
37+
</svg>
38+
</div>
39+
40+
<div id="customIconAccordion2"
41+
class="overflow-hidden transition-all duration-300 border-b border-stone-200 dark:border-stone-700">
42+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">
43+
David UI provides an extensive collection of ready-to-use components with seamless integration and excellent developer experience.
44+
</p>
45+
</div>
46+
1347
</div>
Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,34 @@
11

2-
<div class="group block w-full items-center justify-between cursor-pointer aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none mb-2 rounded-lg border border-stone-200 p-3" aria-disabled="false">
3-
<button class="flex items-center justify-between w-full text-left font-medium dark:text-white text-stone-800 p-0">Material Tailwind React<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
4-
</button>
5-
</div>
6-
<div class="group block w-full items-center justify-between cursor-pointer aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none mb-2 rounded-lg border border-stone-200 p-3" aria-disabled="false">
7-
<button class="flex items-center justify-between w-full text-left font-medium dark:text-white text-stone-800 p-0">Material Tailwind HTML<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
8-
</button>
9-
</div>
10-
<div class="group block w-full items-center justify-between cursor-pointer aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none rounded-lg border border-stone-200 p-3" aria-disabled="false">
11-
<button class="flex items-center justify-between w-full text-left font-medium dark:text-white text-stone-800 p-0">Material Tailwind Vue<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
12-
</button>
2+
<div class="group block w-full" aria-disabled="false" data-dui-accordion-container data-dui-accordion-mode="exclusive">
3+
<div class="border border-stone-200 dark:border-stone-700 rounded-lg mb-2 px-2">
4+
<div
5+
class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
6+
data-dui-accordion-toggle
7+
data-dui-accordion-target="#customStylesAccordion1"
8+
aria-expanded="false">
9+
What is David UI?
10+
<svg data-dui-accordion-icon width="1.5em" height="1.5em" strokeWidth="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 rotate-180">
11+
<path d="M6 9L12 15L18 9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"></path>
12+
</svg>
13+
</div>
14+
<div id="customStylesAccordion1" class="overflow-hidden transition-all duration-300">
15+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">David UI is a comprehensive UI library built with Tailwind CSS, offering modern and customizable components for web development.</p>
16+
</div>
17+
</div>
18+
19+
<div class="border border-stone-200 dark:border-stone-700 rounded-lg px-2">
20+
<div
21+
class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
22+
data-dui-accordion-toggle
23+
data-dui-accordion-target="#customStylesAccordion2"
24+
aria-expanded="false">
25+
Why choose David UI?
26+
<svg data-dui-accordion-icon width="1.5em" height="1.5em" strokeWidth="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4">
27+
<path d="M6 9L12 15L18 9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"></path>
28+
</svg>
29+
</div>
30+
<div id="customStylesAccordion2" class="overflow-hidden transition-all duration-300">
31+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">David UI provides an extensive collection of ready-to-use components with seamless integration and excellent developer experience.</p>
32+
</div>
33+
</div>
1334
</div>
Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11

2-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
3-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind React<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
4-
</button>
5-
</div>
6-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
7-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind HTML<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
8-
</button>
9-
</div>
10-
<div class="group block w-full items-center justify-between cursor-pointer border-b border-stone-200 aria-disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:select-none" aria-disabled="false">
11-
<button class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800">Material Tailwind Vue<svg width="1.5em" height="1.5em" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 group-data-[open=true]:rotate-180"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path></svg>
12-
</button>
2+
<div class="group block w-full" aria-disabled="false" data-dui-accordion-container data-dui-accordion-mode="exclusive">
3+
<div
4+
class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
5+
data-dui-accordion-toggle
6+
data-dui-accordion-target="#basicAccordion1"
7+
aria-expanded="false">
8+
What is David UI?
9+
<svg data-dui-accordion-icon width="1.5em" height="1.5em" strokeWidth="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4 rotate-180">
10+
<path d="M6 9L12 15L18 9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"></path>
11+
</svg>
12+
</div>
13+
<div id="basicAccordion1" class="overflow-hidden transition-all duration-300 border-b border-stone-200 dark:border-stone-700">
14+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">David UI is a comprehensive UI library built with Tailwind CSS, offering modern and customizable components for web development.</p>
15+
</div>
16+
17+
<div
18+
class="flex items-center justify-between w-full py-5 text-left font-medium dark:text-white text-stone-800 cursor-pointer"
19+
data-dui-accordion-toggle
20+
data-dui-accordion-target="#basicAccordion2"
21+
aria-expanded="false">
22+
Why choose David UI?
23+
<svg data-dui-accordion-icon width="1.5em" height="1.5em" strokeWidth="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="h-4 w-4">
24+
<path d="M6 9L12 15L18 9" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"></path>
25+
</svg>
26+
</div>
27+
<div id="basicAccordion2" class="overflow-hidden transition-all duration-300 border-b border-stone-200 dark:border-stone-700">
28+
<p class="mb-5 text-sm text-stone-500 dark:text-stone-400">David UI provides an extensive collection of ready-to-use components with seamless integration and excellent developer experience.</p>
29+
</div>
1330
</div>

0 commit comments

Comments
 (0)