sprintify-ui 0.0.77 → 0.0.78

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.
@@ -148,9 +148,9 @@ declare const _default: import("vue").DefineComponent<{
148
148
  placeholder: string;
149
149
  disabled: boolean;
150
150
  hasError: boolean;
151
+ autocomplete: boolean;
151
152
  min: number;
152
153
  max: number;
153
- autocomplete: boolean;
154
154
  preventSubmit: boolean;
155
155
  iconLeft: string;
156
156
  iconRight: string;
@@ -430,10 +430,10 @@ declare const _default: import("vue").DefineComponent<{
430
430
  };
431
431
  }>>, {
432
432
  props: Record<string, any>;
433
+ inputClass: string;
433
434
  component: string;
434
435
  defaultValue: string | number | boolean;
435
436
  locales: Locales;
436
- inputClass: string;
437
437
  layout: string;
438
438
  }>;
439
439
  export default _default;
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  };
12
12
  actionsVisible: {
13
13
  default: string;
14
- type: PropType<"toggle" | "always">;
14
+ type: PropType<"always" | "toggle">;
15
15
  };
16
16
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  item: {
@@ -24,12 +24,12 @@ declare const _default: import("vue").DefineComponent<{
24
24
  };
25
25
  actionsVisible: {
26
26
  default: string;
27
- type: PropType<"toggle" | "always">;
27
+ type: PropType<"always" | "toggle">;
28
28
  };
29
29
  }>> & {
30
30
  onClick?: ((...args: any[]) => any) | undefined;
31
31
  }, {
32
32
  dark: boolean;
33
- actionsVisible: "toggle" | "always";
33
+ actionsVisible: "always" | "toggle";
34
34
  }>;
35
35
  export default _default;
@@ -9,8 +9,8 @@ declare const _default: {
9
9
  modelValue: Option | undefined;
10
10
  disabled: boolean;
11
11
  hasError: boolean;
12
- labelClass: string;
13
12
  inputClass: string;
13
+ labelClass: string;
14
14
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
15
  modelValue: {
16
16
  default: undefined;
@@ -54,7 +54,7 @@ declare const _default: {
54
54
  };
55
55
  }>> & {
56
56
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "hasError" | "labelClass" | "inputClass">;
57
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "hasError" | "inputClass" | "labelClass">;
58
58
  $attrs: {
59
59
  [x: string]: unknown;
60
60
  };
@@ -116,8 +116,8 @@ declare const _default: {
116
116
  modelValue: Option | undefined;
117
117
  disabled: boolean;
118
118
  hasError: boolean;
119
- labelClass: string;
120
119
  inputClass: string;
120
+ labelClass: string;
121
121
  }, {}, string> & {
122
122
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
123
123
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -233,8 +233,8 @@ declare const _default: {
233
233
  modelValue: Option | undefined;
234
234
  disabled: boolean;
235
235
  hasError: boolean;
236
- labelClass: string;
237
236
  inputClass: string;
237
+ labelClass: string;
238
238
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
239
239
  $slots: {
240
240
  option: (_: {
@@ -79,7 +79,7 @@ declare const _default: {
79
79
  }>;
80
80
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
81
81
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
82
- $emit: (event: "update:modelValue" | "typing" | "focus" | "scrollBottom", ...args: any[]) => void;
82
+ $emit: (event: "update:modelValue" | "focus" | "typing" | "scrollBottom", ...args: any[]) => void;
83
83
  $el: any;
84
84
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
85
85
  modelValue: {
@@ -135,7 +135,7 @@ declare const _default: {
135
135
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
136
136
  onTyping?: ((...args: any[]) => any) | undefined;
137
137
  onScrollBottom?: ((...args: any[]) => any) | undefined;
138
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "typing" | "focus" | "scrollBottom")[], string, {
138
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], string, {
139
139
  filter: (option: NormalizedOption) => boolean;
140
140
  required: boolean;
141
141
  name: string;
@@ -276,7 +276,7 @@ declare const _default: {
276
276
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
277
277
  onTyping?: ((...args: any[]) => any) | undefined;
278
278
  onScrollBottom?: ((...args: any[]) => any) | undefined;
279
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "typing" | "focus" | "scrollBottom")[], "update:modelValue" | "typing" | "focus" | "scrollBottom", {
279
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], "update:modelValue" | "focus" | "typing" | "scrollBottom", {
280
280
  filter: (option: NormalizedOption) => boolean;
281
281
  required: boolean;
282
282
  name: string;
@@ -69,7 +69,7 @@ declare const _default: {
69
69
  }>;
70
70
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
71
71
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
72
- $emit: (event: "update:modelValue" | "typing" | "focus" | "scrollBottom", ...args: any[]) => void;
72
+ $emit: (event: "update:modelValue" | "focus" | "typing" | "scrollBottom", ...args: any[]) => void;
73
73
  $el: any;
74
74
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
75
75
  modelValue: {
@@ -117,7 +117,7 @@ declare const _default: {
117
117
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
118
118
  onTyping?: ((...args: any[]) => any) | undefined;
119
119
  onScrollBottom?: ((...args: any[]) => any) | undefined;
120
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "typing" | "focus" | "scrollBottom")[], string, {
120
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], string, {
121
121
  required: boolean;
122
122
  placeholder: string;
123
123
  disabled: boolean;
@@ -240,7 +240,7 @@ declare const _default: {
240
240
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
241
241
  onTyping?: ((...args: any[]) => any) | undefined;
242
242
  onScrollBottom?: ((...args: any[]) => any) | undefined;
243
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "typing" | "focus" | "scrollBottom")[], "update:modelValue" | "typing" | "focus" | "scrollBottom", {
243
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "focus" | "typing" | "scrollBottom")[], "update:modelValue" | "focus" | "typing" | "scrollBottom", {
244
244
  required: boolean;
245
245
  placeholder: string;
246
246
  disabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -2,9 +2,25 @@ import { createFieldStory, options } from '../../.storybook/utils';
2
2
  import BaseAutocomplete from './BaseAutocomplete.vue';
3
3
  import ShowValue from '@/../.storybook/components/ShowValue.vue';
4
4
 
5
+ const sizes = ['xs', 'sm', 'base'];
6
+
5
7
  export default {
6
8
  title: 'Form/BaseAutocomplete',
7
9
  component: BaseAutocomplete,
10
+ argTypes: {
11
+ size: {
12
+ control: {
13
+ type: 'select',
14
+ options: sizes,
15
+ },
16
+ },
17
+ dropdownShow: {
18
+ control: {
19
+ type: 'select',
20
+ options: ['always', 'focus'],
21
+ },
22
+ },
23
+ },
8
24
  args: {
9
25
  labelKey: 'label',
10
26
  valueKey: 'value',
@@ -28,6 +44,17 @@ const Template = (args) => ({
28
44
  export const Demo = Template.bind({});
29
45
  Demo.args = {};
30
46
 
47
+ export const AlwaysShowDropdown = Template.bind({});
48
+ AlwaysShowDropdown.args = {
49
+ inline: true,
50
+ dropdownShow: 'always',
51
+ };
52
+
53
+ export const NoFocus = Template.bind({});
54
+ NoFocus.args = {
55
+ visibleFocus: false,
56
+ };
57
+
31
58
  export const Disabled = Template.bind({});
32
59
  Disabled.args = {
33
60
  options: [],
@@ -40,6 +67,25 @@ Loading.args = {
40
67
  loading: true,
41
68
  };
42
69
 
70
+ export const Inline = Template.bind({});
71
+ Inline.args = {
72
+ inline: true,
73
+ };
74
+
75
+ export const Sizes = (args) => ({
76
+ components: { BaseAutocomplete },
77
+ setup() {
78
+ const value = ref(null);
79
+ return { args, sizes, value };
80
+ },
81
+ template: `
82
+ <div v-for="size in sizes" class="mb-1">
83
+ <p class="text-xs text-slate-600 leading-tight">{{ size }}</p>
84
+ <BaseAutocomplete v-model="value" v-bind="args" :size="size"></BaseAutocomplete>
85
+ </div>
86
+ `,
87
+ });
88
+
43
89
  export const SlotOption = (args) => ({
44
90
  components: { BaseAutocomplete },
45
91
  setup() {