@7pmlabs/design-system 0.8.2 → 1.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.
Files changed (78) hide show
  1. package/dist/design-system.mjs +16 -16
  2. package/dist/design-system100.mjs +68 -6
  3. package/dist/design-system100.mjs.map +1 -1
  4. package/dist/design-system101.mjs +6 -67
  5. package/dist/design-system101.mjs.map +1 -1
  6. package/dist/design-system117.mjs +1 -1
  7. package/dist/design-system14.mjs +23 -17
  8. package/dist/design-system14.mjs.map +1 -1
  9. package/dist/design-system15.mjs +60 -25
  10. package/dist/design-system15.mjs.map +1 -1
  11. package/dist/design-system16.mjs +269 -53
  12. package/dist/design-system16.mjs.map +1 -1
  13. package/dist/design-system17.mjs +107 -263
  14. package/dist/design-system17.mjs.map +1 -1
  15. package/dist/design-system18.mjs +112 -112
  16. package/dist/design-system18.mjs.map +1 -1
  17. package/dist/design-system19.mjs +193 -113
  18. package/dist/design-system19.mjs.map +1 -1
  19. package/dist/design-system20.mjs +62 -188
  20. package/dist/design-system20.mjs.map +1 -1
  21. package/dist/design-system21.mjs +38 -69
  22. package/dist/design-system21.mjs.map +1 -1
  23. package/dist/design-system22.mjs +38 -34
  24. package/dist/design-system22.mjs.map +1 -1
  25. package/dist/design-system23.mjs +133 -42
  26. package/dist/design-system23.mjs.map +1 -1
  27. package/dist/design-system24.mjs +550 -129
  28. package/dist/design-system24.mjs.map +1 -1
  29. package/dist/design-system25.mjs +5 -562
  30. package/dist/design-system25.mjs.map +1 -1
  31. package/dist/design-system26.mjs +6 -5
  32. package/dist/design-system26.mjs.map +1 -1
  33. package/dist/design-system27.mjs +4 -5
  34. package/dist/design-system27.mjs.map +1 -1
  35. package/dist/design-system28.mjs +10 -5
  36. package/dist/design-system28.mjs.map +1 -1
  37. package/dist/design-system29.mjs +23 -10
  38. package/dist/design-system29.mjs.map +1 -1
  39. package/dist/design-system40.mjs +63 -45
  40. package/dist/design-system40.mjs.map +1 -1
  41. package/dist/design-system41.mjs +1 -1
  42. package/dist/design-system57.mjs +64 -37
  43. package/dist/design-system57.mjs.map +1 -1
  44. package/dist/design-system62.mjs +1 -1
  45. package/dist/design-system63.mjs +1 -1
  46. package/dist/design-system68.mjs +1 -1
  47. package/dist/design-system69.mjs +1 -1
  48. package/dist/design-system70.mjs +1 -1
  49. package/dist/design-system71.mjs +1 -1
  50. package/dist/design-system72.mjs +1 -1
  51. package/dist/design-system74.mjs +1 -1
  52. package/dist/design-system78.mjs +1 -1
  53. package/dist/design-system79.mjs +2 -2
  54. package/dist/design-system81.mjs +1 -1
  55. package/dist/design-system83.mjs +1 -1
  56. package/dist/design-system83.mjs.map +1 -1
  57. package/dist/design-system85.mjs +2 -2
  58. package/dist/design-system88.mjs +2 -2
  59. package/dist/design-system92.mjs +1 -1
  60. package/dist/design-system93.mjs +1 -1
  61. package/dist/design-system94.mjs +1 -1
  62. package/dist/design-system99.mjs +62 -63
  63. package/dist/design-system99.mjs.map +1 -1
  64. package/dist/style.css +1 -1
  65. package/dist/types/components/BCheckbox.vue.d.ts +31 -1
  66. package/dist/types/components/BCurrencyField.vue.d.ts +4 -4
  67. package/dist/types/components/BDatePicker/BDatePicker.vue.d.ts +3 -3
  68. package/dist/types/components/BImagePicker/BImagePicker.vue.d.ts +1 -1
  69. package/dist/types/components/BMultiSelect.vue.d.ts +2 -2
  70. package/dist/types/components/BOtpField/BOtpField.vue.d.ts +2 -2
  71. package/dist/types/components/BRadio.vue.d.ts +1 -1
  72. package/dist/types/components/BSelect.vue.d.ts +2 -2
  73. package/dist/types/components/BTextField.vue.d.ts +3 -3
  74. package/dist/types/components/BTextarea.vue.d.ts +3 -3
  75. package/dist/types/components/BToast/BToastItem.vue.d.ts +6 -1
  76. package/dist/types/components/BTooltip.vue.d.ts +2 -2
  77. package/dist/types/types/components/BToast.d.ts +1 -0
  78. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { BCheckboxSize } from '@/constants/Enums';
2
+ import { type ValidationRule } from '@/composables/Validation';
2
3
  export interface BCheckboxProps {
3
4
  inputId?: string;
4
5
  modelValue: boolean | Array<string | number>;
@@ -9,6 +10,19 @@ export interface BCheckboxProps {
9
10
  labelOrphan?: boolean;
10
11
  disabled?: boolean;
11
12
  size?: `${BCheckboxSize}`;
13
+ /**
14
+ * Hide the validation error message.
15
+ */
16
+ hideDetails?: boolean;
17
+ /**
18
+ * Array of custom validation rules.
19
+ */
20
+ validationRules?: ValidationRule[];
21
+ /**
22
+ * Validate if the field is left empty.
23
+ */
24
+ required?: boolean;
25
+ requiredErrorMessage?: string;
12
26
  }
13
27
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BCheckboxProps>, {
14
28
  inputId: string;
@@ -17,7 +31,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
17
31
  labelOrphan: boolean;
18
32
  disabled: boolean;
19
33
  size: BCheckboxSize;
20
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ hideDetails: boolean;
35
+ validationRules: any;
36
+ required: boolean;
37
+ requiredErrorMessage: string;
38
+ }>>, {
39
+ validate: () => void;
40
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ change: () => void;
21
42
  "update:modelValue": (value: boolean | (string | number)[]) => void;
22
43
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BCheckboxProps>, {
23
44
  inputId: string;
@@ -26,15 +47,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
26
47
  labelOrphan: boolean;
27
48
  disabled: boolean;
28
49
  size: BCheckboxSize;
50
+ hideDetails: boolean;
51
+ validationRules: any;
52
+ required: boolean;
53
+ requiredErrorMessage: string;
29
54
  }>>> & Readonly<{
55
+ onChange?: () => any;
30
56
  "onUpdate:modelValue"?: (value: boolean | (string | number)[]) => any;
31
57
  }>, {
32
58
  size: "sm" | "md";
33
59
  disabled: boolean;
60
+ required: boolean;
34
61
  label: string;
35
62
  inputId: string;
36
63
  modelValue: boolean | (string | number)[];
37
64
  labelOrphan: boolean;
65
+ hideDetails: boolean;
66
+ validationRules: ValidationRule[];
67
+ requiredErrorMessage: string;
38
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
39
69
  default?(_: {}): any;
40
70
  }>;
@@ -64,14 +64,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
64
64
  required: boolean;
65
65
  label: string;
66
66
  inputId: string;
67
- inputCssClass: string;
67
+ hideDetails: boolean;
68
68
  validationRules: ValidationRule[];
69
+ requiredErrorMessage: string;
70
+ locale: "vi-VN" | "en-US";
71
+ inputCssClass: string;
69
72
  placeholder: string;
70
73
  autocomplete: boolean;
71
- requiredErrorMessage: string;
72
74
  readonly: boolean;
73
- hideDetails: boolean;
74
- locale: "vi-VN" | "en-US";
75
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
76
76
  prependIcon?(_: {}): any;
77
77
  appendIcon?(_: {}): any;
@@ -99,12 +99,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
99
99
  view: "months" | "dates" | "years";
100
100
  inputId: string;
101
101
  modelValue: string | Date | (string | Date)[];
102
+ hideDetails: boolean;
103
+ validationRules: ValidationRule[];
104
+ requiredErrorMessage: string;
102
105
  range: boolean;
103
106
  inputCssClass: string;
104
- validationRules: ValidationRule[];
105
107
  placeholder: string;
106
- requiredErrorMessage: string;
107
- hideDetails: boolean;
108
108
  minDate: string | Date;
109
109
  maxDate: string | Date;
110
110
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -50,9 +50,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
50
50
  required: boolean;
51
51
  label: string;
52
52
  inputId: string;
53
+ hideDetails: boolean;
53
54
  validationRules: ValidationRule[];
54
55
  requiredErrorMessage: string;
55
- hideDetails: boolean;
56
56
  multiple: boolean;
57
57
  maxFileSize: number;
58
58
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -77,10 +77,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
77
77
  required: boolean;
78
78
  label: string;
79
79
  inputId: string;
80
+ hideDetails: boolean;
80
81
  validationRules: ValidationRule[];
81
- placeholder: string;
82
82
  requiredErrorMessage: string;
83
- hideDetails: boolean;
83
+ placeholder: string;
84
84
  valueCssClass: string;
85
85
  menuCssClass: string;
86
86
  showSelectedItemCount: boolean;
@@ -66,10 +66,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
66
  required: boolean;
67
67
  inputId: string;
68
68
  modelValue: string;
69
- inputCssClass: string;
69
+ hideDetails: boolean;
70
70
  validationRules: ValidationRule[];
71
71
  requiredErrorMessage: string;
72
- hideDetails: boolean;
72
+ inputCssClass: string;
73
73
  numInputs: number;
74
74
  focusIndex: number;
75
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -61,9 +61,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
61
61
  inputId: string;
62
62
  modelValue: string | number | boolean;
63
63
  labelOrphan: boolean;
64
+ hideDetails: boolean;
64
65
  validationRules: ValidationRule[];
65
66
  requiredErrorMessage: string;
66
- hideDetails: boolean;
67
67
  inputName: string;
68
68
  labelCssClass: string;
69
69
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
@@ -71,10 +71,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
71
71
  required: boolean;
72
72
  label: string;
73
73
  inputId: string;
74
+ hideDetails: boolean;
74
75
  validationRules: ValidationRule[];
75
- placeholder: string;
76
76
  requiredErrorMessage: string;
77
- hideDetails: boolean;
77
+ placeholder: string;
78
78
  valueCssClass: string;
79
79
  menuCssClass: string;
80
80
  allowInput: boolean;
@@ -84,13 +84,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
84
84
  required: boolean;
85
85
  label: string;
86
86
  inputId: string;
87
- inputCssClass: string;
87
+ hideDetails: boolean;
88
88
  validationRules: ValidationRule[];
89
+ requiredErrorMessage: string;
90
+ inputCssClass: string;
89
91
  placeholder: string;
90
92
  autocomplete: boolean;
91
- requiredErrorMessage: string;
92
93
  readonly: boolean;
93
- hideDetails: boolean;
94
94
  inputHandler: any;
95
95
  inputmode: "text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal";
96
96
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
@@ -63,13 +63,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
63
  required: boolean;
64
64
  label: string;
65
65
  inputId: string;
66
- inputCssClass: string;
66
+ hideDetails: boolean;
67
67
  validationRules: ValidationRule[];
68
+ requiredErrorMessage: string;
69
+ inputCssClass: string;
68
70
  placeholder: string;
69
71
  autocomplete: boolean;
70
- requiredErrorMessage: string;
71
72
  readonly: boolean;
72
- hideDetails: boolean;
73
73
  rows: number;
74
74
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
75
75
  export default _default;
@@ -1,17 +1,20 @@
1
1
  import { BToastItemType } from '@/constants/Enums';
2
2
  export interface Props {
3
3
  text?: string;
4
+ message?: string;
4
5
  type?: `${BToastItemType}`;
5
6
  hideClose?: boolean;
6
7
  }
7
8
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
9
  text: string;
10
+ message: string;
9
11
  type: BToastItemType;
10
12
  hideClose: boolean;
11
13
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
14
  close: () => void;
13
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
16
  text: string;
17
+ message: string;
15
18
  type: BToastItemType;
16
19
  hideClose: boolean;
17
20
  }>>> & Readonly<{
@@ -19,9 +22,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
19
22
  }>, {
20
23
  type: "default" | "error" | "success";
21
24
  text: string;
25
+ message: string;
22
26
  hideClose: boolean;
23
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
24
- default?(_: {}): any;
28
+ text?(_: {}): any;
29
+ message?(_: {}): any;
25
30
  }>;
26
31
  export default _default;
27
32
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -11,13 +11,13 @@ export interface BTooltipProps {
11
11
  openEvent?: `${BTooltipOpenEvent}`;
12
12
  }
13
13
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BTooltipProps>, {
14
- modelValue: boolean;
14
+ modelValue: any;
15
15
  position: BTooltipPosition;
16
16
  openEvent: BTooltipOpenEvent;
17
17
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  "update:modelValue": (value: boolean) => void;
19
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BTooltipProps>, {
20
- modelValue: boolean;
20
+ modelValue: any;
21
21
  position: BTooltipPosition;
22
22
  openEvent: BTooltipOpenEvent;
23
23
  }>>> & Readonly<{
@@ -2,6 +2,7 @@ import type { BToastItemType } from '@/constants/Enums';
2
2
  export interface BToastItemModel {
3
3
  id?: string;
4
4
  text: string;
5
+ message?: string;
5
6
  icon?: string;
6
7
  duration?: number;
7
8
  type?: `${BToastItemType}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7pmlabs/design-system",
3
- "version": "0.8.2",
3
+ "version": "1.0.1",
4
4
  "homepage": "https://github.com/ngphanducthinh/design-system",
5
5
  "sideEffects": [
6
6
  "style.css"