A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: remove archived components
aminnausinbb843fc9ac19
diff --git a/resources/js/components-archive/buttons/ButtonCorner.vue b/resources/js/components-archive/buttons/ButtonCorner.vuedeleted file mode 100644index c12b6dc1..00000000--- a/resources/js/components-archive/buttons/ButtonCorner.vue+++ /dev/null@@ -1,34 +0,0 @@-<script setup lang="ts">-import IconDelete from '@/components/icons/IconDelete.vue';--const props = defineProps(['positionClasses', 'colourClasses', 'textClasses', 'to', 'label', 'disabled']);-</script>--<template>- <router-link- v-if="to"- :aria-label="label ?? 'Link'"- :title="label ?? 'Link'"- :to="to ?? '/'"- class="flex items-center justify-center rounded-full aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:opacity-60"- :class="`${positionClasses ?? ' absolute top-0 right-0 w-8 h-8 mt-5 mr-5'} ${props?.colourClasses ?? 'hover:bg-gray-50 dark:hover:bg-gray-700'} ${props?.textClasses ?? 'text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200'}`"- :aria-disabled="disabled"- >- <slot name="icon">- <IconDelete />- </slot>- </router-link>- <button- v-else- :aria-label="props?.label ?? 'Close Modal'"- :title="props?.label ?? 'Close Modal'"- class="flex items-center justify-center rounded-full disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:opacity-60"- :class="`${props?.positionClasses ?? 'absolute top-0 right-0 w-8 h-8 mt-5 mr-5'} ${props?.colourClasses ?? 'hover:bg-gray-50 dark:hover:bg-gray-700'} ${props?.textClasses ?? 'text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200'}`"- :disabled="disabled"- type="button"- >- <slot name="icon">- <IconDelete />- </slot>- </button>-</template>diff --git a/resources/js/components-archive/buttons/ButtonForm.vue b/resources/js/components-archive/buttons/ButtonForm.vuedeleted file mode 100644index 8138dfb0..00000000--- a/resources/js/components-archive/buttons/ButtonForm.vue+++ /dev/null@@ -1,53 +0,0 @@-<script setup lang="ts">-import { computed } from 'vue';--const props = withDefaults(- defineProps<{- disabled?: boolean;- type?: 'button' | 'submit' | 'reset';- variant?: 'default' | 'submit' | 'reset' | 'auth';- }>(),- {- disabled: false,- type: 'button',- },-);-const variantClass = computed(() => {- switch (props.variant) {- case 'submit':- return [- 'inline-flex items-center justify-center h-10 max-h-full px-4 py-2 font-medium text-white transition-colors border border-transparent rounded-md focus:outline-hidden',- 'focus:ring-1 focus:ring-violet-900 focus:ring-offset-1 bg-neutral-950 hover:bg-neutral-800 dark:hover:bg-neutral-900',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:hover:ring-1 disabled:opacity-60',- ];- case 'reset':- return [- 'inline-flex items-center justify-center h-10 max-h-full px-4 py-2 font-medium transition-colors border dark:border-neutral-600 rounded-md focus:outline-hidden',- 'focus:ring-1 focus:ring-neutral-100 dark:focus:ring-neutral-400 focus:ring-offset-1 hover:bg-neutral-100 dark:hover:bg-neutral-900',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:hover:ring-1 disabled:opacity-60',- ];- case 'auth':- return [- 'inline-flex items-center px-4 py-2',- 'bg-gray-800 dark:bg-gray-200',- 'border border-transparent rounded-md font-semibold text-xs uppercase tracking-widest',- 'text-white dark:text-gray-800 hover:bg-gray-700 dark:hover:bg-white',- 'focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300',- 'focus:outline-hidden focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800',- 'transition ease-in-out duration-150',- ];- default:- return [- 'inline-flex items-center justify-center px-4 py-2 text-sm transition-colors border dark:border-neutral-600 rounded-md focus:outline-hidden',- 'focus:ring-1 focus:ring-neutral-100 dark:focus:ring-neutral-400 focus:ring-offset-1 hover:bg-neutral-100 dark:hover:bg-neutral-900',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:hover:ring-1 disabled:opacity-60',- ];- }-});-</script>-<template>- <button :type="type" :class="[...variantClass]" :disabled="disabled">- <slot name="text"></slot>- <slot></slot>- </button>-</template>diff --git a/resources/js/components-archive/buttons/ButtonIcon.vue b/resources/js/components-archive/buttons/ButtonIcon.vuedeleted file mode 100644index 22d10f65..00000000--- a/resources/js/components-archive/buttons/ButtonIcon.vue+++ /dev/null@@ -1,64 +0,0 @@-<script setup lang="ts">-import { computed } from 'vue';--const props = withDefaults(- defineProps<{- type?: 'reset' | 'submit' | 'button' | undefined;- disabled?: boolean;- title?: string;- variant?: 'default' | 'ghost' | 'transparent';- to?: string;- target?: string;- }>(),- {- variant: 'default',- target: '_self',- type: 'button',- },-);--const variantClass = computed(() => {- switch (props.variant) {- case 'ghost':- return '';- case 'transparent':- return [- 'transition',- 'hover:bg-white dark:hover:bg-primary-dark-800',- 'focus:outline-hidden hover:text-gray-900 dark:text-neutral-100',- 'hocus:ring-2 hover:ring-violet-400 dark:hover:ring-violet-700 focus:ring-white',- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:ring-1 aria-disabled:opacity-60',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:hover:ring-1 disabled:opacity-60',- ].join(' ');- default:- return [- 'h-10 max-h-full aspect-square rounded-md ',- 'p-2 shadow-xs',- 'focus:outline-hidden text-gray-900 dark:text-neutral-100',- 'ring-1 ring-neutral-200 dark:ring-neutral-700 hocus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500 hover:ring-violet-400 dark:hover:ring-violet-700',- 'bg-white dark:bg-primary-dark-800',- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:ring-1 aria-disabled:opacity-60',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:ring-1 disabled:opacity-60',- ].join(' ');- }-});-</script>--<template>- <router-link- v-if="to"- :to="to"- :class="['flex cursor-pointer items-center justify-center', variantClass]"- :type="props.type"- :title="props.title ?? 'Button'"- :aria-disabled="disabled"- :target="target"- >- <slot name="text"> </slot>- <slot name="icon"> </slot>- </router-link>- <button v-else :class="['flex cursor-pointer items-center justify-center', variantClass]" :type="props.type" :disabled="props.disabled" :title="props.title ?? 'Icon'">- <slot name="text"> </slot>- <slot name="icon"> </slot>- </button>-</template>diff --git a/resources/js/components-archive/buttons/ButtonText.vue b/resources/js/components-archive/buttons/ButtonText.vuedeleted file mode 100644index e474f7a3..00000000--- a/resources/js/components-archive/buttons/ButtonText.vue+++ /dev/null@@ -1,77 +0,0 @@-<script setup lang="ts">-import { computed } from 'vue';--const props = withDefaults(- defineProps<{- type?: 'reset' | 'submit' | 'button' | undefined;- disabled?: boolean;- title?: string;- variant?: 'default' | 'ghost' | 'transparent' | 'form';- to?: string;- target?: string;- text?: string;- }>(),- {- title: '',- type: 'button',- variant: 'default',- target: '_blank',- },-);--const variantClass = computed(() => {- switch (props.variant) {- case 'ghost':- return '';- case 'transparent':- return [- 'transition',- 'hover:bg-white dark:hover:bg-primary-dark-800',- 'focus:outline-hidden hover:text-gray-900 dark:text-neutral-100',- 'hocus:ring-2 hover:ring-violet-400 dark:hover:ring-violet-700 focus:ring-white',- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:ring-1 aria-disabled:opacity-60',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:hover:ring-1 disabled:opacity-60',- ].join(' ');- case 'form':- return [- 'inline-flex items-center justify-center px-4 py-2 text-sm transition-colors border dark:border-neutral-600 rounded-md focus:outline-hidden',- 'focus:ring-1 focus:ring-neutral-100 dark:focus:ring-neutral-400 focus:ring-offset-1 hover:bg-neutral-100 dark:hover:bg-neutral-900',- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:ring-1 aria-disabled:opacity-60',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:hover:ring-1 disabled:opacity-60',- ].join(' ');- default:- return [- 'h-10 max-h-full rounded-md ',- 'p-2 shadow-xs',- 'focus:outline-hidden text-gray-900 dark:text-neutral-100',- 'ring-1 ring-neutral-200 dark:ring-neutral-700 hocus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500 hover:ring-violet-400 dark:hover:ring-violet-700',- 'bg-white dark:bg-primary-dark-800',- 'aria-disabled:cursor-not-allowed aria-disabled:hover:ring-neutral-200 dark:aria-disabled:hover:ring-neutral-700 aria-disabled:ring-1 aria-disabled:opacity-60',- 'disabled:cursor-not-allowed disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700 disabled:ring-1 disabled:opacity-60',- ].join(' ');- }-});-</script>--<template>- <router-link- v-if="to"- :to="to"- :class="['flex cursor-pointer items-center justify-center gap-2', variantClass]"- :type="type"- :title="title"- :aria-disabled="disabled"- :target="target ?? '_blank'"- >- <slot name="text">- <p class="line-clamp-1 flex-1 text-left">{{ text }}</p>- </slot>- <slot name="icon"> </slot>- </router-link>- <button v-else :class="['flex cursor-pointer items-center justify-center gap-2', variantClass]" :type="type" :disabled="disabled" :title="title ?? 'Button'">- <slot name="text">- <p class="line-clamp-1 flex-1 text-left" v-if="text">{{ text }}</p>- </slot>- <slot name="icon"> </slot>- </button>-</template>diff --git a/resources/js/components-archive/cards/HoverCard.vue b/resources/js/components-archive/cards/HoverCard.vuedeleted file mode 100644index 97dc3a84..00000000--- a/resources/js/components-archive/cards/HoverCard.vue+++ /dev/null@@ -1,123 +0,0 @@-<script setup lang="ts">-import { ref, watch } from 'vue';--import ProiconsCommentExclamation from '~icons/proicons/comment-exclamation';--const props = withDefaults(- defineProps<{- content?: string;- contentTitle?: string;- positionClasses?: string;- hoverCardDelay?: number;- hoverCardLeaveDelay?: number;- margin?: number;- iconHidden?: boolean;- paddingLeft?: number;- scrollContainer?: 'body' | 'window';- disabled?: boolean;- }>(),- {- hoverCardDelay: 600,- hoverCardLeaveDelay: 500,- margin: 0,- paddingLeft: 0,- scrollContainer: 'body',- disabled: false,- },-);--const hoverCardHovered = ref<boolean>(false);-const hoverCardTimout = ref<number | null>(null);-const hoverCardLeaveTimeout = ref<number | null>(null);-const tooltipStyles = ref<Record<string, string>>({});--const init = ref(false);--const hoverCardEnter = (event: MouseEvent) => {- if (props.content === '' || props.disabled) return;-- if (hoverCardLeaveTimeout.value) clearTimeout(hoverCardLeaveTimeout.value);-- if (hoverCardHovered.value) return;-- if (hoverCardTimout.value) clearTimeout(hoverCardTimout.value);-- if (!init.value) init.value = true; // Loads into Dom after hover for the first time-- hoverCardTimout.value = window.setTimeout(() => {- hoverCardHovered.value = true;- updateTooltipPosition(event);- }, props.hoverCardDelay);-};--const hoverCardLeave = () => {- if (hoverCardTimout.value) clearTimeout(hoverCardTimout.value);-- if (!hoverCardHovered.value) return;- if (hoverCardLeaveTimeout.value) clearTimeout(hoverCardLeaveTimeout.value);-- hoverCardLeaveTimeout.value = window.setTimeout(() => {- hoverCardHovered.value = false;- }, props.hoverCardLeaveDelay);-};--const updateTooltipPosition = (event: MouseEvent) => {- const elem = event.target as HTMLElement;- const parentRect = elem.parentElement?.getBoundingClientRect();-- let rect = elem.getBoundingClientRect();-- if (parentRect && parentRect.height < rect.height) {- rect = parentRect;- }-- const scrollY = props.scrollContainer === 'body' ? document.body.scrollTop : window.scrollY;- const scrollX = props.scrollContainer === 'body' ? document.body.scrollLeft : window.scrollX;-- tooltipStyles.value = { left: `${rect.left + scrollX + props.paddingLeft}px`, top: `${rect.bottom + props.margin + scrollY}px` };-};--watch(- () => props.content,- () => {- if (!props.content || props.content.trim() === '') hoverCardLeave();- },-);-//relative-</script>--<template>- <div @mouseover="hoverCardEnter" @mouseleave="hoverCardLeave">- <slot name="trigger">- <a href="#_" class="hover:underline"></a>- </slot>- <Teleport to="body" v-if="init">- <Transition enter-from-class="opacity-0" enter-to-class="opacity-100" leave-from-class="opacity-100" leave-to-class="opacity-0">- <div- @mouseover="hoverCardEnter"- @mouseleave="hoverCardLeave"- v-show="hoverCardHovered"- v-cloak- :class="[- positionClasses,- `dark:odd:bg-primary-dark-600/70 absolute z-30 flex gap-2 rounded-md`,- `border border-neutral-200/70 bg-white p-3 text-sm shadow-md backdrop-blur-lg transition-opacity duration-200 ease-in-out md:max-w-xl xl:max-w-3xl dark:border-none dark:bg-neutral-800/70`,- ]"- :style="tooltipStyles"- >- <slot name="icon">- <ProiconsCommentExclamation v-if="!iconHidden" class="mb-auto h-5 w-5 shrink-0" />- </slot>- <div class="scrollbar-minimal h-full max-h-[50vh] w-full overflow-auto">- <slot name="content">- <div class="flex min-h-0 flex-col gap-2">- <h4 v-if="contentTitle">{{ contentTitle }}</h4>- <p class="w-full text-pretty whitespace-pre-wrap dark:text-neutral-400" v-if="content">{{ content }}</p>- </div>- </slot>- </div>- </div>- </Transition>- </Teleport>- </div>-</template>diff --git a/resources/js/components-archive/cards/RelativeHoverCard.vue b/resources/js/components-archive/cards/RelativeHoverCard.vuedeleted file mode 100644index 70a92e81..00000000--- a/resources/js/components-archive/cards/RelativeHoverCard.vue+++ /dev/null@@ -1,82 +0,0 @@-<script setup lang="ts">-import { ref } from 'vue';--import ProiconsCommentExclamation from '~icons/proicons/comment-exclamation';--const props = withDefaults(- defineProps<{- content?: string;- positionClasses?: string;- hoverCardDelay?: number;- hoverCardLeaveDelay?: number;- iconHidden?: boolean;- }>(),- {- hoverCardDelay: 600,- hoverCardLeaveDelay: 500,- },-);--const hoverCardHovered = ref<boolean>(false);-const hoverCardTimout = ref<number | null>(null);-const hoverCardLeaveTimeout = ref<number | null>(null);-const tooltipStyles = ref<Record<string, string>>({});--const init = ref(false);--const hoverCardEnter = () => {- if (props.content === '') return;-- if (hoverCardLeaveTimeout.value) clearTimeout(hoverCardLeaveTimeout.value);-- if (hoverCardHovered.value) return;-- if (hoverCardTimout.value) clearTimeout(hoverCardTimout.value);-- if (!init.value) init.value = true; // Loads into Dom after hover for the first time-- hoverCardTimout.value = window.setTimeout(() => {- hoverCardHovered.value = true;- }, props.hoverCardDelay);-};--const hoverCardLeave = () => {- if (props.content === '') return;- if (hoverCardTimout.value) clearTimeout(hoverCardTimout.value);-- if (!hoverCardHovered.value) return;- if (hoverCardLeaveTimeout.value) clearTimeout(hoverCardLeaveTimeout.value);-- hoverCardLeaveTimeout.value = window.setTimeout(() => {- hoverCardHovered.value = false;- }, props.hoverCardLeaveDelay);-};-</script>--<template>- <div class="relative" @mouseover="hoverCardEnter" @mouseleave="hoverCardLeave">- <slot name="trigger">- <a href="#_" class="hover:underline">@thedevdojo</a>- </slot>- <Transition enter-from-class="opacity-0" enter-to-class="opacity-100" leave-from-class="opacity-100" leave-to-class="opacity-0">- <div- @mouseover="hoverCardEnter"- @mouseleave="hoverCardLeave"- v-show="hoverCardHovered"- v-cloak- :class="`${positionClasses ?? ''} z-30 flex absolute overflow-auto transition-opacity ease-in-out duration-200 md:max-w-xl xl:max-w-3xl text-sm p-3 h-fit bg-white dark:odd:bg-primary-dark-600/70 dark:bg-neutral-800/70 backdrop-blur-lg border dark:border-none rounded-md shadow-md border-neutral-200/70 gap-2 items-center`"- :style="tooltipStyles"- v-if="init"- >- <slot name="icon">- <ProiconsCommentExclamation v-if="!iconHidden" class="h-5 w-5 mb-auto shrink-0" />- </slot>- <slot name="content">- <p class="text-pretty h-fit w-full wrap-break-word whitespace-pre-wrap">- {{ content }}- </p>- </slot>- </div>- </Transition>- </div>-</template>diff --git a/resources/js/components-archive/inputs/FormInput.vue b/resources/js/components-archive/inputs/FormInput.vuedeleted file mode 100644index 143f5aa6..00000000--- a/resources/js/components-archive/inputs/FormInput.vue+++ /dev/null@@ -1,29 +0,0 @@-<script setup lang="ts">-import type { FormField } from '@/types/types';--defineProps<{ field: FormField }>();-const model = defineModel();-</script>--<template>- <input- :class="[- 'rounded-md shadow-xs block mt-1 w-full text-sm',- 'focus:outline-hidden border-none',- 'disabled:cursor-not-allowed disabled:opacity-50',- 'text-gray-900 dark:text-neutral-100 bg-white dark:bg-neutral-700 placeholder:text-neutral-400',- 'ring-inset focus:ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700',- 'focus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500',- ]"- :name="field.name"- :title="field.text ?? field.name"- :type="field.type"- :required="field.required ? 'true' : 'false'"- :placeholder="field.placeholder"- :autocomplete="field.autocomplete"- :aria-autocomplete="field.ariaAutocomplete ?? (field.autocomplete ? 'list' : 'none')"- :min="field.min ?? ''"- :max="field.max ?? ''"- v-model="model"- />-</template>diff --git a/resources/js/components-archive/inputs/FormInputNumber.vue b/resources/js/components-archive/inputs/FormInputNumber.vuedeleted file mode 100644index 64ca59af..00000000--- a/resources/js/components-archive/inputs/FormInputNumber.vue+++ /dev/null@@ -1,68 +0,0 @@-<script setup lang="ts">-import type { FormFieldValue } from '@/composables/useForm';-import type { FormField } from '@/types/types';--import LucideChevronDown from '~icons/lucide/chevron-down';-import LucideChevronUp from '~icons/lucide/chevron-up';--const props = defineProps<{ field: FormField }>();-const model = defineModel<FormFieldValue>();--const incrementNumber = () => {- if (model.value === props.field?.max) return;- addToNumber(1);-};--const decrementNumber = () => {- if (model.value === props.field?.min) return;- addToNumber(-1);-};--const addToNumber = (change: 1 | -1) => {- if (!model.value || typeof model.value != 'number') {- model.value = 0;- return;- }- model.value += change;-};-</script>--<template>- <span class="relative mt-1 inline-flex w-full">- <input- :class="[- 'block w-full rounded-md pe-12 text-sm shadow-xs',- 'border-none focus:outline-hidden',- 'disabled:cursor-not-allowed disabled:opacity-50',- 'bg-white text-gray-900 placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-neutral-100',- 'ring-1 ring-neutral-200 ring-inset focus:ring-inset dark:ring-neutral-700',- 'focus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500',- ]"- :name="field.name"- :title="field.text ?? field.name"- type="number"- :required="field.required"- :placeholder="field.placeholder"- :aria-autocomplete="field.autocomplete ? 'list' : 'none'"- :min="field.min ?? ''"- :max="field.max ?? ''"- v-model="model"- />- <span class="absolute top-0 right-0 flex h-full w-12 flex-col">- <button- @click.prevent.stop="incrementNumber"- class="flex h-1/2 items-center justify-center rounded-tr-md ring-inset hover:bg-neutral-200/50 focus:ring-2 focus:ring-indigo-400 focus:outline-hidden dark:hover:bg-neutral-600 dark:focus:ring-indigo-500"- :title="`Increment ${field.name}`"- >- <LucideChevronUp width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" class="h-4 w-4" />- </button>- <button- @click.prevent.stop="decrementNumber"- class="flex h-1/2 items-center justify-center rounded-br-md ring-inset hover:bg-neutral-200/50 focus:ring-2 focus:ring-indigo-400 focus:outline-hidden dark:hover:bg-neutral-600 dark:focus:ring-indigo-500"- :title="`Decrement ${field.name}`"- >- <LucideChevronDown width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" class="h-4 w-4" />- </button>- </span>- </span>-</template>diff --git a/resources/js/components-archive/inputs/TextInput.vue b/resources/js/components-archive/inputs/TextInput.vuedeleted file mode 100644index 656da719..00000000--- a/resources/js/components-archive/inputs/TextInput.vue+++ /dev/null@@ -1,21 +0,0 @@-<script setup>-const model = defineModel();-const { placeholder, id, minlength, maxlength } = defineProps(['placeholder', 'id', 'minlength', 'maxlength']);-</script>-<template>- <input- type="text"- v-model="model"- :name="id"- :id="id"- :minlength="minlength"- :maxlength="maxlength"- :placeholder="placeholder"- :class="`h-10 p-2 shadow-xs rounded-md w-full text-sm text-ellipsis whitespace-nowrap line-clamp-1- border-none outline-hidden- disabled:cursor-not-allowed disabled:opacity-50- text-gray-900 dark:text-neutral-100 bg-white dark:bg-primary-dark-800 placeholder:text-neutral-400- ring-inset focus:ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700- hocus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500 hover:ring-violet-400 dark:hover:ring-violet-700`"- />-</template>diff --git a/resources/js/components-archive/inputs/TextInputLabelled.vue b/resources/js/components-archive/inputs/TextInputLabelled.vuedeleted file mode 100644index 1681044a..00000000--- a/resources/js/components-archive/inputs/TextInputLabelled.vue+++ /dev/null@@ -1,24 +0,0 @@-<script setup>-import FormInputLabel from '../labels/FormInputLabel.vue';--const model = defineModel();-const { text, placeholder, id } = defineProps(['text', 'placeholder', 'id']);-</script>-<template>- <div class="flex flex-col justify-center gap-2 text-sm">- <FormInputLabel :field="{ name: id, text }" />- <input- type="text"- v-model="model"- :name="id"- :id="id"- :placeholder="placeholder"- :class="`h-10 p-2 px-3 shadow-xs rounded-md w-full text-sm- border-none outline-hidden- disabled:cursor-not-allowed disabled:opacity-50- text-gray-900 dark:text-neutral-100 bg-white dark:bg-primary-dark-800 placeholder:text-neutral-400- ring-inset focus:ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700- hocus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500 hover:ring-violet-400 dark:hover:ring-violet-700`"- />- </div>-</template>diff --git a/resources/js/components-archive/labels/ChipTag.vue b/resources/js/components-archive/labels/ChipTag.vuedeleted file mode 100644index ae44fb56..00000000--- a/resources/js/components-archive/labels/ChipTag.vue+++ /dev/null@@ -1,42 +0,0 @@-<script setup lang="ts">-import { RouterLink } from 'vue-router';--import ButtonCorner from '@/components-archive/buttons/ButtonCorner.vue';--const props = defineProps(['label', 'colour', 'textClass', 'URL', 'removeable']);-</script>-<template>- <RouterLink- v-if="props.URL"- :class="`p-1 px-2 text-sm ${props.textClass ? `${props.textClass} ` : ''}leading-none truncate rounded-xl text-neutral-100 lowercase dark:text-neutral-300 ${props.colour ? `${props.colour}` : 'bg-violet-600 dark:bg-violet-900'} shrink-0 transition-colors duration-200`"- :to="props.URL"- >- <slot name="content">- {{ props.label }}- </slot>- <ButtonCorner- v-if="removeable"- :positionClasses="'w-4 h-4'"- :textClasses="`text-white dark:text-rose-700`"- :colourClasses="'dark:bg-neutral-900/20 dark:hover:bg-rose-700 hover:bg-rose-300 hover:text-rose-700 dark:hover:text-white drop-shadow-sm'"- :label="'Remove'"- @click.stop.prevent="$emit('clickAction')"- />- </RouterLink>- <p- v-else- :class="`p-1 px-2 text-sm ${props.textClass ? `${props.textClass} ` : ''}leading-none truncate rounded-xl text-neutral-100 lowercase dark:text-neutral-300 ${props.colour ? `${props.colour}` : 'bg-violet-600 dark:bg-violet-900'} shrink-0 cursor-default transition-colors duration-200 ${removeable ? 'flex items-center justify-between gap-1' : ''}`"- >- <slot name="content">- {{ props.label }}- </slot>- <ButtonCorner- v-if="removeable"- :positionClasses="'w-4 h-4'"- :textClasses="`text-white dark:text-rose-700 ${textClass ?? ''}`"- :colourClasses="'dark:bg-neutral-900/20 dark:hover:bg-rose-700 hover:bg-rose-300 hover:text-rose-700 dark:hover:text-white drop-shadow-sm'"- :label="'Remove'"- @click.stop.prevent="$emit('clickAction')"- />- </p>-</template>diff --git a/resources/js/components-archive/labels/FormErrorList.vue b/resources/js/components-archive/labels/FormErrorList.vuedeleted file mode 100644index a1cc14ac..00000000--- a/resources/js/components-archive/labels/FormErrorList.vue+++ /dev/null@@ -1,11 +0,0 @@-<script setup lang="ts">-defineProps<{ errors: Record<string, any>; fieldName?: string }>();-</script>--<template>- <ul class="text-danger-2 text-sm dark:text-rose-500" v-if="fieldName ? !!errors[fieldName] : Object.keys(errors).length > 0">- <slot>- <li v-for="(item, index) in fieldName ? errors[fieldName] : errors" :key="index">{{ item }}</li>- </slot>- </ul>-</template>diff --git a/resources/js/components-archive/labels/FormInputLabel.vue b/resources/js/components-archive/labels/FormInputLabel.vuedeleted file mode 100644index f4e436be..00000000--- a/resources/js/components-archive/labels/FormInputLabel.vue+++ /dev/null@@ -1,20 +0,0 @@-<script setup lang="ts">-import type { FormField } from '@/types/types';--const props = defineProps<{- field: FormField;- textSize?: string;- class?: string;-}>();-</script>--<template>- <label- v-if="field.text"- :for="field.name"- :class="[`leading-none block font-medium text-gray-700 dark:text-neutral-200`, textSize ? textSize : 'text-sm', `${props.class ?? ''}`]"- >- {{ field.text }}- </label>- <p v-if="field?.subtext" class="text-sm/6 text-gray-500 dark:text-gray-400">{{ field.subtext }}</p>-</template>diff --git a/resources/js/components-archive/labels/InputLabel.vue b/resources/js/components-archive/labels/InputLabel.vuedeleted file mode 100644index 50c64f54..00000000--- a/resources/js/components-archive/labels/InputLabel.vue+++ /dev/null@@ -1,16 +0,0 @@-<script setup lang="ts">-const props = defineProps<{- name?: string;- text?: string;- subtext?: string;- class?: string;- subtextClass?: string;-}>();-</script>--<template>- <label :for="name" :class="[`cursor-pointer font-medium text-gray-700 dark:text-neutral-200`, props.class]">- {{ text }}- </label>- <p v-if="subtext" :class="['text-sm/6 text-gray-500 dark:text-gray-400', subtextClass]">{{ subtext }}</p>-</template>diff --git a/resources/js/components-archive/pinesUI/BaseAccordion.vue b/resources/js/components-archive/pinesUI/BaseAccordion.vuedeleted file mode 100644index 4a491e72..00000000--- a/resources/js/components-archive/pinesUI/BaseAccordion.vue+++ /dev/null@@ -1,55 +0,0 @@-<script setup lang="ts">-import { ref } from 'vue';--const activeAccordion = ref<string>('');-const accordions = ref<{ id: string; key: string; value: string }[]>([- { id: '1', key: 'What is Pines?', value: 'Pines is a UI library built for AlpineJS and TailwindCSS.' },- {- id: '2',- key: 'How do I install Pines?',- value: 'Add AlpineJS and TailwindCSS to your page and then copy and paste any of these elements into your project.',- },- {- id: '3',- key: 'Can I use Pines with other libraries or frameworks?',- value: 'Absolutely! Pines works with any other library or framework. Pines works especially well with the TALL stack.',- },-]);--function setActiveAccordion(id: string) {- activeAccordion.value = activeAccordion.value == id ? '' : id;-}-</script>-<template>- <div class="relative w-full mx-auto overflow-hidden text-sm font-normal bg-white border border-gray-200 divide-y divide-gray-200 rounded-md">- <div v-for="accordion in accordions" :key="accordion.id" class="cursor-pointer group">- <button @click="setActiveAccordion(accordion.id)" class="flex items-center justify-between w-full p-4 text-left select-none group-hover:underline">- <span>{{ accordion.key }}</span>- <svg- :class="`w-4 h-4 duration-200 ease-out ${activeAccordion == accordion.id ? 'rotate-180' : ''}`"- viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- >- <polyline points="6 9 12 15 18 9"></polyline>- </svg>- </button>- <Transition- enter-active-class=""- enter-from-class="h-0 overflow-hidden"- enter-to-class="h-full overflow-hidden"- leave-active-class=""- leave-from-class="h-0 overflow-hidden"- leave-to-class="h-0 overflow-hidden"- >- <div class="ease-in duration-300" v-show="activeAccordion == accordion.id" v-cloak>- <div class="p-4 pt-0 opacity-70">{{ accordion.value }}</div>- </div>- </Transition>- </div>- </div>-</template>diff --git a/resources/js/components-archive/pinesUI/ButtonClipboard.vue b/resources/js/components-archive/pinesUI/ButtonClipboard.vuedeleted file mode 100644index f2a02354..00000000--- a/resources/js/components-archive/pinesUI/ButtonClipboard.vue+++ /dev/null@@ -1,76 +0,0 @@-<script setup lang="ts">-import { toRef } from 'vue';--import useClipboard from '@/composables/useClipboard';-import ButtonIcon from '@/components-archive/buttons/ButtonIcon.vue';--const props = defineProps<{ text: string; tabindex?: number }>();--const clipboard = useClipboard(toRef(props.text));-</script>--<template>- <div class="flex justify-between gap-4">- <input- :value="props.text"- disabled- class="block h-8 w-full cursor-text rounded-md border-none bg-white p-2 text-gray-900 shadow-xs ring-1 ring-neutral-200 outline-hidden ring-inset placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-gray-300 dark:ring-neutral-700"- />- <div class="relative z-20 flex items-center">- <Transition- enter-active-class="transition ease-out duration-300"- enter-from-class="opacity-0 translate-x-2"- enter-to-class="opacity-100 translate-x-0"- leave-active-class="transition ease-in duration-300"- leave-from-class="opacity-100 translate-x-0"- leave-to-class="opacity-0 translate-x-2"- >- <div v-if="clipboard.copyNotification.value" class="absolute left-0" v-cloak>- <div class="-ml-1.5 flex h-7 -translate-x-full items-center rounded-sm border-r border-green-500 bg-green-500 px-3 text-xs text-white">- <span>Copied!</span>- <div class="absolute top-1/2 right-0 -mt-px inline-block h-full translate-x-3 -translate-y-2 overflow-hidden">- <div class="h-3 w-3 origin-top-left rotate-45 transform border border-transparent bg-green-500"></div>- </div>- </div>- </div>- </Transition>- <ButtonIcon- @click="clipboard.copyToClipboard()"- class="group flex h-8 w-9 items-center justify-center text-xs text-neutral-600 hover:bg-neutral-100 hover:text-gray-900 focus:ring-green-600/50! dark:text-gray-300 dark:hover:text-gray-400"- >- <template #icon>- <svg- v-if="clipboard.copyNotification.value"- class="h-4 w-4 stroke-current text-green-500"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- v-cloak- >- <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5" />- </svg>- <svg v-if="!clipboard.copyNotification.value" class="h-4 w-4 stroke-current" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">- <g fill="none" stroke="none">- <path- d="M7.75 7.757V6.75a3 3 0 0 1 3-3h6.5a3 3 0 0 1 3 3v6.5a3 3 0 0 1-3 3h-.992"- stroke="currentColor"- stroke-width="1.5"- stroke-linecap="round"- stroke-linejoin="round"- ></path>- <path- d="M3.75 10.75a3 3 0 0 1 3-3h6.5a3 3 0 0 1 3 3v6.5a3 3 0 0 1-3 3h-6.5a3 3 0 0 1-3-3v-6.5z"- stroke="currentColor"- stroke-width="1.5"- stroke-linecap="round"- stroke-linejoin="round"- ></path>- </g>- </svg>- </template>- </ButtonIcon>- </div>- </div>-</template>diff --git a/resources/js/components-archive/pinesUI/DatePicker.vue b/resources/js/components-archive/pinesUI/DatePicker.vuedeleted file mode 100644index cac7838b..00000000--- a/resources/js/components-archive/pinesUI/DatePicker.vue+++ /dev/null@@ -1,185 +0,0 @@-<script setup lang="ts">-import { useTemplateRef } from 'vue';-import { OnClickOutside } from '@vueuse/components';--import DatePickerValueButton from '@/components-archive/pinesUI/DatePickerValueButton.vue';-import useDatePicker from '@/composables/useDatePicker';--const { field } = defineProps(['field']);--const datePickerInput = useTemplateRef('datePickerInput');-const datePickerCalendar = useTemplateRef('datePickerCalendar');--const model = defineModel<string>();--const {- datePickerOpen,- datePickerPanel,- toggleDatePicker,- datePickerDays,- datePickerMonthVerbose,- datePickerMonth,- datePickerYear,- datePickerDecade,- datePickerPosition,- datePickerMonthNames,- datePickerPrevious,- datePickerNext,- datePickerIsSelectedDate,- datePickerIsToday,- datePickerDaysInMonth,- datePickerBlankDaysInMonth,- datePickerValueClicked,- showDatePickerPanel,-} = useDatePicker({ model }, datePickerInput, datePickerCalendar);-</script>--<template>- <OnClickOutside class="relative" @trigger="toggleDatePicker(false)">- <input- ref="datePickerInput"- :class="[- 'mt-1 block h-10 w-full rounded-md px-3 py-2 text-sm shadow-xs',- 'border-none focus:outline-hidden',- 'disabled:cursor-not-allowed disabled:opacity-50',- 'bg-white text-gray-900 placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-neutral-100',- 'ring-1 ring-neutral-200 ring-inset focus:ring-inset dark:ring-neutral-700',- 'focus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500',- ]"- @click="toggleDatePicker()"- @keydown.esc="toggleDatePicker(false)"- :name="field?.name"- :title="field.text ?? field.name"- type="text"- :required="field?.required"- :placeholder="field?.placeholder ?? 'Select Date'"- :aria-autocomplete="field?.autocomplete ? 'list' : 'none'"- v-model="model"- readonly- />- <div- @click="- toggleDatePicker();- if (datePickerOpen) {- datePickerInput?.focus();- }- "- class="absolute top-0 right-0 cursor-pointer px-3 py-2 text-neutral-400 hover:text-neutral-500"- >- <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />- </svg>- </div>- <Transition- enter-from-class="opacity-0 scale-95"- enter-active-class="transform duration-150 ease-in-out"- enter-to-class="opacity-1 scale-100"- leave-from-class="opacity-1 scale-100"- leave-active-class="opacity-0 transform scale-95 duration-75 ease-in-out"- leave-to-class="opacity-0 scale-95"- >- <div- v-if="datePickerOpen"- :class="[- 'absolute left-0 z-30 rounded-md text-sm shadow-xs',- 'w-full max-w-68 p-4 antialiased',- 'border border-neutral-200/70 shadow-sm focus:outline-hidden dark:border-neutral-600',- 'disabled:cursor-not-allowed disabled:opacity-50',- 'bg-white text-gray-900 placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-neutral-100',- 'ring-1 ring-neutral-200 ring-inset focus:ring-inset dark:ring-neutral-700',- 'focus:ring-2 focus:ring-indigo-400 dark:focus:ring-indigo-500',- `${datePickerPosition === 'top' ? 'bottom-0 mb-12' : 'top-0 mt-12'}`,- ]"- ref="datePickerCalendar"- >- <div class="mb-2 flex items-center justify-between">- <div class="flex text-lg *:px-2">- <button- v-if="datePickerPanel === 'D'"- class="focus:shadow-outline cursor-pointer rounded-lg font-bold transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:text-neutral-100 dark:hover:bg-neutral-900"- type="button"- @click="showDatePickerPanel('M')"- >- {{ datePickerMonthVerbose }}- </button>-- <h3 v-if="datePickerPanel === 'Y'">{{ Math.floor(datePickerYear / 10) * 10 }} - {{ Math.floor(datePickerYear / 10) * 10 + 10 }}</h3>-- <button- v-else- @click="showDatePickerPanel('Y')"- type="button"- class="focus:shadow-outline cursor-pointer rounded-lg font-normal text-gray-600 transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:text-neutral-200 dark:hover:bg-neutral-900"- >- {{ datePickerYear }}- </button>- </div>- <div>- <button- @click="datePickerPrevious()"- type="button"- class="focus:shadow-outline inline-flex cursor-pointer rounded-full p-1 transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:hover:bg-neutral-900"- >- <svg class="inline-flex h-6 w-6 text-gray-400 dark:text-neutral-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />- </svg>- </button>- <button- @click="datePickerNext()"- type="button"- class="focus:shadow-outline inline-flex cursor-pointer rounded-full p-1 transition duration-100 ease-in-out hover:bg-gray-100 focus:outline-hidden dark:hover:bg-neutral-900"- >- <svg class="inline-flex h-6 w-6 text-gray-400 dark:text-neutral-200" fill="none" viewBox="0 0 24 24" stroke="currentColor">- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />- </svg>- </button>- </div>- </div>- <div class="mb-3 grid grid-cols-7" v-if="datePickerPanel === 'D'">- <div v-for="(day, index) in datePickerDays" :key="index" class="px-0.5">- <div class="text-center text-xs font-medium text-gray-800 dark:text-neutral-300">{{ day }}</div>- </div>- </div>- <div class="grid grid-cols-7 text-sm" v-if="datePickerPanel === 'D'">- <div v-for="(blankDay, index) in datePickerBlankDaysInMonth" :key="index" class="border border-transparent p-1 text-center"></div>- <div v-for="(day, dayIndex) in datePickerDaysInMonth" :key="dayIndex" class="mb-1 aspect-square px-0.5 leading-none">- <div- @click="datePickerValueClicked(day)"- :class="{- 'bg-neutral-200 dark:bg-neutral-800/70 dark:hover:bg-neutral-900': datePickerIsToday(day) == true,- 'text-gray-600 hover:bg-neutral-200 dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-neutral-100':- datePickerIsToday(day) == false && datePickerIsSelectedDate(day) == false,- 'hover:bg-opacity-75 dark:bg-opacity-60 bg-neutral-800 text-white dark:bg-violet-700': datePickerIsSelectedDate(day) == true,- }"- class="flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-center"- >- {{ day }}- </div>- </div>- </div>- <div v-if="datePickerPanel === 'M'" class="grid grid-cols-3 gap-2">- <DatePickerValueButton- v-for="(month, index) in datePickerMonthNames"- :key="month"- :value="index"- :is-selected="datePickerMonth === index"- @click="datePickerValueClicked(index)"- >- <template #text>- {{ month.slice(0, 3) }}- </template>- </DatePickerValueButton>- </div>- <div v-if="datePickerPanel === 'Y'" class="grid grid-cols-3 grid-rows-4 gap-2 px-4">- <DatePickerValueButton- v-for="year in datePickerDecade"- :key="year"- :value="year"- :is-selected="datePickerYear === year"- @click="datePickerValueClicked(year)"- />- </div>- </div>- </Transition>- </OnClickOutside>-</template>diff --git a/resources/js/components-archive/pinesUI/DatePickerValueButton.vue b/resources/js/components-archive/pinesUI/DatePickerValueButton.vuedeleted file mode 100644index 7570d6a8..00000000--- a/resources/js/components-archive/pinesUI/DatePickerValueButton.vue+++ /dev/null@@ -1,23 +0,0 @@-<script setup lang="ts">-const props = withDefaults(- defineProps<{- value: number | string;- isSelected: boolean;- classOverride?: string;- }>(),- {- isSelected: false,- },-);-</script>--<template>- <div- class="flex items-center justify-center text-center rounded-md cursor-pointer"- :class="`${classOverride ? `${classOverride} ` : ''}${isSelected ? 'bg-neutral-800 dark:bg-violet-700 text-white hover:bg-violet-700 dark:bg-opacity-60' : 'text-gray-600 dark:text-neutral-300 hover:bg-neutral-200 dark:hover:text-neutral-100 dark:hover:bg-neutral-900'}`"- >- <slot name="text">- {{ value }}- </slot>- </div>-</template>diff --git a/resources/js/components-archive/pinesUI/InputMultiChip.vue b/resources/js/components-archive/pinesUI/InputMultiChip.vuedeleted file mode 100644index 608f5b4b..00000000--- a/resources/js/components-archive/pinesUI/InputMultiChip.vue+++ /dev/null@@ -1,315 +0,0 @@-<script setup lang="ts">-import { computed, onMounted, ref, useTemplateRef, watch } from 'vue';-import { isInputLikeElement } from '@/service/util';-import { OnClickOutside } from '@vueuse/components';-import { UseFocusTrap } from '@vueuse/integrations/useFocusTrap/component.mjs';-import { toast } from '@aminnausin/cedar-ui';--import useMultiSelect from '@/composables/useMultiSelect';-import ButtonIcon from '@/components-archive/buttons/ButtonIcon.vue';-import TextInput from '@/components-archive/inputs/TextInput.vue';-import ChipTag from '@/components-archive/labels/ChipTag.vue';--import MdiLightPlus from '~icons/mdi-light/plus';--interface SelectItem {- id: number;- name: string;- relationships?: any;- disabled?: boolean;-}--const props = withDefaults(- defineProps<{- class?: string;- rootClass?: string;- placeholder?: string;- defaultItems?: SelectItem[];- options?: SelectItem[];- max?: number;- disabled?: boolean;- title?: string;- }>(),- {- placeholder: 'Select Item',- defaultItems: () => [],- options: () => [],- max: 32,- },-);--const emit = defineEmits(['createAction', 'selectItems', 'removeAction']);-const selectButton = useTemplateRef('selectButton');-const selectInput = useTemplateRef('selectInput');-const selectableItemsList = useTemplateRef('selectableItemsList');-const select = useMultiSelect(props, { selectableItemsList, selectButton });-const newValue = ref('');-const lastActiveItemId = ref(-1);--const filteredItemsList = computed(() => {- return (- select.selectableItems.filter((selectable: SelectItem) => {- return !select.selectedItems?.find((selected: SelectItem) => selectable.name === selected.name) && selectable.name.includes(newValue.value.toLocaleLowerCase());- }) ?? []- );-});--const handleItemClick = (item: any, setFocus = true, triggerSelect = true) => {- if (!item?.name) return;-- select.selectedItems = [...select.selectedItems, item];- select.toggleSelect(false);-- if (setFocus && selectButton.value) selectButton.value.focus();- if (triggerSelect) emit('selectItems', select.selectedItems);-};--const handleItemHover = (item: any) => {- select.selectableItemActive = item;- lastActiveItemId.value = item.id;-- if (isInputLikeElement(document.activeElement as HTMLElement, '')) return;-- (document.activeElement as HTMLElement)?.blur();-};--const handleItemFocus = (item: any) => {- select.selectableItemActive = item;- lastActiveItemId.value = item.id;- // select.selectScrollToActiveItem(item.id); => ISSUE: this blocks clicks and scrolls an item into view instead of registering a click. Only the centred items allow clicks.-};--const handleListFocus = () => {- if (lastActiveItemId.value <= 0) return;-- const el = document.getElementById(lastActiveItemId.value + '-' + select.selectId);- el?.focus();-};--const handleRemoveChip = (name: string) => {- const item = select.selectedItems.find((item: SelectItem) => item.name === name);- select.selectedItems = select.selectedItems.filter((item: SelectItem) => item.name !== name);-- emit('removeAction', item);-};--const handleCreate = (e: Event) => {- e.preventDefault();- e.stopPropagation();-- const parsedValue = newValue.value?.toLocaleLowerCase().trim();- if (!parsedValue) return;-- if (select.selectableItemActive && (select.selectableItemActive as unknown as SelectItem).name === parsedValue) {- handleItemClick(select.selectableItemActive);- return;- }-- if (select.selectedItems.some((item: SelectItem) => item.name === parsedValue)) {- toast.info('This tag was already added');- return;- }-- const selectableFound = select.selectableItems.find((item: SelectItem) => item.name === parsedValue);- if (selectableFound) {- handleItemClick(selectableFound);- return;- }-- emit('createAction', parsedValue);-- newValue.value = '';- select.toggleSelect(false);-};--const selectableItemActiveNext = async () => {- if (!select.selectableItemActive) return;- const index = filteredItemsList.value.indexOf(select.selectableItemActive);- if (index + 1 < filteredItemsList.value.length) {- select.selectableItemActive = filteredItemsList.value[index + 1];- select.selectScrollToActiveItem(filteredItemsList.value[index + 1].id);- }-};-const selectableItemActivePrevious = async () => {- if (!select.selectableItemActive) return;- const index = filteredItemsList.value.indexOf(select.selectableItemActive);- if (index - 1 >= 0) {- select.selectableItemActive = filteredItemsList.value[index - 1];- select.selectScrollToActiveItem(filteredItemsList.value[index - 1].id);- }-};--onMounted(() => {- if (props.defaultItems != undefined && props.defaultItems.length < props.options.length) {- // Default items is a list of selected tags- // I assume this should handle click for all of the provided default items- // idk where i got this code because this isn't PinesUI- // idek if this should happen because it kind of worked without-- // haha this is inefficient- select.selectedItems = [];- props.options.forEach((element) => {- if (props.defaultItems.find((item) => item.name === element.name)) {- handleItemClick(element, false);- }- });- }-});--watch([() => selectButton.value, () => selectableItemsList.value], () => {- select.updateRefs({ selectButton, selectableItemsList });-});--watch(- () => props.defaultItems,- (newVal) => {- select.selectedItems = newVal;- },- { immediate: true },-);-watch(- () => props.options,- (newVal) => {- select.selectableItems = newVal;- },- { immediate: true },-);-</script>-<template>- <div class="relative">- <button- ref="selectButton"- @click="select.toggleSelect(true)"- :class="[- 'relative mt-1 flex h-10 w-full items-center justify-between rounded-md py-2 pr-10 pl-3 text-sm shadow-xs',- 'cursor-pointer border-none focus:outline-hidden',- 'disabled:cursor-not-allowed disabled:opacity-50',- 'bg-white text-left text-gray-900 placeholder:text-neutral-400 dark:bg-neutral-700 dark:text-neutral-100',- 'ring-1 ring-neutral-200 ring-inset dark:ring-neutral-700',- `${select.selectOpen ? 'hocus:ring-0' : 'hocus:ring-2'} hover:ring-violet-400 focus:ring-indigo-400 focus:outline-hidden dark:hover:ring-violet-700 dark:focus:ring-indigo-500`,- ]"- :disabled="disabled"- type="button"- :title="title ?? 'Make Selection'"- >- <span class="truncate">{{ placeholder }}</span>- <span class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="h-5 w-5 text-gray-400">- <path- fill-rule="evenodd"- d="M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z"- clip-rule="evenodd"- ></path>- </svg>- </span>- </button>- <Transition enter-active-class="transition ease-out duration-50" enter-from-class="opacity-0 -translate-y-1" enter-to-class="opacity-100">- <UseFocusTrap- v-if="select.selectOpen"- :class="{- 'bottom-0 mb-11': select.selectDropdownPosition == 'top',- 'top-0 mt-11': select.selectDropdownPosition == 'bottom',- }"- class="ring-opacity-5 absolute z-30 mt-1 w-full rounded-md bg-white text-sm shadow-md ring-1 ring-black backdrop-blur-lg focus:outline-hidden dark:bg-neutral-800/70 dark:ring-neutral-700"- :options="{ allowOutsideClick: true, initialFocus: selectInput?.$el, returnFocusOnDeactivate: false }"- >- <OnClickOutside- @trigger="select.toggleSelect(false)"- @keydown.esc.stop="- (event: Event) => {- if (select.selectOpen) {- select.toggleSelect(false);- event.stopPropagation();- }- }- "- @keydown.down.stop="- (event: Event) => {- if (select.selectOpen) {- selectableItemActiveNext();- } else {- select.toggleSelect(true);- }- event.preventDefault();- }- "- @keydown.up.stop="- (event: Event) => {- if (select.selectOpen) {- selectableItemActivePrevious();- } else {- select.toggleSelect(true);- }- event.preventDefault();- }- "- @keydown="select.selectKeydown($event)"- v-cloak- >- <section class="flex w-full gap-2 p-2" @focusin="lastActiveItemId = -1">- <TextInput- :placeholder="'Search for a tag'"- v-model="newValue"- :maxlength="props.max"- ref="selectInput"- role="combobox"- aria-autocomplete="list"- aria-controls="selectableItemsList"- :aria-expanded="select.selectOpen ? 'true' : 'false'"- :aria-activedescendant="lastActiveItemId ? `${lastActiveItemId}-${select.selectId}` : null"- class="scroll-m-4"- @keydown.enter.stop="handleCreate"- @keydown.space.stop=""- @change="selectInput?.$el.scrollIntoView({ behavior: 'smooth', block: 'center' })"- @focus="selectButton?.scrollIntoView({ behavior: 'smooth', block: 'center' })"- />- <ButtonIcon :type="'button'" :disabled="!newValue" @click="handleCreate" class="ring-inset" title="Add a new tag">- <template #icon>- <MdiLightPlus class="h-6 w-6" />- </template>- </ButtonIcon>- </section>- <section- v-show="filteredItemsList.length == 0"- class="relative flex h-full items-center py-2 pl-8 text-gray-700 select-none dark:text-neutral-300"- @focusin="lastActiveItemId = -1"- >- <span class="block truncate">No Results... Add New?</span>- </section>- <ul- class="scrollbar-thin max-h-48 overflow-auto last:rounded-b-md"- aria-describedby="selectable-items-list"- ref="selectableItemsList"- role="listbox"- @focusin="handleListFocus"- >- <template v-for="item in filteredItemsList" :key="item.value">- <li- @keydown.enter.prevent.stop="handleItemClick(select.selectableItemActive)"- @keydown.space.prevent.stop="handleItemClick(select.selectableItemActive)"- @click.prevent.stop="handleItemClick(item)"- @mousemove="handleItemHover(item)"- @focus="handleItemFocus(item)"- :id="item.id + '-' + select.selectId"- :data-disabled="item.disabled ? item.disabled : ''"- :class="{- 'bg-neutral-100 text-gray-900 dark:bg-neutral-900/70 dark:text-neutral-100': select.selectableItemActive === item,- 'text-gray-700 dark:text-neutral-300': !select.selectableItemActive === item,- }"- :tabindex="'0'"- class="relative flex h-full cursor-pointer items-center py-2 pl-8 select-none focus:rounded-md data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"- role="option"- :aria-selected="select.selectableItemActive === item ? 'true' : 'false'"- >- <span class="block truncate">{{ item.name }}</span>- </li>- </template>- </ul>- </OnClickOutside>- </UseFocusTrap>- </Transition>- </div>- <span v-if="select.selectedItems?.length > 0" class="flex flex-wrap gap-1 pt-2 pb-1">- <ChipTag v-for="(chip, index) in select.selectedItems" :key="index" :label="chip.name" :removeable="true" @clickAction="handleRemoveChip(chip.name)" />- </span>-</template>diff --git a/resources/js/components-archive/pinesUI/InputSelect.vue b/resources/js/components-archive/pinesUI/InputSelect.vuedeleted file mode 100644index be447983..00000000--- a/resources/js/components-archive/pinesUI/InputSelect.vue+++ /dev/null@@ -1,257 +0,0 @@-<script setup lang="ts">-import useSelect from '@/composables/useSelect';--import { onMounted, ref, useTemplateRef, watch } from 'vue';-import { OnClickOutside } from '@vueuse/components';--interface SelectItem {- title: string;- value: any;- key?: any;- disabled?: boolean;-}--const props = withDefaults(- defineProps<{- name?: string;- class?: string;- rootClass?: string;- placeholder?: string;- defaultItem?: number | null;- options?: SelectItem[];- disabled?: boolean;- title?: string;- prefix?: string;- menuMargin?: { top: string; bottom: string };- }>(),- {- class: '',- rootClass: '',- prefix: '',- defaultItem: null,- options: () => [- {- title: 'Title',- value: 'title',- disabled: false,- },- {- title: 'Date Uploaded',- value: 'date',- disabled: false,- },- {- title: 'Date released',- value: 'date_released',- disabled: false,- },- {- title: 'Episode',- value: 'episode',- disabled: true,- },- {- title: 'Season',- value: 'season',- disabled: true,- },- ],- },-);--const emit = defineEmits(['selectItem']);-const selectButton = useTemplateRef('selectButton');-const selectableItemsList = useTemplateRef('selectableItemsList');-const selectableItemsRoot = useTemplateRef('selectableItemsRoot');-const select = useSelect(props.options, { selectableItemsList, selectButton });--const closeFocusOutTimeout = ref<number | null>(null);--const handleItemClick = (item: any, setFocus = true) => {- select.selectedItem = item;- select.toggleSelect(false);- if (setFocus) selectButton.value?.focus();- emit('selectItem', select.selectedItem);-};--const handleItemHover = (item: any) => {- select.selectableItemActive = item;- select.selectScrollToActiveItem();-};--const handleItemFocus = (item: any) => {- select.selectableItemActive = item;-};--const handleFocusOut = () => {- if (closeFocusOutTimeout.value) {- clearTimeout(closeFocusOutTimeout.value);- }-- closeFocusOutTimeout.value = window.setTimeout(() => {- if (!selectableItemsRoot.value) return;-- const active = document.activeElement;-- if (!selectableItemsRoot.value.contains(active)) {- select.toggleSelect(false);- }- }, 0);-};--onMounted(() => {- if (props.disabled) return;-- if (props.defaultItem != undefined && props.defaultItem < props.options.length && props.defaultItem >= 0) {- handleItemClick(props.options[props.defaultItem], false);- }-});--watch(- () => props.options,- () => {- select.selectableItems = props.options;- },-);-watch(- selectButton,- () => {- if (!selectButton.value) return;- select.selectButton = selectButton;- },- { immediate: true },-);-watch(- () => selectableItemsList.value,- () => {- if (!selectableItemsList.value) return;- select.selectableItemsList = selectableItemsList;- },- { immediate: true },-);-</script>-<template>- <section :class="[`relative`, rootClass]" @focusout="handleFocusOut" ref="selectableItemsRoot">- <button- :id="name ?? 'Select'"- ref="selectButton"- @click="select.toggleSelect()"- :class="[- { 'hocus:ring-0': select.selectOpen },- { 'text-neutral-400!': placeholder && !select.selectedItem },- 'relative flex h-10 w-full items-center justify-between py-2 pr-10 pl-3',- 'cursor-pointer rounded-md border-none text-left text-sm shadow-xs focus:outline-hidden',- 'hocus:ring-2 ring-1 ring-neutral-200 ring-inset hover:ring-violet-400 focus:ring-indigo-400 dark:ring-neutral-700 dark:hover:ring-violet-700 dark:focus:ring-indigo-500',- 'dark:bg-primary-dark-800 bg-white text-gray-900 dark:text-neutral-100',- 'disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:ring-neutral-200 dark:disabled:hover:ring-neutral-700',- props.class,- ]"- :disabled="disabled"- type="button"- :title="title ?? 'Make Selection'"- >- <span class="truncate"- >{{- //@ts-ignore- select.selectedItem ? `${prefix}${select.selectedItem.title}` : placeholder- }}- </span>- <span class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">- <slot name="selectButtonIcon">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="h-5 w-5 text-gray-400">- <path- fill-rule="evenodd"- d="M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z"- clip-rule="evenodd"- ></path>- </svg>- </slot>- </span>- </button>-- <Transition enter-active-class="transition ease-out duration-50" enter-from-class="opacity-0 -translate-y-1" enter-to-class="opacity-100">- <OnClickOutside- v-cloak- v-if="select.selectOpen"- :class="[select.selectDropdownPosition == 'top' ? `bottom-0 ${menuMargin?.bottom ?? 'mb-11'}` : `top-0 ${menuMargin?.top ?? 'mt-11'}`]"- class="ring-opacity-5 absolute z-30 mt-1 max-h-56 w-full overflow-clip rounded-md bg-white text-sm shadow-md ring-1 ring-black backdrop-blur-lg dark:bg-neutral-800/70 dark:ring-neutral-700"- @trigger="select.toggleSelect(false)"- @keydown.esc.stop="- (event: Event) => {- if (select.selectOpen) {- select.toggleSelect(false);- event.stopPropagation();- }- }- "- @keydown.down.stop.prevent="- (event: Event) => {- if (select.selectOpen) {- select.selectableItemActiveNext();- } else {- select.toggleSelect(true);- }- event.preventDefault();- }- "- @keydown.up.stop.prevent="- (event: Event) => {- if (select.selectOpen) {- select.selectableItemActivePrevious();- } else {- select.toggleSelect(true);- }- event.preventDefault();- }- "- @keydown.enter.stop="- //@ts-ignore- select.selectedItem = select.selectableItemActive;- select.toggleSelect(false);- "- @keydown.stop="select.selectKeydown($event)"- >- <ul ref="selectableItemsList" class="scrollbar-thin max-h-56 w-full overflow-auto focus:outline-hidden" tabindex="-1" role="listbox">- <template v-for="item in select.selectableItems" :key="item.value">- <li- @click="handleItemClick(item)"- @keydown.enter="handleItemClick(item)"- @keydown.space="handleItemClick(item)"- @focus="handleItemFocus(item)"- @mousemove="handleItemHover(item)"- :id="item.value + '-' + select.selectId"- :title="item.title"- :data-disabled="item.disabled ? item.disabled : ''"- :tabindex="select.selectableItemIsActive(item) ? 0 : -1"- :class="{- 'bg-neutral-100 text-gray-900 dark:bg-neutral-900/70 dark:text-neutral-100': select.selectableItemIsActive(item),- 'text-gray-700 dark:text-neutral-300': !select.selectableItemIsActive(item),- }"- class="relative flex h-full cursor-pointer items-center py-2 pl-8 focus:rounded-md data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"- role="option"- :aria-selected="select.selectableItemIsActive(item) ? 'true' : 'false'"- >- <svg- v-if="- //@ts-ignore- select.selectedItem.value == item.value- "- class="absolute left-0 ml-2 h-4 w-4 stroke-current text-neutral-400"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- >- <polyline points="20 6 9 17 4 12"></polyline>- </svg>- <span class="block truncate font-medium">{{ item.title }}</span>- </li>- </template>- </ul>- </OnClickOutside>- </Transition>- </section>-</template>diff --git a/resources/js/components-archive/pinesUI/ToastController.vue b/resources/js/components-archive/pinesUI/ToastController.vuedeleted file mode 100644index e0f3a2bf..00000000--- a/resources/js/components-archive/pinesUI/ToastController.vue+++ /dev/null@@ -1,261 +0,0 @@-<script setup lang="ts">-// This is so bad lol pls fix-import type { Message, ToastControllerProps, ToastLayout, ToastPostion, ToastToDismiss } from '@/types/pinesTypes';--import { DEFAULT_GAP, MOBILE_VIEWPORT_OFFSET, SCALE_STEP, TOAST_WIDTH, VIEWPORT_OFFSET, VISIBLE_TOASTS_AMOUNT, Y_OFFSET_STEP, Z_STEP } from '@/service/toaster/constants';-import { nextTick, onMounted, ref, watch, watchEffect } from 'vue';-import { ToastState } from '@/service/toaster/toastService';--import ToastNotification from '@/components-archive/pinesUI/ToastNotification.vue';--const props = withDefaults(defineProps<ToastControllerProps>(), {- layout: 'default',- position: 'bottom-right',- defaultLife: 3000,- maxVisibleToasts: VISIBLE_TOASTS_AMOUNT,- viewportOffset: VIEWPORT_OFFSET,- mobileViewportOffset: MOBILE_VIEWPORT_OFFSET,- paddingBetweenToasts: DEFAULT_GAP,-});--const container = ref<HTMLElement>();--const messages = ref<Message[]>([]);-const position = ref<ToastPostion>(props.position);-const layout = ref<ToastLayout>(props.layout);--const toastsHovered = ref(false);-const expanded = ref(props.layout === 'expanded');-const paddingBetweenToasts = ref(props.paddingBetweenToasts);-const heightRecalculateTimeout = ref<null | number>(null);-const burnTimeout = ref<null | number>(null);--function deleteToastWithId(id: string) {- messages.value = messages.value.filter((msg) => msg.id !== id);- ToastState.dismiss(id);- stackToasts('DELETE');-}--function stackToasts(_?: any) {- if (messages.value.length > 0) {- positionToasts(_);- }-- calculateHeightOfToastsContainer();-- if (heightRecalculateTimeout.value) clearTimeout(heightRecalculateTimeout.value);-- // This calculates container height after the toasts are positioned- if (!expanded.value) return;-- heightRecalculateTimeout.value = window.setTimeout(() => {- calculateHeightOfToastsContainer();- }, 100);-}--function positionToasts(_?: any) {- try {- const isBottom = position.value.includes('bottom');- const toastElements: HTMLElement[] = [];-- let totalHeight = 0;- let scaleBuffer = 1 + SCALE_STEP;- let yBuffer = -Y_OFFSET_STEP;- let zBuffer = 200 + Z_STEP;-- for (const msg of messages.value) {- const toastEl = document.getElementById(msg.id);- if (!toastEl) return;-- zBuffer -= Z_STEP;- scaleBuffer -= SCALE_STEP;- yBuffer += Y_OFFSET_STEP;-- msg.scale = scaleBuffer;- msg.offsetY = yBuffer;- msg.zIndex = zBuffer;-- toastElements.push(toastEl);-- if (expanded.value) {- totalHeight = totalHeight + (totalHeight ? paddingBetweenToasts.value : 0);-- msg.positionY = totalHeight + 'px';- msg.scale = 1;- msg.offsetY = 0;-- totalHeight += toastEl.offsetHeight;- continue;- }-- msg.scale = scaleBuffer;-- if (isBottom) {- msg.offsetY *= -1;- } else {- alignBottom(toastElements[0], msg);- }- }-- // Don't handle overflow anymore. All toasts must adhere to their lifecycle and dismissing a newer toast will reveal an older one- } catch (error) {- console.log(error);- }-}--function calculateHeightOfToastsContainer() {- if (!container.value) return;-- if (messages.value.length == 0) {- container.value.style.height = '0px';- return;- }-- const lastToast = messages.value[Math.max(Math.min(messages.value.length - 1, props.maxVisibleToasts - 1), 0)];- const lastToastRectangle = document.getElementById(`${lastToast?.id}`)?.getBoundingClientRect();-- const firstToast = messages.value[0];- const firstToastRectangle = document.getElementById(`${firstToast?.id}`)?.getBoundingClientRect();-- if (!firstToastRectangle || !lastToastRectangle) return;-- if (!toastsHovered.value) {- container.value.style.height = firstToastRectangle.height + 'px';- return;- }-- if (position.value.includes('bottom')) {- container.value.style.height = firstToastRectangle.top + firstToastRectangle.height - lastToastRectangle.top + 'px';- return;- }-- container.value.style.height = lastToastRectangle.top + lastToastRectangle.height - firstToastRectangle.top + 'px';-}--function alignBottom(element1: HTMLElement, toast: Message) {- const element2 = document.getElementById(toast.id);-- if (!element2) return;-- // Get the top position and height of the first element- const top1 = element1.offsetTop;- const height1 = element1.offsetHeight;-- // Get the height of the second element- const height2 = element2.offsetHeight;-- // Calculate the top position for the second element- const top2 = top1 + (height1 - height2);-- // Apply the calculated top position to the second element- toast.positionY = top2 + 'px';-}--onMounted(() => {- stackToasts('MOUNT');-});--watch(- () => toastsHovered.value,- (value) => {- if (layout.value !== 'default') return;-- if (value) {- // calculate the new positions- expanded.value = true;- stackToasts('HOVER');- return;- }-- expanded.value = false;- // this used to get call after 10 ms and then again after 10 ms but idk if that is needed anymore- stackToasts('HOVER CLOSE');- },-);--watch(- () => messages.value,- () => {- // Ensure expanded is always false when no toasts are present / only one left- if (messages.value.length <= 1) {- expanded.value = false;- }- },-);--watchEffect((onInvalidate) => {- const unsubscribe = ToastState.subscribe((newToast) => {- if ((newToast as ToastToDismiss).dismiss) {- // ? toast is deleted locally already why is there an extra step -> messages.value = messages.value.map((t) => (t.id === toast.id ? { ...t, delete: true } : t));- return;- }-- nextTick(() => {- const indexOfExistingToast = messages.value.findIndex((t) => t.id === newToast.id);-- // Update the toast if it already exists- if (indexOfExistingToast !== -1) {- messages.value = [- ...messages.value.slice(0, indexOfExistingToast),- { ...messages.value[indexOfExistingToast], ...newToast },- ...messages.value.slice(indexOfExistingToast + 1),- ];-- return;- }- const toast = newToast as Message;-- if (toast.position) position.value = toast.position;-- messages.value.unshift({- ...toast,- id: toast.id,- type: toast.type ?? 'default',- position: toast.position ?? position.value,- life: toast.life ?? props.defaultLife,- title: toast.title,- });- });- });-- onInvalidate(unsubscribe);-});-</script>--<template>- <teleport to="body" :disabled="teleportDisabled">- <ol- v-cloak- ref="container"- :class="[- `group fixed z-500 w-full *:px-4 [&>*]:px-[${mobileViewportOffset ?? viewportOffset}] sm:*:px-6 [&>*]:sm:px-[${viewportOffset}] my-4 sm:my-6 my-[${mobileViewportOffset ?? viewportOffset}] sm:my-[${viewportOffset}]`,- `${TOAST_WIDTH ? `sm:w-[${TOAST_WIDTH}px]` : 'sm:max-w-sm'}`,- `${position == 'top-right' ? 'top-0 right-0' : ''}`,- `${position == 'top-left' ? 'top-0 left-0' : ''}`,- `${position == 'top-center' ? 'top-0 left-1/2 -translate-x-1/2' : ''}`,- `${position == 'bottom-right' ? 'right-0 bottom-0' : ''}`,- `${position == 'bottom-left' ? 'bottom-0 left-0' : ''}`,- `${position == 'bottom-center' ? 'bottom-0 left-1/2 -translate-x-1/2' : ''}`,- ]"- @mouseenter="toastsHovered = true"- @mouseleave="toastsHovered = false"- >- <ToastNotification- v-for="(toast, index) in messages"- v-bind="toast"- :key="toast.id"- :stack="- () => {- stackToasts('TOAST');- }- "- :toastCount="messages.length"- :position="position"- :expanded="expanded"- :index="index"- :maxVisibleToasts="maxVisibleToasts"- @close="deleteToastWithId"- />- </ol>- </teleport>-</template>diff --git a/resources/js/components-archive/pinesUI/ToastNotification.vue b/resources/js/components-archive/pinesUI/ToastNotification.vuedeleted file mode 100644index 5db4147d..00000000--- a/resources/js/components-archive/pinesUI/ToastNotification.vue+++ /dev/null@@ -1,255 +0,0 @@-<script setup lang="ts">-import type { SwipeDirection, ToastProps } from '@/types/pinesTypes';--import { SWIPE_THRESHOLD, TOAST_LIFE, VISIBLE_TOASTS_AMOUNT } from '@/service/toaster/constants';-import { computed, onBeforeUnmount, onMounted, ref } from 'vue';-import { useSwipeHandler } from '@/composables/useSwipeHandler';-import { useToastTimer } from '@/composables/useToastTimer';--const emit = defineEmits<(e: 'close', id: string) => void>(); // removeToast--const props = withDefaults(defineProps<ToastProps>(), {- type: 'default',- position: 'bottom-center',- life: TOAST_LIFE,- maxVisibleToasts: VISIBLE_TOASTS_AMOUNT,- title: 'Title',- html: '',- style: '',- swipeDirections: () => [],-});--const leaveDirection = ref('translate-y-0');-const swipeDirections = computed(() => {- if (props.swipeDirections.length > 0) return props.swipeDirections;-- const [y, x] = props.position.split('-');- const directions: Array<SwipeDirection> = [];-- if (isSwipeDirection(y)) {- directions.push(y);- }-- if (isSwipeDirection(x)) {- directions.push(x);- }-- if (x === 'center') {- directions.push('left', 'right');- }-- return directions;-});--const isBottom = computed(() => {- return props.position.includes('bottom');-});--const closeTimeout = ref<null | number>(null);-const stackTimeout = ref<null | number>(null);--const toastHovered = ref(false);-const isMounted = ref(false);--const { offset, isSwiping, onPointerDown, onPointerMove, onPointerUp } = useSwipeHandler({ directions: swipeDirections, threshold: SWIPE_THRESHOLD, onSwipeOut: onClose });--const { cancel: cancelToastTimer } = useToastTimer({- duration: props.life || TOAST_LIFE,- isPaused: () => props.expanded || props.type === 'loading' || !props.life || props.life === Infinity || toastHovered.value,- onTimeout: onClose,-});--function getLeaveDirection() {- if (isSwiping.value) {- return offset.value.x > 0 ? 'translate-x-full' : '-translate-x-full';- }-- if (props.toastCount === 1) {- return isBottom.value ? 'translate-y-full' : '-translate-y-full';- }-- return 'translate-y-0';-}--function onClose() {- if (closeTimeout.value) return;-- leaveDirection.value = getLeaveDirection();- isMounted.value = false;- cancelToastTimer();- closeTimeout.value = window.setTimeout(() => {- emit('close', props.id);- }, 350);-}--function clearCloseTimeout() {- if (stackTimeout.value) {- clearTimeout(stackTimeout.value);- stackTimeout.value = null;- }- if (closeTimeout.value) {- clearTimeout(closeTimeout.value);- closeTimeout.value = null;- }-}--function isSwipeDirection(val: string): val is SwipeDirection {- return ['top', 'right', 'bottom', 'left'].includes(val);-}--onMounted(() => {- isMounted.value = true;-- if (stackTimeout.value) clearTimeout(stackTimeout.value);-- stackTimeout.value = window.setTimeout(() => {- props.stack();- });-});--onBeforeUnmount(() => {- clearCloseTimeout();-});-</script>--<template>- <li- ref="toastEl"- :id="props.id"- :class="[- `toast absolute w-full transition-all duration-300 ease-out`,- { 'toast-no-description': !description },- { 'pointer-events-none opacity-0': index >= maxVisibleToasts },- style,- ]"- :style="{- '--offset-x': `${offset.x}px`,- '--offset-y': `${offsetY}px`,- '--scale': scale,- '--z-index': zIndex,- '--position-top': `${expanded ? (isBottom ? 'auto' : positionY) : 'inherit'}`,- '--position-bottom': `${isBottom && expanded ? positionY : 'inherit'}`,- }"- :data-isSwiping="isSwiping"- @mouseover="toastHovered = true"- @mouseout="toastHovered = false"- @dragend="onPointerUp"- @pointerdown="onPointerDown"- @pointermove="onPointerMove"- @pointerup="onPointerUp"- role="alert"- >- <Transition- enter-active-class=""- :enter-from-class="`opacity-0 ${isBottom ? 'translate-y-full' : '-translate-y-full'}`"- :enter-to-class="`opacity-100 translate-y-0`"- leave-active-class=""- :leave-from-class="`opacity-100 translate-y-0`"- :leave-to-class="`opacity-0 ${leaveDirection}`"- >- <span- :class="[- { 'p-4': !props.html, 'p-0': props.html },- 'flex flex-col items-start rounded-md backdrop-blur-lg',- 'group relative select-text',- 'transition-all duration-300 ease-out',- 'dark:bg-primary-dark-700/70 bg-white text-gray-800 shadow-[0_5px_15px_-3px_rgb(0_0_0/0.08)] dark:text-neutral-100',- 'ring-1 ring-gray-100 ring-inset dark:ring-neutral-800/50',- 'outline-hidden! focus:ring-2 focus:ring-gray-400 dark:focus:ring-indigo-500',- ]"- v-show="isMounted"- >- <div- v-if="!props.html"- class="flex items-center"- :class="{- 'text-green-500': props.type === 'success',- 'text-blue-500': props.type === 'info',- 'text-orange-400': props.type === 'warning',- 'text-rose-500': props.type === 'danger',- 'text-gray-800 dark:text-neutral-100': props.type === 'default',- }"- >- <svg v-show="props.type === 'success'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- fill-rule="evenodd"- clip-rule="evenodd"- d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM16.7744 9.63269C17.1238 9.20501 17.0604 8.57503 16.6327 8.22559C16.2051 7.87615 15.5751 7.93957 15.2256 8.36725L10.6321 13.9892L8.65936 12.2524C8.24484 11.8874 7.61295 11.9276 7.248 12.3421C6.88304 12.7566 6.92322 13.3885 7.33774 13.7535L9.31046 15.4903C10.1612 16.2393 11.4637 16.1324 12.1808 15.2547L16.7744 9.63269Z"- fill="currentColor"- ></path>- </svg>- <svg v-show="props.type === 'info'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- fill-rule="evenodd"- clip-rule="evenodd"- d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V12Z"- fill="currentColor"- ></path>- </svg>- <svg v-show="props.type === 'warning'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- fill-rule="evenodd"- clip-rule="evenodd"- d="M9.44829 4.46472C10.5836 2.51208 13.4105 2.51168 14.5464 4.46401L21.5988 16.5855C22.7423 18.5509 21.3145 21 19.05 21L4.94967 21C2.68547 21 1.25762 18.5516 2.4004 16.5862L9.44829 4.46472ZM11.9995 8C12.5518 8 12.9995 8.44772 12.9995 9V13C12.9995 13.5523 12.5518 14 11.9995 14C11.4473 14 10.9995 13.5523 10.9995 13V9C10.9995 8.44772 11.4473 8 11.9995 8ZM12.0009 15.99C11.4486 15.9892 11.0003 16.4363 10.9995 16.9886L10.9995 16.9986C10.9987 17.5509 11.4458 17.9992 11.9981 18C12.5504 18.0008 12.9987 17.5537 12.9995 17.0014L12.9995 16.9914C13.0003 16.4391 12.5532 15.9908 12.0009 15.99Z"- fill="currentColor"- ></path>- </svg>- <svg v-show="props.type === 'danger'" class="mr-1.5 -ml-1 h-[18px] w-[18px]" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">- <path- fill-rule="evenodd"- clip-rule="evenodd"- d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9996 7C12.5519 7 12.9996 7.44772 12.9996 8V12C12.9996 12.5523 12.5519 13 11.9996 13C11.4474 13 10.9996 12.5523 10.9996 12V8C10.9996 7.44772 11.4474 7 11.9996 7ZM12.001 14.99C11.4488 14.9892 11.0004 15.4363 10.9997 15.9886L10.9996 15.9986C10.9989 16.5509 11.446 16.9992 11.9982 17C12.5505 17.0008 12.9989 16.5537 12.9996 16.0014L12.9996 15.9914C13.0004 15.4391 12.5533 14.9908 12.001 14.99Z"- fill="currentColor"- ></path>- </svg>- <p class="text-[13px] leading-none font-medium" :title="props.title">{{ props.title }}</p>- </div>- <p- v-show="props.description"- :class="{ 'pl-5': props.type !== 'default' }"- class="scrollbar-minimal mt-1.5 max-h-32 min-h-3 w-full overflow-y-auto pe-2 text-xs leading-tight wrap-break-word whitespace-pre-wrap opacity-70"- >- {{ description }}- </p>- <template v-if="!props.html">- <span- @click="onClose"- class="dark:hover:text-danger-2 absolute right-0 mr-2.5 cursor-pointer rounded-full p-1.5 text-gray-400 opacity-0 duration-100 ease-in-out hover:bg-gray-50 hover:text-gray-500 dark:bg-gray-800/50 dark:text-rose-700"- :class="{- 'top-1/2 -translate-y-1/2': !props.description && !props.html,- 'top-0 mt-2.5': props.description || props.html,- 'opacity-100': toastHovered,- 'opacity-0': !toastHovered,- }"- >- <svg class="h-3 w-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">- <path- fill-rule="evenodd"- d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"- clip-rule="evenodd"- ></path>- </svg>- </span>- </template>- </span>- </Transition>- </li>-</template>-<style lang="css" scoped>-.toast {- transform: translateY(var(--offset-y, 0px)) translateX(var(--offset-x, 0px)) scale(var(--scale, 1));- z-index: var(--z-index, 200);- top: var(--position-top, inherit);- bottom: var(--position-bottom, inherit);-}--@media (prefers-reduced-motion: reduce) {- .toast {- transition: none !important;- }-}--[data-isSwiping='true'] {- transition-property: none !important;-}-</style>diff --git a/resources/js/components-archive/table/TableBase.vue b/resources/js/components-archive/table/TableBase.vuedeleted file mode 100644index c78cd004..00000000--- a/resources/js/components-archive/table/TableBase.vue+++ /dev/null@@ -1,128 +0,0 @@-<script setup lang="ts" generic="T extends TableRow">-import type { SortOption, TableProps, TableRow } from '@/types/types';--import { onMounted, ref, toRef } from 'vue';-import { cn } from '@aminnausin/cedar-ui';--import TableLoadingSpinner from '@/components-archive/table/TableLoadingSpinner.vue';-import TextInputLabelled from '@/components-archive/inputs/TextInputLabelled.vue';-import TablePagination from '@/components-archive/table/TablePagination.vue';-import InputSelect from '@/components-archive/pinesUI/InputSelect.vue';-import ButtonIcon from '@/components-archive/buttons/ButtonIcon.vue';-import useTable from '@/composables/useTable.ts';--import PhSortDescendingLight from '~icons/ph/sort-descending-light';-import PhSortAscendingLight from '~icons/ph/sort-ascending-light';--const props = withDefaults(defineProps<TableProps<T>>(), {- useToolbar: true,- usePagination: true,- itemsPerPage: 12,- selectedID: null,- startAscending: true,- usePaginationIcons: false,- maxVisiblePages: 5,- noResultsMessage: 'No Results',-});--const { currentPage, itemsPerPage, pageData, setPage } = useTable<T>({ itemsPerPage: props.itemsPerPage, data: toRef(props, 'data') });--const sortAscending = ref(props.startAscending);-const lastSortKey = ref('');--// Search Query-const model = defineModel<string>({- required: false,- default: undefined,-});--defineSlots<{- row(props: { row: T; index: number; selectedID: any }): any;-}>();--const handleSortChange = (sortKey?: SortOption) => {- if (sortKey?.value) {- lastSortKey.value = sortKey.value;- }-- if (!lastSortKey.value) return;- props.sortAction?.(lastSortKey.value as keyof T, sortAscending.value ? 1 : -1);-};--onMounted(() => {- if (props.useToolbar && props.sortAction) props.sortAction(lastSortKey.value as keyof T, props.startAscending ? 1 : -1);-});-</script>--<template>- <section class="flex w-full flex-col gap-3">- <section v-if="props.useToolbar" class="flex flex-col justify-center gap-2 sm:flex-row sm:justify-between">- <TextInputLabelled- v-if="model !== undefined"- v-model="model"- :placeholder="`Search ${props.itemName ? `${props.itemName}...` : ''}`"- :id="'table-search'"- class="w-full sm:w-80"- title="Search with..."- />-- <span :class="['flex flex-wrap items-end gap-2 sm:flex-nowrap', { 'flex-1': model === undefined }]">- <div class="flex w-full flex-1 flex-col gap-2 sm:w-40">- <InputSelect- :name="'sort'"- :placeholder="'Sort by...'"- :prefix="'By '"- :options="sortingOptions"- :defaultItem="0"- class="w-full"- title="Sort by..."- @selectItem="handleSortChange"- />- </div>- <ButtonIcon- @click="- sortAscending = !sortAscending;- handleSortChange();- "- :title="`Reorder Results...`"- :aria-label="`Reorder Results`"- class="inline-flex h-full ring-inset"- >- <template #icon>- <!-- Arrow Pointing Down if ascending and then Up otherwise (arrow shows what to change to ?? idk descending points up actually)-->- <PhSortDescendingLight v-if="sortAscending" width="24" height="24" />- <PhSortAscendingLight v-else width="24" height="24" />- </template>- </ButtonIcon>- </span>- </section>- <section :class="cn(useGrid || 'flex w-full flex-wrap gap-2', tableStyles)">- <TableLoadingSpinner v-if="loading || pageData.length === 0" :is-loading="loading" :data-length="pageData.length" :no-results-message="noResultsMessage" />- <template v-else>- <template v-for="(row, index) in pageData" :key="row.id">- <slot name="row" :row="row" :index="index" :selectedID="props.selectedID">- <component- :is="props.row"- :data="row"- :index="index"- :currentID="props.selectedID ?? null"- v-bind="rowAttributes"- @clickAction="(...args: any[]) => props.clickAction?.(row.id, ...args)"- @otherAction="(...args: any[]) => props.otherAction?.(row.id, ...args)"- ></component>- </slot>- </template>- </template>- </section>- <TablePagination- v-if="usePagination"- :class="paginationClass"- :listLength="props.data?.length ?? 0"- :itemsPerPage="itemsPerPage"- :currentPage="currentPage"- :useIcons="props.usePaginationIcons"- :max-visible-pages="props.maxVisiblePages"- @setPage="setPage"- />- </section>-</template>diff --git a/resources/js/components-archive/table/TableLoadingSpinner.vue b/resources/js/components-archive/table/TableLoadingSpinner.vuedeleted file mode 100644index ba246076..00000000--- a/resources/js/components-archive/table/TableLoadingSpinner.vue+++ /dev/null@@ -1,11 +0,0 @@-<script setup lang="ts">-import SvgSpinners90RingWithBg from '~icons/svg-spinners/90-ring-with-bg';--const props = withDefaults(defineProps<{ isLoading?: boolean; noResultsMessage?: string; dataLength?: number }>(), { noResultsMessage: 'No Results' });-</script>-<template>- <div class="col-span-full flex w-full items-center justify-center gap-2 text-center text-lg tracking-wider text-gray-500 uppercase dark:text-gray-400">- <p>{{ isLoading ? '...Loading' : noResultsMessage }}</p>- <SvgSpinners90RingWithBg v-show="isLoading" />- </div>-</template>diff --git a/resources/js/components-archive/table/TablePagination.vue b/resources/js/components-archive/table/TablePagination.vuedeleted file mode 100644index 35f044f9..00000000--- a/resources/js/components-archive/table/TablePagination.vue+++ /dev/null@@ -1,137 +0,0 @@-<script setup lang="ts">-import { computed, nextTick, ref } from 'vue';--import TablePaginationButton from '@/components-archive/table/TablePaginationButton.vue';--import ProiconsChevronRight from '~icons/proicons/chevron-right';-import ProiconsChevronLeft from '~icons/proicons/chevron-left';--const props = withDefaults(- defineProps<{- listLength: number;- currentPage: number;- itemsPerPage: number;- useIcons: boolean;- maxVisiblePages?: number;- }>(),- {- maxVisiblePages: 5,- },-);-const $element = ref<null | HTMLElement>(null);--const emit = defineEmits(['setPage']);--const pageCount = computed(() => {- return Math.ceil(props.listLength / props.itemsPerPage);-});--const pageRange = computed<number | number[]>(() => {- const total = pageCount.value;- const current = props.currentPage;- const maxVisible = props.maxVisiblePages;- const edgeThreshold = Math.max(maxVisible - 1, 3);- const edgeLength = Math.max(maxVisible - 1, 2);- if (total <= maxVisible) return Array.from({ length: total }, (_, i) => i + 1); // Threshold to show all pages at once-- // 1 2 or 3, then show 1 2 3 4... options should be 1 2 or more, so max - 1 or 3 whichever is higher- // Threshold (by page selected) to show groups of pages at left end (ie 1, 2, [3], 4, ..., 10)- if (current < edgeThreshold) return Array.from({ length: edgeLength }, (_, i) => i + 1); // Number of pages to show with current page on left end (ie [1], 2, 3, 4, ..., 10) (inclusive)- if (pageCount.value - current < edgeThreshold - 1) {- // 7 8 9 or 10- // Threshold (by page selected) to show group of pages at right end (ie 1, ..., 7, [8], 9, 10)- let range: number[] = []; // Number of pages to show with current page on left end (ie 1, ..., 7, 8, 9, [10]) (exclusive so 3 items means 3 + 1 [the selected page])- for (let i = pageCount.value - edgeLength + 1; i <= pageCount.value; i++) {- range = [...range, i]; // Fill an array with all integers from pageCount - (number of items in group - 1) to pageCount- }-- return range;- }-- return maxVisible >= 5 ? [current - 1, current, current + 1] : [current];-});--const handleSetPage = async (page: number) => {- emit('setPage', page);- await nextTick();- $element.value?.scrollIntoView({ behavior: 'instant', block: 'end' });-};-</script>--<template>- <div :class="`flex scroll-mb-12 flex-col flex-wrap items-center gap-2 sm:flex-row sm:justify-between`" ref="$element">- <p class="line-clamp-1 text-sm dark:text-neutral-300">- Showing- <span class="font-medium dark:text-white">{{ props.listLength ? props.itemsPerPage * (currentPage - 1) + 1 : 0 }}</span>- to- <span class="font-medium dark:text-white">{{ Math.min(props.itemsPerPage * currentPage, props.listLength) }}</span>- of- <span class="font-medium dark:text-white">{{ listLength }}</span>- <!-- Results -->- </p>- <ul- class="dark:bg-primary-dark-800/70 flex h-9 items-center divide-x divide-neutral-200 rounded-sm border border-neutral-200 bg-white text-sm leading-tight text-neutral-500 dark:divide-neutral-700 dark:border-neutral-700 dark:text-neutral-300"- >- <TablePaginationButton- :pageNumber="-1"- :text="'Previous'"- :disabled="props.currentPage === 1"- @click="handleSetPage(Math.max(1, props.currentPage - 1))"- title="Previous Page"- >- <template #content v-if="useIcons">- <ProiconsChevronLeft class="h-4 w-4" title="Previous" />- </template>- <template #content v-else>- <span class="hidden sm:block">- {{ 'Previous' }}- </span>- <ProiconsChevronLeft class="h-4 w-4 sm:hidden" title="Previous" />- </template>- </TablePaginationButton>-- <!-- Diff between start and current page is greater than 2 -->- <template v-if="pageCount > props.maxVisiblePages && props.currentPage > Math.max(props.maxVisiblePages - 2, 2)">- <TablePaginationButton :pageNumber="1" :currentPage="props.currentPage" @click="handleSetPage(1)" :sticky="true" v-if="maxVisiblePages > 3" />- <TablePaginationButton- :pageNumber="-1"- :text="'...'"- @click="handleSetPage(Math.floor(currentPage / 2))"- :underline="true"- :title="`Page ${Math.floor(currentPage / 2)}`"- />- </template>-- <TablePaginationButton v-for="page in pageRange" :key="page" :pageNumber="page" :currentPage="props.currentPage" @click="handleSetPage(page)" :title="`Page ${page}`" />-- <template v-if="pageCount > props.maxVisiblePages && pageCount - props.currentPage > Math.max(props.maxVisiblePages - 3, 1)">- <TablePaginationButton- :pageNumber="-1"- :text="'...'"- :title="`Page ${Math.floor((pageCount - currentPage) / 2 + currentPage)}`"- @click="handleSetPage(Math.floor((pageCount - currentPage) / 2 + currentPage))"- :underline="true"- />- <TablePaginationButton :pageNumber="pageCount" :currentPage="props.currentPage" @click="handleSetPage(pageCount)" :sticky="true" v-if="maxVisiblePages > 3" />- </template>-- <TablePaginationButton- :pageNumber="-1"- :text="'Next'"- :disabled="props.currentPage === pageCount"- @click="handleSetPage(Math.min(pageCount, props.currentPage + 1))"- title="Next Page"- >- <template #content v-if="useIcons">- <ProiconsChevronRight class="h-4 w-4" title="Next" />- </template>- <template #content v-else>- <span class="hidden sm:block">- {{ 'Next' }}- </span>- <ProiconsChevronRight class="h-4 w-4 sm:hidden" title="Next" />- </template>- </TablePaginationButton>- </ul>- </div>-</template>diff --git a/resources/js/components-archive/table/TablePaginationButton.vue b/resources/js/components-archive/table/TablePaginationButton.vuedeleted file mode 100644index 8d33dc95..00000000--- a/resources/js/components-archive/table/TablePaginationButton.vue+++ /dev/null@@ -1,48 +0,0 @@-<script setup lang="ts">-const props = withDefaults(- defineProps<{- currentPage?: number;- pageNumber?: number;- text?: string;- underline?: boolean;- sticky?: boolean;- disabled?: boolean;- }>(),- {- underline: false,- sticky: false,- disabled: false,- },-);-</script>--<template>- <li :class="{ hidden: props.currentPage !== props.pageNumber && !props.text && !props.sticky }" class="z-0 h-full md:block">- <button- class="group relative inline-flex h-full items-center px-3 hover:text-gray-900 disabled:cursor-not-allowed disabled:text-neutral-400 dark:hover:text-white dark:disabled:text-neutral-500"- :class="{ 'bg-gray-50 text-gray-900 dark:bg-neutral-900 dark:text-white': props.currentPage === props.pageNumber }"- :disabled="props.disabled ?? false"- >- <slot name="content">- <span>- {{ props?.text ?? props.pageNumber }}- </span>- </slot>-- <span- v-if="!props.text || props.underline"- class="absolute bottom-0 -mx-px box-content h-px w-0 translate-y-px border-transparent bg-violet-600 duration-200 ease-out group-hover:left-0 group-hover:w-full group-hover:border-r group-hover:border-l group-hover:border-violet-600"- bg-neutral-900- dark:bg-violet-600- group-hover:border-neutral-900- dark:group-hover:border-violet-600- :class="{- 'left-0 w-full border-r border-l': props.currentPage === props.pageNumber,- 'left-1/2': props.currentPage !== props.pageNumber,- }"- >- <!-- bg-neutral-900 dark:bg-violet-600 group-hover:border-neutral-900 dark:group-hover:border-violet-600 -->- </span>- </button>- </li>-</template>