Skip to content

Commit

Permalink
Popconfirm - component (#1825)
Browse files Browse the repository at this point in the history
* Popconfirm - component

* Fix ripple issues in popconfirm

* Corrections

---------

Co-authored-by: Bartosz Cylwik <bartosz.cylwik94@gmail.com>
  • Loading branch information
iprzybysz and juujisai committed Jul 26, 2023
1 parent 117e3e9 commit 6ab3be3
Show file tree
Hide file tree
Showing 13 changed files with 2,264 additions and 2 deletions.
255 changes: 255 additions & 0 deletions demo/sites/components/popconfirm.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ <h3 class="mb-5">Your sites:</h3>
class="mb-1 mr-1 rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)]"
>Datatables</a
>
<a
href="./demo/sites/components/popconfirm.html"
class="mb-1 mr-1 rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)]"
>Popconfirm</a
>
<a
href="./demo/sites/components/lightbox.html"
class="mb-1 mr-1 rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:bg-primary-600 focus:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)] focus:outline-none focus:ring-0 active:bg-primary-700 active:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,202,0.2)]"
Expand Down
21 changes: 21 additions & 0 deletions site/content/docs/standard/components/popconfirm/a-ss.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
---

<li class="mb-1 pl-[9px] text-[0.85rem]" data-te-spy-active>
<a href="#api-section-import">Import</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#api-section-usage">Usage</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#api-section-options">Options</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#api-section-classes">Classes</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#api-section-methods">Methods</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#api-section-events">Events</a>
</li>
715 changes: 715 additions & 0 deletions site/content/docs/standard/components/popconfirm/a.html

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions site/content/docs/standard/components/popconfirm/index-js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
---

<!-- Custom scripts -->
<script type="module">
const iconExample = document.getElementById("icon-example");
new te.Popconfirm(iconExample, {
popconfirmIconTemplate: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z" />
</svg>
`,
});
</script>
16 changes: 16 additions & 0 deletions site/content/docs/standard/components/popconfirm/index-ss.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
---

<li class="mb-1 pl-[9px] text-[0.85rem]" data-te-spy-active>
<a href="#basic">Basic example </a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#display-mode">Display mode</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]"><a href="#icon">Icon example</a></li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#inline-positions">Inline positions</a>
</li>
<li class="mb-1 pl-[9px] text-[0.85rem]">
<a href="#section-related-resources">Related resources</a>
</li>
785 changes: 785 additions & 0 deletions site/content/docs/standard/components/popconfirm/index.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions site/static/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@
"paragraph": 1
}
},
{
"href": "/docs/standard/components/popconfirm/",
"name": "Popconfirm",
"keywords": ["popconfirm", "alert"],
"category": "Components"
},
{
"href": "/docs/standard/components/popover/",
"name": "Popover",
Expand Down
4 changes: 4 additions & 0 deletions src/js/autoinit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ const defaultInitSelectors = {
name: "Datatable",
selector: "[data-te-datatable-init]",
},
popconfirm: {
name: "Popconfirm",
selector: "[data-te-toggle='popconfirm']",
},

// advancedInits
chart: {
Expand Down
Loading

0 comments on commit 6ab3be3

Please sign in to comment.