@witchcraft/ui 0.1.1 → 0.1.3

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 (122) hide show
  1. package/dist/module.cjs +5 -0
  2. package/dist/module.d.ts +36 -0
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +2 -1
  5. package/dist/runtime/assets/utils.css +1 -1
  6. package/dist/runtime/components/Aria/Aria.vue +9 -5
  7. package/dist/runtime/components/Focus.stories.d.ts +11 -0
  8. package/dist/runtime/components/Focus.stories.js +53 -0
  9. package/dist/runtime/components/Icon/Icon.vue +30 -10
  10. package/dist/runtime/components/LibButton/LibButton.stories.d.ts +12 -0
  11. package/dist/runtime/components/LibButton/LibButton.stories.js +94 -0
  12. package/dist/runtime/components/LibButton/LibButton.vue +72 -58
  13. package/dist/runtime/components/LibCheckbox/LibCheckbox.stories.d.ts +14 -0
  14. package/dist/runtime/components/LibCheckbox/LibCheckbox.stories.js +29 -0
  15. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue +74 -48
  16. package/dist/runtime/components/LibColorInput/LibColorInput.stories.d.ts +7 -0
  17. package/dist/runtime/components/LibColorInput/LibColorInput.stories.js +58 -0
  18. package/dist/runtime/components/LibColorInput/LibColorInput.vue +107 -63
  19. package/dist/runtime/components/LibColorPicker/LibColorPicker.stories.d.ts +9 -0
  20. package/dist/runtime/components/LibColorPicker/LibColorPicker.stories.js +68 -0
  21. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue +352 -271
  22. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.stories.d.ts +7 -0
  23. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.stories.js +36 -0
  24. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue +56 -32
  25. package/dist/runtime/components/LibDatePicker/LibDatePicker.stories.d.ts +11 -0
  26. package/dist/runtime/components/LibDatePicker/LibDatePicker.stories.js +98 -0
  27. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue +38 -17
  28. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue +82 -53
  29. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue +67 -50
  30. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue +8 -7
  31. package/dist/runtime/components/LibDebug/LibDebug.stories.d.ts +9 -0
  32. package/dist/runtime/components/LibDebug/LibDebug.stories.js +46 -0
  33. package/dist/runtime/components/LibDebug/LibDebug.vue +70 -42
  34. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue +31 -18
  35. package/dist/runtime/components/LibFileInput/LibFileInput.stories.d.ts +10 -0
  36. package/dist/runtime/components/LibFileInput/LibFileInput.stories.js +63 -0
  37. package/dist/runtime/components/LibFileInput/LibFileInput.vue +156 -113
  38. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.stories.d.ts +33 -0
  39. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.stories.js +384 -0
  40. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +241 -215
  41. package/dist/runtime/components/LibLabel/LibLabel.stories.d.ts +6 -0
  42. package/dist/runtime/components/LibLabel/LibLabel.stories.js +25 -0
  43. package/dist/runtime/components/LibLabel/LibLabel.vue +46 -30
  44. package/dist/runtime/components/LibMultiValues/LibMultiValues.stories.d.ts +23 -0
  45. package/dist/runtime/components/LibMultiValues/LibMultiValues.stories.js +61 -0
  46. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue +58 -44
  47. package/dist/runtime/components/LibNotifications/LibNotification.stories.d.ts +15 -0
  48. package/dist/runtime/components/LibNotifications/LibNotification.stories.js +126 -0
  49. package/dist/runtime/components/LibNotifications/LibNotification.vue +48 -32
  50. package/dist/runtime/components/LibNotifications/LibNotifications.stories.d.ts +6 -0
  51. package/dist/runtime/components/LibNotifications/LibNotifications.stories.js +109 -0
  52. package/dist/runtime/components/LibNotifications/LibNotifications.vue +83 -63
  53. package/dist/runtime/components/LibPagination/LibPagination.stories.d.ts +6 -0
  54. package/dist/runtime/components/LibPagination/LibPagination.stories.js +40 -0
  55. package/dist/runtime/components/LibPagination/LibPagination.vue +111 -67
  56. package/dist/runtime/components/LibPalette/LibPalette.stories.d.ts +6 -0
  57. package/dist/runtime/components/LibPalette/LibPalette.stories.js +20 -0
  58. package/dist/runtime/components/LibPalette/LibPalette.vue +23 -20
  59. package/dist/runtime/components/LibPopup/LibPopup.stories.d.ts +14 -0
  60. package/dist/runtime/components/LibPopup/LibPopup.stories.js +147 -0
  61. package/dist/runtime/components/LibPopup/LibPopup.vue +351 -314
  62. package/dist/runtime/components/LibProgressBar/LibProgressBar.stories.d.ts +10 -0
  63. package/dist/runtime/components/LibProgressBar/LibProgressBar.stories.js +81 -0
  64. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue +91 -70
  65. package/dist/runtime/components/LibRecorder/LibRecorder.stories.d.ts +19 -0
  66. package/dist/runtime/components/LibRecorder/LibRecorder.stories.js +63 -0
  67. package/dist/runtime/components/LibRecorder/LibRecorder.vue +177 -133
  68. package/dist/runtime/components/LibRoot/LibRoot.vue +100 -73
  69. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.stories.d.ts +26 -0
  70. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.stories.js +78 -0
  71. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +77 -49
  72. package/dist/runtime/components/LibSuggestions/LibSuggestions.stories.d.ts +27 -0
  73. package/dist/runtime/components/LibSuggestions/LibSuggestions.stories.js +112 -0
  74. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue +156 -123
  75. package/dist/runtime/components/LibTable/LibTable.stories.d.ts +16 -0
  76. package/dist/runtime/components/LibTable/LibTable.stories.js +156 -0
  77. package/dist/runtime/components/LibTable/LibTable.vue +99 -63
  78. package/dist/runtime/components/Reset.stories.d.ts +5 -0
  79. package/dist/runtime/components/Reset.stories.js +19 -0
  80. package/dist/runtime/components/Scrolling.stories.d.ts +6 -0
  81. package/dist/runtime/components/Scrolling.stories.js +44 -0
  82. package/dist/runtime/components/Template/NAME.vue +36 -15
  83. package/dist/runtime/components/TestControls/TestControls.vue +9 -6
  84. package/dist/runtime/composables/useScrollNearContainerEdges.stories.d.ts +7 -0
  85. package/dist/runtime/composables/useScrollNearContainerEdges.stories.js +85 -0
  86. package/dist/types.d.mts +6 -2
  87. package/dist/types.d.ts +7 -0
  88. package/package.json +11 -5
  89. package/src/module.ts +2 -1
  90. package/src/runtime/assets/utils.css +5 -5
  91. package/src/runtime/components/LibButton/LibButton.vue +2 -6
  92. package/src/runtime/nuxt/plugins/vue-plugin.ts +1 -1
  93. package/dist/runtime/components/Aria/Aria.vue.d.ts +0 -5
  94. package/dist/runtime/components/Icon/Icon.vue.d.ts +0 -21
  95. package/dist/runtime/components/LibButton/LibButton.vue.d.ts +0 -36
  96. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +0 -42
  97. package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +0 -63
  98. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +0 -61
  99. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +0 -22
  100. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +0 -40
  101. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +0 -34
  102. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +0 -34
  103. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue.d.ts +0 -22
  104. package/dist/runtime/components/LibDebug/LibDebug.vue.d.ts +0 -32
  105. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue.d.ts +0 -22
  106. package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +0 -43
  107. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +0 -165
  108. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +0 -27
  109. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +0 -29
  110. package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +0 -17
  111. package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +0 -13
  112. package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +0 -104
  113. package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +0 -14
  114. package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +0 -46
  115. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +0 -41
  116. package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +0 -77
  117. package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +0 -41
  118. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +0 -35
  119. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +0 -94
  120. package/dist/runtime/components/LibTable/LibTable.vue.d.ts +0 -45
  121. package/dist/runtime/components/Template/NAME.vue.d.ts +0 -17
  122. package/dist/runtime/components/TestControls/TestControls.vue.d.ts +0 -5
@@ -1,7 +1,6 @@
1
1
  <template>
2
2
  <!-- todo aria errors -->
3
- <div :class="twMerge(
4
- `file-input
3
+ <div :class="twMerge(`file-input
5
4
  justify-center
6
5
  border-2
7
6
  border-dashed
@@ -9,26 +8,25 @@
9
8
  focus-outline-within
10
9
  transition-[border-color,box-shadow]
11
10
  ease-out`,
12
- compact && `rounded-sm`,
13
- !compact && `flex w-full flex-col items-center gap-2 rounded-xl p-2 `,
14
- errors.length > 0 && errorFlashing && `border-danger-400`,
15
- $.wrapperAttrs.class
16
- )"
17
- v-bind="{ ...$.wrapperAttrs, class: void 0 }"
11
+ compact && `rounded-sm`,
12
+ !compact && `flex w-full flex-col items-center gap-2 rounded-xl p-2 `,
13
+ errors.length > 0 && errorFlashing && `border-danger-400`,
14
+ ( $.wrapperAttrs as any ).class
15
+ )"
16
+ v-bind="{...$.wrapperAttrs, class:undefined}"
18
17
  >
19
- <div :class="twMerge(
20
- `
18
+ <div :class="twMerge( `
21
19
  file-input--wrapper
22
20
  relative justify-center`,
23
- compact && `flex gap-2`,
24
- !compact && `input-wrapper
21
+ compact && `flex gap-2`,
22
+ !compact && `input-wrapper
25
23
  flex flex-col items-center
26
24
  `
27
- )"
25
+ )"
28
26
  >
29
27
  <label
30
28
  :for="id ?? fallbackId"
31
- :class="twMerge(`
29
+ :class="twMerge( `
32
30
  file-input--label
33
31
  pointer-events-none
34
32
  flex
@@ -42,7 +40,14 @@
42
40
  </slot>
43
41
  <slot name="label">
44
42
  {{
45
- compact ? multiple ? t("file-input.compact-choose-file-plural") : t("file-input.compact-choose-file") : multiple ? t("file-input.non-compact-choose-file-plural") : t("file-input.non-compact-choose-file")
43
+ (compact
44
+ ? multiple
45
+ ? t("file-input.compact-choose-file-plural")
46
+ : t("file-input.compact-choose-file")
47
+ : multiple
48
+ ? t("file-input.non-compact-choose-file-plural")
49
+ : t("file-input.non-compact-choose-file")
50
+ )
46
51
  }}
47
52
  </slot>
48
53
  <span
@@ -60,8 +65,7 @@
60
65
  </label>
61
66
  <input
62
67
  :id="id ?? fallbackId"
63
- :class="twMerge(
64
- `
68
+ :class="twMerge(`
65
69
  file-input--input
66
70
  absolute
67
71
  inset-0
@@ -70,28 +74,27 @@
70
74
  text-[0]
71
75
  opacity-0
72
76
  `,
73
- $.inputAttrs?.class
74
- )"
77
+ ($.inputAttrs as any)?.class
78
+ )"
75
79
  type="file"
76
80
  :accept="formats.join(', ')"
77
81
  :multiple="multiple"
78
82
  ref="el"
79
- v-bind="{ ...$.inputAttrs, class: void 0 }"
80
- @input="inputFile"
81
- @click="$event.target.value = null"
83
+ v-bind="{...$.inputAttrs, class:undefined}"
84
+ @input="(inputFile as any)"
85
+ @click="($event.target! as any).value = null"
82
86
  >
83
87
  <!-- click event allows event to fire even if the user picks the same file -->
84
88
  </div>
85
89
  <div v-if="!compact && files.length > 0"
86
- :class="twMerge(
87
- `file-input--previews
90
+ :class="twMerge(`file-input--previews
88
91
  flex items-stretch justify-center gap-2 flex-wrap
89
92
  `,
90
- multiple && `
93
+ multiple && `
91
94
  w-full
92
95
  `,
93
- $.previewsAttrs?.class
94
- )"
96
+ ($.previewsAttrs as any)?.class
97
+ )"
95
98
  >
96
99
  <div class="file-input--preview-spacer flex-1"/>
97
100
  <div class="file-input--preview-wrapper
@@ -160,96 +163,136 @@
160
163
  </div>
161
164
  </div>
162
165
  </template>
166
+ <script setup lang="ts">
167
+ import { computed, type HTMLAttributes, type InputHTMLAttributes,ref, shallowReactive, watch } from "vue"
168
+
169
+ import { useDivideAttrs } from "../../composables/useDivideAttrs.js"
170
+ import { useInjectedI18n } from "../../composables/useInjectedI18n.js"
171
+ import { type FileInputError } from "../../types/index.js"
172
+ import { twMerge } from "../../utils/twMerge.js"
173
+ import Icon from "../Icon/Icon.vue"
174
+ import LibButton from "../LibButton/LibButton.vue"
175
+ import { getFallbackId,type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js"
176
+
177
+ const t = useInjectedI18n()
178
+ const el = ref<null | HTMLInputElement>(null)
179
+ type Entry = { file: File, isImg: boolean }
180
+
181
+ const files = shallowReactive<(Entry)[]>([])
182
+ const errors = shallowReactive<(FileInputError)[]>([])
183
+ const errorFlashing = ref(false)
163
184
 
164
- <script setup>
165
- import { computed, ref, shallowReactive, watch } from "vue";
166
- import { useDivideAttrs } from "../../composables/useDivideAttrs.js";
167
- import { useInjectedI18n } from "../../composables/useInjectedI18n.js";
168
- import {} from "../../types/index.js";
169
- import { twMerge } from "../../utils/twMerge.js";
170
- import Icon from "../Icon/Icon.vue";
171
- import LibButton from "../LibButton/LibButton.vue";
172
- import { getFallbackId } from "../shared/props.js";
173
- const t = useInjectedI18n();
174
- const el = ref(null);
175
- const files = shallowReactive([]);
176
- const errors = shallowReactive([]);
177
- const errorFlashing = ref(false);
178
185
  watch(files, () => {
179
- emits("input", files.map((entry) => entry.file));
180
- });
186
+ emits("input", files.map(entry => entry.file))
187
+ })
181
188
  watch(errors, () => {
182
- if (errors.length > 0) {
183
- errorFlashing.value = true;
184
- setTimeout(() => {
185
- errorFlashing.value = false;
186
- }, 500);
187
- emits("errors", errors);
188
- }
189
- });
189
+ if (errors.length > 0) {
190
+ errorFlashing.value = true
191
+ setTimeout(() => {
192
+ errorFlashing.value = false
193
+ }, 500)
194
+ emits("errors", errors)
195
+ }
196
+ })
197
+
190
198
  defineOptions({
191
- name: "lib-file-input",
192
- inheritAttrs: false
193
- });
194
- const $ = useDivideAttrs(["wrapper", "input", "previews"]);
195
- const emits = defineEmits(["input", "errors"]);
196
- const fallbackId = getFallbackId();
197
- const props = defineProps({
198
- id: { type: String, required: false },
199
- multiple: { type: Boolean, required: false, default: false },
200
- formats: { type: Array, required: false, default: () => ["image/*", ".jpeg", ".jpg", ".png"] },
201
- compact: { type: Boolean, required: false, default: false }
202
- });
203
- const mimeTypes = computed(() => props.formats?.filter((_) => !_.startsWith(".")) ?? []);
204
- const extensions = computed(() => props.formats?.filter((_) => _.startsWith(".")) ?? []);
205
- const getSrc = (file) => {
206
- const src = URL.createObjectURL(file);
207
- return src;
208
- };
209
- const removeFile = (entry) => {
210
- const index = files.indexOf(entry);
211
- files.splice(index, 1);
212
- };
213
- const extensionsList = computed(() => extensions.value.join(", "));
214
- const inputFile = async (e) => {
215
- e.preventDefault();
216
- if (el.value.files) {
217
- const errs = [];
218
- for (const file of el.value.files) {
219
- const isImg = file.type.startsWith("image");
220
- const byPassValidation = props.formats.length === 0;
221
- const isValidMimeType = mimeTypes.value.find((_) => _.endsWith("/*") ? file.type.startsWith(_.slice(0, -2)) : _ === file.type) !== void 0;
222
- const isValidExtension = extensions.value.find((_) => file.name.endsWith(_)) !== void 0;
223
- if (!byPassValidation && (!isValidMimeType || !isValidExtension)) {
224
- const extension = file.name.match(/.*(\..*)/)?.[1] ?? "Unknown";
225
- const type = file.type === "" ? "" : ` (${file.type})`;
226
- const message = `File type ${extension}${type} is not allowed. Allowed file types are: ${extensionsList.value}.`;
227
- const err = new Error(message);
228
- err.file = file;
229
- err.isValidExtension = isValidExtension;
230
- err.isValidMimeType = isValidMimeType;
231
- errs.push(err);
232
- continue;
233
- }
234
- if (errs.length > 0) continue;
235
- if (!files.find((_) => _.file === file)) {
236
- if (props.multiple || files.length < 1) {
237
- files.push({ file, isImg });
238
- } else {
239
- files.splice(0, files.length, { file, isImg });
240
- }
241
- }
242
- }
243
- if (errs.length > 0) {
244
- errors.splice(0, errors.length, ...errs);
245
- return false;
246
- } else if (errors.length > 0) {
247
- errors.splice(0, errors.length);
248
- }
249
- }
250
- };
199
+ name: "lib-file-input",
200
+ inheritAttrs: false,
201
+ })
202
+ const $ = useDivideAttrs(["wrapper", "input", "previews"] as const)
203
+
204
+ const emits = defineEmits<{
205
+ (e: "input", val: File[]): void
206
+ (e: "errors", val: FileInputError[]): void
207
+ }>()
208
+
209
+ const fallbackId = getFallbackId()
210
+ const props = withDefaults(defineProps<Props>(), {
211
+ multiple: false,
212
+ formats: () => ["image/*", ".jpeg", ".jpg", ".png"],
213
+ compact: false,
214
+ })
215
+
216
+ const mimeTypes = computed(() => props.formats?.filter(_ => !_.startsWith(".")) ?? [])
217
+ const extensions = computed(() => props.formats?.filter(_ => _.startsWith(".")) ?? [])
218
+
219
+ const getSrc = (file: File) => {
220
+ const src = URL.createObjectURL(file)
221
+ return src
222
+ }
223
+
224
+ const removeFile = (entry: Entry) => {
225
+ const index = files.indexOf(entry)
226
+ files.splice(index, 1)
227
+ }
228
+ const extensionsList = computed(() => extensions.value.join(", "))
229
+ const inputFile = async (e: InputEvent): Promise<void | boolean> => {
230
+ e.preventDefault()
231
+ if (el.value!.files) {
232
+ const errs = []
233
+ for (const file of el.value!.files) {
234
+ const isImg = file.type.startsWith("image")
235
+
236
+ const byPassValidation = props.formats.length === 0
237
+ const isValidMimeType = mimeTypes.value.find(_ => _.endsWith("/*") ? file.type.startsWith(_.slice(0, -2)) : _ === file.type) !== undefined
238
+ const isValidExtension = extensions.value.find(_ => file.name.endsWith(_)) !== undefined
239
+ if (!byPassValidation && (!isValidMimeType || !isValidExtension)) {
240
+ const extension = file.name.match(/.*(\..*)/)?.[1] ?? "Unknown"
241
+ const type = file.type === "" ? "" : ` (${file.type})`
242
+ const message = `File type ${extension}${type} is not allowed. Allowed file types are: ${extensionsList.value}.`
243
+ const err = new Error(message) as FileInputError
244
+ err.file = file
245
+ err.isValidExtension = isValidExtension
246
+ err.isValidMimeType = isValidMimeType
247
+ errs.push(err)
248
+ continue
249
+ }
250
+ if (errs.length > 0) continue
251
+ if (!files.find(_ => _.file === file)) {
252
+ if ((props.multiple || files.length < 1)
253
+ ) {
254
+ files.push({ file, isImg })
255
+ } else {
256
+ files.splice(0, files.length, { file, isImg })
257
+ }
258
+ }
259
+ }
260
+ if (errs.length > 0) {
261
+ errors.splice(0, errors.length, ...errs)
262
+ return false
263
+ } else if (errors.length > 0) {
264
+ errors.splice(0, errors.length)
265
+ }
266
+ }
267
+ }
268
+
251
269
  </script>
270
+ <script lang="ts">
271
+ export default { name: "lib-file-input" }
272
+
273
+ type WrapperTypes =
274
+ & WrapperProps<"input", InputHTMLAttributes >
275
+ & WrapperProps<"wrapper", HTMLAttributes >
276
+ & WrapperProps<"previews",HTMLAttributes >
277
+
278
+ type RealProps =
279
+ & LinkableByIdProps
280
+ & {
281
+ multiple?: boolean
282
+ /**
283
+ * A list of extensions or mime types to add to the input's accept. Basic validations are done so that files match an extension and mimeType, but note that a file could still be lying, all files should be validated server side.
284
+ *
285
+ * Pass an empty array to allow any filetype.
286
+ */
287
+ formats?: string[]
288
+ compact?: boolean
289
+ }
252
290
 
253
- <script>
254
- export default { name: "lib-file-input" };
291
+ interface Props
292
+ extends
293
+ /** @vue-ignore */
294
+ Partial<Omit<InputHTMLAttributes,"class" | "multiple" | "formats" | "compact"> & TailwindClassProp>,
295
+ /** @vue-ignore */
296
+ Partial<WrapperTypes>,
297
+ RealProps { }
255
298
  </script>
@@ -0,0 +1,33 @@
1
+ import type { StoryObj } from "@storybook/vue3";
2
+ import LibInputDeprecated from "./LibInputDeprecated.vue.js";
3
+ declare const meta: {
4
+ component: any;
5
+ title: string;
6
+ args: any;
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof LibInputDeprecated>;
10
+ export declare const Primary: Story;
11
+ export declare const Disabled: Story;
12
+ export declare const Readonly: Story;
13
+ export declare const Invalid: Story;
14
+ export declare const AttrsPassword: Story;
15
+ export declare const AttrsDate: Story;
16
+ export declare const AttrsNumber: Story;
17
+ export declare const Borderless: any;
18
+ export declare const WithAutosuggest: any;
19
+ export declare const WithAutosuggestNoLabel: any;
20
+ export declare const WithInstantAutosuggest: any;
21
+ export declare const AutosuggestRestricted: any;
22
+ export declare const AutosuggestRestrictedWithClearOnClick: any;
23
+ export declare const AutosuggestSelectLikeShowAllUnrestricted: any;
24
+ export declare const AutosuggestObjectOptions: any;
25
+ export declare const Slots: Story;
26
+ /** Press enter to add a value. */
27
+ export declare const WithMultipleValues: Story;
28
+ export declare const WithMultipleValuesWithSuggestions: any;
29
+ export declare const WithMultipleValuesWithSuggestionsNoSelected: any;
30
+ export declare const WithMultipleValuesDisabled: any;
31
+ export declare const WithMultipleValuesReadonly: any;
32
+ export declare const InputSlotReplacement: Story;
33
+ export declare const NextToButton: Story;