@onsvisual/svelte-components 0.1.32 → 0.1.33
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/@types/decorators/Divider/Divider.svelte.d.ts +2 -0
- package/dist/@types/layout/Breadcrumb/Breadcrumb.svelte.d.ts +2 -0
- package/dist/@types/layout/Grid/Grid.svelte.d.ts +2 -0
- package/dist/@types/layout/Hero/Hero.svelte.d.ts +2 -0
- package/dist/@types/layout/Highlight/Highlight.svelte.d.ts +2 -0
- package/dist/@types/layout/NavSections/NavSections.svelte.d.ts +2 -0
- package/dist/@types/layout/Scroller/ScrollerSection.svelte.d.ts +4 -0
- package/dist/@types/layout/Section/Section.svelte.d.ts +2 -0
- package/dist/@types/layout/ShareButtons/ShareButtons.svelte.d.ts +2 -0
- package/dist/@types/layout/Titleblock/Titleblock.svelte.d.ts +2 -0
- package/dist/@types/wrappers/Container/Container.svelte.d.ts +2 -0
- package/dist/@types/wrappers/Theme/Theme.svelte.d.ts +2 -2
- package/dist/decorators/Divider/Divider.svelte +6 -0
- package/dist/layout/Breadcrumb/Breadcrumb.svelte +6 -0
- package/dist/layout/Grid/Grid.svelte +7 -0
- package/dist/layout/Hero/Hero.svelte +6 -0
- package/dist/layout/Highlight/Highlight.svelte +6 -0
- package/dist/layout/NavSections/NavSections.svelte +6 -0
- package/dist/layout/Scroller/ScrollerSection.svelte +16 -1
- package/dist/layout/Section/Section.svelte +6 -0
- package/dist/layout/ShareButtons/ShareButtons.svelte +6 -0
- package/dist/layout/Titleblock/Titleblock.svelte +11 -1
- package/dist/wrappers/Container/Container.svelte +7 -0
- package/dist/wrappers/Theme/Theme.svelte +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DividerSlots */
|
|
4
4
|
export default class Divider extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "lightblue";
|
|
6
|
+
allowClientOverrides?: boolean;
|
|
6
7
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
7
8
|
marginTop?: boolean;
|
|
8
9
|
marginBottom?: boolean;
|
|
@@ -19,6 +20,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
19
20
|
declare const __propDef: {
|
|
20
21
|
props: {
|
|
21
22
|
theme?: "light" | "dark" | "lightblue";
|
|
23
|
+
allowClientOverrides?: boolean;
|
|
22
24
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
23
25
|
marginTop?: boolean;
|
|
24
26
|
marginBottom?: boolean;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export default class Breadcrumb extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "lightblue";
|
|
6
6
|
background?: string;
|
|
7
|
+
allowClientOverrides?: boolean;
|
|
7
8
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
8
9
|
themeOverrides?: any;
|
|
9
10
|
links?: any[];
|
|
@@ -19,6 +20,7 @@ declare const __propDef: {
|
|
|
19
20
|
props: {
|
|
20
21
|
theme?: "light" | "dark" | "lightblue";
|
|
21
22
|
background?: string;
|
|
23
|
+
allowClientOverrides?: boolean;
|
|
22
24
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
23
25
|
themeOverrides?: object;
|
|
24
26
|
links?: any[];
|
|
@@ -5,6 +5,7 @@ export default class Grid extends SvelteComponentTyped<{
|
|
|
5
5
|
id?: string;
|
|
6
6
|
cls?: string;
|
|
7
7
|
theme?: "light" | "dark" | "lightblue";
|
|
8
|
+
allowClientOverrides?: boolean;
|
|
8
9
|
width?: "narrow" | "medium" | "wide" | "full";
|
|
9
10
|
height?: string | number;
|
|
10
11
|
marginTop?: boolean;
|
|
@@ -30,6 +31,7 @@ declare const __propDef: {
|
|
|
30
31
|
id?: string;
|
|
31
32
|
cls?: string;
|
|
32
33
|
theme?: "light" | "dark" | "lightblue";
|
|
34
|
+
allowClientOverrides?: boolean;
|
|
33
35
|
width?: "narrow" | "medium" | "wide" | "full";
|
|
34
36
|
height?: number | string;
|
|
35
37
|
marginTop?: boolean;
|
|
@@ -6,6 +6,7 @@ export default class Hero extends SvelteComponentTyped<{
|
|
|
6
6
|
cls?: string;
|
|
7
7
|
theme?: "light" | "dark" | "lightblue";
|
|
8
8
|
background?: string;
|
|
9
|
+
allowClientOverrides?: boolean;
|
|
9
10
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
10
11
|
height?: "full" | "auto" | "tall";
|
|
11
12
|
themeOverrides?: any;
|
|
@@ -28,6 +29,7 @@ declare const __propDef: {
|
|
|
28
29
|
cls?: string;
|
|
29
30
|
theme?: "light" | "dark" | "lightblue";
|
|
30
31
|
background?: string;
|
|
32
|
+
allowClientOverrides?: boolean;
|
|
31
33
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
32
34
|
height?: "auto" | "tall" | "full";
|
|
33
35
|
themeOverrides?: object;
|
|
@@ -5,6 +5,7 @@ export default class Highlight extends SvelteComponentTyped<{
|
|
|
5
5
|
id?: string;
|
|
6
6
|
theme?: "light" | "dark" | "lightblue";
|
|
7
7
|
background?: string;
|
|
8
|
+
allowClientOverrides?: boolean;
|
|
8
9
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
9
10
|
height?: "full" | "auto" | "tall";
|
|
10
11
|
marginTop?: boolean;
|
|
@@ -25,6 +26,7 @@ declare const __propDef: {
|
|
|
25
26
|
id?: string;
|
|
26
27
|
theme?: "light" | "dark" | "lightblue";
|
|
27
28
|
background?: string;
|
|
29
|
+
allowClientOverrides?: boolean;
|
|
28
30
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
29
31
|
height?: "auto" | "tall" | "full";
|
|
30
32
|
marginTop?: boolean;
|
|
@@ -6,6 +6,7 @@ export default class NavSections extends SvelteComponentTyped<{
|
|
|
6
6
|
cls?: string;
|
|
7
7
|
theme?: "light" | "dark" | "lightblue";
|
|
8
8
|
background?: string;
|
|
9
|
+
allowClientOverrides?: boolean;
|
|
9
10
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
10
11
|
marginTop?: boolean;
|
|
11
12
|
marginBottom?: boolean;
|
|
@@ -34,6 +35,7 @@ declare const __propDef: {
|
|
|
34
35
|
cls?: string;
|
|
35
36
|
theme?: "light" | "dark" | "lightblue";
|
|
36
37
|
background?: string;
|
|
38
|
+
allowClientOverrides?: boolean;
|
|
37
39
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
38
40
|
marginTop?: boolean;
|
|
39
41
|
marginBottom?: boolean;
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export default class ScrollerSection extends SvelteComponentTyped<{
|
|
5
5
|
id?: string;
|
|
6
6
|
theme?: "light" | "dark" | "lightblue";
|
|
7
|
+
allowClientOverrides?: boolean;
|
|
8
|
+
themeOverrides?: any;
|
|
7
9
|
title?: string;
|
|
8
10
|
hideTitle?: boolean;
|
|
9
11
|
}, {
|
|
@@ -20,6 +22,8 @@ declare const __propDef: {
|
|
|
20
22
|
props: {
|
|
21
23
|
id?: string;
|
|
22
24
|
theme?: "light" | "dark" | "lightblue";
|
|
25
|
+
allowClientOverrides?: boolean;
|
|
26
|
+
themeOverrides?: object;
|
|
23
27
|
title?: string;
|
|
24
28
|
hideTitle?: boolean;
|
|
25
29
|
};
|
|
@@ -6,6 +6,7 @@ export default class Section extends SvelteComponentTyped<{
|
|
|
6
6
|
cls?: string;
|
|
7
7
|
theme?: "light" | "dark" | "lightblue";
|
|
8
8
|
background?: string;
|
|
9
|
+
allowClientOverrides?: boolean;
|
|
9
10
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
10
11
|
marginTop?: boolean;
|
|
11
12
|
marginBottom?: boolean;
|
|
@@ -28,6 +29,7 @@ declare const __propDef: {
|
|
|
28
29
|
cls?: string;
|
|
29
30
|
theme?: "light" | "dark" | "lightblue";
|
|
30
31
|
background?: string;
|
|
32
|
+
allowClientOverrides?: boolean;
|
|
31
33
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
32
34
|
marginTop?: boolean;
|
|
33
35
|
marginBottom?: boolean;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ShareButtonsSlots */
|
|
4
4
|
export default class ShareButtons extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "lightblue";
|
|
6
|
+
allowClientOverrides?: boolean;
|
|
6
7
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
7
8
|
marginTop?: boolean;
|
|
8
9
|
marginBottom?: boolean;
|
|
@@ -19,6 +20,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
19
20
|
declare const __propDef: {
|
|
20
21
|
props: {
|
|
21
22
|
theme?: "light" | "dark" | "lightblue";
|
|
23
|
+
allowClientOverrides?: boolean;
|
|
22
24
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
23
25
|
marginTop?: boolean;
|
|
24
26
|
marginBottom?: boolean;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export default class Titleblock extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "lightblue";
|
|
6
6
|
background?: string;
|
|
7
|
+
allowClientOverrides?: boolean;
|
|
7
8
|
themeOverrides?: any;
|
|
8
9
|
meta?: any[];
|
|
9
10
|
title?: string;
|
|
@@ -26,6 +27,7 @@ declare const __propDef: {
|
|
|
26
27
|
props: {
|
|
27
28
|
theme?: "light" | "dark" | "lightblue";
|
|
28
29
|
background?: string;
|
|
30
|
+
allowClientOverrides?: boolean;
|
|
29
31
|
themeOverrides?: object;
|
|
30
32
|
meta?: any[];
|
|
31
33
|
title?: string;
|
|
@@ -6,6 +6,7 @@ export default class Container extends SvelteComponentTyped<{
|
|
|
6
6
|
cls?: string;
|
|
7
7
|
theme?: "light" | "dark" | "lightblue";
|
|
8
8
|
background?: string;
|
|
9
|
+
allowClientOverrides?: boolean;
|
|
9
10
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
10
11
|
height?: "full" | "auto" | "tall";
|
|
11
12
|
marginTop?: boolean;
|
|
@@ -27,6 +28,7 @@ declare const __propDef: {
|
|
|
27
28
|
cls?: string;
|
|
28
29
|
theme?: "light" | "dark" | "lightblue";
|
|
29
30
|
background?: string;
|
|
31
|
+
allowClientOverrides?: boolean;
|
|
30
32
|
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
31
33
|
height?: "auto" | "tall" | "full";
|
|
32
34
|
marginTop?: boolean;
|
|
@@ -8,7 +8,7 @@ export default class Theme extends SvelteComponentTyped<{
|
|
|
8
8
|
theme?: "light" | "dark" | "lightblue";
|
|
9
9
|
overrides?: any;
|
|
10
10
|
background?: string;
|
|
11
|
-
|
|
11
|
+
allowClientOverrides?: boolean;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -27,7 +27,7 @@ declare const __propDef: {
|
|
|
27
27
|
theme?: "light" | "dark" | "lightblue";
|
|
28
28
|
overrides?: object;
|
|
29
29
|
background?: string;
|
|
30
|
-
|
|
30
|
+
allowClientOverrides?: boolean;
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
33
33
|
[evt: string]: CustomEvent<any>;
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
* @type {object}
|
|
22
22
|
*/
|
|
23
23
|
export let themeOverrides = null;
|
|
24
|
+
/**
|
|
25
|
+
* Allows client imported CSS for embeddable content
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
*/
|
|
28
|
+
export let allowClientOverrides = false;
|
|
24
29
|
/**
|
|
25
30
|
* Optional margin above section
|
|
26
31
|
* @type {boolean}
|
|
@@ -36,6 +41,7 @@
|
|
|
36
41
|
<Container
|
|
37
42
|
theme="{theme}"
|
|
38
43
|
themeOverrides="{themeOverrides}"
|
|
44
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
39
45
|
width="{width}"
|
|
40
46
|
marginTop="{marginTop}"
|
|
41
47
|
marginBottom="{marginBottom}"
|
|
@@ -26,11 +26,17 @@
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
*/
|
|
28
28
|
export let background = null;
|
|
29
|
+
/**
|
|
30
|
+
* Allows client imported CSS for embeddable content
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
*/
|
|
33
|
+
export let allowClientOverrides = false;
|
|
29
34
|
</script>
|
|
30
35
|
|
|
31
36
|
<Container
|
|
32
37
|
theme="{theme}"
|
|
33
38
|
themeOverrides="{themeOverrides}"
|
|
39
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
34
40
|
width="{width}"
|
|
35
41
|
background="{background}"
|
|
36
42
|
>
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
* @type {object}
|
|
39
39
|
*/
|
|
40
40
|
export let themeOverrides = null;
|
|
41
|
+
/**
|
|
42
|
+
* Allows client imported CSS for embeddable content
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
*/
|
|
45
|
+
export let allowClientOverrides = false;
|
|
41
46
|
/**
|
|
42
47
|
* Optional margin above section
|
|
43
48
|
* @type {boolean}
|
|
@@ -101,6 +106,7 @@
|
|
|
101
106
|
cls="{cls}"
|
|
102
107
|
theme="{theme}"
|
|
103
108
|
themeOverrides="{themeOverrides}"
|
|
109
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
104
110
|
width="{width}"
|
|
105
111
|
height="{['tall', 'full'].includes(height) ? height : 'auto'}"
|
|
106
112
|
marginTop="{marginTop}"
|
|
@@ -124,6 +130,7 @@
|
|
|
124
130
|
cls="{cls}"
|
|
125
131
|
theme="{theme}"
|
|
126
132
|
themeOverrides="{themeOverrides}"
|
|
133
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
127
134
|
width="narrow"
|
|
128
135
|
marginBottom="{marginBottom}"
|
|
129
136
|
>
|
|
@@ -47,6 +47,11 @@
|
|
|
47
47
|
* @type {object}
|
|
48
48
|
*/
|
|
49
49
|
export let themeOverrides = null;
|
|
50
|
+
/**
|
|
51
|
+
* Allows client imported CSS for embeddable content
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
*/
|
|
54
|
+
export let allowClientOverrides = false;
|
|
50
55
|
/**
|
|
51
56
|
* Overrides the background CSS for the section
|
|
52
57
|
* @type {string}
|
|
@@ -59,6 +64,7 @@
|
|
|
59
64
|
cls="{cls}"
|
|
60
65
|
theme="{theme}"
|
|
61
66
|
themeOverrides="{themeOverrides}"
|
|
67
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
62
68
|
width="{width}"
|
|
63
69
|
background="{background}"
|
|
64
70
|
height="{height}"
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
*/
|
|
33
33
|
export let background = null;
|
|
34
|
+
/**
|
|
35
|
+
* Allows client imported CSS for embeddable content
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
*/
|
|
38
|
+
export let allowClientOverrides = false;
|
|
34
39
|
/**
|
|
35
40
|
* Optional margin above section
|
|
36
41
|
* @type {boolean}
|
|
@@ -46,6 +51,7 @@
|
|
|
46
51
|
<Container
|
|
47
52
|
theme="{theme}"
|
|
48
53
|
themeOverrides="{themeOverrides}"
|
|
54
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
49
55
|
width="{width}"
|
|
50
56
|
background="{background}"
|
|
51
57
|
marginTop="{marginTop}"
|
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
* @type {string}
|
|
44
44
|
*/
|
|
45
45
|
export let background = null;
|
|
46
|
+
/**
|
|
47
|
+
* Allows client imported CSS for embeddable content
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
*/
|
|
50
|
+
export let allowClientOverrides = false;
|
|
46
51
|
/**
|
|
47
52
|
* Optional margin above section
|
|
48
53
|
* @type {boolean}
|
|
@@ -89,6 +94,7 @@
|
|
|
89
94
|
cls="{cls}"
|
|
90
95
|
theme="{theme}"
|
|
91
96
|
themeOverrides="{themeOverrides}"
|
|
97
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
92
98
|
width="{width}"
|
|
93
99
|
marginTop="{marginTop}"
|
|
94
100
|
marginBottom="{marginBottom}"
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
* @type {"light"|"dark"|"lightblue"}
|
|
13
13
|
*/
|
|
14
14
|
export let theme = null;
|
|
15
|
+
/**
|
|
16
|
+
* Define additional props to override the base theme
|
|
17
|
+
* @type {object}
|
|
18
|
+
*/
|
|
19
|
+
export let themeOverrides = null;
|
|
20
|
+
/**
|
|
21
|
+
* Allows client imported CSS for embeddable content
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
*/
|
|
24
|
+
export let allowClientOverrides = false;
|
|
15
25
|
/**
|
|
16
26
|
* Sets the title of the section
|
|
17
27
|
* @type {string}
|
|
@@ -41,7 +51,12 @@
|
|
|
41
51
|
</script>
|
|
42
52
|
|
|
43
53
|
<section data-id="{id}" bind:this="{section}">
|
|
44
|
-
<Container
|
|
54
|
+
<Container
|
|
55
|
+
theme="{theme}"
|
|
56
|
+
themeOverrides="{themeOverrides}"
|
|
57
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
58
|
+
width="narrow"
|
|
59
|
+
>
|
|
45
60
|
<div class="ons-scroller-section">
|
|
46
61
|
{#if title}
|
|
47
62
|
<h2 class="section-title" class:ons-u-vh="{hideTitle}">{title}</h2>
|
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
*/
|
|
44
44
|
export let background = null;
|
|
45
|
+
/**
|
|
46
|
+
* Allows client imported CSS for embeddable content
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
*/
|
|
49
|
+
export let allowClientOverrides = false;
|
|
45
50
|
/**
|
|
46
51
|
* Optional margin above section
|
|
47
52
|
* @type {boolean}
|
|
@@ -59,6 +64,7 @@
|
|
|
59
64
|
cls="{cls}"
|
|
60
65
|
theme="{theme}"
|
|
61
66
|
themeOverrides="{themeOverrides}"
|
|
67
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
62
68
|
width="{width}"
|
|
63
69
|
marginTop="{marginTop}"
|
|
64
70
|
marginBottom="{marginBottom}"
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
* @type {object}
|
|
23
23
|
*/
|
|
24
24
|
export let themeOverrides = null;
|
|
25
|
+
/**
|
|
26
|
+
* Allows client imported CSS for embeddable content
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
*/
|
|
29
|
+
export let allowClientOverrides = false;
|
|
25
30
|
/**
|
|
26
31
|
* Optional margin above section
|
|
27
32
|
* @type {boolean}
|
|
@@ -45,6 +50,7 @@
|
|
|
45
50
|
<Container
|
|
46
51
|
theme="{theme}"
|
|
47
52
|
themeOverrides="{themeOverrides}"
|
|
53
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
48
54
|
width="{width}"
|
|
49
55
|
marginTop="{marginTop}"
|
|
50
56
|
marginBottom="{marginBottom}"
|
|
@@ -37,9 +37,19 @@
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
*/
|
|
39
39
|
export let background = null;
|
|
40
|
+
/**
|
|
41
|
+
* Allows client imported CSS for embeddable content
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
*/
|
|
44
|
+
export let allowClientOverrides = false;
|
|
40
45
|
</script>
|
|
41
46
|
|
|
42
|
-
<Container
|
|
47
|
+
<Container
|
|
48
|
+
theme="{theme}"
|
|
49
|
+
themeOverrides="{themeOverrides}"
|
|
50
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
51
|
+
background="{background}"
|
|
52
|
+
>
|
|
43
53
|
<section class="ons-u-mb-xl">
|
|
44
54
|
<slot name="before" />
|
|
45
55
|
<div class="ons-grid">
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
* @type {string}
|
|
47
47
|
*/
|
|
48
48
|
export let background = null;
|
|
49
|
+
/**
|
|
50
|
+
* Allows client imported CSS for embeddable content
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
*/
|
|
53
|
+
export let allowClientOverrides = false;
|
|
49
54
|
|
|
50
55
|
$: _id = id && !(theme || background) ? id : null;
|
|
51
56
|
$: _cls = cls && !(theme || background) ? cls : "";
|
|
@@ -58,6 +63,7 @@
|
|
|
58
63
|
theme="{theme}"
|
|
59
64
|
background="{background}"
|
|
60
65
|
overrides="{themeOverrides}"
|
|
66
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
61
67
|
>
|
|
62
68
|
<div
|
|
63
69
|
id="{_id}"
|
|
@@ -82,6 +88,7 @@
|
|
|
82
88
|
theme="{theme}"
|
|
83
89
|
background="{background}"
|
|
84
90
|
overrides="{themeOverrides}"
|
|
91
|
+
allowClientOverrides="{allowClientOverrides}"
|
|
85
92
|
>
|
|
86
93
|
<div
|
|
87
94
|
id="{_id}"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* Allows client imported CSS for embeddable content
|
|
36
36
|
* @type {boolean}
|
|
37
37
|
*/
|
|
38
|
-
export let
|
|
38
|
+
export let allowClientOverrides = false;
|
|
39
39
|
|
|
40
40
|
function makeStyle(theme, overrides, background) {
|
|
41
41
|
if (theme) {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
class="{cls ? `theme-wrapper ${cls}` : 'theme-wrapper'}"
|
|
67
67
|
style="{style} display: contents"
|
|
68
68
|
>
|
|
69
|
-
{#if
|
|
69
|
+
{#if allowClientOverrides}
|
|
70
70
|
<div class="client-css-override" style:display="contents">
|
|
71
71
|
<div class="theme-internal">
|
|
72
72
|
<slot />
|