@bexis2/bexis2-core-ui 0.4.91 → 0.4.93
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
CHANGED
|
@@ -23,13 +23,19 @@ const theme = writable("light");
|
|
|
23
23
|
function increaseFontSize() {
|
|
24
24
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
25
25
|
document.documentElement.style.fontSize = currentFontSize + 1 + "px";
|
|
26
|
-
document.documentElement.style.setProperty(
|
|
26
|
+
document.documentElement.style.setProperty(
|
|
27
|
+
"--font-size",
|
|
28
|
+
document.documentElement.style.fontSize
|
|
29
|
+
);
|
|
27
30
|
localStorage.setItem("fontSize", document.documentElement.style.fontSize);
|
|
28
31
|
}
|
|
29
32
|
function decreaseFontSize() {
|
|
30
33
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
31
34
|
document.documentElement.style.fontSize = currentFontSize - 1 + "px";
|
|
32
|
-
document.documentElement.style.setProperty(
|
|
35
|
+
document.documentElement.style.setProperty(
|
|
36
|
+
"--font-size",
|
|
37
|
+
document.documentElement.style.fontSize
|
|
38
|
+
);
|
|
33
39
|
localStorage.setItem("fontSize", document.documentElement.style.fontSize);
|
|
34
40
|
}
|
|
35
41
|
function toggleDarkMode() {
|
|
@@ -74,34 +80,35 @@ if (import.meta.env.DEV) {
|
|
|
74
80
|
<Accordion>
|
|
75
81
|
<div class="sm:flex w-full justify-between">
|
|
76
82
|
<!-- <div class="sm:flex items-center sm:gap-5 px-1 text-lg justify-start gap-2 py-0"> -->
|
|
77
|
-
|
|
83
|
+
<MenuBar menuBar={$menuStore.MenuBar} />
|
|
84
|
+
<MenuBar menuBar={$menuStore.Extended} />
|
|
78
85
|
<!-- </div> -->
|
|
79
86
|
<!-- <div class="sm:flex items-center sm:gap-5 px-1 text-lg justify-end gap-2"> -->
|
|
80
87
|
<div class="grid w-full sm:flex gap-2 justify-auto sm:justify-end">
|
|
81
|
-
<MenuAccountBar menuBar={$menuStore.AccountBar} />
|
|
82
|
-
<MenuBar menuBar={$menuStore.LaunchBar} />
|
|
83
88
|
<!-- Add change font size buttons -->
|
|
84
89
|
<button
|
|
85
90
|
class="btn btn-ghost pl-1 pr-1"
|
|
86
91
|
on:click={decreaseFontSize}
|
|
87
92
|
title="Decrease font size"
|
|
88
93
|
>
|
|
89
|
-
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A-</span
|
|
94
|
+
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A-</span
|
|
95
|
+
>
|
|
90
96
|
</button>
|
|
91
97
|
<button
|
|
92
98
|
class="btn btn-ghost pl-1 pr-1"
|
|
93
99
|
on:click={increaseFontSize}
|
|
94
100
|
title="Increase font size"
|
|
95
101
|
>
|
|
96
|
-
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A+</span
|
|
102
|
+
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A+</span
|
|
103
|
+
>
|
|
97
104
|
</button>
|
|
98
105
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
{#if showMode}
|
|
107
|
+
<button
|
|
108
|
+
class="btn btn-ghost pl-1 pr-1"
|
|
109
|
+
on:click={toggleDarkMode}
|
|
110
|
+
title="Toggle dark mode"
|
|
111
|
+
>
|
|
105
112
|
{#if $theme === 'dark'}
|
|
106
113
|
<!-- sun icon (white via currentColor) -->
|
|
107
114
|
<svg
|
|
@@ -143,13 +150,11 @@ if (import.meta.env.DEV) {
|
|
|
143
150
|
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z" fill="currentColor" />
|
|
144
151
|
</svg>
|
|
145
152
|
{/if}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
<!-- </div> -->
|
|
152
|
-
|
|
153
|
+
</button>
|
|
154
|
+
{/if}
|
|
155
|
+
<MenuAccountBar menuBar={$menuStore.AccountBar} />
|
|
156
|
+
<MenuBar menuBar={$menuStore.LaunchBar} />
|
|
157
|
+
<SettingsBar menuBar={$menuStore.Settings} />
|
|
153
158
|
</div>
|
|
154
159
|
</div>
|
|
155
160
|
</Accordion>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.93",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).",
|
|
6
6
|
"keywords": [
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
34
34
|
document.documentElement.style.fontSize = currentFontSize + 1 + 'px';
|
|
35
35
|
// set CSS variable --font-size to the new font size
|
|
36
|
-
document.documentElement.style.setProperty(
|
|
36
|
+
document.documentElement.style.setProperty(
|
|
37
|
+
'--font-size',
|
|
38
|
+
document.documentElement.style.fontSize
|
|
39
|
+
);
|
|
37
40
|
localStorage.setItem('fontSize', document.documentElement.style.fontSize);
|
|
38
41
|
}
|
|
39
42
|
// function to decrease the current font size by 1 step
|
|
@@ -41,7 +44,10 @@
|
|
|
41
44
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
42
45
|
document.documentElement.style.fontSize = currentFontSize - 1 + 'px';
|
|
43
46
|
// set CSS variable --font-size to the new font size
|
|
44
|
-
document.documentElement.style.setProperty(
|
|
47
|
+
document.documentElement.style.setProperty(
|
|
48
|
+
'--font-size',
|
|
49
|
+
document.documentElement.style.fontSize
|
|
50
|
+
);
|
|
45
51
|
localStorage.setItem('fontSize', document.documentElement.style.fontSize);
|
|
46
52
|
}
|
|
47
53
|
|
|
@@ -90,34 +96,35 @@
|
|
|
90
96
|
<Accordion>
|
|
91
97
|
<div class="sm:flex w-full justify-between">
|
|
92
98
|
<!-- <div class="sm:flex items-center sm:gap-5 px-1 text-lg justify-start gap-2 py-0"> -->
|
|
93
|
-
|
|
99
|
+
<MenuBar menuBar={$menuStore.MenuBar} />
|
|
100
|
+
<MenuBar menuBar={$menuStore.Extended} />
|
|
94
101
|
<!-- </div> -->
|
|
95
102
|
<!-- <div class="sm:flex items-center sm:gap-5 px-1 text-lg justify-end gap-2"> -->
|
|
96
103
|
<div class="grid w-full sm:flex gap-2 justify-auto sm:justify-end">
|
|
97
|
-
<MenuAccountBar menuBar={$menuStore.AccountBar} />
|
|
98
|
-
<MenuBar menuBar={$menuStore.LaunchBar} />
|
|
99
104
|
<!-- Add change font size buttons -->
|
|
100
105
|
<button
|
|
101
106
|
class="btn btn-ghost pl-1 pr-1"
|
|
102
107
|
on:click={decreaseFontSize}
|
|
103
108
|
title="Decrease font size"
|
|
104
109
|
>
|
|
105
|
-
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A-</span
|
|
110
|
+
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A-</span
|
|
111
|
+
>
|
|
106
112
|
</button>
|
|
107
113
|
<button
|
|
108
114
|
class="btn btn-ghost pl-1 pr-1"
|
|
109
115
|
on:click={increaseFontSize}
|
|
110
116
|
title="Increase font size"
|
|
111
117
|
>
|
|
112
|
-
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A+</span
|
|
118
|
+
<span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A+</span
|
|
119
|
+
>
|
|
113
120
|
</button>
|
|
114
121
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
{#if showMode}
|
|
123
|
+
<button
|
|
124
|
+
class="btn btn-ghost pl-1 pr-1"
|
|
125
|
+
on:click={toggleDarkMode}
|
|
126
|
+
title="Toggle dark mode"
|
|
127
|
+
>
|
|
121
128
|
{#if $theme === 'dark'}
|
|
122
129
|
<!-- sun icon (white via currentColor) -->
|
|
123
130
|
<svg
|
|
@@ -159,13 +166,11 @@
|
|
|
159
166
|
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z" fill="currentColor" />
|
|
160
167
|
</svg>
|
|
161
168
|
{/if}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
<!-- </div> -->
|
|
168
|
-
|
|
169
|
+
</button>
|
|
170
|
+
{/if}
|
|
171
|
+
<MenuAccountBar menuBar={$menuStore.AccountBar} />
|
|
172
|
+
<MenuBar menuBar={$menuStore.LaunchBar} />
|
|
173
|
+
<SettingsBar menuBar={$menuStore.Settings} />
|
|
169
174
|
</div>
|
|
170
175
|
</div>
|
|
171
176
|
</Accordion>
|