@7pmlabs/design-system 0.1.0

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.
Files changed (51) hide show
  1. package/README.md +38 -0
  2. package/dist/favicon.ico +0 -0
  3. package/dist/index.es.js +13681 -0
  4. package/dist/index.umd.js +59 -0
  5. package/dist/style.css +1 -0
  6. package/dist/types/components/BButton.vue.d.ts +52 -0
  7. package/dist/types/components/BCarousel/BCarousel.vue.d.ts +60 -0
  8. package/dist/types/components/BCarousel/BCarouselItem.vue.d.ts +9 -0
  9. package/dist/types/components/BCheckbox.vue.d.ts +65 -0
  10. package/dist/types/components/BCollapse.vue.d.ts +23 -0
  11. package/dist/types/components/BDatePicker.vue.d.ts +96 -0
  12. package/dist/types/components/BDropdown/BDropdown.vue.d.ts +72 -0
  13. package/dist/types/components/BDropdown/BDropdownContent.vue.d.ts +9 -0
  14. package/dist/types/components/BDropdown/BDropdownItem.vue.d.ts +38 -0
  15. package/dist/types/components/BErrorMessage.vue.d.ts +32 -0
  16. package/dist/types/components/BLabel.vue.d.ts +43 -0
  17. package/dist/types/components/BLoadingBar.vue.d.ts +40 -0
  18. package/dist/types/components/BLoadingOverlay.vue.d.ts +37 -0
  19. package/dist/types/components/BModal/BModal.vue.d.ts +53 -0
  20. package/dist/types/components/BModal/BModalBody.vue.d.ts +9 -0
  21. package/dist/types/components/BModal/BModalContainer.vue.d.ts +49 -0
  22. package/dist/types/components/BModal/BModalFooter.vue.d.ts +9 -0
  23. package/dist/types/components/BModal/BModalHeader.vue.d.ts +9 -0
  24. package/dist/types/components/BMultiSelect.vue.d.ts +88 -0
  25. package/dist/types/components/BOtpField/BOtpField.vue.d.ts +76 -0
  26. package/dist/types/components/BOtpField/BOtpFieldBox.vue.d.ts +48 -0
  27. package/dist/types/components/BPagination.vue.d.ts +45 -0
  28. package/dist/types/components/BRadio.vue.d.ts +71 -0
  29. package/dist/types/components/BSelect.vue.d.ts +84 -0
  30. package/dist/types/components/BTabs/BTab.vue.d.ts +9 -0
  31. package/dist/types/components/BTabs/BTabs.vue.d.ts +45 -0
  32. package/dist/types/components/BTextField.vue.d.ts +112 -0
  33. package/dist/types/components/BTextarea.vue.d.ts +81 -0
  34. package/dist/types/components/BToast/BToast.vue.d.ts +28 -0
  35. package/dist/types/components/BToast/BToastItem.vue.d.ts +46 -0
  36. package/dist/types/components/BTooltip.vue.d.ts +50 -0
  37. package/dist/types/components/index.d.ts +28 -0
  38. package/dist/types/composables/Date.d.ts +7 -0
  39. package/dist/types/composables/Validation.d.ts +42 -0
  40. package/dist/types/constants/Common.d.ts +2 -0
  41. package/dist/types/constants/Enums.d.ts +100 -0
  42. package/dist/types/helpers/ComponentHelper.d.ts +7 -0
  43. package/dist/types/helpers/DateHelper.d.ts +2 -0
  44. package/dist/types/index.d.ts +9 -0
  45. package/dist/types/playground/PlaygroundView.vue.d.ts +2 -0
  46. package/dist/types/plugin.d.ts +8 -0
  47. package/dist/types/types/Common.d.ts +5 -0
  48. package/dist/types/types/components/BTabs.d.ts +4 -0
  49. package/dist/types/types/components/BToast.d.ts +8 -0
  50. package/dist/types/types/index.d.ts +2 -0
  51. package/package.json +76 -0
@@ -0,0 +1,112 @@
1
+ import { type ValidationRule } from '@/composables/Validation';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ inputId?: string;
7
+ inputCssClass?: string;
8
+ validationRules?: ValidationRule[];
9
+ modelValue: string | number;
10
+ label?: string;
11
+ prependIcon?: string;
12
+ hidePrependIcon?: boolean;
13
+ appendIcon?: string;
14
+ hideAppendIcon?: boolean;
15
+ placeholder?: string;
16
+ autocomplete?: boolean;
17
+ disabled?: boolean;
18
+ readonly?: boolean;
19
+ type?: string;
20
+ required?: boolean;
21
+ requiredErrorMessage?: string;
22
+ hideDetails?: boolean;
23
+ keyPressFn?: any;
24
+ inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
25
+ }
26
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
+ inputId: string;
28
+ inputCssClass: string;
29
+ validationRules: any;
30
+ label: string;
31
+ prependIcon: string;
32
+ hidePrependIcon: boolean;
33
+ appendIcon: string;
34
+ hideAppendIcon: boolean;
35
+ placeholder: string;
36
+ autocomplete: boolean;
37
+ disabled: boolean;
38
+ readonly: boolean;
39
+ type: string;
40
+ required: boolean;
41
+ requiredErrorMessage: string;
42
+ hideDetails: boolean;
43
+ keyPressFn: any;
44
+ inputmode: string;
45
+ }>, {
46
+ validate: () => void;
47
+ focus: () => void;
48
+ blur: () => void;
49
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "focus" | "update:modelValue" | "click:prepend" | "click:append" | "press:enter")[], "blur" | "focus" | "update:modelValue" | "click:prepend" | "click:append" | "press:enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
50
+ inputId: string;
51
+ inputCssClass: string;
52
+ validationRules: any;
53
+ label: string;
54
+ prependIcon: string;
55
+ hidePrependIcon: boolean;
56
+ appendIcon: string;
57
+ hideAppendIcon: boolean;
58
+ placeholder: string;
59
+ autocomplete: boolean;
60
+ disabled: boolean;
61
+ readonly: boolean;
62
+ type: string;
63
+ required: boolean;
64
+ requiredErrorMessage: string;
65
+ hideDetails: boolean;
66
+ keyPressFn: any;
67
+ inputmode: string;
68
+ }>>> & {
69
+ onFocus?: (...args: any[]) => any;
70
+ onBlur?: (...args: any[]) => any;
71
+ "onUpdate:modelValue"?: (...args: any[]) => any;
72
+ "onClick:prepend"?: (...args: any[]) => any;
73
+ "onClick:append"?: (...args: any[]) => any;
74
+ "onPress:enter"?: (...args: any[]) => any;
75
+ }, {
76
+ required: boolean;
77
+ type: string;
78
+ label: string;
79
+ autocomplete: boolean;
80
+ disabled: boolean;
81
+ readonly: boolean;
82
+ placeholder: string;
83
+ inputmode: "search" | "numeric" | "none" | "url" | "text" | "decimal" | "tel" | "email";
84
+ prependIcon: string;
85
+ appendIcon: string;
86
+ inputId: string;
87
+ inputCssClass: string;
88
+ validationRules: ValidationRule[];
89
+ requiredErrorMessage: string;
90
+ hideDetails: boolean;
91
+ hidePrependIcon: boolean;
92
+ hideAppendIcon: boolean;
93
+ keyPressFn: any;
94
+ }, {}>;
95
+ export default _default;
96
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
97
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
98
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
99
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
100
+ } : {
101
+ type: import('vue').PropType<T[K]>;
102
+ required: true;
103
+ };
104
+ };
105
+ declare type __VLS_WithDefaults<P, D> = {
106
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
107
+ default: D[K];
108
+ }> : P[K];
109
+ };
110
+ declare type __VLS_Prettify<T> = {
111
+ [K in keyof T]: T[K];
112
+ } & {};
@@ -0,0 +1,81 @@
1
+ import { type ValidationRule } from '@/composables/Validation';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ inputId?: string;
7
+ inputCssClass?: string;
8
+ modelValue: string;
9
+ validationRules?: ValidationRule[];
10
+ label?: string;
11
+ placeholder: string;
12
+ autocomplete?: boolean;
13
+ disabled?: boolean;
14
+ readonly?: boolean;
15
+ rows?: number;
16
+ required: boolean;
17
+ requiredErrorMessage: string;
18
+ hideDetails: boolean;
19
+ }
20
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
21
+ inputId: string;
22
+ inputCssClass: string;
23
+ validationRules: any;
24
+ label: string;
25
+ placeholder: string;
26
+ autocomplete: boolean;
27
+ disabled: boolean;
28
+ readonly: boolean;
29
+ rows: number;
30
+ required: boolean;
31
+ requiredErrorMessage: string;
32
+ hideDetails: boolean;
33
+ }>, {
34
+ validate: () => void;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
36
+ inputId: string;
37
+ inputCssClass: string;
38
+ validationRules: any;
39
+ label: string;
40
+ placeholder: string;
41
+ autocomplete: boolean;
42
+ disabled: boolean;
43
+ readonly: boolean;
44
+ rows: number;
45
+ required: boolean;
46
+ requiredErrorMessage: string;
47
+ hideDetails: boolean;
48
+ }>>> & {
49
+ "onUpdate:modelValue"?: (...args: any[]) => any;
50
+ }, {
51
+ required: boolean;
52
+ label: string;
53
+ autocomplete: boolean;
54
+ disabled: boolean;
55
+ readonly: boolean;
56
+ placeholder: string;
57
+ inputId: string;
58
+ inputCssClass: string;
59
+ validationRules: ValidationRule[];
60
+ requiredErrorMessage: string;
61
+ hideDetails: boolean;
62
+ rows: number;
63
+ }, {}>;
64
+ export default _default;
65
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
67
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
68
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
+ } : {
70
+ type: import('vue').PropType<T[K]>;
71
+ required: true;
72
+ };
73
+ };
74
+ declare type __VLS_WithDefaults<P, D> = {
75
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
76
+ default: D[K];
77
+ }> : P[K];
78
+ };
79
+ declare type __VLS_Prettify<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};
@@ -0,0 +1,28 @@
1
+ import type { BToastItemModel } from '@/types';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ modelValue: BToastItemModel[];
7
+ }
8
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
9
+ "onUpdate:modelValue"?: (...args: any[]) => any;
10
+ }, {}, {}>;
11
+ export default _default;
12
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ declare type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ declare type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
@@ -0,0 +1,46 @@
1
+ import { BToastItemType } from '@/constants/Enums';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ text?: string;
7
+ icon?: string;
8
+ type?: `${BToastItemType}`;
9
+ hideClose?: boolean;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ text: string;
13
+ icon: string;
14
+ type: BToastItemType;
15
+ hideClose: boolean;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
17
+ text: string;
18
+ icon: string;
19
+ type: BToastItemType;
20
+ hideClose: boolean;
21
+ }>>> & {
22
+ onClose?: (...args: any[]) => any;
23
+ }, {
24
+ type: "error" | "default" | "success";
25
+ text: string;
26
+ icon: string;
27
+ hideClose: boolean;
28
+ }, {}>;
29
+ export default _default;
30
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ declare type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ declare type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,50 @@
1
+ import { BTooltipOpenEvent, BTooltipPosition } from '@/constants/Enums';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ modelValue?: boolean;
7
+ position?: `${BTooltipPosition}`;
8
+ openEvent?: `${BTooltipOpenEvent}`;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ modelValue: boolean;
12
+ position: BTooltipPosition;
13
+ openEvent: BTooltipOpenEvent;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
+ modelValue: boolean;
16
+ position: BTooltipPosition;
17
+ openEvent: BTooltipOpenEvent;
18
+ }>>> & {
19
+ "onUpdate:modelValue"?: (...args: any[]) => any;
20
+ }, {
21
+ position: "left" | "top" | "bottom" | "right";
22
+ modelValue: boolean;
23
+ openEvent: "click" | "focus" | "hover";
24
+ }, {}>, {
25
+ toggle?(_: {}): any;
26
+ default?(_: {}): any;
27
+ }>;
28
+ export default _default;
29
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('vue').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ declare type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
+ default: D[K];
41
+ }> : P[K];
42
+ };
43
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ declare type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,28 @@
1
+ export { default as BToast } from './BToast/BToast.vue';
2
+ export { default as BToastItem } from './BToast/BToastItem.vue';
3
+ export { default as BButton } from './BButton.vue';
4
+ export { default as BTextField } from './BTextField.vue';
5
+ export { default as BCheckbox } from './BCheckbox.vue';
6
+ export { default as BCarousel } from './BCarousel/BCarousel.vue';
7
+ export { default as BCarouselItem } from './BCarousel/BCarouselItem.vue';
8
+ export { default as BOtpField } from './BOtpField/BOtpField.vue';
9
+ export { default as BRadio } from './BRadio.vue';
10
+ export { default as BSelect } from './BSelect.vue';
11
+ export { default as BMultiSelect } from './BMultiSelect.vue';
12
+ export { default as BModal } from './BModal/BModal.vue';
13
+ export { default as BModalHeader } from './BModal/BModalHeader.vue';
14
+ export { default as BModalBody } from './BModal/BModalBody.vue';
15
+ export { default as BModalFooter } from './BModal/BModalFooter.vue';
16
+ export { default as BLoadingBar } from './BLoadingBar.vue';
17
+ export { default as BLabel } from './BLabel.vue';
18
+ export { default as BErrorMessage } from './BErrorMessage.vue';
19
+ export { default as BDropdown } from './BDropdown/BDropdown.vue';
20
+ export { default as BDropdownContent } from './BDropdown/BDropdownContent.vue';
21
+ export { default as BDropdownItem } from './BDropdown/BDropdownItem.vue';
22
+ export { default as BPagination } from './BPagination.vue';
23
+ export { default as BCollapse } from './BCollapse.vue';
24
+ export { default as BTabs } from './BTabs/BTabs.vue';
25
+ export { default as BTab } from './BTabs/BTab.vue';
26
+ export { default as BLoadingOverlay } from './BLoadingOverlay.vue';
27
+ export { default as BDatePicker } from './BDatePicker.vue';
28
+ export { default as BTextarea } from './BTextarea.vue';
@@ -0,0 +1,7 @@
1
+ export declare function useDate(): {
2
+ formatTime: (date: Date) => string | Date;
3
+ formatDate: (date: Date) => string | Date;
4
+ formatDateHuge: (date: Date) => string | Date;
5
+ formatMonthYear: (date: Date, type?: 'full' | 'short' | 'number') => string | Date;
6
+ dayShortNames: import("vue").ComputedRef<Record<number, string>>;
7
+ };
@@ -0,0 +1,42 @@
1
+ import { type Ref } from 'vue';
2
+ /**
3
+ * Types
4
+ */
5
+ export declare type ValidationRuleFunction = (val: any) => boolean;
6
+ export declare type ValidationErrorMessageFunction = () => string;
7
+ export interface ValidationRule {
8
+ validateRule: ValidationRuleFunction;
9
+ errorMessage: ValidationErrorMessageFunction;
10
+ }
11
+ export interface ValidationResult {
12
+ validate: () => void;
13
+ fieldValue: Ref<any>;
14
+ valid: boolean;
15
+ errorMessage: ValidationErrorMessageFunction;
16
+ }
17
+ export declare const FormValidationProviderName = "formValidation";
18
+ /**
19
+ * ValidationForm
20
+ * @returns
21
+ */
22
+ export declare function useValidationForm(): {
23
+ validationForm: Record<string, Ref<ValidationResult>>;
24
+ validateAll: () => boolean;
25
+ resetAll: () => void;
26
+ };
27
+ /**
28
+ * Validation Field
29
+ * @param key
30
+ * @param fieldValue
31
+ * @param validationRules
32
+ * @returns
33
+ */
34
+ export declare function useValidationField(key: string, fieldValue: Ref<any>, validationRules: ValidationRule[] | undefined): {
35
+ validate: () => void;
36
+ validationResult: Ref<{
37
+ validate: () => void;
38
+ fieldValue: any;
39
+ valid: boolean;
40
+ errorMessage: ValidationErrorMessageFunction;
41
+ }>;
42
+ };
@@ -0,0 +1,2 @@
1
+ export declare const DateDelimiter = "/";
2
+ export declare const RequiredSymbol = "*";
@@ -0,0 +1,100 @@
1
+ /**
2
+ * BButton
3
+ */
4
+ export declare enum BButtonType {
5
+ Primary = "primary",
6
+ Secondary = "secondary",
7
+ Additional = "additional",
8
+ Clear = "clear",
9
+ Icon = "icon"
10
+ }
11
+ export declare enum BButtonSize {
12
+ Small = "sm",
13
+ Medium = "md"
14
+ }
15
+ /**
16
+ * BToast
17
+ */
18
+ export declare enum BToastItemType {
19
+ Success = "success",
20
+ Error = "error",
21
+ Default = "default"
22
+ }
23
+ /**
24
+ * BSelect
25
+ */
26
+ export declare enum BSelectSize {
27
+ ExtraSmall = "xs",
28
+ Small = "sm",
29
+ Medium = "md",
30
+ Large = "lg"
31
+ }
32
+ /**
33
+ * BModal
34
+ */
35
+ export declare enum BModalSize {
36
+ Small = "sm",
37
+ Medium = "md",
38
+ Large = "lg"
39
+ }
40
+ /**
41
+ * BCheckbox
42
+ */
43
+ export declare enum BCheckboxSize {
44
+ Small = "sm",
45
+ Medium = "md"
46
+ }
47
+ /**
48
+ * BRadio
49
+ */
50
+ export declare enum BRadioSize {
51
+ Small = "sm",
52
+ Medium = "md"
53
+ }
54
+ /**
55
+ * BTooltip
56
+ */
57
+ export declare enum BTooltipPosition {
58
+ Top = "top",
59
+ Right = "right",
60
+ Bottom = "bottom",
61
+ Left = "left"
62
+ }
63
+ export declare enum BTooltipOpenEvent {
64
+ Click = "click",
65
+ Focus = "focus",
66
+ Hover = "hover"
67
+ }
68
+ /**
69
+ * BTextEditor
70
+ */
71
+ export declare enum BTextEditorExtension {
72
+ Bold = "bold",
73
+ Italic = "italic",
74
+ Strike = "strike",
75
+ Highlight = "highlight",
76
+ Youtube = "youtube",
77
+ Image = "image",
78
+ Audio = "audio",
79
+ FileDownload = "fileDownload",
80
+ QuestionBlank = "questionBlank",
81
+ Blockquote = "blockquote",
82
+ Color = "color",
83
+ BulletList = "bulletList",
84
+ CharacterCount = "characterCount"
85
+ }
86
+ /**
87
+ * BLoadingOverlay
88
+ */
89
+ export declare enum BLoadingOverlaySpinnerSize {
90
+ Small = "sm",
91
+ Medium = "md",
92
+ Large = "lg"
93
+ }
94
+ /**
95
+ * BPagination
96
+ */
97
+ export declare enum BPaginationSize {
98
+ Small = "sm",
99
+ Medium = "md"
100
+ }
@@ -0,0 +1,7 @@
1
+ export declare const ensureVisiblePosition: (parentEl: HTMLElement, menuEl: HTMLElement, menuFixed?: boolean) => void;
2
+ export declare const ensureVisibleX: (parentEl: HTMLElement, menuEl: HTMLElement, menuFixed?: boolean) => void;
3
+ export declare const ensureVisibleY: (parentEl: HTMLElement, menuEl: HTMLElement, menuFixed?: boolean) => void;
4
+ export declare const resetPosition: (parentEl: HTMLElement, menuEl: HTMLElement) => void;
5
+ export declare const scrollToTop: () => void;
6
+ export declare const lockScrollBody: () => void;
7
+ export declare const unlockScrollBody: () => void;
@@ -0,0 +1,2 @@
1
+ export declare const checkIfISOFormat: (str?: string | Date) => boolean;
2
+ export declare const padStartZero: (val: number, maxLength: number) => string;
@@ -0,0 +1,9 @@
1
+ export * from './types';
2
+ export * from './components';
3
+ export * from './composables/Validation';
4
+ export * from './composables/Date';
5
+ export * from './constants/Common';
6
+ export * from './constants/Enums';
7
+ export * from './helpers/ComponentHelper';
8
+ import './assets/styles/main.scss';
9
+ export { default as default } from './plugin';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ import type { I18n } from 'vue-i18n';
3
+ declare const _default: {
4
+ install: (app: App<Element>, options: {
5
+ i18n: I18n;
6
+ }) => void;
7
+ };
8
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export interface DisplayItem {
2
+ text: any;
3
+ value: any;
4
+ cssClass?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface BTabsHeader {
2
+ text: string;
3
+ disabled?: boolean;
4
+ }
@@ -0,0 +1,8 @@
1
+ import type { BToastItemType } from '@/constants/Enums';
2
+ export interface BToastItemModel {
3
+ id?: string;
4
+ text: string;
5
+ icon?: string;
6
+ duration?: number;
7
+ type?: `${BToastItemType}`;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Common';
2
+ export * from './components/BToast';
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@7pmlabs/design-system",
3
+ "version": "0.1.0",
4
+ "exports": {
5
+ ".": {
6
+ "import": "./dist/index.es.js",
7
+ "require": "./dist/index.umd.js"
8
+ },
9
+ "./style.css": {
10
+ "import": "./dist/style.css",
11
+ "require": "./dist/style.css"
12
+ }
13
+ },
14
+ "main": "./dist/index.umd.js",
15
+ "module": "./dist/index.es.js",
16
+ "types": "./dist/types/index.d.ts",
17
+ "files": [
18
+ "dist/**/*"
19
+ ],
20
+ "scripts": {
21
+ "dev": "vite",
22
+ "dev:host": "npm run dev -- --host",
23
+ "preview": "vite preview",
24
+ "publish-package": "npm run build && npm publish",
25
+ "build": "run-p lint build:lib",
26
+ "build:lib": "vite build && npm run build:types",
27
+ "build:types": "vue-tsc --project tsconfig.build-types.json --declaration --emitDeclarationOnly --outDir dist/types ",
28
+ "test:unit": "vitest --environment jsdom --root src/",
29
+ "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
30
+ "eslint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
31
+ "lint": "npm run eslint; npm run type-check",
32
+ "format": "prettier . --write"
33
+ },
34
+ "dependencies": {
35
+ "7pmlabs-icons": "^0.1.2",
36
+ "@babel/core": "^7.20.5",
37
+ "@vueuse/core": "^9.12.0",
38
+ "air-datepicker": "3.3.0",
39
+ "imask": "^6.4.3",
40
+ "lodash": "^4.17.21",
41
+ "moment-mini": "^2.29.4",
42
+ "uuid": "^9.0.0",
43
+ "vue": "^3.3.4",
44
+ "vue-i18n": "^9.2.2"
45
+ },
46
+ "devDependencies": {
47
+ "@intlify/eslint-plugin-vue-i18n": "^2.0.0",
48
+ "@rushstack/eslint-patch": "^1.1.4",
49
+ "@types/jsdom": "^20.0.0",
50
+ "@types/lodash": "^4.14.188",
51
+ "@types/node": "^16.18.4",
52
+ "@types/uuid": "^8.3.4",
53
+ "@typescript-eslint/eslint-plugin": "^5.42.0",
54
+ "@typescript-eslint/parser": "^5.42.0",
55
+ "@vitejs/plugin-vue": "^4.2.3",
56
+ "@vue/eslint-config-prettier": "^7.0.0",
57
+ "@vue/eslint-config-typescript": "^11.0.0",
58
+ "@vue/test-utils": "^2.1.0",
59
+ "@vue/tsconfig": "^0.1.3",
60
+ "autoprefixer": "^10.4.13",
61
+ "eslint": "^8.22.0",
62
+ "eslint-plugin-vue": "^9.3.0",
63
+ "jsdom": "^20.0.1",
64
+ "npm-run-all": "^4.1.5",
65
+ "postcss": "^8.4.19",
66
+ "prettier": "^2.7.1",
67
+ "prettier-plugin-tailwindcss": "^0.2.5",
68
+ "sass": "^1.56.0",
69
+ "tailwindcss": "^3.3.1",
70
+ "typescript": "~4.7.4",
71
+ "vite": "^4.3.5",
72
+ "vitest": "^0.31.1",
73
+ "vue-eslint-parser": "^9.1.0",
74
+ "vue-tsc": "^1.6.4"
75
+ }
76
+ }