@bluepic/embed 0.4.0-next.163 → 0.4.0-next.164

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.
@@ -9,6 +9,18 @@ type __VLS_Props = {
9
9
  coverWidth?: string;
10
10
  hoverable?: boolean;
11
11
  dividers?: boolean;
12
+ /**
13
+ * Corner rounding. `none` is for cards that tile edge to edge, where a
14
+ * radius reads as a gap that is not there.
15
+ */
16
+ radius?: 'none' | 'sm' | 'md' | 'lg';
17
+ /**
18
+ * Stack the content slot with a gap. Without it the content is a plain
19
+ * block, which is why almost every caller re-declared
20
+ * `display:flex; flex-direction:column; gap:…` and, from there, went on to
21
+ * hand-roll the whole card.
22
+ */
23
+ contentGap?: 'none' | 'sm' | 'md' | 'lg';
12
24
  state?: 'default' | 'success' | 'warning' | 'error' | 'info';
13
25
  };
14
26
  type __VLS_Slots = {
@@ -27,6 +39,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
27
39
  bordered: boolean;
28
40
  hoverable: boolean;
29
41
  dividers: boolean;
42
+ radius: "none" | "sm" | "md" | "lg";
43
+ contentGap: "none" | "sm" | "md" | "lg";
30
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
45
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
46
  export default _default;
@@ -1,12 +1,21 @@
1
1
  import { VNode } from 'vue';
2
2
  type __VLS_Props = {
3
3
  divider?: boolean;
4
+ /** Outer border and rounding, so a list can stand on its own surface. */
5
+ bordered?: boolean;
6
+ /**
7
+ * `plain` is a run of rows. `card` gives every row its own surface with a
8
+ * gap between them, for lists whose items are objects rather than lines.
9
+ */
10
+ variant?: 'plain' | 'card';
4
11
  };
5
12
  type __VLS_Slots = {
6
13
  default: () => VNode[] | VNode;
7
14
  };
8
15
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ bordered: boolean;
9
17
  divider: boolean;
18
+ variant: "plain" | "card";
10
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
20
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
21
  export default _default;
@@ -1,10 +1,22 @@
1
1
  import { VNode } from 'vue';
2
+ type __VLS_Props = {
3
+ /**
4
+ * Whether clicking the row does something. Rows used to get a pointer
5
+ * cursor and a hover background unconditionally, which is why static lists
6
+ * were hand-rolled as <ul>s instead: a row that looks clickable and is not
7
+ * is worse than no component. Defaults to `true` so no existing list
8
+ * changes.
9
+ */
10
+ interactive?: boolean;
11
+ };
2
12
  type __VLS_Slots = {
3
13
  default: () => VNode[] | VNode;
4
14
  prefix?: () => VNode[] | VNode;
5
15
  suffix?: () => VNode[] | VNode;
6
16
  };
7
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ interactive: boolean;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
20
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
21
  export default _default;
10
22
  type __VLS_WithSlots<T, S> = T & {
@@ -9084,7 +9084,7 @@ export declare class BluepicEmbed extends EventTarget {
9084
9084
  surface?: string | undefined;
9085
9085
  primary?: string | undefined;
9086
9086
  contrast?: "normal" | "high" | undefined;
9087
- radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
9087
+ radius?: "none" | "sm" | "md" | "lg" | "full" | undefined;
9088
9088
  font?: {
9089
9089
  size?: number | undefined;
9090
9090
  } | undefined;
@@ -9221,7 +9221,7 @@ export declare class BluepicEmbed extends EventTarget {
9221
9221
  surface?: string | undefined;
9222
9222
  primary?: string | undefined;
9223
9223
  contrast?: "normal" | "high" | undefined;
9224
- radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
9224
+ radius?: "none" | "sm" | "md" | "lg" | "full" | undefined;
9225
9225
  font?: {
9226
9226
  size?: number | undefined;
9227
9227
  } | undefined;