@illinois-grad/grad-vue 2.3.4 → 2.4.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.
Files changed (40) hide show
  1. package/README.md +20 -5
  2. package/dist/components/GAlertDialog.vue.d.ts +43 -12
  3. package/dist/components/GAppHeader.vue.d.ts +30 -18
  4. package/dist/components/GButton.vue.d.ts +77 -12
  5. package/dist/components/GClipboard.vue.d.ts +30 -5
  6. package/dist/components/GCurrencyInput.vue.d.ts +53 -10
  7. package/dist/components/GDateInput.vue.d.ts +53 -10
  8. package/dist/components/GDateRangeInput.vue.d.ts +74 -17
  9. package/dist/components/GDetailList.vue.d.ts +14 -11
  10. package/dist/components/GEmailInput.vue.d.ts +53 -10
  11. package/dist/components/GForm.vue.d.ts +54 -21
  12. package/dist/components/GHamburgerMenu.vue.d.ts +40 -6
  13. package/dist/components/GHistoryScroller.vue.d.ts +34 -2
  14. package/dist/components/GModal.vue.d.ts +78 -12
  15. package/dist/components/GOverlay.vue.d.ts +4 -1
  16. package/dist/components/GPopover.vue.d.ts +46 -21
  17. package/dist/components/GProgress.vue.d.ts +38 -5
  18. package/dist/components/GSearch.vue.d.ts +73 -2
  19. package/dist/components/GSelect.vue.d.ts +103 -26
  20. package/dist/components/GSelectButton.vue.d.ts +65 -16
  21. package/dist/components/GSidebar.vue.d.ts +62 -11
  22. package/dist/components/GSidebarMenu.vue.d.ts +125 -16
  23. package/dist/components/GSubmitButton.vue.d.ts +39 -11
  24. package/dist/components/GTable.vue.d.ts +86 -3
  25. package/dist/components/GTermSelector.vue.d.ts +48 -10
  26. package/dist/components/GTextInput.vue.d.ts +80 -18
  27. package/dist/components/GThreeWayToggle.vue.d.ts +54 -17
  28. package/dist/components/GUserMenu.vue.d.ts +61 -10
  29. package/dist/components/form/GFormErrorMessages.vue.d.ts +13 -5
  30. package/dist/components/table/GTableBody.vue.d.ts +5 -2
  31. package/dist/components/table/GTablePagination.vue.d.ts +43 -11
  32. package/dist/components/term/GTermSelectorControl.vue.d.ts +32 -10
  33. package/dist/compose/useOverlayStack.d.ts +10 -0
  34. package/dist/grad-vue.css +1 -1
  35. package/dist/grad-vue.js +1 -1
  36. package/dist/{main-DEKKtASV.js → main-BtQAK04Y.js} +1060 -1010
  37. package/dist/main-BtQAK04Y.js.map +1 -0
  38. package/dist/plugin.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/main-DEKKtASV.js.map +0 -1
@@ -12,22 +12,25 @@
12
12
  * </GDetailList>
13
13
  * ```
14
14
  */
15
- interface Props {
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
16
18
  /**
17
19
  * Layout style for the items.
20
+ * @demo
18
21
  */
19
22
  variant?: "grid" | "vertical";
20
- }
21
- declare var __VLS_1: {};
22
- type __VLS_Slots = {} & {
23
- default?: (props: typeof __VLS_1) => any;
24
- };
25
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
24
+ /**
25
+ * Layout style for the items.
26
+ * @demo
27
+ */
28
+ variant?: "grid" | "vertical";
29
+ }> & Readonly<{}>, {
26
30
  variant: "grid" | "vertical";
27
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
- declare const _default: typeof __VLS_export;
30
- export default _default;
31
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
32
+ default?: (props: {}) => any;
33
+ }>;
31
34
  type __VLS_WithSlots<T, S> = T & {
32
35
  new (): {
33
36
  $slots: S;
@@ -1,31 +1,76 @@
1
- type Props = {
1
+ /**
2
+ * An email input component.
3
+ *
4
+ * This component is a wrapper around GTextInput with type="email" for
5
+ * proper email validation and mobile keyboard optimization.
6
+ */
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ declare const __VLS_export: import("vue").DefineComponent<{
2
10
  /**
3
11
  * Label
12
+ * @demo
4
13
  */
5
14
  label?: string;
6
15
  /**
7
16
  * Placeholder text
17
+ * @demo
8
18
  */
9
19
  placeholder?: string;
10
20
  /**
11
21
  * Disabled
22
+ * @demo
12
23
  */
13
24
  disabled?: boolean;
25
+ /**
26
+ * Error messages array (supports multiple validation errors)
27
+ */
14
28
  errors?: string[];
15
29
  /**
16
30
  * Instructions
31
+ * @demo
17
32
  */
18
33
  instructions?: string;
34
+ /**
35
+ * Name for form registration
36
+ */
19
37
  name?: string;
20
- };
21
- type __VLS_Props = Props;
22
- type __VLS_ModelProps = {
38
+ } & {
23
39
  modelValue?: string | null;
24
- };
25
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
26
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
41
  "update:modelValue": (value: string | null | undefined) => any;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
42
+ }, string, import("vue").PublicProps, Readonly<{
43
+ /**
44
+ * Label
45
+ * @demo
46
+ */
47
+ label?: string;
48
+ /**
49
+ * Placeholder text
50
+ * @demo
51
+ */
52
+ placeholder?: string;
53
+ /**
54
+ * Disabled
55
+ * @demo
56
+ */
57
+ disabled?: boolean;
58
+ /**
59
+ * Error messages array (supports multiple validation errors)
60
+ */
61
+ errors?: string[];
62
+ /**
63
+ * Instructions
64
+ * @demo
65
+ */
66
+ instructions?: string;
67
+ /**
68
+ * Name for form registration
69
+ */
70
+ name?: string;
71
+ } & {
72
+ modelValue?: string | null;
73
+ }> & Readonly<{
29
74
  "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
30
75
  }>, {
31
76
  label: string;
@@ -35,5 +80,3 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
35
80
  disabled: boolean;
36
81
  instructions: string;
37
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
- declare const _default: typeof __VLS_export;
39
- export default _default;
@@ -1,40 +1,73 @@
1
- interface Props {
1
+ /**
2
+ * A form wrapper component that automatically manages form state and
3
+ * connects to child input components.
4
+ *
5
+ * Child input components that have a `name` prop will automatically
6
+ * register with the form, and their values will be tracked in the form model.
7
+ *
8
+ * ### Features
9
+ *
10
+ * - Automatic value tracking for child input components with the `name` prop
11
+ * - Reactive error handling by providing a computed list of errors
12
+ * - Optionally manage your own form state in a parent component by providing a
13
+ * `form` injection
14
+ *
15
+ * ### Basic example
16
+ *
17
+ * ```vue-html
18
+ * <GForm v-model="formData" @submit="handleSubmit">
19
+ * <template #default="{ isSubmitting, hasErrors }">
20
+ * <GTextInput name="firstName" label="First Name" :errors="firstNameErrors" />
21
+ * <GSubmitButton :disabled="hasErrors">Submit</GSubmitButton>
22
+ * </template>
23
+ * </GForm>
24
+ * ```
25
+ */
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
29
  /**
3
30
  * Action URL (optional, for native form submission)
31
+ * @demo
4
32
  */
5
33
  action?: string;
6
34
  /**
7
35
  * HTTP method (optional, for native form submission)
36
+ * @demo
8
37
  */
9
38
  method?: string;
10
- }
11
- type __VLS_Props = Props;
12
- type __VLS_ModelProps = {
39
+ } & {
13
40
  modelValue?: Record<string, any>;
14
- };
15
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
- declare var __VLS_1: {
17
- isSubmitting: boolean;
18
- hasErrors: boolean;
19
- values: Record<string, any>;
20
- errors: Record<string, string[]>;
21
- };
22
- type __VLS_Slots = {} & {
23
- default?: (props: typeof __VLS_1) => any;
24
- };
25
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
42
  "update:modelValue": (value: Record<string, any>) => any;
27
43
  submit: (values: Record<string, any>) => any;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
44
+ }, string, import("vue").PublicProps, Readonly<{
45
+ /**
46
+ * Action URL (optional, for native form submission)
47
+ * @demo
48
+ */
49
+ action?: string;
50
+ /**
51
+ * HTTP method (optional, for native form submission)
52
+ * @demo
53
+ */
54
+ method?: string;
55
+ } & {
56
+ modelValue?: Record<string, any>;
57
+ }> & Readonly<{
29
58
  "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
30
59
  onSubmit?: ((values: Record<string, any>) => any) | undefined;
31
60
  }>, {
32
61
  action: string;
33
62
  method: string;
34
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
- declare const _default: typeof __VLS_export;
37
- export default _default;
63
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
64
+ default?: (props: {
65
+ isSubmitting: boolean;
66
+ hasErrors: boolean;
67
+ values: Record<string, any>;
68
+ errors: Record<string, string[]>;
69
+ }) => any;
70
+ }>;
38
71
  type __VLS_WithSlots<T, S> = T & {
39
72
  new (): {
40
73
  $slots: S;
@@ -1,15 +1,49 @@
1
- interface Props {
1
+ /**
2
+ * A hamburger menu button that toggles a sidebar, intended for the
3
+ * GAppHeader and GSidebar components.
4
+ *
5
+ * <span id="use-sidebar">Use with the `useSidebar`</span> composable function
6
+ * that takes care of passing state between the different components.
7
+ *
8
+ * Here's an example, this could be your App.vue or a layout file:
9
+ *
10
+ * ```vue
11
+ * <script setup lang="ts">
12
+ * import { computed, h, onMounted, provide, ref, useTemplateRef } from "vue";
13
+ * import { useSidebar } from "../src/compose/useSidebar";
14
+ *
15
+ * const sidebar = useSidebar();
16
+ * provide("sidebar", sidebar);
17
+ *
18
+ * // Or optionally a custom breakpoint
19
+ * // const sidebar = useSidebar("(max-width: 600px)");
20
+ * &lt;/script>
21
+ * ```
22
+ *
23
+ * As long as GHamburgerMenu and GSidebar are descendants of the component that
24
+ * provides the sidebar, they will be able to communicate with each other.
25
+ *
26
+ * > [!NOTE]
27
+ * > This button hides itself automatically according to the useSidebar media query.
28
+ */
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ declare const __VLS_export: import("vue").DefineComponent<{
2
32
  /**
3
33
  * Accessible label
34
+ * @demo
4
35
  */
5
36
  label?: string;
6
- }
7
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
38
  toggle: () => any;
9
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
39
+ }, string, import("vue").PublicProps, Readonly<{
40
+ /**
41
+ * Accessible label
42
+ * @demo
43
+ */
44
+ label?: string;
45
+ }> & Readonly<{
10
46
  onToggle?: (() => any) | undefined;
11
47
  }>, {
12
48
  label: string;
13
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
@@ -1,11 +1,45 @@
1
+ /**
2
+ * A scroller that is used for content that's typically shown like a chat log,
3
+ * meaning it starts at the bottom, and you scroll up for older entries.
4
+ *
5
+ * The scroller automatically starts at the bottom. When scrolled up, a button
6
+ * appears that jumps to the bottom. This button is also the first focusable
7
+ * element for accessibility.
8
+ *
9
+ * If the `label` is provided, the scroller will have the ARIA `role="log"` and
10
+ * the label as the `aria-label`.
11
+ *
12
+ * **Slot** `default` is what will be rendered for each entry in the
13
+ * `entries`. For example:
14
+ *
15
+ * ```vue-html
16
+ * <GHistoryScroller
17
+ * v-bind="props"
18
+ * :entries="historyEntries"
19
+ * class="history-scroller">
20
+ * <template #default="{ entry }">
21
+ * <div class="history-entry">
22
+ * This is history for: {{ entry.id }}
23
+ * </div>
24
+ * </template>
25
+ * </GHistoryScroller>
26
+ * ```
27
+ */
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
1
30
  declare const __VLS_export: <T extends {
2
31
  id: string | number;
3
32
  }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
33
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
5
34
  /**
6
35
  * Accessible label
36
+ * @demo History
7
37
  */
8
38
  label?: string;
39
+ /**
40
+ * History entries passed to default slot
41
+ * @demo
42
+ */
9
43
  entries: T[];
10
44
  }> & (typeof globalThis extends {
11
45
  __VLS_PROPS_FALLBACK: infer P;
@@ -21,8 +55,6 @@ declare const __VLS_export: <T extends {
21
55
  }>) => import("vue").VNode & {
22
56
  __ctx?: Awaited<typeof __VLS_setup>;
23
57
  };
24
- declare const _default: typeof __VLS_export;
25
- export default _default;
26
58
  type __VLS_PrettifyLocal<T> = (T extends any ? {
27
59
  [K in keyof T]: T[K];
28
60
  } : {
@@ -1,37 +1,103 @@
1
- interface Props {
1
+ /**
2
+ * Generic modal component.
3
+ *
4
+ * Clicking on the outside or pressing the escape key will close the modal.
5
+ *
6
+ * > [!IMPORTANT]
7
+ * >
8
+ * > The surrounding page **must** have an element with the id `modal-root`,
9
+ * > this modal will be teleported to it, so it can properly be over all
10
+ * > other content. The `modal-root` should be somewhere near the end of the
11
+ * > page structure.
12
+ *
13
+ * **Props**:
14
+ *
15
+ * - `label`: Modal accessible label.
16
+ * - `describedby`: Element ID to pass to aria-describedby. Use this if there's
17
+ * specific important text to describe the modal.
18
+ * - `hiddenLabel`: Hide label visually. It will still be used as `aria-label`.
19
+ * - `size`: Modal size
20
+ *
21
+ * **Slot** `default` is used as the content of the modal.
22
+ *
23
+ * When the modal is opened, focus is placed on the H2 label element. This
24
+ * can be overridden by providing a `popover-focus` attribute on an element
25
+ * inside the modal.
26
+ *
27
+ * Adding a dimming overlay behind modals can be done by placing `GOverlay`
28
+ * at the end of the page structure.
29
+ *
30
+ * > [!WARNING]
31
+ * > There are some shenanigans in the modal and overlay implementation in order
32
+ * > to support Nuxt without including it as a dependency. Specifically, the refs
33
+ * > to store the state of the overlay stack is added to `window._g_overlay_stack_state`
34
+ * > when `document` is defined. That makes it only load in the client.
35
+ */
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
39
  /**
3
40
  * Modal label
41
+ * @demo Basic Modal
4
42
  */
5
43
  label: string;
6
44
  /**
7
45
  * ID for aria-describedby
46
+ * @demo
8
47
  */
9
48
  describedby?: string;
10
49
  /**
11
50
  * Hide label
51
+ * @demo
12
52
  */
13
53
  hiddenLabel?: boolean;
14
54
  /**
15
55
  * Modal size
56
+ * @demo
16
57
  */
17
58
  size?: "small" | "medium" | "large" | "full";
18
- }
19
- declare var __VLS_13: {};
20
- type __VLS_Slots = {} & {
21
- default?: (props: typeof __VLS_13) => any;
22
- };
23
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ /**
60
+ * Modal classes
61
+ * @demo
62
+ */
63
+ classes?: string | string[];
64
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
65
  close: (...args: any[]) => void;
25
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
66
+ }, string, import("vue").PublicProps, Readonly<{
67
+ /**
68
+ * Modal label
69
+ * @demo Basic Modal
70
+ */
71
+ label: string;
72
+ /**
73
+ * ID for aria-describedby
74
+ * @demo
75
+ */
76
+ describedby?: string;
77
+ /**
78
+ * Hide label
79
+ * @demo
80
+ */
81
+ hiddenLabel?: boolean;
82
+ /**
83
+ * Modal size
84
+ * @demo
85
+ */
86
+ size?: "small" | "medium" | "large" | "full";
87
+ /**
88
+ * Modal classes
89
+ * @demo
90
+ */
91
+ classes?: string | string[];
92
+ }> & Readonly<{
26
93
  onClose?: ((...args: any[]) => any) | undefined;
27
94
  }>, {
28
95
  size: "small" | "medium" | "large" | "full";
29
96
  hiddenLabel: boolean;
30
97
  describedby: string;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
- declare const _default: typeof __VLS_export;
34
- export default _default;
98
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
99
+ default?: (props: {}) => any;
100
+ }>;
35
101
  type __VLS_WithSlots<T, S> = T & {
36
102
  new (): {
37
103
  $slots: S;
@@ -1,3 +1,6 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ /**
2
+ * Client-side overlay for behind modal dialogs.
3
+ */
2
4
  declare const _default: typeof __VLS_export;
3
5
  export default _default;
6
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,37 +1,62 @@
1
- interface Props {
1
+ /**
2
+ * Popover that appears next to or over a trigger element, staying visible
3
+ * in the viewport as much as possible.
4
+ *
5
+ * **Slot** `trigger` must have an interactive element for which
6
+ * the only interaction is to open the popover. The trigger element is also used
7
+ * for `aria-labelledby`. The trigger is passed a prop `toggle` which is a function
8
+ * that toggles the popover's open state.
9
+ *
10
+ * **Slot** `default` is the content of the popover.
11
+ *
12
+ * Example:
13
+ *
14
+ * ```vue-html
15
+ * <GPopover>
16
+ * <template #trigger="{ toggle }">
17
+ * <GButton @click="toggle">
18
+ * Can Popovers' Popovers have Popovers?
19
+ * </GButton>
20
+ * </template>
21
+ * <div>Even if they can, should they?</div>
22
+ * </GPopover>
23
+ * ```
24
+ */
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
28
  /**
3
29
  * Render without padding
30
+ * @demo
4
31
  */
5
32
  minimal?: boolean;
6
- }
7
- type __VLS_Props = Props;
8
- declare function toggle(): void;
9
- type __VLS_ModelProps = {
10
- modelValue?: boolean;
11
- };
12
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
- declare var __VLS_1: {
14
- toggle: typeof toggle;
15
- }, __VLS_9: {};
16
- type __VLS_Slots = {} & {
17
- trigger?: (props: typeof __VLS_1) => any;
18
33
  } & {
19
- default?: (props: typeof __VLS_9) => any;
20
- };
21
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ modelValue?: boolean;
35
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
36
  show: (...args: any[]) => void;
23
37
  hide: (...args: any[]) => void;
24
38
  "update:modelValue": (value: boolean) => void;
25
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
39
+ }, string, import("vue").PublicProps, Readonly<{
40
+ /**
41
+ * Render without padding
42
+ * @demo
43
+ */
44
+ minimal?: boolean;
45
+ } & {
46
+ modelValue?: boolean;
47
+ }> & Readonly<{
26
48
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
49
  onShow?: ((...args: any[]) => any) | undefined;
28
50
  onHide?: ((...args: any[]) => any) | undefined;
29
51
  }>, {
30
52
  minimal: boolean;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
- declare const _default: typeof __VLS_export;
34
- export default _default;
53
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
54
+ trigger?: (props: {
55
+ toggle: () => void;
56
+ }) => any;
57
+ } & {
58
+ default?: (props: {}) => any;
59
+ }>;
35
60
  type __VLS_WithSlots<T, S> = T & {
36
61
  new (): {
37
62
  $slots: S;
@@ -1,21 +1,54 @@
1
- type Props = {
1
+ /**
2
+ * A component that can show progress from 1 to 100 or an indeterminate spinner.
3
+ * If a value is omitted, the progress will be indeterminate.
4
+ *
5
+ * If no `label` is specified, the default accessible label will be "Loading".
6
+ *
7
+ * If a value is provided, the element will have the ARIA role `progressbar`
8
+ * with the appropriate ARIA value attributes.
9
+ *
10
+ * If no value is provided, the element will have the ARIA role `status`.
11
+ *
12
+ * > [!NOTE]
13
+ * > This element announces to assistive technologies, so make sure to
14
+ * > limit its use to cases where that's appropriate.
15
+ */
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ declare const __VLS_export: import("vue").DefineComponent<{
19
+ /**
20
+ * Accessible label
21
+ * @demo
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Progress 1-100 or blank
26
+ * @demo
27
+ */
28
+ value?: number;
29
+ /**
30
+ * Progress circle size
31
+ * @demo
32
+ */
33
+ size?: "tiny" | "small" | "medium" | "large";
34
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
2
35
  /**
3
36
  * Accessible label
37
+ * @demo
4
38
  */
5
39
  label?: string;
6
40
  /**
7
41
  * Progress 1-100 or blank
42
+ * @demo
8
43
  */
9
44
  value?: number;
10
45
  /**
11
46
  * Progress circle size
47
+ * @demo
12
48
  */
13
49
  size?: "tiny" | "small" | "medium" | "large";
14
- };
15
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
50
+ }> & Readonly<{}>, {
16
51
  size: "tiny" | "small" | "medium" | "large";
17
52
  label: string;
18
53
  value: number;
19
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
- declare const _default: typeof __VLS_export;
21
- export default _default;