sempli-website-lib 7.1.0-beta.0 → 7.1.0-beta.2

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.
@@ -4,7 +4,8 @@ document.addEventListener('DOMContentLoaded', () => {
4
4
  if (wrapper) {
5
5
  const label = wrapper.querySelector('.floating-label');
6
6
  if (label) {
7
- if (input.value.trim() !== '' || document.activeElement === input || input.hasAttribute('placeholder')) {
7
+ if ((input.value.trim() !== '' || document.activeElement === input ||
8
+ input.hasAttribute('placeholder')) || input.type === 'date') {
8
9
  label.classList.add('active');
9
10
  } else {
10
11
  label.classList.remove('active');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sempli-website-lib",
3
- "version": "7.1.0-beta.0",
3
+ "version": "7.1.0-beta.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.3",
6
6
  "@angular/core": "^18.0.3"
@@ -13296,27 +13296,6 @@ button.cursor-pointer {
13296
13296
  }
13297
13297
  }
13298
13298
 
13299
- input[type=date],
13300
- input[type=datetime],
13301
- input[type=datetime-local],
13302
- input[type=email],
13303
- input[type=month],
13304
- input[type=number],
13305
- input[type=password],
13306
- input[type=range],
13307
- input[type=search],
13308
- input[type=tel],
13309
- input[type=text],
13310
- input[type=time],
13311
- input[type=url],
13312
- input[type=week] {
13313
- &:disabled {
13314
- background-color: #F4F4F4;
13315
- border-color: #E9EAEA;
13316
- color: #B6B8BD;
13317
- }
13318
- }
13319
-
13320
13299
  .label-container {
13321
13300
  cursor: pointer;
13322
13301
  position: relative;
@@ -13373,10 +13352,47 @@ button.cursor-pointer {
13373
13352
  text-overflow: ellipsis;
13374
13353
  color: #111;
13375
13354
  border-bottom-color: rgba(17, 17, 17, 0.2);
13355
+ box-shadow: transparent 0 0 0 1000px inset;
13356
+
13357
+ /* Webkit browsers */
13358
+ &:-webkit-autofill {
13359
+ -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
13360
+ -webkit-text-fill-color: #111 !important;
13361
+ transition: background-color 5000s ease-in-out 0s;
13362
+ }
13363
+
13364
+ &:-moz-autofill {
13365
+ background-color: transparent !important;
13366
+ }
13367
+
13368
+ &:-ms-autofill {
13369
+ background-color: transparent !important;
13370
+ }
13371
+
13372
+ /* Modern browsers */
13373
+ &:autofill {
13374
+ box-shadow: 0 0 0 1000px transparent inset !important;
13375
+ background-color: transparent !important;
13376
+ }
13376
13377
 
13377
13378
  &:focus, &:hover {
13378
13379
  border-bottom-color: #111;
13379
13380
  }
13381
+
13382
+ &:disabled {
13383
+ border-color: #E9EAEA;
13384
+ border-bottom-color: #B6B8BD;
13385
+ color: #B6B8BD;
13386
+
13387
+ &:focus, &:hover {
13388
+ border-bottom-color: #B6B8BD;
13389
+ cursor: not-allowed;
13390
+ }
13391
+
13392
+ + .floating-label {
13393
+ color: #B6B8BD;
13394
+ }
13395
+ }
13380
13396
  }
13381
13397
 
13382
13398
  select.input-field {
@@ -13385,6 +13401,19 @@ button.cursor-pointer {
13385
13401
  -moz-appearance: none;
13386
13402
  appearance: none;
13387
13403
  white-space: nowrap;
13404
+ height: unset;
13405
+ }
13406
+
13407
+ textarea.input-field {
13408
+ resize: none;
13409
+ white-space: pre-wrap;
13410
+ overflow-wrap: break-word;
13411
+ overflow-y: auto;
13412
+ max-height: 150px;
13413
+
13414
+ + .floating-label {
13415
+ margin-bottom: 30px;
13416
+ }
13388
13417
  }
13389
13418
 
13390
13419
  &.select-wrapper {
@@ -13474,6 +13503,10 @@ button.cursor-pointer {
13474
13503
  font-size: 12px;
13475
13504
  }
13476
13505
 
13506
+ &:has(.select-wrapper) {
13507
+ padding: 1.6rem 0;
13508
+ }
13509
+
13477
13510
  .select-wrapper {
13478
13511
  label {
13479
13512
  margin: 0;
@@ -13076,27 +13076,6 @@ button.cursor-pointer {
13076
13076
  }
13077
13077
  }
13078
13078
 
13079
- input[type=date],
13080
- input[type=datetime],
13081
- input[type=datetime-local],
13082
- input[type=email],
13083
- input[type=month],
13084
- input[type=number],
13085
- input[type=password],
13086
- input[type=range],
13087
- input[type=search],
13088
- input[type=tel],
13089
- input[type=text],
13090
- input[type=time],
13091
- input[type=url],
13092
- input[type=week] {
13093
- &:disabled {
13094
- background-color: #F4F4F4;
13095
- border-color: #E9EAEA;
13096
- color: #B6B8BD;
13097
- }
13098
- }
13099
-
13100
13079
  .label-container {
13101
13080
  cursor: pointer;
13102
13081
  position: relative;
@@ -13153,10 +13132,47 @@ button.cursor-pointer {
13153
13132
  text-overflow: ellipsis;
13154
13133
  color: #111;
13155
13134
  border-bottom-color: rgba(17, 17, 17, 0.2);
13135
+ box-shadow: transparent 0 0 0 1000px inset;
13136
+
13137
+ /* Webkit browsers */
13138
+ &:-webkit-autofill {
13139
+ -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
13140
+ -webkit-text-fill-color: #111 !important;
13141
+ transition: background-color 5000s ease-in-out 0s;
13142
+ }
13143
+
13144
+ &:-moz-autofill {
13145
+ background-color: transparent !important;
13146
+ }
13147
+
13148
+ &:-ms-autofill {
13149
+ background-color: transparent !important;
13150
+ }
13151
+
13152
+ /* Modern browsers */
13153
+ &:autofill {
13154
+ box-shadow: 0 0 0 1000px transparent inset !important;
13155
+ background-color: transparent !important;
13156
+ }
13156
13157
 
13157
13158
  &:focus, &:hover {
13158
13159
  border-bottom-color: #111;
13159
13160
  }
13161
+
13162
+ &:disabled {
13163
+ border-color: #E9EAEA;
13164
+ border-bottom-color: #B6B8BD;
13165
+ color: #B6B8BD;
13166
+
13167
+ &:focus, &:hover {
13168
+ border-bottom-color: #B6B8BD;
13169
+ cursor: not-allowed;
13170
+ }
13171
+
13172
+ + .floating-label {
13173
+ color: #B6B8BD;
13174
+ }
13175
+ }
13160
13176
  }
13161
13177
 
13162
13178
  select.input-field {
@@ -13165,6 +13181,19 @@ button.cursor-pointer {
13165
13181
  -moz-appearance: none;
13166
13182
  appearance: none;
13167
13183
  white-space: nowrap;
13184
+ height: unset;
13185
+ }
13186
+
13187
+ textarea.input-field {
13188
+ resize: none;
13189
+ white-space: pre-wrap;
13190
+ overflow-wrap: break-word;
13191
+ overflow-y: auto;
13192
+ max-height: 150px;
13193
+
13194
+ + .floating-label {
13195
+ margin-bottom: 30px;
13196
+ }
13168
13197
  }
13169
13198
 
13170
13199
  &.select-wrapper {
@@ -13254,6 +13283,10 @@ button.cursor-pointer {
13254
13283
  font-size: 12px;
13255
13284
  }
13256
13285
 
13286
+ &:has(.select-wrapper) {
13287
+ padding: 1.6rem 0;
13288
+ }
13289
+
13257
13290
  .select-wrapper {
13258
13291
  label {
13259
13292
  margin: 0;
@@ -551,27 +551,6 @@
551
551
  }
552
552
  }
553
553
 
554
- input[type=date],
555
- input[type=datetime],
556
- input[type=datetime-local],
557
- input[type=email],
558
- input[type=month],
559
- input[type=number],
560
- input[type=password],
561
- input[type=range],
562
- input[type=search],
563
- input[type=tel],
564
- input[type=text],
565
- input[type=time],
566
- input[type=url],
567
- input[type=week] {
568
- &:disabled {
569
- background-color: #F4F4F4;
570
- border-color: #E9EAEA;
571
- color: #B6B8BD;
572
- }
573
- }
574
-
575
554
  .label-container {
576
555
  cursor: pointer;
577
556
  position: relative;
@@ -628,10 +607,47 @@
628
607
  text-overflow: ellipsis;
629
608
  color: #111;
630
609
  border-bottom-color: rgba(17, 17, 17, 0.2);
610
+ box-shadow: transparent 0 0 0 1000px inset;
611
+
612
+ /* Webkit browsers */
613
+ &:-webkit-autofill {
614
+ -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
615
+ -webkit-text-fill-color: #111 !important;
616
+ transition: background-color 5000s ease-in-out 0s;
617
+ }
618
+
619
+ &:-moz-autofill {
620
+ background-color: transparent !important;
621
+ }
622
+
623
+ &:-ms-autofill {
624
+ background-color: transparent !important;
625
+ }
626
+
627
+ /* Modern browsers */
628
+ &:autofill {
629
+ box-shadow: 0 0 0 1000px transparent inset !important;
630
+ background-color: transparent !important;
631
+ }
631
632
 
632
633
  &:focus, &:hover {
633
634
  border-bottom-color: #111;
634
635
  }
636
+
637
+ &:disabled {
638
+ border-color: #E9EAEA;
639
+ border-bottom-color: #B6B8BD;
640
+ color: #B6B8BD;
641
+
642
+ &:focus, &:hover {
643
+ border-bottom-color: #B6B8BD;
644
+ cursor: not-allowed;
645
+ }
646
+
647
+ + .floating-label {
648
+ color: #B6B8BD;
649
+ }
650
+ }
635
651
  }
636
652
 
637
653
  select.input-field {
@@ -640,6 +656,19 @@
640
656
  -moz-appearance: none;
641
657
  appearance: none;
642
658
  white-space: nowrap;
659
+ height: unset;
660
+ }
661
+
662
+ textarea.input-field {
663
+ resize: none;
664
+ white-space: pre-wrap;
665
+ overflow-wrap: break-word;
666
+ overflow-y: auto;
667
+ max-height: 150px;
668
+
669
+ + .floating-label {
670
+ margin-bottom: 30px;
671
+ }
643
672
  }
644
673
 
645
674
  &.select-wrapper {
@@ -729,6 +758,10 @@
729
758
  font-size: 12px;
730
759
  }
731
760
 
761
+ &:has(.select-wrapper) {
762
+ padding: 1.6rem 0;
763
+ }
764
+
732
765
  .select-wrapper {
733
766
  label {
734
767
  margin: 0;