@kerkhoff-ict/solora 2.7.2 → 2.7.4

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
@@ -511,24 +511,29 @@
511
511
  pointer-events: auto;
512
512
  }
513
513
  .dropdown.top-left .dropdown-content {
514
+ top: auto;
514
515
  bottom: 100%;
515
- left: 0;
516
+ left: auto;
517
+ right: 0;
516
518
  margin: 0.5rem 0;
517
519
  }
518
520
  .dropdown.top-center .dropdown-content {
521
+ top: auto;
519
522
  bottom: 100%;
520
523
  left: 50%;
521
524
  transform: translateX(-50%) !important;
522
525
  margin: 0.5rem 0;
523
526
  }
524
527
  .dropdown.top-right .dropdown-content {
528
+ top: auto;
525
529
  bottom: 100%;
526
- right: 0;
530
+ left: 0;
527
531
  margin: 0.5rem 0;
528
532
  }
529
533
  .dropdown.bottom-left .dropdown-content {
530
534
  top: 100%;
531
- left: 0;
535
+ left: auto;
536
+ right: 0;
532
537
  margin: 0.5rem 0;
533
538
  }
534
539
  .dropdown.bottom-center .dropdown-content {
@@ -539,18 +544,19 @@
539
544
  }
540
545
  .dropdown.bottom-right .dropdown-content {
541
546
  top: 100%;
542
- right: 0;
547
+ left: 0;
543
548
  margin: 0.5rem 0;
544
549
  }
545
550
  .dropdown.left .dropdown-content {
546
- right: 100%;
547
551
  top: 50%;
552
+ left: auto;
553
+ right: 100%;
548
554
  transform: translateY(-50%) !important;
549
555
  margin: 0 0.5rem;
550
556
  }
551
557
  .dropdown.right .dropdown-content {
552
- left: 100%;
553
558
  top: 50%;
559
+ left: 100%;
554
560
  transform: translateY(-50%) !important;
555
561
  margin: 0 0.5rem;
556
562
  }
@@ -1144,7 +1150,7 @@
1144
1150
  }
1145
1151
 
1146
1152
  /* src/components/check.css */
1147
- .apple-input-group {
1153
+ .sol-input-group {
1148
1154
  margin-bottom: 1.5rem;
1149
1155
  font-family:
1150
1156
  -apple-system,
@@ -1155,13 +1161,13 @@
1155
1161
  Arial,
1156
1162
  sans-serif;
1157
1163
  }
1158
- .apple-input-group-title {
1164
+ .sol-input-group-title {
1159
1165
  font-weight: 600;
1160
1166
  margin-bottom: 0.5rem;
1161
1167
  display: block;
1162
1168
  color: var(--color-text-dark, #000);
1163
1169
  }
1164
- .apple-input-wrapper {
1170
+ .sol-input-wrapper {
1165
1171
  display: flex;
1166
1172
  align-items: center;
1167
1173
  gap: 0.6rem;
@@ -1170,14 +1176,14 @@
1170
1176
  user-select: none;
1171
1177
  color: var(--color-text-dark, #000);
1172
1178
  }
1173
- .apple-input-wrapper input {
1179
+ .sol-input-wrapper input {
1174
1180
  position: absolute;
1175
1181
  opacity: 0;
1176
1182
  cursor: pointer;
1177
1183
  height: 0;
1178
1184
  width: 0;
1179
1185
  }
1180
- .apple-control {
1186
+ .sol-control {
1181
1187
  position: relative;
1182
1188
  display: inline-block;
1183
1189
  width: 1.25rem;
@@ -1186,20 +1192,20 @@
1186
1192
  border: 1.5px solid rgba(0, 0, 0, 0.2);
1187
1193
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
1188
1194
  }
1189
- .apple-checkbox .apple-control {
1195
+ .sol-checkbox .sol-control {
1190
1196
  border-radius: 4px;
1191
1197
  }
1192
- .apple-radio .apple-control {
1198
+ .sol-radio .sol-control {
1193
1199
  border-radius: 50%;
1194
1200
  }
1195
- .apple-input-wrapper:hover input:not(:disabled) ~ .apple-control {
1201
+ .sol-input-wrapper:hover input:not(:disabled) ~ .sol-control {
1196
1202
  border-color: rgba(0, 0, 0, 0.4);
1197
1203
  }
1198
- .apple-input-wrapper input:checked ~ .apple-control {
1199
- background-color: #007aff;
1200
- border-color: #007aff;
1204
+ .sol-input-wrapper input:checked ~ .sol-control {
1205
+ background-color: var(--color-primary, #0071e3);
1206
+ border-color: var(--color-primary, #0071e3);
1201
1207
  }
1202
- .apple-checkbox .apple-control:after {
1208
+ .sol-checkbox .sol-control:after {
1203
1209
  content: "";
1204
1210
  position: absolute;
1205
1211
  display: none;
@@ -1211,10 +1217,10 @@
1211
1217
  border-width: 0 2px 2px 0;
1212
1218
  transform: rotate(45deg);
1213
1219
  }
1214
- .apple-checkbox input:checked ~ .apple-control:after {
1220
+ .sol-checkbox input:checked ~ .sol-control:after {
1215
1221
  display: block;
1216
1222
  }
1217
- .apple-radio .apple-control:after {
1223
+ .sol-radio .sol-control:after {
1218
1224
  content: "";
1219
1225
  position: absolute;
1220
1226
  display: none;
@@ -1226,38 +1232,38 @@
1226
1232
  border-radius: 50%;
1227
1233
  background: white;
1228
1234
  }
1229
- .apple-radio input:checked ~ .apple-control:after {
1235
+ .sol-radio input:checked ~ .sol-control:after {
1230
1236
  display: block;
1231
1237
  }
1232
- .apple-input-wrapper input:disabled ~ .apple-control {
1238
+ .sol-input-wrapper input:disabled ~ .sol-control {
1233
1239
  background-color: rgba(0, 0, 0, 0.05);
1234
1240
  border-color: rgba(0, 0, 0, 0.1);
1235
1241
  cursor: not-allowed;
1236
1242
  }
1237
- .apple-input-wrapper input:disabled ~ .apple-label {
1243
+ .sol-input-wrapper input:disabled ~ .sol-label {
1238
1244
  color: rgba(0, 0, 0, 0.4);
1239
1245
  cursor: not-allowed;
1240
1246
  }
1241
- :root.dark .apple-input-group-title,
1242
- :root.dark .apple-input-wrapper {
1247
+ :root.dark .sol-input-group-title,
1248
+ :root.dark .sol-input-wrapper {
1243
1249
  color: #f0f0f0;
1244
1250
  }
1245
- :root.dark .apple-control {
1251
+ :root.dark .sol-control {
1246
1252
  background: #1c1c1e;
1247
1253
  border-color: rgba(255, 255, 255, 0.3);
1248
1254
  }
1249
- :root.dark .apple-input-wrapper:hover input:not(:disabled) ~ .apple-control {
1255
+ :root.dark .sol-input-wrapper:hover input:not(:disabled) ~ .sol-control {
1250
1256
  border-color: rgba(255, 255, 255, 0.5);
1251
1257
  }
1252
- :root.dark .apple-input-wrapper input:checked ~ .apple-control {
1253
- background-color: #0a84ff;
1254
- border-color: #0a84ff;
1258
+ :root.dark .sol-input-wrapper input:checked ~ .sol-control {
1259
+ background-color: var(--color-primary, #0071e3);
1260
+ border-color: var(--color-primary, #0071e3);
1255
1261
  }
1256
- :root.dark .apple-input-wrapper input:disabled ~ .apple-control {
1262
+ :root.dark .sol-input-wrapper input:disabled ~ .sol-control {
1257
1263
  background-color: rgba(255, 255, 255, 0.08);
1258
1264
  border-color: rgba(255, 255, 255, 0.15);
1259
1265
  }
1260
- :root.dark .apple-input-wrapper input:disabled ~ .apple-label {
1266
+ :root.dark .sol-input-wrapper input:disabled ~ .sol-label {
1261
1267
  color: rgba(255, 255, 255, 0.3);
1262
1268
  }
1263
1269
 
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.2",
3
+ "version": "2.7.4",
4
4
  "description": "Simple CSS component library",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/index.css",