coles-solid-library 0.0.1 → 0.0.8

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/styles.css DELETED
@@ -1,752 +0,0 @@
1
- @charset "UTF-8";
2
- .menuButtons {
3
- list-style: none;
4
- width: 100%;
5
- height: 100%;
6
- margin: 0;
7
- padding: 0;
8
- }
9
- .menuButtons li {
10
- margin: var(--spacing-1) 0;
11
- }
12
- .menuButtons svg {
13
- width: 90%;
14
- height: 90%;
15
- }
16
-
17
- .menuButton {
18
- width: 100%;
19
- height: 75%;
20
- border-radius: var(--border-radius-md);
21
- padding: var(--spacing-1);
22
- }
23
- .menuButton:hover {
24
- cursor: pointer;
25
- }
26
- .menuButton:hover link {
27
- background-color: var(--tertiary-color);
28
- }
29
-
30
- .customButtonStyle {
31
- border-radius: var(--border-radius-lg);
32
- padding: calc(var(--spacing-1) / 2) calc(var(--spacing-1));
33
- border: none;
34
- transition: transform 0.2s ease, background 0.2s ease;
35
- }
36
- .customButtonStyle:active {
37
- transform: scale(0.9);
38
- box-shadow: var(--shadow-elevation-2);
39
- }
40
- .customButtonStyle:not(:disabled):hover {
41
- cursor: pointer;
42
- box-shadow: var(--shadow-elevation-3);
43
- }
44
- .customButtonStyle:disabled:hover {
45
- cursor: not-allowed;
46
- }
47
-
48
- .primary {
49
- background-color: var(--primary-color);
50
- color: var(--on-primary-color);
51
- }
52
- .primary:hover {
53
- background-color: var(--primary-color-hover);
54
- }
55
- .primary:active {
56
- background-color: var(--primary-color-active);
57
- }
58
-
59
- .accent {
60
- background-color: var(--secondary-color);
61
- color: var(--on-secondary-color);
62
- }
63
- .accent:hover {
64
- background-color: var(--secondary-color-hover);
65
- }
66
- .accent:active {
67
- background-color: var(--secondary-color-active);
68
- }
69
-
70
- .tertiary {
71
- background-color: var(--tertiary-color);
72
- color: var(--on-tertiary-color);
73
- }
74
- .tertiary:hover {
75
- background-color: var(--tertiary-color-hover);
76
- }
77
- .tertiary:active {
78
- background-color: var(--tertiary-color-active);
79
- }
80
-
81
- .transparent {
82
- background-color: inherit !important;
83
- color: inherit !important;
84
- border: none;
85
- outline: none;
86
- padding: 0px;
87
- margin: 0px;
88
- }
89
-
90
- .chipbar {
91
- display: flex;
92
- flex-direction: row;
93
- width: 100%;
94
- }
95
-
96
- .chipContainer {
97
- display: flex;
98
- flex-direction: row;
99
- overflow-x: hidden;
100
- max-width: 88%;
101
- scroll-behavior: smooth;
102
- margin: 0px auto;
103
- }
104
- .chipContainer button {
105
- width: max-content;
106
- padding: 5px;
107
- }
108
-
109
- .leftArrow {
110
- margin-right: 10px;
111
- align-self: flex-start;
112
- margin: auto 0px;
113
- }
114
-
115
- .rightArrow {
116
- margin-left: 10px;
117
- align-self: flex-end;
118
- margin: auto 0px;
119
- }
120
-
121
- .Chip {
122
- display: flex;
123
- flex-direction: row;
124
- padding: 5px 10px;
125
- margin: 0 5px;
126
- border-radius: 15px;
127
- height: min-content;
128
- width: max-content;
129
- min-width: min-content;
130
- margin: 5px;
131
- }
132
- .Chip :nth-child(n) {
133
- margin: 0px 2px;
134
- height: min-content;
135
- }
136
- .Chip button {
137
- font-size: 1rem !important;
138
- height: min-content;
139
- }
140
-
141
- .removeChipButton {
142
- margin: 0 !important;
143
- margin-left: 5px !important;
144
- padding: 0 !important;
145
- font-size: 1rem !important;
146
- }
147
-
148
- .compBody {
149
- width: 70%;
150
- margin: 0 auto;
151
- border-radius: 15px;
152
- padding: 8px;
153
- padding-top: 0px;
154
- }
155
- @media screen and (max-width: 768px) {
156
- .compBody {
157
- width: 95%;
158
- margin: 0 auto;
159
- }
160
- }
161
-
162
- /* Container and control (trigger) */
163
- .solid-select {
164
- position: relative;
165
- display: inline-block;
166
- width: max-content;
167
- height: max-content;
168
- margin-right: calc(var(--spacing-1) * 1.5);
169
- text-align: left;
170
- }
171
-
172
- .solid-select__control {
173
- display: flex;
174
- align-items: center;
175
- width: 100%;
176
- padding: calc(var(--spacing-1) * 0.5) var(--spacing-1);
177
- border-radius: var(--border-radius-md);
178
- cursor: pointer;
179
- }
180
- .solid-select__control .solid-select__value {
181
- flex-grow: 1;
182
- }
183
- .solid-select__control .solid-select__arrow {
184
- float: right;
185
- }
186
-
187
- .solid-select__control:hover {
188
- border-color: #999;
189
- }
190
-
191
- /* Placeholder text style */
192
- .solid-select__placeholder {
193
- color: #888;
194
- }
195
-
196
- /* Dropdown arrow icon */
197
- .solid-select__arrow {
198
- font-size: 0.7em;
199
- margin-left: 8px;
200
- }
201
-
202
- /* Dropdown menu */
203
- .solid-select__dropdown {
204
- position: absolute;
205
- top: 100%;
206
- left: 0;
207
- z-index: 90000;
208
- width: fit-content !important;
209
- min-height: var(--spacing-4);
210
- max-height: 200px;
211
- overflow-y: auto;
212
- border: 1px solid #ccc;
213
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
214
- }
215
- .solid-select__dropdown .solid-select__option {
216
- width: fit-content;
217
- }
218
- .solid-select__dropdown .solid-select__option .option-label {
219
- width: fit-content;
220
- }
221
- .solid-select__dropdown .solid-select__option:hover {
222
- cursor: pointer;
223
- }
224
-
225
- .solid-select__transparent {
226
- background-color: transparent;
227
- color: var(--on-background-color);
228
- }
229
-
230
- .solid-select__primary {
231
- background-color: var(--primary-color);
232
- color: var(--on-primary-color);
233
- }
234
- .solid-select__primary .solid-select__option {
235
- background-color: var(--primary-color);
236
- color: var(--on-primary-color);
237
- }
238
- .solid-select__primary .solid-select__option:hover {
239
- background: var(--primary-color-dark);
240
- }
241
- .solid-select__primary .solid-select__option.selected {
242
- background: var(--primary-color-dark);
243
- }
244
-
245
- .solid-select__primary_dropdown {
246
- background-color: var(--primary-color);
247
- color: var(--on-primary-color);
248
- }
249
- .solid-select__primary_dropdown .solid-select__option {
250
- background-color: var(--primary-color);
251
- color: var(--on-primary-color);
252
- }
253
- .solid-select__primary_dropdown .solid-select__option:hover {
254
- background: var(--primary-color-dark);
255
- }
256
- .solid-select__primary_dropdown .solid-select__option.selected {
257
- background: var(--primary-color-dark);
258
- }
259
-
260
- .solid-select__accent {
261
- background-color: var(--secondary-color);
262
- color: var(--on-secondary-color);
263
- }
264
- .solid-select__accent .solid-select__option {
265
- background-color: var(--secondary-color);
266
- color: var(--on-secondary-color);
267
- }
268
- .solid-select__accent .solid-select__option:hover {
269
- background: var(--secondary-color-dark);
270
- }
271
- .solid-select__accent .solid-select__option.selected {
272
- background: var(--secondary-color-dark);
273
- }
274
-
275
- .solid-select__accent_dropdown {
276
- background-color: var(--secondary-color);
277
- color: var(--on-secondary-color);
278
- }
279
- .solid-select__accent_dropdown .solid-select__option {
280
- background-color: var(--secondary-color);
281
- color: var(--on-secondary-color);
282
- }
283
- .solid-select__accent_dropdown .solid-select__option:hover {
284
- background: var(--secondary-color-dark);
285
- }
286
- .solid-select__accent_dropdown .solid-select__option.selected {
287
- background: var(--secondary-color-dark);
288
- }
289
-
290
- .solid-select__tertiary {
291
- background-color: var(--tertiary-color);
292
- color: var(--on-tertiary-color);
293
- }
294
- .solid-select__tertiary .solid-select__option {
295
- background-color: var(--tertiary-color);
296
- color: var(--on-tertiary-color);
297
- }
298
- .solid-select__tertiary .solid-select__option:hover {
299
- background: var(--tertiary-color-dark);
300
- }
301
- .solid-select__tertiary .solid-select__option.selected {
302
- background: var(--tertiary-color-dark);
303
- }
304
-
305
- .solid-select__tertiary_dropdown {
306
- background-color: var(--tertiary-color);
307
- color: var(--on-tertiary-color);
308
- }
309
- .solid-select__tertiary_dropdown .solid-select__option {
310
- background-color: var(--tertiary-color);
311
- color: var(--on-tertiary-color);
312
- }
313
- .solid-select__tertiary_dropdown .solid-select__option:hover {
314
- background: var(--tertiary-color-dark);
315
- }
316
- .solid-select__tertiary_dropdown .solid-select__option.selected {
317
- background: var(--tertiary-color-dark);
318
- }
319
-
320
- /* Option items */
321
- .solid-select__option {
322
- padding: 8px;
323
- cursor: pointer;
324
- display: flex;
325
- align-items: center;
326
- min-height: var(--spacing-4);
327
- }
328
-
329
- /* Selected option styling */
330
- .solid-select__option.selected {
331
- font-weight: bold;
332
- }
333
-
334
- /* Checkmark before option label */
335
- .solid-select__option .checkmark {
336
- display: inline-block;
337
- width: 1.2em; /* reserve space for the checkmark */
338
- margin-right: 4px;
339
- text-align: center;
340
- }
341
-
342
- .formField {
343
- display: inline-block;
344
- border-radius: var(--border-radius-md);
345
- box-sizing: border-box;
346
- width: 100%;
347
- }
348
- .formField label {
349
- position: relative;
350
- top: -0.5rem;
351
- padding-right: 10px;
352
- }
353
- .formField:has(textarea) {
354
- position: relative;
355
- margin-top: var(--spacing-1);
356
- margin-bottom: var(--spacing-1);
357
- }
358
- .formField:has(textarea) textarea {
359
- width: auto;
360
- min-width: 95%;
361
- font-family: var(--font-family);
362
- font-size: var(--font-size-base);
363
- padding-right: var(--spacing-3);
364
- padding-bottom: var(--spacing-1);
365
- border: none;
366
- }
367
- .formField:has(textarea) textarea:focus {
368
- outline: none;
369
- }
370
- .formField:has(textarea) legend {
371
- height: var(--spacing-3);
372
- position: absolute;
373
- top: calc(var(--spacing-2) * -1);
374
- left: var(--spacing-1);
375
- transition: all 0.2s ease;
376
- }
377
- .formField:has(input[type=text]) {
378
- height: calc(var(--spacing-4) + var(--spacing-1));
379
- position: relative;
380
- margin-top: var(--spacing-2);
381
- margin-bottom: var(--spacing-2);
382
- }
383
- .formField:has(input[type=text]) legend {
384
- height: var(--spacing-3);
385
- position: absolute;
386
- top: calc(var(--spacing-2) * -1);
387
- left: var(--spacing-1);
388
- transition: all 0.2s ease;
389
- }
390
- .formField:has(input[type=text]) input[type=text] {
391
- background-color: transparent !important;
392
- height: calc(var(--spacing-4) + var(--spacing-1) - var(--spacing-3));
393
- border-radius: var(--border-radius-sm);
394
- margin: auto 0px;
395
- margin-top: var(--spacing-1);
396
- font-family: var(--font-family);
397
- font-size: var(--font-size-base);
398
- width: auto;
399
- min-width: 95%;
400
- }
401
- .formField:has(input[type=text]) input[type=text]::placeholder {
402
- opacity: 0.75;
403
- }
404
- @media screen and (max-width: 768px) {
405
- .formField {
406
- max-width: 75%;
407
- }
408
- }
409
-
410
- .primary {
411
- background-color: var(--primary-color);
412
- color: var(--on-primary-color);
413
- }
414
- .primary:has(input[type=text]) legend {
415
- background: linear-gradient(to bottom, transparent 60%, var(--primary-color) 40%);
416
- }
417
- .primary:has(input[type=text]) input[type=text] {
418
- color: var(--on-primary-color);
419
- }
420
- .primary:has(textarea) {
421
- width: 100%;
422
- height: auto;
423
- }
424
- .primary:has(textarea) textarea {
425
- background-color: var(--primary-color);
426
- color: var(--on-primary-color);
427
- }
428
- .primary:has(textarea) legend {
429
- background: linear-gradient(to bottom, transparent 60%, var(--primary-color) 40%);
430
- }
431
-
432
- .accent {
433
- background-color: var(--secondary-color);
434
- color: var(--on-secondary-color);
435
- }
436
- .accent:has(input[type=text]) legend {
437
- background: linear-gradient(to bottom, transparent 60%, var(--secondary-color) 40%);
438
- }
439
- .accent:has(input[type=text]) input[type=text] {
440
- color: var(--on-secondary-color);
441
- }
442
- .accent:has(textarea) textarea {
443
- background-color: var(--secondary-color);
444
- color: var(--on-secondary-color);
445
- }
446
- .accent:has(textarea) legend {
447
- background: linear-gradient(to bottom, transparent 60%, var(--secondary-color) 40%);
448
- }
449
-
450
- .tertiary {
451
- background-color: var(--tertiary-color);
452
- color: var(--on-tertiary-color);
453
- }
454
- .tertiary:has(input[type=text]) legend {
455
- background: linear-gradient(to bottom, transparent 60%, var(--tertiary-color) 40%);
456
- }
457
- .tertiary:has(input[type=text]) input[type=text] {
458
- color: var(--on-tertiary-color);
459
- }
460
- .tertiary:has(textarea) textarea {
461
- background-color: var(--tertiary-color);
462
- color: var(--on-tertiary-color);
463
- }
464
- .tertiary:has(textarea) legend {
465
- background: linear-gradient(to bottom, transparent 60%, var(--tertiary-color) 40%);
466
- }
467
-
468
- .moveLegendInside {
469
- display: none;
470
- }
471
-
472
- .checkboxPadding {
473
- padding: 0px;
474
- padding-bottom: 10px;
475
- padding-left: 10px;
476
- padding-right: 10px;
477
- }
478
-
479
- .input {
480
- width: 100%;
481
- max-width: 400px;
482
- border-radius: var(--border-radius-lg);
483
- font-size: var(--font-size-base);
484
- }
485
- @media screen and (max-width: 768px) {
486
- .input {
487
- width: 100%;
488
- max-width: 100%;
489
- }
490
- }
491
- .input[type=checkbox] {
492
- width: min-content;
493
- -webkit-appearance: none;
494
- border: 1px solid #cacece;
495
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
496
- padding: var(--spacing-1);
497
- border-radius: var(--border-radius-sm);
498
- display: inline-block;
499
- position: relative;
500
- }
501
- .input[type=checkbox]:checked {
502
- background-color: inherit;
503
- border: 1px solid #adb8c0;
504
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05), inset 15px 10px -12px rgba(255, 255, 255, 0.1);
505
- color: inherit;
506
- }
507
- .input[type=checkbox]:checked:after {
508
- content: "✔";
509
- position: absolute;
510
- top: -15%;
511
- left: 15%;
512
- width: 10px;
513
- height: 10px;
514
- border-radius: 10%;
515
- }
516
- .input:focus {
517
- outline: none;
518
- }
519
- .input.error {
520
- border: 1px solid var(--warn-color);
521
- }
522
- .input.success {
523
- border: 1px solid green;
524
- }
525
- .input.warning {
526
- border: 1px solid orange;
527
- }
528
- .input.info {
529
- border: 1px solid blue;
530
- }
531
- .input.disabled {
532
- border: 1px solid gray;
533
- }
534
-
535
- .checkbox {
536
- cursor: pointer;
537
- }
538
-
539
- .transparent {
540
- background-color: inherit !important;
541
- opacity: 1;
542
- color: inherit !important;
543
- border: none;
544
- }
545
- .transparent :focus {
546
- outline: none;
547
- }
548
-
549
- .snack {
550
- position: fixed;
551
- bottom: 10px;
552
- left: 45vw;
553
- right: 45vw;
554
- border-radius: 15px;
555
- margin: 0;
556
- padding: 0;
557
- z-index: 9999;
558
- display: flex;
559
- flex-direction: row;
560
- align-items: flex-end;
561
- max-width: 10vw;
562
- padding: 5px;
563
- }
564
- @media screen and (max-width: 768px) {
565
- .snack {
566
- left: 8vw;
567
- right: 8vw;
568
- bottom: 20vh;
569
- max-width: 70vw;
570
- }
571
- }
572
- .snack span {
573
- flex-grow: 1;
574
- margin: auto 0;
575
- text-wrap: wrap;
576
- }
577
- .snack button {
578
- margin: auto 0;
579
- }
580
-
581
- .error {
582
- border: 2px solid red;
583
- border-color: red;
584
- color: red;
585
- font-weight: bold;
586
- }
587
-
588
- .success {
589
- border-color: #4caf50;
590
- border: 2px solid #4caf50;
591
- color: #4caf50;
592
- }
593
-
594
- .warning {
595
- border-color: #ff9800;
596
- border: 2px solid #ff9800;
597
- color: #ff9800;
598
- }
599
-
600
- .open {
601
- animation: slideIn 0.5s forwards;
602
- }
603
-
604
- .close {
605
- animation: slideOut 0.5s forwards;
606
- }
607
-
608
- .tabs {
609
- width: 100%;
610
- display: flex;
611
- flex-direction: column;
612
- }
613
-
614
- .singleTabs {
615
- display: flex;
616
- flex-direction: row;
617
- border-radius: 10px;
618
- border-bottom: 1px solid white;
619
- }
620
-
621
- .tabHeader {
622
- display: flex;
623
- flex-direction: row;
624
- max-width: 88%;
625
- scroll-behavior: smooth;
626
- overflow: hidden;
627
- font-size: 1rem;
628
- padding: 0;
629
- float: left;
630
- }
631
- @media screen and (max-width: 768px) {
632
- .tabHeader {
633
- margin: 0px auto;
634
- max-width: 100%;
635
- }
636
- }
637
- .tabHeader :first-child {
638
- border-left: none;
639
- }
640
- .tabHeader span {
641
- height: inherit;
642
- padding: 10px 20px;
643
- border-left: 1px solid white;
644
- }
645
- @media screen and (max-width: 768px) {
646
- .tabHeader span {
647
- padding-bottom: 0px;
648
- }
649
- }
650
-
651
- .tabBody {
652
- width: 100%;
653
- height: 100%;
654
- border-radius: 10px;
655
- padding: 5px;
656
- }
657
-
658
- .leftArrow {
659
- margin-right: 10px;
660
- align-self: flex-start;
661
- margin: auto 0px;
662
- }
663
-
664
- .rightArrow {
665
- margin-left: 10px;
666
- align-self: flex-end;
667
- margin: auto 0px;
668
- }
669
-
670
- .transparent {
671
- background: inherit;
672
- }
673
-
674
- .header {
675
- width: 100%;
676
- max-width: 100%;
677
- border-bottom: 1px solid;
678
- display: flex;
679
- flex-direction: row;
680
- border-radius: 10px;
681
- box-shadow: inset 1px 1px 5px 1px;
682
- height: min-content;
683
- text-wrap: wrap;
684
- }
685
- .header :first-child {
686
- flex-grow: 1;
687
- }
688
- .header :last-child {
689
- align-self: flex-end;
690
- padding: 10px;
691
- }
692
- .header button {
693
- height: min-content;
694
- background: none;
695
- }
696
- .header button svg {
697
- height: 50%;
698
- }
699
-
700
- .body {
701
- border-radius: 10px;
702
- width: 100%;
703
- max-width: 100%;
704
- }
705
- .body :nth-child(n) {
706
- text-wrap: wrap !important;
707
- }
708
-
709
- .totalPanel {
710
- max-width: 100%;
711
- display: flex !important;
712
- flex-direction: column !important;
713
- border: 1px solid;
714
- border-radius: 10px;
715
- padding: 1rem;
716
- }
717
-
718
- .areaStyle {
719
- padding: 0.5rem;
720
- margin-right: 5px;
721
- border: 1px solid #ccc;
722
- border-radius: 6px;
723
- width: 98%;
724
- height: 100%;
725
- resize: none;
726
- }
727
- @media screen and (max-width: 768px) {
728
- .areaStyle {
729
- width: 90%;
730
- }
731
- }
732
-
733
- .picButton {
734
- padding: 3px 8px !important;
735
- background-color: transparent;
736
- border-top: 1px solid white;
737
- border-bottom: 1px solid white;
738
- }
739
-
740
- .transparent {
741
- background-color: transparent;
742
- border: none;
743
- color: white;
744
- padding: 0.5rem;
745
- width: inherit;
746
- height: 100%;
747
- resize: none;
748
- }
749
- .transparent:focus {
750
- outline: none;
751
- border: none;
752
- }