sprintify-ui 0.0.14 → 0.0.16

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 (24) hide show
  1. package/dist/sprintify-ui.es.js +1072 -1098
  2. package/dist/types/src/components/BaseAppDialogs.vue.d.ts +2 -68
  3. package/dist/types/src/components/BaseAppNotifications.vue.d.ts +1 -43
  4. package/dist/types/src/components/BaseAvatar.vue.d.ts +20 -104
  5. package/dist/types/src/components/BaseBoolean.vue.d.ts +7 -59
  6. package/dist/types/src/components/BaseBreadcrumbs.vue.d.ts +7 -59
  7. package/dist/types/src/components/BaseCharacterCounter.vue.d.ts +24 -118
  8. package/dist/types/src/components/BaseCounter.vue.d.ts +20 -104
  9. package/dist/types/src/components/BaseDataTableToggleColumns.vue.d.ts +236 -898
  10. package/dist/types/src/components/BaseDatePicker.vue.d.ts +32 -154
  11. package/dist/types/src/components/BaseDateSelect.vue.d.ts +28 -138
  12. package/dist/types/src/components/BaseInput.vue.d.ts +39 -225
  13. package/dist/types/src/components/BaseLoadingCover.vue.d.ts +46 -188
  14. package/dist/types/src/components/BaseMediaItem.vue.d.ts +12 -82
  15. package/dist/types/src/components/BaseMediaPreview.vue.d.ts +12 -82
  16. package/dist/types/src/components/BaseMenuItem.vue.d.ts +24 -120
  17. package/dist/types/src/components/BaseNavbarItemContent.vue.d.ts +20 -106
  18. package/dist/types/src/components/BasePagination.vue.d.ts +17 -99
  19. package/dist/types/src/components/BaseTextarea.vue.d.ts +40 -182
  20. package/dist/types/src/components/BaseTextareaAutoresize.vue.d.ts +32 -159
  21. package/dist/types/src/svg/BaseSpinnerSmall.vue.d.ts +1 -43
  22. package/package.json +3 -3
  23. package/src/components/BaseInput.stories.js +1 -20
  24. package/src/components/BaseInput.vue +14 -42
@@ -1,160 +1,33 @@
1
- declare const _default: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{
6
- modelValue: string;
7
- placeholder: string;
8
- disabled: boolean;
9
- maxHeight: number;
10
- submitOnEnter: boolean;
11
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
- modelValue: {
13
- default: string;
14
- type: StringConstructor;
15
- };
16
- placeholder: {
17
- default: string;
18
- type: StringConstructor;
19
- };
20
- name: {
21
- required: true;
22
- type: StringConstructor;
23
- };
24
- maxHeight: {
25
- default: number;
26
- type: NumberConstructor;
27
- };
28
- /**
29
- * Setting this to true will trigger the 'submit' event while pressing Enter.
30
- * Users will be able to add a line break while pressing Shift + Enter.
31
- */
32
- submitOnEnter: {
33
- default: boolean;
34
- type: BooleanConstructor;
35
- };
36
- disabled: {
37
- default: boolean;
38
- type: BooleanConstructor;
39
- };
40
- }>> & {
41
- onFocus?: ((...args: any[]) => any) | undefined;
42
- onInput?: ((...args: any[]) => any) | undefined;
43
- onSubmit?: ((...args: any[]) => any) | undefined;
44
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
45
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "placeholder" | "disabled" | "maxHeight" | "submitOnEnter">;
46
- $attrs: {
47
- [x: string]: unknown;
48
- };
49
- $refs: {
50
- [x: string]: unknown;
51
- };
52
- $slots: Readonly<{
53
- [name: string]: import("vue").Slot | undefined;
54
- }>;
55
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
56
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
57
- $emit: (event: "input" | "submit" | "update:modelValue" | "focus", ...args: any[]) => void;
58
- $el: any;
59
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
60
- modelValue: {
61
- default: string;
62
- type: StringConstructor;
63
- };
64
- placeholder: {
65
- default: string;
66
- type: StringConstructor;
67
- };
68
- name: {
69
- required: true;
70
- type: StringConstructor;
71
- };
72
- maxHeight: {
73
- default: number;
74
- type: NumberConstructor;
75
- };
76
- /**
77
- * Setting this to true will trigger the 'submit' event while pressing Enter.
78
- * Users will be able to add a line break while pressing Shift + Enter.
79
- */
80
- submitOnEnter: {
81
- default: boolean;
82
- type: BooleanConstructor;
83
- };
84
- disabled: {
85
- default: boolean;
86
- type: BooleanConstructor;
87
- };
88
- }>> & {
89
- onFocus?: ((...args: any[]) => any) | undefined;
90
- onInput?: ((...args: any[]) => any) | undefined;
91
- onSubmit?: ((...args: any[]) => any) | undefined;
92
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
93
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "submit" | "update:modelValue" | "focus")[], string, {
94
- modelValue: string;
95
- placeholder: string;
96
- disabled: boolean;
97
- maxHeight: number;
98
- submitOnEnter: boolean;
99
- }, {}, string> & {
100
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
101
- created?: ((() => void) | (() => void)[]) | undefined;
102
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
103
- mounted?: ((() => void) | (() => void)[]) | undefined;
104
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
105
- updated?: ((() => void) | (() => void)[]) | undefined;
106
- activated?: ((() => void) | (() => void)[]) | undefined;
107
- deactivated?: ((() => void) | (() => void)[]) | undefined;
108
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
109
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
110
- destroyed?: ((() => void) | (() => void)[]) | undefined;
111
- unmounted?: ((() => void) | (() => void)[]) | undefined;
112
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
113
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
114
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
115
- };
116
- $forceUpdate: () => void;
117
- $nextTick: typeof import("vue").nextTick;
118
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
119
- } & Readonly<import("vue").ExtractPropTypes<{
120
- modelValue: {
121
- default: string;
122
- type: StringConstructor;
123
- };
124
- placeholder: {
125
- default: string;
126
- type: StringConstructor;
127
- };
128
- name: {
129
- required: true;
130
- type: StringConstructor;
131
- };
132
- maxHeight: {
133
- default: number;
134
- type: NumberConstructor;
135
- };
136
- /**
137
- * Setting this to true will trigger the 'submit' event while pressing Enter.
138
- * Users will be able to add a line break while pressing Shift + Enter.
139
- */
140
- submitOnEnter: {
141
- default: boolean;
142
- type: BooleanConstructor;
143
- };
144
- disabled: {
145
- default: boolean;
146
- type: BooleanConstructor;
147
- };
148
- }>> & {
149
- onFocus?: ((...args: any[]) => any) | undefined;
150
- onInput?: ((...args: any[]) => any) | undefined;
151
- onSubmit?: ((...args: any[]) => any) | undefined;
152
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
153
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
154
- __isFragment?: undefined;
155
- __isTeleport?: undefined;
156
- __isSuspense?: undefined;
157
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ default: string;
4
+ type: StringConstructor;
5
+ };
6
+ placeholder: {
7
+ default: string;
8
+ type: StringConstructor;
9
+ };
10
+ name: {
11
+ required: true;
12
+ type: StringConstructor;
13
+ };
14
+ maxHeight: {
15
+ default: number;
16
+ type: NumberConstructor;
17
+ };
18
+ /**
19
+ * Setting this to true will trigger the 'submit' event while pressing Enter.
20
+ * Users will be able to add a line break while pressing Shift + Enter.
21
+ */
22
+ submitOnEnter: {
23
+ default: boolean;
24
+ type: BooleanConstructor;
25
+ };
26
+ disabled: {
27
+ default: boolean;
28
+ type: BooleanConstructor;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "submit" | "update:modelValue" | "focus")[], "input" | "submit" | "update:modelValue" | "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
158
31
  modelValue: {
159
32
  default: string;
160
33
  type: StringConstructor;
@@ -188,11 +61,11 @@ declare const _default: {
188
61
  onInput?: ((...args: any[]) => any) | undefined;
189
62
  onSubmit?: ((...args: any[]) => any) | undefined;
190
63
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
191
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "submit" | "update:modelValue" | "focus")[], "input" | "submit" | "update:modelValue" | "focus", {
64
+ }, {
192
65
  modelValue: string;
193
66
  placeholder: string;
194
67
  disabled: boolean;
195
68
  maxHeight: number;
196
69
  submitOnEnter: boolean;
197
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
70
+ }>;
198
71
  export default _default;
@@ -1,44 +1,2 @@
1
- declare const _default: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
6
- $attrs: {
7
- [x: string]: unknown;
8
- };
9
- $refs: {
10
- [x: string]: unknown;
11
- };
12
- $slots: Readonly<{
13
- [name: string]: import("vue").Slot | undefined;
14
- }>;
15
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
16
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
17
- $emit: (event: string, ...args: any[]) => void;
18
- $el: any;
19
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
20
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
21
- created?: ((() => void) | (() => void)[]) | undefined;
22
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
23
- mounted?: ((() => void) | (() => void)[]) | undefined;
24
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
25
- updated?: ((() => void) | (() => void)[]) | undefined;
26
- activated?: ((() => void) | (() => void)[]) | undefined;
27
- deactivated?: ((() => void) | (() => void)[]) | undefined;
28
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
29
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
30
- destroyed?: ((() => void) | (() => void)[]) | undefined;
31
- unmounted?: ((() => void) | (() => void)[]) | undefined;
32
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
33
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
34
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
35
- };
36
- $forceUpdate: () => void;
37
- $nextTick: typeof import("vue").nextTick;
38
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
39
- } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
40
- __isFragment?: undefined;
41
- __isTeleport?: undefined;
42
- __isSuspense?: undefined;
43
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
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<{}>>, {}>;
44
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "docs:dev": "vitepress dev docs",
@@ -15,7 +15,7 @@
15
15
  "@tailwindcss/line-clamp": "^0.4.2",
16
16
  "@tailwindcss/typography": "^0.5.8",
17
17
  "@vueuse/core": "^9.0.0",
18
- "axios": "^1.0.0",
18
+ "axios": "^0.26.1",
19
19
  "lodash": "^4.17.21",
20
20
  "luxon": "^3.0.0",
21
21
  "pinia": "^2.0.0",
@@ -54,7 +54,7 @@
54
54
  "@vue/eslint-config-typescript": "^11.0.2",
55
55
  "@vueuse/core": "^9.5.0",
56
56
  "autoprefixer": "^10.4.13",
57
- "axios": "^1.1.3",
57
+ "axios": "^0.26.1",
58
58
  "babel-loader": "^8.3.0",
59
59
  "eslint": "^8.27.0",
60
60
  "eslint-config-prettier": "^8.5.0",
@@ -7,12 +7,7 @@ export default {
7
7
  required: true,
8
8
  type: 'text',
9
9
  name: 'name',
10
- },
11
- argTypes: {
12
- iconPosition: {
13
- type: 'select',
14
- options: ['left', 'right'],
15
- },
10
+ class: 'w-full',
16
11
  },
17
12
  };
18
13
 
@@ -36,20 +31,6 @@ Demo.args = {
36
31
  placeholder: 'Enter your name',
37
32
  };
38
33
 
39
- export const IconLeft = Template.bind({});
40
- IconLeft.args = {
41
- icon: 'heroicons:phone-20-solid',
42
- iconPosition: 'left',
43
- placeholder: 'Enter your phone',
44
- };
45
-
46
- export const IconRight = Template.bind({});
47
- IconRight.args = {
48
- icon: 'heroicons:phone-20-solid',
49
- iconPosition: 'right',
50
- placeholder: 'Enter your phone',
51
- };
52
-
53
34
  export const Number = Template.bind({});
54
35
  Number.args = {
55
36
  type: 'number',
@@ -1,43 +1,23 @@
1
1
  <template>
2
- <div class="inline-flex rounded border border-slate-300">
3
- <div
4
- v-if="icon && iconPosition == 'left'"
5
- class="flex shrink-0 items-center justify-center rounded-l border-r border-slate-300 bg-slate-100 px-3 text-slate-600"
6
- >
7
- <BaseIcon icon="heroicons:phone-20-solid" />
8
- </div>
9
- <input
10
- ref="input"
11
- :value="modelValue"
12
- :type="type"
13
- :name="name"
14
- :step="step"
15
- :disabled="disabled"
16
- :placeholder="placeholder"
17
- :required="required"
18
- class="border-none bg-transparent outline-none focus:z-[1] focus:ring-2 focus:ring-primary-600 focus:ring-offset-1 disabled:cursor-not-allowed disabled:text-slate-300"
19
- :class="{
20
- 'rounded-r': icon && iconPosition == 'left',
21
- 'rounded-l': icon && iconPosition == 'right',
22
- rounded: !icon,
23
- }"
24
- :autocomplete="autocomplete ? 'on' : 'off'"
25
- @keydown.enter="onEnter"
26
- @input="$emit('update:modelValue', transformInputValue($event))"
27
- />
28
- <div
29
- v-if="icon && iconPosition == 'right'"
30
- class="flex shrink-0 items-center justify-center rounded-r border-l border-slate-300 bg-slate-100 px-3 text-slate-600"
31
- >
32
- <BaseIcon icon="heroicons:phone-20-solid" />
33
- </div>
34
- </div>
2
+ <input
3
+ ref="input"
4
+ :value="modelValue"
5
+ :type="type"
6
+ :name="name"
7
+ :step="step"
8
+ :disabled="disabled"
9
+ :placeholder="placeholder"
10
+ :required="required"
11
+ class="rounded border-slate-300 disabled:cursor-not-allowed disabled:text-slate-300"
12
+ :autocomplete="autocomplete ? 'on' : 'off'"
13
+ @keydown.enter="onEnter"
14
+ @input="$emit('update:modelValue', transformInputValue($event))"
15
+ />
35
16
  </template>
36
17
 
37
18
  <script lang="ts" setup>
38
19
  import { get, isNumber, isString, trim } from 'lodash';
39
20
  import { PropType } from 'vue';
40
- import { BaseIcon } from './index';
41
21
 
42
22
  const props = defineProps({
43
23
  modelValue: {
@@ -79,14 +59,6 @@ const props = defineProps({
79
59
  default: false,
80
60
  type: Boolean,
81
61
  },
82
- icon: {
83
- default: null,
84
- type: String,
85
- },
86
- iconPosition: {
87
- default: 'left',
88
- type: String as PropType<'left' | 'right'>,
89
- },
90
62
  });
91
63
 
92
64
  defineEmits(['update:modelValue']);