rei-kit 2.6.0 → 2.8.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.
- package/README.md +4 -4
- package/dist/BaseSkeleton-B-oo7JKE.js +43 -0
- package/dist/BaseSkeleton-B-oo7JKE.js.map +1 -0
- package/dist/{GoogleButton-nIRz9G8s.js → GoogleButton-DVro7xZH.js} +3 -33
- package/dist/GoogleButton-DVro7xZH.js.map +1 -0
- package/dist/app.js +2 -2
- package/dist/components/AvatarStack.vue.d.ts +24 -0
- package/dist/components/BaseChip.vue.d.ts +32 -0
- package/dist/components/BaseKbd.vue.d.ts +21 -0
- package/dist/components/BaseLink.vue.d.ts +33 -0
- package/dist/components/BaseListbox.vue.d.ts +38 -0
- package/dist/components/BaseRating.vue.d.ts +35 -0
- package/dist/components/BaseSeparator.vue.d.ts +20 -0
- package/dist/components/BaseSkeleton.vue.d.ts +25 -0
- package/dist/components/CopyButton.vue.d.ts +33 -0
- package/dist/components/FileDrop.vue.d.ts +45 -0
- package/dist/components/TagsInput.vue.d.ts +38 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +926 -167
- package/dist/index.js.map +1 -1
- package/dist/{inert-B441LoCD.js → inert-TJG_g0d6.js} +32 -2
- package/dist/inert-TJG_g0d6.js.map +1 -0
- package/dist/styles.css +697 -0
- package/dist/web/CommandMenu.vue.d.ts +50 -0
- package/dist/web/DataTable.vue.d.ts +61 -0
- package/dist/web/index.d.ts +13 -0
- package/dist/web.js +438 -51
- package/dist/web.js.map +1 -1
- package/package.json +2 -2
- package/dist/GoogleButton-nIRz9G8s.js.map +0 -1
- package/dist/inert-B441LoCD.js.map +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Files, dropped on or chosen from a real file input.
|
|
3
|
+
*
|
|
4
|
+
* The input is the control; the box around it is a label. That is not a
|
|
5
|
+
* detail: a `<div>` with a click handler cannot be reached with Tab, opened
|
|
6
|
+
* with Enter, or announced as "choose file", and dragging is a pointer
|
|
7
|
+
* gesture that a keyboard has no version of. Everything here works without a
|
|
8
|
+
* drag.
|
|
9
|
+
*
|
|
10
|
+
* It holds files, not uploads. Sending them, the progress and the failures
|
|
11
|
+
* are the app's — the kit does not know your endpoint, and a component that
|
|
12
|
+
* guessed it would be wrong everywhere.
|
|
13
|
+
*/
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
/** The instruction in the box: "Drop a receipt here". Already translated. */
|
|
16
|
+
label: string;
|
|
17
|
+
/** A line under it: what is accepted, how big. */
|
|
18
|
+
hint?: string | undefined;
|
|
19
|
+
/** The button inside the box, e.g. "Browse". */
|
|
20
|
+
browseLabel: string;
|
|
21
|
+
/** Accessible name of each file's remove button. */
|
|
22
|
+
removeLabel: string;
|
|
23
|
+
/** Passed to the input: `image/*`, `.pdf`. */
|
|
24
|
+
accept?: string | undefined;
|
|
25
|
+
multiple?: boolean | undefined;
|
|
26
|
+
/** In bytes. Anything larger is refused and reported through `rejected`. */
|
|
27
|
+
maxSize?: number | undefined;
|
|
28
|
+
/** Shown under the box when a file was too large. */
|
|
29
|
+
tooLargeLabel?: string | undefined;
|
|
30
|
+
disabled?: boolean | undefined;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_ModelProps = {
|
|
33
|
+
/** The files held, with `v-model`. */
|
|
34
|
+
modelValue?: File[];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
37
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
"update:modelValue": (value: File[]) => any;
|
|
39
|
+
rejected: (files: File[]) => any;
|
|
40
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
41
|
+
"onUpdate:modelValue"?: (value: File[]) => any;
|
|
42
|
+
onRejected?: (files: File[]) => any;
|
|
43
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A field that holds several short values: recipients, labels, skills.
|
|
3
|
+
*
|
|
4
|
+
* Enter and a comma commit what has been typed; Backspace on an empty field
|
|
5
|
+
* takes the last one back, which is the shortcut everybody tries. The chips
|
|
6
|
+
* are before the field rather than beside it, so the caret is always at the
|
|
7
|
+
* end of the line the way it is in a mail client.
|
|
8
|
+
*
|
|
9
|
+
* `removeLabel` builds each chip's remove button name from the tag, so a
|
|
10
|
+
* screen reader hears "Remove: design" rather than five buttons called "×".
|
|
11
|
+
*/
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
label: string;
|
|
14
|
+
/** `(tag) => \`Remove ${tag}\`` — already translated. */
|
|
15
|
+
removeLabel: (tag: string) => string;
|
|
16
|
+
placeholder?: string | undefined;
|
|
17
|
+
hint?: string | undefined;
|
|
18
|
+
error?: string | undefined;
|
|
19
|
+
/** How many tags at most. The field stops taking them at the limit. */
|
|
20
|
+
max?: number | undefined;
|
|
21
|
+
/** By default the same tag twice is ignored. */
|
|
22
|
+
allowDuplicates?: boolean | undefined;
|
|
23
|
+
size?: 'sm' | 'md' | undefined;
|
|
24
|
+
labelHidden?: boolean | undefined;
|
|
25
|
+
disabled?: boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_ModelProps = {
|
|
28
|
+
/** The tags, with `v-model`. */
|
|
29
|
+
modelValue?: string[];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
32
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
"update:modelValue": (value: string[]) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
"onUpdate:modelValue"?: (value: string[]) => any;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
38
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -85,7 +85,19 @@ export { default as LocaleLinks } from './components/LocaleLinks.vue';
|
|
|
85
85
|
export { default as GoogleButton } from './components/GoogleButton.vue';
|
|
86
86
|
export { default as TabBar } from './components/TabBar.vue';
|
|
87
87
|
export type { TabItem } from './components/TabBar.vue';
|
|
88
|
+
export { default as AvatarStack } from './components/AvatarStack.vue';
|
|
88
89
|
export { default as BaseCalendar } from './components/BaseCalendar.vue';
|
|
90
|
+
export { default as BaseChip } from './components/BaseChip.vue';
|
|
91
|
+
export { default as BaseKbd } from './components/BaseKbd.vue';
|
|
92
|
+
export { default as BaseListbox } from './components/BaseListbox.vue';
|
|
93
|
+
export type { ListboxOption } from './components/BaseListbox.vue';
|
|
94
|
+
export { default as BaseLink } from './components/BaseLink.vue';
|
|
95
|
+
export { default as BaseRating } from './components/BaseRating.vue';
|
|
96
|
+
export { default as BaseSeparator } from './components/BaseSeparator.vue';
|
|
97
|
+
export { default as BaseSkeleton } from './components/BaseSkeleton.vue';
|
|
98
|
+
export { default as CopyButton } from './components/CopyButton.vue';
|
|
99
|
+
export { default as FileDrop } from './components/FileDrop.vue';
|
|
100
|
+
export { default as TagsInput } from './components/TagsInput.vue';
|
|
89
101
|
export type { DateRange } from './components/BaseCalendar.vue';
|
|
90
102
|
export { default as BaseDatePicker } from './components/BaseDatePicker.vue';
|
|
91
103
|
export type { DatePreset } from './components/BaseDatePicker.vue';
|