@mixd-id/web-scaffold 0.1.230406254 → 0.1.230406255

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406254",
4
+ "version": "0.1.230406255",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -190,9 +190,12 @@ export default{
190
190
 
191
191
  .alert{
192
192
  @apply fixed top-0 left-0 flex w-screen h-screen;
193
- @apply items-center justify-center bg-black/70 backdrop-blur-md;
193
+ @apply items-center justify-center bg-white/50 backdrop-blur-md;
194
194
  z-index: 60;
195
195
  }
196
+ [data-theme="dark"] .alert{
197
+ @apply bg-black/50;
198
+ }
196
199
 
197
200
  .alert>*{
198
201
  @apply max-h-[60vh] overflow-y-auto bg-base-500 rounded-xl;
@@ -112,9 +112,12 @@ export default{
112
112
 
113
113
  .confirm{
114
114
  @apply fixed top-0 left-0 flex w-screen h-screen px-8;
115
- @apply items-center justify-center bg-black/70 backdrop-blur-md;
115
+ @apply items-center justify-center bg-white/50 backdrop-blur-md;
116
116
  z-index: 60;
117
117
  }
118
+ [data-theme="dark"] .confirm{
119
+ @apply bg-black/50;
120
+ }
118
121
 
119
122
  .confirm>*{
120
123
  @apply max-h-[60vh] overflow-y-auto bg-base-500 rounded-xl;
@@ -301,7 +301,7 @@ export default {
301
301
  <style module>
302
302
 
303
303
  .contextMenu{
304
- @apply fixed z-20 bg-base-400 min-w-[150px] overflow-y-auto rounded-xl;
304
+ @apply fixed z-20 panel-500 min-w-[150px] overflow-y-auto rounded-xl;
305
305
  @apply border-[2px] border-text-50 shadow-2xl whitespace-nowrap;
306
306
  transition: all 150ms cubic-bezier(0.25, 1, 0.5, 1);
307
307
  opacity: 0;
@@ -315,7 +315,7 @@ export default {
315
315
  @media screen(md){
316
316
 
317
317
  .contextMenu{
318
- @apply fixed z-20 bg-base-400 backdrop-blur-md min-w-[150px] overflow-y-auto rounded-lg;
318
+ @apply fixed z-20 panel-500 min-w-[150px] overflow-y-auto rounded-lg;
319
319
  @apply border-[1px] border-text-50 shadow-2xl whitespace-nowrap;
320
320
  transition: all 150ms cubic-bezier(0.25, 1, 0.5, 1);
321
321
  opacity: 0;
@@ -4,7 +4,7 @@
4
4
  class="flex-1 flex flex-row">
5
5
 
6
6
  <div v-if="computedPresetMode === 'sidebar' && config.sidebarOpen"
7
- class="relative flex flex-col border-r-[1px] border-text-50 backdrop-blur-lg"
7
+ class="relative flex flex-col border-r-[1px] border-text-50 panel-400"
8
8
  :style="sidebarWidth">
9
9
 
10
10
  <PresetBar :config="config"
@@ -48,7 +48,7 @@
48
48
  </div>
49
49
 
50
50
  <div class="flex flex-row gap-2 gap-1" v-if="Boolean(toolbar)">
51
- <Textbox class="flex-1 backdrop-blur-lg md:w-[240px]" placeholder="Search..." clearable="1"
51
+ <Textbox class="flex-1 md:w-[240px]" placeholder="Search..." clearable="1"
52
52
  v-model="preset.search"
53
53
  @clear="delete preset.search; load()"
54
54
  @keyup.enter="load">
@@ -85,7 +85,7 @@
85
85
 
86
86
  <VirtualTable v-if="presetView === 'table'"
87
87
  :columns="columns"
88
- class="flex-1 rounded-lg backdrop-blur-lg"
88
+ class="flex-1 rounded-lg panel-400"
89
89
  :items="data.items"
90
90
  @scroll-end="loadNext">
91
91
 
@@ -110,7 +110,7 @@
110
110
  :config="config">
111
111
  <template #item="{ item }">
112
112
  <slot name="gridItem" :item="item">
113
- <div class="flex flex-row bg-base-400 rounded-lg overflow-hidden md:rounded-lg overflow-hidden">
113
+ <div class="flex flex-row panel-400 rounded-lg overflow-hidden md:rounded-lg overflow-hidden">
114
114
  <div>
115
115
  <Image :src="item.imageUrl" class="bg-text-50 w-[64px] h-[64px] rounded-lg" />
116
116
  </div>
@@ -288,13 +288,16 @@ export default{
288
288
 
289
289
  .bW9k{
290
290
  @apply z-20 hidden w-[100vw] h-[100vh];
291
- @apply bg-black/50 backdrop-blur-md;
291
+ @apply bg-white/50 backdrop-blur-md;
292
292
  position: fixed;
293
293
  top: 0;
294
294
  left: 0;
295
295
  bottom: 0;
296
296
  right: 0;
297
297
  }
298
+ [data-theme="dark"] .bW9k{
299
+ @apply bg-black/50;
300
+ }
298
301
  .bW9l{
299
302
  @apply flex items-center justify-center;
300
303
  }
@@ -305,7 +308,7 @@ export default{
305
308
 
306
309
  .modal{
307
310
  @apply fixed;
308
- @apply bg-base-400 dark:bg-base-300;
311
+ @apply panel-400;
309
312
  @apply border-[1px] border-text-50 z-20 flex max-h-[90vh];
310
313
  @apply rounded-xl overflow-hidden transition-all;
311
314
  }
@@ -85,7 +85,7 @@ export default{
85
85
  }
86
86
 
87
87
  .indicator{
88
- @apply w-[21px] h-[21px] border-[1px] rounded-full border-text-200 bg-base-50;
88
+ @apply w-[21px] h-[21px] border-[1px] rounded-full border-text-200 panel-500;
89
89
  @apply flex items-center justify-center overflow-hidden;
90
90
  transition: border 300ms cubic-bezier(0.25, 1, 0.5, 1);
91
91
  }
@@ -178,7 +178,7 @@ export default{
178
178
 
179
179
  .textbox{
180
180
  @apply flex items-center;
181
- @apply border-[1px] border-text-200 bg-base-50 rounded-lg;
181
+ @apply border-[1px] border-text-200 panel-500 rounded-lg;
182
182
  @apply overflow-hidden;
183
183
  }
184
184
 
@@ -1,6 +1,6 @@
1
1
  const Plugin = require('tailwindcss/plugin')
2
2
 
3
- const plugin = Plugin(function({ addBase, config, theme }) {
3
+ const plugin = Plugin(function({ addBase, addUtilities, config, theme }) {
4
4
 
5
5
  addBase({
6
6
 
@@ -16,6 +16,7 @@ const plugin = Plugin(function({ addBase, config, theme }) {
16
16
  "--h-cp": '2.7rem',
17
17
  "--h-cp-lg": '3.6rem',
18
18
 
19
+ '--base-50': '235, 237, 240',
19
20
  '--base-300': '235, 237, 240',
20
21
  '--base-400': '245, 247, 250',
21
22
  '--base-500': '255, 255, 255',
@@ -100,7 +101,7 @@ const plugin = Plugin(function({ addBase, config, theme }) {
100
101
  'text-rendering': 'optimizeLegibility',
101
102
  'fontSize': '15px',
102
103
  'touchAction': "pan-x pan-y",
103
- 'backgroundColor': 'rgba(var(--base-300), 100)'
104
+ 'backgroundColor': 'rgb(var(--base-300))'
104
105
  },
105
106
 
106
107
  '@media screen and (orientation: portrait)': {
@@ -172,6 +173,10 @@ const plugin = Plugin(function({ addBase, config, theme }) {
172
173
  transform: 'scale(1)',
173
174
  },
174
175
 
176
+ })
177
+
178
+ addUtilities({
179
+
175
180
  '.slidedown-enter-active, .slidedown-leave-active': {
176
181
  transition: 'all 300ms cubic-bezier(0.25, 1, 0.5, 1)',
177
182
  transform: 'translate3d(0, 0, 0)'
@@ -220,7 +225,31 @@ const plugin = Plugin(function({ addBase, config, theme }) {
220
225
  '.slideout-enter-from, .slideout-leave-to': {
221
226
  opacity: 0,
222
227
  transform: 'scale(.9)'
223
- }
228
+ },
229
+
230
+ '.panel-50': {
231
+ '--webkit-backdrop-filter': 'var(--panel-50-backdrop-filter)',
232
+ 'backdrop-filter': 'var(--panel-50-backdrop-filter)',
233
+ 'background-color': 'rgb(var(--base-50))',
234
+ },
235
+
236
+ '.panel-300': {
237
+ '--webkit-backdrop-filter': 'var(--panel-300-backdrop-filter)',
238
+ 'backdrop-filter': 'var(--panel-300-backdrop-filter)',
239
+ 'background-color': 'rgb(var(--base-300))',
240
+ },
241
+
242
+ '.panel-400': {
243
+ '--webkit-backdrop-filter': 'var(--panel-400-backdrop-filter)',
244
+ 'backdrop-filter': 'var(--panel-400-backdrop-filter)',
245
+ 'background-color': 'rgb(var(--base-400))',
246
+ },
247
+
248
+ '.panel-500': {
249
+ '--webkit-backdrop-filter': 'var(--panel-500-backdrop-filter)',
250
+ 'backdrop-filter': 'var(--panel-500-backdrop-filter)',
251
+ 'background-color': 'rgb(var(--base-500))',
252
+ },
224
253
 
225
254
  })
226
255