flufi-ui 0.0.0-stage → 0.1.0

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/index.css ADDED
@@ -0,0 +1,840 @@
1
+ @import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Lexend:wght@100..900&display=swap";
2
+
3
+ /* src/env.css */
4
+ :root {
5
+ --back: #111111;
6
+ --back-raised: #161616;
7
+ --flat-hover: #212121;
8
+ --prim: #191919;
9
+ --prim-brighter: #1c1c1c;
10
+ --seco: #2C2C2C;
11
+ --tert: #3B3B3B;
12
+ --tert-hover: #636363;
13
+ --danger: #d3493d;
14
+ --danger-hover: #ed4e40;
15
+ --accent: #9d91d6;
16
+ --accent-hover: #afa5e5;
17
+ --text: #D9D9D9;
18
+ --text-bright: #FFFFFF;
19
+ --text-dim: #9C9C9C;
20
+ --text-dark: #6B6B6B;
21
+ --text-on-light: #191919;
22
+ --text-placeholder: #E2E2E246;
23
+ --back-border: #232323;
24
+ --prim-border: #262626;
25
+ --shadow: #0a0a0a45;
26
+ --shadow-raised: 1px 4px 10px 0px var(--shadow);
27
+ --transition-fast: .1s;
28
+ --font-size: 14px;
29
+ --font-size-medium: 12px;
30
+ --font-size-small: 11px;
31
+ --font-size-input: 13px;
32
+ --font-size-button: 13px;
33
+ --font-size-textarea: 13px;
34
+ --font-size-tab: 15px;
35
+ --font-size-big: 20px;
36
+ --font-size-extra-big: 28px;
37
+ --font-family:
38
+ "Inter",
39
+ -apple-system,
40
+ BlinkMacSystemFont,
41
+ "Segoe UI",
42
+ Roboto,
43
+ Helvetica,
44
+ Arial,
45
+ sans-serif;
46
+ --font-family-mono:
47
+ "JetBrains Mono",
48
+ "Fira Code",
49
+ "Cascadia Code",
50
+ Consolas,
51
+ "Liberation Mono",
52
+ monospace;
53
+ }
54
+ body {
55
+ font-family: var(--font-family);
56
+ font-size: var(--font-size);
57
+ color: var(--text);
58
+ background: var(--back);
59
+ user-select: none;
60
+ }
61
+ * {
62
+ margin: 0;
63
+ padding: 0;
64
+ background: none;
65
+ border: none;
66
+ outline: none;
67
+ scrollbar-width: auto;
68
+ scrollbar-color: var(--prim) transparent;
69
+ }
70
+ a {
71
+ color: var(--link);
72
+ &:visited {
73
+ color: var(--link-visited);
74
+ }
75
+ &.text,
76
+ &.button {
77
+ color: inherit;
78
+ font-weight: inherit;
79
+ text-decoration: inherit;
80
+ }
81
+ }
82
+ button,
83
+ a {
84
+ cursor: pointer;
85
+ }
86
+ input::placeholder,
87
+ textarea::placeholder {
88
+ color: var(--text-placeholder);
89
+ }
90
+ svg,
91
+ button,
92
+ input,
93
+ textarea {
94
+ color: inherit;
95
+ font-size: inherit;
96
+ font-family: inherit;
97
+ resize: none;
98
+ }
99
+ textarea {
100
+ min-width: unset;
101
+ min-height: unset;
102
+ max-width: 9999px;
103
+ max-height: 9999px;
104
+ }
105
+ .selectable {
106
+ user-select: text;
107
+ }
108
+
109
+ /* src/components/Button/style.css */
110
+ .button {
111
+ display: flex;
112
+ align-items: center;
113
+ padding: 8px;
114
+ gap: 10px;
115
+ border-radius: 10px;
116
+ font-size: var(--font-size-button);
117
+ &.extra-padding {
118
+ padding: 12px !important;
119
+ }
120
+ &.no-padding {
121
+ padding: 0 !important;
122
+ }
123
+ &.centered {
124
+ justify-content: center;
125
+ }
126
+ &:disabled {
127
+ opacity: 50%;
128
+ cursor: not-allowed;
129
+ }
130
+ &:not(:disabled) {
131
+ &:hover {
132
+ background: var(--flat-hover);
133
+ }
134
+ }
135
+ &.variant-accent {
136
+ background: var(--accent);
137
+ color: var(--text-on-light);
138
+ font-weight: bold;
139
+ &:not(:disabled) {
140
+ &:hover {
141
+ background: var(--accent-hover);
142
+ }
143
+ }
144
+ }
145
+ &.variant-accent-subtle {
146
+ font-weight: bold;
147
+ color: var(--accent);
148
+ &:not(:disabled) {
149
+ &:hover {
150
+ background: var(--accent);
151
+ color: var(--text-on-light);
152
+ }
153
+ }
154
+ }
155
+ &.variant-danger {
156
+ background: var(--danger);
157
+ color: var(--text-on-light);
158
+ font-weight: bold;
159
+ &:not(:disabled) {
160
+ &:hover {
161
+ background: var(--danger-hover);
162
+ }
163
+ }
164
+ }
165
+ &.variant-danger-subtle {
166
+ font-weight: bold;
167
+ color: var(--danger);
168
+ &:not(:disabled) {
169
+ &:hover {
170
+ background: var(--danger);
171
+ color: var(--text-on-light);
172
+ }
173
+ }
174
+ }
175
+ &.variant-filled {
176
+ background: var(--prim);
177
+ }
178
+ &.variant-always-transparent {
179
+ background: transparent;
180
+ &:not(:disabled) {
181
+ &:hover {
182
+ background: transparent;
183
+ }
184
+ }
185
+ }
186
+ &.variant-panel {
187
+ border: 1px solid var(--back-border);
188
+ }
189
+ }
190
+ .button.text-button {
191
+ padding: 8px 12px;
192
+ &.extra-padding {
193
+ padding: 10px 14px !important;
194
+ }
195
+ }
196
+ .button.text-icon-button {
197
+ padding: 8px;
198
+ padding-right: 12px;
199
+ margin: 2px;
200
+ &.extra-padding {
201
+ padding: 10px !important;
202
+ padding-right: 14px !important;
203
+ }
204
+ }
205
+ a.button {
206
+ color: inherit;
207
+ }
208
+ .mobile {
209
+ .button {
210
+ &:not(:disabled) {
211
+ &:hover {
212
+ background: transparent;
213
+ }
214
+ }
215
+ &.variant-accent {
216
+ &:hover {
217
+ background: var(--accent);
218
+ }
219
+ }
220
+ &.variant-danger {
221
+ &:hover {
222
+ background: var(--danger);
223
+ }
224
+ }
225
+ }
226
+ }
227
+
228
+ /* src/components/Container/style.css */
229
+ .container {
230
+ display: flex;
231
+ flex-direction: column;
232
+ gap: 10px;
233
+ &.horizontal {
234
+ flex-direction: row;
235
+ &.centered-x {
236
+ justify-content: center;
237
+ }
238
+ &.centered-y {
239
+ align-items: center;
240
+ }
241
+ }
242
+ &.vertical {
243
+ flex-direction: column;
244
+ &.centered-x {
245
+ align-items: center;
246
+ }
247
+ &.centered-y {
248
+ justify-content: center;
249
+ }
250
+ }
251
+ &:not(.horizontal):not(.vertical) {
252
+ &.centered-x {
253
+ align-items: center;
254
+ }
255
+ &.centered-y {
256
+ justify-content: center;
257
+ }
258
+ }
259
+ &.box {
260
+ padding: 20px;
261
+ background: var(--back-raised);
262
+ border: 1px solid var(--back-border);
263
+ border-radius: 10px;
264
+ }
265
+ &.wrap {
266
+ flex-wrap: wrap;
267
+ }
268
+ &.no-gap {
269
+ gap: 0;
270
+ }
271
+ &.text-gap {
272
+ gap: 5px;
273
+ }
274
+ &.extra-gap {
275
+ gap: 25px;
276
+ }
277
+ }
278
+
279
+ /* src/components/Popout/style.css */
280
+ .popout {
281
+ position: fixed;
282
+ z-index: 50;
283
+ background: var(--back-raised);
284
+ border: 1px solid var(--back-border);
285
+ border-radius: 10px;
286
+ box-shadow: var(--shadow-raised);
287
+ }
288
+ .popout-button {
289
+ display: flex;
290
+ > .button {
291
+ flex: 1;
292
+ }
293
+ }
294
+
295
+ /* src/components/CalendarInput/style.css */
296
+ .calendar-input {
297
+ display: flex;
298
+ flex-direction: column;
299
+ > button {
300
+ text-align: left;
301
+ &.open {
302
+ background: var(--prim);
303
+ }
304
+ > span {
305
+ flex: 1;
306
+ &.placeholder {
307
+ color: var(--text-placeholder);
308
+ }
309
+ }
310
+ > svg {
311
+ flex-shrink: 0;
312
+ margin-left: auto;
313
+ }
314
+ }
315
+ }
316
+ .calendar-input-popout {
317
+ position: fixed;
318
+ z-index: 50;
319
+ > div {
320
+ padding: 10px;
321
+ gap: 8px;
322
+ > header {
323
+ display: flex;
324
+ align-items: center;
325
+ justify-content: space-between;
326
+ > span {
327
+ font-size: var(--font-size-medium);
328
+ font-weight: 600;
329
+ }
330
+ }
331
+ > main {
332
+ display: grid;
333
+ grid-template-columns: repeat(7, 1fr);
334
+ gap: 2px;
335
+ > .weekday {
336
+ text-align: center;
337
+ font-size: var(--font-size-small);
338
+ color: var(--text-dark);
339
+ padding: 4px 0;
340
+ }
341
+ > .day {
342
+ justify-content: center;
343
+ padding: 6px 0;
344
+ font-size: var(--font-size-medium);
345
+ &.today {
346
+ box-shadow: inset 0 0 0 1px var(--tert);
347
+ }
348
+ &.selected {
349
+ background: var(--accent);
350
+ color: var(--text-on-light);
351
+ font-weight: bold;
352
+ }
353
+ }
354
+ }
355
+ > footer {
356
+ display: flex;
357
+ justify-content: space-between;
358
+ gap: 5px;
359
+ padding-top: 8px;
360
+ border-top: 1px solid var(--back-border);
361
+ > .button {
362
+ color: var(--text-dim);
363
+ }
364
+ }
365
+ }
366
+ }
367
+
368
+ /* src/components/Input/style.css */
369
+ .input {
370
+ padding: 11px 13px;
371
+ font-size: var(--font-size-input);
372
+ &:not(.flat) {
373
+ border: 1px solid var(--back-border);
374
+ border-radius: 10px;
375
+ }
376
+ &.spaced {
377
+ padding: 10px 10px;
378
+ line-height: 1.4;
379
+ }
380
+ &:is(textarea) {
381
+ font-size: var(--font-size-textarea);
382
+ padding: 11px 13px;
383
+ }
384
+ }
385
+
386
+ /* src/components/ClickFade/style.css */
387
+ .click-faded {
388
+ position: relative;
389
+ > :first-child {
390
+ opacity: 100%;
391
+ z-index: 1;
392
+ }
393
+ > :last-child {
394
+ opacity: 0%;
395
+ z-index: 0;
396
+ }
397
+ > * {
398
+ position: absolute;
399
+ inset: 0;
400
+ }
401
+ &.fade {
402
+ > :first-child {
403
+ opacity: 0%;
404
+ z-index: 0;
405
+ }
406
+ > :last-child {
407
+ opacity: 100%;
408
+ z-index: 1;
409
+ }
410
+ cursor: unset;
411
+ }
412
+ > * {
413
+ transition: opacity var(--transition-fast);
414
+ }
415
+ }
416
+
417
+ /* src/components/Content/style.css */
418
+ #app > div > main > main {
419
+ flex: 1;
420
+ display: flex;
421
+ flex-direction: column;
422
+ gap: 5px;
423
+ max-height: calc(100vh - 50px);
424
+ overflow-y: auto;
425
+ &.wrapped {
426
+ flex-direction: row;
427
+ justify-content: center;
428
+ > div {
429
+ display: flex;
430
+ flex-direction: column;
431
+ gap: 5px;
432
+ flex: 1;
433
+ }
434
+ }
435
+ &.centered {
436
+ justify-content: center;
437
+ align-items: center;
438
+ }
439
+ &,
440
+ &.wrapped > div {
441
+ > h1 {
442
+ font-size: var(--font-size-extra-big);
443
+ }
444
+ > p {
445
+ color: var(--text-dim);
446
+ }
447
+ }
448
+ }
449
+
450
+ /* src/components/Text/style.css */
451
+ .text {
452
+ &.dim {
453
+ color: var(--text-dim);
454
+ }
455
+ &.dark {
456
+ color: var(--text-dark);
457
+ }
458
+ &.big {
459
+ font-size: var(--font-size-big);
460
+ }
461
+ &.extra-big {
462
+ font-size: var(--font-size-extra-big);
463
+ }
464
+ &.big,
465
+ &.extra-big {
466
+ font-weight: bold;
467
+ font-family: "Lexend";
468
+ }
469
+ }
470
+
471
+ /* src/components/ContextMenu/style.css */
472
+ .context-menu {
473
+ z-index: 1000;
474
+ visibility: hidden;
475
+ box-sizing: border-box;
476
+ width: max-content;
477
+ min-width: min(180px, calc(100vw - 16px));
478
+ max-width: calc(100vw - 16px);
479
+ max-height: calc(100vh - 16px);
480
+ overflow: auto;
481
+ overscroll-behavior: contain;
482
+ padding: 5px;
483
+ overflow-wrap: anywhere;
484
+ > * {
485
+ flex-shrink: 0;
486
+ }
487
+ .button {
488
+ text-align: left;
489
+ &:focus-visible {
490
+ background: var(--flat-hover);
491
+ }
492
+ }
493
+ }
494
+ .context-menu-header {
495
+ padding: 7px 9px;
496
+ font-size: var(--font-size-medium);
497
+ }
498
+ .context-menu-separator {
499
+ height: 1px;
500
+ margin: 5px 4px;
501
+ background: var(--prim-border);
502
+ }
503
+
504
+ /* src/components/DotSeperator/style.css */
505
+ .dot-seperator {
506
+ background: currentColor;
507
+ border-radius: 100%;
508
+ width: 2px;
509
+ height: 2px;
510
+ margin: 5px;
511
+ vertical-align: middle;
512
+ &.no-margin {
513
+ margin: 0;
514
+ }
515
+ &.container-text-margin {
516
+ margin: 0 -3px -1px;
517
+ }
518
+ }
519
+
520
+ /* src/components/Label/style.css */
521
+ .label {
522
+ font-size: var(--font-size-medium);
523
+ color: var(--text-dim);
524
+ }
525
+
526
+ /* src/components/Header/Header.css */
527
+ .header.underline {
528
+ border-bottom: 1px solid var(--prim);
529
+ padding-bottom: 2px;
530
+ }
531
+ .mini-header {
532
+ text-transform: uppercase;
533
+ font-size: var(--font-size-small);
534
+ &.dim {
535
+ color: var(--text-dim);
536
+ }
537
+ }
538
+
539
+ /* src/components/ImageInput/style.css */
540
+ .image-input {
541
+ width: var(--width);
542
+ height: var(--height);
543
+ display: flex;
544
+ align-items: center;
545
+ justify-content: center;
546
+ border-radius: 10px;
547
+ overflow: hidden;
548
+ cursor: pointer;
549
+ &:not(.has-image) {
550
+ border: 1px solid var(--back-border);
551
+ }
552
+ > img {
553
+ flex: 1;
554
+ width: var(--width);
555
+ height: var(--height);
556
+ object-fit: cover;
557
+ }
558
+ > svg {
559
+ color: var(--text-dark);
560
+ }
561
+ }
562
+
563
+ /* src/components/Throbber/Throbber.css */
564
+ .throbber {
565
+ display: flex;
566
+ > svg {
567
+ animation: spin 1s infinite linear;
568
+ }
569
+ }
570
+ @keyframes spin {
571
+ 0% {
572
+ transform: rotate(0deg);
573
+ }
574
+ 100% {
575
+ transform: rotate(360deg);
576
+ }
577
+ }
578
+
579
+ /* src/components/Loading/style.css */
580
+ .loading {
581
+ display: flex;
582
+ justify-content: center;
583
+ align-items: center;
584
+ }
585
+
586
+ /* src/components/PathInput/style.css */
587
+ .path-input {
588
+ padding: 3px;
589
+ > .click-faded {
590
+ flex: 1;
591
+ height: 35px;
592
+ min-width: 0;
593
+ > * {
594
+ overflow-x: auto;
595
+ overflow-y: hidden;
596
+ scrollbar-width: none;
597
+ > * {
598
+ min-width: max-content;
599
+ }
600
+ }
601
+ > .input > button {
602
+ padding: 5px;
603
+ margin: -5px;
604
+ text-wrap: nowrap;
605
+ }
606
+ }
607
+ }
608
+
609
+ /* src/components/SelectBox/style.css */
610
+ .select-box-popout {
611
+ > div {
612
+ padding: 5px;
613
+ gap: 5px;
614
+ > .loading {
615
+ padding: 10px;
616
+ }
617
+ }
618
+ }
619
+ .select-box {
620
+ > button {
621
+ > .default {
622
+ color: var(--text-placeholder);
623
+ }
624
+ > svg {
625
+ margin-left: auto;
626
+ transition: transform var(--transition-fast);
627
+ }
628
+ }
629
+ &.open > button > svg {
630
+ transform: rotate(180deg);
631
+ }
632
+ }
633
+
634
+ /* src/components/Seperator/style.css */
635
+ .seperator {
636
+ height: 5px;
637
+ }
638
+
639
+ /* src/components/Slider/style.css */
640
+ .slider {
641
+ display: flex;
642
+ padding: 10px;
643
+ min-width: 150px;
644
+ cursor: pointer;
645
+ > div {
646
+ display: flex;
647
+ width: 100%;
648
+ height: 5px;
649
+ border-radius: 2.5px;
650
+ background: var(--prim-brighter);
651
+ > .progress {
652
+ border-radius: 2.5px;
653
+ background: var(--accent);
654
+ }
655
+ > .handle {
656
+ width: 10px;
657
+ height: 10px;
658
+ margin-left: -5px;
659
+ margin-top: -2.5px;
660
+ border-radius: 5px;
661
+ background: var(--text);
662
+ }
663
+ }
664
+ }
665
+
666
+ /* src/components/Table/style.css */
667
+ .table {
668
+ border-collapse: separate;
669
+ border-spacing: 0;
670
+ padding: 15px;
671
+ > thead,
672
+ > tbody {
673
+ > tr {
674
+ transition: background var(--transition-fast);
675
+ &:hover {
676
+ }
677
+ > th {
678
+ border-top: 1px solid var(--back-border);
679
+ background: var(--prim);
680
+ &:first-child {
681
+ border-left: 1px solid var(--back-border);
682
+ border-radius: 10px 0 0 10px;
683
+ }
684
+ &:last-child {
685
+ border-right: 1px solid var(--back-border);
686
+ border-radius: 0 10px 10px 0;
687
+ }
688
+ }
689
+ > th,
690
+ > td {
691
+ padding: 12px;
692
+ &:not(:last-child) {
693
+ border-right: 1px solid var(--back-border);
694
+ }
695
+ &:has(.button) {
696
+ padding: 5px;
697
+ }
698
+ > .icon-button {
699
+ padding: 5px;
700
+ }
701
+ }
702
+ }
703
+ }
704
+ > thead > tr > :is(th, td),
705
+ > tbody > tr:not(:last-child) > :is(th, td) {
706
+ border-bottom: 1px solid var(--back-border);
707
+ }
708
+ &.box {
709
+ padding: 20px;
710
+ background: var(--back-raised);
711
+ border: 1px solid var(--back-border);
712
+ border-radius: 10px;
713
+ }
714
+ }
715
+
716
+ /* src/components/Tabs/style.css */
717
+ .tabs {
718
+ display: flex;
719
+ > button,
720
+ > .tab-with-close {
721
+ flex: 1;
722
+ display: flex;
723
+ padding: 12px 15px;
724
+ border: 1px solid var(--back-border);
725
+ font-size: var(--font-size-tab);
726
+ box-shadow: none;
727
+ transition: box-shadow var(--transition-fast);
728
+ &.selected {
729
+ box-shadow: inset 0px 32px 0 -30px var(--accent);
730
+ }
731
+ &:only-child {
732
+ border-radius: 10px;
733
+ }
734
+ &:not(:only-child) {
735
+ &:first-child:not(:last-child) {
736
+ border-radius: 10px 0 0 10px;
737
+ }
738
+ &:last-child:not(:first-child) {
739
+ border-radius: 0 10px 10px 0;
740
+ border-left: none;
741
+ }
742
+ }
743
+ &.tab-with-close {
744
+ padding: 0;
745
+ > .tab-label {
746
+ flex: 1;
747
+ padding: 12px 15px;
748
+ border-radius: inherit;
749
+ white-space: nowrap;
750
+ }
751
+ > .tab-close {
752
+ flex-shrink: 0;
753
+ padding: 4px;
754
+ margin-right: 6px;
755
+ border-radius: 5px;
756
+ }
757
+ }
758
+ }
759
+ }
760
+
761
+ /* src/components/TagList/style.css */
762
+ .tag-list {
763
+ display: flex;
764
+ align-items: center;
765
+ flex-wrap: wrap;
766
+ gap: 5px;
767
+ > input {
768
+ min-width: 100px;
769
+ max-width: 200px;
770
+ flex: 1;
771
+ padding: 5px 8px;
772
+ font-size: var(--font-size-medium);
773
+ border: 1px solid var(--prim);
774
+ border-radius: 10px;
775
+ height: 13px;
776
+ }
777
+ }
778
+ .tag {
779
+ display: flex;
780
+ align-items: center;
781
+ padding: 5px 10px;
782
+ gap: 5px;
783
+ background: var(--prim);
784
+ border-radius: 15px;
785
+ font-size: var(--font-size-medium);
786
+ > button {
787
+ display: flex;
788
+ margin-top: 2px;
789
+ }
790
+ &.small {
791
+ padding: 4px 7px;
792
+ font-size: var(--font-size-small-tag);
793
+ gap: 3px;
794
+ border-radius: 8px;
795
+ }
796
+ }
797
+
798
+ /* src/components/UploadBox/style.css */
799
+ .upload-box {
800
+ display: flex;
801
+ gap: 7.5px;
802
+ flex-direction: column;
803
+ align-items: center;
804
+ justify-content: center;
805
+ text-align: center;
806
+ height: 65px;
807
+ border-radius: 10px;
808
+ padding: 50px;
809
+ border: 2px dashed var(--seco);
810
+ color: var(--seco);
811
+ font-size: var(--font-size-medium);
812
+ cursor: pointer;
813
+ transition: border-color var(--transition-fast), color var(--transition-fast);
814
+ > p > svg {
815
+ vertical-align: middle;
816
+ margin: 0px -3px;
817
+ padding-bottom: 2px;
818
+ }
819
+ &.less-padding {
820
+ padding: 35px;
821
+ }
822
+ &.dragging,
823
+ &:hover {
824
+ border-color: var(--tert-hover);
825
+ color: var(--tert-hover);
826
+ }
827
+ }
828
+
829
+ /* src/components/WrapList/style.css */
830
+ .wrap-list {
831
+ display: grid;
832
+ grid-template-columns: repeat(auto-fill, minmax(var(--min-size), 1fr));
833
+ width: 100%;
834
+ overflow-x: hidden;
835
+ gap: 20px;
836
+ > * {
837
+ min-width: 0;
838
+ width: 100%;
839
+ }
840
+ }