@citolab/qti-components 7.23.0 → 7.25.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.
Files changed (32) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +176 -554
  3. package/custom-elements.json +122 -9
  4. package/dist/base.js +1 -1
  5. package/dist/{chunk-ULXR5TWK.js → chunk-4A7ZMQKU.js} +3 -3
  6. package/dist/{chunk-EGLWHNOX.js → chunk-BHB6PYJG.js} +4 -4
  7. package/dist/{chunk-EGLWHNOX.js.map → chunk-BHB6PYJG.js.map} +1 -1
  8. package/dist/{chunk-5WZZMNCU.js → chunk-ES2FREAP.js} +4 -4
  9. package/dist/{chunk-DDKFUQ22.js → chunk-FEO7D54Z.js} +3 -3
  10. package/dist/{chunk-2EVAV2SS.js → chunk-I4NHZ6D6.js} +89 -10
  11. package/dist/chunk-I4NHZ6D6.js.map +1 -0
  12. package/dist/{chunk-AIS537EU.js → chunk-IKBPPSNQ.js} +57 -487
  13. package/dist/{chunk-AIS537EU.js.map → chunk-IKBPPSNQ.js.map} +1 -1
  14. package/dist/{chunk-SVCFKO4U.js → chunk-RKXUA6D6.js} +4 -8
  15. package/dist/{chunk-SVCFKO4U.js.map → chunk-RKXUA6D6.js.map} +1 -1
  16. package/dist/{chunk-QZLVYJDX.js → chunk-VQAG7NSK.js} +2 -2
  17. package/dist/elements.js +3 -3
  18. package/dist/index.js +8 -8
  19. package/dist/interactions.js +3 -3
  20. package/dist/item.css +55 -485
  21. package/dist/item.js +3 -3
  22. package/dist/processing.d.ts +0 -2
  23. package/dist/processing.js +2 -2
  24. package/dist/qti-components-jsx.d.ts +64 -64
  25. package/dist/test.js +5 -5
  26. package/package.json +17 -16
  27. package/LICENSE.md +0 -674
  28. package/dist/chunk-2EVAV2SS.js.map +0 -1
  29. /package/dist/{chunk-ULXR5TWK.js.map → chunk-4A7ZMQKU.js.map} +0 -0
  30. /package/dist/{chunk-5WZZMNCU.js.map → chunk-ES2FREAP.js.map} +0 -0
  31. /package/dist/{chunk-DDKFUQ22.js.map → chunk-FEO7D54Z.js.map} +0 -0
  32. /package/dist/{chunk-QZLVYJDX.js.map → chunk-VQAG7NSK.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  f,
4
4
  i4 as i,
5
5
  w
6
- } from "./chunk-EGLWHNOX.js";
6
+ } from "./chunk-BHB6PYJG.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/node/directives/private-async-helpers.js
9
9
  var s = class {
@@ -2107,25 +2107,20 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2107
2107
 
2108
2108
  &.qti-input-control-hidden {
2109
2109
  & qti-simple-choice {
2110
- position: relative; /* Add position relative here instead of a separate rule */
2111
-
2110
+ position: relative;
2112
2111
  &:hover {
2113
2112
  }
2114
-
2115
2113
  &:focus {
2116
2114
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2117
2115
  }
2118
-
2119
2116
  &::part(ch) {
2120
2117
  display: none;
2121
2118
  }
2122
-
2123
2119
  &:state(--checked),
2124
2120
  &[aria-checked='true'] {
2125
2121
  border-color: var(--qti-border-active);
2126
2122
  background-color: var(--qti-bg-active);
2127
2123
  }
2128
-
2129
2124
  &:state(readonly),
2130
2125
  &[aria-readonly='true'] {
2131
2126
  cursor: pointer;
@@ -2133,7 +2128,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2133
2128
  outline: 0;
2134
2129
  border: none;
2135
2130
  }
2136
-
2137
2131
  &:state(disabled),
2138
2132
  &[aria-disabled='true'] {
2139
2133
  cursor: not-allowed;
@@ -2142,13 +2136,10 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2142
2136
  border-color: var(--qti-border-color);
2143
2137
  outline: 4px solid var(--qti-disabled-bg);
2144
2138
  }
2145
-
2146
- /* Add styling for correct responses with border instead of checkmark */
2147
2139
  &:state(correct-response),
2148
2140
  &[data-correct-response='true'] {
2149
2141
  border: 3px solid var(--qti-correct) !important;
2150
2142
  padding-right: 30px;
2151
-
2152
2143
  &::after {
2153
2144
  content: '\\02714';
2154
2145
  color: var(--qti-correct);
@@ -2169,28 +2160,22 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2169
2160
 
2170
2161
  &:not(.qti-input-control-hidden) {
2171
2162
  & qti-simple-choice {
2172
-
2173
2163
  &:not([aria-disabled='true'], [aria-readonly='true'], :state(--checked)):hover {
2174
2164
  }
2175
-
2176
2165
  &:focus {
2177
2166
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2178
2167
  }
2179
-
2180
2168
  &:state(--checked),
2181
2169
  &[aria-checked='true'] {
2182
2170
  border-color: var(--qti-border-active);
2183
2171
  background-color: var(--qti-bg-active);
2184
2172
  }
2185
-
2186
2173
  &:state(candidate-correct) {
2187
2174
  background-color: var(--qti-correct);
2188
2175
  }
2189
-
2190
2176
  &:state(candidate-incorrect) {
2191
2177
  background-color: var(--qti-incorrect);
2192
2178
  }
2193
-
2194
2179
  &:state(readonly),
2195
2180
  &[aria-readonly='true'] {
2196
2181
  cursor: pointer;
@@ -2198,7 +2183,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2198
2183
  outline: 0;
2199
2184
  border: none;
2200
2185
  }
2201
-
2202
2186
  &:state(disabled),
2203
2187
  &[aria-disabled='true'] {
2204
2188
  cursor: not-allowed;
@@ -2207,12 +2191,10 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2207
2191
  border-color: var(--qti-border-color);
2208
2192
  outline: 4px solid var(--qti-disabled-bg);
2209
2193
  }
2210
-
2211
2194
  &::part(cha) {
2212
2195
  width: calc(var(--qti-form-size) - 6px);
2213
2196
  height: calc(var(--qti-form-size) - 6px);
2214
2197
  }
2215
-
2216
2198
  &:state(radio)::part(ch) {
2217
2199
  border-radius: 100%;
2218
2200
  display: grid;
@@ -2222,12 +2204,10 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2222
2204
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2223
2205
  outline: none;
2224
2206
  }
2225
-
2226
2207
  &:state(radio):state(--checked)::part(cha) {
2227
2208
  background-color: var(--qti-border-active);
2228
2209
  border-radius: 100%;
2229
2210
  }
2230
-
2231
2211
  &:state(checkbox)::part(ch) {
2232
2212
  display: flex;
2233
2213
  place-items: center;
@@ -2239,23 +2219,16 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2239
2219
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2240
2220
  outline: none;
2241
2221
  }
2242
-
2243
2222
  &:state(checkbox):state(--checked)::part(cha) {
2244
2223
  background-color: var(--qti-border-active);
2245
2224
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
2246
2225
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
2247
2226
  }
2248
-
2249
2227
  gap: 0.5rem;
2250
-
2251
2228
  background-color: var(--qti-bg);
2252
-
2253
2229
  border-radius: var(--qti-border-radius);
2254
-
2255
2230
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
2256
-
2257
2231
  outline: none;
2258
-
2259
2232
  cursor: pointer
2260
2233
  }
2261
2234
  }
@@ -2264,8 +2237,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2264
2237
  width: -moz-fit-content;
2265
2238
  width: fit-content;
2266
2239
  cursor: pointer;
2267
-
2268
- /* Keep the checkmark for non-hidden input controls */
2269
2240
  &:state(correct-response),
2270
2241
  &[data-correct-response='true'] {
2271
2242
  &::after {
@@ -2280,11 +2251,9 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2280
2251
  padding: 0 !important;
2281
2252
  }
2282
2253
  }
2254
+ }
2283
2255
 
2284
- .hover-border {
2285
- border: 2px solid #000; /* Adjust the border style and color as needed */
2286
- }
2287
-
2256
+ @layer qti-components {
2288
2257
  qti-graphic-gap-match-interaction {
2289
2258
  &::part(message) {
2290
2259
  display: none;
@@ -2295,41 +2264,32 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2295
2264
  border-radius: 4px;
2296
2265
  margin-top: 8px;
2297
2266
  }
2298
-
2299
2267
  position: relative;
2300
-
2301
2268
  &.qti-selections-light {
2302
2269
  &:state(--dragzone-active)::part(drags) {
2303
2270
  background-color: var(--qti-light-bg-active);
2304
2271
  border-color: var(--qti-light-border-active);
2305
2272
  }
2306
-
2307
2273
  &:state(--dragzone-enabled)::part(drags) {
2308
2274
  background-color: var(--qti-light-bg-active);
2309
2275
  }
2310
2276
  }
2311
-
2312
2277
  &.qti-selections-dark {
2313
2278
  &:state(--dragzone-active)::part(drags) {
2314
2279
  background-color: var(--qti-dark-bg-active);
2315
2280
  border-color: var(--qti-dark-border-active);
2316
2281
  }
2317
-
2318
2282
  &:state(--dragzone-enabled)::part(drags) {
2319
2283
  background-color: var(--qti-dark-bg-active);
2320
2284
  }
2321
2285
  }
2322
-
2323
- /* General styles for active and enabled states */
2324
2286
  &:state(--dragzone-active)::part(drags) {
2325
2287
  border-color: var(--qti-border-active);
2326
2288
  background-color: var(--qti-bg-active);
2327
2289
  }
2328
-
2329
2290
  &:state(--dragzone-enabled)::part(drags) {
2330
2291
  background-color: var(--qti-bg-active);
2331
2292
  }
2332
-
2333
2293
  & qti-gap-img,
2334
2294
  qti-gap-text {
2335
2295
  display: flex;
@@ -2337,36 +2297,25 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2337
2297
  align-items: center;
2338
2298
  cursor: grab;
2339
2299
  }
2340
-
2341
2300
  & qti-associable-hotspot {
2342
2301
  display: flex;
2343
2302
  justify-content: center;
2344
2303
  align-items: center;
2345
2304
  border: 2px solid transparent;
2346
-
2347
2305
  &[enabled] {
2348
-
2349
- /* Light theme override */
2350
2306
  .qti-selections-light {
2351
2307
  background-color: var(--qti-light-bg-active);
2352
2308
  }
2353
-
2354
- /* Dark theme override */
2355
2309
  .qti-selections-dark {
2356
2310
  background-color: var(--qti-dark-bg-active);
2357
2311
  }
2358
2312
  background-color: var(--qti-bg-active)
2359
2313
  }
2360
-
2361
2314
  &[active] {
2362
-
2363
- /* Light theme override */
2364
2315
  .qti-selections-light {
2365
2316
  background-color: var(--qti-light-bg-active);
2366
2317
  border-color: var(--qti-light-border-active);
2367
2318
  }
2368
-
2369
- /* Dark theme override */
2370
2319
  .qti-selections-dark {
2371
2320
  background-color: var(--qti-dark-bg-active);
2372
2321
  border-color: var(--qti-dark-border-active);
@@ -2374,66 +2323,54 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2374
2323
  border-color: var(--qti-border-active);
2375
2324
  background-color: var(--qti-bg-active)
2376
2325
  }
2377
-
2378
2326
  &[disabled] {
2379
-
2380
2327
  &:not(:empty) {
2381
2328
  cursor: default !important;
2382
2329
  }
2383
-
2384
2330
  cursor: not-allowed;
2385
-
2386
2331
  background-color: var(--qti-disabled-bg);
2387
-
2388
2332
  color: var(--qti-disabled-color);
2389
-
2390
2333
  border-color: var(--qti-border-color);
2391
-
2392
2334
  outline: 4px solid var(--qti-disabled-bg)
2393
2335
  }
2394
-
2395
2336
  &:empty::after {
2396
- padding: var(--qti-padding-md) var(--qti-padding-lg); /* Padding shorthand */
2397
- content: '\\0000a0'; /* when empty, put a space in it */
2337
+ padding: var(--qti-padding-md) var(--qti-padding-lg);
2338
+ content: '\\0000a0';
2398
2339
  }
2399
-
2400
2340
  &:not(:empty) {
2401
2341
  padding: 0;
2402
2342
  width: auto;
2403
2343
  }
2404
-
2405
2344
  &:not(:empty) > * {
2406
2345
  flex: 1;
2407
- transform: rotate(0); /* rotate-0 */
2408
- box-shadow: 0 0 0 1px #e5e7eb; /* ring-gray-200 */
2346
+ transform: rotate(0);
2347
+ box-shadow: 0 0 0 1px #e5e7eb;
2409
2348
  }
2410
2349
  }
2411
-
2412
2350
  & img {
2413
2351
  margin: 0;
2414
2352
  padding: 0;
2415
2353
  }
2416
2354
  }
2355
+ }
2417
2356
 
2357
+ @layer qti-components {
2418
2358
  qti-text-entry-interaction {
2419
2359
  &:state(candidate-correct) {
2420
2360
  &::part(input) {
2421
2361
  background-color: var(--qti-correct);
2422
2362
  }
2423
2363
  }
2424
-
2425
2364
  &:state(candidate-partially-correct) {
2426
2365
  &::part(input) {
2427
2366
  background-color: var(--qti-partially-correct);
2428
2367
  }
2429
2368
  }
2430
-
2431
2369
  &:state(candidate-incorrect) {
2432
2370
  &::part(input) {
2433
2371
  background-color: var(--qti-incorrect);
2434
2372
  }
2435
2373
  }
2436
-
2437
2374
  &::part(input) {
2438
2375
  border-radius: 0;
2439
2376
  cursor: text;
@@ -2442,10 +2379,8 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2442
2379
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2443
2380
  outline: none;
2444
2381
  }
2445
-
2446
2382
  &:hover {
2447
2383
  }
2448
-
2449
2384
  &:focus-within {
2450
2385
  &::part(input) {
2451
2386
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
@@ -2453,7 +2388,9 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2453
2388
  }
2454
2389
  }
2455
2390
  }
2391
+ }
2456
2392
 
2393
+ @layer qti-components {
2457
2394
  qti-extended-text-interaction {
2458
2395
  &::part(textarea) {
2459
2396
  border-radius: 0;
@@ -2463,10 +2400,8 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2463
2400
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2464
2401
  outline: none;
2465
2402
  }
2466
-
2467
2403
  &:hover {
2468
2404
  }
2469
-
2470
2405
  &:focus-within {
2471
2406
  &::part(textarea) {
2472
2407
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
@@ -2474,125 +2409,89 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2474
2409
  }
2475
2410
  }
2476
2411
  }
2412
+ }
2477
2413
 
2414
+ @layer qti-components {
2478
2415
  qti-gap-match-interaction {
2479
2416
  &.qti-selections-light {
2480
2417
  &:state(--dragzone-active)::part(drags) {
2481
2418
  background-color: var(--qti-light-bg-active);
2482
2419
  border-color: var(--qti-light-border-active);
2483
2420
  }
2484
-
2485
2421
  &:state(--dragzone-enabled)::part(drags) {
2486
2422
  background-color: var(--qti-light-bg-active);
2487
2423
  }
2488
2424
  }
2489
-
2490
2425
  &.qti-selections-dark {
2491
2426
  &:state(--dragzone-active)::part(drags) {
2492
2427
  background-color: var(--qti-dark-bg-active);
2493
2428
  border-color: var(--qti-dark-border-active);
2494
2429
  }
2495
-
2496
2430
  &:state(--dragzone-enabled)::part(drags) {
2497
2431
  background-color: var(--qti-dark-bg-active);
2498
2432
  }
2499
2433
  }
2500
-
2501
- /* General styles for active and enabled states */
2502
2434
  &:state(--dragzone-active)::part(drags) {
2503
2435
  border-color: var(--qti-border-active);
2504
2436
  background-color: var(--qti-bg-active);
2505
2437
  }
2506
-
2507
2438
  &:state(--dragzone-enabled)::part(drags) {
2508
2439
  background-color: var(--qti-bg-active);
2509
2440
  }
2510
-
2511
2441
  & qti-gap-text {
2512
-
2513
2442
  &[dragging] {
2514
2443
  pointer-events: none;
2515
2444
  rotate: -2deg;
2516
2445
  box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
2517
2446
  0 4px 8px rgb(0 0 0 / 10%);
2518
2447
  }
2519
-
2520
2448
  &:hover {
2521
2449
  }
2522
-
2523
2450
  &:focus {
2524
2451
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2525
2452
  }
2526
-
2527
2453
  &:state(candidate-correct) {
2528
2454
  background-color: var(--qti-correct);
2529
2455
  }
2530
-
2531
2456
  &:state(candidate-incorrect) {
2532
2457
  background-color: var(--qti-incorrect);
2533
2458
  }
2534
-
2535
2459
  box-sizing: border-box;
2536
-
2537
2460
  transition: transform 200ms ease-out,
2538
2461
  box-shadow 200ms ease-out,
2539
2462
  rotate 200ms ease-out;
2540
-
2541
2463
  cursor: grab;
2542
-
2543
2464
  background-color: var(--qti-bg);
2544
-
2545
2465
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
2546
-
2547
2466
  border-radius: var(--qti-border-radius);
2548
-
2549
2467
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2550
-
2551
2468
  outline: none
2552
2469
  }
2553
-
2554
2470
  & qti-gap {
2555
-
2556
2471
  &[disabled] {
2557
-
2558
2472
  &:not(:empty) {
2559
2473
  cursor: default !important;
2560
2474
  }
2561
-
2562
2475
  cursor: not-allowed;
2563
-
2564
2476
  background-color: var(--qti-disabled-bg);
2565
-
2566
2477
  color: var(--qti-disabled-color);
2567
-
2568
2478
  border-color: var(--qti-border-color);
2569
-
2570
2479
  outline: 4px solid var(--qti-disabled-bg)
2571
2480
  }
2572
-
2573
2481
  &[enabled] {
2574
-
2575
- /* Light theme override */
2576
2482
  .qti-selections-light {
2577
2483
  border-color: var(--qti-light-border-active);
2578
2484
  }
2579
-
2580
- /* Dark theme override */
2581
2485
  .qti-selections-dark {
2582
2486
  border-color: var(--qti-dark-border-active);
2583
2487
  }
2584
2488
  background-color: var(--qti-bg-active)
2585
2489
  }
2586
-
2587
2490
  &[active] {
2588
-
2589
- /* Light theme override */
2590
2491
  .qti-selections-light {
2591
2492
  background-color: var(--qti-light-bg-active);
2592
2493
  border-color: var(--qti-light-border-active);
2593
2494
  }
2594
-
2595
- /* Dark theme override */
2596
2495
  .qti-selections-dark {
2597
2496
  background-color: var(--qti-dark-bg-active);
2598
2497
  border-color: var(--qti-dark-border-active);
@@ -2600,56 +2499,45 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2600
2499
  border-color: var(--qti-border-active);
2601
2500
  background-color: var(--qti-bg-active)
2602
2501
  }
2603
-
2604
2502
  display: inline-flex;
2605
2503
  align-items: center;
2606
-
2607
2504
  &:empty::after {
2608
- padding: var(--qti-padding-md) var(--qti-padding-lg); /* Padding shorthand */
2609
- content: '\\0000a0'; /* when empty, put a space in it */
2505
+ padding: var(--qti-padding-md) var(--qti-padding-lg);
2506
+ content: '\\0000a0';
2610
2507
  }
2611
-
2612
2508
  &:not(:empty) {
2613
2509
  display: inline-flex;
2614
2510
  padding: 0;
2615
2511
  width: auto;
2616
2512
  }
2617
-
2618
2513
  &:not(:empty) > * {
2619
2514
  flex: 1;
2620
- transform: rotate(0); /* rotate-0 */
2621
- box-shadow: 0 0 0 1px #e5e7eb; /* ring-gray-200 */
2515
+ transform: rotate(0);
2516
+ box-shadow: 0 0 0 1px #e5e7eb;
2622
2517
  }
2623
-
2624
2518
  border: var(--qti-border-thickness) dashed var(--qti-border-color);
2625
-
2626
2519
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" stroke="%23CCCCCC" stroke-width="1" fill="transparent" /></svg>')
2627
2520
  center no-repeat;
2628
-
2629
2521
  border-radius: var(--qti-border-radius);
2630
-
2631
2522
  position: relative;
2632
-
2633
2523
  background-color: var(--qti-bg)
2634
2524
  }
2635
2525
  }
2526
+ }
2636
2527
 
2528
+ @layer qti-components {
2637
2529
  qti-hotspot-interaction {
2638
2530
  & qti-hotspot-choice {
2639
2531
  &[shape='circle'] {
2640
-
2641
2532
  &:hover {
2642
2533
  }
2643
-
2644
2534
  &:focus {
2645
2535
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2646
2536
  }
2647
-
2648
2537
  &:state(--checked),
2649
2538
  &[aria-checked='true'] {
2650
2539
  border-color: var(--qti-border-active);
2651
2540
  }
2652
-
2653
2541
  &:state(--readonly),
2654
2542
  &[aria-readonly='true'] {
2655
2543
  cursor: pointer;
@@ -2657,7 +2545,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2657
2545
  outline: 0;
2658
2546
  border: none;
2659
2547
  }
2660
-
2661
2548
  &:state(--disabled),
2662
2549
  &[aria-disabled='true'] {
2663
2550
  cursor: not-allowed;
@@ -2666,48 +2553,30 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2666
2553
  border-color: var(--qti-border-color);
2667
2554
  outline: 4px solid var(--qti-disabled-bg);
2668
2555
  }
2669
-
2670
2556
  width: 100%;
2671
-
2672
2557
  height: 100%;
2673
-
2674
2558
  background-color: transparent;
2675
-
2676
2559
  margin: 0;
2677
-
2678
2560
  padding: 0;
2679
-
2680
2561
  border: 0;
2681
-
2682
2562
  box-sizing: border-box;
2683
-
2684
2563
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2685
-
2686
2564
  outline: none
2687
2565
  }
2688
-
2689
2566
  &[shape='rect'] {
2690
-
2691
- /* &:hover {
2692
- @apply hov;
2693
- } */
2694
-
2695
2567
  &:focus {
2696
2568
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2697
2569
  }
2698
-
2699
2570
  &:state(--checked),
2700
2571
  &[aria-checked='true'] {
2701
2572
  border-color: var(--qti-border-active);
2702
2573
  }
2703
-
2704
2574
  &[aria-readonly='true'] {
2705
2575
  cursor: pointer;
2706
2576
  background-color: var(--qti-bg);
2707
2577
  outline: 0;
2708
2578
  border: none;
2709
2579
  }
2710
-
2711
2580
  &[aria-disabled='true'] {
2712
2581
  cursor: not-allowed;
2713
2582
  background-color: var(--qti-disabled-bg);
@@ -2715,26 +2584,16 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2715
2584
  border-color: var(--qti-border-color);
2716
2585
  outline: 4px solid var(--qti-disabled-bg);
2717
2586
  }
2718
-
2719
2587
  width: 100%;
2720
-
2721
2588
  height: 100%;
2722
-
2723
2589
  background-color: transparent;
2724
-
2725
2590
  margin: 0;
2726
-
2727
2591
  padding: 0;
2728
-
2729
2592
  border: 0;
2730
-
2731
2593
  box-sizing: border-box;
2732
-
2733
2594
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2734
-
2735
2595
  outline: none
2736
2596
  }
2737
-
2738
2597
  &[shape='poly'] {
2739
2598
  &:hover::after {
2740
2599
  content: '';
@@ -2749,7 +2608,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2749
2608
  );
2750
2609
  display: block;
2751
2610
  }
2752
-
2753
2611
  &:state(--checked)::after,
2754
2612
  &[aria-checked='true']::after {
2755
2613
  content: '';
@@ -2764,14 +2622,12 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2764
2622
  );
2765
2623
  display: block;
2766
2624
  }
2767
-
2768
2625
  &[aria-readonly='true'] {
2769
2626
  cursor: pointer;
2770
2627
  background-color: var(--qti-bg);
2771
2628
  outline: 0;
2772
2629
  border: none;
2773
2630
  }
2774
-
2775
2631
  &[aria-disabled='true'] {
2776
2632
  cursor: not-allowed;
2777
2633
  background-color: var(--qti-disabled-bg);
@@ -2782,10 +2638,10 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2782
2638
  }
2783
2639
  }
2784
2640
  }
2641
+ }
2785
2642
 
2643
+ @layer qti-components {
2786
2644
  qti-hottext-interaction {
2787
- /* &:not(.qti-input-control-hidden),
2788
- &:not(.qti-unselected-hidden) { */
2789
2645
  &::part(message) {
2790
2646
  display: none;
2791
2647
  color: var(--qti-validation-text, #000);
@@ -2795,23 +2651,18 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2795
2651
  border-radius: 4px;
2796
2652
  margin-top: 8px;
2797
2653
  }
2798
-
2799
2654
  qti-hottext {
2800
2655
  display: inline-flex;
2801
2656
  align-items: center;
2802
-
2803
2657
  &:hover {
2804
2658
  }
2805
-
2806
2659
  &:focus {
2807
2660
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2808
2661
  }
2809
-
2810
2662
  &::part(cha) {
2811
2663
  width: calc(var(--qti-form-size) - 6px);
2812
2664
  height: calc(var(--qti-form-size) - 6px);
2813
2665
  }
2814
-
2815
2666
  &:state(radio)::part(ch) {
2816
2667
  border-radius: 100%;
2817
2668
  display: grid;
@@ -2821,12 +2672,10 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2821
2672
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2822
2673
  outline: none;
2823
2674
  }
2824
-
2825
2675
  &:state(radio):state(--checked)::part(cha) {
2826
2676
  background-color: var(--qti-border-active);
2827
2677
  border-radius: 100%;
2828
2678
  }
2829
-
2830
2679
  &:state(checkbox)::part(ch) {
2831
2680
  display: flex;
2832
2681
  place-items: center;
@@ -2838,66 +2687,45 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2838
2687
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2839
2688
  outline: none;
2840
2689
  }
2841
-
2842
2690
  &:state(checkbox):state(--checked)::part(cha) {
2843
2691
  background-color: var(--qti-border-active);
2844
2692
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
2845
2693
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
2846
2694
  }
2847
-
2848
2695
  &:state(correct-response),
2849
2696
  &[data-correct-response='true'] {
2850
2697
  &::after {
2851
2698
  content: '\\02714';
2852
- color: #16a34a; /* text-green-600 */
2699
+ color: #16a34a;
2853
2700
  }
2854
2701
  }
2855
-
2856
2702
  gap: 0.5rem;
2857
-
2858
2703
  background-color: var(--qti-bg);
2859
-
2860
2704
  border-radius: var(--qti-border-radius);
2861
-
2862
2705
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
2863
-
2864
2706
  outline: none;
2865
-
2866
2707
  cursor: pointer
2867
2708
  }
2868
-
2869
2709
  &.qti-input-control-hidden {
2870
2710
  qti-hottext {
2871
- /* --qti-padding-md: 0.1rem;
2872
- --qti-padding-lg: 0.2rem;
2873
- --qti-border-radius-md: 0.3rem;
2874
- --qti-border-thickness: 1px;
2875
- --qti-font-weight-semibold: 400; */
2876
-
2877
2711
  &:hover {
2878
2712
  }
2879
-
2880
2713
  &:focus {
2881
2714
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2882
2715
  }
2883
-
2884
- /* @layer qti-variants { */
2885
2716
  &::part(ch) {
2886
2717
  display: none;
2887
2718
  }
2888
-
2889
2719
  &:state(--checked) {
2890
2720
  border-color: var(--qti-border-active);
2891
2721
  background-color: var(--qti-bg-active);
2892
2722
  }
2893
-
2894
2723
  &[aria-readonly='true'] {
2895
2724
  cursor: pointer;
2896
2725
  background-color: var(--qti-bg);
2897
2726
  outline: 0;
2898
2727
  border: none;
2899
2728
  }
2900
-
2901
2729
  &[aria-disabled='true'] {
2902
2730
  cursor: not-allowed;
2903
2731
  background-color: var(--qti-disabled-bg);
@@ -2905,47 +2733,33 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2905
2733
  border-color: var(--qti-border-color);
2906
2734
  outline: 4px solid var(--qti-disabled-bg);
2907
2735
  }
2908
-
2909
2736
  border-radius: var(--qti-border-radius);
2910
-
2911
2737
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
2912
-
2913
2738
  background: var(--qti-bg);
2914
-
2915
2739
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2916
-
2917
2740
  outline: none
2918
2741
  }
2919
-
2920
- /* } */
2921
2742
  }
2922
-
2923
2743
  &.qti-unselected-hidden {
2924
2744
  qti-hottext {
2925
2745
  &:hover {
2926
2746
  }
2927
-
2928
2747
  &:focus {
2929
2748
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2930
2749
  }
2931
-
2932
2750
  cursor: pointer;
2933
-
2934
2751
  &::part(ch) {
2935
2752
  display: none;
2936
2753
  }
2937
-
2938
2754
  &:state(--checked) {
2939
2755
  background-color: var(--qti-bg-active);
2940
2756
  }
2941
-
2942
2757
  &[aria-readonly='true'] {
2943
2758
  cursor: pointer;
2944
2759
  background-color: var(--qti-bg);
2945
2760
  outline: 0;
2946
2761
  border: none;
2947
2762
  }
2948
-
2949
2763
  &[aria-disabled='true'] {
2950
2764
  cursor: not-allowed;
2951
2765
  background-color: var(--qti-disabled-bg);
@@ -2956,52 +2770,39 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
2956
2770
  }
2957
2771
  }
2958
2772
  }
2773
+ }
2959
2774
 
2775
+ @layer qti-components {
2960
2776
  qti-inline-choice-interaction {
2961
2777
  &:state(candidate-correct) {
2962
2778
  &::part(trigger) {
2963
2779
  background-color: var(--qti-correct);
2964
2780
  }
2965
2781
  }
2966
-
2967
2782
  &:state(candidate-incorrect) {
2968
2783
  &::part(trigger) {
2969
2784
  background-color: var(--qti-incorrect);
2970
2785
  }
2971
2786
  }
2972
-
2973
2787
  &::part(trigger) {
2974
-
2975
2788
  font-size: inherit;
2976
2789
  vertical-align: baseline;
2977
2790
  min-width: var(--qti-calculated-min-width, auto);
2978
-
2979
2791
  &:focus-visible {
2980
2792
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2981
2793
  }
2982
-
2983
2794
  display: inline-flex;
2984
-
2985
2795
  align-items: center;
2986
-
2987
2796
  justify-content: space-between;
2988
-
2989
2797
  gap: 0.5rem;
2990
-
2991
2798
  border-radius: var(--qti-border-radius);
2992
-
2993
2799
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
2994
-
2995
2800
  background: var(--qti-bg);
2996
-
2997
2801
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2998
-
2999
2802
  outline: none
3000
2803
  }
3001
-
3002
2804
  &:not(:state(readonly)):not([readonly])::part(trigger):hover {
3003
2805
  }
3004
-
3005
2806
  &:state(disabled)::part(trigger),
3006
2807
  &[disabled]::part(trigger) {
3007
2808
  cursor: not-allowed;
@@ -3010,7 +2811,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3010
2811
  border-color: var(--qti-border-color);
3011
2812
  outline: 4px solid var(--qti-disabled-bg);
3012
2813
  }
3013
-
3014
2814
  &:state(readonly)::part(trigger),
3015
2815
  &[readonly]::part(trigger) {
3016
2816
  cursor: pointer;
@@ -3023,33 +2823,21 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3023
2823
  border-color: var(--qti-border-color);
3024
2824
  outline: 4px solid var(--qti-disabled-bg);
3025
2825
  }
3026
-
3027
2826
  &::part(dropdown-icon) {
3028
-
3029
2827
  font-size: 1.75em;
3030
-
3031
2828
  display: inline-flex;
3032
-
3033
2829
  align-items: center;
3034
-
3035
2830
  justify-content: center;
3036
-
3037
2831
  flex: 0 0 auto;
3038
-
3039
2832
  transition: transform 150ms ease;
3040
-
3041
2833
  transform-origin: 50% 50%;
3042
-
3043
2834
  color: var(--qti-border-color);
3044
-
3045
2835
  line-height: 1;
3046
2836
  }
3047
-
3048
2837
  &::part(dropdown-icon-open) {
3049
2838
  transform: rotate(180deg);
3050
2839
  color: var(--qti-border-active);
3051
2840
  }
3052
-
3053
2841
  &::part(menu) {
3054
2842
  background: var(--qti-bg);
3055
2843
  border-radius: var(--qti-border-radius);
@@ -3059,7 +2847,6 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3059
2847
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3060
2848
  outline: none;
3061
2849
  }
3062
-
3063
2850
  &::part(option) {
3064
2851
  display: flex;
3065
2852
  align-items: center;
@@ -3078,18 +2865,14 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3078
2865
  overflow: hidden;
3079
2866
  text-overflow: ellipsis;
3080
2867
  }
3081
-
3082
2868
  &::part(option):hover {
3083
2869
  }
3084
-
3085
2870
  &::part(option):focus-visible {
3086
2871
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3087
2872
  }
3088
-
3089
2873
  &::part(option-selected) {
3090
2874
  background-color: var(--qti-bg-active);
3091
2875
  }
3092
-
3093
2876
  & qti-inline-choice {
3094
2877
  display: flex;
3095
2878
  align-items: center;
@@ -3108,19 +2891,18 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3108
2891
  overflow: hidden;
3109
2892
  text-overflow: ellipsis;
3110
2893
  }
3111
-
3112
2894
  & qti-inline-choice:hover {
3113
2895
  }
3114
-
3115
2896
  & qti-inline-choice:focus-visible {
3116
2897
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3117
2898
  }
3118
-
3119
2899
  & qti-inline-choice:state(--checked) {
3120
2900
  background-color: var(--qti-bg-active);
3121
2901
  }
3122
2902
  }
2903
+ }
3123
2904
 
2905
+ @layer qti-components {
3124
2906
  qti-match-interaction.qti-match-tabular {
3125
2907
  &::part(message) {
3126
2908
  display: none;
@@ -3131,52 +2913,41 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3131
2913
  border-radius: 4px;
3132
2914
  margin-top: 8px;
3133
2915
  }
3134
- /* Table element */
3135
2916
  &::part(table) {
3136
2917
  border-collapse: collapse;
3137
2918
  width: 100%;
3138
2919
  }
3139
-
3140
- /* Row headers - take up remaining space */
3141
2920
  &::part(r-header) {
3142
2921
  background-color: var(--qti-bg-active, #f8f8f8);
3143
2922
  font-weight: 500;
3144
2923
  text-align: center;
3145
2924
  padding: 8px 15px;
3146
2925
  border: 1px solid #ddd;
3147
- width: auto; /* Let it expand naturally */
3148
- word-wrap: break-word; /* Allow long words to break */
3149
- white-space: wrap; /* Allow text to wrap to multiple lines */
3150
- min-width: 4rem; /* Allow column to shrink below content width */
2926
+ width: auto;
2927
+ word-wrap: break-word;
2928
+ white-space: wrap;
2929
+ min-width: 4rem;
3151
2930
  }
3152
-
3153
- /* Column headers - minimal width */
3154
2931
  &::part(c-header) {
3155
2932
  background-color: var(--qti-bg-active, #f8f8f8);
3156
2933
  font-weight: 500;
3157
2934
  text-align: left;
3158
2935
  padding: 8px;
3159
2936
  border: 1px solid #ddd;
3160
- width: 8rem; /* Force minimal width */
3161
- white-space: normal; /* Prevent wrapping */
2937
+ width: 8rem;
2938
+ white-space: normal;
3162
2939
  }
3163
-
3164
- /* Table rows */
3165
2940
  &::part(row) {
3166
2941
  border-bottom: 1px solid #ddd;
3167
2942
  }
3168
-
3169
- /* Input cells - minimal width */
3170
2943
  &::part(input-cell) {
3171
2944
  text-align: center;
3172
2945
  vertical-align: middle;
3173
2946
  height: 48px;
3174
2947
  border: 1px solid #ddd;
3175
2948
  padding: 8px;
3176
- width: 1%; /* Force minimal width */
2949
+ width: 1%;
3177
2950
  }
3178
-
3179
- /* Radio button styling */
3180
2951
  &::part(rb) {
3181
2952
  -webkit-appearance: none;
3182
2953
  -moz-appearance: none;
@@ -3190,13 +2961,9 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3190
2961
  cursor: pointer;
3191
2962
  display: block;
3192
2963
  }
3193
-
3194
- /* Radio button checked state */
3195
2964
  &::part(rb-checked) {
3196
2965
  box-shadow: inset 0 0 0 6px var(--qti-border-active, #2196f3);
3197
2966
  }
3198
-
3199
- /* Checkbox styling */
3200
2967
  &::part(cb) {
3201
2968
  -webkit-appearance: none;
3202
2969
  -moz-appearance: none;
@@ -3210,12 +2977,9 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3210
2977
  cursor: pointer;
3211
2978
  display: block;
3212
2979
  }
3213
-
3214
- /* Checkbox checked state - only change border if we're adding an SVG checkmark */
3215
2980
  &::part(cb-checked) {
3216
2981
  background-color: var(--qti-border-active, #2196f3) !important;
3217
2982
  }
3218
-
3219
2983
  &::part(checkmark) {
3220
2984
  position: absolute;
3221
2985
  width: 18px;
@@ -3224,123 +2988,90 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3224
2988
  left: 3px;
3225
2989
  pointer-events: none;
3226
2990
  }
3227
-
3228
- /* Correct answers for both types */
3229
2991
  &::part(rb-correct) {
3230
2992
  border-color: var(--qti-correct, #4caf50);
3231
2993
  }
3232
-
3233
2994
  &::part(rb-checked rb-correct) {
3234
2995
  box-shadow: inset 0 0 0 6px var(--qti-correct, #4caf50);
3235
2996
  }
3236
-
3237
2997
  &::part(cb-correct) {
3238
2998
  border-color: var(--qti-correct, #4caf50);
3239
2999
  }
3240
-
3241
3000
  &::part(cb-checked cb-correct) {
3242
3001
  background-color: var(--qti-correct, #4caf50) !important;
3243
3002
  }
3244
-
3245
- /* Incorrect answers for both types */
3246
3003
  &::part(rb-incorrect) {
3247
3004
  border-color: var(--qti-incorrect, #f44336);
3248
3005
  }
3249
-
3250
3006
  &::part(rb-checked rb-incorrect) {
3251
3007
  box-shadow: inset 0 0 0 6px var(--qti-incorrect, #f44336);
3252
3008
  }
3253
-
3254
3009
  &::part(cb-incorrect) {
3255
3010
  border-color: var(--qti-incorrect, #f44336);
3256
3011
  }
3257
-
3258
3012
  &::part(cb-checked cb-incorrect) {
3259
3013
  background-color: var(--qti-incorrect, #f44336) !important;
3260
3014
  }
3261
3015
  }
3262
-
3263
3016
  qti-match-interaction:not(.qti-match-tabular) {
3264
3017
  &:state(--dragzone-enabled) qti-simple-match-set:first-of-type {
3265
3018
  background-color: var(--qti-bg-active);
3266
3019
  }
3267
-
3268
3020
  &:state(--dragzone-active) qti-simple-match-set:first-of-type {
3269
3021
  border-color: var(--qti-border-active);
3270
3022
  background-color: var(--qti-bg-active);
3271
3023
  }
3272
-
3273
- /* The draggables */
3274
3024
  & qti-simple-match-set:first-of-type {
3275
3025
  display: flex;
3276
3026
  flex-wrap: wrap;
3277
- align-items: flex-start; /* Prevents children from stretching */
3027
+ align-items: flex-start;
3278
3028
  gap: var(--qti-gap-size);
3279
3029
  border: 2px solid transparent;
3280
-
3281
3030
  & qti-simple-associable-choice {
3282
-
3283
3031
  &[dragging] {
3284
3032
  pointer-events: none;
3285
3033
  rotate: -2deg;
3286
3034
  box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
3287
3035
  0 4px 8px rgb(0 0 0 / 10%);
3288
3036
  }
3289
-
3290
3037
  &:hover {
3291
3038
  }
3292
-
3293
3039
  &:focus {
3294
3040
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3295
3041
  }
3296
-
3297
3042
  box-sizing: border-box;
3298
-
3299
3043
  transition: transform 200ms ease-out,
3300
3044
  box-shadow 200ms ease-out,
3301
3045
  rotate 200ms ease-out;
3302
-
3303
3046
  cursor: grab;
3304
-
3305
3047
  background-color: var(--qti-bg);
3306
-
3307
3048
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
3308
-
3309
3049
  border-radius: var(--qti-border-radius);
3310
-
3311
3050
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3312
-
3313
3051
  outline: none
3314
3052
  }
3315
3053
  }
3316
-
3317
- /* The droppables */
3318
3054
  & qti-simple-match-set:last-of-type {
3319
3055
  display: grid;
3320
3056
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
3321
3057
  grid-auto-flow: unset;
3322
3058
  grid-auto-columns: unset;
3323
3059
  gap: var(--qti-gap-size);
3324
-
3325
3060
  & > qti-simple-associable-choice {
3326
- /* a droppable qti-simple-associable-choice */
3327
3061
  display: flex;
3328
3062
  flex-direction: column;
3329
3063
  justify-content: space-between;
3330
3064
  grid-row: unset;
3331
3065
  box-sizing: border-box;
3332
-
3333
3066
  & img {
3334
3067
  max-width: 100%;
3335
3068
  height: auto;
3336
3069
  }
3337
-
3338
3070
  &[enabled] {
3339
3071
  &::part(dropslot) {
3340
3072
  background-color: var(--qti-bg-active);
3341
3073
  }
3342
3074
  }
3343
-
3344
3075
  &[disabled] {
3345
3076
  &::part(dropslot) {
3346
3077
  cursor: not-allowed;
@@ -3350,27 +3081,22 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3350
3081
  outline: 4px solid var(--qti-disabled-bg);
3351
3082
  }
3352
3083
  }
3353
-
3354
3084
  &[active] {
3355
3085
  &::part(dropslot) {
3356
3086
  border-color: var(--qti-border-active);
3357
3087
  background-color: var(--qti-bg-active);
3358
3088
  }
3359
3089
  }
3360
-
3361
3090
  &::part(dropslot) {
3362
-
3363
3091
  &[dragging] {
3364
3092
  pointer-events: none;
3365
3093
  rotate: -2deg;
3366
3094
  box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
3367
3095
  0 4px 8px rgb(0 0 0 / 10%);
3368
3096
  }
3369
-
3370
3097
  &:focus {
3371
3098
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3372
3099
  }
3373
-
3374
3100
  padding: var(--qti-dropzone-padding);
3375
3101
  margin-top: 0.5rem;
3376
3102
  gap: 0.5rem;
@@ -3385,102 +3111,74 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3385
3111
  position: relative;
3386
3112
  background-color: var(--qti-bg);
3387
3113
  }
3388
-
3389
3114
  & > *:not(qti-simple-associable-choice) {
3390
3115
  pointer-events: none;
3391
3116
  }
3392
-
3393
3117
  & > qti-simple-associable-choice {
3394
-
3395
3118
  &:state(candidate-correct) {
3396
3119
  background-color: var(--qti-correct);
3397
3120
  }
3398
-
3399
3121
  &:state(candidate-incorrect) {
3400
3122
  background-color: var(--qti-incorrect);
3401
3123
  }
3402
-
3403
3124
  &::part(dropslot) {
3404
3125
  display: none;
3405
3126
  }
3406
-
3407
3127
  &:hover {
3408
3128
  }
3409
-
3410
3129
  &:focus {
3411
3130
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3412
3131
  }
3413
-
3414
3132
  flex-basis: fit-content;
3415
-
3416
3133
  box-sizing: border-box;
3417
-
3418
3134
  transition: transform 200ms ease-out,
3419
3135
  box-shadow 200ms ease-out,
3420
3136
  rotate 200ms ease-out;
3421
-
3422
3137
  cursor: grab;
3423
-
3424
3138
  background-color: var(--qti-bg);
3425
-
3426
3139
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
3427
-
3428
3140
  border-radius: var(--qti-border-radius);
3429
-
3430
3141
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3431
-
3432
3142
  outline: none;
3433
3143
  }
3434
3144
  }
3435
3145
  }
3436
3146
  }
3147
+ }
3437
3148
 
3149
+ @layer qti-components {
3438
3150
  qti-order-interaction {
3439
3151
  &:state(--dragzone-active)::part(drags) {
3440
3152
  border-color: var(--qti-border-active);
3441
3153
  background-color: var(--qti-bg-active);
3442
3154
  }
3443
-
3444
3155
  &:state(--dragzone-enabled)::part(drags) {
3445
3156
  background-color: var(--qti-bg-active);
3446
3157
  }
3447
-
3448
3158
  &::part(qti-simple-choice),
3449
3159
  & qti-simple-choice {
3450
-
3451
3160
  &[dragging] {
3452
3161
  pointer-events: none;
3453
3162
  rotate: -2deg;
3454
3163
  box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
3455
3164
  0 4px 8px rgb(0 0 0 / 10%);
3456
3165
  }
3457
-
3458
3166
  &:hover {
3459
3167
  }
3460
-
3461
3168
  &:focus {
3462
3169
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3463
3170
  }
3464
-
3465
3171
  box-sizing: border-box;
3466
-
3467
3172
  transition: transform 200ms ease-out,
3468
3173
  box-shadow 200ms ease-out,
3469
3174
  rotate 200ms ease-out;
3470
-
3471
3175
  cursor: grab;
3472
-
3473
3176
  background-color: var(--qti-bg);
3474
-
3475
3177
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
3476
-
3477
3178
  border-radius: var(--qti-border-radius);
3478
-
3479
3179
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3480
-
3481
3180
  outline: none
3482
3181
  }
3483
-
3484
3182
  &::part(qti-simple-choice) {
3485
3183
  display: flex;
3486
3184
  overflow: hidden;
@@ -3488,38 +3186,27 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3488
3186
  width: 100%;
3489
3187
  text-overflow: ellipsis;
3490
3188
  }
3491
-
3492
3189
  &::part(drops) {
3493
- gap: 0.5rem; /* gap-2 */
3190
+ gap: 0.5rem;
3494
3191
  }
3495
-
3496
3192
  &::part(drags) {
3497
- gap: 0.5rem; /* gap-2 */
3193
+ gap: 0.5rem;
3498
3194
  }
3499
-
3500
3195
  &::part(drop-list) {
3501
-
3502
3196
  &[enabled] {
3503
-
3504
- /* Light theme override */
3505
3197
  .qti-selections-light {
3506
3198
  border-color: var(--qti-light-border-active);
3507
3199
  }
3508
-
3509
- /* Dark theme override */
3510
3200
  .qti-selections-dark {
3511
3201
  border-color: var(--qti-dark-border-active);
3512
3202
  }
3513
3203
  background-color: var(--qti-bg-active)
3514
3204
  }
3515
-
3516
3205
  &:hover {
3517
3206
  }
3518
-
3519
3207
  &:focus {
3520
3208
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3521
3209
  }
3522
-
3523
3210
  display: flex;
3524
3211
  min-height: 4rem;
3525
3212
  border: var(--qti-border-thickness) dashed var(--qti-border-color);
@@ -3529,34 +3216,27 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3529
3216
  position: relative;
3530
3217
  background-color: var(--qti-bg);
3531
3218
  }
3532
-
3533
3219
  &::part(active) {
3534
3220
  border-color: var(--qti-border-active);
3535
3221
  background-color: var(--qti-bg-active);
3536
3222
  }
3537
-
3538
3223
  & drop-list {
3539
3224
  &[shape='circle'] {
3540
-
3541
3225
  &:hover {
3542
3226
  }
3543
-
3544
3227
  &:focus {
3545
3228
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3546
3229
  }
3547
-
3548
3230
  &[aria-checked='true'] {
3549
3231
  border-color: var(--qti-border-active);
3550
3232
  background-color: var(--qti-bg-active);
3551
3233
  }
3552
-
3553
3234
  &[aria-readonly='true'] {
3554
3235
  cursor: pointer;
3555
3236
  background-color: var(--qti-bg);
3556
3237
  outline: 0;
3557
3238
  border: none;
3558
3239
  }
3559
-
3560
3240
  &[aria-disabled='true'] {
3561
3241
  cursor: not-allowed;
3562
3242
  background-color: var(--qti-disabled-bg);
@@ -3564,47 +3244,32 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3564
3244
  border-color: var(--qti-border-color);
3565
3245
  outline: 4px solid var(--qti-disabled-bg);
3566
3246
  }
3567
-
3568
3247
  width: 100%;
3569
-
3570
3248
  height: 100%;
3571
-
3572
3249
  background-color: transparent;
3573
-
3574
3250
  margin: 0;
3575
-
3576
3251
  padding: 0;
3577
-
3578
3252
  border: 0;
3579
-
3580
3253
  box-sizing: border-box;
3581
-
3582
3254
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3583
-
3584
3255
  outline: none
3585
3256
  }
3586
-
3587
3257
  &[shape='square'] {
3588
-
3589
3258
  &:hover {
3590
3259
  }
3591
-
3592
3260
  &:focus {
3593
3261
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3594
3262
  }
3595
-
3596
3263
  &[aria-checked='true'] {
3597
3264
  border-color: var(--qti-border-active);
3598
3265
  background-color: var(--qti-bg-active);
3599
3266
  }
3600
-
3601
3267
  &[aria-readonly='true'] {
3602
3268
  cursor: pointer;
3603
3269
  background-color: var(--qti-bg);
3604
3270
  outline: 0;
3605
3271
  border: none;
3606
3272
  }
3607
-
3608
3273
  &[aria-disabled='true'] {
3609
3274
  cursor: not-allowed;
3610
3275
  background-color: var(--qti-disabled-bg);
@@ -3612,28 +3277,21 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3612
3277
  border-color: var(--qti-border-color);
3613
3278
  outline: 4px solid var(--qti-disabled-bg);
3614
3279
  }
3615
-
3616
3280
  width: 100%;
3617
-
3618
3281
  height: 100%;
3619
-
3620
3282
  background-color: transparent;
3621
-
3622
3283
  margin: 0;
3623
-
3624
3284
  padding: 0;
3625
-
3626
3285
  border: 0;
3627
-
3628
3286
  box-sizing: border-box;
3629
-
3630
3287
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3631
-
3632
3288
  outline: none
3633
3289
  }
3634
3290
  }
3635
3291
  }
3292
+ }
3636
3293
 
3294
+ @layer qti-components {
3637
3295
  qti-associate-interaction {
3638
3296
  &::part(message) {
3639
3297
  display: none;
@@ -3644,64 +3302,38 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3644
3302
  border-radius: 4px;
3645
3303
  margin-top: 8px;
3646
3304
  }
3647
- /* General styles for active and enabled states */
3648
3305
  &:state(--dragzone-active) slot[name='qti-simple-associable-choice'] {
3649
3306
  border-color: var(--qti-border-active);
3650
3307
  background-color: var(--qti-bg-active);
3651
3308
  }
3652
-
3653
3309
  &:state(--dragzone-enabled) slot[name='qti-simple-associable-choice'] {
3654
3310
  background-color: var(--qti-bg-active);
3655
3311
  }
3656
-
3657
- & qti-simple-associable-choice, /* drags when in lightdom */
3658
- &::part(qti-simple-associable-choice) /* drags when in shadowdom */ {
3659
-
3312
+ & qti-simple-associable-choice,
3313
+ &::part(qti-simple-associable-choice) {
3660
3314
  &:hover {
3661
3315
  }
3662
-
3663
3316
  &:focus {
3664
3317
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3665
3318
  }
3666
-
3667
3319
  &[dragging] {
3668
3320
  pointer-events: none;
3669
3321
  rotate: -2deg;
3670
3322
  box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
3671
3323
  0 4px 8px rgb(0 0 0 / 10%);
3672
3324
  }
3673
-
3674
3325
  box-sizing: border-box;
3675
-
3676
3326
  transition: transform 200ms ease-out,
3677
3327
  box-shadow 200ms ease-out,
3678
3328
  rotate 200ms ease-out;
3679
-
3680
3329
  cursor: grab;
3681
-
3682
3330
  background-color: var(--qti-bg);
3683
-
3684
3331
  padding: var(--qti-padding-vertical) var(--qti-padding-horizontal);
3685
-
3686
3332
  border-radius: var(--qti-border-radius);
3687
-
3688
3333
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3689
-
3690
3334
  outline: none
3691
3335
  }
3692
-
3693
- /* display: flex;
3694
- overflow: hidden;
3695
- align-items: center; */
3696
-
3697
- /* &::part(drop-container) {
3698
- display: flex;
3699
- flex-direction: column;
3700
- gap: var(--qti-gap-size);
3701
- } */
3702
-
3703
3336
  &::part(drop-list) {
3704
-
3705
3337
  display: grid;
3706
3338
  height: 3rem;
3707
3339
  min-width: 10rem;
@@ -3712,21 +3344,17 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3712
3344
  position: relative;
3713
3345
  background-color: var(--qti-bg);
3714
3346
  }
3715
-
3716
3347
  &::part(drop-list):focus {
3717
3348
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3718
3349
  }
3719
-
3720
3350
  &::part(drop-list)[dragging] {
3721
3351
  border-color: var(--qti-border-active);
3722
3352
  background-color: var(--qti-bg-active);
3723
3353
  }
3724
-
3725
- /* &::part(drop-list) {
3726
- @apply act;
3727
- } */
3728
3354
  }
3355
+ }
3729
3356
 
3357
+ @layer qti-components {
3730
3358
  qti-graphic-order-interaction {
3731
3359
  &::part(message) {
3732
3360
  display: none;
@@ -3737,33 +3365,27 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3737
3365
  border-radius: 4px;
3738
3366
  margin-top: 8px;
3739
3367
  }
3740
-
3741
3368
  & qti-hotspot-choice {
3742
3369
  width: 100%;
3743
3370
  height: 100%;
3744
3371
  background-color: rgb(128 128 128 / 30%);
3745
3372
  padding: 0;
3746
-
3747
3373
  &:hover {
3748
3374
  background-color: rgb(128 128 128 / 70%);
3749
3375
  }
3750
-
3751
3376
  &:focus {
3752
3377
  background-color: rgb(128 128 128 / 70%);
3753
3378
  }
3754
-
3755
3379
  &:state(--checked),
3756
3380
  &[aria-checked='true'] {
3757
3381
  background-color: rgb(128 128 128 / 70%);
3758
3382
  }
3759
-
3760
3383
  &[aria-readonly='true'] {
3761
3384
  cursor: pointer;
3762
3385
  background-color: var(--qti-bg);
3763
3386
  outline: 0;
3764
3387
  border: none;
3765
3388
  }
3766
-
3767
3389
  &[aria-disabled='true'] {
3768
3390
  cursor: not-allowed;
3769
3391
  background-color: var(--qti-disabled-bg);
@@ -3771,67 +3393,55 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3771
3393
  border-color: var(--qti-border-color);
3772
3394
  outline: 4px solid var(--qti-disabled-bg);
3773
3395
  }
3774
-
3775
3396
  &[aria-ordervalue] {
3776
3397
  display: grid;
3777
3398
  place-content: center;
3778
3399
  }
3779
-
3780
3400
  &[aria-ordervalue]::after {
3781
3401
  content: attr(aria-ordervalue) !important;
3782
3402
  }
3783
-
3784
3403
  &[aria-ordercorrectvalue] {
3785
3404
  display: grid;
3786
3405
  place-content: center;
3787
3406
  }
3788
-
3789
- /* When both attributes are present */
3790
3407
  &[aria-ordercorrectvalue][aria-ordervalue]::after {
3791
3408
  content: 'C=' attr(aria-ordercorrectvalue) ' R=' attr(aria-ordervalue) !important;
3792
3409
  color: var(--qti-correct);
3793
3410
  }
3794
-
3795
- /* When only aria-ordercorrectvalue is present */
3796
3411
  &[aria-ordercorrectvalue]:not([aria-ordervalue])::after {
3797
3412
  content: 'C=' attr(aria-ordercorrectvalue) !important;
3798
3413
  color: var(--qti-correct);
3799
3414
  }
3800
3415
  }
3801
-
3802
3416
  &.qti-selections-light {
3803
3417
  &:state(--dragzone-active)::part(drags) {
3804
3418
  background-color: var(--qti-light-bg-active);
3805
3419
  border-color: var(--qti-light-border-active);
3806
3420
  }
3807
-
3808
3421
  &:state(--dragzone-enabled)::part(drags) {
3809
3422
  background-color: var(--qti-light-bg-active);
3810
3423
  }
3811
3424
  }
3812
-
3813
3425
  &.qti-selections-dark {
3814
3426
  &:state(--dragzone-active)::part(drags) {
3815
3427
  background-color: var(--qti-dark-bg-active);
3816
3428
  border-color: var(--qti-dark-border-active);
3817
3429
  }
3818
-
3819
3430
  &:state(--dragzone-enabled)::part(drags) {
3820
3431
  background-color: var(--qti-dark-bg-active);
3821
3432
  }
3822
3433
  }
3823
-
3824
- /* General styles for active and enabled states */
3825
3434
  &:state(--dragzone-active)::part(drags) {
3826
3435
  border-color: var(--qti-border-active);
3827
3436
  background-color: var(--qti-bg-active);
3828
3437
  }
3829
-
3830
3438
  &:state(--dragzone-enabled)::part(drags) {
3831
3439
  background-color: var(--qti-bg-active);
3832
3440
  }
3833
3441
  }
3442
+ }
3834
3443
 
3444
+ @layer qti-components {
3835
3445
  qti-graphic-associate-interaction {
3836
3446
  &::part(message) {
3837
3447
  display: none;
@@ -3844,29 +3454,23 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3844
3454
  }
3845
3455
  position: relative;
3846
3456
  display: block;
3847
-
3848
3457
  & qti-associable-hotspot {
3849
3458
  &[shape='circle'] {
3850
-
3851
3459
  &:hover {
3852
3460
  }
3853
-
3854
3461
  &:focus {
3855
3462
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3856
3463
  }
3857
-
3858
3464
  &[aria-checked='true'] {
3859
3465
  border-color: var(--qti-border-active);
3860
3466
  background-color: var(--qti-bg-active);
3861
3467
  }
3862
-
3863
3468
  &[aria-readonly='true'] {
3864
3469
  cursor: pointer;
3865
3470
  background-color: var(--qti-bg);
3866
3471
  outline: 0;
3867
3472
  border: none;
3868
3473
  }
3869
-
3870
3474
  &[aria-disabled='true'] {
3871
3475
  cursor: not-allowed;
3872
3476
  background-color: var(--qti-disabled-bg);
@@ -3874,47 +3478,32 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3874
3478
  border-color: var(--qti-border-color);
3875
3479
  outline: 4px solid var(--qti-disabled-bg);
3876
3480
  }
3877
-
3878
3481
  width: 100%;
3879
-
3880
3482
  height: 100%;
3881
-
3882
3483
  background-color: transparent;
3883
-
3884
3484
  margin: 0;
3885
-
3886
3485
  padding: 0;
3887
-
3888
3486
  border: 0;
3889
-
3890
3487
  box-sizing: border-box;
3891
-
3892
3488
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3893
-
3894
3489
  outline: none
3895
3490
  }
3896
-
3897
3491
  &[shape='square'] {
3898
-
3899
3492
  &:hover {
3900
3493
  }
3901
-
3902
3494
  &:focus {
3903
3495
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3904
3496
  }
3905
-
3906
3497
  &[aria-checked='true'] {
3907
3498
  border-color: var(--qti-border-active);
3908
3499
  background-color: var(--qti-bg-active);
3909
3500
  }
3910
-
3911
3501
  &[aria-readonly='true'] {
3912
3502
  cursor: pointer;
3913
3503
  background-color: var(--qti-bg);
3914
3504
  outline: 0;
3915
3505
  border: none;
3916
3506
  }
3917
-
3918
3507
  &[aria-disabled='true'] {
3919
3508
  cursor: not-allowed;
3920
3509
  background-color: var(--qti-disabled-bg);
@@ -3922,108 +3511,89 @@ var item_default = `@layer qti-base, qti-components, qti-utilities, qti-variants
3922
3511
  border-color: var(--qti-border-color);
3923
3512
  outline: 4px solid var(--qti-disabled-bg);
3924
3513
  }
3925
-
3926
3514
  width: 100%;
3927
-
3928
3515
  height: 100%;
3929
-
3930
3516
  background-color: transparent;
3931
-
3932
3517
  margin: 0;
3933
-
3934
3518
  padding: 0;
3935
-
3936
3519
  border: 0;
3937
-
3938
3520
  box-sizing: border-box;
3939
-
3940
3521
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
3941
-
3942
3522
  outline: none
3943
3523
  }
3944
3524
  }
3945
-
3946
3525
  &.qti-selections-light {
3947
3526
  &:state(--dragzone-active)::part(drags) {
3948
3527
  background-color: var(--qti-light-bg-active);
3949
3528
  border-color: var(--qti-light-border-active);
3950
3529
  }
3951
-
3952
3530
  &:state(--dragzone-enabled)::part(drags) {
3953
3531
  background-color: var(--qti-light-bg-active);
3954
3532
  }
3955
3533
  }
3956
-
3957
3534
  &.qti-selections-dark {
3958
3535
  &:state(--dragzone-active)::part(drags) {
3959
3536
  background-color: var(--qti-dark-bg-active);
3960
3537
  border-color: var(--qti-dark-border-active);
3961
3538
  }
3962
-
3963
3539
  &:state(--dragzone-enabled)::part(drags) {
3964
3540
  background-color: var(--qti-dark-bg-active);
3965
3541
  }
3966
3542
  }
3967
-
3968
- /* General styles for active and enabled states */
3969
3543
  &:state(--dragzone-active)::part(drags) {
3970
3544
  border-color: var(--qti-border-active);
3971
3545
  background-color: var(--qti-bg-active);
3972
3546
  }
3973
-
3974
3547
  &:state(--dragzone-enabled)::part(drags) {
3975
3548
  background-color: var(--qti-bg-active);
3976
3549
  }
3977
3550
  }
3551
+ }
3978
3552
 
3553
+ @layer qti-components {
3979
3554
  qti-slider-interaction {
3980
3555
  --qti-tick-color: rgb(229 231 235 / 100%);
3981
3556
  --qti-tick-width: 1px;
3982
3557
  }
3558
+ }
3983
3559
 
3560
+ @layer qti-components {
3984
3561
  qti-select-point-interaction {
3985
3562
  &::part(point) {
3986
3563
  &:hover {
3987
3564
  }
3988
-
3989
3565
  &:focus {
3990
3566
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
3991
3567
  }
3992
-
3993
3568
  box-sizing: border-box;
3994
-
3995
3569
  border-radius: 100%;
3996
-
3997
3570
  border: 1px solid white;
3998
-
3999
3571
  background-color: black;
4000
-
4001
3572
  opacity: 0.5;
4002
-
4003
3573
  padding: 0;
4004
-
4005
3574
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
4006
-
4007
3575
  outline: none;
4008
3576
  }
4009
-
4010
3577
  &::part(correct) {
4011
3578
  background-color: var(--qti-correct);
4012
3579
  }
4013
-
4014
3580
  &::part(incorrect) {
4015
3581
  background-color: var(--qti-incorrect);
4016
3582
  }
4017
3583
  }
3584
+ }
4018
3585
 
3586
+ @layer qti-components {
4019
3587
  qti-position-object-stage {
4020
3588
  & qti-position-object-interaction {
4021
3589
  /* no styles necessary, only layout styles, defined in the component */
4022
3590
  }
4023
3591
  }
3592
+ }
4024
3593
 
3594
+ @layer qti-components {
4025
3595
  qti-prompt {
4026
- margin: 0.5rem 0; /* my-2 */
3596
+ margin: 0.5rem 0;
4027
3597
  display: block;
4028
3598
  width: 100%;
4029
3599
  }
@@ -4088,4 +3658,4 @@ lit-html/node/directives/until.js:
4088
3658
  * SPDX-License-Identifier: BSD-3-Clause
4089
3659
  *)
4090
3660
  */
4091
- //# sourceMappingURL=chunk-AIS537EU.js.map
3661
+ //# sourceMappingURL=chunk-IKBPPSNQ.js.map