@coyalabs/bts-style 1.3.14 → 1.3.17
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/README.md +58 -8
- package/dist/Base/BaseText.svelte +6 -5
- package/dist/Components/ContextMenu.svelte +175 -29
- package/dist/Components/InputBox.svelte +241 -18
- package/dist/Components/InputBox.svelte.d.ts +23 -1
- package/dist/Components/Popup/AlertPopup.svelte +8 -0
- package/dist/Components/Popup/AlertPopup.svelte.d.ts +11 -1
- package/dist/Components/Popup/ConfirmPopup.svelte +8 -0
- package/dist/Components/Popup/ConfirmPopup.svelte.d.ts +11 -1
- package/dist/Components/Popup/Popup.svelte +90 -3
- package/dist/Components/Popup/PromptPopup.svelte +16 -1
- package/dist/Components/Popup/PromptPopup.svelte.d.ts +15 -1
- package/dist/Components/Popup/popupStore.d.ts +12 -0
- package/dist/Components/Popup/popupStore.js +57 -29
- package/dist/Components/ScrollContainer.svelte +88 -3
- package/dist/Components/ScrollContainer.svelte.d.ts +2 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.js +2 -1
- package/package.json +2 -2
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
export namespace popupStore {
|
|
2
2
|
let subscribe: (this: void, run: import("svelte/store").Subscriber<{
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
component: any;
|
|
7
|
+
props: {};
|
|
8
|
+
widthRatio?: undefined;
|
|
9
|
+
} | {
|
|
3
10
|
isOpen: boolean;
|
|
4
11
|
title: string;
|
|
5
12
|
subtitle: string;
|
|
6
13
|
component: any;
|
|
7
14
|
props: any;
|
|
15
|
+
widthRatio: number;
|
|
8
16
|
}>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
9
17
|
namespace stack {
|
|
10
18
|
let subscribe_1: (this: void, run: import("svelte/store").Subscriber<PopupState[]>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
@@ -18,10 +26,12 @@ export namespace popupStore {
|
|
|
18
26
|
onCancel?: (() => void) | undefined;
|
|
19
27
|
confirmText?: string | undefined;
|
|
20
28
|
cancelText?: string | undefined;
|
|
29
|
+
popupWidthRatio?: number | undefined;
|
|
21
30
|
}): void;
|
|
22
31
|
function alert(title: string, message: string, options?: {
|
|
23
32
|
onOk?: (() => void) | undefined;
|
|
24
33
|
okText?: string | undefined;
|
|
34
|
+
popupWidthRatio?: number | undefined;
|
|
25
35
|
}): void;
|
|
26
36
|
function prompt(title: string, message: string, options?: {
|
|
27
37
|
onSubmit?: ((value: string) => void) | undefined;
|
|
@@ -30,6 +40,7 @@ export namespace popupStore {
|
|
|
30
40
|
submitText?: string | undefined;
|
|
31
41
|
cancelText?: string | undefined;
|
|
32
42
|
label?: string | undefined;
|
|
43
|
+
popupWidthRatio?: number | undefined;
|
|
33
44
|
}): void;
|
|
34
45
|
}
|
|
35
46
|
export type PopupState = {
|
|
@@ -38,4 +49,5 @@ export type PopupState = {
|
|
|
38
49
|
component: any;
|
|
39
50
|
props: any;
|
|
40
51
|
id: string;
|
|
52
|
+
widthRatio: number;
|
|
41
53
|
};
|
|
@@ -10,8 +10,56 @@ import PromptPopup from './PromptPopup.svelte';
|
|
|
10
10
|
* @property {any} component
|
|
11
11
|
* @property {any} props
|
|
12
12
|
* @property {string} id
|
|
13
|
+
* @property {number} widthRatio
|
|
13
14
|
*/
|
|
14
15
|
|
|
16
|
+
/**
|
|
17
|
+
* @param {unknown} value
|
|
18
|
+
*/
|
|
19
|
+
function normalizePopupWidthRatio(value) {
|
|
20
|
+
const ratio = Number(value);
|
|
21
|
+
return Number.isFinite(ratio) && ratio > 0 ? ratio : 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @param {any} rawProps
|
|
26
|
+
*/
|
|
27
|
+
function splitPopupProps(rawProps = {}) {
|
|
28
|
+
if (!rawProps || typeof rawProps !== 'object' || Array.isArray(rawProps)) {
|
|
29
|
+
return {
|
|
30
|
+
props: {},
|
|
31
|
+
widthRatio: 1
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const { popupWidthRatio, ...props } = rawProps;
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
props,
|
|
39
|
+
widthRatio: normalizePopupWidthRatio(popupWidthRatio)
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} title
|
|
45
|
+
* @param {string} subtitle
|
|
46
|
+
* @param {any} component
|
|
47
|
+
* @param {any} rawProps
|
|
48
|
+
* @returns {PopupState}
|
|
49
|
+
*/
|
|
50
|
+
function createPopupEntry(title, subtitle, component, rawProps = {}) {
|
|
51
|
+
const { props, widthRatio } = splitPopupProps(rawProps);
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
id: crypto.randomUUID(),
|
|
55
|
+
title,
|
|
56
|
+
subtitle,
|
|
57
|
+
component,
|
|
58
|
+
props,
|
|
59
|
+
widthRatio
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
15
63
|
function createPopupStore() {
|
|
16
64
|
/** @type {import('svelte/store').Writable<PopupState[]>} */
|
|
17
65
|
const stack = writable([]);
|
|
@@ -33,7 +81,8 @@ function createPopupStore() {
|
|
|
33
81
|
title: top.title,
|
|
34
82
|
subtitle: top.subtitle || '',
|
|
35
83
|
component: top.component,
|
|
36
|
-
props: top.props
|
|
84
|
+
props: top.props,
|
|
85
|
+
widthRatio: top.widthRatio
|
|
37
86
|
};
|
|
38
87
|
});
|
|
39
88
|
|
|
@@ -44,13 +93,7 @@ function createPopupStore() {
|
|
|
44
93
|
stack: { subscribe: stack.subscribe },
|
|
45
94
|
|
|
46
95
|
open: (/** @type {string} */ title, /** @type {any} */ component, props = {}, subtitle = '') => {
|
|
47
|
-
stack.update(s => [...s,
|
|
48
|
-
id: crypto.randomUUID(),
|
|
49
|
-
title,
|
|
50
|
-
subtitle,
|
|
51
|
-
component,
|
|
52
|
-
props
|
|
53
|
-
}]);
|
|
96
|
+
stack.update(s => [...s, createPopupEntry(title, subtitle, component, props)]);
|
|
54
97
|
},
|
|
55
98
|
|
|
56
99
|
close: () => {
|
|
@@ -70,15 +113,10 @@ function createPopupStore() {
|
|
|
70
113
|
* @param {() => void} [options.onCancel]
|
|
71
114
|
* @param {string} [options.confirmText]
|
|
72
115
|
* @param {string} [options.cancelText]
|
|
116
|
+
* @param {number} [options.popupWidthRatio]
|
|
73
117
|
*/
|
|
74
118
|
confirm: (title, message, options = {}) => {
|
|
75
|
-
stack.update(s => [...s,
|
|
76
|
-
id: crypto.randomUUID(),
|
|
77
|
-
title,
|
|
78
|
-
subtitle: message,
|
|
79
|
-
component: ConfirmPopup,
|
|
80
|
-
props: options
|
|
81
|
-
}]);
|
|
119
|
+
stack.update(s => [...s, createPopupEntry(title, message, ConfirmPopup, options)]);
|
|
82
120
|
},
|
|
83
121
|
|
|
84
122
|
/**
|
|
@@ -88,15 +126,10 @@ function createPopupStore() {
|
|
|
88
126
|
* @param {Object} options
|
|
89
127
|
* @param {() => void} [options.onOk]
|
|
90
128
|
* @param {string} [options.okText]
|
|
129
|
+
* @param {number} [options.popupWidthRatio]
|
|
91
130
|
*/
|
|
92
131
|
alert: (title, message, options = {}) => {
|
|
93
|
-
stack.update(s => [...s,
|
|
94
|
-
id: crypto.randomUUID(),
|
|
95
|
-
title,
|
|
96
|
-
subtitle: message,
|
|
97
|
-
component: AlertPopup,
|
|
98
|
-
props: options
|
|
99
|
-
}]);
|
|
132
|
+
stack.update(s => [...s, createPopupEntry(title, message, AlertPopup, options)]);
|
|
100
133
|
},
|
|
101
134
|
|
|
102
135
|
/**
|
|
@@ -110,15 +143,10 @@ function createPopupStore() {
|
|
|
110
143
|
* @param {string} [options.submitText]
|
|
111
144
|
* @param {string} [options.cancelText]
|
|
112
145
|
* @param {string} [options.label]
|
|
146
|
+
* @param {number} [options.popupWidthRatio]
|
|
113
147
|
*/
|
|
114
148
|
prompt: (title, message, options = {}) => {
|
|
115
|
-
stack.update(s => [...s,
|
|
116
|
-
id: crypto.randomUUID(),
|
|
117
|
-
title,
|
|
118
|
-
subtitle: message,
|
|
119
|
-
component: PromptPopup,
|
|
120
|
-
props: options
|
|
121
|
-
}]);
|
|
149
|
+
stack.update(s => [...s, createPopupEntry(title, message, PromptPopup, options)]);
|
|
122
150
|
}
|
|
123
151
|
};
|
|
124
152
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { onMount, tick } from 'svelte';
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
5
|
* @type {'auto' | 'scroll' | 'hidden' | 'visible'}
|
|
4
6
|
*/
|
|
@@ -53,11 +55,74 @@
|
|
|
53
55
|
* @type {string}
|
|
54
56
|
*/
|
|
55
57
|
export let borderRadius = '4px';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Hide scrollbars until the container has been scrolled away from its initial position.
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
*/
|
|
63
|
+
export let hideScrollbarUntilScroll = false;
|
|
64
|
+
|
|
65
|
+
/** @type {HTMLDivElement | null} */
|
|
66
|
+
let containerRef = null;
|
|
67
|
+
|
|
68
|
+
let hasBeenScrolled = false;
|
|
69
|
+
|
|
70
|
+
$: scrollbarsHidden = hideScrollbarUntilScroll && !hasBeenScrolled;
|
|
71
|
+
|
|
72
|
+
function updateScrolledState() {
|
|
73
|
+
if (!hideScrollbarUntilScroll || !containerRef) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (containerRef.scrollTop > 0 || containerRef.scrollLeft > 0) {
|
|
78
|
+
hasBeenScrolled = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function handleScroll() {
|
|
83
|
+
updateScrolledState();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Reveal the scrollbars and replay the first wheel delta so the first scroll
|
|
88
|
+
* interaction still moves content even though overflow starts hidden.
|
|
89
|
+
* @param {WheelEvent} event
|
|
90
|
+
*/
|
|
91
|
+
function handleInitialWheel(event) {
|
|
92
|
+
if (!scrollbarsHidden || !containerRef) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (event.deltaX === 0 && event.deltaY === 0) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
hasBeenScrolled = true;
|
|
102
|
+
|
|
103
|
+
void tick().then(() => {
|
|
104
|
+
containerRef?.scrollBy({ left: event.deltaX, top: event.deltaY });
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
onMount(() => {
|
|
109
|
+
void tick().then(() => {
|
|
110
|
+
updateScrolledState();
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
$: if (!hideScrollbarUntilScroll) {
|
|
115
|
+
hasBeenScrolled = false;
|
|
116
|
+
}
|
|
56
117
|
</script>
|
|
57
118
|
|
|
58
119
|
<div
|
|
59
120
|
class="scroll-container"
|
|
60
|
-
|
|
121
|
+
class:hidden-scrollbar-until-scroll={scrollbarsHidden}
|
|
122
|
+
bind:this={containerRef}
|
|
123
|
+
on:scroll={handleScroll}
|
|
124
|
+
on:wheel={handleInitialWheel}
|
|
125
|
+
style="--effective-overflow-x: {scrollbarsHidden ? 'hidden' : overflowX}; --effective-overflow-y: {scrollbarsHidden ? 'hidden' : overflowY}; --width: {width}; --height: {height}; --max-width: {maxWidth}; --max-height: {maxHeight}; --scrollbar-size: {scrollbarSize}; --scroll-track-color: {trackColor}; --scroll-thumb-color: {thumbColor}; --scroll-thumb-hover-color: {thumbHoverColor}; --scroll-radius: {borderRadius};"
|
|
61
126
|
>
|
|
62
127
|
<slot />
|
|
63
128
|
</div>
|
|
@@ -68,17 +133,37 @@
|
|
|
68
133
|
height: var(--height);
|
|
69
134
|
max-width: var(--max-width);
|
|
70
135
|
max-height: var(--max-height);
|
|
71
|
-
overflow-x: var(--overflow-x);
|
|
72
|
-
overflow-y: var(--overflow-y);
|
|
136
|
+
overflow-x: var(--effective-overflow-x);
|
|
137
|
+
overflow-y: var(--effective-overflow-y);
|
|
73
138
|
scrollbar-color: var(--scroll-thumb-color) var(--scroll-track-color);
|
|
74
139
|
scrollbar-width: thin;
|
|
75
140
|
}
|
|
76
141
|
|
|
142
|
+
.scroll-container.hidden-scrollbar-until-scroll {
|
|
143
|
+
scrollbar-width: none;
|
|
144
|
+
-ms-overflow-style: none;
|
|
145
|
+
scrollbar-color: transparent transparent;
|
|
146
|
+
}
|
|
147
|
+
|
|
77
148
|
.scroll-container::-webkit-scrollbar {
|
|
78
149
|
width: var(--scrollbar-size);
|
|
79
150
|
height: var(--scrollbar-size);
|
|
80
151
|
}
|
|
81
152
|
|
|
153
|
+
.scroll-container.hidden-scrollbar-until-scroll::-webkit-scrollbar {
|
|
154
|
+
display: none;
|
|
155
|
+
width: 0;
|
|
156
|
+
height: 0;
|
|
157
|
+
background: transparent;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.scroll-container.hidden-scrollbar-until-scroll::-webkit-scrollbar-track,
|
|
161
|
+
.scroll-container.hidden-scrollbar-until-scroll::-webkit-scrollbar-thumb,
|
|
162
|
+
.scroll-container.hidden-scrollbar-until-scroll::-webkit-scrollbar-corner {
|
|
163
|
+
background: transparent;
|
|
164
|
+
border-radius: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
82
167
|
.scroll-container::-webkit-scrollbar-track {
|
|
83
168
|
background: var(--scroll-track-color);
|
|
84
169
|
border-radius: var(--scroll-radius);
|
|
@@ -11,6 +11,7 @@ type ScrollContainer = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
|
11
11
|
thumbColor?: string | undefined;
|
|
12
12
|
thumbHoverColor?: string | undefined;
|
|
13
13
|
borderRadius?: string | undefined;
|
|
14
|
+
hideScrollbarUntilScroll?: boolean | undefined;
|
|
14
15
|
}, {
|
|
15
16
|
default: {};
|
|
16
17
|
}>, {
|
|
@@ -32,6 +33,7 @@ declare const ScrollContainer: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2
|
|
|
32
33
|
thumbColor?: string | undefined;
|
|
33
34
|
thumbHoverColor?: string | undefined;
|
|
34
35
|
borderRadius?: string | undefined;
|
|
36
|
+
hideScrollbarUntilScroll?: boolean | undefined;
|
|
35
37
|
}, {
|
|
36
38
|
default: {};
|
|
37
39
|
}>, {
|
package/dist/icons.d.ts
CHANGED
package/dist/icons.js
CHANGED
|
@@ -15,8 +15,9 @@ export const icons = {
|
|
|
15
15
|
statistics: '<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.16125 8.83871C6.16125 7.27093 5.04197 6 3.66125 6C2.28054 6 1.16125 7.27093 1.16125 8.83871V11.1613C1.16125 12.7291 2.28054 14 3.66125 14C5.04197 14 6.16125 12.7291 6.16125 11.1613V8.83871Z" stroke-width="1.5"/><path d="M14.1613 3.86C14.1613 2.28047 13.042 1 11.6613 1C10.2805 1 9.16125 2.28047 9.16125 3.86V11.14C9.16125 12.7195 10.2805 14 11.6613 14C13.042 14 14.1613 12.7195 14.1613 11.14V3.86Z" stroke-width="1.5"/></svg>',
|
|
16
16
|
restart: '<svg width="21" height="16" viewBox="0 0 21 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.042 1.87012L15.9668 1.90332L18.4326 1.9248L16.6484 3.62695L16.2246 4.03125C17.2954 5.19269 17.953 6.7371 17.9531 8.43652C17.9531 12.0772 14.9522 15 11.29 15C11.1834 15 11.0803 14.9958 10.9951 14.9922L10.0381 14.9512V10.7988L11.1084 10.874C11.1793 10.879 11.2374 10.8808 11.29 10.8809C12.6912 10.8809 13.7969 9.77025 13.7969 8.43652C13.7968 7.85203 13.5852 7.31302 13.2285 6.88965L12.6416 7.4502L10.9004 9.1084L10.9512 6.70508L11.0332 2.84863L11.0547 1.8623L12.042 1.87012ZM10.8682 5.20117L9.79785 5.12598C9.72692 5.12102 9.66883 5.11915 9.61621 5.11914C8.21502 5.11914 7.10938 6.22975 7.10938 7.56348C7.10945 8.14749 7.32058 8.68616 7.67676 9.10938L8.26465 8.5498L10.0059 6.8916L9.95508 9.29492L9.87305 13.1514L9.85156 14.1377L8.86426 14.1299L4.93945 14.0967L2.47363 14.0752L4.25781 12.373L4.68066 11.9678C3.61042 10.8064 2.9532 9.26241 2.95312 7.56348C2.95312 3.9228 5.95402 1 9.61621 1C9.72288 1.00001 9.82593 1.00416 9.91113 1.00781L10.8682 1.04883V5.20117Z" stroke-width="2"/></svg>',
|
|
17
17
|
lines: '<svg width="17" height="15" viewBox="0 0 17 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 1H3.4C2.07452 1 1 2.10612 1 3.47059C1 4.83506 2.07452 5.94118 3.4 5.94118H13C14.3255 5.94118 15.4 4.83506 15.4 3.47059C15.4 2.10612 14.3255 1 13 1Z" stroke-width="1.5"/><path d="M7.4 8.41174H3.4C2.07452 8.41174 1 9.51786 1 10.8823C1 12.2468 2.07452 13.3529 3.4 13.3529H7.4C8.72548 13.3529 9.8 12.2468 9.8 10.8823C9.8 9.51786 8.72548 8.41174 7.4 8.41174Z" stroke-width="1.5"/></svg>',
|
|
18
|
-
add: '<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 1C8.47276 1 9.66667 2.19391 9.66667 3.66667V4.33333H10.3333C11.8061 4.33333 13 5.52724 13 7C13 8.47276 11.8061 9.66667 10.3333 9.66667H9.66667V10.3333C9.66667 11.8061 8.47276 13 7 13C5.52724 13 4.33333 11.8061 4.33333 10.3333V9.66667H3.66667C2.19391 9.66667 1 8.47276 1 7C1 5.52724 2.19391 4.33333 3.66667 4.33333H4.33333V3.66667C4.33333 2.19391 5.52724 1 7 1Z" stroke-width="
|
|
18
|
+
add: '<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 1C8.47276 1 9.66667 2.19391 9.66667 3.66667V4.33333H10.3333C11.8061 4.33333 13 5.52724 13 7C13 8.47276 11.8061 9.66667 10.3333 9.66667H9.66667V10.3333C9.66667 11.8061 8.47276 13 7 13C5.52724 13 4.33333 11.8061 4.33333 10.3333V9.66667H3.66667C2.19391 9.66667 1 8.47276 1 7C1 5.52724 2.19391 4.33333 3.66667 4.33333H4.33333V3.66667C4.33333 2.19391 5.52724 1 7 1Z" stroke-width="1.75"/></svg>',
|
|
19
19
|
copy: '<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_2405_287)"><path d="M4.59998 6.7373V11.2178C4.59998 12.6165 5.76404 13.7503 7.19998 13.7503H11.2C12.6359 13.7503 13.8 12.6165 13.8 11.2178V6.7373C13.8 5.33866 12.6359 4.20483 11.2 4.20483H7.19998C5.76404 4.20483 4.59998 5.33866 4.59998 6.7373Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.29995 10.7143H3.79995C2.36401 10.7143 1.19995 9.58045 1.19995 8.18181V3.70129C1.19995 2.30265 2.36401 1.16882 3.79995 1.16882H7.99995C9.32543 1.16882 10.4 2.21543 10.4 3.50649" stroke-width="1.5" stroke-linejoin="round"/></g><defs><clipPath id="clip0_2405_287"><rect width="15" height="15" /></clipPath></defs></svg>',
|
|
20
20
|
warning: '<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_2446_239)"><path d="M3.73917 12.9058C1.65966 12.9058 0.380245 10.6945 1.46017 8.96679L5.63794 2.28311C6.67655 0.621614 9.15698 0.621615 10.1956 2.28311L14.3734 8.96679C15.4533 10.6945 14.1739 12.9058 12.0944 12.9058H3.73917Z" stroke-width="1.5"/><path d="M8.62167 8.00578C8.56795 8.35633 8.25141 8.60315 7.88688 8.60315C7.51627 8.60315 7.19632 8.34819 7.14711 7.99107C7.03741 7.19469 6.9707 6.17663 6.9707 5.18229V4.45801C6.9707 3.96168 7.38455 3.55933 7.89508 3.55933C8.40558 3.55933 8.81945 3.96168 8.81945 4.45801V5.18229C8.81945 6.2047 8.74098 7.22714 8.62167 8.00578ZM7.88514 10.8772C7.37822 10.8772 6.9707 10.4788 6.9707 10.0026C6.9707 9.51669 7.37822 9.11823 7.88514 9.11823C8.37218 9.11823 8.79957 9.51669 8.79957 10.0026C8.79957 10.4788 8.37218 10.8772 7.88514 10.8772Z" /></g><defs><clipPath id="clip0_2446_239"><rect width="16" height="14" "/></clipPath></defs></svg>',
|
|
21
21
|
globe: '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.261 1.21603C13.0417 0.802801 14.0107 0.996383 14.5725 1.67795L14.6868 1.83224L14.7844 1.99631C15.1298 2.64899 15.0489 3.43138 14.6155 3.99924C14.8643 4.71807 15.0002 5.48894 15.0002 6.28928C15.0002 8.56895 13.9094 10.5915 12.2229 11.8694C12.5296 12.2021 12.719 12.6448 12.719 13.133C12.7188 14.1643 11.8829 15.0001 10.8518 15.0002H5.14868C4.18186 15.0001 3.3868 14.2652 3.29126 13.3235L3.28149 13.133L3.29126 12.9416C3.33317 12.5295 3.50996 12.158 3.77563 11.8694C3.62723 11.7569 3.48371 11.6385 3.34497 11.5149C2.59429 11.7135 1.76855 11.4294 1.31372 10.7473C0.741714 9.88919 0.9741 8.72956 1.83228 8.15744L2.68774 7.58713L2.80981 7.51193C2.99465 7.40815 3.1917 7.33997 3.39185 7.30392C3.32022 6.97709 3.2815 6.63761 3.28149 6.28928C3.2816 3.68322 5.39417 1.57053 8.00024 1.57053C9.00867 1.57053 9.94236 1.88812 10.7092 2.42697C10.8438 2.21793 11.0211 2.03095 11.2415 1.884L12.0969 1.31369L12.261 1.21603ZM8.00024 5.30588C7.45692 5.30588 7.01597 5.74596 7.01587 6.28928C7.01588 6.8326 7.4568 7.27365 8.00024 7.27365C8.54367 7.27364 8.98461 6.8326 8.98462 6.28928C8.98452 5.74596 8.54356 5.30588 8.00024 5.30588Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',
|
|
22
|
+
share: '<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.66088 6.1963L5.58773 11.1778C5.7627 12.1184 6.95764 12.3055 7.38291 11.459L11.8855 2.49607C12.0597 2.14932 12.0233 1.76608 11.8491 1.4743M4.66088 6.1963L1.2945 2.74997C0.672697 2.1134 1.09882 1 1.96426 1H11.0351C11.3901 1 11.6826 1.19536 11.8491 1.4743M4.66088 6.1963L11.8491 1.4743M11.8491 1.4743L11.9119 1.43302" stroke-width="1.5"/></svg>',
|
|
22
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coyalabs/bts-style",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.17",
|
|
4
4
|
"description": "BTS Theme Svelte component templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "svelte-kit sync && svelte-package -o dist",
|
|
24
|
-
"package": "npm run build && echo Copying package to node_modules... && xcopy /E /I /Y dist C:\\Users\\Alan\\Documents\\GitHub\\coya-server-bck\\
|
|
24
|
+
"package": "npm run build && echo Copying package to node_modules... && xcopy /E /I /Y dist C:\\Users\\Alan\\Documents\\GitHub\\coya-server-bck\\work-services\\bark-backend\\frontend\\node_modules\\@coyalabs\\bts-style\\dist && xcopy /E /I /Y public C:\\Users\\Alan\\Documents\\GitHub\\coya-server-bck\\work-services\\bark-backend\\frontend\\node_modules\\@coyalabs\\bts-style\\public && copy /Y package.json C:\\Users\\Alan\\Documents\\GitHub\\coya-server-bck\\work-services\\bark-backend\\frontend\\node_modules\\@coyalabs\\bts-style\\ && echo Copy complete!",
|
|
25
25
|
"prepublishOnly": "npm run build",
|
|
26
26
|
"release": "npm version patch && npm publish --access public"
|
|
27
27
|
},
|