@omnitend/dashboard-for-laravel 0.17.0 → 0.18.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.
@@ -11,13 +11,68 @@ interface Props {
11
11
  * bootstrap-vue-next 0.45 removed the no-op `'md'` value from `Size`.
12
12
  */
13
13
  size?: Size;
14
+ /**
15
+ * Disable the button. Combined with `loading` — either one disables it.
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * Show an in-flight state: the button is disabled immediately and, after
20
+ * `spinnerDelay`, a trailing spinner appears (and the label swaps to
21
+ * `loadingText` if given).
22
+ *
23
+ * Diverges from bvn: `BButton` has a native `loading`/`loadingText` that
24
+ * shows its spinner immediately. We intercept both and render our own
25
+ * anti-flash spinner instead, so bvn's native loading never fires. See
26
+ * DIVERGENCES.md.
27
+ * @default false
28
+ */
29
+ loading?: boolean;
30
+ /**
31
+ * Label shown in place of the default slot while the spinner is visible.
32
+ * Omit to keep the original label alongside the spinner. (See `loading` re:
33
+ * the bvn divergence.)
34
+ */
35
+ loadingText?: string;
36
+ /**
37
+ * Leading Bootstrap Icons glyph name, rendered as `<i class="bi bi-{icon}">`.
38
+ * e.g. `icon="save"`. Hidden while the loading spinner is visible.
39
+ *
40
+ * Diverges from bvn: `BButton`'s native `icon` is a `boolean` (icon-button
41
+ * styling mode). We redefine it as a glyph-name `string`, so bvn's boolean
42
+ * icon mode is unreachable through `DButton`. See DIVERGENCES.md.
43
+ */
44
+ icon?: string;
45
+ /**
46
+ * Full-width button (BS5 `w-100` idiom, replacing the dropped `.btn-block`).
47
+ * @default false
48
+ */
49
+ block?: boolean;
50
+ /**
51
+ * Anti-flash: how long (ms) `loading` must stay true before the spinner is
52
+ * shown, so fast actions never flicker one in.
53
+ * @default 500
54
+ */
55
+ spinnerDelay?: number;
56
+ /**
57
+ * Anti-flash: minimum time (ms) the spinner stays visible once shown, so a
58
+ * loading state that clears quickly doesn't strobe it away.
59
+ * @default 100
60
+ */
61
+ minSpinnerTime?: number;
14
62
  }
15
- declare var __VLS_7: string | number, __VLS_8: {};
63
+ declare var __VLS_6: {}, __VLS_12: string, __VLS_13: any;
16
64
  type __VLS_Slots = {} & {
17
- [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
65
+ [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
66
+ } & {
67
+ default?: (props: typeof __VLS_6) => any;
18
68
  };
19
69
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
20
70
  variant: ButtonVariant | LinkVariant | null;
71
+ disabled: boolean;
72
+ loading: boolean;
73
+ block: boolean;
74
+ spinnerDelay: number;
75
+ minSpinnerTime: number;
21
76
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
77
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
78
  export default _default;