From cf07dc0f33750ba121763f84ac24b3295b4b83e7 Mon Sep 17 00:00:00 2001 From: NiclasNorin Date: Tue, 15 Aug 2023 10:42:53 +0200 Subject: [PATCH] Refactor: Component removed. --- source/php/Component/Alert/Alert.php | 19 ------------- source/php/Component/Alert/alert.blade.php | 32 ---------------------- source/php/Component/Alert/alert.json | 29 -------------------- 3 files changed, 80 deletions(-) delete mode 100644 source/php/Component/Alert/Alert.php delete mode 100644 source/php/Component/Alert/alert.blade.php delete mode 100644 source/php/Component/Alert/alert.json diff --git a/source/php/Component/Alert/Alert.php b/source/php/Component/Alert/Alert.php deleted file mode 100644 index 2cf1fdfa..00000000 --- a/source/php/Component/Alert/Alert.php +++ /dev/null @@ -1,19 +0,0 @@ -data); - - //Overlay - $this->data['classList'][] = $this->getBaseClass() . "--overlay-" . $overlay; - } -} \ No newline at end of file diff --git a/source/php/Component/Alert/alert.blade.php b/source/php/Component/Alert/alert.blade.php deleted file mode 100644 index 74f86ec4..00000000 --- a/source/php/Component/Alert/alert.blade.php +++ /dev/null @@ -1,32 +0,0 @@ - -
- -
- - @if($title) -

- {{$title}} -

- @endif - - @if($slot) -
- {{$slot}} -
- @endif - - @if($dismiss) - @button(['href' => "#dismiss", 'isPrimary' => false]) - {{$dismiss}} - @endbutton - @endif - - @if($accept) - @button(['href' => "#accept", 'isPrimary' => true]) - {{$accept}} - @endbutton - @endif - -
- -
\ No newline at end of file diff --git a/source/php/Component/Alert/alert.json b/source/php/Component/Alert/alert.json deleted file mode 100644 index 0beae243..00000000 --- a/source/php/Component/Alert/alert.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "slug": "alert", - "default": { - "title": "", - "slot": "", - "dismiss": "", - "accept": "", - "overlay": "light" - }, - "description": { - "title": "The title of the alert or confirm.", - "slot": "The main content of this component.", - "dismiss": "A dismiss button label.", - "accept": "A accept button label.", - "hasBackdrop": "Cover the background with a transparent layer.", - "top": "Slot place at the top", - "bottom": "Slot at the bottom" - }, - "view": "alert.blade.php", - "dependency": { - "sass": { - "components": [ - "alert", - "button", - "typography" - ] - } - } -} \ No newline at end of file