paket-ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/module.d.mts +10 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +46 -0
- package/dist/runtime/components/ProgressIndicator/ProgressBase.vue +36 -0
- package/dist/runtime/components/ProgressIndicator/ProgressBase.vue.d.ts +8 -0
- package/dist/runtime/components/ProgressIndicator/ProgressIndicator.vue +46 -0
- package/dist/runtime/components/ProgressIndicator/ProgressIndicator.vue.d.ts +9 -0
- package/dist/runtime/components/Recorder/RecorderAudio.vue +136 -0
- package/dist/runtime/components/Recorder/RecorderAudio.vue.d.ts +11 -0
- package/dist/runtime/components/alert/AlertHelperForm.vue +22 -0
- package/dist/runtime/components/alert/AlertHelperForm.vue.d.ts +13 -0
- package/dist/runtime/components/alert/AlertPinLocation.vue +57 -0
- package/dist/runtime/components/alert/AlertPinLocation.vue.d.ts +13 -0
- package/dist/runtime/components/alert/BaseAlert.vue +54 -0
- package/dist/runtime/components/alert/BaseAlert.vue.d.ts +34 -0
- package/dist/runtime/components/alert/index.d.ts +20 -0
- package/dist/runtime/components/alert/index.js +20 -0
- package/dist/runtime/components/attachment/BaseAttachment.vue +52 -0
- package/dist/runtime/components/attachment/BaseAttachment.vue.d.ts +24 -0
- package/dist/runtime/components/attachment/ChipAttachment.vue +57 -0
- package/dist/runtime/components/attachment/ChipAttachment.vue.d.ts +28 -0
- package/dist/runtime/components/attachment/index.d.ts +15 -0
- package/dist/runtime/components/attachment/index.js +15 -0
- package/dist/runtime/components/avatar/BaseAvatar.vue +41 -0
- package/dist/runtime/components/avatar/BaseAvatar.vue.d.ts +31 -0
- package/dist/runtime/components/avatar/IconAvatar.vue +28 -0
- package/dist/runtime/components/avatar/IconAvatar.vue.d.ts +18 -0
- package/dist/runtime/components/avatar/index.d.ts +27 -0
- package/dist/runtime/components/avatar/index.js +27 -0
- package/dist/runtime/components/badge/BaseBadge.vue +26 -0
- package/dist/runtime/components/badge/BaseBadge.vue.d.ts +17 -0
- package/dist/runtime/components/badge/IconBadge.vue +37 -0
- package/dist/runtime/components/badge/IconBadge.vue.d.ts +23 -0
- package/dist/runtime/components/badge/index.d.ts +45 -0
- package/dist/runtime/components/badge/index.js +45 -0
- package/dist/runtime/components/badge/location.vue +18 -0
- package/dist/runtime/components/badge/location.vue.d.ts +5 -0
- package/dist/runtime/components/button/BaseButton.vue +32 -0
- package/dist/runtime/components/button/BaseButton.vue.d.ts +16 -0
- package/dist/runtime/components/button/ButtonApplyVoucher.vue +32 -0
- package/dist/runtime/components/button/ButtonApplyVoucher.vue.d.ts +11 -0
- package/dist/runtime/components/button/IconButton.vue +44 -0
- package/dist/runtime/components/button/IconButton.vue.d.ts +27 -0
- package/dist/runtime/components/button/LinkButton.vue +40 -0
- package/dist/runtime/components/button/LinkButton.vue.d.ts +23 -0
- package/dist/runtime/components/button/box.vue +14 -0
- package/dist/runtime/components/button/box.vue.d.ts +6 -0
- package/dist/runtime/components/button/index.d.ts +28 -0
- package/dist/runtime/components/button/index.js +28 -0
- package/dist/runtime/components/card/BaseCard.vue +26 -0
- package/dist/runtime/components/card/BaseCard.vue.d.ts +18 -0
- package/dist/runtime/components/card/CardBalanceEstimation.vue +29 -0
- package/dist/runtime/components/card/CardBalanceEstimation.vue.d.ts +11 -0
- package/dist/runtime/components/card/CardBalanceSummary.vue +24 -0
- package/dist/runtime/components/card/CardBalanceSummary.vue.d.ts +8 -0
- package/dist/runtime/components/card/CardStatistic.vue +96 -0
- package/dist/runtime/components/card/CardStatistic.vue.d.ts +46 -0
- package/dist/runtime/components/card/CreditCard.vue +106 -0
- package/dist/runtime/components/card/CreditCard.vue.d.ts +16 -0
- package/dist/runtime/components/card/ExpandableCard.vue +51 -0
- package/dist/runtime/components/card/ExpandableCard.vue.d.ts +20 -0
- package/dist/runtime/components/card/NeedPinLocation.vue +27 -0
- package/dist/runtime/components/card/NeedPinLocation.vue.d.ts +8 -0
- package/dist/runtime/components/card/OriginEmpty.vue +13 -0
- package/dist/runtime/components/card/OriginEmpty.vue.d.ts +2 -0
- package/dist/runtime/components/card/OriginItem.vue +76 -0
- package/dist/runtime/components/card/OriginItem.vue.d.ts +25 -0
- package/dist/runtime/components/card/OriginItemDeleted.vue +40 -0
- package/dist/runtime/components/card/OriginItemDeleted.vue.d.ts +15 -0
- package/dist/runtime/components/card/index.vue +17 -0
- package/dist/runtime/components/card/index.vue.d.ts +16 -0
- package/dist/runtime/components/card/origin.vue +42 -0
- package/dist/runtime/components/card/origin.vue.d.ts +39 -0
- package/dist/runtime/components/chart/BarChart.vue +85 -0
- package/dist/runtime/components/chart/BarChart.vue.d.ts +14 -0
- package/dist/runtime/components/chart/ChartHorizontal.vue +123 -0
- package/dist/runtime/components/chart/ChartHorizontal.vue.d.ts +29 -0
- package/dist/runtime/components/chart/GaugeChart.vue +108 -0
- package/dist/runtime/components/chart/GaugeChart.vue.d.ts +28 -0
- package/dist/runtime/components/chart/PieChart.vue +35 -0
- package/dist/runtime/components/chart/PieChart.vue.d.ts +13 -0
- package/dist/runtime/components/chat/Reply.vue +157 -0
- package/dist/runtime/components/chat/Reply.vue.d.ts +60 -0
- package/dist/runtime/components/checkbox/Checkbox.vue +59 -0
- package/dist/runtime/components/checkbox/Checkbox.vue.d.ts +16 -0
- package/dist/runtime/components/checkbox/CheckboxBase.vue +46 -0
- package/dist/runtime/components/checkbox/CheckboxBase.vue.d.ts +15 -0
- package/dist/runtime/components/chip/ChipBase.vue +44 -0
- package/dist/runtime/components/chip/ChipBase.vue.d.ts +26 -0
- package/dist/runtime/components/chip/index.d.ts +4 -0
- package/dist/runtime/components/chip/index.js +4 -0
- package/dist/runtime/components/collapsible/CollapsibleBase.vue +34 -0
- package/dist/runtime/components/collapsible/CollapsibleBase.vue.d.ts +22 -0
- package/dist/runtime/components/combobox/Combobox.vue +171 -0
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +44 -0
- package/dist/runtime/components/combobox/ComboboxInput.vue +13 -0
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +2 -0
- package/dist/runtime/components/combobox/_index.d.ts +1 -0
- package/dist/runtime/components/combobox/_index.js +0 -0
- package/dist/runtime/components/container/ContainerWrapper.vue +11 -0
- package/dist/runtime/components/container/ContainerWrapper.vue.d.ts +16 -0
- package/dist/runtime/components/container/FloatActionWrapper.vue +29 -0
- package/dist/runtime/components/container/FloatActionWrapper.vue.d.ts +20 -0
- package/dist/runtime/components/context-menu/ContextMenuBase.vue +37 -0
- package/dist/runtime/components/context-menu/ContextMenuBase.vue.d.ts +21 -0
- package/dist/runtime/components/cropper/CropperImage.vue +82 -0
- package/dist/runtime/components/cropper/CropperImage.vue.d.ts +18 -0
- package/dist/runtime/components/datepicker/DatepickerBase.vue +55 -0
- package/dist/runtime/components/datepicker/DatepickerBase.vue.d.ts +26 -0
- package/dist/runtime/components/datepicker/DatepickerBody.vue +139 -0
- package/dist/runtime/components/datepicker/DatepickerBody.vue.d.ts +11 -0
- package/dist/runtime/components/dialog/DialogConfirmation.vue +56 -0
- package/dist/runtime/components/dialog/DialogConfirmation.vue.d.ts +44 -0
- package/dist/runtime/components/dialog/DialogConfirmationSingle.vue +108 -0
- package/dist/runtime/components/dialog/DialogConfirmationSingle.vue.d.ts +59 -0
- package/dist/runtime/components/dialog/DialogFloatAction.vue +51 -0
- package/dist/runtime/components/dialog/DialogFloatAction.vue.d.ts +39 -0
- package/dist/runtime/components/dialog/RootDialog.vue +56 -0
- package/dist/runtime/components/dialog/RootDialog.vue.d.ts +19 -0
- package/dist/runtime/components/dialog/aside.vue +80 -0
- package/dist/runtime/components/dialog/aside.vue.d.ts +26 -0
- package/dist/runtime/components/dialog/help.vue +37 -0
- package/dist/runtime/components/dialog/help.vue.d.ts +2 -0
- package/dist/runtime/components/dialog-reka/DialogContent.vue +48 -0
- package/dist/runtime/components/dialog-reka/DialogContent.vue.d.ts +26 -0
- package/dist/runtime/components/dialog-reka/DialogPreviewerImage.vue +177 -0
- package/dist/runtime/components/dialog-reka/DialogPreviewerImage.vue.d.ts +14 -0
- package/dist/runtime/components/dialog-reka/DialogPreviewerVideo.vue +44 -0
- package/dist/runtime/components/dialog-reka/DialogPreviewerVideo.vue.d.ts +13 -0
- package/dist/runtime/components/dialog-reka/DialogRoot.vue +42 -0
- package/dist/runtime/components/dialog-reka/DialogRoot.vue.d.ts +28 -0
- package/dist/runtime/components/divider/DividerBase.vue +35 -0
- package/dist/runtime/components/divider/DividerBase.vue.d.ts +12 -0
- package/dist/runtime/components/divider/DividerDash.vue +43 -0
- package/dist/runtime/components/divider/DividerDash.vue.d.ts +14 -0
- package/dist/runtime/components/dropdown/Dropdown.vue +96 -0
- package/dist/runtime/components/dropdown/Dropdown.vue.d.ts +52 -0
- package/dist/runtime/components/dropdown/DropdownItem.vue +52 -0
- package/dist/runtime/components/dropdown/DropdownItem.vue.d.ts +35 -0
- package/dist/runtime/components/file/AddFile.vue +16 -0
- package/dist/runtime/components/file/AddFile.vue.d.ts +7 -0
- package/dist/runtime/components/file/DropAreaFile.vue +141 -0
- package/dist/runtime/components/file/DropAreaFile.vue.d.ts +28 -0
- package/dist/runtime/components/file/ViewFile.vue +70 -0
- package/dist/runtime/components/file/ViewFile.vue.d.ts +12 -0
- package/dist/runtime/components/filter/FilterChip.vue +39 -0
- package/dist/runtime/components/filter/FilterChip.vue.d.ts +19 -0
- package/dist/runtime/components/filter/FilterStatus.vue +28 -0
- package/dist/runtime/components/filter/FilterStatus.vue.d.ts +16 -0
- package/dist/runtime/components/image/ImageLoader.vue +61 -0
- package/dist/runtime/components/image/ImageLoader.vue.d.ts +11 -0
- package/dist/runtime/components/input/ButtonFileInput.vue +77 -0
- package/dist/runtime/components/input/ButtonFileInput.vue.d.ts +27 -0
- package/dist/runtime/components/input/IconButtonFileInput.vue +80 -0
- package/dist/runtime/components/input/IconButtonFileInput.vue.d.ts +33 -0
- package/dist/runtime/components/input/InputCheckbox.vue +38 -0
- package/dist/runtime/components/input/InputCheckbox.vue.d.ts +16 -0
- package/dist/runtime/components/input/InputControl.vue +11 -0
- package/dist/runtime/components/input/InputControl.vue.d.ts +16 -0
- package/dist/runtime/components/input/InputField.vue +86 -0
- package/dist/runtime/components/input/InputField.vue.d.ts +28 -0
- package/dist/runtime/components/input/InputFieldPassword.vue +47 -0
- package/dist/runtime/components/input/InputFieldPassword.vue.d.ts +18 -0
- package/dist/runtime/components/input/InputFieldPhone.vue +71 -0
- package/dist/runtime/components/input/InputFieldPhone.vue.d.ts +34 -0
- package/dist/runtime/components/input/InputFieldWithOption.vue +69 -0
- package/dist/runtime/components/input/InputFieldWithOption.vue.d.ts +37 -0
- package/dist/runtime/components/input/InputFileDropable.vue +162 -0
- package/dist/runtime/components/input/InputFileDropable.vue.d.ts +33 -0
- package/dist/runtime/components/input/InputGroup.vue +18 -0
- package/dist/runtime/components/input/InputGroup.vue.d.ts +18 -0
- package/dist/runtime/components/input/InputImageDropable.vue +170 -0
- package/dist/runtime/components/input/InputImageDropable.vue.d.ts +24 -0
- package/dist/runtime/components/input/InputNumber.vue +53 -0
- package/dist/runtime/components/input/InputNumber.vue.d.ts +13 -0
- package/dist/runtime/components/input/InputOtp.vue +66 -0
- package/dist/runtime/components/input/InputOtp.vue.d.ts +20 -0
- package/dist/runtime/components/input/InputRadio.vue +49 -0
- package/dist/runtime/components/input/InputRadio.vue.d.ts +22 -0
- package/dist/runtime/components/input/InputText.vue +94 -0
- package/dist/runtime/components/input/InputText.vue.d.ts +50 -0
- package/dist/runtime/components/input/TextArea.vue +75 -0
- package/dist/runtime/components/input/TextArea.vue.d.ts +26 -0
- package/dist/runtime/components/input/index.d.ts +36 -0
- package/dist/runtime/components/input/index.js +60 -0
- package/dist/runtime/components/label/BaseLabel.vue +18 -0
- package/dist/runtime/components/label/BaseLabel.vue.d.ts +9 -0
- package/dist/runtime/components/label/ErrorLabel.vue +13 -0
- package/dist/runtime/components/label/ErrorLabel.vue.d.ts +10 -0
- package/dist/runtime/components/label/Form.vue +16 -0
- package/dist/runtime/components/label/Form.vue.d.ts +7 -0
- package/dist/runtime/components/label/HintLabel.vue +23 -0
- package/dist/runtime/components/label/HintLabel.vue.d.ts +10 -0
- package/dist/runtime/components/label/LabelSection.vue +39 -0
- package/dist/runtime/components/label/LabelSection.vue.d.ts +20 -0
- package/dist/runtime/components/listbox/Listbox.vue +17 -0
- package/dist/runtime/components/listbox/Listbox.vue.d.ts +17 -0
- package/dist/runtime/components/listbox/ListboxItem.vue +34 -0
- package/dist/runtime/components/listbox/ListboxItem.vue.d.ts +20 -0
- package/dist/runtime/components/loading/BounceLoading.vue +19 -0
- package/dist/runtime/components/loading/BounceLoading.vue.d.ts +6 -0
- package/dist/runtime/components/loading/LoadingCircular.vue +46 -0
- package/dist/runtime/components/loading/LoadingCircular.vue.d.ts +10 -0
- package/dist/runtime/components/loading/LoadingIndicator.d.ts +60 -0
- package/dist/runtime/components/loading/LoadingIndicator.js +66 -0
- package/dist/runtime/components/loading/SpinnerLoading.vue +11 -0
- package/dist/runtime/components/loading/SpinnerLoading.vue.d.ts +6 -0
- package/dist/runtime/components/player/Audio.vue +104 -0
- package/dist/runtime/components/player/Audio.vue.d.ts +15 -0
- package/dist/runtime/components/player/Scrubber.vue +48 -0
- package/dist/runtime/components/player/Scrubber.vue.d.ts +44 -0
- package/dist/runtime/components/player/Video.vue +163 -0
- package/dist/runtime/components/player/Video.vue.d.ts +11 -0
- package/dist/runtime/components/popover/Popover.vue +30 -0
- package/dist/runtime/components/popover/Popover.vue.d.ts +18 -0
- package/dist/runtime/components/popover/WhatsAppChecker.vue +61 -0
- package/dist/runtime/components/popover/WhatsAppChecker.vue.d.ts +13 -0
- package/dist/runtime/components/radio/Courier.vue +195 -0
- package/dist/runtime/components/radio/Courier.vue.d.ts +54 -0
- package/dist/runtime/components/radio/Decoration.vue +43 -0
- package/dist/runtime/components/radio/Decoration.vue.d.ts +5 -0
- package/dist/runtime/components/radio/RadioCourierBadge.vue +68 -0
- package/dist/runtime/components/radio/RadioCourierBadge.vue.d.ts +11 -0
- package/dist/runtime/components/radio/ThemeDecoration.vue +40 -0
- package/dist/runtime/components/radio/ThemeDecoration.vue.d.ts +2 -0
- package/dist/runtime/components/radio-group/ButtonRadio.vue +106 -0
- package/dist/runtime/components/radio-group/ButtonRadio.vue.d.ts +47 -0
- package/dist/runtime/components/range-picker/RangePicker.vue +77 -0
- package/dist/runtime/components/range-picker/RangePicker.vue.d.ts +20 -0
- package/dist/runtime/components/range-picker/RangePickerBody.vue +270 -0
- package/dist/runtime/components/range-picker/RangePickerBody.vue.d.ts +24 -0
- package/dist/runtime/components/range-picker/index.d.ts +5 -0
- package/dist/runtime/components/scroll-area/ScrollAreaBase.vue +57 -0
- package/dist/runtime/components/scroll-area/ScrollAreaBase.vue.d.ts +20 -0
- package/dist/runtime/components/select/SelectBase.vue +137 -0
- package/dist/runtime/components/select/SelectBase.vue.d.ts +50 -0
- package/dist/runtime/components/select/SelectMultiple.vue +119 -0
- package/dist/runtime/components/select/SelectMultiple.vue.d.ts +45 -0
- package/dist/runtime/components/select/SelectOption.vue +96 -0
- package/dist/runtime/components/select/SelectOption.vue.d.ts +21 -0
- package/dist/runtime/components/select/SelectWithInput.vue +46 -0
- package/dist/runtime/components/select/SelectWithInput.vue.d.ts +21 -0
- package/dist/runtime/components/stepper/Stepper.vue +99 -0
- package/dist/runtime/components/stepper/Stepper.vue.d.ts +23 -0
- package/dist/runtime/components/switch/Switch.vue +42 -0
- package/dist/runtime/components/switch/Switch.vue.d.ts +28 -0
- package/dist/runtime/components/table/TableWrapper.vue +61 -0
- package/dist/runtime/components/table/TableWrapper.vue.d.ts +15 -0
- package/dist/runtime/components/tabs/TabBase.vue +77 -0
- package/dist/runtime/components/tabs/TabBase.vue.d.ts +32 -0
- package/dist/runtime/components/tags-input/TagsInput.vue +131 -0
- package/dist/runtime/components/tags-input/TagsInput.vue.d.ts +48 -0
- package/dist/runtime/components/tags-input/TagsInputWithOption.vue +95 -0
- package/dist/runtime/components/tags-input/TagsInputWithOption.vue.d.ts +26 -0
- package/dist/runtime/components/time-picker/TimePicker.vue +84 -0
- package/dist/runtime/components/time-picker/TimePicker.vue.d.ts +17 -0
- package/dist/runtime/components/time-picker/TimePickerBody.vue +178 -0
- package/dist/runtime/components/time-picker/TimePickerBody.vue.d.ts +21 -0
- package/dist/runtime/components/toast/ToastCard.vue +36 -0
- package/dist/runtime/components/toast/ToastCard.vue.d.ts +16 -0
- package/dist/runtime/components/toast/ToastContainer.vue +15 -0
- package/dist/runtime/components/toast/ToastContainer.vue.d.ts +2 -0
- package/dist/runtime/components/toast/ToastNetwork.vue +109 -0
- package/dist/runtime/components/toast/ToastNetwork.vue.d.ts +2 -0
- package/dist/runtime/components/toast/index.d.ts +16 -0
- package/dist/runtime/components/toast/index.js +16 -0
- package/dist/runtime/components/toggle-group/MultiSelect.vue +45 -0
- package/dist/runtime/components/toggle-group/MultiSelect.vue.d.ts +38 -0
- package/dist/runtime/components/toggle-group/ToggleGroup.vue +59 -0
- package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +41 -0
- package/dist/runtime/components/tooltip/MiniTooltip.vue +58 -0
- package/dist/runtime/components/tooltip/MiniTooltip.vue.d.ts +21 -0
- package/dist/runtime/components/tooltip/Tooltip.vue +50 -0
- package/dist/runtime/components/tooltip/Tooltip.vue.d.ts +21 -0
- package/dist/runtime/plugin.d.ts +2 -0
- package/dist/runtime/plugin.js +4 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/utils/cn.d.ts +5 -0
- package/dist/runtime/utils/cn.js +5 -0
- package/dist/runtime/utils/formatNumber.d.ts +2 -0
- package/dist/runtime/utils/formatNumber.js +12 -0
- package/dist/types.d.mts +3 -0
- package/package.json +63 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const emit = defineEmits(["click"]);
|
|
3
|
+
defineProps({
|
|
4
|
+
selected: { type: Boolean, required: false },
|
|
5
|
+
title: { type: String, required: true },
|
|
6
|
+
description: { type: String, required: false }
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
:class="[
|
|
13
|
+
'box-between w-full mb-3 px-3.5 gap-3 transition-all py-2 ring-1 rounded-lg relative',
|
|
14
|
+
{
|
|
15
|
+
'ring-flux-success bg-successContainer text-flux-success': selected,
|
|
16
|
+
'bg-background shadow ring-outline-variant': !selected
|
|
17
|
+
}
|
|
18
|
+
]"
|
|
19
|
+
>
|
|
20
|
+
<UiIconVoucher />
|
|
21
|
+
<div class="grow">
|
|
22
|
+
<h4 class="font-semibold" v-text="title" />
|
|
23
|
+
<p v-if="description" v-text="description"></p>
|
|
24
|
+
</div>
|
|
25
|
+
<Icon name="material-symbols:chevron-right" size="24px" />
|
|
26
|
+
<button
|
|
27
|
+
type="button"
|
|
28
|
+
class="absolute inset-0"
|
|
29
|
+
@click="emit('click')"
|
|
30
|
+
></button>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
selected?: boolean;
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
click: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClick?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { iconSizeConfig, sizeConfig, variantConfig } from ".";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
class: { type: null, required: false, default: void 0 },
|
|
5
|
+
variant: { type: null, required: false, default: "primary" },
|
|
6
|
+
size: { type: null, required: false, default: "default" },
|
|
7
|
+
label: { type: String, required: false, default: "" },
|
|
8
|
+
iconName: { type: String, required: false, default: "mdi:circle" },
|
|
9
|
+
iconPosition: { type: String, required: false, default: "left" },
|
|
10
|
+
iconSize: { type: null, required: false, default: "default" },
|
|
11
|
+
iconClass: { type: null, required: false, default: void 0 },
|
|
12
|
+
disabled: { type: Boolean, required: false },
|
|
13
|
+
loading: { type: Boolean, required: false },
|
|
14
|
+
labelClass: { type: null, required: false, default: void 0 }
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<button
|
|
20
|
+
:class="
|
|
21
|
+
cn(
|
|
22
|
+
'rounded-full flex justify-center items-center gap-2 text-sm font-semibold disabled:opacity-40 disabled:cursor-not-allowed hover:saturate-150',
|
|
23
|
+
variantConfig[variant],
|
|
24
|
+
sizeConfig[size],
|
|
25
|
+
{
|
|
26
|
+
'flex-row-reverse': iconPosition === 'right'
|
|
27
|
+
},
|
|
28
|
+
props.class
|
|
29
|
+
)
|
|
30
|
+
"
|
|
31
|
+
:disabled="disabled || loading"
|
|
32
|
+
>
|
|
33
|
+
<Icon
|
|
34
|
+
:name="loading ? 'svg-spinners:ring-resize' : iconName"
|
|
35
|
+
:size="iconSizeConfig[iconSize]"
|
|
36
|
+
:class="cn(props.iconClass)"
|
|
37
|
+
/>
|
|
38
|
+
<span
|
|
39
|
+
v-if="label && label != ''"
|
|
40
|
+
:class="cn(props.labelClass)"
|
|
41
|
+
v-text="label"
|
|
42
|
+
></span>
|
|
43
|
+
</button>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import { iconSizeConfig, sizeConfig, variantConfig } from '.';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
variant?: keyof typeof variantConfig;
|
|
6
|
+
size?: keyof typeof sizeConfig;
|
|
7
|
+
label?: string;
|
|
8
|
+
iconName?: string;
|
|
9
|
+
iconPosition?: 'left' | 'right';
|
|
10
|
+
iconSize?: keyof typeof iconSizeConfig;
|
|
11
|
+
iconClass?: HTMLAttributes['class'];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
labelClass?: HTMLAttributes['class'];
|
|
15
|
+
};
|
|
16
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
label: string;
|
|
18
|
+
class: HTMLAttributes["class"];
|
|
19
|
+
size: keyof typeof sizeConfig;
|
|
20
|
+
iconName: string;
|
|
21
|
+
variant: keyof typeof variantConfig;
|
|
22
|
+
iconSize: keyof typeof iconSizeConfig;
|
|
23
|
+
iconPosition: "left" | "right";
|
|
24
|
+
iconClass: HTMLAttributes["class"];
|
|
25
|
+
labelClass: HTMLAttributes["class"];
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { iconSizeConfig, sizeConfig, variantConfig } from ".";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
class: { type: null, required: false, default: void 0 },
|
|
5
|
+
to: { type: null, required: true },
|
|
6
|
+
variant: { type: null, required: false, default: "primary" },
|
|
7
|
+
size: { type: null, required: false, default: "default" },
|
|
8
|
+
label: { type: String, required: false, default: "" },
|
|
9
|
+
icon: { type: String, required: false, default: void 0 },
|
|
10
|
+
target: { type: null, required: false, default: "_self" },
|
|
11
|
+
disabled: { type: Boolean, required: false },
|
|
12
|
+
loading: { type: Boolean, required: false }
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<NuxtLink
|
|
18
|
+
:to="to"
|
|
19
|
+
:class="
|
|
20
|
+
cn(
|
|
21
|
+
'rounded-full flex justify-center items-center gap-2 text-sm font-semibold disabled:opacity-40 disabled:cursor-not-allowed hover:saturate-150',
|
|
22
|
+
variantConfig[variant],
|
|
23
|
+
sizeConfig[size],
|
|
24
|
+
{
|
|
25
|
+
'cursor-not-allowed': loading || disabled
|
|
26
|
+
},
|
|
27
|
+
props.class
|
|
28
|
+
)
|
|
29
|
+
"
|
|
30
|
+
:target="target"
|
|
31
|
+
>
|
|
32
|
+
<Icon
|
|
33
|
+
v-if="loading"
|
|
34
|
+
name="svg-spinners:ring-resize"
|
|
35
|
+
:size="iconSizeConfig[size]"
|
|
36
|
+
/>
|
|
37
|
+
<Icon v-if="icon && !loading" :name="icon" :size="iconSizeConfig[size]" />
|
|
38
|
+
{{ label }}
|
|
39
|
+
</NuxtLink>
|
|
40
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, HTMLAttributes } from 'vue';
|
|
2
|
+
import { sizeConfig, variantConfig } from '.';
|
|
3
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
to: RouteLocationRaw;
|
|
7
|
+
variant?: keyof typeof variantConfig;
|
|
8
|
+
size?: keyof typeof sizeConfig;
|
|
9
|
+
label?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
target?: AnchorHTMLAttributes['target'];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
label: string;
|
|
17
|
+
class: HTMLAttributes["class"];
|
|
18
|
+
size: keyof typeof sizeConfig;
|
|
19
|
+
variant: keyof typeof variantConfig;
|
|
20
|
+
target: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button class="flex items-center px-3 py-2.5 rounded-lg text-flux-primary font-medium text-sm hover:ring-2 hover:ring-flux-primary transition-all gap-2 w-full bg-secondaryContainer">
|
|
3
|
+
<Icon v-if="icon" :name="icon" size="24px"/>
|
|
4
|
+
<span v-text="label" class="grow block text-left"></span>
|
|
5
|
+
<Icon name="material-symbols:chevron-right" size="24px"/>
|
|
6
|
+
</button>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup>
|
|
10
|
+
defineProps({
|
|
11
|
+
icon: { type: String, required: false },
|
|
12
|
+
label: { type: String, required: true }
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const variantConfig: {
|
|
2
|
+
primary: string;
|
|
3
|
+
primaryContainer: string;
|
|
4
|
+
primaryOutline: string;
|
|
5
|
+
primaryOutlineContainer: string;
|
|
6
|
+
info: string;
|
|
7
|
+
infoOutline: string;
|
|
8
|
+
success: string;
|
|
9
|
+
successOutline: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
warningOutline: string;
|
|
12
|
+
error: string;
|
|
13
|
+
errorOutline: string;
|
|
14
|
+
errorContainer: string;
|
|
15
|
+
outline: string;
|
|
16
|
+
container: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const sizeConfig: {
|
|
19
|
+
default: string;
|
|
20
|
+
xs: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const iconSizeConfig: {
|
|
24
|
+
default: string;
|
|
25
|
+
xs: string;
|
|
26
|
+
sm: string;
|
|
27
|
+
lg: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const variantConfig = {
|
|
2
|
+
primary: "bg-flux-primary text-on-primary border border-flux-primary",
|
|
3
|
+
primaryContainer: "bg-primary-container text-on-primary-container border border-primary-container",
|
|
4
|
+
primaryOutline: "text-flux-primary border border-flux-primary",
|
|
5
|
+
primaryOutlineContainer: "text-secondary-container border border-primary-container",
|
|
6
|
+
info: "bg-flux-info text-on-info border border-flux-info",
|
|
7
|
+
infoOutline: "text-flux-info border border-flux-info",
|
|
8
|
+
success: "bg-flux-success text-on-success border border-flux-success",
|
|
9
|
+
successOutline: "text-flux-success border border-flux-success",
|
|
10
|
+
warning: "bg-flux-warning text-on-warning border border-flux-warning",
|
|
11
|
+
warningOutline: "text-flux-warning border border-flux-warning",
|
|
12
|
+
error: "bg-flux-error text-on-error border border-flux-error",
|
|
13
|
+
errorOutline: "text-flux-error border border-flux-error",
|
|
14
|
+
errorContainer: "bg-error-container text-flux-error border-error-container",
|
|
15
|
+
outline: "text-on-surface border border-outline-variant hover:border-flux-outline",
|
|
16
|
+
container: "bg-surface-container text-onSurface"
|
|
17
|
+
};
|
|
18
|
+
export const sizeConfig = {
|
|
19
|
+
default: "py-2.5 px-4",
|
|
20
|
+
xs: "py-1 px-2",
|
|
21
|
+
sm: "py-2 px-4"
|
|
22
|
+
};
|
|
23
|
+
export const iconSizeConfig = {
|
|
24
|
+
default: "20px",
|
|
25
|
+
xs: "12px",
|
|
26
|
+
sm: "16px",
|
|
27
|
+
lg: "24px"
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
class: { type: null, required: false }
|
|
4
|
+
});
|
|
5
|
+
const SELF_CONTEXT = Symbol("BaseCard");
|
|
6
|
+
const parentContext = inject(SELF_CONTEXT, null);
|
|
7
|
+
const isNested = !!parentContext;
|
|
8
|
+
provide(SELF_CONTEXT, true);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div
|
|
13
|
+
:class="
|
|
14
|
+
cn(
|
|
15
|
+
'p-5 rounded-xl bg-background dark:bg-surface-container border border-outlineVariant',
|
|
16
|
+
{
|
|
17
|
+
'shadow border-0': !isNested && !props.class?.toString().includes('border')
|
|
18
|
+
},
|
|
19
|
+
props.class
|
|
20
|
+
)
|
|
21
|
+
"
|
|
22
|
+
>
|
|
23
|
+
<slot name="header" />
|
|
24
|
+
<slot />
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
header?: (props: typeof __VLS_1) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_3) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<UiCardStatistic
|
|
3
|
+
:label="props.title"
|
|
4
|
+
:count="props.amount ?? 0"
|
|
5
|
+
currency
|
|
6
|
+
class="lg:px-3.5 lg:py-2.5 relative"
|
|
7
|
+
>
|
|
8
|
+
<button
|
|
9
|
+
class="absolute inset-0 focus:outline-none"
|
|
10
|
+
@click="emit('click')"
|
|
11
|
+
/>
|
|
12
|
+
<template #trailing>
|
|
13
|
+
<Icon
|
|
14
|
+
name="material-symbols:info-outline"
|
|
15
|
+
size="24px"
|
|
16
|
+
class="text-flux-primary"
|
|
17
|
+
/>
|
|
18
|
+
</template>
|
|
19
|
+
</UiCardStatistic>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup>
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
title: { type: String, required: true },
|
|
25
|
+
amount: { type: Number, required: false },
|
|
26
|
+
loading: { type: Boolean, required: false }
|
|
27
|
+
});
|
|
28
|
+
const emit = defineEmits(["click"]);
|
|
29
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
amount?: number;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
click: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onClick?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<UiCardStatistic
|
|
3
|
+
:label="title"
|
|
4
|
+
:icon="icon"
|
|
5
|
+
:count="amount"
|
|
6
|
+
icon-class="bg-background dark:bg-secondary-container"
|
|
7
|
+
class="bg-surface-container-low"
|
|
8
|
+
currency
|
|
9
|
+
:hoverable="false"
|
|
10
|
+
>
|
|
11
|
+
<template v-if="description" #description>
|
|
12
|
+
<div class="text-xs text-outline" v-text="description" />
|
|
13
|
+
</template>
|
|
14
|
+
</UiCardStatistic>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup>
|
|
18
|
+
defineProps({
|
|
19
|
+
title: { type: String, required: true },
|
|
20
|
+
amount: { type: Number, required: false },
|
|
21
|
+
description: { type: String, required: false },
|
|
22
|
+
icon: { type: String, required: false }
|
|
23
|
+
});
|
|
24
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
amount?: number;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="
|
|
4
|
+
cn(
|
|
5
|
+
'group p-3.5 rounded-xl border border-outlineVariant gap-3 items-start flex relative',
|
|
6
|
+
{
|
|
7
|
+
'cursor-pointer hover:bg-secondary-container hover:border-flux-primary hover:ring-1 hover:ring-inset hover:ring-flux-primary': hoverable,
|
|
8
|
+
'bg-secondary-container border-flux-primary ring-1 ring-inset ring-flux-primary': active
|
|
9
|
+
},
|
|
10
|
+
props.class
|
|
11
|
+
)
|
|
12
|
+
"
|
|
13
|
+
>
|
|
14
|
+
<div
|
|
15
|
+
v-if="icon"
|
|
16
|
+
:class="
|
|
17
|
+
cn(
|
|
18
|
+
'p-1.5 aspect-square transition-all bg-secondary-container rounded-full text-flux-primary',
|
|
19
|
+
{
|
|
20
|
+
'group-hover:bg-flux-primary group-hover:text-on-primary': hoverable,
|
|
21
|
+
'bg-flux-primary text-on-primary': active
|
|
22
|
+
},
|
|
23
|
+
props.iconClass
|
|
24
|
+
)
|
|
25
|
+
"
|
|
26
|
+
>
|
|
27
|
+
<Icon :name="icon" size="24px" />
|
|
28
|
+
</div>
|
|
29
|
+
<div
|
|
30
|
+
class="space-y-1 text-sm grow"
|
|
31
|
+
:class="{
|
|
32
|
+
'group-hover:text-onPrimaryContainer': hoverable,
|
|
33
|
+
'text-on-primary-container': active
|
|
34
|
+
}"
|
|
35
|
+
>
|
|
36
|
+
<p
|
|
37
|
+
:class="
|
|
38
|
+
cn('font-normal text-sm text-onSurfaceVariant', props.labelClass)
|
|
39
|
+
"
|
|
40
|
+
>
|
|
41
|
+
{{ label }}
|
|
42
|
+
</p>
|
|
43
|
+
|
|
44
|
+
<slot name="count">
|
|
45
|
+
<Icon
|
|
46
|
+
v-if="props.loading || !count && count !== 0"
|
|
47
|
+
name="svg-spinners:3-dots-fade"
|
|
48
|
+
size="24px"
|
|
49
|
+
class="inline-flex"
|
|
50
|
+
/>
|
|
51
|
+
<span
|
|
52
|
+
v-else
|
|
53
|
+
:class="cn('text-lg font-bold', props.contentClass)"
|
|
54
|
+
v-text="count >= 0 ? formatNumber(count, currency) : ''"
|
|
55
|
+
/>
|
|
56
|
+
</slot>
|
|
57
|
+
<slot name="description" />
|
|
58
|
+
</div>
|
|
59
|
+
<slot name="trailing"> </slot>
|
|
60
|
+
<span
|
|
61
|
+
v-if="percentage && parentTotal > 0"
|
|
62
|
+
:class="
|
|
63
|
+
cn(
|
|
64
|
+
'bg-surfaceContainerLow px-2 py-1 font-semibold text-xs rounded-full text-flux-primary',
|
|
65
|
+
{
|
|
66
|
+
'group-hover:bg-flux-primary group-hover:text-onPrimary': hoverable,
|
|
67
|
+
'bg-flux-primary text-on-primary': active
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
"
|
|
71
|
+
v-text="calculatePercentage + `%`"
|
|
72
|
+
/>
|
|
73
|
+
<slot />
|
|
74
|
+
</div>
|
|
75
|
+
</template>
|
|
76
|
+
|
|
77
|
+
<script setup>
|
|
78
|
+
const props = defineProps({
|
|
79
|
+
class: { type: null, required: false, default: void 0 },
|
|
80
|
+
labelClass: { type: null, required: false, default: void 0 },
|
|
81
|
+
iconClass: { type: null, required: false, default: void 0 },
|
|
82
|
+
contentClass: { type: null, required: false, default: void 0 },
|
|
83
|
+
percentage: { type: Boolean, required: false, default: false },
|
|
84
|
+
parentTotal: { type: Number, required: false, default: 0 },
|
|
85
|
+
label: { type: String, required: true },
|
|
86
|
+
count: { type: Number, required: false, default: void 0 },
|
|
87
|
+
icon: { type: String, required: false, default: void 0 },
|
|
88
|
+
loading: { type: Boolean, required: false },
|
|
89
|
+
currency: { type: Boolean, required: false, default: false },
|
|
90
|
+
hoverable: { type: Boolean, required: false, default: true },
|
|
91
|
+
active: { type: Boolean, required: false, default: false }
|
|
92
|
+
});
|
|
93
|
+
const calculatePercentage = computed(
|
|
94
|
+
() => props.parentTotal > 0 && props.count && props.count > 0 ? Math.round(props.count / props.parentTotal * 1e4) / 100 : 0
|
|
95
|
+
);
|
|
96
|
+
</script>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
labelClass?: HTMLAttributes['class'];
|
|
5
|
+
iconClass?: HTMLAttributes['class'];
|
|
6
|
+
contentClass?: HTMLAttributes['class'];
|
|
7
|
+
percentage?: boolean;
|
|
8
|
+
parentTotal?: number;
|
|
9
|
+
label: string;
|
|
10
|
+
count?: number;
|
|
11
|
+
icon?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
currency?: boolean;
|
|
14
|
+
hoverable?: boolean;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_5: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
count?: (props: typeof __VLS_5) => any;
|
|
20
|
+
} & {
|
|
21
|
+
description?: (props: typeof __VLS_11) => any;
|
|
22
|
+
} & {
|
|
23
|
+
trailing?: (props: typeof __VLS_13) => any;
|
|
24
|
+
} & {
|
|
25
|
+
default?: (props: typeof __VLS_15) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
28
|
+
class: HTMLAttributes["class"];
|
|
29
|
+
percentage: boolean;
|
|
30
|
+
icon: string;
|
|
31
|
+
iconClass: HTMLAttributes["class"];
|
|
32
|
+
labelClass: HTMLAttributes["class"];
|
|
33
|
+
contentClass: HTMLAttributes["class"];
|
|
34
|
+
count: number;
|
|
35
|
+
currency: boolean;
|
|
36
|
+
hoverable: boolean;
|
|
37
|
+
parentTotal: number;
|
|
38
|
+
active: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
class: { type: null, required: false }
|
|
4
|
+
});
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div
|
|
9
|
+
:class="
|
|
10
|
+
cn(
|
|
11
|
+
'border-2 border-background dark:border-flux-outline shadow-lg text-on-secondary-container rounded-xl p-4 relative overflow-hidden bg-secondary-container',
|
|
12
|
+
props.class
|
|
13
|
+
)
|
|
14
|
+
"
|
|
15
|
+
>
|
|
16
|
+
<svg
|
|
17
|
+
class="absolute bottom-0 right-0 opacity-70"
|
|
18
|
+
width="189"
|
|
19
|
+
height="190"
|
|
20
|
+
viewBox="0 0 189 190"
|
|
21
|
+
fill="none"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
>
|
|
24
|
+
<g filter="url(#filter0_f_1130_118794)">
|
|
25
|
+
<path
|
|
26
|
+
d="M185.653 258.158C150.063 258.158 100.307 212.213 100.307 165.448C100.307 118.682 129.158 80.7717 164.748 80.7717C200.338 80.7717 229.189 118.682 229.189 165.448C229.189 212.213 221.243 258.158 185.653 258.158Z"
|
|
27
|
+
fill="#2C0051"
|
|
28
|
+
/>
|
|
29
|
+
<path
|
|
30
|
+
d="M122.887 231.827C93.5781 231.827 69.819 193.586 69.819 146.415C69.819 99.2427 149.452 69.6851 178.761 69.6851C208.069 69.6851 155.225 99.2427 155.225 146.415C155.225 193.586 152.195 231.827 122.887 231.827Z"
|
|
31
|
+
fill="#FFDBCA"
|
|
32
|
+
fill-opacity="0.8"
|
|
33
|
+
/>
|
|
34
|
+
</g>
|
|
35
|
+
<defs>
|
|
36
|
+
<filter
|
|
37
|
+
id="filter0_f_1130_118794"
|
|
38
|
+
x="0.527504"
|
|
39
|
+
y="0.393715"
|
|
40
|
+
width="297.953"
|
|
41
|
+
height="327.055"
|
|
42
|
+
filterUnits="userSpaceOnUse"
|
|
43
|
+
color-interpolation-filters="sRGB"
|
|
44
|
+
>
|
|
45
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
46
|
+
<feBlend
|
|
47
|
+
mode="normal"
|
|
48
|
+
in="SourceGraphic"
|
|
49
|
+
in2="BackgroundImageFix"
|
|
50
|
+
result="shape"
|
|
51
|
+
/>
|
|
52
|
+
<feGaussianBlur
|
|
53
|
+
stdDeviation="34.6457"
|
|
54
|
+
result="effect1_foregroundBlur_1130_118794"
|
|
55
|
+
/>
|
|
56
|
+
</filter>
|
|
57
|
+
</defs>
|
|
58
|
+
</svg>
|
|
59
|
+
<svg
|
|
60
|
+
class="absolute top-0 left-0"
|
|
61
|
+
width="334"
|
|
62
|
+
height="183"
|
|
63
|
+
viewBox="0 0 334 183"
|
|
64
|
+
fill="none"
|
|
65
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
66
|
+
>
|
|
67
|
+
<g filter="url(#filter0_f_1130_118791)">
|
|
68
|
+
<path
|
|
69
|
+
d="M264.5 29.9999C264.5 65.5896 139.063 83.1496 92.298 83.1496C45.5328 83.1496 -18.5 36.5898 -18.5 1C-18.5 -34.5898 45.5328 -43.5 92.298 -43.5C139.063 -43.5 264.5 -5.58987 264.5 29.9999Z"
|
|
70
|
+
fill="#7D3EB9"
|
|
71
|
+
fill-opacity="0.8"
|
|
72
|
+
/>
|
|
73
|
+
<path
|
|
74
|
+
d="M158.677 60.5702C158.677 89.8786 120.437 113.638 73.2652 113.638C26.0933 113.638 -3.46436 34.0047 -3.46436 4.69627C-3.46436 -24.6121 26.0933 28.2322 73.2652 28.2322C120.437 28.2322 158.677 31.2619 158.677 60.5702Z"
|
|
75
|
+
fill="#FFDBCA"
|
|
76
|
+
fill-opacity="0.8"
|
|
77
|
+
/>
|
|
78
|
+
</g>
|
|
79
|
+
<defs>
|
|
80
|
+
<filter
|
|
81
|
+
id="filter0_f_1130_118791"
|
|
82
|
+
x="-87.7913"
|
|
83
|
+
y="-115.024"
|
|
84
|
+
width="421.583"
|
|
85
|
+
height="297.953"
|
|
86
|
+
filterUnits="userSpaceOnUse"
|
|
87
|
+
color-interpolation-filters="sRGB"
|
|
88
|
+
>
|
|
89
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
90
|
+
<feBlend
|
|
91
|
+
mode="normal"
|
|
92
|
+
in="SourceGraphic"
|
|
93
|
+
in2="BackgroundImageFix"
|
|
94
|
+
result="shape"
|
|
95
|
+
/>
|
|
96
|
+
<feGaussianBlur
|
|
97
|
+
stdDeviation="34.6457"
|
|
98
|
+
result="effect1_foregroundBlur_1130_118791"
|
|
99
|
+
/>
|
|
100
|
+
</filter>
|
|
101
|
+
</defs>
|
|
102
|
+
</svg>
|
|
103
|
+
|
|
104
|
+
<slot />
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|