@bluepic/embed 0.4.0-next.163 → 0.4.0-next.165
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/dist/bluepic-embed.iife.js +133 -93
- package/dist/bluepic-embed.umd.js +133 -93
- package/dist/components/BxCard.vue.d.ts +14 -0
- package/dist/components/BxList.vue.d.ts +9 -0
- package/dist/components/BxListItem.vue.d.ts +13 -1
- package/dist/components/BxTable.vue.d.ts +50 -0
- package/dist/embed/embed.d.ts +2 -2
- package/dist/main.cjs +89 -49
- package/dist/main.d.ts +2 -0
- package/dist/main.mjs +12800 -12703
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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<
|
|
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 & {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface BxTableColumn {
|
|
3
|
+
/** Identity only; the caller writes the cells. */
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
align?: 'left' | 'center' | 'right';
|
|
7
|
+
width?: string;
|
|
8
|
+
/** Header text for assistive tech only, e.g. an actions column. */
|
|
9
|
+
srOnlyLabel?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A table's chrome: the scroll container, the border, the header, row hover and
|
|
13
|
+
* per-column alignment.
|
|
14
|
+
*
|
|
15
|
+
* The BODY is a slot rather than a `rows` prop on purpose. Real tables wrap
|
|
16
|
+
* their rows — the studio's org list puts every `<tr>` inside a
|
|
17
|
+
* visibility-observer for infinite scroll — and a data-driven table cannot
|
|
18
|
+
* express that without growing a render-prop for the wrapper. So the caller
|
|
19
|
+
* keeps its `<tr>`s and this owns everything around them, which is the part
|
|
20
|
+
* that was being re-written per app.
|
|
21
|
+
*
|
|
22
|
+
* Alignment reaches app-authored cells through custom properties rather than
|
|
23
|
+
* classes the caller would have to remember: each column publishes
|
|
24
|
+
* `--col-N-align`, and the static rules below read it. Eight columns is the
|
|
25
|
+
* supported width; past that, a table is a different problem.
|
|
26
|
+
*/
|
|
27
|
+
type __VLS_Props = {
|
|
28
|
+
columns?: BxTableColumn[];
|
|
29
|
+
/** Outer border and rounding, so the table can sit on the page unwrapped. */
|
|
30
|
+
bordered?: boolean;
|
|
31
|
+
/** Row highlight on hover. Off unless rows actually do something. */
|
|
32
|
+
hoverable?: boolean;
|
|
33
|
+
dense?: boolean;
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Slots = {
|
|
36
|
+
default?: () => VNode[] | VNode;
|
|
37
|
+
};
|
|
38
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
39
|
+
bordered: boolean;
|
|
40
|
+
hoverable: boolean;
|
|
41
|
+
columns: BxTableColumn[];
|
|
42
|
+
dense: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
package/dist/embed/embed.d.ts
CHANGED
|
@@ -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" | "
|
|
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" | "
|
|
9224
|
+
radius?: "none" | "sm" | "md" | "lg" | "full" | undefined;
|
|
9225
9225
|
font?: {
|
|
9226
9226
|
size?: number | undefined;
|
|
9227
9227
|
} | undefined;
|