@caipira/tamandua 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/.editorconfig +12 -0
- package/.prettierrc +5 -0
- package/.storybook/main.ts +25 -0
- package/.storybook/preview-body.html +3 -0
- package/.storybook/preview.ts +24 -0
- package/App.vue +1 -0
- package/Dockerfile +21 -0
- package/LICENSE +674 -0
- package/README.md +11 -0
- package/assets/icons/account.svg +1 -0
- package/assets/icons/alert-octagon-outline.svg +1 -0
- package/assets/icons/alert-octagon.svg +1 -0
- package/assets/icons/archive-outline.svg +1 -0
- package/assets/icons/archive.svg +1 -0
- package/assets/icons/arrow-left.svg +1 -0
- package/assets/icons/arrow-right.svg +1 -0
- package/assets/icons/bank-outline.svg +1 -0
- package/assets/icons/bank.svg +1 -0
- package/assets/icons/camera.svg +1 -0
- package/assets/icons/cards-outline.svg +1 -0
- package/assets/icons/cards-variant.svg +1 -0
- package/assets/icons/cart-outline.svg +1 -0
- package/assets/icons/chart-box-outline.svg +1 -0
- package/assets/icons/chart-box.svg +1 -0
- package/assets/icons/check-circle-outline.svg +1 -0
- package/assets/icons/check-circle.svg +1 -0
- package/assets/icons/check.svg +1 -0
- package/assets/icons/checkbox-dark.svg +1 -0
- package/assets/icons/checkbox-indeterminate-dark.svg +1 -0
- package/assets/icons/checkbox-indeterminate.svg +1 -0
- package/assets/icons/checkbox.svg +1 -0
- package/assets/icons/chevron-down.svg +1 -0
- package/assets/icons/chevron-left.svg +1 -0
- package/assets/icons/chevron-right.svg +1 -0
- package/assets/icons/chevron-up.svg +1 -0
- package/assets/icons/circle.svg +1 -0
- package/assets/icons/clock.svg +1 -0
- package/assets/icons/close-circle-outline.svg +1 -0
- package/assets/icons/close-circle.svg +1 -0
- package/assets/icons/close.svg +1 -0
- package/assets/icons/cog.svg +1 -0
- package/assets/icons/color-fill.svg +1 -0
- package/assets/icons/copy.svg +1 -0
- package/assets/icons/credit-card-plus.svg +1 -0
- package/assets/icons/credit-card.svg +1 -0
- package/assets/icons/currency.svg +1 -0
- package/assets/icons/database.svg +1 -0
- package/assets/icons/dots-grid.svg +1 -0
- package/assets/icons/dots-vertical.svg +1 -0
- package/assets/icons/email-open-outline.svg +1 -0
- package/assets/icons/email-outline.svg +1 -0
- package/assets/icons/eye-off.svg +1 -0
- package/assets/icons/eye.svg +1 -0
- package/assets/icons/file-document-plus-outline.svg +1 -0
- package/assets/icons/filmstrip.svg +1 -0
- package/assets/icons/filter.svg +1 -0
- package/assets/icons/fullscreen-exit.svg +1 -0
- package/assets/icons/fullscreen.svg +1 -0
- package/assets/icons/group.svg +1 -0
- package/assets/icons/image-album-outline.svg +1 -0
- package/assets/icons/image-album.svg +1 -0
- package/assets/icons/image-outline.svg +1 -0
- package/assets/icons/image.svg +1 -0
- package/assets/icons/info-outline.svg +1 -0
- package/assets/icons/key-chain.svg +1 -0
- package/assets/icons/key-variant.svg +1 -0
- package/assets/icons/key.svg +1 -0
- package/assets/icons/listbox-outline.svg +1 -0
- package/assets/icons/loading.svg +1 -0
- package/assets/icons/lock-outline.svg +1 -0
- package/assets/icons/lock.svg +1 -0
- package/assets/icons/logout.svg +1 -0
- package/assets/icons/menu-down.svg +1 -0
- package/assets/icons/menu-left.svg +1 -0
- package/assets/icons/menu-right.svg +1 -0
- package/assets/icons/menu.svg +1 -0
- package/assets/icons/minus-circle-outline.svg +1 -0
- package/assets/icons/minus-circle.svg +1 -0
- package/assets/icons/minus.svg +1 -0
- package/assets/icons/moon.svg +1 -0
- package/assets/icons/open-in-new.svg +1 -0
- package/assets/icons/pencil.svg +1 -0
- package/assets/icons/people.svg +1 -0
- package/assets/icons/piggy-bank-outline.svg +1 -0
- package/assets/icons/plus-circle-outline.svg +1 -0
- package/assets/icons/plus-circle.svg +1 -0
- package/assets/icons/plus.svg +1 -0
- package/assets/icons/qrcode-scan.svg +1 -0
- package/assets/icons/radio-dark.svg +1 -0
- package/assets/icons/radio.svg +1 -0
- package/assets/icons/refresh.svg +1 -0
- package/assets/icons/save.svg +1 -0
- package/assets/icons/search.svg +1 -0
- package/assets/icons/spotlight.svg +1 -0
- package/assets/icons/store-outline.svg +1 -0
- package/assets/icons/sun.svg +1 -0
- package/assets/icons/swap-horizontal.svg +1 -0
- package/assets/icons/swap-left.svg +1 -0
- package/assets/icons/swap-right.svg +1 -0
- package/assets/icons/swap.svg +1 -0
- package/assets/icons/system-theme.svg +1 -0
- package/assets/icons/tag-outline.svg +1 -0
- package/assets/icons/trash-can-outline.svg +1 -0
- package/assets/icons/trash-can.svg +1 -0
- package/assets/icons/upload.svg +1 -0
- package/assets/icons/user-circle.svg +1 -0
- package/assets/icons/zip-box.svg +1 -0
- package/assets/images/fs/apk.svg +11 -0
- package/assets/images/fs/bmp.svg +7 -0
- package/assets/images/fs/css.svg +8 -0
- package/assets/images/fs/doc.svg +9 -0
- package/assets/images/fs/docx.svg +9 -0
- package/assets/images/fs/folder-adwaita.svg +8 -0
- package/assets/images/fs/folder-black.svg +8 -0
- package/assets/images/fs/folder-brown.svg +8 -0
- package/assets/images/fs/folder-grey.svg +8 -0
- package/assets/images/fs/folder-nordic.svg +8 -0
- package/assets/images/fs/folder-orange.svg +8 -0
- package/assets/images/fs/folder-palebrown.svg +8 -0
- package/assets/images/fs/folder-paleorange.svg +8 -0
- package/assets/images/fs/folder-teal.svg +8 -0
- package/assets/images/fs/folder-white.svg +8 -0
- package/assets/images/fs/folder-yellow.svg +8 -0
- package/assets/images/fs/gif.svg +7 -0
- package/assets/images/fs/go.svg +9 -0
- package/assets/images/fs/ics.svg +24 -0
- package/assets/images/fs/iso.svg +10 -0
- package/assets/images/fs/jpeg.svg +7 -0
- package/assets/images/fs/jpg.svg +7 -0
- package/assets/images/fs/js.svg +9 -0
- package/assets/images/fs/json.svg +9 -0
- package/assets/images/fs/lua.svg +9 -0
- package/assets/images/fs/m4v.svg +7 -0
- package/assets/images/fs/md.svg +10 -0
- package/assets/images/fs/mov.svg +7 -0
- package/assets/images/fs/mp3.svg +9 -0
- package/assets/images/fs/mp4.svg +7 -0
- package/assets/images/fs/pdf.svg +9 -0
- package/assets/images/fs/pgp.svg +8 -0
- package/assets/images/fs/php.svg +9 -0
- package/assets/images/fs/png.svg +7 -0
- package/assets/images/fs/ppt.svg +9 -0
- package/assets/images/fs/py.svg +9 -0
- package/assets/images/fs/rar.svg +20 -0
- package/assets/images/fs/rpm.svg +7 -0
- package/assets/images/fs/rs.svg +9 -0
- package/assets/images/fs/sh.svg +9 -0
- package/assets/images/fs/tar.svg +20 -0
- package/assets/images/fs/txt.svg +8 -0
- package/assets/images/fs/unknown.svg +8 -0
- package/assets/images/fs/xls.svg +9 -0
- package/assets/images/fs/xlsx.svg +9 -0
- package/assets/images/fs/xml.svg +8 -0
- package/assets/images/fs/yaml.svg +9 -0
- package/assets/images/fs/zip.svg +20 -0
- package/components/Avatar/Avatar.story.ts +55 -0
- package/components/Avatar/Avatar.vue +82 -0
- package/components/Avatar/index.ts +12 -0
- package/components/Backdrop/Backdrop.vue +27 -0
- package/components/Backdrop/index.ts +12 -0
- package/components/Button/Button.story.ts +74 -0
- package/components/Button/Button.vue +230 -0
- package/components/Button/index.ts +12 -0
- package/components/ButtonCopy/ButtonCopy.vue +61 -0
- package/components/ButtonCopy/index.ts +12 -0
- package/components/Drawer/Drawer.vue +102 -0
- package/components/Drawer/index.ts +12 -0
- package/components/Dropdown/Dropdown.vue +258 -0
- package/components/Dropdown/index.ts +12 -0
- package/components/EventListener/EventListener.vue +12 -0
- package/components/FileDrop/FileDrop.vue +116 -0
- package/components/FileDrop/index.ts +12 -0
- package/components/Form/Form.spec.ts +72 -0
- package/components/Form/Form.vue +134 -0
- package/components/Form/index.ts +12 -0
- package/components/FormItem/FormItem.vue +85 -0
- package/components/FormItem/index.ts +12 -0
- package/components/GraphyEmpty/GraphyEmpty.vue +16 -0
- package/components/GraphyEmpty/index.ts +12 -0
- package/components/GraphyLabel/GraphyLabel.vue +34 -0
- package/components/GraphyLabel/index.ts +12 -0
- package/components/GraphyPrice/GraphyPrice.story.ts +37 -0
- package/components/GraphyPrice/GraphyPrice.vue +65 -0
- package/components/GraphyPrice/index.ts +12 -0
- package/components/GraphySubtitle/GraphySubtitle.vue +22 -0
- package/components/GraphySubtitle/index.ts +12 -0
- package/components/GraphyTitle/GraphyTitle.vue +13 -0
- package/components/GraphyTitle/index.ts +12 -0
- package/components/Icon/Icon.vue +84 -0
- package/components/Icon/index.ts +12 -0
- package/components/IconButton/IconButton.vue +168 -0
- package/components/IconButton/index.ts +12 -0
- package/components/InputAvatar/InputAvatar.vue +63 -0
- package/components/InputAvatar/index.ts +12 -0
- package/components/InputCheckbox/InputCheckbox.vue +77 -0
- package/components/InputCheckbox/index.ts +12 -0
- package/components/InputColor/InputColor.vue +54 -0
- package/components/InputColor/index.ts +12 -0
- package/components/InputDate/InputDate.story.ts +15 -0
- package/components/InputDate/InputDate.vue +368 -0
- package/components/InputDate/index.ts +12 -0
- package/components/InputMultiplier/InputMultiplier.vue +144 -0
- package/components/InputMultiplier/index.ts +12 -0
- package/components/InputPassword/InputPassword.vue +168 -0
- package/components/InputPassword/index.ts +12 -0
- package/components/InputPhone/InputPhone.vue +125 -0
- package/components/InputPhone/index.ts +12 -0
- package/components/InputPrice/InputPrice.vue +96 -0
- package/components/InputPrice/index.ts +12 -0
- package/components/InputRadio/InputRadio.vue +41 -0
- package/components/InputRadio/InputRadioGroup.story.ts +24 -0
- package/components/InputRadio/InputRadioGroup.vue +48 -0
- package/components/InputRadio/index.ts +14 -0
- package/components/InputSelect/InputSelect.story.ts +87 -0
- package/components/InputSelect/InputSelect.vue +507 -0
- package/components/InputSelect/index.ts +12 -0
- package/components/InputSwitch/InputSwitch.story.ts +34 -0
- package/components/InputSwitch/InputSwitch.vue +82 -0
- package/components/InputSwitch/index.ts +12 -0
- package/components/InputText/InputText.vue +62 -0
- package/components/InputText/index.ts +12 -0
- package/components/InputTextarea/InputTextarea.vue +64 -0
- package/components/InputTextarea/index.ts +12 -0
- package/components/LineChart/LineChart.vue +14 -0
- package/components/LineChart/index.ts +12 -0
- package/components/Modal/Modal.vue +106 -0
- package/components/Modal/index.ts +12 -0
- package/components/ModalForm/ModalForm.vue +141 -0
- package/components/ModalForm/index.ts +12 -0
- package/components/Pagination/Pagination.story.ts +15 -0
- package/components/Pagination/Pagination.vue +138 -0
- package/components/Pagination/index.ts +12 -0
- package/components/PieChart/PieChart.vue +14 -0
- package/components/PieChart/index.ts +12 -0
- package/components/Popconfirm/Popconfirm.vue +80 -0
- package/components/Popconfirm/index.ts +12 -0
- package/components/Popover/Popover.vue +133 -0
- package/components/Popover/index.ts +12 -0
- package/components/ProgressCircle/ProgressCircle.story.ts +31 -0
- package/components/ProgressCircle/ProgressCircle.vue +82 -0
- package/components/ProgressCircle/index.ts +12 -0
- package/components/ProgressLine/ProgressLine.story.ts +27 -0
- package/components/ProgressLine/ProgressLine.vue +104 -0
- package/components/ProgressLine/index.ts +12 -0
- package/components/SensitiveInfo/SensitiveInfo.vue +18 -0
- package/components/SensitiveInfo/index.ts +12 -0
- package/components/Tab/Tab.vue +58 -0
- package/components/Tab/index.ts +12 -0
- package/components/Table/Table.story.ts +32 -0
- package/components/Table/Table.vue +318 -0
- package/components/Table/index.ts +12 -0
- package/components/Tag/Tag.vue +73 -0
- package/components/Tag/index.ts +12 -0
- package/components/Toast/Toast.vue +75 -0
- package/components/Toast/index.ts +12 -0
- package/components/index.ts +43 -0
- package/components/plugins.ts +89 -0
- package/composables/index.ts +2 -0
- package/composables/useBreakpoints.ts +30 -0
- package/composables/useRender.ts +29 -0
- package/entrypoint.sh +19 -0
- package/enums/app.ts +5 -0
- package/enums/form.ts +25 -0
- package/enums/ui.ts +160 -0
- package/env.d.ts +8 -0
- package/i18n.ts +20 -0
- package/index.css +383 -0
- package/index.html +22 -0
- package/index.ts +14 -0
- package/main.ts +31 -0
- package/package.json +70 -0
- package/plugins/register-component.ts +5 -0
- package/postcss.config.js +6 -0
- package/services/clipboard.ts +5 -0
- package/services/date.ts +27 -0
- package/services/form/crud.ts +109 -0
- package/services/form/form-data-transformers.ts +148 -0
- package/services/form/form-json-transformers.ts +91 -0
- package/services/form/form-transformer.ts +54 -0
- package/services/form/form-value-transformers.ts +35 -0
- package/services/form/form.test.ts +98 -0
- package/services/form/form.ts +80 -0
- package/services/password.ts +309 -0
- package/services/ui.ts +43 -0
- package/tailwind.config.js +16 -0
- package/tsconfig.json +23 -0
- package/types/address.ts +44 -0
- package/types/api.ts +28 -0
- package/types/common.ts +5 -0
- package/types/form.ts +144 -0
- package/types/index.ts +5 -0
- package/types/ui.ts +55 -0
- package/types/website.ts +16 -0
- package/vite.config.mts +38 -0
- package/vitest.setup.ts +21 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import Avatar from "./Avatar";
|
|
2
|
+
import Backdrop from "./Backdrop";
|
|
3
|
+
import Button from "./Button";
|
|
4
|
+
import ButtonCopy from "./ButtonCopy";
|
|
5
|
+
import Drawer from "./Drawer";
|
|
6
|
+
import Dropdown from "./Dropdown";
|
|
7
|
+
import FileDrop from "./FileDrop";
|
|
8
|
+
import Form from "./Form";
|
|
9
|
+
import FormItem from "./FormItem";
|
|
10
|
+
import GraphyEmpty from "./GraphyEmpty";
|
|
11
|
+
import GraphyLabel from "./GraphyLabel";
|
|
12
|
+
import GraphyPrice from "./GraphyPrice";
|
|
13
|
+
import GraphySubtitle from "./GraphySubtitle";
|
|
14
|
+
import GraphyTitle from "./GraphyTitle";
|
|
15
|
+
import Icon from "./Icon";
|
|
16
|
+
import IconButton from "./IconButton";
|
|
17
|
+
import InputAvatar from "./InputAvatar";
|
|
18
|
+
import InputCheckbox from "./InputCheckbox";
|
|
19
|
+
import InputColor from "./InputColor";
|
|
20
|
+
import InputDate from "./InputDate";
|
|
21
|
+
import InputMultiplier from "./InputMultiplier";
|
|
22
|
+
import InputPassword from "./InputPassword";
|
|
23
|
+
import InputPhone from "./InputPhone";
|
|
24
|
+
import InputPrice from "./InputPrice";
|
|
25
|
+
import InputRadio from "./InputRadio";
|
|
26
|
+
import InputSelect from "./InputSelect";
|
|
27
|
+
import InputSwitch from "./InputSwitch";
|
|
28
|
+
import InputText from "./InputText";
|
|
29
|
+
import InputTextarea from "./InputTextarea";
|
|
30
|
+
import LineChart from "./LineChart";
|
|
31
|
+
import Modal from "./Modal";
|
|
32
|
+
import ModalForm from "./ModalForm";
|
|
33
|
+
import Pagination from "./Pagination";
|
|
34
|
+
import PieChart from "./PieChart";
|
|
35
|
+
import Popconfirm from "./Popconfirm";
|
|
36
|
+
import Popover from "./Popover";
|
|
37
|
+
import ProgressCircle from "./ProgressCircle";
|
|
38
|
+
import ProgressLine from "./ProgressLine";
|
|
39
|
+
import SensitiveInfo from "./SensitiveInfo";
|
|
40
|
+
import Tab from "./Tab";
|
|
41
|
+
import Table from "./Table";
|
|
42
|
+
import Tag from "./Tag";
|
|
43
|
+
import Toast from "./Toast";
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
Avatar,
|
|
47
|
+
Backdrop,
|
|
48
|
+
Button,
|
|
49
|
+
ButtonCopy,
|
|
50
|
+
Drawer,
|
|
51
|
+
Dropdown,
|
|
52
|
+
FileDrop,
|
|
53
|
+
Form,
|
|
54
|
+
FormItem,
|
|
55
|
+
GraphyEmpty,
|
|
56
|
+
GraphyLabel,
|
|
57
|
+
GraphyPrice,
|
|
58
|
+
GraphySubtitle,
|
|
59
|
+
GraphyTitle,
|
|
60
|
+
Icon,
|
|
61
|
+
IconButton,
|
|
62
|
+
InputAvatar,
|
|
63
|
+
InputCheckbox,
|
|
64
|
+
InputColor,
|
|
65
|
+
InputDate,
|
|
66
|
+
InputMultiplier,
|
|
67
|
+
InputPassword,
|
|
68
|
+
InputPhone,
|
|
69
|
+
InputPrice,
|
|
70
|
+
InputRadio,
|
|
71
|
+
InputSelect,
|
|
72
|
+
InputSwitch,
|
|
73
|
+
InputText,
|
|
74
|
+
InputTextarea,
|
|
75
|
+
LineChart,
|
|
76
|
+
Modal,
|
|
77
|
+
ModalForm,
|
|
78
|
+
Pagination,
|
|
79
|
+
PieChart,
|
|
80
|
+
Popconfirm,
|
|
81
|
+
Popover,
|
|
82
|
+
ProgressCircle,
|
|
83
|
+
ProgressLine,
|
|
84
|
+
SensitiveInfo,
|
|
85
|
+
Tab,
|
|
86
|
+
Table,
|
|
87
|
+
Tag,
|
|
88
|
+
Toast,
|
|
89
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
|
|
3
|
+
const BREAKPOINT_SM = 640;
|
|
4
|
+
const BREAKPOINT_MD = 768;
|
|
5
|
+
const BREAKPOINT_LG = 1024;
|
|
6
|
+
const BREAKPOINT_XL = 1280;
|
|
7
|
+
|
|
8
|
+
const size = ref<number>(window.innerWidth);
|
|
9
|
+
const sm = ref<boolean>(false);
|
|
10
|
+
const md = ref<boolean>(false);
|
|
11
|
+
const lg = ref<boolean>(false);
|
|
12
|
+
|
|
13
|
+
const refresh = (event?: any) => {
|
|
14
|
+
size.value = event ? event.target.innerWidth : window.innerWidth;
|
|
15
|
+
sm.value = size.value >= BREAKPOINT_SM;
|
|
16
|
+
md.value = size.value >= BREAKPOINT_MD;
|
|
17
|
+
lg.value = size.value >= BREAKPOINT_LG;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
window.addEventListener("resize", refresh);
|
|
21
|
+
|
|
22
|
+
export default function useBreakpoints() {
|
|
23
|
+
refresh();
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
sm,
|
|
27
|
+
md,
|
|
28
|
+
lg,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { VNode } from "vue";
|
|
2
|
+
import { getCurrentInstance } from "vue";
|
|
3
|
+
|
|
4
|
+
export function useRender(render: () => Array<VNode | null>): void {
|
|
5
|
+
const vm = getCurrentInstance();
|
|
6
|
+
|
|
7
|
+
if (!vm) {
|
|
8
|
+
throw new Error(
|
|
9
|
+
"[useRender] must be called from inside a setup function"
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* In development mode, assignment render property works fine
|
|
15
|
+
* but in production SFC overwrites it with an empty function
|
|
16
|
+
* because no <template> section defined.
|
|
17
|
+
*
|
|
18
|
+
* Filthy hack to avoid this in production.
|
|
19
|
+
* https://github.com/vuejs/core/issues/4980
|
|
20
|
+
*/
|
|
21
|
+
if (import.meta.env.DEV) {
|
|
22
|
+
(vm as any).render = render;
|
|
23
|
+
} else {
|
|
24
|
+
Object.defineProperty(vm, "render", {
|
|
25
|
+
get: () => render,
|
|
26
|
+
set: () => {},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
package/entrypoint.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
yarn install
|
|
6
|
+
|
|
7
|
+
if [ "$1" = "prod" ]; then
|
|
8
|
+
yarn build
|
|
9
|
+
|
|
10
|
+
cp -r /usr/src/assets /usr/src/static/site
|
|
11
|
+
else
|
|
12
|
+
yarn dev
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
# Wait for any process to exit
|
|
16
|
+
wait -n
|
|
17
|
+
|
|
18
|
+
# Exit with status of process that exited first
|
|
19
|
+
exit $?
|
package/enums/app.ts
ADDED
package/enums/form.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export enum FormStates {
|
|
2
|
+
ADD = 1,
|
|
3
|
+
EDIT = 2,
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const enum FormDataTypes {
|
|
7
|
+
Address,
|
|
8
|
+
Boolean,
|
|
9
|
+
Country,
|
|
10
|
+
Date,
|
|
11
|
+
DateRange,
|
|
12
|
+
Document,
|
|
13
|
+
Documents,
|
|
14
|
+
Number,
|
|
15
|
+
Password,
|
|
16
|
+
Price,
|
|
17
|
+
String,
|
|
18
|
+
StringArray,
|
|
19
|
+
Website,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const enum FormSubmissionFormat {
|
|
23
|
+
FormData,
|
|
24
|
+
JSON,
|
|
25
|
+
}
|
package/enums/ui.ts
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export enum ElementSize {
|
|
2
|
+
EXTRA_SMALL = "xs",
|
|
3
|
+
SMALL = "sm",
|
|
4
|
+
DEFAULT = "",
|
|
5
|
+
LARGE = "lg",
|
|
6
|
+
EXTRA_LARGE = "xl",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum ElementShape {
|
|
10
|
+
SQUARE = "square",
|
|
11
|
+
ROUNDED = "rounded",
|
|
12
|
+
CIRCLE = "circle",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum ElementVariant {
|
|
16
|
+
DEFAULT = "default",
|
|
17
|
+
PRIMARY = "primary",
|
|
18
|
+
SECONDARY = "secondary",
|
|
19
|
+
SUCCESS = "success",
|
|
20
|
+
DANGER = "danger",
|
|
21
|
+
WARNING = "warning",
|
|
22
|
+
TRANSPARENT = "transparent",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum ElementTrigger {
|
|
26
|
+
CLICK = "click",
|
|
27
|
+
HOVER = "hover",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum ElementPosition {
|
|
31
|
+
TOP_START = "top-start",
|
|
32
|
+
TOP = "top",
|
|
33
|
+
TOP_END = "top-end",
|
|
34
|
+
RIGHT_START = "right-start",
|
|
35
|
+
RIGHT = "right",
|
|
36
|
+
RIGHT_END = "right-end",
|
|
37
|
+
BOTTOM_END = "bottom-end",
|
|
38
|
+
BOTTOM = "bottom",
|
|
39
|
+
BOTTOM_START = "bottom-start",
|
|
40
|
+
LEFT_END = "left-end",
|
|
41
|
+
LEFT = "left",
|
|
42
|
+
LEFT_START = "left-start",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export enum ButtonType {
|
|
46
|
+
BUTTON = "button",
|
|
47
|
+
SUBMIT = "submit",
|
|
48
|
+
LINK = "link",
|
|
49
|
+
ROUTER_LINK = "router-link",
|
|
50
|
+
FILE = "file",
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export enum GraphyPriceVariant {
|
|
54
|
+
DEFAULT = "default",
|
|
55
|
+
INCREASE = "increase",
|
|
56
|
+
DECREASE = "decrease",
|
|
57
|
+
AUTO = "auto",
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export enum SelectionBars {
|
|
61
|
+
DEFAULT = "default",
|
|
62
|
+
PHOTO_SELECTION = "photo_selection",
|
|
63
|
+
TRANSACTION_SELECTION = "transaction_selection",
|
|
64
|
+
COMPANIES_SELECTION = "companies_selection",
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export enum Icon {
|
|
68
|
+
Account = "account",
|
|
69
|
+
AlertOctagon = "alert-octagon",
|
|
70
|
+
AlertOctagonOutline = "alert-octagon-outline",
|
|
71
|
+
Archive = "archive",
|
|
72
|
+
ArchiveOutline = "archive-outline",
|
|
73
|
+
ArrowLeft = "arrow-left",
|
|
74
|
+
ArrowRight = "arrow-right",
|
|
75
|
+
Bank = "bank",
|
|
76
|
+
BankOutline = "bank-outline",
|
|
77
|
+
Camera = "camera",
|
|
78
|
+
CardsOutline = "cards-outline",
|
|
79
|
+
CardsVariant = "cards-variant",
|
|
80
|
+
CartOutline = "cart-outline",
|
|
81
|
+
ChartBox = "chart-box",
|
|
82
|
+
ChartBoxOutline = "chart-box-outline",
|
|
83
|
+
Check = "check",
|
|
84
|
+
CheckCircle = "check-circle",
|
|
85
|
+
CheckCircleOutline = "check-circle-outline",
|
|
86
|
+
ChevronDown = "chevron-down",
|
|
87
|
+
ChevronLeft = "chevron-left",
|
|
88
|
+
ChevronRight = "chevron-right",
|
|
89
|
+
ChevronUp = "chevron-up",
|
|
90
|
+
Circle = "circle",
|
|
91
|
+
Clock = "clock",
|
|
92
|
+
Close = "close",
|
|
93
|
+
CloseCircle = "close-circle",
|
|
94
|
+
CloseCircleOutline = "close-circle-outline",
|
|
95
|
+
Cog = "cog",
|
|
96
|
+
ColorFill = "color-fill",
|
|
97
|
+
Copy = "copy",
|
|
98
|
+
CreditCard = "credit-card",
|
|
99
|
+
CreditCardPlus = "credit-card-plus",
|
|
100
|
+
Currency = "currency",
|
|
101
|
+
Database = "database",
|
|
102
|
+
DotsGrid = "dots-grid",
|
|
103
|
+
DotsVertical = "dots-vertical",
|
|
104
|
+
EmailOpenOutline = "email-open-outline",
|
|
105
|
+
EmailOutline = "email-outline",
|
|
106
|
+
Eye = "eye",
|
|
107
|
+
EyeOff = "eye-off",
|
|
108
|
+
FIleDocumentPlusOutline = "file-document-plus-outline",
|
|
109
|
+
Filmstrip = "filmstrip",
|
|
110
|
+
Filter = "filter",
|
|
111
|
+
Fullscreen = "fullscreen",
|
|
112
|
+
FullscreenExit = "fullscreen-exit",
|
|
113
|
+
Group = "group",
|
|
114
|
+
Image = "image",
|
|
115
|
+
ImageAlbum = "image-album",
|
|
116
|
+
ImageAlbumOutline = "image-album-outline",
|
|
117
|
+
ImageOutline = "image-outline",
|
|
118
|
+
InfoOutline = "info-outline",
|
|
119
|
+
Key = "key",
|
|
120
|
+
KeyChain = "key-chain",
|
|
121
|
+
KeyVariant = "key-variant",
|
|
122
|
+
ListboxOutline = "listbox-outline",
|
|
123
|
+
Loading = "loading",
|
|
124
|
+
Lock = "lock",
|
|
125
|
+
LockOutline = "lock-outline",
|
|
126
|
+
Logout = "logout",
|
|
127
|
+
Menu = "menu",
|
|
128
|
+
MenuDown = "menu-down",
|
|
129
|
+
MenuLeft = "menu-left",
|
|
130
|
+
MenuRight = "menu-right",
|
|
131
|
+
Minus = "minus",
|
|
132
|
+
MinusCircle = "minus-circle",
|
|
133
|
+
MinusCircleOutline = "minus-circle-outline",
|
|
134
|
+
Moon = "moon",
|
|
135
|
+
OpenInNew = "open-in-new",
|
|
136
|
+
Pencil = "pencil",
|
|
137
|
+
People = "people",
|
|
138
|
+
PiggyBankOutline = "piggy-bank-outline",
|
|
139
|
+
Plus = "plus",
|
|
140
|
+
PlusCircle = "plus-circle",
|
|
141
|
+
PlusCircleOutline = "plus-circle-outline",
|
|
142
|
+
QrcodeScan = "qrcode-scan",
|
|
143
|
+
Refresh = "refresh",
|
|
144
|
+
Save = "save",
|
|
145
|
+
Search = "search",
|
|
146
|
+
Spotlight = "spotlight",
|
|
147
|
+
StoreOutline = "store-outline",
|
|
148
|
+
Sun = "sun",
|
|
149
|
+
Swap = "swap",
|
|
150
|
+
SwapHorizontal = "swap-horizontal",
|
|
151
|
+
SwapLeft = "swap-left",
|
|
152
|
+
SwapRight = "swap-right",
|
|
153
|
+
SystemTheme = "system-theme",
|
|
154
|
+
TagOutline = "tag-outline",
|
|
155
|
+
TrashCan = "trash-can",
|
|
156
|
+
TrashCanOutline = "trash-can-outline",
|
|
157
|
+
Upload = "upload",
|
|
158
|
+
UserCircle = "user-circle",
|
|
159
|
+
ZipBox = "zip-box",
|
|
160
|
+
}
|
package/env.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import { DefineComponent } from 'vue'
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
|
+
const component: DefineComponent<{}, {}, any>
|
|
7
|
+
export default component
|
|
8
|
+
}
|
package/i18n.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createI18n } from "vue-i18n";
|
|
2
|
+
|
|
3
|
+
export default createI18n({
|
|
4
|
+
locale: "en",
|
|
5
|
+
legacy: false,
|
|
6
|
+
numberFormats: {
|
|
7
|
+
EUR: {
|
|
8
|
+
currency: {
|
|
9
|
+
style: "currency",
|
|
10
|
+
currency: "EUR",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
BRL: {
|
|
14
|
+
currency: {
|
|
15
|
+
style: "currency",
|
|
16
|
+
currency: "BRL",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|