@kerkhoff-ict/solora 2.7.3 → 2.7.5

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 CHANGED
@@ -645,6 +645,7 @@
645
645
  Arial,
646
646
  sans-serif;
647
647
  width: 100%;
648
+ position: relative;
648
649
  }
649
650
  .sol-label {
650
651
  font-size: 0.85rem;
@@ -656,6 +657,7 @@
656
657
  .sol-input {
657
658
  appearance: none;
658
659
  -webkit-appearance: none;
660
+ -moz-appearance: textfield;
659
661
  width: 100%;
660
662
  padding: 0.3rem 0.4rem;
661
663
  font-size: 0.95rem;
@@ -671,150 +673,6 @@
671
673
  color: var(--color-text-dark, #000);
672
674
  opacity: 0.3;
673
675
  }
674
- .sol-input-group {
675
- display: flex;
676
- flex-direction: column;
677
- gap: 0.4rem;
678
- font-family:
679
- -apple-system,
680
- BlinkMacSystemFont,
681
- "Segoe UI",
682
- Roboto,
683
- Helvetica,
684
- Arial,
685
- sans-serif;
686
- width: 100%;
687
- }
688
- .sol-label {
689
- font-size: 0.85rem;
690
- font-weight: 500;
691
- color: var(--color-text-dark, #000);
692
- opacity: 0.6;
693
- margin-left: 0.2rem;
694
- }
695
- .sol-input {
696
- appearance: none;
697
- -webkit-appearance: none;
698
- width: 100%;
699
- padding: 0.3rem 0.4rem;
700
- font-size: 0.95rem;
701
- border-radius: 12px;
702
- border: 1px solid rgba(0, 0, 0, 0.1);
703
- background: var(--color-bg, #fefefe);
704
- color: var(--color-text-dark, #000);
705
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
706
- transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
707
- outline: none;
708
- }
709
- .sol-input::placeholder {
710
- color: var(--color-text-dark, #000);
711
- opacity: 0.3;
712
- }
713
- .sol-input:hover {
714
- border-color: rgba(0, 0, 0, 0.2);
715
- background: var(--color-bg-hover, #ffffff);
716
- }
717
- .sol-input:focus {
718
- border-color: var(--color-primary, #0071e3);
719
- box-shadow: 0 0 0 4px var(--color-focus-glow, rgba(0, 113, 227, 0.15)), 0 2px 8px rgba(0, 0, 0, 0.05);
720
- background: var(--color-bg-hover, #ffffff);
721
- }
722
- .sol-input:disabled {
723
- background: var(--color-secondary, #f5f5f5);
724
- color: var(--color-text-dark, #000);
725
- opacity: 0.5;
726
- cursor: not-allowed;
727
- box-shadow: none;
728
- }
729
- .sol-input-error {
730
- border-color: var(--color-danger, #dc3545) !important;
731
- }
732
- .sol-input-error:focus {
733
- box-shadow: 0 0 0 4px var(--color-error-glow, rgba(220, 53, 69, 0.15)) !important;
734
- }
735
- .sol-input::-webkit-outer-spin-button,
736
- .sol-input::-webkit-inner-spin-button {
737
- -webkit-appearance: none;
738
- margin: 0;
739
- }
740
- .sol-input {
741
- -moz-appearance: textfield;
742
- appearance: none;
743
- }
744
- .sol-input-group {
745
- position: relative;
746
- }
747
- .sol-error-message {
748
- color: var(--color-danger, #ff453a);
749
- font-size: 0.75rem;
750
- font-weight: 500;
751
- margin-top: 0.2rem;
752
- margin-left: 0.2rem;
753
- display: none;
754
- animation: solFadeIn 0.2s ease-out;
755
- }
756
- @keyframes solFadeIn {
757
- from {
758
- opacity: 0;
759
- transform: translateY(-5px);
760
- }
761
- to {
762
- opacity: 1;
763
- transform: translateY(0);
764
- }
765
- }
766
- .sol-input.is-invalid {
767
- border-color: var(--color-danger, #ff453a) !important;
768
- box-shadow: 0 0 0 4px var(--color-error-glow, rgba(255, 69, 58, 0.15)) !important;
769
- }
770
- :root.dark .sol-label {
771
- color: var(--color-text-light, #fff);
772
- opacity: 0.6;
773
- }
774
- :root.dark .sol-input {
775
- background: rgba(28, 28, 30, 0.8);
776
- color: var(--color-text-light, #fff);
777
- border: 1px solid rgba(255, 255, 255, 0.15);
778
- backdrop-filter: blur(12px);
779
- -webkit-backdrop-filter: blur(12px);
780
- box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.4);
781
- }
782
- :root.dark .sol-input::placeholder {
783
- color: var(--color-text-light, #fff);
784
- opacity: 0.3;
785
- }
786
- :root.dark .sol-input:hover {
787
- background: rgba(44, 44, 46, 0.9);
788
- border-color: rgba(255, 255, 255, 0.25);
789
- }
790
- :root.dark .sol-input:focus {
791
- background: rgba(44, 44, 46, 1);
792
- border-color: var(--color-primary-dark, #0a84ff);
793
- box-shadow: 0 0 0 4px var(--color-focus-glow-dark, rgba(10, 132, 255, 0.2)), 0 4px 12px rgba(0, 0, 0, 0.5);
794
- }
795
- :root.dark .sol-input-error {
796
- border-color: var(--color-danger, #ff453a) !important;
797
- }
798
- .sol-input:read-only {
799
- background: var(--color-bg-readonly, #f9f9f9);
800
- border-color: rgba(0, 0, 0, 0.05);
801
- cursor: default;
802
- box-shadow: none;
803
- color: var(--color-text-dark, #000);
804
- }
805
- .sol-input:read-only:hover {
806
- background: var(--color-bg-readonly, #f9f9f9);
807
- border-color: rgba(0, 0, 0, 0.05);
808
- }
809
- .sol-input:read-only:focus {
810
- border-color: rgba(0, 0, 0, 0.1);
811
- box-shadow: none;
812
- }
813
- :root.dark .sol-input:read-only {
814
- background: rgba(255, 255, 255, 0.03);
815
- border-color: rgba(255, 255, 255, 0.05);
816
- color: var(--color-text-light, #fff);
817
- }
818
676
  .sol-input:hover {
819
677
  border-color: rgba(0, 0, 0, 0.2);
820
678
  background: var(--color-bg-hover, #ffffff);
@@ -842,13 +700,6 @@
842
700
  -webkit-appearance: none;
843
701
  margin: 0;
844
702
  }
845
- .sol-input {
846
- -moz-appearance: textfield;
847
- appearance: none;
848
- }
849
- .sol-input-group {
850
- position: relative;
851
- }
852
703
  .sol-error-message {
853
704
  color: var(--color-danger, #ff453a);
854
705
  font-size: 0.75rem;
@@ -1150,7 +1001,7 @@
1150
1001
  }
1151
1002
 
1152
1003
  /* src/components/check.css */
1153
- .apple-input-group {
1004
+ .sol-input-group {
1154
1005
  margin-bottom: 1.5rem;
1155
1006
  font-family:
1156
1007
  -apple-system,
@@ -1161,13 +1012,13 @@
1161
1012
  Arial,
1162
1013
  sans-serif;
1163
1014
  }
1164
- .apple-input-group-title {
1015
+ .sol-input-group-title {
1165
1016
  font-weight: 600;
1166
1017
  margin-bottom: 0.5rem;
1167
1018
  display: block;
1168
1019
  color: var(--color-text-dark, #000);
1169
1020
  }
1170
- .apple-input-wrapper {
1021
+ .sol-input-wrapper {
1171
1022
  display: flex;
1172
1023
  align-items: center;
1173
1024
  gap: 0.6rem;
@@ -1176,14 +1027,14 @@
1176
1027
  user-select: none;
1177
1028
  color: var(--color-text-dark, #000);
1178
1029
  }
1179
- .apple-input-wrapper input {
1030
+ .sol-input-wrapper input {
1180
1031
  position: absolute;
1181
1032
  opacity: 0;
1182
1033
  cursor: pointer;
1183
1034
  height: 0;
1184
1035
  width: 0;
1185
1036
  }
1186
- .apple-control {
1037
+ .sol-control {
1187
1038
  position: relative;
1188
1039
  display: inline-block;
1189
1040
  width: 1.25rem;
@@ -1192,20 +1043,20 @@
1192
1043
  border: 1.5px solid rgba(0, 0, 0, 0.2);
1193
1044
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
1194
1045
  }
1195
- .apple-checkbox .apple-control {
1046
+ .sol-checkbox .sol-control {
1196
1047
  border-radius: 4px;
1197
1048
  }
1198
- .apple-radio .apple-control {
1049
+ .sol-radio .sol-control {
1199
1050
  border-radius: 50%;
1200
1051
  }
1201
- .apple-input-wrapper:hover input:not(:disabled) ~ .apple-control {
1052
+ .sol-input-wrapper:hover input:not(:disabled) ~ .sol-control {
1202
1053
  border-color: rgba(0, 0, 0, 0.4);
1203
1054
  }
1204
- .apple-input-wrapper input:checked ~ .apple-control {
1205
- background-color: #007aff;
1206
- border-color: #007aff;
1055
+ .sol-input-wrapper input:checked ~ .sol-control {
1056
+ background-color: var(--color-primary, #0071e3);
1057
+ border-color: var(--color-primary, #0071e3);
1207
1058
  }
1208
- .apple-checkbox .apple-control:after {
1059
+ .sol-checkbox .sol-control:after {
1209
1060
  content: "";
1210
1061
  position: absolute;
1211
1062
  display: none;
@@ -1217,10 +1068,10 @@
1217
1068
  border-width: 0 2px 2px 0;
1218
1069
  transform: rotate(45deg);
1219
1070
  }
1220
- .apple-checkbox input:checked ~ .apple-control:after {
1071
+ .sol-checkbox input:checked ~ .sol-control:after {
1221
1072
  display: block;
1222
1073
  }
1223
- .apple-radio .apple-control:after {
1074
+ .sol-radio .sol-control:after {
1224
1075
  content: "";
1225
1076
  position: absolute;
1226
1077
  display: none;
@@ -1232,38 +1083,38 @@
1232
1083
  border-radius: 50%;
1233
1084
  background: white;
1234
1085
  }
1235
- .apple-radio input:checked ~ .apple-control:after {
1086
+ .sol-radio input:checked ~ .sol-control:after {
1236
1087
  display: block;
1237
1088
  }
1238
- .apple-input-wrapper input:disabled ~ .apple-control {
1089
+ .sol-input-wrapper input:disabled ~ .sol-control {
1239
1090
  background-color: rgba(0, 0, 0, 0.05);
1240
1091
  border-color: rgba(0, 0, 0, 0.1);
1241
1092
  cursor: not-allowed;
1242
1093
  }
1243
- .apple-input-wrapper input:disabled ~ .apple-label {
1094
+ .sol-input-wrapper input:disabled ~ .sol-label {
1244
1095
  color: rgba(0, 0, 0, 0.4);
1245
1096
  cursor: not-allowed;
1246
1097
  }
1247
- :root.dark .apple-input-group-title,
1248
- :root.dark .apple-input-wrapper {
1098
+ :root.dark .sol-input-group-title,
1099
+ :root.dark .sol-input-wrapper {
1249
1100
  color: #f0f0f0;
1250
1101
  }
1251
- :root.dark .apple-control {
1102
+ :root.dark .sol-control {
1252
1103
  background: #1c1c1e;
1253
1104
  border-color: rgba(255, 255, 255, 0.3);
1254
1105
  }
1255
- :root.dark .apple-input-wrapper:hover input:not(:disabled) ~ .apple-control {
1106
+ :root.dark .sol-input-wrapper:hover input:not(:disabled) ~ .sol-control {
1256
1107
  border-color: rgba(255, 255, 255, 0.5);
1257
1108
  }
1258
- :root.dark .apple-input-wrapper input:checked ~ .apple-control {
1259
- background-color: #0a84ff;
1260
- border-color: #0a84ff;
1109
+ :root.dark .sol-input-wrapper input:checked ~ .sol-control {
1110
+ background-color: var(--color-primary, #0071e3);
1111
+ border-color: var(--color-primary, #0071e3);
1261
1112
  }
1262
- :root.dark .apple-input-wrapper input:disabled ~ .apple-control {
1113
+ :root.dark .sol-input-wrapper input:disabled ~ .sol-control {
1263
1114
  background-color: rgba(255, 255, 255, 0.08);
1264
1115
  border-color: rgba(255, 255, 255, 0.15);
1265
1116
  }
1266
- :root.dark .apple-input-wrapper input:disabled ~ .apple-label {
1117
+ :root.dark .sol-input-wrapper input:disabled ~ .sol-label {
1267
1118
  color: rgba(255, 255, 255, 0.3);
1268
1119
  }
1269
1120
 
package/dist/index.js CHANGED
@@ -2361,7 +2361,7 @@ function initPopovers() {
2361
2361
 
2362
2362
  // src/components/check.js
2363
2363
  function initCheck() {
2364
- const limitedGroups = document.querySelectorAll(".apple-input-group[data-max]");
2364
+ const limitedGroups = document.querySelectorAll(".sol-input-group[data-max]");
2365
2365
  limitedGroups.forEach((group) => {
2366
2366
  const maxAllowed = parseInt(group.getAttribute("data-max"), 10);
2367
2367
  const checkboxes = group.querySelectorAll('input[type="checkbox"]');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerkhoff-ict/solora",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "description": "Simple CSS component library",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/index.css",